@rive-app/webgl2-advanced 2.23.10 → 2.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/webgl2_advanced.mjs +484 -480
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,51 +5,51 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var m = moduleArg, aa, ba;
|
|
9
|
+
m.ready = new Promise((a, b) => {
|
|
10
10
|
aa = a;
|
|
11
11
|
ba = b;
|
|
12
12
|
});
|
|
13
13
|
function ca() {
|
|
14
14
|
function a(g) {
|
|
15
|
-
const
|
|
15
|
+
const n = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
|
|
18
|
+
n.forEach(p => {
|
|
19
19
|
try {
|
|
20
20
|
p(g);
|
|
21
21
|
} catch (l) {
|
|
22
22
|
console.error(l);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
26
|
-
e && e.
|
|
25
|
+
this.jb();
|
|
26
|
+
e && e.Lb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
30
30
|
b || (b = requestAnimationFrame(a.bind(this)));
|
|
31
|
-
const
|
|
32
|
-
d.set(
|
|
33
|
-
return
|
|
31
|
+
const n = ++c;
|
|
32
|
+
d.set(n, g);
|
|
33
|
+
return n;
|
|
34
34
|
};
|
|
35
35
|
this.cancelAnimationFrame = function(g) {
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Jb = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
|
-
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(
|
|
42
|
-
f.innerHTML = "RIVE FPS " +
|
|
41
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
|
|
42
|
+
f.innerHTML = "RIVE FPS " + n.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let
|
|
46
|
-
this.
|
|
45
|
+
let n = 0, p = 0;
|
|
46
|
+
this.Lb = function() {
|
|
47
47
|
var l = performance.now();
|
|
48
|
-
p ? (++
|
|
48
|
+
p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.jb = function() {
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function da() {
|
|
@@ -67,44 +67,44 @@ function da() {
|
|
|
67
67
|
return b << 8;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const ea =
|
|
71
|
-
|
|
70
|
+
const ea = m.onRuntimeInitialized;
|
|
71
|
+
m.onRuntimeInitialized = function() {
|
|
72
72
|
ea && ea();
|
|
73
|
-
let a =
|
|
74
|
-
|
|
73
|
+
let a = m.decodeAudio;
|
|
74
|
+
m.decodeAudio = function(e, f) {
|
|
75
75
|
e = a(e);
|
|
76
76
|
f(e);
|
|
77
77
|
};
|
|
78
|
-
let b =
|
|
79
|
-
|
|
78
|
+
let b = m.decodeFont;
|
|
79
|
+
m.decodeFont = function(e, f) {
|
|
80
80
|
e = b(e);
|
|
81
81
|
f(e);
|
|
82
82
|
};
|
|
83
|
-
const c =
|
|
84
|
-
|
|
85
|
-
let f =
|
|
86
|
-
return f.isImage ?
|
|
83
|
+
const c = m.FileAssetLoader;
|
|
84
|
+
m.ptrToAsset = e => {
|
|
85
|
+
let f = m.ptrToFileAsset(e);
|
|
86
|
+
return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.
|
|
90
|
+
this.Ab = e;
|
|
91
91
|
}, loadContents:function(e, f) {
|
|
92
|
-
e =
|
|
93
|
-
return this.
|
|
92
|
+
e = m.ptrToAsset(e);
|
|
93
|
+
return this.Ab(e, f);
|
|
94
94
|
},});
|
|
95
|
-
|
|
95
|
+
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
97
97
|
}, loadContents:function(e) {
|
|
98
|
-
let f =
|
|
98
|
+
let f = m.ptrToAsset(e);
|
|
99
99
|
e = f.cdnUuid;
|
|
100
100
|
if ("" === e) {
|
|
101
101
|
return !1;
|
|
102
102
|
}
|
|
103
|
-
(function(g,
|
|
103
|
+
(function(g, n) {
|
|
104
104
|
var p = new XMLHttpRequest();
|
|
105
105
|
p.responseType = "arraybuffer";
|
|
106
106
|
p.onreadystatechange = function() {
|
|
107
|
-
4 == p.readyState && 200 == p.status &&
|
|
107
|
+
4 == p.readyState && 200 == p.status && n(p);
|
|
108
108
|
};
|
|
109
109
|
p.open("GET", g, !0);
|
|
110
110
|
p.send(null);
|
|
@@ -113,30 +113,30 @@ n.onRuntimeInitialized = function() {
|
|
|
113
113
|
});
|
|
114
114
|
return !0;
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
|
-
this.
|
|
118
|
+
this.fb = [];
|
|
119
119
|
}, addLoader:function(e) {
|
|
120
|
-
this.
|
|
120
|
+
this.fb.push(e);
|
|
121
121
|
}, loadContents:function(e, f) {
|
|
122
|
-
for (let g of this.
|
|
122
|
+
for (let g of this.fb) {
|
|
123
123
|
if (g.loadContents(e, f)) {
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
return !1;
|
|
128
128
|
},});
|
|
129
|
-
let d =
|
|
130
|
-
|
|
131
|
-
return d.call(this, e, f, g,
|
|
129
|
+
let d = m.computeAlignment;
|
|
130
|
+
m.computeAlignment = function(e, f, g, n, p = 1.0) {
|
|
131
|
+
return d.call(this, e, f, g, n, p);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
const fa =
|
|
135
|
-
|
|
134
|
+
const fa = m.onRuntimeInitialized;
|
|
135
|
+
m.onRuntimeInitialized = function() {
|
|
136
136
|
function a(k) {
|
|
137
137
|
this.F = k;
|
|
138
|
-
this.
|
|
139
|
-
this.
|
|
138
|
+
this.yb = k.getContext("2d");
|
|
139
|
+
this.Cb = d;
|
|
140
140
|
this.S = [];
|
|
141
141
|
this.la = 0;
|
|
142
142
|
this.clear = function() {
|
|
@@ -160,7 +160,7 @@ n.onRuntimeInitialized = function() {
|
|
|
160
160
|
this.flush = function() {
|
|
161
161
|
console.assert(0 == this.la);
|
|
162
162
|
e.add(this);
|
|
163
|
-
d.
|
|
163
|
+
d.Ta || c();
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
function b(k, q = !1) {
|
|
@@ -169,24 +169,24 @@ n.onRuntimeInitialized = function() {
|
|
|
169
169
|
if (!q) {
|
|
170
170
|
return null;
|
|
171
171
|
}
|
|
172
|
-
var y = ha(r), B = {handle:y, attributes:v, version:v.
|
|
173
|
-
q.canvas && (q.canvas.
|
|
172
|
+
var y = ha(r), B = {handle:y, attributes:v, version:v.Dc, H:q};
|
|
173
|
+
q.canvas && (q.canvas.oc = B);
|
|
174
174
|
r[y] = B;
|
|
175
|
-
("undefined" == typeof v.
|
|
175
|
+
("undefined" == typeof v.Ib || v.Ib) && ia(B);
|
|
176
176
|
ja(y);
|
|
177
177
|
v = f(k.width, k.height);
|
|
178
|
-
v.
|
|
178
|
+
v.zb = y;
|
|
179
179
|
v.F = k;
|
|
180
|
-
v.
|
|
181
|
-
v.
|
|
182
|
-
v.
|
|
180
|
+
v.Va = k.width;
|
|
181
|
+
v.Ua = k.height;
|
|
182
|
+
v.W = q;
|
|
183
183
|
return v;
|
|
184
184
|
}
|
|
185
185
|
function c() {
|
|
186
186
|
if (d) {
|
|
187
|
-
var k = d.
|
|
187
|
+
var k = d.Bb, q = 0, v = 0, y = 0, B = Array(e.size), D = 0;
|
|
188
188
|
for (var E of e) {
|
|
189
|
-
E.
|
|
189
|
+
E.fa = Math.min(E.F.width, k), E.ea = Math.min(E.F.height, k), E.Ia = E.ea * E.fa, q = Math.max(q, E.fa), v = Math.max(v, E.ea), y += E.Ia, B[D++] = E;
|
|
190
190
|
}
|
|
191
191
|
e.clear();
|
|
192
192
|
if (!(0 >= y)) {
|
|
@@ -197,11 +197,11 @@ n.onRuntimeInitialized = function() {
|
|
|
197
197
|
q = Math.min(q, k);
|
|
198
198
|
q = Math.min(v, k);
|
|
199
199
|
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
200
|
-
y = new
|
|
200
|
+
y = new m.DynamicRectanizer(k);
|
|
201
201
|
for (E = 0; E < B.length;) {
|
|
202
202
|
y.reset(q, v);
|
|
203
203
|
for (D = E; D < B.length; ++D) {
|
|
204
|
-
var H = B[D], F = y.addRect(H.
|
|
204
|
+
var H = B[D], F = y.addRect(H.fa, H.ea);
|
|
205
205
|
if (0 > F) {
|
|
206
206
|
console.assert(D > E);
|
|
207
207
|
break;
|
|
@@ -209,7 +209,7 @@ n.onRuntimeInitialized = function() {
|
|
|
209
209
|
H.ra = F & 65535;
|
|
210
210
|
H.sa = F >> 16;
|
|
211
211
|
}
|
|
212
|
-
H =
|
|
212
|
+
H = n.push(y.drawWidth());
|
|
213
213
|
F = p.push(y.drawHeight());
|
|
214
214
|
console.assert(H >= y.drawWidth());
|
|
215
215
|
console.assert(F >= y.drawHeight());
|
|
@@ -220,10 +220,10 @@ n.onRuntimeInitialized = function() {
|
|
|
220
220
|
d.clear();
|
|
221
221
|
for (H = E; H < D; ++H) {
|
|
222
222
|
F = B[H];
|
|
223
|
-
d.saveClipRect(F.ra, F.sa, F.ra + F.
|
|
224
|
-
let Y = new
|
|
225
|
-
Y.xx = F.
|
|
226
|
-
Y.yy = F.
|
|
223
|
+
d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
|
|
224
|
+
let Y = new m.Mat2D();
|
|
225
|
+
Y.xx = F.fa / F.F.width;
|
|
226
|
+
Y.yy = F.ea / F.F.height;
|
|
227
227
|
Y.xy = Y.yx = 0;
|
|
228
228
|
Y.tx = F.ra;
|
|
229
229
|
Y.ty = F.sa;
|
|
@@ -235,7 +235,7 @@ n.onRuntimeInitialized = function() {
|
|
|
235
235
|
F.S = [];
|
|
236
236
|
}
|
|
237
237
|
for (d.flush(); E < D; ++E) {
|
|
238
|
-
H = B[E], F = H.
|
|
238
|
+
H = B[E], F = H.yb, F.globalCompositeOperation = "copy", F.drawImage(d.F, H.ra, H.sa, H.fa, H.ea, 0, 0, H.F.width, H.F.height);
|
|
239
239
|
}
|
|
240
240
|
E = D;
|
|
241
241
|
}
|
|
@@ -244,59 +244,63 @@ n.onRuntimeInitialized = function() {
|
|
|
244
244
|
}
|
|
245
245
|
fa && fa();
|
|
246
246
|
let d = null;
|
|
247
|
-
const e = new Set(), f =
|
|
248
|
-
|
|
247
|
+
const e = new Set(), f = m.makeRenderer;
|
|
248
|
+
m.makeRenderer = function(k, q) {
|
|
249
249
|
if (!d) {
|
|
250
250
|
function v(y) {
|
|
251
|
-
|
|
251
|
+
var B = document.createElement("canvas");
|
|
252
252
|
B.width = 1;
|
|
253
253
|
B.height = 1;
|
|
254
254
|
d = b(B, y);
|
|
255
|
-
d.
|
|
256
|
-
d.
|
|
255
|
+
d.Ta = !!d.W.getExtension("WEBGL_shader_pixel_local_storage");
|
|
256
|
+
d.Bb = Math.min(d.W.getParameter(d.W.MAX_RENDERBUFFER_SIZE), d.W.getParameter(d.W.MAX_TEXTURE_SIZE));
|
|
257
|
+
d.Ja = !d.Ta;
|
|
258
|
+
if (y = d.W.getExtension("WEBGL_debug_renderer_info")) {
|
|
259
|
+
B = d.W.getParameter(y.UNMASKED_RENDERER_WEBGL), d.W.getParameter(y.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ja = !1);
|
|
260
|
+
}
|
|
257
261
|
return d;
|
|
258
262
|
}
|
|
259
263
|
d = v(!0);
|
|
260
|
-
d.Ja
|
|
264
|
+
d.Ja || (d = v(!1));
|
|
261
265
|
}
|
|
262
|
-
return q ? new a(k) : b(k,
|
|
266
|
+
return q ? new a(k) : b(k, d.Ja);
|
|
263
267
|
};
|
|
264
|
-
const g =
|
|
265
|
-
|
|
266
|
-
k.S ? k.S.push(g.bind(this, k.
|
|
268
|
+
const g = m.Artboard.prototype.draw;
|
|
269
|
+
m.Artboard.prototype.draw = function(k) {
|
|
270
|
+
k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
|
|
267
271
|
};
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
l.
|
|
273
|
-
|
|
274
|
-
let t =
|
|
275
|
-
|
|
276
|
-
const y = new
|
|
272
|
+
const n = new da(), p = new da(), l = new ca();
|
|
273
|
+
m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
274
|
+
m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
275
|
+
m.enableFPSCounter = l.Jb.bind(l);
|
|
276
|
+
l.jb = c;
|
|
277
|
+
m.resolveAnimationFrame = c;
|
|
278
|
+
let t = m.load;
|
|
279
|
+
m.load = function(k, q, v = !0) {
|
|
280
|
+
const y = new m.FallbackFileAssetLoader();
|
|
277
281
|
void 0 !== q && y.addLoader(q);
|
|
278
|
-
v && (q = new
|
|
282
|
+
v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
|
|
279
283
|
return Promise.resolve(t(k, y));
|
|
280
284
|
};
|
|
281
|
-
const u =
|
|
282
|
-
|
|
283
|
-
ja(this.
|
|
285
|
+
const u = m.WebGL2Renderer.prototype.clear;
|
|
286
|
+
m.WebGL2Renderer.prototype.clear = function() {
|
|
287
|
+
ja(this.zb);
|
|
284
288
|
const k = this.F;
|
|
285
|
-
if (this.
|
|
286
|
-
this.resize(k.width, k.height), this.
|
|
289
|
+
if (this.Va != k.width || this.Ua != k.height) {
|
|
290
|
+
this.resize(k.width, k.height), this.Va = k.width, this.Ua = k.height;
|
|
287
291
|
}
|
|
288
292
|
u.call(this);
|
|
289
293
|
};
|
|
290
|
-
|
|
291
|
-
k =
|
|
294
|
+
m.decodeImage = function(k, q) {
|
|
295
|
+
k = m.decodeWebGL2Image(k);
|
|
292
296
|
q(k);
|
|
293
297
|
};
|
|
294
|
-
let x =
|
|
295
|
-
|
|
298
|
+
let x = m.Renderer.prototype.align;
|
|
299
|
+
m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
|
|
296
300
|
x.call(this, k, q, v, y, B);
|
|
297
301
|
};
|
|
298
302
|
};
|
|
299
|
-
var ka = Object.assign({},
|
|
303
|
+
var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
|
|
300
304
|
if (ma || na) {
|
|
301
305
|
na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
|
|
302
306
|
var b = new XMLHttpRequest();
|
|
@@ -315,35 +319,35 @@ if (ma || na) {
|
|
|
315
319
|
d.send(null);
|
|
316
320
|
};
|
|
317
321
|
}
|
|
318
|
-
var qa =
|
|
319
|
-
Object.assign(
|
|
322
|
+
var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
|
|
323
|
+
Object.assign(m, ka);
|
|
320
324
|
ka = null;
|
|
321
|
-
|
|
325
|
+
m.thisProgram && (la = m.thisProgram);
|
|
322
326
|
var ra;
|
|
323
|
-
|
|
324
|
-
var noExitRuntime =
|
|
327
|
+
m.wasmBinary && (ra = m.wasmBinary);
|
|
328
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
325
329
|
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
326
330
|
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
327
331
|
function ya() {
|
|
328
332
|
var a = ta.buffer;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
m.HEAP8 = C = new Int8Array(a);
|
|
334
|
+
m.HEAP16 = I = new Int16Array(a);
|
|
335
|
+
m.HEAP32 = J = new Int32Array(a);
|
|
336
|
+
m.HEAPU8 = G = new Uint8Array(a);
|
|
337
|
+
m.HEAPU16 = va = new Uint16Array(a);
|
|
338
|
+
m.HEAPU32 = K = new Uint32Array(a);
|
|
339
|
+
m.HEAPF32 = wa = new Float32Array(a);
|
|
340
|
+
m.HEAPF64 = xa = new Float64Array(a);
|
|
337
341
|
}
|
|
338
342
|
var za, Aa = [], Ba = [], Ca = [];
|
|
339
343
|
function Da() {
|
|
340
|
-
var a =
|
|
344
|
+
var a = m.preRun.shift();
|
|
341
345
|
Aa.unshift(a);
|
|
342
346
|
}
|
|
343
347
|
var Ea = 0, Fa = null, Ga = null;
|
|
344
348
|
function sa(a) {
|
|
345
|
-
if (
|
|
346
|
-
|
|
349
|
+
if (m.onAbort) {
|
|
350
|
+
m.onAbort(a);
|
|
347
351
|
}
|
|
348
352
|
a = "Aborted(" + a + ")";
|
|
349
353
|
z(a);
|
|
@@ -359,7 +363,7 @@ var Ia;
|
|
|
359
363
|
Ia = "webgl2_advanced.wasm";
|
|
360
364
|
if (!Ha(Ia)) {
|
|
361
365
|
var Ja = Ia;
|
|
362
|
-
Ia =
|
|
366
|
+
Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
|
|
363
367
|
}
|
|
364
368
|
function Ka(a) {
|
|
365
369
|
if (a == Ia && ra) {
|
|
@@ -402,7 +406,7 @@ function Na(a, b) {
|
|
|
402
406
|
return Ma(c, a, b);
|
|
403
407
|
}));
|
|
404
408
|
}
|
|
405
|
-
var Oa, Pa, Ta = {
|
|
409
|
+
var Oa, Pa, Ta = {491878:(a, b, c, d, e) => {
|
|
406
410
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
407
411
|
return 0;
|
|
408
412
|
}
|
|
@@ -412,21 +416,21 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
412
416
|
window.h.I.Ba = a;
|
|
413
417
|
window.h.I.capture = b;
|
|
414
418
|
window.h.I.La = c;
|
|
415
|
-
window.h.
|
|
416
|
-
window.h.
|
|
417
|
-
window.h.
|
|
419
|
+
window.h.ia = {};
|
|
420
|
+
window.h.ia.stopped = d;
|
|
421
|
+
window.h.ia.sb = e;
|
|
418
422
|
let f = window.h;
|
|
419
423
|
f.C = [];
|
|
420
|
-
f.
|
|
421
|
-
for (var
|
|
422
|
-
if (null == f.C[
|
|
423
|
-
return f.C[
|
|
424
|
+
f.mc = function(g) {
|
|
425
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
426
|
+
if (null == f.C[n]) {
|
|
427
|
+
return f.C[n] = g, n;
|
|
424
428
|
}
|
|
425
429
|
}
|
|
426
430
|
f.C.push(g);
|
|
427
431
|
return f.C.length - 1;
|
|
428
432
|
};
|
|
429
|
-
f.
|
|
433
|
+
f.xb = function(g) {
|
|
430
434
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
431
435
|
if (null == f.C[f.C.length - 1]) {
|
|
432
436
|
f.C.pop();
|
|
@@ -435,39 +439,39 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
435
439
|
}
|
|
436
440
|
}
|
|
437
441
|
};
|
|
438
|
-
f.
|
|
439
|
-
for (var
|
|
440
|
-
if (f.C[
|
|
441
|
-
return f.
|
|
442
|
+
f.Oc = function(g) {
|
|
443
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
444
|
+
if (f.C[n] == g) {
|
|
445
|
+
return f.xb(n);
|
|
442
446
|
}
|
|
443
447
|
}
|
|
444
448
|
};
|
|
445
449
|
f.va = function(g) {
|
|
446
450
|
return f.C[g];
|
|
447
451
|
};
|
|
448
|
-
f.
|
|
452
|
+
f.wb = ["touchend", "click"];
|
|
449
453
|
f.unlock = function() {
|
|
450
454
|
for (var g = 0; g < f.C.length; ++g) {
|
|
451
|
-
var
|
|
452
|
-
null !=
|
|
453
|
-
Qa(
|
|
455
|
+
var n = f.C[g];
|
|
456
|
+
null != n && null != n.J && n.state === f.ia.sb && n.J.resume().then(() => {
|
|
457
|
+
Qa(n.kb);
|
|
454
458
|
}, p => {
|
|
455
459
|
console.error("Failed to resume audiocontext", p);
|
|
456
460
|
});
|
|
457
461
|
}
|
|
458
|
-
f.
|
|
462
|
+
f.wb.map(function(p) {
|
|
459
463
|
document.removeEventListener(p, f.unlock, !0);
|
|
460
464
|
});
|
|
461
465
|
};
|
|
462
|
-
f.
|
|
466
|
+
f.wb.map(function(g) {
|
|
463
467
|
document.addEventListener(g, f.unlock, !0);
|
|
464
468
|
});
|
|
465
469
|
}
|
|
466
470
|
window.h.Da += 1;
|
|
467
471
|
return 1;
|
|
468
|
-
},
|
|
472
|
+
}, 494056:() => {
|
|
469
473
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
470
|
-
},
|
|
474
|
+
}, 494220:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 494324:() => {
|
|
471
475
|
try {
|
|
472
476
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
473
477
|
a.close();
|
|
@@ -475,19 +479,19 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
475
479
|
} catch (c) {
|
|
476
480
|
return 0;
|
|
477
481
|
}
|
|
478
|
-
},
|
|
482
|
+
}, 494495:(a, b, c, d, e, f) => {
|
|
479
483
|
if ("undefined" === typeof window.h) {
|
|
480
484
|
return -1;
|
|
481
485
|
}
|
|
482
|
-
var g = {},
|
|
483
|
-
a == window.h.I.Ba && 0 != c && (
|
|
484
|
-
g.J = new (window.AudioContext || window.webkitAudioContext)(
|
|
486
|
+
var g = {}, n = {};
|
|
487
|
+
a == window.h.I.Ba && 0 != c && (n.sampleRate = c);
|
|
488
|
+
g.J = new (window.AudioContext || window.webkitAudioContext)(n);
|
|
485
489
|
g.J.suspend();
|
|
486
|
-
g.state = window.h.
|
|
490
|
+
g.state = window.h.ia.stopped;
|
|
487
491
|
c = 0;
|
|
488
492
|
a != window.h.I.Ba && (c = b);
|
|
489
|
-
g.
|
|
490
|
-
g.
|
|
493
|
+
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
494
|
+
g.Z.onaudioprocess = function(p) {
|
|
491
495
|
if (null == g.wa || 0 == g.wa.length) {
|
|
492
496
|
g.wa = new Float32Array(wa.buffer, e, d * b);
|
|
493
497
|
}
|
|
@@ -513,35 +517,35 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
513
517
|
};
|
|
514
518
|
a != window.h.I.capture && a != window.h.I.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
515
519
|
g.Ea = g.J.createMediaStreamSource(p);
|
|
516
|
-
g.Ea.connect(g.
|
|
517
|
-
g.
|
|
520
|
+
g.Ea.connect(g.Z);
|
|
521
|
+
g.Z.connect(g.J.destination);
|
|
518
522
|
}).catch(function(p) {
|
|
519
523
|
console.log("Failed to get user media: " + p);
|
|
520
524
|
});
|
|
521
|
-
a == window.h.I.Ba && g.
|
|
522
|
-
g.
|
|
523
|
-
return window.h.
|
|
524
|
-
},
|
|
525
|
+
a == window.h.I.Ba && g.Z.connect(g.J.destination);
|
|
526
|
+
g.kb = f;
|
|
527
|
+
return window.h.mc(g);
|
|
528
|
+
}, 497372:a => window.h.va(a).J.sampleRate, 497445:a => {
|
|
525
529
|
a = window.h.va(a);
|
|
526
|
-
void 0 !== a.
|
|
527
|
-
}, a.
|
|
530
|
+
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
531
|
+
}, a.Z.disconnect(), a.Z = void 0);
|
|
528
532
|
void 0 !== a.Ea && (a.Ea.disconnect(), a.Ea = void 0);
|
|
529
533
|
a.J.close();
|
|
530
534
|
a.J = void 0;
|
|
531
|
-
a.
|
|
532
|
-
},
|
|
533
|
-
window.h.
|
|
534
|
-
},
|
|
535
|
+
a.kb = void 0;
|
|
536
|
+
}, 497845:a => {
|
|
537
|
+
window.h.xb(a);
|
|
538
|
+
}, 497895:a => {
|
|
535
539
|
a = window.h.va(a);
|
|
536
540
|
a.J.resume();
|
|
537
|
-
a.state = window.h.
|
|
538
|
-
},
|
|
541
|
+
a.state = window.h.ia.sb;
|
|
542
|
+
}, 498034:a => {
|
|
539
543
|
a = window.h.va(a);
|
|
540
544
|
a.J.suspend();
|
|
541
|
-
a.state = window.h.
|
|
545
|
+
a.state = window.h.ia.stopped;
|
|
542
546
|
}}, Ua = a => {
|
|
543
547
|
for (; 0 < a.length;) {
|
|
544
|
-
a.shift()(
|
|
548
|
+
a.shift()(m);
|
|
545
549
|
}
|
|
546
550
|
}, Va = (a, b) => {
|
|
547
551
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -636,8 +640,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
|
|
|
636
640
|
for (var f = 0; f < a.length; ++f) {
|
|
637
641
|
var g = a.charCodeAt(f);
|
|
638
642
|
if (55296 <= g && 57343 >= g) {
|
|
639
|
-
var
|
|
640
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
643
|
+
var n = a.charCodeAt(++f);
|
|
644
|
+
g = 65536 + ((g & 1023) << 10) | n & 1023;
|
|
641
645
|
}
|
|
642
646
|
if (127 >= g) {
|
|
643
647
|
if (c >= d) {
|
|
@@ -694,13 +698,13 @@ var jb = {open:function(a) {
|
|
|
694
698
|
}, ua:function(a) {
|
|
695
699
|
a.s.U.ua(a.s);
|
|
696
700
|
}, read:function(a, b, c, d) {
|
|
697
|
-
if (!a.s || !a.s.U.
|
|
701
|
+
if (!a.s || !a.s.U.eb) {
|
|
698
702
|
throw new M(60);
|
|
699
703
|
}
|
|
700
704
|
for (var e = 0, f = 0; f < d; f++) {
|
|
701
705
|
try {
|
|
702
|
-
var g = a.s.U.
|
|
703
|
-
} catch (
|
|
706
|
+
var g = a.s.U.eb(a.s);
|
|
707
|
+
} catch (n) {
|
|
704
708
|
throw new M(29);
|
|
705
709
|
}
|
|
706
710
|
if (void 0 === g && 0 === e) {
|
|
@@ -727,7 +731,7 @@ var jb = {open:function(a) {
|
|
|
727
731
|
}
|
|
728
732
|
d && (a.node.timestamp = Date.now());
|
|
729
733
|
return e;
|
|
730
|
-
},}, kb = {
|
|
734
|
+
},}, kb = {eb:function() {
|
|
731
735
|
a: {
|
|
732
736
|
if (!cb.length) {
|
|
733
737
|
var a = null;
|
|
@@ -745,11 +749,11 @@ var jb = {open:function(a) {
|
|
|
745
749
|
null === b || 10 === b ? (qa(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
746
750
|
}, ua:function(a) {
|
|
747
751
|
a.D && 0 < a.D.length && (qa(L(a.D, 0)), a.D = []);
|
|
748
|
-
}, Ub:function() {
|
|
749
|
-
return {sc:25856, uc:5, rc:191, tc:35387, qc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
750
752
|
}, Vb:function() {
|
|
751
|
-
return 0;
|
|
753
|
+
return {tc:25856, vc:5, sc:191, uc:35387, rc:[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,]};
|
|
752
754
|
}, Wb:function() {
|
|
755
|
+
return 0;
|
|
756
|
+
}, Xb:function() {
|
|
753
757
|
return [24, 80];
|
|
754
758
|
},}, lb = {Oa:function(a, b) {
|
|
755
759
|
null === b || 10 === b ? (z(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
@@ -766,29 +770,29 @@ var N = {O:null, T() {
|
|
|
766
770
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
767
771
|
throw new M(63);
|
|
768
772
|
}
|
|
769
|
-
N.O || (N.O = {dir:{node:{
|
|
773
|
+
N.O || (N.O = {dir:{node:{Y:N.l.Y, P:N.l.P, ma:N.l.ma, za:N.l.za, qb:N.l.qb, vb:N.l.vb, rb:N.l.rb, ob:N.l.ob, Fa:N.l.Fa}, stream:{ba:N.m.ba}}, file:{node:{Y:N.l.Y, P:N.l.P}, stream:{ba:N.m.ba, read:N.m.read, write:N.m.write, ta:N.m.ta, gb:N.m.gb, ib:N.m.ib}}, link:{node:{Y:N.l.Y, P:N.l.P, na:N.l.na}, stream:{}}, Wa:{node:{Y:N.l.Y, P:N.l.P}, stream:nb}});
|
|
770
774
|
c = ob(a, b, c, d);
|
|
771
|
-
16384 === (c.mode & 61440) ? (c.l = N.O.dir.node, c.m = N.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = N.O.file.node, c.m = N.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = N.O.link.node, c.m = N.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = N.O.
|
|
775
|
+
16384 === (c.mode & 61440) ? (c.l = N.O.dir.node, c.m = N.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = N.O.file.node, c.m = N.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = N.O.link.node, c.m = N.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = N.O.Wa.node, c.m = N.O.Wa.stream);
|
|
772
776
|
c.timestamp = Date.now();
|
|
773
777
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
774
778
|
return c;
|
|
775
|
-
},
|
|
779
|
+
}, Ac(a) {
|
|
776
780
|
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
777
|
-
}, l:{
|
|
781
|
+
}, l:{Y(a) {
|
|
778
782
|
var b = {};
|
|
779
|
-
b.
|
|
780
|
-
b.
|
|
783
|
+
b.yc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
784
|
+
b.Cc = a.id;
|
|
781
785
|
b.mode = a.mode;
|
|
782
|
-
b.
|
|
786
|
+
b.Kc = 1;
|
|
783
787
|
b.uid = 0;
|
|
784
|
-
b.
|
|
788
|
+
b.Bc = 0;
|
|
785
789
|
b.Ca = a.Ca;
|
|
786
790
|
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;
|
|
787
|
-
b.
|
|
788
|
-
b.
|
|
789
|
-
b.
|
|
790
|
-
b.
|
|
791
|
-
b.
|
|
791
|
+
b.pc = new Date(a.timestamp);
|
|
792
|
+
b.Ic = new Date(a.timestamp);
|
|
793
|
+
b.wc = new Date(a.timestamp);
|
|
794
|
+
b.Db = 4096;
|
|
795
|
+
b.qc = Math.ceil(b.size / b.Db);
|
|
792
796
|
return b;
|
|
793
797
|
}, P(a, b) {
|
|
794
798
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -807,7 +811,7 @@ var N = {O:null, T() {
|
|
|
807
811
|
throw pb[44];
|
|
808
812
|
}, za(a, b, c, d) {
|
|
809
813
|
return N.createNode(a, b, c, d);
|
|
810
|
-
},
|
|
814
|
+
}, qb(a, b, c) {
|
|
811
815
|
if (16384 === (a.mode & 61440)) {
|
|
812
816
|
try {
|
|
813
817
|
var d = qb(b, c);
|
|
@@ -825,17 +829,17 @@ var N = {O:null, T() {
|
|
|
825
829
|
b.j[c] = a;
|
|
826
830
|
b.timestamp = a.parent.timestamp;
|
|
827
831
|
a.parent = b;
|
|
828
|
-
},
|
|
832
|
+
}, vb(a, b) {
|
|
829
833
|
delete a.j[b];
|
|
830
834
|
a.timestamp = Date.now();
|
|
831
|
-
},
|
|
835
|
+
}, rb(a, b) {
|
|
832
836
|
var c = qb(a, b), d;
|
|
833
837
|
for (d in c.j) {
|
|
834
838
|
throw new M(55);
|
|
835
839
|
}
|
|
836
840
|
delete a.j[b];
|
|
837
841
|
a.timestamp = Date.now();
|
|
838
|
-
},
|
|
842
|
+
}, ob(a) {
|
|
839
843
|
var b = [".", ".."], c;
|
|
840
844
|
for (c in a.j) {
|
|
841
845
|
a.j.hasOwnProperty(c) && b.push(c);
|
|
@@ -892,7 +896,7 @@ var N = {O:null, T() {
|
|
|
892
896
|
}
|
|
893
897
|
a.v = Math.max(a.v, e + d);
|
|
894
898
|
return d;
|
|
895
|
-
},
|
|
899
|
+
}, ba(a, b, c) {
|
|
896
900
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
897
901
|
if (0 > b) {
|
|
898
902
|
throw new M(28);
|
|
@@ -901,7 +905,7 @@ var N = {O:null, T() {
|
|
|
901
905
|
}, ta(a, b, c) {
|
|
902
906
|
mb(a.node, b + c);
|
|
903
907
|
a.node.v = Math.max(a.node.v, b + c);
|
|
904
|
-
},
|
|
908
|
+
}, gb(a, b, c, d, e) {
|
|
905
909
|
if (32768 !== (a.node.mode & 61440)) {
|
|
906
910
|
throw new M(43);
|
|
907
911
|
}
|
|
@@ -921,7 +925,7 @@ var N = {O:null, T() {
|
|
|
921
925
|
c = !1, b = a.byteOffset;
|
|
922
926
|
}
|
|
923
927
|
return {o:b, M:c};
|
|
924
|
-
},
|
|
928
|
+
}, ib(a, b, c, d) {
|
|
925
929
|
N.m.write(a, b, 0, d, c, !1);
|
|
926
930
|
return 0;
|
|
927
931
|
},},};
|
|
@@ -936,7 +940,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
936
940
|
if (!a) {
|
|
937
941
|
return {path:"", node:null};
|
|
938
942
|
}
|
|
939
|
-
b = Object.assign({
|
|
943
|
+
b = Object.assign({bb:!0, Qa:0}, b);
|
|
940
944
|
if (8 < b.Qa) {
|
|
941
945
|
throw new M(32);
|
|
942
946
|
}
|
|
@@ -948,8 +952,8 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
948
952
|
}
|
|
949
953
|
c = qb(c, a[e]);
|
|
950
954
|
d = Wa(d + "/" + a[e]);
|
|
951
|
-
c.Aa && (!f || f && b.
|
|
952
|
-
if (!f || b
|
|
955
|
+
c.Aa && (!f || f && b.bb) && (c = c.Aa.root);
|
|
956
|
+
if (!f || b.ab) {
|
|
953
957
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
954
958
|
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
955
959
|
throw new M(32);
|
|
@@ -961,7 +965,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
961
965
|
}, Bb = a => {
|
|
962
966
|
for (var b;;) {
|
|
963
967
|
if (a === a.parent) {
|
|
964
|
-
return a = a.T.
|
|
968
|
+
return a = a.T.hb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
965
969
|
}
|
|
966
970
|
b = b ? `${a.name}/${b}` : a.name;
|
|
967
971
|
a = a.parent;
|
|
@@ -976,7 +980,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
976
980
|
if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
977
981
|
throw new M(c, a);
|
|
978
982
|
}
|
|
979
|
-
for (c = xb[Cb(a.id, b)]; c; c = c
|
|
983
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.$b) {
|
|
980
984
|
var d = c.name;
|
|
981
985
|
if (c.parent.id === a.id && d === b) {
|
|
982
986
|
return c;
|
|
@@ -986,7 +990,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
986
990
|
}, ob = (a, b, c, d) => {
|
|
987
991
|
a = new Eb(a, b, c, d);
|
|
988
992
|
b = Cb(a.parent.id, a.name);
|
|
989
|
-
a
|
|
993
|
+
a.$b = xb[b];
|
|
990
994
|
return xb[b] = a;
|
|
991
995
|
}, Fb = a => {
|
|
992
996
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -1041,12 +1045,12 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1041
1045
|
},},}));
|
|
1042
1046
|
a = Object.assign(new Jb(), a);
|
|
1043
1047
|
-1 == b && (b = Hb());
|
|
1044
|
-
a.
|
|
1048
|
+
a.X = b;
|
|
1045
1049
|
return vb[b] = a;
|
|
1046
1050
|
}, nb = {open:a => {
|
|
1047
1051
|
a.m = ub[a.node.Ca].m;
|
|
1048
1052
|
a.m.open && a.m.open(a);
|
|
1049
|
-
},
|
|
1053
|
+
}, ba:() => {
|
|
1050
1054
|
throw new M(70);
|
|
1051
1055
|
},}, ib = (a, b) => {
|
|
1052
1056
|
ub[a] = {m:b};
|
|
@@ -1056,7 +1060,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1056
1060
|
throw new M(10);
|
|
1057
1061
|
}
|
|
1058
1062
|
if (!c && !d) {
|
|
1059
|
-
var e = Ab(b, {
|
|
1063
|
+
var e = Ab(b, {bb:!1});
|
|
1060
1064
|
b = e.path;
|
|
1061
1065
|
e = e.node;
|
|
1062
1066
|
if (e.Aa) {
|
|
@@ -1066,11 +1070,11 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1066
1070
|
throw new M(54);
|
|
1067
1071
|
}
|
|
1068
1072
|
}
|
|
1069
|
-
b = {type:a,
|
|
1073
|
+
b = {type:a, Mc:{}, hb:b, Zb:[]};
|
|
1070
1074
|
a = a.T(b);
|
|
1071
1075
|
a.T = b;
|
|
1072
1076
|
b.root = a;
|
|
1073
|
-
c ? tb = a : e && (e.Aa = b, e.T && e.T.
|
|
1077
|
+
c ? tb = a : e && (e.Aa = b, e.T && e.T.Zb.push(b));
|
|
1074
1078
|
}, O = (a, b, c) => {
|
|
1075
1079
|
var d = Ab(a, {parent:!0}).node;
|
|
1076
1080
|
a = Ya(a);
|
|
@@ -1131,7 +1135,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1131
1135
|
} else {
|
|
1132
1136
|
a = Wa(a);
|
|
1133
1137
|
try {
|
|
1134
|
-
e = Ab(a, {
|
|
1138
|
+
e = Ab(a, {ab:!(b & 131072)}).node;
|
|
1135
1139
|
} catch (f) {
|
|
1136
1140
|
}
|
|
1137
1141
|
}
|
|
@@ -1157,7 +1161,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1157
1161
|
}
|
|
1158
1162
|
if (b & 512 && !d) {
|
|
1159
1163
|
c = e;
|
|
1160
|
-
c = "string" == typeof c ? Ab(c, {
|
|
1164
|
+
c = "string" == typeof c ? Ab(c, {ab:!0}).node : c;
|
|
1161
1165
|
if (!c.l.P) {
|
|
1162
1166
|
throw new M(63);
|
|
1163
1167
|
}
|
|
@@ -1173,30 +1177,30 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1173
1177
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1174
1178
|
}
|
|
1175
1179
|
b &= -131713;
|
|
1176
|
-
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1180
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
|
|
1177
1181
|
e.m.open && e.m.open(e);
|
|
1178
|
-
!
|
|
1182
|
+
!m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1179
1183
|
return e;
|
|
1180
1184
|
}, Qb = (a, b, c) => {
|
|
1181
|
-
if (null === a.
|
|
1185
|
+
if (null === a.X) {
|
|
1182
1186
|
throw new M(8);
|
|
1183
1187
|
}
|
|
1184
|
-
if (!a.seekable || !a.m.
|
|
1188
|
+
if (!a.seekable || !a.m.ba) {
|
|
1185
1189
|
throw new M(70);
|
|
1186
1190
|
}
|
|
1187
1191
|
if (0 != c && 1 != c && 2 != c) {
|
|
1188
1192
|
throw new M(28);
|
|
1189
1193
|
}
|
|
1190
|
-
a.position = a.m.
|
|
1191
|
-
a.
|
|
1194
|
+
a.position = a.m.ba(a, b, c);
|
|
1195
|
+
a.nc = [];
|
|
1192
1196
|
}, Rb = () => {
|
|
1193
1197
|
M || (M = function(a, b) {
|
|
1194
1198
|
this.name = "ErrnoError";
|
|
1195
1199
|
this.node = b;
|
|
1196
|
-
this.
|
|
1197
|
-
this
|
|
1200
|
+
this.cc = function(c) {
|
|
1201
|
+
this.aa = c;
|
|
1198
1202
|
};
|
|
1199
|
-
this.
|
|
1203
|
+
this.cc(a);
|
|
1200
1204
|
this.message = "FS error";
|
|
1201
1205
|
}, M.prototype = Error(), M.prototype.constructor = M, [44].forEach(a => {
|
|
1202
1206
|
pb[a] = new M(a);
|
|
@@ -1211,7 +1215,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1211
1215
|
f.seekable = !1;
|
|
1212
1216
|
}, close:() => {
|
|
1213
1217
|
c && c.buffer && c.buffer.length && c(10);
|
|
1214
|
-
}, read:(f, g,
|
|
1218
|
+
}, read:(f, g, n, p) => {
|
|
1215
1219
|
for (var l = 0, t = 0; t < p; t++) {
|
|
1216
1220
|
try {
|
|
1217
1221
|
var u = b();
|
|
@@ -1225,14 +1229,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1225
1229
|
break;
|
|
1226
1230
|
}
|
|
1227
1231
|
l++;
|
|
1228
|
-
g[
|
|
1232
|
+
g[n + t] = u;
|
|
1229
1233
|
}
|
|
1230
1234
|
l && (f.node.timestamp = Date.now());
|
|
1231
1235
|
return l;
|
|
1232
|
-
}, write:(f, g,
|
|
1236
|
+
}, write:(f, g, n, p) => {
|
|
1233
1237
|
for (var l = 0; l < p; l++) {
|
|
1234
1238
|
try {
|
|
1235
|
-
c(g[
|
|
1239
|
+
c(g[n + l]);
|
|
1236
1240
|
} catch (t) {
|
|
1237
1241
|
throw new M(29);
|
|
1238
1242
|
}
|
|
@@ -1262,7 +1266,7 @@ function Zb(a, b) {
|
|
|
1262
1266
|
}
|
|
1263
1267
|
function $b() {
|
|
1264
1268
|
this.M = [void 0];
|
|
1265
|
-
this.
|
|
1269
|
+
this.cb = [];
|
|
1266
1270
|
}
|
|
1267
1271
|
var P = new $b(), ac = void 0;
|
|
1268
1272
|
function Q(a) {
|
|
@@ -1282,7 +1286,7 @@ var R = a => {
|
|
|
1282
1286
|
case !1:
|
|
1283
1287
|
return 4;
|
|
1284
1288
|
default:
|
|
1285
|
-
return P.ta({
|
|
1289
|
+
return P.ta({pb:1, value:a});
|
|
1286
1290
|
}
|
|
1287
1291
|
};
|
|
1288
1292
|
function cc(a) {
|
|
@@ -1310,7 +1314,7 @@ var fc = [];
|
|
|
1310
1314
|
function gc() {
|
|
1311
1315
|
for (; fc.length;) {
|
|
1312
1316
|
var a = fc.pop();
|
|
1313
|
-
a.g.
|
|
1317
|
+
a.g.ha = !1;
|
|
1314
1318
|
a["delete"]();
|
|
1315
1319
|
}
|
|
1316
1320
|
}
|
|
@@ -1348,7 +1352,7 @@ function sc(a, b, c) {
|
|
|
1348
1352
|
return null;
|
|
1349
1353
|
}
|
|
1350
1354
|
a = sc(a, b, c.A);
|
|
1351
|
-
return null === a ? null : c.
|
|
1355
|
+
return null === a ? null : c.Hb(a);
|
|
1352
1356
|
}
|
|
1353
1357
|
var tc = {};
|
|
1354
1358
|
function uc(a, b) {
|
|
@@ -1394,20 +1398,20 @@ function Bc(a) {
|
|
|
1394
1398
|
}
|
|
1395
1399
|
var Cc = {}, Dc = {};
|
|
1396
1400
|
function T(a, b, c) {
|
|
1397
|
-
function d(
|
|
1398
|
-
|
|
1399
|
-
|
|
1401
|
+
function d(n) {
|
|
1402
|
+
n = c(n);
|
|
1403
|
+
n.length !== a.length && wc("Mismatched type converter count");
|
|
1400
1404
|
for (var p = 0; p < a.length; ++p) {
|
|
1401
|
-
U(a[p],
|
|
1405
|
+
U(a[p], n[p]);
|
|
1402
1406
|
}
|
|
1403
1407
|
}
|
|
1404
|
-
a.forEach(function(
|
|
1405
|
-
Dc[
|
|
1408
|
+
a.forEach(function(n) {
|
|
1409
|
+
Dc[n] = b;
|
|
1406
1410
|
});
|
|
1407
1411
|
var e = Array(b.length), f = [], g = 0;
|
|
1408
|
-
b.forEach((
|
|
1409
|
-
kc.hasOwnProperty(
|
|
1410
|
-
e[p] = kc[
|
|
1412
|
+
b.forEach((n, p) => {
|
|
1413
|
+
kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
|
|
1414
|
+
e[p] = kc[n];
|
|
1411
1415
|
++g;
|
|
1412
1416
|
g === f.length && d(e);
|
|
1413
1417
|
}));
|
|
@@ -1432,7 +1436,7 @@ function Fc(a, b, c = {}) {
|
|
|
1432
1436
|
var d = b.name;
|
|
1433
1437
|
a || Q(`type "${d}" must have a positive integer typeid pointer`);
|
|
1434
1438
|
if (kc.hasOwnProperty(a)) {
|
|
1435
|
-
if (c.
|
|
1439
|
+
if (c.Sb) {
|
|
1436
1440
|
return;
|
|
1437
1441
|
}
|
|
1438
1442
|
Q(`Cannot register type '${d}' twice`);
|
|
@@ -1460,22 +1464,22 @@ function Ic(a, b, c) {
|
|
|
1460
1464
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1461
1465
|
};
|
|
1462
1466
|
a[b].B = [];
|
|
1463
|
-
a[b].B[d.
|
|
1467
|
+
a[b].B[d.ga] = d;
|
|
1464
1468
|
}
|
|
1465
1469
|
}
|
|
1466
1470
|
function Jc(a, b, c) {
|
|
1467
|
-
|
|
1471
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(m, a, a), m.hasOwnProperty(c) && Q(`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].Lc = c));
|
|
1468
1472
|
}
|
|
1469
|
-
function Kc(a, b, c, d, e, f, g,
|
|
1473
|
+
function Kc(a, b, c, d, e, f, g, n) {
|
|
1470
1474
|
this.name = a;
|
|
1471
1475
|
this.constructor = b;
|
|
1472
1476
|
this.N = c;
|
|
1473
1477
|
this.V = d;
|
|
1474
1478
|
this.A = e;
|
|
1475
|
-
this.
|
|
1479
|
+
this.Mb = f;
|
|
1476
1480
|
this.pa = g;
|
|
1477
|
-
this.
|
|
1478
|
-
this.
|
|
1481
|
+
this.Hb = n;
|
|
1482
|
+
this.lb = [];
|
|
1479
1483
|
}
|
|
1480
1484
|
function Lc(a, b, c) {
|
|
1481
1485
|
for (; b !== c;) {
|
|
@@ -1506,7 +1510,7 @@ function Oc(a, b) {
|
|
|
1506
1510
|
!this.xa && b.g.u.xa && Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1507
1511
|
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1508
1512
|
if (this.ya) {
|
|
1509
|
-
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.
|
|
1513
|
+
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.hc) {
|
|
1510
1514
|
case 0:
|
|
1511
1515
|
b.g.L === this ? c = b.g.G : Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1512
1516
|
break;
|
|
@@ -1518,7 +1522,7 @@ function Oc(a, b) {
|
|
|
1518
1522
|
c = b.g.G;
|
|
1519
1523
|
} else {
|
|
1520
1524
|
var d = b.clone();
|
|
1521
|
-
c = this.
|
|
1525
|
+
c = this.bc(c, bc(function() {
|
|
1522
1526
|
d["delete"]();
|
|
1523
1527
|
}));
|
|
1524
1528
|
null !== a && a.push(this.V, c);
|
|
@@ -1545,12 +1549,12 @@ function Qc(a, b, c, d) {
|
|
|
1545
1549
|
this.Na = c;
|
|
1546
1550
|
this.xa = d;
|
|
1547
1551
|
this.ya = !1;
|
|
1548
|
-
this.V = this.
|
|
1552
|
+
this.V = this.bc = this.Pa = this.nb = this.hc = this.ac = void 0;
|
|
1549
1553
|
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1550
1554
|
}
|
|
1551
1555
|
function Rc(a, b, c) {
|
|
1552
|
-
|
|
1553
|
-
void 0 !==
|
|
1556
|
+
m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1557
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
|
|
1554
1558
|
}
|
|
1555
1559
|
var Sc = [], Tc = a => {
|
|
1556
1560
|
var b = Sc[a];
|
|
@@ -1562,7 +1566,7 @@ var Sc = [], Tc = a => {
|
|
|
1562
1566
|
c.length = 0;
|
|
1563
1567
|
Object.assign(c, arguments);
|
|
1564
1568
|
if (a.includes("j")) {
|
|
1565
|
-
var d =
|
|
1569
|
+
var d = m["dynCall_" + a];
|
|
1566
1570
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1567
1571
|
} else {
|
|
1568
1572
|
d = Tc(b).apply(null, c);
|
|
@@ -1588,10 +1592,10 @@ function Wc(a, b) {
|
|
|
1588
1592
|
function Xc(a, b, c, d, e) {
|
|
1589
1593
|
var f = b.length;
|
|
1590
1594
|
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1591
|
-
var g = null !== b[1] && null !== c,
|
|
1595
|
+
var g = null !== b[1] && null !== c, n = !1;
|
|
1592
1596
|
for (c = 1; c < b.length; ++c) {
|
|
1593
1597
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1594
|
-
|
|
1598
|
+
n = !0;
|
|
1595
1599
|
break;
|
|
1596
1600
|
}
|
|
1597
1601
|
}
|
|
@@ -1609,7 +1613,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1609
1613
|
t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
|
|
1610
1614
|
}
|
|
1611
1615
|
q = d.apply(null, u);
|
|
1612
|
-
if (
|
|
1616
|
+
if (n) {
|
|
1613
1617
|
Ac(x);
|
|
1614
1618
|
} else {
|
|
1615
1619
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
@@ -1634,7 +1638,7 @@ function Zc(a, b, c) {
|
|
|
1634
1638
|
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1635
1639
|
}
|
|
1636
1640
|
function $c(a) {
|
|
1637
|
-
a >= P.h && 0 === --P.get(a).
|
|
1641
|
+
a >= P.h && 0 === --P.get(a).pb && P.Rb(a);
|
|
1638
1642
|
}
|
|
1639
1643
|
function ad(a, b, c) {
|
|
1640
1644
|
switch(b) {
|
|
@@ -1787,10 +1791,10 @@ function pd(a, b) {
|
|
|
1787
1791
|
}
|
|
1788
1792
|
var qd = [], rd = [];
|
|
1789
1793
|
function sd(a) {
|
|
1790
|
-
a.
|
|
1794
|
+
a.zc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1791
1795
|
}
|
|
1792
1796
|
function td(a) {
|
|
1793
|
-
a.
|
|
1797
|
+
a.Hc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1794
1798
|
}
|
|
1795
1799
|
var ud = 1, vd = [], W = [], wd = [], xd = [], yd = [], zd = [], Ad = [], r = [], Bd = {};
|
|
1796
1800
|
function X(a) {
|
|
@@ -1804,19 +1808,19 @@ function ha(a) {
|
|
|
1804
1808
|
}
|
|
1805
1809
|
function ja(a) {
|
|
1806
1810
|
Dd = r[a];
|
|
1807
|
-
|
|
1811
|
+
m.xc = Z = Dd && Dd.H;
|
|
1808
1812
|
return !(a && !Z);
|
|
1809
1813
|
}
|
|
1810
1814
|
function ia(a) {
|
|
1811
1815
|
a || (a = Dd);
|
|
1812
|
-
if (!a.
|
|
1813
|
-
a.
|
|
1816
|
+
if (!a.Tb) {
|
|
1817
|
+
a.Tb = !0;
|
|
1814
1818
|
var b = a.H;
|
|
1815
1819
|
sd(b);
|
|
1816
1820
|
td(b);
|
|
1817
|
-
2 <= a.version && (b.
|
|
1818
|
-
if (2 > a.version || !b.
|
|
1819
|
-
b.
|
|
1821
|
+
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1822
|
+
if (2 > a.version || !b.Za) {
|
|
1823
|
+
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1820
1824
|
}
|
|
1821
1825
|
Ed(b);
|
|
1822
1826
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
@@ -1826,7 +1830,7 @@ function ia(a) {
|
|
|
1826
1830
|
}
|
|
1827
1831
|
var Cd, Dd;
|
|
1828
1832
|
function Ed(a) {
|
|
1829
|
-
a.
|
|
1833
|
+
a.Jc = a.getExtension("WEBGL_multi_draw");
|
|
1830
1834
|
}
|
|
1831
1835
|
var Fd = {}, Hd = () => {
|
|
1832
1836
|
if (!Gd) {
|
|
@@ -1973,7 +1977,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1973
1977
|
0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
|
|
1974
1978
|
return y;
|
|
1975
1979
|
}
|
|
1976
|
-
function
|
|
1980
|
+
function n(k) {
|
|
1977
1981
|
switch(k.getDay()) {
|
|
1978
1982
|
case 0:
|
|
1979
1983
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -1992,8 +1996,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1992
1996
|
}
|
|
1993
1997
|
}
|
|
1994
1998
|
function p(k) {
|
|
1995
|
-
var q = k.
|
|
1996
|
-
for (k = new Date((new Date(k.
|
|
1999
|
+
var q = k.ca;
|
|
2000
|
+
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < q;) {
|
|
1997
2001
|
var v = k.getMonth(), y = (Od(k.getFullYear()) ? Pd : Qd)[v];
|
|
1998
2002
|
if (q > y - k.getDate()) {
|
|
1999
2003
|
q -= y - k.getDate() + 1, k.setDate(1), 11 > v ? k.setMonth(v + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
@@ -2003,43 +2007,43 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2003
2007
|
}
|
|
2004
2008
|
}
|
|
2005
2009
|
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2006
|
-
q =
|
|
2007
|
-
v =
|
|
2010
|
+
q = n(new Date(k.getFullYear(), 0, 4));
|
|
2011
|
+
v = n(v);
|
|
2008
2012
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2009
2013
|
}
|
|
2010
2014
|
var l = J[d + 40 >> 2];
|
|
2011
|
-
d = {
|
|
2015
|
+
d = {kc:J[d >> 2], jc:J[d + 4 >> 2], Ga:J[d + 8 >> 2], Ra:J[d + 12 >> 2], Ha:J[d + 16 >> 2], da:J[d + 20 >> 2], R:J[d + 24 >> 2], ca:J[d + 28 >> 2], Nc:J[d + 32 >> 2], ic:J[d + 36 >> 2], lc:l ? l ? L(G, l) : "" : ""};
|
|
2012
2016
|
c = c ? L(G, c) : "";
|
|
2013
2017
|
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2014
2018
|
for (var t in l) {
|
|
2015
2019
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
2016
2020
|
}
|
|
2017
2021
|
var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2018
|
-
l = {"%a":k => u[k.R].substring(0, 3), "%A":k => u[k.R], "%b":k => x[k.Ha].substring(0, 3), "%B":k => x[k.Ha], "%C":k => f((k.
|
|
2022
|
+
l = {"%a":k => u[k.R].substring(0, 3), "%A":k => u[k.R], "%b":k => x[k.Ha].substring(0, 3), "%B":k => x[k.Ha], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Ra, 2), "%e":k => e(k.Ra, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Ga, 2), "%I":k => {
|
|
2019
2023
|
k = k.Ga;
|
|
2020
2024
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2021
2025
|
return f(k, 2);
|
|
2022
2026
|
}, "%j":k => {
|
|
2023
|
-
for (var q = 0, v = 0; v <= k.Ha - 1; q += (Od(k.
|
|
2027
|
+
for (var q = 0, v = 0; v <= k.Ha - 1; q += (Od(k.da + 1900) ? Pd : Qd)[v++]) {
|
|
2024
2028
|
}
|
|
2025
2029
|
return f(k.Ra + q, 3);
|
|
2026
|
-
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.
|
|
2027
|
-
var q = Math.floor((k.
|
|
2028
|
-
2 >= (k.R + 371 - k.
|
|
2030
|
+
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.jc, 2), "%n":() => "\n", "%p":k => 0 <= k.Ga && 12 > k.Ga ? "AM" : "PM", "%S":k => f(k.kc, 2), "%t":() => "\t", "%u":k => k.R || 7, "%U":k => f(Math.floor((k.ca + 7 - k.R) / 7), 2), "%V":k => {
|
|
2031
|
+
var q = Math.floor((k.ca + 7 - (k.R + 6) % 7) / 7);
|
|
2032
|
+
2 >= (k.R + 371 - k.ca - 2) % 7 && q++;
|
|
2029
2033
|
if (q) {
|
|
2030
|
-
53 == q && (v = (k.R + 371 - k.
|
|
2034
|
+
53 == q && (v = (k.R + 371 - k.ca) % 7, 4 == v || 3 == v && Od(k.da) || (q = 1));
|
|
2031
2035
|
} else {
|
|
2032
2036
|
q = 52;
|
|
2033
|
-
var v = (k.R + 7 - k.
|
|
2034
|
-
(4 == v || 5 == v && Od(k.
|
|
2037
|
+
var v = (k.R + 7 - k.ca - 1) % 7;
|
|
2038
|
+
(4 == v || 5 == v && Od(k.da % 400 - 1)) && q++;
|
|
2035
2039
|
}
|
|
2036
2040
|
return f(q, 2);
|
|
2037
|
-
}, "%w":k => k.R, "%W":k => f(Math.floor((k.
|
|
2038
|
-
k = k.
|
|
2041
|
+
}, "%w":k => k.R, "%W":k => f(Math.floor((k.ca + 7 - (k.R + 6) % 7) / 7), 2), "%y":k => (k.da + 1900).toString().substring(2), "%Y":k => k.da + 1900, "%z":k => {
|
|
2042
|
+
k = k.ic;
|
|
2039
2043
|
var q = 0 <= k;
|
|
2040
2044
|
k = Math.abs(k) / 60;
|
|
2041
2045
|
return (q ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
|
|
2042
|
-
}, "%Z":k => k.
|
|
2046
|
+
}, "%Z":k => k.lc, "%%":() => "%"};
|
|
2043
2047
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2044
2048
|
for (t in l) {
|
|
2045
2049
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
|
|
@@ -2104,7 +2108,7 @@ O("/home/web_user", 16895, 0);
|
|
|
2104
2108
|
var b = ob(a, "fd", 16895, 73);
|
|
2105
2109
|
b.l = {ma:(c, d) => {
|
|
2106
2110
|
var e = Ib(+d);
|
|
2107
|
-
c = {parent:null, T:{
|
|
2111
|
+
c = {parent:null, T:{hb:"fake"}, l:{na:() => e.path},};
|
|
2108
2112
|
return c.parent = c;
|
|
2109
2113
|
}};
|
|
2110
2114
|
return b;
|
|
@@ -2115,14 +2119,14 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2115
2119
|
}, has(a) {
|
|
2116
2120
|
return void 0 !== this.M[a];
|
|
2117
2121
|
}, ta(a) {
|
|
2118
|
-
var b = this.
|
|
2122
|
+
var b = this.cb.pop() || this.M.length;
|
|
2119
2123
|
this.M[b] = a;
|
|
2120
2124
|
return b;
|
|
2121
|
-
},
|
|
2125
|
+
}, Rb(a) {
|
|
2122
2126
|
this.M[a] = void 0;
|
|
2123
|
-
this.
|
|
2127
|
+
this.cb.push(a);
|
|
2124
2128
|
}});
|
|
2125
|
-
ac =
|
|
2129
|
+
ac = m.BindingError = class extends Error {
|
|
2126
2130
|
constructor(a) {
|
|
2127
2131
|
super(a);
|
|
2128
2132
|
this.name = "BindingError";
|
|
@@ -2130,33 +2134,33 @@ ac = n.BindingError = class extends Error {
|
|
|
2130
2134
|
};
|
|
2131
2135
|
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2132
2136
|
P.h = P.M.length;
|
|
2133
|
-
|
|
2137
|
+
m.count_emval_handles = function() {
|
|
2134
2138
|
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2135
2139
|
void 0 !== P.M[b] && ++a;
|
|
2136
2140
|
}
|
|
2137
2141
|
return a;
|
|
2138
2142
|
};
|
|
2139
|
-
dc =
|
|
2143
|
+
dc = m.PureVirtualError = cc("PureVirtualError");
|
|
2140
2144
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2141
2145
|
Sd[Td] = String.fromCharCode(Td);
|
|
2142
2146
|
}
|
|
2143
2147
|
ec = Sd;
|
|
2144
|
-
|
|
2148
|
+
m.getInheritedInstanceCount = function() {
|
|
2145
2149
|
return Object.keys(ic).length;
|
|
2146
2150
|
};
|
|
2147
|
-
|
|
2151
|
+
m.getLiveInheritedInstances = function() {
|
|
2148
2152
|
var a = [], b;
|
|
2149
2153
|
for (b in ic) {
|
|
2150
2154
|
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2151
2155
|
}
|
|
2152
2156
|
return a;
|
|
2153
2157
|
};
|
|
2154
|
-
|
|
2155
|
-
|
|
2158
|
+
m.flushPendingDeletes = gc;
|
|
2159
|
+
m.setDelayFunction = function(a) {
|
|
2156
2160
|
hc = a;
|
|
2157
2161
|
fc.length && hc && hc(gc);
|
|
2158
2162
|
};
|
|
2159
|
-
vc =
|
|
2163
|
+
vc = m.InternalError = class extends Error {
|
|
2160
2164
|
constructor(a) {
|
|
2161
2165
|
super(a);
|
|
2162
2166
|
this.name = "InternalError";
|
|
@@ -2177,38 +2181,38 @@ Hc.prototype.isAliasOf = function(a) {
|
|
|
2177
2181
|
};
|
|
2178
2182
|
Hc.prototype.clone = function() {
|
|
2179
2183
|
this.g.o || Gc(this);
|
|
2180
|
-
if (this.g.
|
|
2184
|
+
if (this.g.ka) {
|
|
2181
2185
|
return this.g.count.value += 1, this;
|
|
2182
2186
|
}
|
|
2183
2187
|
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2184
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2188
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ha:e.ha, ka:e.ka, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2185
2189
|
a.g.count.value += 1;
|
|
2186
|
-
a.g.
|
|
2190
|
+
a.g.ha = !1;
|
|
2187
2191
|
return a;
|
|
2188
2192
|
};
|
|
2189
2193
|
Hc.prototype["delete"] = function() {
|
|
2190
2194
|
this.g.o || Gc(this);
|
|
2191
|
-
this.g.
|
|
2195
|
+
this.g.ha && !this.g.ka && Q("Object already scheduled for deletion");
|
|
2192
2196
|
pc(this);
|
|
2193
2197
|
rc(this.g);
|
|
2194
|
-
this.g.
|
|
2198
|
+
this.g.ka || (this.g.G = void 0, this.g.o = void 0);
|
|
2195
2199
|
};
|
|
2196
2200
|
Hc.prototype.isDeleted = function() {
|
|
2197
2201
|
return !this.g.o;
|
|
2198
2202
|
};
|
|
2199
2203
|
Hc.prototype.deleteLater = function() {
|
|
2200
2204
|
this.g.o || Gc(this);
|
|
2201
|
-
this.g.
|
|
2205
|
+
this.g.ha && !this.g.ka && Q("Object already scheduled for deletion");
|
|
2202
2206
|
fc.push(this);
|
|
2203
2207
|
1 === fc.length && hc && hc(gc);
|
|
2204
|
-
this.g.
|
|
2208
|
+
this.g.ha = !0;
|
|
2205
2209
|
return this;
|
|
2206
2210
|
};
|
|
2207
|
-
Qc.prototype.
|
|
2208
|
-
this.
|
|
2211
|
+
Qc.prototype.Nb = function(a) {
|
|
2212
|
+
this.nb && (a = this.nb(a));
|
|
2209
2213
|
return a;
|
|
2210
2214
|
};
|
|
2211
|
-
Qc.prototype.
|
|
2215
|
+
Qc.prototype.Ya = function(a) {
|
|
2212
2216
|
this.V && this.V(a);
|
|
2213
2217
|
};
|
|
2214
2218
|
Qc.prototype.argPackAdvance = 8;
|
|
@@ -2220,11 +2224,11 @@ Qc.prototype.deleteObject = function(a) {
|
|
|
2220
2224
|
};
|
|
2221
2225
|
Qc.prototype.fromWireType = function(a) {
|
|
2222
2226
|
function b() {
|
|
2223
|
-
return this.ya ? xc(this.i.N, {u:this
|
|
2227
|
+
return this.ya ? xc(this.i.N, {u:this.ac, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2224
2228
|
}
|
|
2225
|
-
var c = this.
|
|
2229
|
+
var c = this.Nb(a);
|
|
2226
2230
|
if (!c) {
|
|
2227
|
-
return this.
|
|
2231
|
+
return this.Ya(a), null;
|
|
2228
2232
|
}
|
|
2229
2233
|
var d = uc(this.i, c);
|
|
2230
2234
|
if (void 0 !== d) {
|
|
@@ -2232,19 +2236,19 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2232
2236
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
2233
2237
|
}
|
|
2234
2238
|
d = d.clone();
|
|
2235
|
-
this.
|
|
2239
|
+
this.Ya(a);
|
|
2236
2240
|
return d;
|
|
2237
2241
|
}
|
|
2238
|
-
d = this.i.
|
|
2242
|
+
d = this.i.Mb(c);
|
|
2239
2243
|
d = tc[d];
|
|
2240
2244
|
if (!d) {
|
|
2241
2245
|
return b.call(this);
|
|
2242
2246
|
}
|
|
2243
|
-
d = this.xa ? d.
|
|
2247
|
+
d = this.xa ? d.Eb : d.pointerType;
|
|
2244
2248
|
var e = sc(c, this.i, d.i);
|
|
2245
2249
|
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2246
2250
|
};
|
|
2247
|
-
Vc =
|
|
2251
|
+
Vc = m.UnboundTypeError = cc("UnboundTypeError");
|
|
2248
2252
|
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2249
2253
|
Id.push(Array(Ud));
|
|
2250
2254
|
}
|
|
@@ -2255,7 +2259,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2255
2259
|
switch(b) {
|
|
2256
2260
|
case 0:
|
|
2257
2261
|
var e = Xb();
|
|
2258
|
-
return 0 > e ? -28 : Kb(d, e).
|
|
2262
|
+
return 0 > e ? -28 : Kb(d, e).X;
|
|
2259
2263
|
case 1:
|
|
2260
2264
|
case 2:
|
|
2261
2265
|
return 0;
|
|
@@ -2280,7 +2284,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2280
2284
|
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2281
2285
|
throw f;
|
|
2282
2286
|
}
|
|
2283
|
-
return -f
|
|
2287
|
+
return -f.aa;
|
|
2284
2288
|
}
|
|
2285
2289
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2286
2290
|
Wb = c;
|
|
@@ -2293,7 +2297,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2293
2297
|
if (!d.s) {
|
|
2294
2298
|
return -59;
|
|
2295
2299
|
}
|
|
2296
|
-
if (d.s.U.
|
|
2300
|
+
if (d.s.U.Vb) {
|
|
2297
2301
|
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,];
|
|
2298
2302
|
var e = Xb();
|
|
2299
2303
|
J[e >> 2] = 25856;
|
|
@@ -2315,7 +2319,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2315
2319
|
if (!d.s) {
|
|
2316
2320
|
return -59;
|
|
2317
2321
|
}
|
|
2318
|
-
if (d.s.U.
|
|
2322
|
+
if (d.s.U.Wb) {
|
|
2319
2323
|
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2320
2324
|
b.push(C[e + f + 17 >> 0]);
|
|
2321
2325
|
}
|
|
@@ -2331,15 +2335,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2331
2335
|
return d.s ? -28 : -59;
|
|
2332
2336
|
case 21531:
|
|
2333
2337
|
e = Xb();
|
|
2334
|
-
if (!d.m.
|
|
2338
|
+
if (!d.m.Ub) {
|
|
2335
2339
|
throw new M(59);
|
|
2336
2340
|
}
|
|
2337
|
-
return d.m.
|
|
2341
|
+
return d.m.Ub(d, b, e);
|
|
2338
2342
|
case 21523:
|
|
2339
2343
|
if (!d.s) {
|
|
2340
2344
|
return -59;
|
|
2341
2345
|
}
|
|
2342
|
-
d.s.U.
|
|
2346
|
+
d.s.U.Xb && (f = [24, 80], e = Xb(), I[e >> 1] = f[0], I[e + 2 >> 1] = f[1]);
|
|
2343
2347
|
return 0;
|
|
2344
2348
|
case 21524:
|
|
2345
2349
|
return d.s ? 0 : -59;
|
|
@@ -2352,7 +2356,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2352
2356
|
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2353
2357
|
throw g;
|
|
2354
2358
|
}
|
|
2355
|
-
return -g
|
|
2359
|
+
return -g.aa;
|
|
2356
2360
|
}
|
|
2357
2361
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2358
2362
|
Wb = d;
|
|
@@ -2369,20 +2373,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2369
2373
|
b = Wa(f + "/" + e);
|
|
2370
2374
|
}
|
|
2371
2375
|
var g = d ? Xb() : 0;
|
|
2372
|
-
return Pb(b, c, g).
|
|
2373
|
-
} catch (
|
|
2374
|
-
if ("undefined" == typeof Vb || "ErrnoError" !==
|
|
2375
|
-
throw
|
|
2376
|
+
return Pb(b, c, g).X;
|
|
2377
|
+
} catch (n) {
|
|
2378
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
|
|
2379
|
+
throw n;
|
|
2376
2380
|
}
|
|
2377
|
-
return -
|
|
2381
|
+
return -n.aa;
|
|
2378
2382
|
}
|
|
2379
2383
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2380
2384
|
a = S(a);
|
|
2381
2385
|
b = oc(b, "wrapper");
|
|
2382
2386
|
c = R(c);
|
|
2383
|
-
var d = [].slice, e = b.i, f = e.N, g = e.A.N,
|
|
2387
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
|
|
2384
2388
|
a = Zb(a, function() {
|
|
2385
|
-
e.A.
|
|
2389
|
+
e.A.lb.forEach(function(l) {
|
|
2386
2390
|
if (this[l] === g[l]) {
|
|
2387
2391
|
throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2388
2392
|
}
|
|
@@ -2392,11 +2396,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2392
2396
|
});
|
|
2393
2397
|
f.__construct = function() {
|
|
2394
2398
|
this === f && Q("Pass correct 'this' to __construct");
|
|
2395
|
-
var l =
|
|
2399
|
+
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2396
2400
|
pc(l);
|
|
2397
2401
|
var t = l.g;
|
|
2398
2402
|
l.notifyOnDestruction();
|
|
2399
|
-
t.
|
|
2403
|
+
t.ka = !0;
|
|
2400
2404
|
Object.defineProperties(this, {g:{value:t}});
|
|
2401
2405
|
yc(this);
|
|
2402
2406
|
l = t.o;
|
|
@@ -2418,12 +2422,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2418
2422
|
}, _embind_finalize_value_object:function(a) {
|
|
2419
2423
|
var b = zc[a];
|
|
2420
2424
|
delete zc[a];
|
|
2421
|
-
var c = b.Pa, d = b.V, e = b
|
|
2425
|
+
var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
|
|
2422
2426
|
T([a], f, g => {
|
|
2423
|
-
var
|
|
2427
|
+
var n = {};
|
|
2424
2428
|
e.forEach((p, l) => {
|
|
2425
|
-
var t = g[l], u = p.
|
|
2426
|
-
|
|
2429
|
+
var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
|
|
2430
|
+
n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2427
2431
|
var D = [];
|
|
2428
2432
|
q(v, y, k.toWireType(D, B));
|
|
2429
2433
|
Ac(D);
|
|
@@ -2431,20 +2435,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2431
2435
|
});
|
|
2432
2436
|
return [{name:b.name, fromWireType:function(p) {
|
|
2433
2437
|
var l = {}, t;
|
|
2434
|
-
for (t in
|
|
2435
|
-
l[t] =
|
|
2438
|
+
for (t in n) {
|
|
2439
|
+
l[t] = n[t].read(p);
|
|
2436
2440
|
}
|
|
2437
2441
|
d(p);
|
|
2438
2442
|
return l;
|
|
2439
2443
|
}, toWireType:function(p, l) {
|
|
2440
|
-
for (var t in
|
|
2444
|
+
for (var t in n) {
|
|
2441
2445
|
if (!(t in l)) {
|
|
2442
2446
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2443
2447
|
}
|
|
2444
2448
|
}
|
|
2445
2449
|
var u = c();
|
|
2446
|
-
for (t in
|
|
2447
|
-
|
|
2450
|
+
for (t in n) {
|
|
2451
|
+
n[t].write(u, l[t]);
|
|
2448
2452
|
}
|
|
2449
2453
|
null !== p && p.push(d, u);
|
|
2450
2454
|
return u;
|
|
@@ -2456,24 +2460,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2456
2460
|
b = S(b);
|
|
2457
2461
|
U(a, {name:b, fromWireType:function(g) {
|
|
2458
2462
|
return !!g;
|
|
2459
|
-
}, toWireType:function(g,
|
|
2460
|
-
return
|
|
2463
|
+
}, toWireType:function(g, n) {
|
|
2464
|
+
return n ? d : e;
|
|
2461
2465
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2462
2466
|
if (1 === c) {
|
|
2463
|
-
var
|
|
2467
|
+
var n = C;
|
|
2464
2468
|
} else if (2 === c) {
|
|
2465
|
-
|
|
2469
|
+
n = I;
|
|
2466
2470
|
} else if (4 === c) {
|
|
2467
|
-
|
|
2471
|
+
n = J;
|
|
2468
2472
|
} else {
|
|
2469
2473
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2470
2474
|
}
|
|
2471
|
-
return this.fromWireType(
|
|
2475
|
+
return this.fromWireType(n[g >> f]);
|
|
2472
2476
|
}, K:null,});
|
|
2473
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2477
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
|
|
2474
2478
|
t = S(t);
|
|
2475
2479
|
f = V(e, f);
|
|
2476
|
-
|
|
2480
|
+
n && (n = V(g, n));
|
|
2477
2481
|
l && (l = V(p, l));
|
|
2478
2482
|
x = V(u, x);
|
|
2479
2483
|
var k = Yb(t);
|
|
@@ -2492,42 +2496,42 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2492
2496
|
if (Object.getPrototypeOf(this) !== B) {
|
|
2493
2497
|
throw new ac("Use 'new' to construct " + t);
|
|
2494
2498
|
}
|
|
2495
|
-
if (void 0 === D
|
|
2499
|
+
if (void 0 === D.$) {
|
|
2496
2500
|
throw new ac(t + " has no accessible constructor");
|
|
2497
2501
|
}
|
|
2498
|
-
var H = D
|
|
2502
|
+
var H = D.$[arguments.length];
|
|
2499
2503
|
if (void 0 === H) {
|
|
2500
|
-
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D
|
|
2504
|
+
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D.$).toString()}) parameters instead!`);
|
|
2501
2505
|
}
|
|
2502
2506
|
return H.apply(this, arguments);
|
|
2503
2507
|
});
|
|
2504
2508
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2505
2509
|
q.prototype = B;
|
|
2506
|
-
var D = new Kc(t, q, B, x, v, f,
|
|
2510
|
+
var D = new Kc(t, q, B, x, v, f, n, l);
|
|
2507
2511
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2508
2512
|
v = new Qc(t, D, !0, !1);
|
|
2509
2513
|
y = new Qc(t + "*", D, !1, !1);
|
|
2510
2514
|
var E = new Qc(t + " const*", D, !1, !0);
|
|
2511
|
-
tc[a] = {pointerType:y,
|
|
2515
|
+
tc[a] = {pointerType:y, Eb:E};
|
|
2512
2516
|
Rc(k, q);
|
|
2513
2517
|
return [v, y, E];
|
|
2514
2518
|
});
|
|
2515
2519
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2516
|
-
var
|
|
2520
|
+
var n = Yc(c, d);
|
|
2517
2521
|
b = S(b);
|
|
2518
2522
|
f = V(e, f);
|
|
2519
2523
|
T([], [a], function(p) {
|
|
2520
2524
|
function l() {
|
|
2521
|
-
Wc(`Cannot call ${t} due to unbound types`,
|
|
2525
|
+
Wc(`Cannot call ${t} due to unbound types`, n);
|
|
2522
2526
|
}
|
|
2523
2527
|
p = p[0];
|
|
2524
2528
|
var t = `${p.name}.${b}`;
|
|
2525
2529
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2526
2530
|
var u = p.i.constructor;
|
|
2527
|
-
void 0 === u[b] ? (l.
|
|
2528
|
-
T([],
|
|
2531
|
+
void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2532
|
+
T([], n, function(x) {
|
|
2529
2533
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2530
|
-
void 0 === u[b].B ? (x.
|
|
2534
|
+
void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2531
2535
|
if (p.i.qa) {
|
|
2532
2536
|
for (const k of p.i.qa) {
|
|
2533
2537
|
k.constructor.hasOwnProperty(b) || (k.constructor[b] = x);
|
|
@@ -2537,7 +2541,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2537
2541
|
});
|
|
2538
2542
|
return [];
|
|
2539
2543
|
});
|
|
2540
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2544
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2541
2545
|
b = S(b);
|
|
2542
2546
|
f = V(e, f);
|
|
2543
2547
|
T([], [a], function(p) {
|
|
@@ -2545,7 +2549,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2545
2549
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2546
2550
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2547
2551
|
}, enumerable:!0, configurable:!0};
|
|
2548
|
-
t.set =
|
|
2552
|
+
t.set = n ? () => {
|
|
2549
2553
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2550
2554
|
} : () => {
|
|
2551
2555
|
Q(`${l} is a read-only property`);
|
|
@@ -2556,9 +2560,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2556
2560
|
var x = {get() {
|
|
2557
2561
|
return u.fromWireType(f(d));
|
|
2558
2562
|
}, enumerable:!0};
|
|
2559
|
-
|
|
2563
|
+
n && (n = V(g, n), x.set = k => {
|
|
2560
2564
|
var q = [];
|
|
2561
|
-
|
|
2565
|
+
n(d, u.toWireType(q, k));
|
|
2562
2566
|
Ac(q);
|
|
2563
2567
|
});
|
|
2564
2568
|
Object.defineProperty(p.i.constructor, b, x);
|
|
@@ -2569,24 +2573,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2569
2573
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2570
2574
|
var g = Yc(b, c);
|
|
2571
2575
|
e = V(d, e);
|
|
2572
|
-
T([], [a], function(
|
|
2573
|
-
|
|
2574
|
-
var p = `constructor ${
|
|
2575
|
-
void 0 ===
|
|
2576
|
-
if (void 0 !==
|
|
2577
|
-
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
Wc(`Cannot construct ${
|
|
2576
|
+
T([], [a], function(n) {
|
|
2577
|
+
n = n[0];
|
|
2578
|
+
var p = `constructor ${n.name}`;
|
|
2579
|
+
void 0 === n.i.$ && (n.i.$ = []);
|
|
2580
|
+
if (void 0 !== n.i.$[b - 1]) {
|
|
2581
|
+
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${n.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2582
|
+
}
|
|
2583
|
+
n.i.$[b - 1] = () => {
|
|
2584
|
+
Wc(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2581
2585
|
};
|
|
2582
2586
|
T([], g, function(l) {
|
|
2583
2587
|
l.splice(1, 0, null);
|
|
2584
|
-
|
|
2588
|
+
n.i.$[b - 1] = Xc(p, l, null, e, f);
|
|
2585
2589
|
return [];
|
|
2586
2590
|
});
|
|
2587
2591
|
return [];
|
|
2588
2592
|
});
|
|
2589
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2593
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2590
2594
|
var p = Yc(c, d);
|
|
2591
2595
|
b = S(b);
|
|
2592
2596
|
f = V(e, f);
|
|
@@ -2597,17 +2601,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2597
2601
|
l = l[0];
|
|
2598
2602
|
var u = `${l.name}.${b}`;
|
|
2599
2603
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2600
|
-
|
|
2604
|
+
n && l.i.lb.push(b);
|
|
2601
2605
|
var x = l.i.N, k = x[b];
|
|
2602
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.
|
|
2606
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.ga === c - 2 ? (t.ga = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
|
|
2603
2607
|
T([], p, function(q) {
|
|
2604
2608
|
q = Xc(u, q, l, f, g);
|
|
2605
|
-
void 0 === x[b].B ? (q.
|
|
2609
|
+
void 0 === x[b].B ? (q.ga = c - 2, x[b] = q) : x[b].B[c - 2] = q;
|
|
2606
2610
|
return [];
|
|
2607
2611
|
});
|
|
2608
2612
|
return [];
|
|
2609
2613
|
});
|
|
2610
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2614
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2611
2615
|
b = S(b);
|
|
2612
2616
|
e = V(d, e);
|
|
2613
2617
|
T([], [a], function(t) {
|
|
@@ -2627,7 +2631,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2627
2631
|
return q.fromWireType(e(f, B));
|
|
2628
2632
|
}, enumerable:!0};
|
|
2629
2633
|
if (p) {
|
|
2630
|
-
p = V(
|
|
2634
|
+
p = V(n, p);
|
|
2631
2635
|
var y = k[1];
|
|
2632
2636
|
v.set = function(B) {
|
|
2633
2637
|
var D = Zc(this, t, u + " setter"), E = [];
|
|
@@ -2684,22 +2688,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2684
2688
|
Jc(a, function() {
|
|
2685
2689
|
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2686
2690
|
}, b - 1);
|
|
2687
|
-
T([], g, function(
|
|
2688
|
-
Rc(a, Xc(a, [
|
|
2691
|
+
T([], g, function(n) {
|
|
2692
|
+
Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2689
2693
|
return [];
|
|
2690
2694
|
});
|
|
2691
2695
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2692
2696
|
b = S(b);
|
|
2693
2697
|
-1 === e && (e = 4294967295);
|
|
2694
2698
|
e = Ec(c);
|
|
2695
|
-
var f =
|
|
2699
|
+
var f = n => n;
|
|
2696
2700
|
if (0 === d) {
|
|
2697
2701
|
var g = 32 - 8 * c;
|
|
2698
|
-
f =
|
|
2702
|
+
f = n => n << g >>> g;
|
|
2699
2703
|
}
|
|
2700
|
-
c = b.includes("unsigned") ? function(
|
|
2704
|
+
c = b.includes("unsigned") ? function(n, p) {
|
|
2701
2705
|
return p >>> 0;
|
|
2702
|
-
} : function(
|
|
2706
|
+
} : function(n, p) {
|
|
2703
2707
|
return p;
|
|
2704
2708
|
};
|
|
2705
2709
|
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
@@ -2711,16 +2715,16 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2711
2715
|
}
|
|
2712
2716
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2713
2717
|
c = S(c);
|
|
2714
|
-
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2718
|
+
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Sb:!0,});
|
|
2715
2719
|
}, _embind_register_std_string:function(a, b) {
|
|
2716
2720
|
b = S(b);
|
|
2717
2721
|
var c = "std::string" === b;
|
|
2718
2722
|
U(a, {name:b, fromWireType:function(d) {
|
|
2719
2723
|
var e = K[d >> 2], f = d + 4;
|
|
2720
2724
|
if (c) {
|
|
2721
|
-
for (var g = f,
|
|
2722
|
-
var p = f +
|
|
2723
|
-
if (
|
|
2725
|
+
for (var g = f, n = 0; n <= e; ++n) {
|
|
2726
|
+
var p = f + n;
|
|
2727
|
+
if (n == e || 0 == G[p]) {
|
|
2724
2728
|
g = g ? L(G, g, p - g) : "";
|
|
2725
2729
|
if (void 0 === l) {
|
|
2726
2730
|
var l = g;
|
|
@@ -2732,8 +2736,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2732
2736
|
}
|
|
2733
2737
|
} else {
|
|
2734
2738
|
l = Array(e);
|
|
2735
|
-
for (
|
|
2736
|
-
l[
|
|
2739
|
+
for (n = 0; n < e; ++n) {
|
|
2740
|
+
l[n] = String.fromCharCode(G[f + n]);
|
|
2737
2741
|
}
|
|
2738
2742
|
l = l.join("");
|
|
2739
2743
|
}
|
|
@@ -2744,8 +2748,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2744
2748
|
var f = "string" == typeof e;
|
|
2745
2749
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2746
2750
|
var g = c && f ? db(e) : e.length;
|
|
2747
|
-
var
|
|
2748
|
-
K[
|
|
2751
|
+
var n = Ld(4 + g + 1), p = n + 4;
|
|
2752
|
+
K[n >> 2] = g;
|
|
2749
2753
|
if (c && f) {
|
|
2750
2754
|
eb(e, G, p, g + 1);
|
|
2751
2755
|
} else {
|
|
@@ -2761,8 +2765,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2761
2765
|
}
|
|
2762
2766
|
}
|
|
2763
2767
|
}
|
|
2764
|
-
null !== d && d.push(nc,
|
|
2765
|
-
return
|
|
2768
|
+
null !== d && d.push(nc, n);
|
|
2769
|
+
return n;
|
|
2766
2770
|
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2767
2771
|
nc(d);
|
|
2768
2772
|
},});
|
|
@@ -2773,14 +2777,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2773
2777
|
var e = fd;
|
|
2774
2778
|
var f = gd;
|
|
2775
2779
|
var g = () => va;
|
|
2776
|
-
var
|
|
2780
|
+
var n = 1;
|
|
2777
2781
|
} else {
|
|
2778
|
-
4 === b && (d = hd, e = jd, f = kd, g = () => K,
|
|
2782
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
|
|
2779
2783
|
}
|
|
2780
2784
|
U(a, {name:c, fromWireType:function(p) {
|
|
2781
2785
|
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2782
2786
|
var q = p + 4 + k * b;
|
|
2783
|
-
if (k == l || 0 == t[q >>
|
|
2787
|
+
if (k == l || 0 == t[q >> n]) {
|
|
2784
2788
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2785
2789
|
}
|
|
2786
2790
|
}
|
|
@@ -2789,7 +2793,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2789
2793
|
}, toWireType:function(p, l) {
|
|
2790
2794
|
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2791
2795
|
var t = f(l), u = Ld(4 + t + b);
|
|
2792
|
-
K[u >> 2] = t >>
|
|
2796
|
+
K[u >> 2] = t >> n;
|
|
2793
2797
|
e(l, u + 4, t + b);
|
|
2794
2798
|
null !== p && p.push(nc, u);
|
|
2795
2799
|
return u;
|
|
@@ -2797,12 +2801,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2797
2801
|
nc(p);
|
|
2798
2802
|
},});
|
|
2799
2803
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2800
|
-
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f),
|
|
2801
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2802
|
-
zc[a].
|
|
2804
|
+
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
|
|
2805
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2806
|
+
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
|
|
2803
2807
|
}, _embind_register_void:function(a, b) {
|
|
2804
2808
|
b = S(b);
|
|
2805
|
-
U(a, {
|
|
2809
|
+
U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2806
2810
|
}, toWireType:function() {
|
|
2807
2811
|
},});
|
|
2808
2812
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
@@ -2833,15 +2837,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2833
2837
|
return e;
|
|
2834
2838
|
}
|
|
2835
2839
|
var f = Array(a - 1);
|
|
2836
|
-
e = od((g,
|
|
2840
|
+
e = od((g, n, p, l) => {
|
|
2837
2841
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2838
2842
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2839
2843
|
}
|
|
2840
|
-
g = g[
|
|
2844
|
+
g = g[n].apply(g, f);
|
|
2841
2845
|
for (u = 0; u < a - 1; ++u) {
|
|
2842
|
-
c[u + 1].
|
|
2846
|
+
c[u + 1].Gb && c[u + 1].Gb(f[u]);
|
|
2843
2847
|
}
|
|
2844
|
-
if (!d.
|
|
2848
|
+
if (!d.Yb) {
|
|
2845
2849
|
return d.toWireType(p, g);
|
|
2846
2850
|
}
|
|
2847
2851
|
});
|
|
@@ -2851,7 +2855,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2851
2855
|
b = R(b);
|
|
2852
2856
|
return bc(a[b]);
|
|
2853
2857
|
}, _emval_incref:function(a) {
|
|
2854
|
-
4 < a && (P.get(a).
|
|
2858
|
+
4 < a && (P.get(a).pb += 1);
|
|
2855
2859
|
}, _emval_new_cstring:function(a) {
|
|
2856
2860
|
return bc(md(a));
|
|
2857
2861
|
}, _emval_new_object:function() {
|
|
@@ -2872,19 +2876,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2872
2876
|
}, abort:() => {
|
|
2873
2877
|
sa("");
|
|
2874
2878
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2875
|
-
(a = r[a].H.
|
|
2879
|
+
(a = r[a].H.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2876
2880
|
}, decode_image:function(a, b, c) {
|
|
2877
|
-
var d =
|
|
2878
|
-
d || (d = new Map(),
|
|
2881
|
+
var d = m.images;
|
|
2882
|
+
d || (d = new Map(), m.images = d);
|
|
2879
2883
|
var e = new Image();
|
|
2880
2884
|
d.set(a, e);
|
|
2881
|
-
b =
|
|
2885
|
+
b = m.HEAP8.subarray(b, b + c);
|
|
2882
2886
|
c = new Uint8Array(c);
|
|
2883
2887
|
c.set(b);
|
|
2884
2888
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2885
2889
|
e.onload = function() {
|
|
2886
|
-
|
|
2890
|
+
m._setWebImage(a, e.width, e.height);
|
|
2887
2891
|
};
|
|
2892
|
+
}, delete_image:function(a) {
|
|
2893
|
+
var b = m.images;
|
|
2894
|
+
b && b.get(a) && b.delete(a);
|
|
2888
2895
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2889
2896
|
rd.length = 0;
|
|
2890
2897
|
var d;
|
|
@@ -2935,14 +2942,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2935
2942
|
return ja(a) ? 0 : -5;
|
|
2936
2943
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
2937
2944
|
a = r[a].H;
|
|
2938
|
-
a.
|
|
2939
|
-
return !!a.
|
|
2945
|
+
a.mb = a.getExtension("WEBGL_provoking_vertex");
|
|
2946
|
+
return !!a.mb;
|
|
2940
2947
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2941
2948
|
a = r[a].H;
|
|
2942
|
-
a.
|
|
2943
|
-
return !(!a.
|
|
2949
|
+
a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2950
|
+
return !(!a.ja || !a.ja.isCoherent());
|
|
2944
2951
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2945
|
-
(a = r[a].H.
|
|
2952
|
+
(a = r[a].H.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2946
2953
|
}, environ_get:(a, b) => {
|
|
2947
2954
|
var c = 0;
|
|
2948
2955
|
Hd().forEach(function(d, e) {
|
|
@@ -2967,7 +2974,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2967
2974
|
}, fd_close:function(a) {
|
|
2968
2975
|
try {
|
|
2969
2976
|
var b = Ib(a);
|
|
2970
|
-
if (null === b.
|
|
2977
|
+
if (null === b.X) {
|
|
2971
2978
|
throw new M(8);
|
|
2972
2979
|
}
|
|
2973
2980
|
b.Ma && (b.Ma = null);
|
|
@@ -2976,15 +2983,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2976
2983
|
} catch (c) {
|
|
2977
2984
|
throw c;
|
|
2978
2985
|
} finally {
|
|
2979
|
-
vb[b.
|
|
2986
|
+
vb[b.X] = null;
|
|
2980
2987
|
}
|
|
2981
|
-
b.
|
|
2988
|
+
b.X = null;
|
|
2982
2989
|
return 0;
|
|
2983
2990
|
} catch (c) {
|
|
2984
2991
|
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
2985
2992
|
throw c;
|
|
2986
2993
|
}
|
|
2987
|
-
return c
|
|
2994
|
+
return c.aa;
|
|
2988
2995
|
}
|
|
2989
2996
|
}, fd_read:function(a, b, c, d) {
|
|
2990
2997
|
try {
|
|
@@ -2992,13 +2999,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2992
2999
|
var e = Ib(a);
|
|
2993
3000
|
a = b;
|
|
2994
3001
|
for (var f, g = b = 0; g < c; g++) {
|
|
2995
|
-
var
|
|
3002
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
2996
3003
|
a += 8;
|
|
2997
|
-
var l = e, t =
|
|
3004
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
2998
3005
|
if (0 > u || 0 > x) {
|
|
2999
3006
|
throw new M(28);
|
|
3000
3007
|
}
|
|
3001
|
-
if (null === l.
|
|
3008
|
+
if (null === l.X) {
|
|
3002
3009
|
throw new M(8);
|
|
3003
3010
|
}
|
|
3004
3011
|
if (1 === (l.flags & 2097155)) {
|
|
@@ -3037,7 +3044,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3037
3044
|
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3038
3045
|
throw D;
|
|
3039
3046
|
}
|
|
3040
|
-
return D
|
|
3047
|
+
return D.aa;
|
|
3041
3048
|
}
|
|
3042
3049
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3043
3050
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3056,7 +3063,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3056
3063
|
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3057
3064
|
throw g;
|
|
3058
3065
|
}
|
|
3059
|
-
return g
|
|
3066
|
+
return g.aa;
|
|
3060
3067
|
}
|
|
3061
3068
|
}, fd_write:function(a, b, c, d) {
|
|
3062
3069
|
try {
|
|
@@ -3064,13 +3071,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3064
3071
|
var e = Ib(a);
|
|
3065
3072
|
a = b;
|
|
3066
3073
|
for (var f, g = b = 0; g < c; g++) {
|
|
3067
|
-
var
|
|
3074
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3068
3075
|
a += 8;
|
|
3069
|
-
var l = e, t =
|
|
3076
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3070
3077
|
if (0 > u || 0 > x) {
|
|
3071
3078
|
throw new M(28);
|
|
3072
3079
|
}
|
|
3073
|
-
if (null === l.
|
|
3080
|
+
if (null === l.X) {
|
|
3074
3081
|
throw new M(8);
|
|
3075
3082
|
}
|
|
3076
3083
|
if (0 === (l.flags & 2097155)) {
|
|
@@ -3107,18 +3114,18 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3107
3114
|
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3108
3115
|
throw D;
|
|
3109
3116
|
}
|
|
3110
|
-
return D
|
|
3117
|
+
return D.aa;
|
|
3111
3118
|
}
|
|
3112
3119
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3113
|
-
(a = r[a].H.
|
|
3120
|
+
(a = r[a].H.ja) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3114
3121
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3115
|
-
(a = r[a].H.
|
|
3122
|
+
(a = r[a].H.ja) && a.framebufferTexturePixelLocalStorageWEBGL(b, yd[c], d, e);
|
|
3116
3123
|
}, glActiveTexture:function(a) {
|
|
3117
3124
|
Z.activeTexture(a);
|
|
3118
3125
|
}, glAttachShader:function(a, b) {
|
|
3119
3126
|
Z.attachShader(W[a], zd[b]);
|
|
3120
3127
|
}, glBindBuffer:function(a, b) {
|
|
3121
|
-
35051 == a ? Z.
|
|
3128
|
+
35051 == a ? Z.Xa = b : 35052 == a && (Z.Ka = b);
|
|
3122
3129
|
Z.bindBuffer(a, vd[b]);
|
|
3123
3130
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3124
3131
|
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
@@ -3134,8 +3141,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3134
3141
|
Z.blendEquation(a);
|
|
3135
3142
|
}, glBlendFunc:function(a, b) {
|
|
3136
3143
|
Z.blendFunc(a, b);
|
|
3137
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g,
|
|
3138
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g,
|
|
3144
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3145
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
|
|
3139
3146
|
}, glBufferData:function(a, b, c, d) {
|
|
3140
3147
|
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3141
3148
|
}, glBufferSubData:function(a, b, c, d) {
|
|
@@ -3155,7 +3162,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3155
3162
|
}, glCreateProgram:function() {
|
|
3156
3163
|
var a = ha(W), b = Z.createProgram();
|
|
3157
3164
|
b.name = a;
|
|
3158
|
-
b.
|
|
3165
|
+
b.Gc = b.Ec = b.Fc = 0;
|
|
3159
3166
|
b.Sa = 1;
|
|
3160
3167
|
W[a] = b;
|
|
3161
3168
|
return a;
|
|
@@ -3168,7 +3175,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3168
3175
|
}, glDeleteBuffers:function(a, b) {
|
|
3169
3176
|
for (var c = 0; c < a; c++) {
|
|
3170
3177
|
var d = J[b + 4 * c >> 2], e = vd[d];
|
|
3171
|
-
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.
|
|
3178
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Xa && (Z.Xa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3172
3179
|
}
|
|
3173
3180
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3174
3181
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3284,19 +3291,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3284
3291
|
}, glGetUniformLocation:function(a, b) {
|
|
3285
3292
|
b = b ? L(G, b) : "";
|
|
3286
3293
|
if (a = W[a]) {
|
|
3287
|
-
var c = a, d = c.oa, e = c.
|
|
3294
|
+
var c = a, d = c.oa, e = c.ub, f;
|
|
3288
3295
|
if (!d) {
|
|
3289
|
-
for (c.oa = d = {}, c.
|
|
3296
|
+
for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3290
3297
|
var g = Z.getActiveUniform(c, f);
|
|
3291
|
-
var
|
|
3298
|
+
var n = g.name;
|
|
3292
3299
|
g = g.size;
|
|
3293
|
-
var p = Nd(
|
|
3294
|
-
p = 0 < p ?
|
|
3300
|
+
var p = Nd(n);
|
|
3301
|
+
p = 0 < p ? n.slice(0, p) : n;
|
|
3295
3302
|
var l = c.Sa;
|
|
3296
3303
|
c.Sa += g;
|
|
3297
3304
|
e[p] = [g, l];
|
|
3298
|
-
for (
|
|
3299
|
-
d[l] =
|
|
3305
|
+
for (n = 0; n < g; ++n) {
|
|
3306
|
+
d[l] = n, c.tb[l++] = p;
|
|
3300
3307
|
}
|
|
3301
3308
|
}
|
|
3302
3309
|
}
|
|
@@ -3305,7 +3312,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3305
3312
|
e = b;
|
|
3306
3313
|
f = Nd(b);
|
|
3307
3314
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3308
|
-
if ((e = a.
|
|
3315
|
+
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3309
3316
|
return d;
|
|
3310
3317
|
}
|
|
3311
3318
|
} else {
|
|
@@ -3321,7 +3328,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3321
3328
|
a = W[a];
|
|
3322
3329
|
Z.linkProgram(a);
|
|
3323
3330
|
a.oa = 0;
|
|
3324
|
-
a.
|
|
3331
|
+
a.ub = {};
|
|
3325
3332
|
}, glPixelStorei:function(a, b) {
|
|
3326
3333
|
Z.pixelStorei(a, b);
|
|
3327
3334
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
@@ -3330,8 +3337,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3330
3337
|
Z.scissor(a, b, c, d);
|
|
3331
3338
|
}, glShaderSource:function(a, b, c, d) {
|
|
3332
3339
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3333
|
-
var g = d ? J[d + 4 * f >> 2] : -1,
|
|
3334
|
-
g =
|
|
3340
|
+
var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
|
|
3341
|
+
g = n ? L(G, n, 0 > g ? void 0 : g) : "";
|
|
3335
3342
|
e += g;
|
|
3336
3343
|
}
|
|
3337
3344
|
Z.shaderSource(zd[a], e);
|
|
@@ -3349,22 +3356,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3349
3356
|
Z.texParameteri(a, b, c);
|
|
3350
3357
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3351
3358
|
Z.texStorage2D(a, b, c, d, e);
|
|
3352
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g,
|
|
3359
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
|
|
3353
3360
|
if (Z.Ka) {
|
|
3354
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3361
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
|
|
3355
3362
|
} else if (p) {
|
|
3356
|
-
var l =
|
|
3363
|
+
var l = n - 5120;
|
|
3357
3364
|
l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
|
|
3358
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3365
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3359
3366
|
} else {
|
|
3360
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3367
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
|
|
3361
3368
|
}
|
|
3362
3369
|
}, glUniform1i:function(a, b) {
|
|
3363
3370
|
var c = Z, d = c.uniform1i;
|
|
3364
|
-
var e = Z.
|
|
3371
|
+
var e = Z.Fb;
|
|
3365
3372
|
if (e) {
|
|
3366
3373
|
var f = e.oa[a];
|
|
3367
|
-
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.
|
|
3374
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.tb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3368
3375
|
a = f;
|
|
3369
3376
|
} else {
|
|
3370
3377
|
X(1282), a = void 0;
|
|
@@ -3376,7 +3383,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3376
3383
|
}, glUseProgram:function(a) {
|
|
3377
3384
|
a = W[a];
|
|
3378
3385
|
Z.useProgram(a);
|
|
3379
|
-
Z.
|
|
3386
|
+
Z.Fb = a;
|
|
3380
3387
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3381
3388
|
Z.vertexAttribDivisor(a, b);
|
|
3382
3389
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3386,16 +3393,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3386
3393
|
}, glViewport:function(a, b, c, d) {
|
|
3387
3394
|
Z.viewport(a, b, c, d);
|
|
3388
3395
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3389
|
-
(a = r[a].H.
|
|
3396
|
+
(a = r[a].H.mb) && a.provokingVertexWEBGL(b);
|
|
3390
3397
|
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3391
|
-
var c =
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
d && (a = r[a].H, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, d), c.delete(b));
|
|
3395
|
-
}
|
|
3396
|
-
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3398
|
+
var c = m.images;
|
|
3399
|
+
c && (b = c.get(b)) && (a = r[a].H, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
|
|
3400
|
+
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3397
3401
|
a = r[a].H;
|
|
3398
|
-
a.texSubImage2D(b, c, d, e, f, g,
|
|
3402
|
+
a.texSubImage2D(b, c, d, e, f, g, n, p, l);
|
|
3399
3403
|
}};
|
|
3400
3404
|
(function() {
|
|
3401
3405
|
function a(c) {
|
|
@@ -3405,7 +3409,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3405
3409
|
za = A.__indirect_function_table;
|
|
3406
3410
|
Ba.unshift(A.__wasm_call_ctors);
|
|
3407
3411
|
Ea--;
|
|
3408
|
-
|
|
3412
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3409
3413
|
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3410
3414
|
var d = Ga;
|
|
3411
3415
|
Ga = null;
|
|
@@ -3415,10 +3419,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3415
3419
|
}
|
|
3416
3420
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3417
3421
|
Ea++;
|
|
3418
|
-
|
|
3419
|
-
if (
|
|
3422
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3423
|
+
if (m.instantiateWasm) {
|
|
3420
3424
|
try {
|
|
3421
|
-
return
|
|
3425
|
+
return m.instantiateWasm(b, a);
|
|
3422
3426
|
} catch (c) {
|
|
3423
3427
|
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3424
3428
|
}
|
|
@@ -3429,23 +3433,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3429
3433
|
return {};
|
|
3430
3434
|
})();
|
|
3431
3435
|
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3432
|
-
|
|
3433
|
-
var Qa =
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
var Ra =
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3436
|
+
m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
|
|
3437
|
+
var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3438
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3439
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3440
|
+
var Ra = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = m._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = m._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
|
|
3441
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3442
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3443
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3444
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3445
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3446
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3447
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3448
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3449
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3450
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3451
|
+
m.___start_em_js = 489148;
|
|
3452
|
+
m.___stop_em_js = 491878;
|
|
3449
3453
|
var Xd;
|
|
3450
3454
|
Ga = function Yd() {
|
|
3451
3455
|
Xd || Zd();
|
|
@@ -3453,17 +3457,17 @@ Ga = function Yd() {
|
|
|
3453
3457
|
};
|
|
3454
3458
|
function Zd() {
|
|
3455
3459
|
function a() {
|
|
3456
|
-
if (!Xd && (Xd = !0,
|
|
3457
|
-
|
|
3460
|
+
if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
|
|
3461
|
+
m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
3458
3462
|
yb = !1;
|
|
3459
3463
|
Ua(Ba);
|
|
3460
|
-
aa(
|
|
3461
|
-
if (
|
|
3462
|
-
|
|
3464
|
+
aa(m);
|
|
3465
|
+
if (m.onRuntimeInitialized) {
|
|
3466
|
+
m.onRuntimeInitialized();
|
|
3463
3467
|
}
|
|
3464
|
-
if (
|
|
3465
|
-
for ("function" == typeof
|
|
3466
|
-
var b =
|
|
3468
|
+
if (m.postRun) {
|
|
3469
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3470
|
+
var b = m.postRun.shift();
|
|
3467
3471
|
Ca.unshift(b);
|
|
3468
3472
|
}
|
|
3469
3473
|
}
|
|
@@ -3471,23 +3475,23 @@ function Zd() {
|
|
|
3471
3475
|
}
|
|
3472
3476
|
}
|
|
3473
3477
|
if (!(0 < Ea)) {
|
|
3474
|
-
if (
|
|
3475
|
-
for ("function" == typeof
|
|
3478
|
+
if (m.preRun) {
|
|
3479
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3476
3480
|
Da();
|
|
3477
3481
|
}
|
|
3478
3482
|
}
|
|
3479
3483
|
Ua(Aa);
|
|
3480
|
-
0 < Ea || (
|
|
3484
|
+
0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3481
3485
|
setTimeout(function() {
|
|
3482
|
-
|
|
3486
|
+
m.setStatus("");
|
|
3483
3487
|
}, 1);
|
|
3484
3488
|
a();
|
|
3485
3489
|
}, 1)) : a());
|
|
3486
3490
|
}
|
|
3487
3491
|
}
|
|
3488
|
-
if (
|
|
3489
|
-
for ("function" == typeof
|
|
3490
|
-
|
|
3492
|
+
if (m.preInit) {
|
|
3493
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
3494
|
+
m.preInit.pop()();
|
|
3491
3495
|
}
|
|
3492
3496
|
}
|
|
3493
3497
|
Zd();
|