@rive-app/webgl2 2.23.9 → 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.js +489 -482
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -26,51 +26,51 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var m = moduleArg, aa, ba;
|
|
30
|
+
m.ready = new Promise((a, b) => {
|
|
31
31
|
aa = a;
|
|
32
32
|
ba = b;
|
|
33
33
|
});
|
|
34
34
|
function ca() {
|
|
35
35
|
function a(g) {
|
|
36
|
-
const
|
|
36
|
+
const n = d;
|
|
37
37
|
c = b = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
|
|
39
|
+
n.forEach(p => {
|
|
40
40
|
try {
|
|
41
41
|
p(g);
|
|
42
42
|
} catch (l) {
|
|
43
43
|
console.error(l);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
this.
|
|
47
|
-
e && e.
|
|
46
|
+
this.jb();
|
|
47
|
+
e && e.Lb();
|
|
48
48
|
}
|
|
49
49
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
50
50
|
this.requestAnimationFrame = function(g) {
|
|
51
51
|
b || (b = requestAnimationFrame(a.bind(this)));
|
|
52
|
-
const
|
|
53
|
-
d.set(
|
|
54
|
-
return
|
|
52
|
+
const n = ++c;
|
|
53
|
+
d.set(n, g);
|
|
54
|
+
return n;
|
|
55
55
|
};
|
|
56
56
|
this.cancelAnimationFrame = function(g) {
|
|
57
57
|
d.delete(g);
|
|
58
58
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
59
59
|
};
|
|
60
|
-
this.
|
|
60
|
+
this.Jb = function(g) {
|
|
61
61
|
f && (document.body.remove(f), f = null);
|
|
62
|
-
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(
|
|
63
|
-
f.innerHTML = "RIVE FPS " +
|
|
62
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
|
|
63
|
+
f.innerHTML = "RIVE FPS " + n.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let
|
|
67
|
-
this.
|
|
66
|
+
let n = 0, p = 0;
|
|
67
|
+
this.Lb = function() {
|
|
68
68
|
var l = performance.now();
|
|
69
|
-
p ? (++
|
|
69
|
+
p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
73
|
-
this.
|
|
73
|
+
this.jb = function() {
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function da() {
|
|
@@ -88,44 +88,44 @@ function da() {
|
|
|
88
88
|
return b << 8;
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const ea =
|
|
92
|
-
|
|
91
|
+
const ea = m.onRuntimeInitialized;
|
|
92
|
+
m.onRuntimeInitialized = function() {
|
|
93
93
|
ea && ea();
|
|
94
|
-
let a =
|
|
95
|
-
|
|
94
|
+
let a = m.decodeAudio;
|
|
95
|
+
m.decodeAudio = function(e, f) {
|
|
96
96
|
e = a(e);
|
|
97
97
|
f(e);
|
|
98
98
|
};
|
|
99
|
-
let b =
|
|
100
|
-
|
|
99
|
+
let b = m.decodeFont;
|
|
100
|
+
m.decodeFont = function(e, f) {
|
|
101
101
|
e = b(e);
|
|
102
102
|
f(e);
|
|
103
103
|
};
|
|
104
|
-
const c =
|
|
105
|
-
|
|
106
|
-
let f =
|
|
107
|
-
return f.isImage ?
|
|
104
|
+
const c = m.FileAssetLoader;
|
|
105
|
+
m.ptrToAsset = e => {
|
|
106
|
+
let f = m.ptrToFileAsset(e);
|
|
107
|
+
return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
110
110
|
this.__parent.__construct.call(this);
|
|
111
|
-
this.
|
|
111
|
+
this.Ab = e;
|
|
112
112
|
}, loadContents:function(e, f) {
|
|
113
|
-
e =
|
|
114
|
-
return this.
|
|
113
|
+
e = m.ptrToAsset(e);
|
|
114
|
+
return this.Ab(e, f);
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
118
|
}, loadContents:function(e) {
|
|
119
|
-
let f =
|
|
119
|
+
let f = m.ptrToAsset(e);
|
|
120
120
|
e = f.cdnUuid;
|
|
121
121
|
if ("" === e) {
|
|
122
122
|
return !1;
|
|
123
123
|
}
|
|
124
|
-
(function(g,
|
|
124
|
+
(function(g, n) {
|
|
125
125
|
var p = new XMLHttpRequest();
|
|
126
126
|
p.responseType = "arraybuffer";
|
|
127
127
|
p.onreadystatechange = function() {
|
|
128
|
-
4 == p.readyState && 200 == p.status &&
|
|
128
|
+
4 == p.readyState && 200 == p.status && n(p);
|
|
129
129
|
};
|
|
130
130
|
p.open("GET", g, !0);
|
|
131
131
|
p.send(null);
|
|
@@ -134,30 +134,30 @@ n.onRuntimeInitialized = function() {
|
|
|
134
134
|
});
|
|
135
135
|
return !0;
|
|
136
136
|
},});
|
|
137
|
-
|
|
137
|
+
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
138
|
this.__parent.__construct.call(this);
|
|
139
|
-
this.
|
|
139
|
+
this.fb = [];
|
|
140
140
|
}, addLoader:function(e) {
|
|
141
|
-
this.
|
|
141
|
+
this.fb.push(e);
|
|
142
142
|
}, loadContents:function(e, f) {
|
|
143
|
-
for (let g of this.
|
|
143
|
+
for (let g of this.fb) {
|
|
144
144
|
if (g.loadContents(e, f)) {
|
|
145
145
|
return !0;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
return !1;
|
|
149
149
|
},});
|
|
150
|
-
let d =
|
|
151
|
-
|
|
152
|
-
return d.call(this, e, f, g,
|
|
150
|
+
let d = m.computeAlignment;
|
|
151
|
+
m.computeAlignment = function(e, f, g, n, p = 1.0) {
|
|
152
|
+
return d.call(this, e, f, g, n, p);
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
|
-
const fa =
|
|
156
|
-
|
|
155
|
+
const fa = m.onRuntimeInitialized;
|
|
156
|
+
m.onRuntimeInitialized = function() {
|
|
157
157
|
function a(k) {
|
|
158
158
|
this.F = k;
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.yb = k.getContext("2d");
|
|
160
|
+
this.Cb = d;
|
|
161
161
|
this.S = [];
|
|
162
162
|
this.la = 0;
|
|
163
163
|
this.clear = function() {
|
|
@@ -181,7 +181,7 @@ n.onRuntimeInitialized = function() {
|
|
|
181
181
|
this.flush = function() {
|
|
182
182
|
console.assert(0 == this.la);
|
|
183
183
|
e.add(this);
|
|
184
|
-
d.
|
|
184
|
+
d.Ta || c();
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
function b(k, q = !1) {
|
|
@@ -190,24 +190,24 @@ n.onRuntimeInitialized = function() {
|
|
|
190
190
|
if (!q) {
|
|
191
191
|
return null;
|
|
192
192
|
}
|
|
193
|
-
var y = ha(r), B = {handle:y, attributes:v, version:v.
|
|
194
|
-
q.canvas && (q.canvas.
|
|
193
|
+
var y = ha(r), B = {handle:y, attributes:v, version:v.Dc, H:q};
|
|
194
|
+
q.canvas && (q.canvas.oc = B);
|
|
195
195
|
r[y] = B;
|
|
196
|
-
("undefined" == typeof v.
|
|
196
|
+
("undefined" == typeof v.Ib || v.Ib) && ia(B);
|
|
197
197
|
ja(y);
|
|
198
198
|
v = f(k.width, k.height);
|
|
199
|
-
v.
|
|
199
|
+
v.zb = y;
|
|
200
200
|
v.F = k;
|
|
201
|
-
v.
|
|
202
|
-
v.
|
|
203
|
-
v.
|
|
201
|
+
v.Va = k.width;
|
|
202
|
+
v.Ua = k.height;
|
|
203
|
+
v.W = q;
|
|
204
204
|
return v;
|
|
205
205
|
}
|
|
206
206
|
function c() {
|
|
207
207
|
if (d) {
|
|
208
|
-
var k = d.
|
|
208
|
+
var k = d.Bb, q = 0, v = 0, y = 0, B = Array(e.size), D = 0;
|
|
209
209
|
for (var E of e) {
|
|
210
|
-
E.
|
|
210
|
+
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;
|
|
211
211
|
}
|
|
212
212
|
e.clear();
|
|
213
213
|
if (!(0 >= y)) {
|
|
@@ -218,11 +218,11 @@ n.onRuntimeInitialized = function() {
|
|
|
218
218
|
q = Math.min(q, k);
|
|
219
219
|
q = Math.min(v, k);
|
|
220
220
|
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
221
|
-
y = new
|
|
221
|
+
y = new m.DynamicRectanizer(k);
|
|
222
222
|
for (E = 0; E < B.length;) {
|
|
223
223
|
y.reset(q, v);
|
|
224
224
|
for (D = E; D < B.length; ++D) {
|
|
225
|
-
var H = B[D], F = y.addRect(H.
|
|
225
|
+
var H = B[D], F = y.addRect(H.fa, H.ea);
|
|
226
226
|
if (0 > F) {
|
|
227
227
|
console.assert(D > E);
|
|
228
228
|
break;
|
|
@@ -230,7 +230,7 @@ n.onRuntimeInitialized = function() {
|
|
|
230
230
|
H.ra = F & 65535;
|
|
231
231
|
H.sa = F >> 16;
|
|
232
232
|
}
|
|
233
|
-
H =
|
|
233
|
+
H = n.push(y.drawWidth());
|
|
234
234
|
F = p.push(y.drawHeight());
|
|
235
235
|
console.assert(H >= y.drawWidth());
|
|
236
236
|
console.assert(F >= y.drawHeight());
|
|
@@ -241,10 +241,10 @@ n.onRuntimeInitialized = function() {
|
|
|
241
241
|
d.clear();
|
|
242
242
|
for (H = E; H < D; ++H) {
|
|
243
243
|
F = B[H];
|
|
244
|
-
d.saveClipRect(F.ra, F.sa, F.ra + F.
|
|
245
|
-
let Y = new
|
|
246
|
-
Y.xx = F.
|
|
247
|
-
Y.yy = F.
|
|
244
|
+
d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
|
|
245
|
+
let Y = new m.Mat2D();
|
|
246
|
+
Y.xx = F.fa / F.F.width;
|
|
247
|
+
Y.yy = F.ea / F.F.height;
|
|
248
248
|
Y.xy = Y.yx = 0;
|
|
249
249
|
Y.tx = F.ra;
|
|
250
250
|
Y.ty = F.sa;
|
|
@@ -256,7 +256,7 @@ n.onRuntimeInitialized = function() {
|
|
|
256
256
|
F.S = [];
|
|
257
257
|
}
|
|
258
258
|
for (d.flush(); E < D; ++E) {
|
|
259
|
-
H = B[E], F = H.
|
|
259
|
+
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);
|
|
260
260
|
}
|
|
261
261
|
E = D;
|
|
262
262
|
}
|
|
@@ -265,59 +265,63 @@ n.onRuntimeInitialized = function() {
|
|
|
265
265
|
}
|
|
266
266
|
fa && fa();
|
|
267
267
|
let d = null;
|
|
268
|
-
const e = new Set(), f =
|
|
269
|
-
|
|
268
|
+
const e = new Set(), f = m.makeRenderer;
|
|
269
|
+
m.makeRenderer = function(k, q) {
|
|
270
270
|
if (!d) {
|
|
271
271
|
function v(y) {
|
|
272
|
-
|
|
272
|
+
var B = document.createElement("canvas");
|
|
273
273
|
B.width = 1;
|
|
274
274
|
B.height = 1;
|
|
275
275
|
d = b(B, y);
|
|
276
|
-
d.
|
|
277
|
-
d.
|
|
276
|
+
d.Ta = !!d.W.getExtension("WEBGL_shader_pixel_local_storage");
|
|
277
|
+
d.Bb = Math.min(d.W.getParameter(d.W.MAX_RENDERBUFFER_SIZE), d.W.getParameter(d.W.MAX_TEXTURE_SIZE));
|
|
278
|
+
d.Ja = !d.Ta;
|
|
279
|
+
if (y = d.W.getExtension("WEBGL_debug_renderer_info")) {
|
|
280
|
+
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);
|
|
281
|
+
}
|
|
278
282
|
return d;
|
|
279
283
|
}
|
|
280
284
|
d = v(!0);
|
|
281
|
-
d.Ja
|
|
285
|
+
d.Ja || (d = v(!1));
|
|
282
286
|
}
|
|
283
|
-
return q ? new a(k) : b(k,
|
|
287
|
+
return q ? new a(k) : b(k, d.Ja);
|
|
284
288
|
};
|
|
285
|
-
const g =
|
|
286
|
-
|
|
287
|
-
k.S ? k.S.push(g.bind(this, k.
|
|
289
|
+
const g = m.Artboard.prototype.draw;
|
|
290
|
+
m.Artboard.prototype.draw = function(k) {
|
|
291
|
+
k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
|
|
288
292
|
};
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
l.
|
|
294
|
-
|
|
295
|
-
let t =
|
|
296
|
-
|
|
297
|
-
const y = new
|
|
293
|
+
const n = new da(), p = new da(), l = new ca();
|
|
294
|
+
m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
295
|
+
m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
296
|
+
m.enableFPSCounter = l.Jb.bind(l);
|
|
297
|
+
l.jb = c;
|
|
298
|
+
m.resolveAnimationFrame = c;
|
|
299
|
+
let t = m.load;
|
|
300
|
+
m.load = function(k, q, v = !0) {
|
|
301
|
+
const y = new m.FallbackFileAssetLoader();
|
|
298
302
|
void 0 !== q && y.addLoader(q);
|
|
299
|
-
v && (q = new
|
|
303
|
+
v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
|
|
300
304
|
return Promise.resolve(t(k, y));
|
|
301
305
|
};
|
|
302
|
-
const u =
|
|
303
|
-
|
|
304
|
-
ja(this.
|
|
306
|
+
const u = m.WebGL2Renderer.prototype.clear;
|
|
307
|
+
m.WebGL2Renderer.prototype.clear = function() {
|
|
308
|
+
ja(this.zb);
|
|
305
309
|
const k = this.F;
|
|
306
|
-
if (this.
|
|
307
|
-
this.resize(k.width, k.height), this.
|
|
310
|
+
if (this.Va != k.width || this.Ua != k.height) {
|
|
311
|
+
this.resize(k.width, k.height), this.Va = k.width, this.Ua = k.height;
|
|
308
312
|
}
|
|
309
313
|
u.call(this);
|
|
310
314
|
};
|
|
311
|
-
|
|
312
|
-
k =
|
|
315
|
+
m.decodeImage = function(k, q) {
|
|
316
|
+
k = m.decodeWebGL2Image(k);
|
|
313
317
|
q(k);
|
|
314
318
|
};
|
|
315
|
-
let x =
|
|
316
|
-
|
|
319
|
+
let x = m.Renderer.prototype.align;
|
|
320
|
+
m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
|
|
317
321
|
x.call(this, k, q, v, y, B);
|
|
318
322
|
};
|
|
319
323
|
};
|
|
320
|
-
var ka = Object.assign({},
|
|
324
|
+
var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
|
|
321
325
|
if (ma || na) {
|
|
322
326
|
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 => {
|
|
323
327
|
var b = new XMLHttpRequest();
|
|
@@ -336,35 +340,35 @@ if (ma || na) {
|
|
|
336
340
|
d.send(null);
|
|
337
341
|
};
|
|
338
342
|
}
|
|
339
|
-
var qa =
|
|
340
|
-
Object.assign(
|
|
343
|
+
var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
|
|
344
|
+
Object.assign(m, ka);
|
|
341
345
|
ka = null;
|
|
342
|
-
|
|
346
|
+
m.thisProgram && (la = m.thisProgram);
|
|
343
347
|
var ra;
|
|
344
|
-
|
|
345
|
-
var noExitRuntime =
|
|
348
|
+
m.wasmBinary && (ra = m.wasmBinary);
|
|
349
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
346
350
|
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
347
351
|
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
348
352
|
function ya() {
|
|
349
353
|
var a = ta.buffer;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
354
|
+
m.HEAP8 = C = new Int8Array(a);
|
|
355
|
+
m.HEAP16 = I = new Int16Array(a);
|
|
356
|
+
m.HEAP32 = J = new Int32Array(a);
|
|
357
|
+
m.HEAPU8 = G = new Uint8Array(a);
|
|
358
|
+
m.HEAPU16 = va = new Uint16Array(a);
|
|
359
|
+
m.HEAPU32 = K = new Uint32Array(a);
|
|
360
|
+
m.HEAPF32 = wa = new Float32Array(a);
|
|
361
|
+
m.HEAPF64 = xa = new Float64Array(a);
|
|
358
362
|
}
|
|
359
363
|
var za, Aa = [], Ba = [], Ca = [];
|
|
360
364
|
function Da() {
|
|
361
|
-
var a =
|
|
365
|
+
var a = m.preRun.shift();
|
|
362
366
|
Aa.unshift(a);
|
|
363
367
|
}
|
|
364
368
|
var Ea = 0, Fa = null, Ga = null;
|
|
365
369
|
function sa(a) {
|
|
366
|
-
if (
|
|
367
|
-
|
|
370
|
+
if (m.onAbort) {
|
|
371
|
+
m.onAbort(a);
|
|
368
372
|
}
|
|
369
373
|
a = "Aborted(" + a + ")";
|
|
370
374
|
z(a);
|
|
@@ -380,7 +384,7 @@ var Ia;
|
|
|
380
384
|
Ia = "webgl2_advanced.wasm";
|
|
381
385
|
if (!Ha(Ia)) {
|
|
382
386
|
var Ja = Ia;
|
|
383
|
-
Ia =
|
|
387
|
+
Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
|
|
384
388
|
}
|
|
385
389
|
function Ka(a) {
|
|
386
390
|
if (a == Ia && ra) {
|
|
@@ -423,7 +427,7 @@ function Na(a, b) {
|
|
|
423
427
|
return Ma(c, a, b);
|
|
424
428
|
}));
|
|
425
429
|
}
|
|
426
|
-
var Oa, Pa, Ta = {
|
|
430
|
+
var Oa, Pa, Ta = {491878:(a, b, c, d, e) => {
|
|
427
431
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
428
432
|
return 0;
|
|
429
433
|
}
|
|
@@ -433,21 +437,21 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
433
437
|
window.h.I.Ba = a;
|
|
434
438
|
window.h.I.capture = b;
|
|
435
439
|
window.h.I.La = c;
|
|
436
|
-
window.h.
|
|
437
|
-
window.h.
|
|
438
|
-
window.h.
|
|
440
|
+
window.h.ia = {};
|
|
441
|
+
window.h.ia.stopped = d;
|
|
442
|
+
window.h.ia.sb = e;
|
|
439
443
|
let f = window.h;
|
|
440
444
|
f.C = [];
|
|
441
|
-
f.
|
|
442
|
-
for (var
|
|
443
|
-
if (null == f.C[
|
|
444
|
-
return f.C[
|
|
445
|
+
f.mc = function(g) {
|
|
446
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
447
|
+
if (null == f.C[n]) {
|
|
448
|
+
return f.C[n] = g, n;
|
|
445
449
|
}
|
|
446
450
|
}
|
|
447
451
|
f.C.push(g);
|
|
448
452
|
return f.C.length - 1;
|
|
449
453
|
};
|
|
450
|
-
f.
|
|
454
|
+
f.xb = function(g) {
|
|
451
455
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
452
456
|
if (null == f.C[f.C.length - 1]) {
|
|
453
457
|
f.C.pop();
|
|
@@ -456,39 +460,39 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
456
460
|
}
|
|
457
461
|
}
|
|
458
462
|
};
|
|
459
|
-
f.
|
|
460
|
-
for (var
|
|
461
|
-
if (f.C[
|
|
462
|
-
return f.
|
|
463
|
+
f.Oc = function(g) {
|
|
464
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
465
|
+
if (f.C[n] == g) {
|
|
466
|
+
return f.xb(n);
|
|
463
467
|
}
|
|
464
468
|
}
|
|
465
469
|
};
|
|
466
470
|
f.va = function(g) {
|
|
467
471
|
return f.C[g];
|
|
468
472
|
};
|
|
469
|
-
f.
|
|
473
|
+
f.wb = ["touchend", "click"];
|
|
470
474
|
f.unlock = function() {
|
|
471
475
|
for (var g = 0; g < f.C.length; ++g) {
|
|
472
|
-
var
|
|
473
|
-
null !=
|
|
474
|
-
Qa(
|
|
476
|
+
var n = f.C[g];
|
|
477
|
+
null != n && null != n.J && n.state === f.ia.sb && n.J.resume().then(() => {
|
|
478
|
+
Qa(n.kb);
|
|
475
479
|
}, p => {
|
|
476
480
|
console.error("Failed to resume audiocontext", p);
|
|
477
481
|
});
|
|
478
482
|
}
|
|
479
|
-
f.
|
|
483
|
+
f.wb.map(function(p) {
|
|
480
484
|
document.removeEventListener(p, f.unlock, !0);
|
|
481
485
|
});
|
|
482
486
|
};
|
|
483
|
-
f.
|
|
487
|
+
f.wb.map(function(g) {
|
|
484
488
|
document.addEventListener(g, f.unlock, !0);
|
|
485
489
|
});
|
|
486
490
|
}
|
|
487
491
|
window.h.Da += 1;
|
|
488
492
|
return 1;
|
|
489
|
-
},
|
|
493
|
+
}, 494056:() => {
|
|
490
494
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
491
|
-
},
|
|
495
|
+
}, 494220:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 494324:() => {
|
|
492
496
|
try {
|
|
493
497
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
494
498
|
a.close();
|
|
@@ -496,19 +500,19 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
496
500
|
} catch (c) {
|
|
497
501
|
return 0;
|
|
498
502
|
}
|
|
499
|
-
},
|
|
503
|
+
}, 494495:(a, b, c, d, e, f) => {
|
|
500
504
|
if ("undefined" === typeof window.h) {
|
|
501
505
|
return -1;
|
|
502
506
|
}
|
|
503
|
-
var g = {},
|
|
504
|
-
a == window.h.I.Ba && 0 != c && (
|
|
505
|
-
g.J = new (window.AudioContext || window.webkitAudioContext)(
|
|
507
|
+
var g = {}, n = {};
|
|
508
|
+
a == window.h.I.Ba && 0 != c && (n.sampleRate = c);
|
|
509
|
+
g.J = new (window.AudioContext || window.webkitAudioContext)(n);
|
|
506
510
|
g.J.suspend();
|
|
507
|
-
g.state = window.h.
|
|
511
|
+
g.state = window.h.ia.stopped;
|
|
508
512
|
c = 0;
|
|
509
513
|
a != window.h.I.Ba && (c = b);
|
|
510
|
-
g.
|
|
511
|
-
g.
|
|
514
|
+
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
515
|
+
g.Z.onaudioprocess = function(p) {
|
|
512
516
|
if (null == g.wa || 0 == g.wa.length) {
|
|
513
517
|
g.wa = new Float32Array(wa.buffer, e, d * b);
|
|
514
518
|
}
|
|
@@ -534,35 +538,35 @@ var Oa, Pa, Ta = {491674:(a, b, c, d, e) => {
|
|
|
534
538
|
};
|
|
535
539
|
a != window.h.I.capture && a != window.h.I.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
536
540
|
g.Ea = g.J.createMediaStreamSource(p);
|
|
537
|
-
g.Ea.connect(g.
|
|
538
|
-
g.
|
|
541
|
+
g.Ea.connect(g.Z);
|
|
542
|
+
g.Z.connect(g.J.destination);
|
|
539
543
|
}).catch(function(p) {
|
|
540
544
|
console.log("Failed to get user media: " + p);
|
|
541
545
|
});
|
|
542
|
-
a == window.h.I.Ba && g.
|
|
543
|
-
g.
|
|
544
|
-
return window.h.
|
|
545
|
-
},
|
|
546
|
+
a == window.h.I.Ba && g.Z.connect(g.J.destination);
|
|
547
|
+
g.kb = f;
|
|
548
|
+
return window.h.mc(g);
|
|
549
|
+
}, 497372:a => window.h.va(a).J.sampleRate, 497445:a => {
|
|
546
550
|
a = window.h.va(a);
|
|
547
|
-
void 0 !== a.
|
|
548
|
-
}, a.
|
|
551
|
+
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
552
|
+
}, a.Z.disconnect(), a.Z = void 0);
|
|
549
553
|
void 0 !== a.Ea && (a.Ea.disconnect(), a.Ea = void 0);
|
|
550
554
|
a.J.close();
|
|
551
555
|
a.J = void 0;
|
|
552
|
-
a.
|
|
553
|
-
},
|
|
554
|
-
window.h.
|
|
555
|
-
},
|
|
556
|
+
a.kb = void 0;
|
|
557
|
+
}, 497845:a => {
|
|
558
|
+
window.h.xb(a);
|
|
559
|
+
}, 497895:a => {
|
|
556
560
|
a = window.h.va(a);
|
|
557
561
|
a.J.resume();
|
|
558
|
-
a.state = window.h.
|
|
559
|
-
},
|
|
562
|
+
a.state = window.h.ia.sb;
|
|
563
|
+
}, 498034:a => {
|
|
560
564
|
a = window.h.va(a);
|
|
561
565
|
a.J.suspend();
|
|
562
|
-
a.state = window.h.
|
|
566
|
+
a.state = window.h.ia.stopped;
|
|
563
567
|
}}, Ua = a => {
|
|
564
568
|
for (; 0 < a.length;) {
|
|
565
|
-
a.shift()(
|
|
569
|
+
a.shift()(m);
|
|
566
570
|
}
|
|
567
571
|
}, Va = (a, b) => {
|
|
568
572
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -657,8 +661,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
|
|
|
657
661
|
for (var f = 0; f < a.length; ++f) {
|
|
658
662
|
var g = a.charCodeAt(f);
|
|
659
663
|
if (55296 <= g && 57343 >= g) {
|
|
660
|
-
var
|
|
661
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
664
|
+
var n = a.charCodeAt(++f);
|
|
665
|
+
g = 65536 + ((g & 1023) << 10) | n & 1023;
|
|
662
666
|
}
|
|
663
667
|
if (127 >= g) {
|
|
664
668
|
if (c >= d) {
|
|
@@ -715,13 +719,13 @@ var jb = {open:function(a) {
|
|
|
715
719
|
}, ua:function(a) {
|
|
716
720
|
a.s.U.ua(a.s);
|
|
717
721
|
}, read:function(a, b, c, d) {
|
|
718
|
-
if (!a.s || !a.s.U.
|
|
722
|
+
if (!a.s || !a.s.U.eb) {
|
|
719
723
|
throw new M(60);
|
|
720
724
|
}
|
|
721
725
|
for (var e = 0, f = 0; f < d; f++) {
|
|
722
726
|
try {
|
|
723
|
-
var g = a.s.U.
|
|
724
|
-
} catch (
|
|
727
|
+
var g = a.s.U.eb(a.s);
|
|
728
|
+
} catch (n) {
|
|
725
729
|
throw new M(29);
|
|
726
730
|
}
|
|
727
731
|
if (void 0 === g && 0 === e) {
|
|
@@ -748,7 +752,7 @@ var jb = {open:function(a) {
|
|
|
748
752
|
}
|
|
749
753
|
d && (a.node.timestamp = Date.now());
|
|
750
754
|
return e;
|
|
751
|
-
},}, kb = {
|
|
755
|
+
},}, kb = {eb:function() {
|
|
752
756
|
a: {
|
|
753
757
|
if (!cb.length) {
|
|
754
758
|
var a = null;
|
|
@@ -766,11 +770,11 @@ var jb = {open:function(a) {
|
|
|
766
770
|
null === b || 10 === b ? (qa(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
767
771
|
}, ua:function(a) {
|
|
768
772
|
a.D && 0 < a.D.length && (qa(L(a.D, 0)), a.D = []);
|
|
769
|
-
}, Ub:function() {
|
|
770
|
-
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,]};
|
|
771
773
|
}, Vb:function() {
|
|
772
|
-
return 0;
|
|
774
|
+
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,]};
|
|
773
775
|
}, Wb:function() {
|
|
776
|
+
return 0;
|
|
777
|
+
}, Xb:function() {
|
|
774
778
|
return [24, 80];
|
|
775
779
|
},}, lb = {Oa:function(a, b) {
|
|
776
780
|
null === b || 10 === b ? (z(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
@@ -787,29 +791,29 @@ var N = {O:null, T() {
|
|
|
787
791
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
788
792
|
throw new M(63);
|
|
789
793
|
}
|
|
790
|
-
N.O || (N.O = {dir:{node:{
|
|
794
|
+
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}});
|
|
791
795
|
c = ob(a, b, c, d);
|
|
792
|
-
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.
|
|
796
|
+
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);
|
|
793
797
|
c.timestamp = Date.now();
|
|
794
798
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
795
799
|
return c;
|
|
796
|
-
},
|
|
800
|
+
}, Ac(a) {
|
|
797
801
|
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
798
|
-
}, l:{
|
|
802
|
+
}, l:{Y(a) {
|
|
799
803
|
var b = {};
|
|
800
|
-
b.
|
|
801
|
-
b.
|
|
804
|
+
b.yc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
805
|
+
b.Cc = a.id;
|
|
802
806
|
b.mode = a.mode;
|
|
803
|
-
b.
|
|
807
|
+
b.Kc = 1;
|
|
804
808
|
b.uid = 0;
|
|
805
|
-
b.
|
|
809
|
+
b.Bc = 0;
|
|
806
810
|
b.Ca = a.Ca;
|
|
807
811
|
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;
|
|
808
|
-
b.
|
|
809
|
-
b.
|
|
810
|
-
b.
|
|
811
|
-
b.
|
|
812
|
-
b.
|
|
812
|
+
b.pc = new Date(a.timestamp);
|
|
813
|
+
b.Ic = new Date(a.timestamp);
|
|
814
|
+
b.wc = new Date(a.timestamp);
|
|
815
|
+
b.Db = 4096;
|
|
816
|
+
b.qc = Math.ceil(b.size / b.Db);
|
|
813
817
|
return b;
|
|
814
818
|
}, P(a, b) {
|
|
815
819
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -828,7 +832,7 @@ var N = {O:null, T() {
|
|
|
828
832
|
throw pb[44];
|
|
829
833
|
}, za(a, b, c, d) {
|
|
830
834
|
return N.createNode(a, b, c, d);
|
|
831
|
-
},
|
|
835
|
+
}, qb(a, b, c) {
|
|
832
836
|
if (16384 === (a.mode & 61440)) {
|
|
833
837
|
try {
|
|
834
838
|
var d = qb(b, c);
|
|
@@ -846,17 +850,17 @@ var N = {O:null, T() {
|
|
|
846
850
|
b.j[c] = a;
|
|
847
851
|
b.timestamp = a.parent.timestamp;
|
|
848
852
|
a.parent = b;
|
|
849
|
-
},
|
|
853
|
+
}, vb(a, b) {
|
|
850
854
|
delete a.j[b];
|
|
851
855
|
a.timestamp = Date.now();
|
|
852
|
-
},
|
|
856
|
+
}, rb(a, b) {
|
|
853
857
|
var c = qb(a, b), d;
|
|
854
858
|
for (d in c.j) {
|
|
855
859
|
throw new M(55);
|
|
856
860
|
}
|
|
857
861
|
delete a.j[b];
|
|
858
862
|
a.timestamp = Date.now();
|
|
859
|
-
},
|
|
863
|
+
}, ob(a) {
|
|
860
864
|
var b = [".", ".."], c;
|
|
861
865
|
for (c in a.j) {
|
|
862
866
|
a.j.hasOwnProperty(c) && b.push(c);
|
|
@@ -913,7 +917,7 @@ var N = {O:null, T() {
|
|
|
913
917
|
}
|
|
914
918
|
a.v = Math.max(a.v, e + d);
|
|
915
919
|
return d;
|
|
916
|
-
},
|
|
920
|
+
}, ba(a, b, c) {
|
|
917
921
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
918
922
|
if (0 > b) {
|
|
919
923
|
throw new M(28);
|
|
@@ -922,7 +926,7 @@ var N = {O:null, T() {
|
|
|
922
926
|
}, ta(a, b, c) {
|
|
923
927
|
mb(a.node, b + c);
|
|
924
928
|
a.node.v = Math.max(a.node.v, b + c);
|
|
925
|
-
},
|
|
929
|
+
}, gb(a, b, c, d, e) {
|
|
926
930
|
if (32768 !== (a.node.mode & 61440)) {
|
|
927
931
|
throw new M(43);
|
|
928
932
|
}
|
|
@@ -942,7 +946,7 @@ var N = {O:null, T() {
|
|
|
942
946
|
c = !1, b = a.byteOffset;
|
|
943
947
|
}
|
|
944
948
|
return {o:b, M:c};
|
|
945
|
-
},
|
|
949
|
+
}, ib(a, b, c, d) {
|
|
946
950
|
N.m.write(a, b, 0, d, c, !1);
|
|
947
951
|
return 0;
|
|
948
952
|
},},};
|
|
@@ -957,7 +961,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
957
961
|
if (!a) {
|
|
958
962
|
return {path:"", node:null};
|
|
959
963
|
}
|
|
960
|
-
b = Object.assign({
|
|
964
|
+
b = Object.assign({bb:!0, Qa:0}, b);
|
|
961
965
|
if (8 < b.Qa) {
|
|
962
966
|
throw new M(32);
|
|
963
967
|
}
|
|
@@ -969,8 +973,8 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
969
973
|
}
|
|
970
974
|
c = qb(c, a[e]);
|
|
971
975
|
d = Wa(d + "/" + a[e]);
|
|
972
|
-
c.Aa && (!f || f && b.
|
|
973
|
-
if (!f || b
|
|
976
|
+
c.Aa && (!f || f && b.bb) && (c = c.Aa.root);
|
|
977
|
+
if (!f || b.ab) {
|
|
974
978
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
975
979
|
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
976
980
|
throw new M(32);
|
|
@@ -982,7 +986,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
982
986
|
}, Bb = a => {
|
|
983
987
|
for (var b;;) {
|
|
984
988
|
if (a === a.parent) {
|
|
985
|
-
return a = a.T.
|
|
989
|
+
return a = a.T.hb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
986
990
|
}
|
|
987
991
|
b = b ? `${a.name}/${b}` : a.name;
|
|
988
992
|
a = a.parent;
|
|
@@ -997,7 +1001,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
997
1001
|
if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
998
1002
|
throw new M(c, a);
|
|
999
1003
|
}
|
|
1000
|
-
for (c = xb[Cb(a.id, b)]; c; c = c
|
|
1004
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.$b) {
|
|
1001
1005
|
var d = c.name;
|
|
1002
1006
|
if (c.parent.id === a.id && d === b) {
|
|
1003
1007
|
return c;
|
|
@@ -1007,7 +1011,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1007
1011
|
}, ob = (a, b, c, d) => {
|
|
1008
1012
|
a = new Eb(a, b, c, d);
|
|
1009
1013
|
b = Cb(a.parent.id, a.name);
|
|
1010
|
-
a
|
|
1014
|
+
a.$b = xb[b];
|
|
1011
1015
|
return xb[b] = a;
|
|
1012
1016
|
}, Fb = a => {
|
|
1013
1017
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -1062,12 +1066,12 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1062
1066
|
},},}));
|
|
1063
1067
|
a = Object.assign(new Jb(), a);
|
|
1064
1068
|
-1 == b && (b = Hb());
|
|
1065
|
-
a.
|
|
1069
|
+
a.X = b;
|
|
1066
1070
|
return vb[b] = a;
|
|
1067
1071
|
}, nb = {open:a => {
|
|
1068
1072
|
a.m = ub[a.node.Ca].m;
|
|
1069
1073
|
a.m.open && a.m.open(a);
|
|
1070
|
-
},
|
|
1074
|
+
}, ba:() => {
|
|
1071
1075
|
throw new M(70);
|
|
1072
1076
|
},}, ib = (a, b) => {
|
|
1073
1077
|
ub[a] = {m:b};
|
|
@@ -1077,7 +1081,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1077
1081
|
throw new M(10);
|
|
1078
1082
|
}
|
|
1079
1083
|
if (!c && !d) {
|
|
1080
|
-
var e = Ab(b, {
|
|
1084
|
+
var e = Ab(b, {bb:!1});
|
|
1081
1085
|
b = e.path;
|
|
1082
1086
|
e = e.node;
|
|
1083
1087
|
if (e.Aa) {
|
|
@@ -1087,11 +1091,11 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1087
1091
|
throw new M(54);
|
|
1088
1092
|
}
|
|
1089
1093
|
}
|
|
1090
|
-
b = {type:a,
|
|
1094
|
+
b = {type:a, Mc:{}, hb:b, Zb:[]};
|
|
1091
1095
|
a = a.T(b);
|
|
1092
1096
|
a.T = b;
|
|
1093
1097
|
b.root = a;
|
|
1094
|
-
c ? tb = a : e && (e.Aa = b, e.T && e.T.
|
|
1098
|
+
c ? tb = a : e && (e.Aa = b, e.T && e.T.Zb.push(b));
|
|
1095
1099
|
}, O = (a, b, c) => {
|
|
1096
1100
|
var d = Ab(a, {parent:!0}).node;
|
|
1097
1101
|
a = Ya(a);
|
|
@@ -1152,7 +1156,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1152
1156
|
} else {
|
|
1153
1157
|
a = Wa(a);
|
|
1154
1158
|
try {
|
|
1155
|
-
e = Ab(a, {
|
|
1159
|
+
e = Ab(a, {ab:!(b & 131072)}).node;
|
|
1156
1160
|
} catch (f) {
|
|
1157
1161
|
}
|
|
1158
1162
|
}
|
|
@@ -1178,7 +1182,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1178
1182
|
}
|
|
1179
1183
|
if (b & 512 && !d) {
|
|
1180
1184
|
c = e;
|
|
1181
|
-
c = "string" == typeof c ? Ab(c, {
|
|
1185
|
+
c = "string" == typeof c ? Ab(c, {ab:!0}).node : c;
|
|
1182
1186
|
if (!c.l.P) {
|
|
1183
1187
|
throw new M(63);
|
|
1184
1188
|
}
|
|
@@ -1194,30 +1198,30 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1194
1198
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1195
1199
|
}
|
|
1196
1200
|
b &= -131713;
|
|
1197
|
-
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1201
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
|
|
1198
1202
|
e.m.open && e.m.open(e);
|
|
1199
|
-
!
|
|
1203
|
+
!m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1200
1204
|
return e;
|
|
1201
1205
|
}, Qb = (a, b, c) => {
|
|
1202
|
-
if (null === a.
|
|
1206
|
+
if (null === a.X) {
|
|
1203
1207
|
throw new M(8);
|
|
1204
1208
|
}
|
|
1205
|
-
if (!a.seekable || !a.m.
|
|
1209
|
+
if (!a.seekable || !a.m.ba) {
|
|
1206
1210
|
throw new M(70);
|
|
1207
1211
|
}
|
|
1208
1212
|
if (0 != c && 1 != c && 2 != c) {
|
|
1209
1213
|
throw new M(28);
|
|
1210
1214
|
}
|
|
1211
|
-
a.position = a.m.
|
|
1212
|
-
a.
|
|
1215
|
+
a.position = a.m.ba(a, b, c);
|
|
1216
|
+
a.nc = [];
|
|
1213
1217
|
}, Rb = () => {
|
|
1214
1218
|
M || (M = function(a, b) {
|
|
1215
1219
|
this.name = "ErrnoError";
|
|
1216
1220
|
this.node = b;
|
|
1217
|
-
this.
|
|
1218
|
-
this
|
|
1221
|
+
this.cc = function(c) {
|
|
1222
|
+
this.aa = c;
|
|
1219
1223
|
};
|
|
1220
|
-
this.
|
|
1224
|
+
this.cc(a);
|
|
1221
1225
|
this.message = "FS error";
|
|
1222
1226
|
}, M.prototype = Error(), M.prototype.constructor = M, [44].forEach(a => {
|
|
1223
1227
|
pb[a] = new M(a);
|
|
@@ -1232,7 +1236,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1232
1236
|
f.seekable = !1;
|
|
1233
1237
|
}, close:() => {
|
|
1234
1238
|
c && c.buffer && c.buffer.length && c(10);
|
|
1235
|
-
}, read:(f, g,
|
|
1239
|
+
}, read:(f, g, n, p) => {
|
|
1236
1240
|
for (var l = 0, t = 0; t < p; t++) {
|
|
1237
1241
|
try {
|
|
1238
1242
|
var u = b();
|
|
@@ -1246,14 +1250,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1246
1250
|
break;
|
|
1247
1251
|
}
|
|
1248
1252
|
l++;
|
|
1249
|
-
g[
|
|
1253
|
+
g[n + t] = u;
|
|
1250
1254
|
}
|
|
1251
1255
|
l && (f.node.timestamp = Date.now());
|
|
1252
1256
|
return l;
|
|
1253
|
-
}, write:(f, g,
|
|
1257
|
+
}, write:(f, g, n, p) => {
|
|
1254
1258
|
for (var l = 0; l < p; l++) {
|
|
1255
1259
|
try {
|
|
1256
|
-
c(g[
|
|
1260
|
+
c(g[n + l]);
|
|
1257
1261
|
} catch (t) {
|
|
1258
1262
|
throw new M(29);
|
|
1259
1263
|
}
|
|
@@ -1283,7 +1287,7 @@ function Zb(a, b) {
|
|
|
1283
1287
|
}
|
|
1284
1288
|
function $b() {
|
|
1285
1289
|
this.M = [void 0];
|
|
1286
|
-
this.
|
|
1290
|
+
this.cb = [];
|
|
1287
1291
|
}
|
|
1288
1292
|
var P = new $b(), ac = void 0;
|
|
1289
1293
|
function Q(a) {
|
|
@@ -1303,7 +1307,7 @@ var R = a => {
|
|
|
1303
1307
|
case !1:
|
|
1304
1308
|
return 4;
|
|
1305
1309
|
default:
|
|
1306
|
-
return P.ta({
|
|
1310
|
+
return P.ta({pb:1, value:a});
|
|
1307
1311
|
}
|
|
1308
1312
|
};
|
|
1309
1313
|
function cc(a) {
|
|
@@ -1331,7 +1335,7 @@ var fc = [];
|
|
|
1331
1335
|
function gc() {
|
|
1332
1336
|
for (; fc.length;) {
|
|
1333
1337
|
var a = fc.pop();
|
|
1334
|
-
a.g.
|
|
1338
|
+
a.g.ha = !1;
|
|
1335
1339
|
a["delete"]();
|
|
1336
1340
|
}
|
|
1337
1341
|
}
|
|
@@ -1369,7 +1373,7 @@ function sc(a, b, c) {
|
|
|
1369
1373
|
return null;
|
|
1370
1374
|
}
|
|
1371
1375
|
a = sc(a, b, c.A);
|
|
1372
|
-
return null === a ? null : c.
|
|
1376
|
+
return null === a ? null : c.Hb(a);
|
|
1373
1377
|
}
|
|
1374
1378
|
var tc = {};
|
|
1375
1379
|
function uc(a, b) {
|
|
@@ -1415,20 +1419,20 @@ function Bc(a) {
|
|
|
1415
1419
|
}
|
|
1416
1420
|
var Cc = {}, Dc = {};
|
|
1417
1421
|
function T(a, b, c) {
|
|
1418
|
-
function d(
|
|
1419
|
-
|
|
1420
|
-
|
|
1422
|
+
function d(n) {
|
|
1423
|
+
n = c(n);
|
|
1424
|
+
n.length !== a.length && wc("Mismatched type converter count");
|
|
1421
1425
|
for (var p = 0; p < a.length; ++p) {
|
|
1422
|
-
U(a[p],
|
|
1426
|
+
U(a[p], n[p]);
|
|
1423
1427
|
}
|
|
1424
1428
|
}
|
|
1425
|
-
a.forEach(function(
|
|
1426
|
-
Dc[
|
|
1429
|
+
a.forEach(function(n) {
|
|
1430
|
+
Dc[n] = b;
|
|
1427
1431
|
});
|
|
1428
1432
|
var e = Array(b.length), f = [], g = 0;
|
|
1429
|
-
b.forEach((
|
|
1430
|
-
kc.hasOwnProperty(
|
|
1431
|
-
e[p] = kc[
|
|
1433
|
+
b.forEach((n, p) => {
|
|
1434
|
+
kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
|
|
1435
|
+
e[p] = kc[n];
|
|
1432
1436
|
++g;
|
|
1433
1437
|
g === f.length && d(e);
|
|
1434
1438
|
}));
|
|
@@ -1453,7 +1457,7 @@ function Fc(a, b, c = {}) {
|
|
|
1453
1457
|
var d = b.name;
|
|
1454
1458
|
a || Q(`type "${d}" must have a positive integer typeid pointer`);
|
|
1455
1459
|
if (kc.hasOwnProperty(a)) {
|
|
1456
|
-
if (c.
|
|
1460
|
+
if (c.Sb) {
|
|
1457
1461
|
return;
|
|
1458
1462
|
}
|
|
1459
1463
|
Q(`Cannot register type '${d}' twice`);
|
|
@@ -1481,22 +1485,22 @@ function Ic(a, b, c) {
|
|
|
1481
1485
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1482
1486
|
};
|
|
1483
1487
|
a[b].B = [];
|
|
1484
|
-
a[b].B[d.
|
|
1488
|
+
a[b].B[d.ga] = d;
|
|
1485
1489
|
}
|
|
1486
1490
|
}
|
|
1487
1491
|
function Jc(a, b, c) {
|
|
1488
|
-
|
|
1492
|
+
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));
|
|
1489
1493
|
}
|
|
1490
|
-
function Kc(a, b, c, d, e, f, g,
|
|
1494
|
+
function Kc(a, b, c, d, e, f, g, n) {
|
|
1491
1495
|
this.name = a;
|
|
1492
1496
|
this.constructor = b;
|
|
1493
1497
|
this.N = c;
|
|
1494
1498
|
this.V = d;
|
|
1495
1499
|
this.A = e;
|
|
1496
|
-
this.
|
|
1500
|
+
this.Mb = f;
|
|
1497
1501
|
this.pa = g;
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1502
|
+
this.Hb = n;
|
|
1503
|
+
this.lb = [];
|
|
1500
1504
|
}
|
|
1501
1505
|
function Lc(a, b, c) {
|
|
1502
1506
|
for (; b !== c;) {
|
|
@@ -1527,7 +1531,7 @@ function Oc(a, b) {
|
|
|
1527
1531
|
!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}`);
|
|
1528
1532
|
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1529
1533
|
if (this.ya) {
|
|
1530
|
-
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.
|
|
1534
|
+
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.hc) {
|
|
1531
1535
|
case 0:
|
|
1532
1536
|
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}`);
|
|
1533
1537
|
break;
|
|
@@ -1539,7 +1543,7 @@ function Oc(a, b) {
|
|
|
1539
1543
|
c = b.g.G;
|
|
1540
1544
|
} else {
|
|
1541
1545
|
var d = b.clone();
|
|
1542
|
-
c = this.
|
|
1546
|
+
c = this.bc(c, bc(function() {
|
|
1543
1547
|
d["delete"]();
|
|
1544
1548
|
}));
|
|
1545
1549
|
null !== a && a.push(this.V, c);
|
|
@@ -1566,12 +1570,12 @@ function Qc(a, b, c, d) {
|
|
|
1566
1570
|
this.Na = c;
|
|
1567
1571
|
this.xa = d;
|
|
1568
1572
|
this.ya = !1;
|
|
1569
|
-
this.V = this.
|
|
1573
|
+
this.V = this.bc = this.Pa = this.nb = this.hc = this.ac = void 0;
|
|
1570
1574
|
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1571
1575
|
}
|
|
1572
1576
|
function Rc(a, b, c) {
|
|
1573
|
-
|
|
1574
|
-
void 0 !==
|
|
1577
|
+
m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1578
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
|
|
1575
1579
|
}
|
|
1576
1580
|
var Sc = [], Tc = a => {
|
|
1577
1581
|
var b = Sc[a];
|
|
@@ -1583,7 +1587,7 @@ var Sc = [], Tc = a => {
|
|
|
1583
1587
|
c.length = 0;
|
|
1584
1588
|
Object.assign(c, arguments);
|
|
1585
1589
|
if (a.includes("j")) {
|
|
1586
|
-
var d =
|
|
1590
|
+
var d = m["dynCall_" + a];
|
|
1587
1591
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1588
1592
|
} else {
|
|
1589
1593
|
d = Tc(b).apply(null, c);
|
|
@@ -1609,10 +1613,10 @@ function Wc(a, b) {
|
|
|
1609
1613
|
function Xc(a, b, c, d, e) {
|
|
1610
1614
|
var f = b.length;
|
|
1611
1615
|
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1612
|
-
var g = null !== b[1] && null !== c,
|
|
1616
|
+
var g = null !== b[1] && null !== c, n = !1;
|
|
1613
1617
|
for (c = 1; c < b.length; ++c) {
|
|
1614
1618
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1615
|
-
|
|
1619
|
+
n = !0;
|
|
1616
1620
|
break;
|
|
1617
1621
|
}
|
|
1618
1622
|
}
|
|
@@ -1630,7 +1634,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1630
1634
|
t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
|
|
1631
1635
|
}
|
|
1632
1636
|
q = d.apply(null, u);
|
|
1633
|
-
if (
|
|
1637
|
+
if (n) {
|
|
1634
1638
|
Ac(x);
|
|
1635
1639
|
} else {
|
|
1636
1640
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
@@ -1655,7 +1659,7 @@ function Zc(a, b, c) {
|
|
|
1655
1659
|
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1656
1660
|
}
|
|
1657
1661
|
function $c(a) {
|
|
1658
|
-
a >= P.h && 0 === --P.get(a).
|
|
1662
|
+
a >= P.h && 0 === --P.get(a).pb && P.Rb(a);
|
|
1659
1663
|
}
|
|
1660
1664
|
function ad(a, b, c) {
|
|
1661
1665
|
switch(b) {
|
|
@@ -1808,10 +1812,10 @@ function pd(a, b) {
|
|
|
1808
1812
|
}
|
|
1809
1813
|
var qd = [], rd = [];
|
|
1810
1814
|
function sd(a) {
|
|
1811
|
-
a.
|
|
1815
|
+
a.zc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1812
1816
|
}
|
|
1813
1817
|
function td(a) {
|
|
1814
|
-
a.
|
|
1818
|
+
a.Hc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1815
1819
|
}
|
|
1816
1820
|
var ud = 1, vd = [], W = [], wd = [], xd = [], yd = [], zd = [], Ad = [], r = [], Bd = {};
|
|
1817
1821
|
function X(a) {
|
|
@@ -1825,19 +1829,19 @@ function ha(a) {
|
|
|
1825
1829
|
}
|
|
1826
1830
|
function ja(a) {
|
|
1827
1831
|
Dd = r[a];
|
|
1828
|
-
|
|
1832
|
+
m.xc = Z = Dd && Dd.H;
|
|
1829
1833
|
return !(a && !Z);
|
|
1830
1834
|
}
|
|
1831
1835
|
function ia(a) {
|
|
1832
1836
|
a || (a = Dd);
|
|
1833
|
-
if (!a.
|
|
1834
|
-
a.
|
|
1837
|
+
if (!a.Tb) {
|
|
1838
|
+
a.Tb = !0;
|
|
1835
1839
|
var b = a.H;
|
|
1836
1840
|
sd(b);
|
|
1837
1841
|
td(b);
|
|
1838
|
-
2 <= a.version && (b.
|
|
1839
|
-
if (2 > a.version || !b.
|
|
1840
|
-
b.
|
|
1842
|
+
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1843
|
+
if (2 > a.version || !b.Za) {
|
|
1844
|
+
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1841
1845
|
}
|
|
1842
1846
|
Ed(b);
|
|
1843
1847
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
@@ -1847,7 +1851,7 @@ function ia(a) {
|
|
|
1847
1851
|
}
|
|
1848
1852
|
var Cd, Dd;
|
|
1849
1853
|
function Ed(a) {
|
|
1850
|
-
a.
|
|
1854
|
+
a.Jc = a.getExtension("WEBGL_multi_draw");
|
|
1851
1855
|
}
|
|
1852
1856
|
var Fd = {}, Hd = () => {
|
|
1853
1857
|
if (!Gd) {
|
|
@@ -1994,7 +1998,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1994
1998
|
0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
|
|
1995
1999
|
return y;
|
|
1996
2000
|
}
|
|
1997
|
-
function
|
|
2001
|
+
function n(k) {
|
|
1998
2002
|
switch(k.getDay()) {
|
|
1999
2003
|
case 0:
|
|
2000
2004
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2013,8 +2017,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2013
2017
|
}
|
|
2014
2018
|
}
|
|
2015
2019
|
function p(k) {
|
|
2016
|
-
var q = k.
|
|
2017
|
-
for (k = new Date((new Date(k.
|
|
2020
|
+
var q = k.ca;
|
|
2021
|
+
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < q;) {
|
|
2018
2022
|
var v = k.getMonth(), y = (Od(k.getFullYear()) ? Pd : Qd)[v];
|
|
2019
2023
|
if (q > y - k.getDate()) {
|
|
2020
2024
|
q -= y - k.getDate() + 1, k.setDate(1), 11 > v ? k.setMonth(v + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
@@ -2024,43 +2028,43 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2024
2028
|
}
|
|
2025
2029
|
}
|
|
2026
2030
|
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2027
|
-
q =
|
|
2028
|
-
v =
|
|
2031
|
+
q = n(new Date(k.getFullYear(), 0, 4));
|
|
2032
|
+
v = n(v);
|
|
2029
2033
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2030
2034
|
}
|
|
2031
2035
|
var l = J[d + 40 >> 2];
|
|
2032
|
-
d = {
|
|
2036
|
+
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) : "" : ""};
|
|
2033
2037
|
c = c ? L(G, c) : "";
|
|
2034
2038
|
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",};
|
|
2035
2039
|
for (var t in l) {
|
|
2036
2040
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
2037
2041
|
}
|
|
2038
2042
|
var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2039
|
-
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.
|
|
2043
|
+
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 => {
|
|
2040
2044
|
k = k.Ga;
|
|
2041
2045
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2042
2046
|
return f(k, 2);
|
|
2043
2047
|
}, "%j":k => {
|
|
2044
|
-
for (var q = 0, v = 0; v <= k.Ha - 1; q += (Od(k.
|
|
2048
|
+
for (var q = 0, v = 0; v <= k.Ha - 1; q += (Od(k.da + 1900) ? Pd : Qd)[v++]) {
|
|
2045
2049
|
}
|
|
2046
2050
|
return f(k.Ra + q, 3);
|
|
2047
|
-
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.
|
|
2048
|
-
var q = Math.floor((k.
|
|
2049
|
-
2 >= (k.R + 371 - k.
|
|
2051
|
+
}, "%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 => {
|
|
2052
|
+
var q = Math.floor((k.ca + 7 - (k.R + 6) % 7) / 7);
|
|
2053
|
+
2 >= (k.R + 371 - k.ca - 2) % 7 && q++;
|
|
2050
2054
|
if (q) {
|
|
2051
|
-
53 == q && (v = (k.R + 371 - k.
|
|
2055
|
+
53 == q && (v = (k.R + 371 - k.ca) % 7, 4 == v || 3 == v && Od(k.da) || (q = 1));
|
|
2052
2056
|
} else {
|
|
2053
2057
|
q = 52;
|
|
2054
|
-
var v = (k.R + 7 - k.
|
|
2055
|
-
(4 == v || 5 == v && Od(k.
|
|
2058
|
+
var v = (k.R + 7 - k.ca - 1) % 7;
|
|
2059
|
+
(4 == v || 5 == v && Od(k.da % 400 - 1)) && q++;
|
|
2056
2060
|
}
|
|
2057
2061
|
return f(q, 2);
|
|
2058
|
-
}, "%w":k => k.R, "%W":k => f(Math.floor((k.
|
|
2059
|
-
k = k.
|
|
2062
|
+
}, "%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 => {
|
|
2063
|
+
k = k.ic;
|
|
2060
2064
|
var q = 0 <= k;
|
|
2061
2065
|
k = Math.abs(k) / 60;
|
|
2062
2066
|
return (q ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
|
|
2063
|
-
}, "%Z":k => k.
|
|
2067
|
+
}, "%Z":k => k.lc, "%%":() => "%"};
|
|
2064
2068
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2065
2069
|
for (t in l) {
|
|
2066
2070
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
|
|
@@ -2125,7 +2129,7 @@ O("/home/web_user", 16895, 0);
|
|
|
2125
2129
|
var b = ob(a, "fd", 16895, 73);
|
|
2126
2130
|
b.l = {ma:(c, d) => {
|
|
2127
2131
|
var e = Ib(+d);
|
|
2128
|
-
c = {parent:null, T:{
|
|
2132
|
+
c = {parent:null, T:{hb:"fake"}, l:{na:() => e.path},};
|
|
2129
2133
|
return c.parent = c;
|
|
2130
2134
|
}};
|
|
2131
2135
|
return b;
|
|
@@ -2136,14 +2140,14 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2136
2140
|
}, has(a) {
|
|
2137
2141
|
return void 0 !== this.M[a];
|
|
2138
2142
|
}, ta(a) {
|
|
2139
|
-
var b = this.
|
|
2143
|
+
var b = this.cb.pop() || this.M.length;
|
|
2140
2144
|
this.M[b] = a;
|
|
2141
2145
|
return b;
|
|
2142
|
-
},
|
|
2146
|
+
}, Rb(a) {
|
|
2143
2147
|
this.M[a] = void 0;
|
|
2144
|
-
this.
|
|
2148
|
+
this.cb.push(a);
|
|
2145
2149
|
}});
|
|
2146
|
-
ac =
|
|
2150
|
+
ac = m.BindingError = class extends Error {
|
|
2147
2151
|
constructor(a) {
|
|
2148
2152
|
super(a);
|
|
2149
2153
|
this.name = "BindingError";
|
|
@@ -2151,33 +2155,33 @@ ac = n.BindingError = class extends Error {
|
|
|
2151
2155
|
};
|
|
2152
2156
|
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2153
2157
|
P.h = P.M.length;
|
|
2154
|
-
|
|
2158
|
+
m.count_emval_handles = function() {
|
|
2155
2159
|
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2156
2160
|
void 0 !== P.M[b] && ++a;
|
|
2157
2161
|
}
|
|
2158
2162
|
return a;
|
|
2159
2163
|
};
|
|
2160
|
-
dc =
|
|
2164
|
+
dc = m.PureVirtualError = cc("PureVirtualError");
|
|
2161
2165
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2162
2166
|
Sd[Td] = String.fromCharCode(Td);
|
|
2163
2167
|
}
|
|
2164
2168
|
ec = Sd;
|
|
2165
|
-
|
|
2169
|
+
m.getInheritedInstanceCount = function() {
|
|
2166
2170
|
return Object.keys(ic).length;
|
|
2167
2171
|
};
|
|
2168
|
-
|
|
2172
|
+
m.getLiveInheritedInstances = function() {
|
|
2169
2173
|
var a = [], b;
|
|
2170
2174
|
for (b in ic) {
|
|
2171
2175
|
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2172
2176
|
}
|
|
2173
2177
|
return a;
|
|
2174
2178
|
};
|
|
2175
|
-
|
|
2176
|
-
|
|
2179
|
+
m.flushPendingDeletes = gc;
|
|
2180
|
+
m.setDelayFunction = function(a) {
|
|
2177
2181
|
hc = a;
|
|
2178
2182
|
fc.length && hc && hc(gc);
|
|
2179
2183
|
};
|
|
2180
|
-
vc =
|
|
2184
|
+
vc = m.InternalError = class extends Error {
|
|
2181
2185
|
constructor(a) {
|
|
2182
2186
|
super(a);
|
|
2183
2187
|
this.name = "InternalError";
|
|
@@ -2198,38 +2202,38 @@ Hc.prototype.isAliasOf = function(a) {
|
|
|
2198
2202
|
};
|
|
2199
2203
|
Hc.prototype.clone = function() {
|
|
2200
2204
|
this.g.o || Gc(this);
|
|
2201
|
-
if (this.g.
|
|
2205
|
+
if (this.g.ka) {
|
|
2202
2206
|
return this.g.count.value += 1, this;
|
|
2203
2207
|
}
|
|
2204
2208
|
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2205
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2209
|
+
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,},}}));
|
|
2206
2210
|
a.g.count.value += 1;
|
|
2207
|
-
a.g.
|
|
2211
|
+
a.g.ha = !1;
|
|
2208
2212
|
return a;
|
|
2209
2213
|
};
|
|
2210
2214
|
Hc.prototype["delete"] = function() {
|
|
2211
2215
|
this.g.o || Gc(this);
|
|
2212
|
-
this.g.
|
|
2216
|
+
this.g.ha && !this.g.ka && Q("Object already scheduled for deletion");
|
|
2213
2217
|
pc(this);
|
|
2214
2218
|
rc(this.g);
|
|
2215
|
-
this.g.
|
|
2219
|
+
this.g.ka || (this.g.G = void 0, this.g.o = void 0);
|
|
2216
2220
|
};
|
|
2217
2221
|
Hc.prototype.isDeleted = function() {
|
|
2218
2222
|
return !this.g.o;
|
|
2219
2223
|
};
|
|
2220
2224
|
Hc.prototype.deleteLater = function() {
|
|
2221
2225
|
this.g.o || Gc(this);
|
|
2222
|
-
this.g.
|
|
2226
|
+
this.g.ha && !this.g.ka && Q("Object already scheduled for deletion");
|
|
2223
2227
|
fc.push(this);
|
|
2224
2228
|
1 === fc.length && hc && hc(gc);
|
|
2225
|
-
this.g.
|
|
2229
|
+
this.g.ha = !0;
|
|
2226
2230
|
return this;
|
|
2227
2231
|
};
|
|
2228
|
-
Qc.prototype.
|
|
2229
|
-
this.
|
|
2232
|
+
Qc.prototype.Nb = function(a) {
|
|
2233
|
+
this.nb && (a = this.nb(a));
|
|
2230
2234
|
return a;
|
|
2231
2235
|
};
|
|
2232
|
-
Qc.prototype.
|
|
2236
|
+
Qc.prototype.Ya = function(a) {
|
|
2233
2237
|
this.V && this.V(a);
|
|
2234
2238
|
};
|
|
2235
2239
|
Qc.prototype.argPackAdvance = 8;
|
|
@@ -2241,11 +2245,11 @@ Qc.prototype.deleteObject = function(a) {
|
|
|
2241
2245
|
};
|
|
2242
2246
|
Qc.prototype.fromWireType = function(a) {
|
|
2243
2247
|
function b() {
|
|
2244
|
-
return this.ya ? xc(this.i.N, {u:this
|
|
2248
|
+
return this.ya ? xc(this.i.N, {u:this.ac, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2245
2249
|
}
|
|
2246
|
-
var c = this.
|
|
2250
|
+
var c = this.Nb(a);
|
|
2247
2251
|
if (!c) {
|
|
2248
|
-
return this.
|
|
2252
|
+
return this.Ya(a), null;
|
|
2249
2253
|
}
|
|
2250
2254
|
var d = uc(this.i, c);
|
|
2251
2255
|
if (void 0 !== d) {
|
|
@@ -2253,19 +2257,19 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2253
2257
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
2254
2258
|
}
|
|
2255
2259
|
d = d.clone();
|
|
2256
|
-
this.
|
|
2260
|
+
this.Ya(a);
|
|
2257
2261
|
return d;
|
|
2258
2262
|
}
|
|
2259
|
-
d = this.i.
|
|
2263
|
+
d = this.i.Mb(c);
|
|
2260
2264
|
d = tc[d];
|
|
2261
2265
|
if (!d) {
|
|
2262
2266
|
return b.call(this);
|
|
2263
2267
|
}
|
|
2264
|
-
d = this.xa ? d.
|
|
2268
|
+
d = this.xa ? d.Eb : d.pointerType;
|
|
2265
2269
|
var e = sc(c, this.i, d.i);
|
|
2266
2270
|
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,});
|
|
2267
2271
|
};
|
|
2268
|
-
Vc =
|
|
2272
|
+
Vc = m.UnboundTypeError = cc("UnboundTypeError");
|
|
2269
2273
|
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2270
2274
|
Id.push(Array(Ud));
|
|
2271
2275
|
}
|
|
@@ -2276,7 +2280,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2276
2280
|
switch(b) {
|
|
2277
2281
|
case 0:
|
|
2278
2282
|
var e = Xb();
|
|
2279
|
-
return 0 > e ? -28 : Kb(d, e).
|
|
2283
|
+
return 0 > e ? -28 : Kb(d, e).X;
|
|
2280
2284
|
case 1:
|
|
2281
2285
|
case 2:
|
|
2282
2286
|
return 0;
|
|
@@ -2301,7 +2305,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2301
2305
|
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2302
2306
|
throw f;
|
|
2303
2307
|
}
|
|
2304
|
-
return -f
|
|
2308
|
+
return -f.aa;
|
|
2305
2309
|
}
|
|
2306
2310
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2307
2311
|
Wb = c;
|
|
@@ -2314,7 +2318,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2314
2318
|
if (!d.s) {
|
|
2315
2319
|
return -59;
|
|
2316
2320
|
}
|
|
2317
|
-
if (d.s.U.
|
|
2321
|
+
if (d.s.U.Vb) {
|
|
2318
2322
|
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,];
|
|
2319
2323
|
var e = Xb();
|
|
2320
2324
|
J[e >> 2] = 25856;
|
|
@@ -2336,7 +2340,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2336
2340
|
if (!d.s) {
|
|
2337
2341
|
return -59;
|
|
2338
2342
|
}
|
|
2339
|
-
if (d.s.U.
|
|
2343
|
+
if (d.s.U.Wb) {
|
|
2340
2344
|
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2341
2345
|
b.push(C[e + f + 17 >> 0]);
|
|
2342
2346
|
}
|
|
@@ -2352,15 +2356,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2352
2356
|
return d.s ? -28 : -59;
|
|
2353
2357
|
case 21531:
|
|
2354
2358
|
e = Xb();
|
|
2355
|
-
if (!d.m.
|
|
2359
|
+
if (!d.m.Ub) {
|
|
2356
2360
|
throw new M(59);
|
|
2357
2361
|
}
|
|
2358
|
-
return d.m.
|
|
2362
|
+
return d.m.Ub(d, b, e);
|
|
2359
2363
|
case 21523:
|
|
2360
2364
|
if (!d.s) {
|
|
2361
2365
|
return -59;
|
|
2362
2366
|
}
|
|
2363
|
-
d.s.U.
|
|
2367
|
+
d.s.U.Xb && (f = [24, 80], e = Xb(), I[e >> 1] = f[0], I[e + 2 >> 1] = f[1]);
|
|
2364
2368
|
return 0;
|
|
2365
2369
|
case 21524:
|
|
2366
2370
|
return d.s ? 0 : -59;
|
|
@@ -2373,7 +2377,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2373
2377
|
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2374
2378
|
throw g;
|
|
2375
2379
|
}
|
|
2376
|
-
return -g
|
|
2380
|
+
return -g.aa;
|
|
2377
2381
|
}
|
|
2378
2382
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2379
2383
|
Wb = d;
|
|
@@ -2390,20 +2394,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2390
2394
|
b = Wa(f + "/" + e);
|
|
2391
2395
|
}
|
|
2392
2396
|
var g = d ? Xb() : 0;
|
|
2393
|
-
return Pb(b, c, g).
|
|
2394
|
-
} catch (
|
|
2395
|
-
if ("undefined" == typeof Vb || "ErrnoError" !==
|
|
2396
|
-
throw
|
|
2397
|
+
return Pb(b, c, g).X;
|
|
2398
|
+
} catch (n) {
|
|
2399
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
|
|
2400
|
+
throw n;
|
|
2397
2401
|
}
|
|
2398
|
-
return -
|
|
2402
|
+
return -n.aa;
|
|
2399
2403
|
}
|
|
2400
2404
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2401
2405
|
a = S(a);
|
|
2402
2406
|
b = oc(b, "wrapper");
|
|
2403
2407
|
c = R(c);
|
|
2404
|
-
var d = [].slice, e = b.i, f = e.N, g = e.A.N,
|
|
2408
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
|
|
2405
2409
|
a = Zb(a, function() {
|
|
2406
|
-
e.A.
|
|
2410
|
+
e.A.lb.forEach(function(l) {
|
|
2407
2411
|
if (this[l] === g[l]) {
|
|
2408
2412
|
throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2409
2413
|
}
|
|
@@ -2413,11 +2417,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2413
2417
|
});
|
|
2414
2418
|
f.__construct = function() {
|
|
2415
2419
|
this === f && Q("Pass correct 'this' to __construct");
|
|
2416
|
-
var l =
|
|
2420
|
+
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2417
2421
|
pc(l);
|
|
2418
2422
|
var t = l.g;
|
|
2419
2423
|
l.notifyOnDestruction();
|
|
2420
|
-
t.
|
|
2424
|
+
t.ka = !0;
|
|
2421
2425
|
Object.defineProperties(this, {g:{value:t}});
|
|
2422
2426
|
yc(this);
|
|
2423
2427
|
l = t.o;
|
|
@@ -2439,12 +2443,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2439
2443
|
}, _embind_finalize_value_object:function(a) {
|
|
2440
2444
|
var b = zc[a];
|
|
2441
2445
|
delete zc[a];
|
|
2442
|
-
var c = b.Pa, d = b.V, e = b
|
|
2446
|
+
var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
|
|
2443
2447
|
T([a], f, g => {
|
|
2444
|
-
var
|
|
2448
|
+
var n = {};
|
|
2445
2449
|
e.forEach((p, l) => {
|
|
2446
|
-
var t = g[l], u = p.
|
|
2447
|
-
|
|
2450
|
+
var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
|
|
2451
|
+
n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2448
2452
|
var D = [];
|
|
2449
2453
|
q(v, y, k.toWireType(D, B));
|
|
2450
2454
|
Ac(D);
|
|
@@ -2452,20 +2456,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2452
2456
|
});
|
|
2453
2457
|
return [{name:b.name, fromWireType:function(p) {
|
|
2454
2458
|
var l = {}, t;
|
|
2455
|
-
for (t in
|
|
2456
|
-
l[t] =
|
|
2459
|
+
for (t in n) {
|
|
2460
|
+
l[t] = n[t].read(p);
|
|
2457
2461
|
}
|
|
2458
2462
|
d(p);
|
|
2459
2463
|
return l;
|
|
2460
2464
|
}, toWireType:function(p, l) {
|
|
2461
|
-
for (var t in
|
|
2465
|
+
for (var t in n) {
|
|
2462
2466
|
if (!(t in l)) {
|
|
2463
2467
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2464
2468
|
}
|
|
2465
2469
|
}
|
|
2466
2470
|
var u = c();
|
|
2467
|
-
for (t in
|
|
2468
|
-
|
|
2471
|
+
for (t in n) {
|
|
2472
|
+
n[t].write(u, l[t]);
|
|
2469
2473
|
}
|
|
2470
2474
|
null !== p && p.push(d, u);
|
|
2471
2475
|
return u;
|
|
@@ -2477,24 +2481,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2477
2481
|
b = S(b);
|
|
2478
2482
|
U(a, {name:b, fromWireType:function(g) {
|
|
2479
2483
|
return !!g;
|
|
2480
|
-
}, toWireType:function(g,
|
|
2481
|
-
return
|
|
2484
|
+
}, toWireType:function(g, n) {
|
|
2485
|
+
return n ? d : e;
|
|
2482
2486
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2483
2487
|
if (1 === c) {
|
|
2484
|
-
var
|
|
2488
|
+
var n = C;
|
|
2485
2489
|
} else if (2 === c) {
|
|
2486
|
-
|
|
2490
|
+
n = I;
|
|
2487
2491
|
} else if (4 === c) {
|
|
2488
|
-
|
|
2492
|
+
n = J;
|
|
2489
2493
|
} else {
|
|
2490
2494
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2491
2495
|
}
|
|
2492
|
-
return this.fromWireType(
|
|
2496
|
+
return this.fromWireType(n[g >> f]);
|
|
2493
2497
|
}, K:null,});
|
|
2494
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2498
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
|
|
2495
2499
|
t = S(t);
|
|
2496
2500
|
f = V(e, f);
|
|
2497
|
-
|
|
2501
|
+
n && (n = V(g, n));
|
|
2498
2502
|
l && (l = V(p, l));
|
|
2499
2503
|
x = V(u, x);
|
|
2500
2504
|
var k = Yb(t);
|
|
@@ -2513,42 +2517,42 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2513
2517
|
if (Object.getPrototypeOf(this) !== B) {
|
|
2514
2518
|
throw new ac("Use 'new' to construct " + t);
|
|
2515
2519
|
}
|
|
2516
|
-
if (void 0 === D
|
|
2520
|
+
if (void 0 === D.$) {
|
|
2517
2521
|
throw new ac(t + " has no accessible constructor");
|
|
2518
2522
|
}
|
|
2519
|
-
var H = D
|
|
2523
|
+
var H = D.$[arguments.length];
|
|
2520
2524
|
if (void 0 === H) {
|
|
2521
|
-
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D
|
|
2525
|
+
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D.$).toString()}) parameters instead!`);
|
|
2522
2526
|
}
|
|
2523
2527
|
return H.apply(this, arguments);
|
|
2524
2528
|
});
|
|
2525
2529
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2526
2530
|
q.prototype = B;
|
|
2527
|
-
var D = new Kc(t, q, B, x, v, f,
|
|
2531
|
+
var D = new Kc(t, q, B, x, v, f, n, l);
|
|
2528
2532
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2529
2533
|
v = new Qc(t, D, !0, !1);
|
|
2530
2534
|
y = new Qc(t + "*", D, !1, !1);
|
|
2531
2535
|
var E = new Qc(t + " const*", D, !1, !0);
|
|
2532
|
-
tc[a] = {pointerType:y,
|
|
2536
|
+
tc[a] = {pointerType:y, Eb:E};
|
|
2533
2537
|
Rc(k, q);
|
|
2534
2538
|
return [v, y, E];
|
|
2535
2539
|
});
|
|
2536
2540
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2537
|
-
var
|
|
2541
|
+
var n = Yc(c, d);
|
|
2538
2542
|
b = S(b);
|
|
2539
2543
|
f = V(e, f);
|
|
2540
2544
|
T([], [a], function(p) {
|
|
2541
2545
|
function l() {
|
|
2542
|
-
Wc(`Cannot call ${t} due to unbound types`,
|
|
2546
|
+
Wc(`Cannot call ${t} due to unbound types`, n);
|
|
2543
2547
|
}
|
|
2544
2548
|
p = p[0];
|
|
2545
2549
|
var t = `${p.name}.${b}`;
|
|
2546
2550
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2547
2551
|
var u = p.i.constructor;
|
|
2548
|
-
void 0 === u[b] ? (l.
|
|
2549
|
-
T([],
|
|
2552
|
+
void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2553
|
+
T([], n, function(x) {
|
|
2550
2554
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2551
|
-
void 0 === u[b].B ? (x.
|
|
2555
|
+
void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2552
2556
|
if (p.i.qa) {
|
|
2553
2557
|
for (const k of p.i.qa) {
|
|
2554
2558
|
k.constructor.hasOwnProperty(b) || (k.constructor[b] = x);
|
|
@@ -2558,7 +2562,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2558
2562
|
});
|
|
2559
2563
|
return [];
|
|
2560
2564
|
});
|
|
2561
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2565
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2562
2566
|
b = S(b);
|
|
2563
2567
|
f = V(e, f);
|
|
2564
2568
|
T([], [a], function(p) {
|
|
@@ -2566,7 +2570,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2566
2570
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2567
2571
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2568
2572
|
}, enumerable:!0, configurable:!0};
|
|
2569
|
-
t.set =
|
|
2573
|
+
t.set = n ? () => {
|
|
2570
2574
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2571
2575
|
} : () => {
|
|
2572
2576
|
Q(`${l} is a read-only property`);
|
|
@@ -2577,9 +2581,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2577
2581
|
var x = {get() {
|
|
2578
2582
|
return u.fromWireType(f(d));
|
|
2579
2583
|
}, enumerable:!0};
|
|
2580
|
-
|
|
2584
|
+
n && (n = V(g, n), x.set = k => {
|
|
2581
2585
|
var q = [];
|
|
2582
|
-
|
|
2586
|
+
n(d, u.toWireType(q, k));
|
|
2583
2587
|
Ac(q);
|
|
2584
2588
|
});
|
|
2585
2589
|
Object.defineProperty(p.i.constructor, b, x);
|
|
@@ -2590,24 +2594,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2590
2594
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2591
2595
|
var g = Yc(b, c);
|
|
2592
2596
|
e = V(d, e);
|
|
2593
|
-
T([], [a], function(
|
|
2594
|
-
|
|
2595
|
-
var p = `constructor ${
|
|
2596
|
-
void 0 ===
|
|
2597
|
-
if (void 0 !==
|
|
2598
|
-
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
Wc(`Cannot construct ${
|
|
2597
|
+
T([], [a], function(n) {
|
|
2598
|
+
n = n[0];
|
|
2599
|
+
var p = `constructor ${n.name}`;
|
|
2600
|
+
void 0 === n.i.$ && (n.i.$ = []);
|
|
2601
|
+
if (void 0 !== n.i.$[b - 1]) {
|
|
2602
|
+
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!`);
|
|
2603
|
+
}
|
|
2604
|
+
n.i.$[b - 1] = () => {
|
|
2605
|
+
Wc(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2602
2606
|
};
|
|
2603
2607
|
T([], g, function(l) {
|
|
2604
2608
|
l.splice(1, 0, null);
|
|
2605
|
-
|
|
2609
|
+
n.i.$[b - 1] = Xc(p, l, null, e, f);
|
|
2606
2610
|
return [];
|
|
2607
2611
|
});
|
|
2608
2612
|
return [];
|
|
2609
2613
|
});
|
|
2610
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2614
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2611
2615
|
var p = Yc(c, d);
|
|
2612
2616
|
b = S(b);
|
|
2613
2617
|
f = V(e, f);
|
|
@@ -2618,17 +2622,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2618
2622
|
l = l[0];
|
|
2619
2623
|
var u = `${l.name}.${b}`;
|
|
2620
2624
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2621
|
-
|
|
2625
|
+
n && l.i.lb.push(b);
|
|
2622
2626
|
var x = l.i.N, k = x[b];
|
|
2623
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.
|
|
2627
|
+
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);
|
|
2624
2628
|
T([], p, function(q) {
|
|
2625
2629
|
q = Xc(u, q, l, f, g);
|
|
2626
|
-
void 0 === x[b].B ? (q.
|
|
2630
|
+
void 0 === x[b].B ? (q.ga = c - 2, x[b] = q) : x[b].B[c - 2] = q;
|
|
2627
2631
|
return [];
|
|
2628
2632
|
});
|
|
2629
2633
|
return [];
|
|
2630
2634
|
});
|
|
2631
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2635
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2632
2636
|
b = S(b);
|
|
2633
2637
|
e = V(d, e);
|
|
2634
2638
|
T([], [a], function(t) {
|
|
@@ -2648,7 +2652,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2648
2652
|
return q.fromWireType(e(f, B));
|
|
2649
2653
|
}, enumerable:!0};
|
|
2650
2654
|
if (p) {
|
|
2651
|
-
p = V(
|
|
2655
|
+
p = V(n, p);
|
|
2652
2656
|
var y = k[1];
|
|
2653
2657
|
v.set = function(B) {
|
|
2654
2658
|
var D = Zc(this, t, u + " setter"), E = [];
|
|
@@ -2705,22 +2709,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2705
2709
|
Jc(a, function() {
|
|
2706
2710
|
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2707
2711
|
}, b - 1);
|
|
2708
|
-
T([], g, function(
|
|
2709
|
-
Rc(a, Xc(a, [
|
|
2712
|
+
T([], g, function(n) {
|
|
2713
|
+
Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2710
2714
|
return [];
|
|
2711
2715
|
});
|
|
2712
2716
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2713
2717
|
b = S(b);
|
|
2714
2718
|
-1 === e && (e = 4294967295);
|
|
2715
2719
|
e = Ec(c);
|
|
2716
|
-
var f =
|
|
2720
|
+
var f = n => n;
|
|
2717
2721
|
if (0 === d) {
|
|
2718
2722
|
var g = 32 - 8 * c;
|
|
2719
|
-
f =
|
|
2723
|
+
f = n => n << g >>> g;
|
|
2720
2724
|
}
|
|
2721
|
-
c = b.includes("unsigned") ? function(
|
|
2725
|
+
c = b.includes("unsigned") ? function(n, p) {
|
|
2722
2726
|
return p >>> 0;
|
|
2723
|
-
} : function(
|
|
2727
|
+
} : function(n, p) {
|
|
2724
2728
|
return p;
|
|
2725
2729
|
};
|
|
2726
2730
|
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
@@ -2732,16 +2736,16 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2732
2736
|
}
|
|
2733
2737
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2734
2738
|
c = S(c);
|
|
2735
|
-
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2739
|
+
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Sb:!0,});
|
|
2736
2740
|
}, _embind_register_std_string:function(a, b) {
|
|
2737
2741
|
b = S(b);
|
|
2738
2742
|
var c = "std::string" === b;
|
|
2739
2743
|
U(a, {name:b, fromWireType:function(d) {
|
|
2740
2744
|
var e = K[d >> 2], f = d + 4;
|
|
2741
2745
|
if (c) {
|
|
2742
|
-
for (var g = f,
|
|
2743
|
-
var p = f +
|
|
2744
|
-
if (
|
|
2746
|
+
for (var g = f, n = 0; n <= e; ++n) {
|
|
2747
|
+
var p = f + n;
|
|
2748
|
+
if (n == e || 0 == G[p]) {
|
|
2745
2749
|
g = g ? L(G, g, p - g) : "";
|
|
2746
2750
|
if (void 0 === l) {
|
|
2747
2751
|
var l = g;
|
|
@@ -2753,8 +2757,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2753
2757
|
}
|
|
2754
2758
|
} else {
|
|
2755
2759
|
l = Array(e);
|
|
2756
|
-
for (
|
|
2757
|
-
l[
|
|
2760
|
+
for (n = 0; n < e; ++n) {
|
|
2761
|
+
l[n] = String.fromCharCode(G[f + n]);
|
|
2758
2762
|
}
|
|
2759
2763
|
l = l.join("");
|
|
2760
2764
|
}
|
|
@@ -2765,8 +2769,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2765
2769
|
var f = "string" == typeof e;
|
|
2766
2770
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2767
2771
|
var g = c && f ? db(e) : e.length;
|
|
2768
|
-
var
|
|
2769
|
-
K[
|
|
2772
|
+
var n = Ld(4 + g + 1), p = n + 4;
|
|
2773
|
+
K[n >> 2] = g;
|
|
2770
2774
|
if (c && f) {
|
|
2771
2775
|
eb(e, G, p, g + 1);
|
|
2772
2776
|
} else {
|
|
@@ -2782,8 +2786,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2782
2786
|
}
|
|
2783
2787
|
}
|
|
2784
2788
|
}
|
|
2785
|
-
null !== d && d.push(nc,
|
|
2786
|
-
return
|
|
2789
|
+
null !== d && d.push(nc, n);
|
|
2790
|
+
return n;
|
|
2787
2791
|
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2788
2792
|
nc(d);
|
|
2789
2793
|
},});
|
|
@@ -2794,14 +2798,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2794
2798
|
var e = fd;
|
|
2795
2799
|
var f = gd;
|
|
2796
2800
|
var g = () => va;
|
|
2797
|
-
var
|
|
2801
|
+
var n = 1;
|
|
2798
2802
|
} else {
|
|
2799
|
-
4 === b && (d = hd, e = jd, f = kd, g = () => K,
|
|
2803
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
|
|
2800
2804
|
}
|
|
2801
2805
|
U(a, {name:c, fromWireType:function(p) {
|
|
2802
2806
|
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2803
2807
|
var q = p + 4 + k * b;
|
|
2804
|
-
if (k == l || 0 == t[q >>
|
|
2808
|
+
if (k == l || 0 == t[q >> n]) {
|
|
2805
2809
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2806
2810
|
}
|
|
2807
2811
|
}
|
|
@@ -2810,7 +2814,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2810
2814
|
}, toWireType:function(p, l) {
|
|
2811
2815
|
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2812
2816
|
var t = f(l), u = Ld(4 + t + b);
|
|
2813
|
-
K[u >> 2] = t >>
|
|
2817
|
+
K[u >> 2] = t >> n;
|
|
2814
2818
|
e(l, u + 4, t + b);
|
|
2815
2819
|
null !== p && p.push(nc, u);
|
|
2816
2820
|
return u;
|
|
@@ -2818,12 +2822,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2818
2822
|
nc(p);
|
|
2819
2823
|
},});
|
|
2820
2824
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2821
|
-
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f),
|
|
2822
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2823
|
-
zc[a].
|
|
2825
|
+
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
|
|
2826
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2827
|
+
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
|
|
2824
2828
|
}, _embind_register_void:function(a, b) {
|
|
2825
2829
|
b = S(b);
|
|
2826
|
-
U(a, {
|
|
2830
|
+
U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2827
2831
|
}, toWireType:function() {
|
|
2828
2832
|
},});
|
|
2829
2833
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
@@ -2854,15 +2858,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2854
2858
|
return e;
|
|
2855
2859
|
}
|
|
2856
2860
|
var f = Array(a - 1);
|
|
2857
|
-
e = od((g,
|
|
2861
|
+
e = od((g, n, p, l) => {
|
|
2858
2862
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2859
2863
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2860
2864
|
}
|
|
2861
|
-
g = g[
|
|
2865
|
+
g = g[n].apply(g, f);
|
|
2862
2866
|
for (u = 0; u < a - 1; ++u) {
|
|
2863
|
-
c[u + 1].
|
|
2867
|
+
c[u + 1].Gb && c[u + 1].Gb(f[u]);
|
|
2864
2868
|
}
|
|
2865
|
-
if (!d.
|
|
2869
|
+
if (!d.Yb) {
|
|
2866
2870
|
return d.toWireType(p, g);
|
|
2867
2871
|
}
|
|
2868
2872
|
});
|
|
@@ -2872,7 +2876,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2872
2876
|
b = R(b);
|
|
2873
2877
|
return bc(a[b]);
|
|
2874
2878
|
}, _emval_incref:function(a) {
|
|
2875
|
-
4 < a && (P.get(a).
|
|
2879
|
+
4 < a && (P.get(a).pb += 1);
|
|
2876
2880
|
}, _emval_new_cstring:function(a) {
|
|
2877
2881
|
return bc(md(a));
|
|
2878
2882
|
}, _emval_new_object:function() {
|
|
@@ -2893,19 +2897,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2893
2897
|
}, abort:() => {
|
|
2894
2898
|
sa("");
|
|
2895
2899
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2896
|
-
(a = r[a].H.
|
|
2900
|
+
(a = r[a].H.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2897
2901
|
}, decode_image:function(a, b, c) {
|
|
2898
|
-
var d =
|
|
2899
|
-
d || (d = new Map(),
|
|
2902
|
+
var d = m.images;
|
|
2903
|
+
d || (d = new Map(), m.images = d);
|
|
2900
2904
|
var e = new Image();
|
|
2901
2905
|
d.set(a, e);
|
|
2902
|
-
b =
|
|
2906
|
+
b = m.HEAP8.subarray(b, b + c);
|
|
2903
2907
|
c = new Uint8Array(c);
|
|
2904
2908
|
c.set(b);
|
|
2905
2909
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2906
2910
|
e.onload = function() {
|
|
2907
|
-
|
|
2911
|
+
m._setWebImage(a, e.width, e.height);
|
|
2908
2912
|
};
|
|
2913
|
+
}, delete_image:function(a) {
|
|
2914
|
+
var b = m.images;
|
|
2915
|
+
b && b.get(a) && b.delete(a);
|
|
2909
2916
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2910
2917
|
rd.length = 0;
|
|
2911
2918
|
var d;
|
|
@@ -2956,14 +2963,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2956
2963
|
return ja(a) ? 0 : -5;
|
|
2957
2964
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
2958
2965
|
a = r[a].H;
|
|
2959
|
-
a.
|
|
2960
|
-
return !!a.
|
|
2966
|
+
a.mb = a.getExtension("WEBGL_provoking_vertex");
|
|
2967
|
+
return !!a.mb;
|
|
2961
2968
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2962
2969
|
a = r[a].H;
|
|
2963
|
-
a.
|
|
2964
|
-
return !(!a.
|
|
2970
|
+
a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2971
|
+
return !(!a.ja || !a.ja.isCoherent());
|
|
2965
2972
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2966
|
-
(a = r[a].H.
|
|
2973
|
+
(a = r[a].H.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2967
2974
|
}, environ_get:(a, b) => {
|
|
2968
2975
|
var c = 0;
|
|
2969
2976
|
Hd().forEach(function(d, e) {
|
|
@@ -2988,7 +2995,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2988
2995
|
}, fd_close:function(a) {
|
|
2989
2996
|
try {
|
|
2990
2997
|
var b = Ib(a);
|
|
2991
|
-
if (null === b.
|
|
2998
|
+
if (null === b.X) {
|
|
2992
2999
|
throw new M(8);
|
|
2993
3000
|
}
|
|
2994
3001
|
b.Ma && (b.Ma = null);
|
|
@@ -2997,15 +3004,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2997
3004
|
} catch (c) {
|
|
2998
3005
|
throw c;
|
|
2999
3006
|
} finally {
|
|
3000
|
-
vb[b.
|
|
3007
|
+
vb[b.X] = null;
|
|
3001
3008
|
}
|
|
3002
|
-
b.
|
|
3009
|
+
b.X = null;
|
|
3003
3010
|
return 0;
|
|
3004
3011
|
} catch (c) {
|
|
3005
3012
|
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
3006
3013
|
throw c;
|
|
3007
3014
|
}
|
|
3008
|
-
return c
|
|
3015
|
+
return c.aa;
|
|
3009
3016
|
}
|
|
3010
3017
|
}, fd_read:function(a, b, c, d) {
|
|
3011
3018
|
try {
|
|
@@ -3013,13 +3020,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3013
3020
|
var e = Ib(a);
|
|
3014
3021
|
a = b;
|
|
3015
3022
|
for (var f, g = b = 0; g < c; g++) {
|
|
3016
|
-
var
|
|
3023
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3017
3024
|
a += 8;
|
|
3018
|
-
var l = e, t =
|
|
3025
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3019
3026
|
if (0 > u || 0 > x) {
|
|
3020
3027
|
throw new M(28);
|
|
3021
3028
|
}
|
|
3022
|
-
if (null === l.
|
|
3029
|
+
if (null === l.X) {
|
|
3023
3030
|
throw new M(8);
|
|
3024
3031
|
}
|
|
3025
3032
|
if (1 === (l.flags & 2097155)) {
|
|
@@ -3058,7 +3065,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3058
3065
|
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3059
3066
|
throw D;
|
|
3060
3067
|
}
|
|
3061
|
-
return D
|
|
3068
|
+
return D.aa;
|
|
3062
3069
|
}
|
|
3063
3070
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3064
3071
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3077,7 +3084,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3077
3084
|
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3078
3085
|
throw g;
|
|
3079
3086
|
}
|
|
3080
|
-
return g
|
|
3087
|
+
return g.aa;
|
|
3081
3088
|
}
|
|
3082
3089
|
}, fd_write:function(a, b, c, d) {
|
|
3083
3090
|
try {
|
|
@@ -3085,13 +3092,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3085
3092
|
var e = Ib(a);
|
|
3086
3093
|
a = b;
|
|
3087
3094
|
for (var f, g = b = 0; g < c; g++) {
|
|
3088
|
-
var
|
|
3095
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3089
3096
|
a += 8;
|
|
3090
|
-
var l = e, t =
|
|
3097
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3091
3098
|
if (0 > u || 0 > x) {
|
|
3092
3099
|
throw new M(28);
|
|
3093
3100
|
}
|
|
3094
|
-
if (null === l.
|
|
3101
|
+
if (null === l.X) {
|
|
3095
3102
|
throw new M(8);
|
|
3096
3103
|
}
|
|
3097
3104
|
if (0 === (l.flags & 2097155)) {
|
|
@@ -3128,18 +3135,18 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3128
3135
|
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3129
3136
|
throw D;
|
|
3130
3137
|
}
|
|
3131
|
-
return D
|
|
3138
|
+
return D.aa;
|
|
3132
3139
|
}
|
|
3133
3140
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3134
|
-
(a = r[a].H.
|
|
3141
|
+
(a = r[a].H.ja) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3135
3142
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3136
|
-
(a = r[a].H.
|
|
3143
|
+
(a = r[a].H.ja) && a.framebufferTexturePixelLocalStorageWEBGL(b, yd[c], d, e);
|
|
3137
3144
|
}, glActiveTexture:function(a) {
|
|
3138
3145
|
Z.activeTexture(a);
|
|
3139
3146
|
}, glAttachShader:function(a, b) {
|
|
3140
3147
|
Z.attachShader(W[a], zd[b]);
|
|
3141
3148
|
}, glBindBuffer:function(a, b) {
|
|
3142
|
-
35051 == a ? Z.
|
|
3149
|
+
35051 == a ? Z.Xa = b : 35052 == a && (Z.Ka = b);
|
|
3143
3150
|
Z.bindBuffer(a, vd[b]);
|
|
3144
3151
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3145
3152
|
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
@@ -3155,8 +3162,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3155
3162
|
Z.blendEquation(a);
|
|
3156
3163
|
}, glBlendFunc:function(a, b) {
|
|
3157
3164
|
Z.blendFunc(a, b);
|
|
3158
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g,
|
|
3159
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g,
|
|
3165
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3166
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
|
|
3160
3167
|
}, glBufferData:function(a, b, c, d) {
|
|
3161
3168
|
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3162
3169
|
}, glBufferSubData:function(a, b, c, d) {
|
|
@@ -3176,7 +3183,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3176
3183
|
}, glCreateProgram:function() {
|
|
3177
3184
|
var a = ha(W), b = Z.createProgram();
|
|
3178
3185
|
b.name = a;
|
|
3179
|
-
b.
|
|
3186
|
+
b.Gc = b.Ec = b.Fc = 0;
|
|
3180
3187
|
b.Sa = 1;
|
|
3181
3188
|
W[a] = b;
|
|
3182
3189
|
return a;
|
|
@@ -3189,7 +3196,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3189
3196
|
}, glDeleteBuffers:function(a, b) {
|
|
3190
3197
|
for (var c = 0; c < a; c++) {
|
|
3191
3198
|
var d = J[b + 4 * c >> 2], e = vd[d];
|
|
3192
|
-
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.
|
|
3199
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Xa && (Z.Xa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3193
3200
|
}
|
|
3194
3201
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3195
3202
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3305,19 +3312,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3305
3312
|
}, glGetUniformLocation:function(a, b) {
|
|
3306
3313
|
b = b ? L(G, b) : "";
|
|
3307
3314
|
if (a = W[a]) {
|
|
3308
|
-
var c = a, d = c.oa, e = c.
|
|
3315
|
+
var c = a, d = c.oa, e = c.ub, f;
|
|
3309
3316
|
if (!d) {
|
|
3310
|
-
for (c.oa = d = {}, c.
|
|
3317
|
+
for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3311
3318
|
var g = Z.getActiveUniform(c, f);
|
|
3312
|
-
var
|
|
3319
|
+
var n = g.name;
|
|
3313
3320
|
g = g.size;
|
|
3314
|
-
var p = Nd(
|
|
3315
|
-
p = 0 < p ?
|
|
3321
|
+
var p = Nd(n);
|
|
3322
|
+
p = 0 < p ? n.slice(0, p) : n;
|
|
3316
3323
|
var l = c.Sa;
|
|
3317
3324
|
c.Sa += g;
|
|
3318
3325
|
e[p] = [g, l];
|
|
3319
|
-
for (
|
|
3320
|
-
d[l] =
|
|
3326
|
+
for (n = 0; n < g; ++n) {
|
|
3327
|
+
d[l] = n, c.tb[l++] = p;
|
|
3321
3328
|
}
|
|
3322
3329
|
}
|
|
3323
3330
|
}
|
|
@@ -3326,7 +3333,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3326
3333
|
e = b;
|
|
3327
3334
|
f = Nd(b);
|
|
3328
3335
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3329
|
-
if ((e = a.
|
|
3336
|
+
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3330
3337
|
return d;
|
|
3331
3338
|
}
|
|
3332
3339
|
} else {
|
|
@@ -3342,7 +3349,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3342
3349
|
a = W[a];
|
|
3343
3350
|
Z.linkProgram(a);
|
|
3344
3351
|
a.oa = 0;
|
|
3345
|
-
a.
|
|
3352
|
+
a.ub = {};
|
|
3346
3353
|
}, glPixelStorei:function(a, b) {
|
|
3347
3354
|
Z.pixelStorei(a, b);
|
|
3348
3355
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
@@ -3351,8 +3358,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3351
3358
|
Z.scissor(a, b, c, d);
|
|
3352
3359
|
}, glShaderSource:function(a, b, c, d) {
|
|
3353
3360
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3354
|
-
var g = d ? J[d + 4 * f >> 2] : -1,
|
|
3355
|
-
g =
|
|
3361
|
+
var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
|
|
3362
|
+
g = n ? L(G, n, 0 > g ? void 0 : g) : "";
|
|
3356
3363
|
e += g;
|
|
3357
3364
|
}
|
|
3358
3365
|
Z.shaderSource(zd[a], e);
|
|
@@ -3370,22 +3377,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3370
3377
|
Z.texParameteri(a, b, c);
|
|
3371
3378
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3372
3379
|
Z.texStorage2D(a, b, c, d, e);
|
|
3373
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g,
|
|
3380
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
|
|
3374
3381
|
if (Z.Ka) {
|
|
3375
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3382
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
|
|
3376
3383
|
} else if (p) {
|
|
3377
|
-
var l =
|
|
3384
|
+
var l = n - 5120;
|
|
3378
3385
|
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;
|
|
3379
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3386
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3380
3387
|
} else {
|
|
3381
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3388
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
|
|
3382
3389
|
}
|
|
3383
3390
|
}, glUniform1i:function(a, b) {
|
|
3384
3391
|
var c = Z, d = c.uniform1i;
|
|
3385
|
-
var e = Z.
|
|
3392
|
+
var e = Z.Fb;
|
|
3386
3393
|
if (e) {
|
|
3387
3394
|
var f = e.oa[a];
|
|
3388
|
-
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.
|
|
3395
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.tb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3389
3396
|
a = f;
|
|
3390
3397
|
} else {
|
|
3391
3398
|
X(1282), a = void 0;
|
|
@@ -3397,7 +3404,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3397
3404
|
}, glUseProgram:function(a) {
|
|
3398
3405
|
a = W[a];
|
|
3399
3406
|
Z.useProgram(a);
|
|
3400
|
-
Z.
|
|
3407
|
+
Z.Fb = a;
|
|
3401
3408
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3402
3409
|
Z.vertexAttribDivisor(a, b);
|
|
3403
3410
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3407,16 +3414,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3407
3414
|
}, glViewport:function(a, b, c, d) {
|
|
3408
3415
|
Z.viewport(a, b, c, d);
|
|
3409
3416
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3410
|
-
(a = r[a].H.
|
|
3417
|
+
(a = r[a].H.mb) && a.provokingVertexWEBGL(b);
|
|
3411
3418
|
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3412
|
-
var c =
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
d && (a = r[a].H, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, d), c.delete(b));
|
|
3416
|
-
}
|
|
3417
|
-
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3419
|
+
var c = m.images;
|
|
3420
|
+
c && (b = c.get(b)) && (a = r[a].H, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
|
|
3421
|
+
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3418
3422
|
a = r[a].H;
|
|
3419
|
-
a.texSubImage2D(b, c, d, e, f, g,
|
|
3423
|
+
a.texSubImage2D(b, c, d, e, f, g, n, p, l);
|
|
3420
3424
|
}};
|
|
3421
3425
|
(function() {
|
|
3422
3426
|
function a(c) {
|
|
@@ -3426,7 +3430,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3426
3430
|
za = A.__indirect_function_table;
|
|
3427
3431
|
Ba.unshift(A.__wasm_call_ctors);
|
|
3428
3432
|
Ea--;
|
|
3429
|
-
|
|
3433
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3430
3434
|
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3431
3435
|
var d = Ga;
|
|
3432
3436
|
Ga = null;
|
|
@@ -3436,10 +3440,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3436
3440
|
}
|
|
3437
3441
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3438
3442
|
Ea++;
|
|
3439
|
-
|
|
3440
|
-
if (
|
|
3443
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3444
|
+
if (m.instantiateWasm) {
|
|
3441
3445
|
try {
|
|
3442
|
-
return
|
|
3446
|
+
return m.instantiateWasm(b, a);
|
|
3443
3447
|
} catch (c) {
|
|
3444
3448
|
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3445
3449
|
}
|
|
@@ -3450,23 +3454,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3450
3454
|
return {};
|
|
3451
3455
|
})();
|
|
3452
3456
|
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3453
|
-
|
|
3454
|
-
var Qa =
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
var Ra =
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3457
|
+
m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
|
|
3458
|
+
var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3459
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3460
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3461
|
+
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);
|
|
3462
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3463
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3464
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3465
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3466
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3467
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3468
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3469
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3470
|
+
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);
|
|
3471
|
+
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);
|
|
3472
|
+
m.___start_em_js = 489148;
|
|
3473
|
+
m.___stop_em_js = 491878;
|
|
3470
3474
|
var Xd;
|
|
3471
3475
|
Ga = function Yd() {
|
|
3472
3476
|
Xd || Zd();
|
|
@@ -3474,17 +3478,17 @@ Ga = function Yd() {
|
|
|
3474
3478
|
};
|
|
3475
3479
|
function Zd() {
|
|
3476
3480
|
function a() {
|
|
3477
|
-
if (!Xd && (Xd = !0,
|
|
3478
|
-
|
|
3481
|
+
if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
|
|
3482
|
+
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));
|
|
3479
3483
|
yb = !1;
|
|
3480
3484
|
Ua(Ba);
|
|
3481
|
-
aa(
|
|
3482
|
-
if (
|
|
3483
|
-
|
|
3485
|
+
aa(m);
|
|
3486
|
+
if (m.onRuntimeInitialized) {
|
|
3487
|
+
m.onRuntimeInitialized();
|
|
3484
3488
|
}
|
|
3485
|
-
if (
|
|
3486
|
-
for ("function" == typeof
|
|
3487
|
-
var b =
|
|
3489
|
+
if (m.postRun) {
|
|
3490
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3491
|
+
var b = m.postRun.shift();
|
|
3488
3492
|
Ca.unshift(b);
|
|
3489
3493
|
}
|
|
3490
3494
|
}
|
|
@@ -3492,23 +3496,23 @@ function Zd() {
|
|
|
3492
3496
|
}
|
|
3493
3497
|
}
|
|
3494
3498
|
if (!(0 < Ea)) {
|
|
3495
|
-
if (
|
|
3496
|
-
for ("function" == typeof
|
|
3499
|
+
if (m.preRun) {
|
|
3500
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3497
3501
|
Da();
|
|
3498
3502
|
}
|
|
3499
3503
|
}
|
|
3500
3504
|
Ua(Aa);
|
|
3501
|
-
0 < Ea || (
|
|
3505
|
+
0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3502
3506
|
setTimeout(function() {
|
|
3503
|
-
|
|
3507
|
+
m.setStatus("");
|
|
3504
3508
|
}, 1);
|
|
3505
3509
|
a();
|
|
3506
3510
|
}, 1)) : a());
|
|
3507
3511
|
}
|
|
3508
3512
|
}
|
|
3509
|
-
if (
|
|
3510
|
-
for ("function" == typeof
|
|
3511
|
-
|
|
3513
|
+
if (m.preInit) {
|
|
3514
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
3515
|
+
m.preInit.pop()();
|
|
3512
3516
|
}
|
|
3513
3517
|
}
|
|
3514
3518
|
Zd();
|
|
@@ -3526,7 +3530,7 @@ Zd();
|
|
|
3526
3530
|
/* 2 */
|
|
3527
3531
|
/***/ ((module) => {
|
|
3528
3532
|
|
|
3529
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.
|
|
3533
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.11","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3530
3534
|
|
|
3531
3535
|
/***/ }),
|
|
3532
3536
|
/* 3 */
|
|
@@ -5901,7 +5905,10 @@ var Rive = /** @class */ (function () {
|
|
|
5901
5905
|
});
|
|
5902
5906
|
return;
|
|
5903
5907
|
}
|
|
5904
|
-
this.animator
|
|
5908
|
+
// If there is no artboard, this.animator will be undefined
|
|
5909
|
+
if (this.animator) {
|
|
5910
|
+
this.animator.stop(animationNames);
|
|
5911
|
+
}
|
|
5905
5912
|
if (this.eventCleanup) {
|
|
5906
5913
|
this.eventCleanup();
|
|
5907
5914
|
}
|