@rive-app/webgl2 2.31.1 → 2.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +4 -1
- package/rive.js +682 -593
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -1
package/rive.js
CHANGED
|
@@ -26,10 +26,10 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var k = moduleArg, aa,
|
|
29
|
+
var k = moduleArg, aa, ba;
|
|
30
30
|
k.ready = new Promise((a, b) => {
|
|
31
31
|
aa = a;
|
|
32
|
-
|
|
32
|
+
ba = b;
|
|
33
33
|
});
|
|
34
34
|
function da() {
|
|
35
35
|
function a(g) {
|
|
@@ -43,8 +43,8 @@ function da() {
|
|
|
43
43
|
console.error(m);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
this.
|
|
47
|
-
e && e.
|
|
46
|
+
this.ob();
|
|
47
|
+
e && e.Qb();
|
|
48
48
|
}
|
|
49
49
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
50
50
|
this.requestAnimationFrame = function(g) {
|
|
@@ -57,20 +57,20 @@ function da() {
|
|
|
57
57
|
d.delete(g);
|
|
58
58
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
59
59
|
};
|
|
60
|
-
this.
|
|
60
|
+
this.Ob = function(g) {
|
|
61
61
|
f && (document.body.remove(f), f = null);
|
|
62
62
|
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(l) {
|
|
63
63
|
f.innerHTML = "RIVE FPS " + l.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
66
|
let l = 0, p = 0;
|
|
67
|
-
this.
|
|
67
|
+
this.Qb = function() {
|
|
68
68
|
var m = performance.now();
|
|
69
69
|
p ? (++l, m -= p, 1000 < m && (g(1000 * l / m), l = p = 0)) : (p = m, l = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
73
|
-
this.
|
|
73
|
+
this.ob = function() {
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function ea() {
|
|
@@ -108,10 +108,10 @@ k.onRuntimeInitialized = function() {
|
|
|
108
108
|
};
|
|
109
109
|
k.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
110
110
|
this.__parent.__construct.call(this);
|
|
111
|
-
this.
|
|
111
|
+
this.Eb = e;
|
|
112
112
|
}, loadContents:function(e, f) {
|
|
113
113
|
e = k.ptrToAsset(e);
|
|
114
|
-
return this.
|
|
114
|
+
return this.Eb(e, f);
|
|
115
115
|
},});
|
|
116
116
|
k.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
@@ -136,11 +136,11 @@ k.onRuntimeInitialized = function() {
|
|
|
136
136
|
},});
|
|
137
137
|
k.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
138
|
this.__parent.__construct.call(this);
|
|
139
|
-
this.
|
|
139
|
+
this.kb = [];
|
|
140
140
|
}, addLoader:function(e) {
|
|
141
|
-
this.
|
|
141
|
+
this.kb.push(e);
|
|
142
142
|
}, loadContents:function(e, f) {
|
|
143
|
-
for (let g of this.
|
|
143
|
+
for (let g of this.kb) {
|
|
144
144
|
if (g.loadContents(e, f)) {
|
|
145
145
|
return !0;
|
|
146
146
|
}
|
|
@@ -154,10 +154,10 @@ k.onRuntimeInitialized = function() {
|
|
|
154
154
|
};
|
|
155
155
|
const ha = k.onRuntimeInitialized;
|
|
156
156
|
k.onRuntimeInitialized = function() {
|
|
157
|
-
function a(
|
|
158
|
-
this.F =
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
157
|
+
function a(r) {
|
|
158
|
+
this.F = r;
|
|
159
|
+
this.Db = r.getContext("2d");
|
|
160
|
+
this.Gb = d;
|
|
161
161
|
this.S = [];
|
|
162
162
|
this.la = 0;
|
|
163
163
|
this.clear = function() {
|
|
@@ -175,47 +175,47 @@ k.onRuntimeInitialized = function() {
|
|
|
175
175
|
this.transform = function(u) {
|
|
176
176
|
this.S.push(d.transform.bind(d, u));
|
|
177
177
|
};
|
|
178
|
-
this.align = function(u, y, z,
|
|
179
|
-
this.S.push(d.align.bind(d, u, y, z,
|
|
178
|
+
this.align = function(u, y, z, B, H = 1.0) {
|
|
179
|
+
this.S.push(d.align.bind(d, u, y, z, B, H));
|
|
180
180
|
};
|
|
181
181
|
this.flush = function() {
|
|
182
182
|
console.assert(0 == this.la);
|
|
183
183
|
e.add(this);
|
|
184
|
-
d
|
|
184
|
+
d.$a || c();
|
|
185
185
|
};
|
|
186
186
|
this["delete"] = function() {
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function b(
|
|
189
|
+
function b(r, u = !1) {
|
|
190
190
|
var y = {alpha:!0, depth:u, stencil:u, antialias:u, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
|
|
191
|
-
u =
|
|
191
|
+
u = r.getContext("webgl2", y);
|
|
192
192
|
if (!u) {
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
195
|
y = ia(u, y);
|
|
196
196
|
ja(y);
|
|
197
|
-
const z = f(
|
|
198
|
-
z.
|
|
199
|
-
z.F =
|
|
200
|
-
z.
|
|
201
|
-
z.
|
|
197
|
+
const z = f(r.width, r.height);
|
|
198
|
+
z.Na = y;
|
|
199
|
+
z.F = r;
|
|
200
|
+
z.Oa = r.width;
|
|
201
|
+
z.ab = r.height;
|
|
202
202
|
z.T = u;
|
|
203
|
-
var
|
|
203
|
+
var B = z.delete;
|
|
204
204
|
z.delete = function() {
|
|
205
|
-
|
|
206
|
-
var H = this.
|
|
207
|
-
|
|
205
|
+
B.call(this);
|
|
206
|
+
var H = this.Na;
|
|
207
|
+
q === w[H] && (q = null);
|
|
208
208
|
"object" == typeof JSEvents && JSEvents.Oc(w[H].C.canvas);
|
|
209
|
-
w[H] && w[H].C.canvas && (w[H].C.canvas.
|
|
210
|
-
this.
|
|
209
|
+
w[H] && w[H].C.canvas && (w[H].C.canvas.Cb = void 0);
|
|
210
|
+
this.Na = this.F = this.Oa = this.T = w[H] = null;
|
|
211
211
|
};
|
|
212
212
|
return z;
|
|
213
213
|
}
|
|
214
214
|
function c() {
|
|
215
215
|
if (d) {
|
|
216
|
-
var
|
|
217
|
-
for (var
|
|
218
|
-
|
|
216
|
+
var r = d.Fb, u = 0, y = 0, z = 0, B = Array(e.size), H = 0;
|
|
217
|
+
for (var J of e) {
|
|
218
|
+
J.ga = Math.min(J.F.width, r), J.fa = Math.min(J.F.height, r), J.La = J.fa * J.ga, u = Math.max(u, J.ga), y = Math.max(y, J.fa), z += J.La, B[H++] = J;
|
|
219
219
|
}
|
|
220
220
|
e.clear();
|
|
221
221
|
if (!(0 >= z)) {
|
|
@@ -223,16 +223,16 @@ k.onRuntimeInitialized = function() {
|
|
|
223
223
|
for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * u < z;) {
|
|
224
224
|
u <= y ? u *= 2 : y *= 2;
|
|
225
225
|
}
|
|
226
|
-
u = Math.min(u,
|
|
227
|
-
u = Math.min(y,
|
|
228
|
-
|
|
229
|
-
z = new k.DynamicRectanizer(
|
|
230
|
-
for (
|
|
226
|
+
u = Math.min(u, r);
|
|
227
|
+
u = Math.min(y, r);
|
|
228
|
+
B.sort((ca, tb) => tb.La - ca.La);
|
|
229
|
+
z = new k.DynamicRectanizer(r);
|
|
230
|
+
for (J = 0; J < B.length;) {
|
|
231
231
|
z.reset(u, y);
|
|
232
|
-
for (H =
|
|
233
|
-
var L =
|
|
232
|
+
for (H = J; H < B.length; ++H) {
|
|
233
|
+
var L = B[H], E = z.addRect(L.ga, L.fa);
|
|
234
234
|
if (0 > E) {
|
|
235
|
-
console.assert(H >
|
|
235
|
+
console.assert(H > J);
|
|
236
236
|
break;
|
|
237
237
|
}
|
|
238
238
|
L.ra = E & 65535;
|
|
@@ -242,31 +242,31 @@ k.onRuntimeInitialized = function() {
|
|
|
242
242
|
E = m.push(z.drawHeight());
|
|
243
243
|
console.assert(L >= z.drawWidth());
|
|
244
244
|
console.assert(E >= z.drawHeight());
|
|
245
|
-
console.assert(L <=
|
|
246
|
-
console.assert(E <=
|
|
245
|
+
console.assert(L <= r);
|
|
246
|
+
console.assert(E <= r);
|
|
247
247
|
d.F.width != L && (d.F.width = L);
|
|
248
248
|
d.F.height != E && (d.F.height = E);
|
|
249
249
|
d.clear();
|
|
250
|
-
for (L =
|
|
251
|
-
E =
|
|
250
|
+
for (L = J; L < H; ++L) {
|
|
251
|
+
E = B[L];
|
|
252
252
|
d.saveClipRect(E.ra, E.sa, E.ra + E.ga, E.sa + E.fa);
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
d.transform(
|
|
253
|
+
let ca = new k.Mat2D();
|
|
254
|
+
ca.xx = E.ga / E.F.width;
|
|
255
|
+
ca.yy = E.fa / E.F.height;
|
|
256
|
+
ca.xy = ca.yx = 0;
|
|
257
|
+
ca.tx = E.ra;
|
|
258
|
+
ca.ty = E.sa;
|
|
259
|
+
d.transform(ca);
|
|
260
260
|
for (const tb of E.S) {
|
|
261
261
|
tb();
|
|
262
262
|
}
|
|
263
263
|
d.restoreClipRect();
|
|
264
264
|
E.S = [];
|
|
265
265
|
}
|
|
266
|
-
for (d.flush();
|
|
267
|
-
L =
|
|
266
|
+
for (d.flush(); J < H; ++J) {
|
|
267
|
+
L = B[J], E = L.Db, E.globalCompositeOperation = "copy", E.drawImage(d.F, L.ra, L.sa, L.ga, L.fa, 0, 0, L.F.width, L.F.height);
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
J = H;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -274,71 +274,71 @@ k.onRuntimeInitialized = function() {
|
|
|
274
274
|
ha && ha();
|
|
275
275
|
let d = null;
|
|
276
276
|
const e = new Set(), f = k.makeRenderer;
|
|
277
|
-
k.makeRenderer = function(
|
|
277
|
+
k.makeRenderer = function(r, u) {
|
|
278
278
|
if (!d) {
|
|
279
279
|
function y(z) {
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
d = b(
|
|
284
|
-
d
|
|
285
|
-
d.
|
|
286
|
-
d.
|
|
280
|
+
var B = document.createElement("canvas");
|
|
281
|
+
B.width = 1;
|
|
282
|
+
B.height = 1;
|
|
283
|
+
d = b(B, z);
|
|
284
|
+
d.$a = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
285
|
+
d.Fb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
286
|
+
d.Ma = !d.$a;
|
|
287
287
|
if (z = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
288
|
-
|
|
288
|
+
B = d.T.getParameter(z.UNMASKED_RENDERER_WEBGL), d.T.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ma = !1);
|
|
289
289
|
}
|
|
290
290
|
return d;
|
|
291
291
|
}
|
|
292
292
|
d = y(!0);
|
|
293
|
-
d.
|
|
293
|
+
d.Ma || (d = y(!1));
|
|
294
294
|
}
|
|
295
|
-
return u ? new a(
|
|
295
|
+
return u ? new a(r) : b(r, d.Ma);
|
|
296
296
|
};
|
|
297
297
|
const g = k.Artboard.prototype["delete"];
|
|
298
298
|
k.Artboard.prototype["delete"] = function() {
|
|
299
|
-
this.
|
|
299
|
+
this.Hb = !0;
|
|
300
300
|
g.call(this);
|
|
301
301
|
};
|
|
302
302
|
const l = k.Artboard.prototype.draw;
|
|
303
|
-
k.Artboard.prototype.draw = function(
|
|
304
|
-
|
|
305
|
-
this.
|
|
306
|
-
}) : l.call(this,
|
|
303
|
+
k.Artboard.prototype.draw = function(r) {
|
|
304
|
+
r.S ? r.S.push(() => {
|
|
305
|
+
this.Hb || l.call(this, r.Gb);
|
|
306
|
+
}) : l.call(this, r);
|
|
307
307
|
};
|
|
308
308
|
const p = new ea(), m = new ea(), t = new da();
|
|
309
309
|
k.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
310
310
|
k.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
311
|
-
k.enableFPSCounter = t.
|
|
312
|
-
t.
|
|
311
|
+
k.enableFPSCounter = t.Ob.bind(t);
|
|
312
|
+
t.ob = c;
|
|
313
313
|
k.resolveAnimationFrame = c;
|
|
314
314
|
let v = k.load;
|
|
315
|
-
k.load = function(
|
|
315
|
+
k.load = function(r, u, y = !0) {
|
|
316
316
|
const z = new k.FallbackFileAssetLoader();
|
|
317
317
|
void 0 !== u && z.addLoader(u);
|
|
318
318
|
y && (u = new k.CDNFileAssetLoader(), z.addLoader(u));
|
|
319
|
-
return Promise.resolve(v(
|
|
319
|
+
return Promise.resolve(v(r, z));
|
|
320
320
|
};
|
|
321
321
|
const x = k.WebGL2Renderer.prototype.clear;
|
|
322
322
|
k.WebGL2Renderer.prototype.clear = function() {
|
|
323
|
-
ja(this.
|
|
324
|
-
const
|
|
325
|
-
if (this.
|
|
326
|
-
this.resize(
|
|
323
|
+
ja(this.Na);
|
|
324
|
+
const r = this.F;
|
|
325
|
+
if (this.Oa != r.width || this.ab != r.height) {
|
|
326
|
+
this.resize(r.width, r.height), this.Oa = r.width, this.ab = r.height;
|
|
327
327
|
}
|
|
328
328
|
x.call(this);
|
|
329
329
|
};
|
|
330
|
-
k.decodeImage = function(
|
|
331
|
-
|
|
332
|
-
u(
|
|
330
|
+
k.decodeImage = function(r, u) {
|
|
331
|
+
r = k.decodeWebGL2Image(r);
|
|
332
|
+
u(r);
|
|
333
333
|
};
|
|
334
334
|
let n = k.Renderer.prototype.align;
|
|
335
|
-
k.Renderer.prototype.align = function(
|
|
336
|
-
n.call(this,
|
|
335
|
+
k.Renderer.prototype.align = function(r, u, y, z, B = 1.0) {
|
|
336
|
+
n.call(this, r, u, y, z, B);
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
-
var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts,
|
|
339
|
+
var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, A = "", oa, pa;
|
|
340
340
|
if (ma || na) {
|
|
341
|
-
na ?
|
|
341
|
+
na ? A = self.location.href : "undefined" != typeof document && document.currentScript && (A = document.currentScript.src), _scriptDir && (A = _scriptDir), 0 !== A.indexOf("blob:") ? A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1) : A = "", na && (pa = a => {
|
|
342
342
|
var b = new XMLHttpRequest();
|
|
343
343
|
b.open("GET", a, !1);
|
|
344
344
|
b.responseType = "arraybuffer";
|
|
@@ -363,12 +363,12 @@ var sa;
|
|
|
363
363
|
k.wasmBinary && (sa = k.wasmBinary);
|
|
364
364
|
var noExitRuntime = k.noExitRuntime || !0;
|
|
365
365
|
"object" != typeof WebAssembly && ta("no native wasm support detected");
|
|
366
|
-
var ua, C, va = !1, D, F, G, wa,
|
|
366
|
+
var ua, C, va = !1, D, F, G, wa, I, K, xa, ya;
|
|
367
367
|
function za() {
|
|
368
368
|
var a = ua.buffer;
|
|
369
369
|
k.HEAP8 = D = new Int8Array(a);
|
|
370
370
|
k.HEAP16 = G = new Int16Array(a);
|
|
371
|
-
k.HEAP32 =
|
|
371
|
+
k.HEAP32 = I = new Int32Array(a);
|
|
372
372
|
k.HEAPU8 = F = new Uint8Array(a);
|
|
373
373
|
k.HEAPU16 = wa = new Uint16Array(a);
|
|
374
374
|
k.HEAPU32 = K = new Uint32Array(a);
|
|
@@ -389,7 +389,7 @@ function ta(a) {
|
|
|
389
389
|
ra(a);
|
|
390
390
|
va = !0;
|
|
391
391
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
392
|
-
|
|
392
|
+
ba(a);
|
|
393
393
|
throw a;
|
|
394
394
|
}
|
|
395
395
|
function Ia(a) {
|
|
@@ -399,7 +399,7 @@ var Ja;
|
|
|
399
399
|
Ja = "webgl2_advanced.wasm";
|
|
400
400
|
if (!Ia(Ja)) {
|
|
401
401
|
var Ka = Ja;
|
|
402
|
-
Ja = k.locateFile ? k.locateFile(Ka,
|
|
402
|
+
Ja = k.locateFile ? k.locateFile(Ka, A) : A + Ka;
|
|
403
403
|
}
|
|
404
404
|
function La(a) {
|
|
405
405
|
if (a == Ja && sa) {
|
|
@@ -442,22 +442,22 @@ function Oa(a, b) {
|
|
|
442
442
|
return Na(c, a, b);
|
|
443
443
|
}));
|
|
444
444
|
}
|
|
445
|
-
var Pa, Qa, Ua = {
|
|
445
|
+
var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
446
446
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
447
447
|
return 0;
|
|
448
448
|
}
|
|
449
449
|
if ("undefined" === typeof window.h) {
|
|
450
|
-
window.h = {
|
|
450
|
+
window.h = {Ga:0};
|
|
451
451
|
window.h.I = {};
|
|
452
|
-
window.h.I.
|
|
452
|
+
window.h.I.Ea = a;
|
|
453
453
|
window.h.I.capture = b;
|
|
454
|
-
window.h.I.
|
|
454
|
+
window.h.I.Ra = c;
|
|
455
455
|
window.h.ja = {};
|
|
456
456
|
window.h.ja.stopped = d;
|
|
457
|
-
window.h.ja.
|
|
457
|
+
window.h.ja.xb = e;
|
|
458
458
|
let f = window.h;
|
|
459
459
|
f.D = [];
|
|
460
|
-
f.
|
|
460
|
+
f.rc = function(g) {
|
|
461
461
|
for (var l = 0; l < f.D.length; ++l) {
|
|
462
462
|
if (null == f.D[l]) {
|
|
463
463
|
return f.D[l] = g, l;
|
|
@@ -466,7 +466,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
466
466
|
f.D.push(g);
|
|
467
467
|
return f.D.length - 1;
|
|
468
468
|
};
|
|
469
|
-
f.
|
|
469
|
+
f.Bb = function(g) {
|
|
470
470
|
for (f.D[g] = null; 0 < f.D.length;) {
|
|
471
471
|
if (null == f.D[f.D.length - 1]) {
|
|
472
472
|
f.D.pop();
|
|
@@ -478,38 +478,38 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
478
478
|
f.Qc = function(g) {
|
|
479
479
|
for (var l = 0; l < f.D.length; ++l) {
|
|
480
480
|
if (f.D[l] == g) {
|
|
481
|
-
return f.
|
|
481
|
+
return f.Bb(l);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
f.va = function(g) {
|
|
486
486
|
return f.D[g];
|
|
487
487
|
};
|
|
488
|
-
f.
|
|
488
|
+
f.Za = ["touchend", "click"];
|
|
489
489
|
f.unlock = function() {
|
|
490
490
|
for (var g = 0; g < f.D.length; ++g) {
|
|
491
491
|
var l = f.D[g];
|
|
492
|
-
null != l && null != l.J && l.state === f.ja.
|
|
493
|
-
Ra(l.
|
|
492
|
+
null != l && null != l.J && l.state === f.ja.xb && l.J.resume().then(() => {
|
|
493
|
+
Ra(l.pb);
|
|
494
494
|
}, p => {
|
|
495
495
|
console.error("Failed to resume audiocontext", p);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
f.
|
|
498
|
+
f.Za.map(function(p) {
|
|
499
499
|
document.removeEventListener(p, f.unlock, !0);
|
|
500
500
|
});
|
|
501
501
|
};
|
|
502
|
-
f.
|
|
502
|
+
f.Za.map(function(g) {
|
|
503
503
|
document.addEventListener(g, f.unlock, !0);
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
window.h.
|
|
506
|
+
window.h.Ga += 1;
|
|
507
507
|
return 1;
|
|
508
|
-
},
|
|
509
|
-
"undefined" !== typeof window.h && (window.h.
|
|
508
|
+
}, 536377:() => {
|
|
509
|
+
"undefined" !== typeof window.h && (window.h.Za.map(function(a) {
|
|
510
510
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
511
|
-
}), --window.h.
|
|
512
|
-
},
|
|
511
|
+
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
512
|
+
}, 536681:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 536785:() => {
|
|
513
513
|
try {
|
|
514
514
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
515
515
|
a.close();
|
|
@@ -517,23 +517,23 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
517
517
|
} catch (c) {
|
|
518
518
|
return 0;
|
|
519
519
|
}
|
|
520
|
-
},
|
|
520
|
+
}, 536956:(a, b, c, d, e, f) => {
|
|
521
521
|
if ("undefined" === typeof window.h) {
|
|
522
522
|
return -1;
|
|
523
523
|
}
|
|
524
524
|
var g = {}, l = {};
|
|
525
|
-
a == window.h.I.
|
|
525
|
+
a == window.h.I.Ea && 0 != c && (l.sampleRate = c);
|
|
526
526
|
g.J = new (window.AudioContext || window.webkitAudioContext)(l);
|
|
527
527
|
g.J.suspend();
|
|
528
528
|
g.state = window.h.ja.stopped;
|
|
529
529
|
c = 0;
|
|
530
|
-
a != window.h.I.
|
|
530
|
+
a != window.h.I.Ea && (c = b);
|
|
531
531
|
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
532
532
|
g.Z.onaudioprocess = function(p) {
|
|
533
533
|
if (null == g.wa || 0 == g.wa.length) {
|
|
534
534
|
g.wa = new Float32Array(xa.buffer, e, d * b);
|
|
535
535
|
}
|
|
536
|
-
if (a == window.h.I.capture || a == window.h.I.
|
|
536
|
+
if (a == window.h.I.capture || a == window.h.I.Ra) {
|
|
537
537
|
for (var m = 0; m < b; m += 1) {
|
|
538
538
|
for (var t = p.inputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
|
|
539
539
|
v[x * b + m] = t[x];
|
|
@@ -541,7 +541,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
541
541
|
}
|
|
542
542
|
Sa(f, d, e);
|
|
543
543
|
}
|
|
544
|
-
if (a == window.h.I.
|
|
544
|
+
if (a == window.h.I.Ea || a == window.h.I.Ra) {
|
|
545
545
|
for (Ta(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
|
|
546
546
|
for (t = p.outputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
|
|
547
547
|
t[x] = v[x * b + m];
|
|
@@ -553,31 +553,31 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
a != window.h.I.capture && a != window.h.I.
|
|
557
|
-
g.
|
|
558
|
-
g.
|
|
556
|
+
a != window.h.I.capture && a != window.h.I.Ra || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
557
|
+
g.Ha = g.J.createMediaStreamSource(p);
|
|
558
|
+
g.Ha.connect(g.Z);
|
|
559
559
|
g.Z.connect(g.J.destination);
|
|
560
560
|
}).catch(function(p) {
|
|
561
561
|
console.log("Failed to get user media: " + p);
|
|
562
562
|
});
|
|
563
|
-
a == window.h.I.
|
|
564
|
-
g.
|
|
565
|
-
return window.h.
|
|
566
|
-
},
|
|
563
|
+
a == window.h.I.Ea && g.Z.connect(g.J.destination);
|
|
564
|
+
g.pb = f;
|
|
565
|
+
return window.h.rc(g);
|
|
566
|
+
}, 539833:a => window.h.va(a).J.sampleRate, 539906:a => {
|
|
567
567
|
a = window.h.va(a);
|
|
568
568
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
569
569
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
570
|
-
void 0 !== a.
|
|
570
|
+
void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
|
|
571
571
|
a.J.close();
|
|
572
572
|
a.J = void 0;
|
|
573
|
-
a.
|
|
574
|
-
},
|
|
575
|
-
window.h.
|
|
576
|
-
},
|
|
573
|
+
a.pb = void 0;
|
|
574
|
+
}, 540306:a => {
|
|
575
|
+
window.h.Bb(a);
|
|
576
|
+
}, 540356:a => {
|
|
577
577
|
a = window.h.va(a);
|
|
578
578
|
a.J.resume();
|
|
579
|
-
a.state = window.h.ja.
|
|
580
|
-
},
|
|
579
|
+
a.state = window.h.ja.xb;
|
|
580
|
+
}, 540495:a => {
|
|
581
581
|
a = window.h.va(a);
|
|
582
582
|
a.J.suspend();
|
|
583
583
|
a.state = window.h.ja.stopped;
|
|
@@ -725,7 +725,7 @@ function ib(a, b) {
|
|
|
725
725
|
jb(a, kb);
|
|
726
726
|
}
|
|
727
727
|
var kb = {open:function(a) {
|
|
728
|
-
var b = hb[a.node.
|
|
728
|
+
var b = hb[a.node.Fa];
|
|
729
729
|
if (!b) {
|
|
730
730
|
throw new N(43);
|
|
731
731
|
}
|
|
@@ -736,12 +736,12 @@ var kb = {open:function(a) {
|
|
|
736
736
|
}, ua:function(a) {
|
|
737
737
|
a.s.V.ua(a.s);
|
|
738
738
|
}, read:function(a, b, c, d) {
|
|
739
|
-
if (!a.s || !a.s.V.
|
|
739
|
+
if (!a.s || !a.s.V.jb) {
|
|
740
740
|
throw new N(60);
|
|
741
741
|
}
|
|
742
742
|
for (var e = 0, f = 0; f < d; f++) {
|
|
743
743
|
try {
|
|
744
|
-
var g = a.s.V.
|
|
744
|
+
var g = a.s.V.jb(a.s);
|
|
745
745
|
} catch (l) {
|
|
746
746
|
throw new N(29);
|
|
747
747
|
}
|
|
@@ -757,19 +757,19 @@ var kb = {open:function(a) {
|
|
|
757
757
|
e && (a.node.timestamp = Date.now());
|
|
758
758
|
return e;
|
|
759
759
|
}, write:function(a, b, c, d) {
|
|
760
|
-
if (!a.s || !a.s.V.
|
|
760
|
+
if (!a.s || !a.s.V.Ua) {
|
|
761
761
|
throw new N(60);
|
|
762
762
|
}
|
|
763
763
|
try {
|
|
764
764
|
for (var e = 0; e < d; e++) {
|
|
765
|
-
a.s.V.
|
|
765
|
+
a.s.V.Ua(a.s, b[c + e]);
|
|
766
766
|
}
|
|
767
767
|
} catch (f) {
|
|
768
768
|
throw new N(29);
|
|
769
769
|
}
|
|
770
770
|
d && (a.node.timestamp = Date.now());
|
|
771
771
|
return e;
|
|
772
|
-
},}, lb = {
|
|
772
|
+
},}, lb = {jb:function() {
|
|
773
773
|
a: {
|
|
774
774
|
if (!db.length) {
|
|
775
775
|
var a = null;
|
|
@@ -783,17 +783,17 @@ var kb = {open:function(a) {
|
|
|
783
783
|
a = db.shift();
|
|
784
784
|
}
|
|
785
785
|
return a;
|
|
786
|
-
},
|
|
786
|
+
}, Ua:function(a, b) {
|
|
787
787
|
null === b || 10 === b ? (qa(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
|
|
788
788
|
}, ua:function(a) {
|
|
789
789
|
a.G && 0 < a.G.length && (qa(M(a.G, 0)), a.G = []);
|
|
790
|
-
},
|
|
791
|
-
return {
|
|
792
|
-
},
|
|
790
|
+
}, $b:function() {
|
|
791
|
+
return {xc:25856, zc:5, wc:191, yc:35387, vc:[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,]};
|
|
792
|
+
}, ac:function() {
|
|
793
793
|
return 0;
|
|
794
|
-
},
|
|
794
|
+
}, bc:function() {
|
|
795
795
|
return [24, 80];
|
|
796
|
-
},}, mb = {
|
|
796
|
+
},}, mb = {Ua:function(a, b) {
|
|
797
797
|
null === b || 10 === b ? (ra(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
|
|
798
798
|
}, ua:function(a) {
|
|
799
799
|
a.G && 0 < a.G.length && (ra(M(a.G, 0)), a.G = []);
|
|
@@ -808,29 +808,29 @@ var O = {O:null, U() {
|
|
|
808
808
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
809
809
|
throw new N(63);
|
|
810
810
|
}
|
|
811
|
-
O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma,
|
|
811
|
+
O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, Ca:O.l.Ca, vb:O.l.vb, Ab:O.l.Ab, wb:O.l.wb, tb:O.l.tb, Ia:O.l.Ia}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, bb:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
|
|
812
812
|
c = pb(a, b, c, d);
|
|
813
|
-
16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.
|
|
813
|
+
16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.bb.node, c.m = O.O.bb.stream);
|
|
814
814
|
c.timestamp = Date.now();
|
|
815
815
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
816
816
|
return c;
|
|
817
|
-
},
|
|
817
|
+
}, Ec(a) {
|
|
818
818
|
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
819
819
|
}, l:{Y(a) {
|
|
820
820
|
var b = {};
|
|
821
|
-
b.
|
|
822
|
-
b.
|
|
821
|
+
b.Cc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
822
|
+
b.Gc = a.id;
|
|
823
823
|
b.mode = a.mode;
|
|
824
824
|
b.Lc = 1;
|
|
825
825
|
b.uid = 0;
|
|
826
|
-
b.
|
|
827
|
-
b.
|
|
826
|
+
b.Fc = 0;
|
|
827
|
+
b.Fa = a.Fa;
|
|
828
828
|
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;
|
|
829
|
-
b.
|
|
829
|
+
b.tc = new Date(a.timestamp);
|
|
830
830
|
b.Jc = new Date(a.timestamp);
|
|
831
|
-
b.
|
|
832
|
-
b.
|
|
833
|
-
b.
|
|
831
|
+
b.Ac = new Date(a.timestamp);
|
|
832
|
+
b.Ib = 4096;
|
|
833
|
+
b.uc = Math.ceil(b.size / b.Ib);
|
|
834
834
|
return b;
|
|
835
835
|
}, P(a, b) {
|
|
836
836
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -847,9 +847,9 @@ var O = {O:null, U() {
|
|
|
847
847
|
}
|
|
848
848
|
}, ma() {
|
|
849
849
|
throw qb[44];
|
|
850
|
-
},
|
|
850
|
+
}, Ca(a, b, c, d) {
|
|
851
851
|
return O.createNode(a, b, c, d);
|
|
852
|
-
},
|
|
852
|
+
}, vb(a, b, c) {
|
|
853
853
|
if (16384 === (a.mode & 61440)) {
|
|
854
854
|
try {
|
|
855
855
|
var d = rb(b, c);
|
|
@@ -867,23 +867,23 @@ var O = {O:null, U() {
|
|
|
867
867
|
b.j[c] = a;
|
|
868
868
|
b.timestamp = a.parent.timestamp;
|
|
869
869
|
a.parent = b;
|
|
870
|
-
},
|
|
870
|
+
}, Ab(a, b) {
|
|
871
871
|
delete a.j[b];
|
|
872
872
|
a.timestamp = Date.now();
|
|
873
|
-
},
|
|
873
|
+
}, wb(a, b) {
|
|
874
874
|
var c = rb(a, b), d;
|
|
875
875
|
for (d in c.j) {
|
|
876
876
|
throw new N(55);
|
|
877
877
|
}
|
|
878
878
|
delete a.j[b];
|
|
879
879
|
a.timestamp = Date.now();
|
|
880
|
-
},
|
|
880
|
+
}, tb(a) {
|
|
881
881
|
var b = [".", ".."], c;
|
|
882
882
|
for (c in a.j) {
|
|
883
883
|
a.j.hasOwnProperty(c) && b.push(c);
|
|
884
884
|
}
|
|
885
885
|
return b;
|
|
886
|
-
},
|
|
886
|
+
}, Ia(a, b, c) {
|
|
887
887
|
a = O.createNode(a, b, 41471, 0);
|
|
888
888
|
a.link = c;
|
|
889
889
|
return a;
|
|
@@ -943,7 +943,7 @@ var O = {O:null, U() {
|
|
|
943
943
|
}, ta(a, b, c) {
|
|
944
944
|
nb(a.node, b + c);
|
|
945
945
|
a.node.v = Math.max(a.node.v, b + c);
|
|
946
|
-
},
|
|
946
|
+
}, lb(a, b, c, d, e) {
|
|
947
947
|
if (32768 !== (a.node.mode & 61440)) {
|
|
948
948
|
throw new N(43);
|
|
949
949
|
}
|
|
@@ -963,7 +963,7 @@ var O = {O:null, U() {
|
|
|
963
963
|
c = !1, b = a.byteOffset;
|
|
964
964
|
}
|
|
965
965
|
return {o:b, M:c};
|
|
966
|
-
},
|
|
966
|
+
}, nb(a, b, c, d) {
|
|
967
967
|
O.m.write(a, b, 0, d, c, !1);
|
|
968
968
|
return 0;
|
|
969
969
|
},},};
|
|
@@ -978,8 +978,8 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
978
978
|
if (!a) {
|
|
979
979
|
return {path:"", node:null};
|
|
980
980
|
}
|
|
981
|
-
b = Object.assign({
|
|
982
|
-
if (8 < b.
|
|
981
|
+
b = Object.assign({hb:!0, Wa:0}, b);
|
|
982
|
+
if (8 < b.Wa) {
|
|
983
983
|
throw new N(32);
|
|
984
984
|
}
|
|
985
985
|
a = a.split("/").filter(g => !!g);
|
|
@@ -990,10 +990,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
990
990
|
}
|
|
991
991
|
c = rb(c, a[e]);
|
|
992
992
|
d = Xa(d + "/" + a[e]);
|
|
993
|
-
c.
|
|
994
|
-
if (!f || b.
|
|
993
|
+
c.Da && (!f || f && b.hb) && (c = c.Da.root);
|
|
994
|
+
if (!f || b.gb) {
|
|
995
995
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
996
|
-
if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {
|
|
996
|
+
if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Wa:b.Wa + 1}).node, 40 < f++) {
|
|
997
997
|
throw new N(32);
|
|
998
998
|
}
|
|
999
999
|
}
|
|
@@ -1003,7 +1003,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1003
1003
|
}, Cb = a => {
|
|
1004
1004
|
for (var b;;) {
|
|
1005
1005
|
if (a === a.parent) {
|
|
1006
|
-
return a = a.U.
|
|
1006
|
+
return a = a.U.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
1007
1007
|
}
|
|
1008
1008
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1009
1009
|
a = a.parent;
|
|
@@ -1018,7 +1018,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1018
1018
|
if (c = (c = Eb(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
1019
1019
|
throw new N(c, a);
|
|
1020
1020
|
}
|
|
1021
|
-
for (c = yb[Db(a.id, b)]; c; c = c.
|
|
1021
|
+
for (c = yb[Db(a.id, b)]; c; c = c.ec) {
|
|
1022
1022
|
var d = c.name;
|
|
1023
1023
|
if (c.parent.id === a.id && d === b) {
|
|
1024
1024
|
return c;
|
|
@@ -1028,7 +1028,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1028
1028
|
}, pb = (a, b, c, d) => {
|
|
1029
1029
|
a = new Fb(a, b, c, d);
|
|
1030
1030
|
b = Db(a.parent.id, a.name);
|
|
1031
|
-
a.
|
|
1031
|
+
a.ec = yb[b];
|
|
1032
1032
|
return yb[b] = a;
|
|
1033
1033
|
}, Gb = a => {
|
|
1034
1034
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -1086,7 +1086,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1086
1086
|
a.X = b;
|
|
1087
1087
|
return wb[b] = a;
|
|
1088
1088
|
}, ob = {open:a => {
|
|
1089
|
-
a.m = vb[a.node.
|
|
1089
|
+
a.m = vb[a.node.Fa].m;
|
|
1090
1090
|
a.m.open && a.m.open(a);
|
|
1091
1091
|
}, ba:() => {
|
|
1092
1092
|
throw new N(70);
|
|
@@ -1098,21 +1098,21 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1098
1098
|
throw new N(10);
|
|
1099
1099
|
}
|
|
1100
1100
|
if (!c && !d) {
|
|
1101
|
-
var e = Bb(b, {
|
|
1101
|
+
var e = Bb(b, {hb:!1});
|
|
1102
1102
|
b = e.path;
|
|
1103
1103
|
e = e.node;
|
|
1104
|
-
if (e.
|
|
1104
|
+
if (e.Da) {
|
|
1105
1105
|
throw new N(10);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (16384 !== (e.mode & 61440)) {
|
|
1108
1108
|
throw new N(54);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
b = {type:a, Nc:{},
|
|
1111
|
+
b = {type:a, Nc:{}, mb:b, dc:[]};
|
|
1112
1112
|
a = a.U(b);
|
|
1113
1113
|
a.U = b;
|
|
1114
1114
|
b.root = a;
|
|
1115
|
-
c ? ub = a : e && (e.
|
|
1115
|
+
c ? ub = a : e && (e.Da = b, e.U && e.U.dc.push(b));
|
|
1116
1116
|
}, P = (a, b, c) => {
|
|
1117
1117
|
var d = Bb(a, {parent:!0}).node;
|
|
1118
1118
|
a = Za(a);
|
|
@@ -1123,10 +1123,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1123
1123
|
if (e) {
|
|
1124
1124
|
throw new N(e);
|
|
1125
1125
|
}
|
|
1126
|
-
if (!d.l.
|
|
1126
|
+
if (!d.l.Ca) {
|
|
1127
1127
|
throw new N(63);
|
|
1128
1128
|
}
|
|
1129
|
-
return d.l.
|
|
1129
|
+
return d.l.Ca(d, a, b, c);
|
|
1130
1130
|
}, Nb = (a, b, c) => {
|
|
1131
1131
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1132
1132
|
P(a, b | 8192, c);
|
|
@@ -1143,10 +1143,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1143
1143
|
if (d) {
|
|
1144
1144
|
throw new N(d);
|
|
1145
1145
|
}
|
|
1146
|
-
if (!c.l.
|
|
1146
|
+
if (!c.l.Ia) {
|
|
1147
1147
|
throw new N(63);
|
|
1148
1148
|
}
|
|
1149
|
-
c.l.
|
|
1149
|
+
c.l.Ia(c, b, a);
|
|
1150
1150
|
}, Ab = a => {
|
|
1151
1151
|
a = Bb(a).node;
|
|
1152
1152
|
if (!a) {
|
|
@@ -1173,7 +1173,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1173
1173
|
} else {
|
|
1174
1174
|
a = Xa(a);
|
|
1175
1175
|
try {
|
|
1176
|
-
e = Bb(a, {
|
|
1176
|
+
e = Bb(a, {gb:!(b & 131072)}).node;
|
|
1177
1177
|
} catch (f) {
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
@@ -1199,7 +1199,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1199
1199
|
}
|
|
1200
1200
|
if (b & 512 && !d) {
|
|
1201
1201
|
c = e;
|
|
1202
|
-
c = "string" == typeof c ? Bb(c, {
|
|
1202
|
+
c = "string" == typeof c ? Bb(c, {gb:!0}).node : c;
|
|
1203
1203
|
if (!c.l.P) {
|
|
1204
1204
|
throw new N(63);
|
|
1205
1205
|
}
|
|
@@ -1215,7 +1215,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1215
1215
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1216
1216
|
}
|
|
1217
1217
|
b &= -131713;
|
|
1218
|
-
e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1218
|
+
e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m, sc:[], error:!1});
|
|
1219
1219
|
e.m.open && e.m.open(e);
|
|
1220
1220
|
!k.logReadFiles || b & 1 || (Pb || (Pb = {}), a in Pb || (Pb[a] = 1));
|
|
1221
1221
|
return e;
|
|
@@ -1230,15 +1230,15 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1230
1230
|
throw new N(28);
|
|
1231
1231
|
}
|
|
1232
1232
|
a.position = a.m.ba(a, b, c);
|
|
1233
|
-
a.
|
|
1233
|
+
a.sc = [];
|
|
1234
1234
|
}, Sb = () => {
|
|
1235
1235
|
N || (N = function(a, b) {
|
|
1236
1236
|
this.name = "ErrnoError";
|
|
1237
1237
|
this.node = b;
|
|
1238
|
-
this.
|
|
1238
|
+
this.ic = function(c) {
|
|
1239
1239
|
this.aa = c;
|
|
1240
1240
|
};
|
|
1241
|
-
this.
|
|
1241
|
+
this.ic(a);
|
|
1242
1242
|
this.message = "FS error";
|
|
1243
1243
|
}, N.prototype = Error(), N.prototype.constructor = N, [44].forEach(a => {
|
|
1244
1244
|
qb[a] = new N(a);
|
|
@@ -1286,7 +1286,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1286
1286
|
}, Ub, Wb = {}, Kb, Pb, Xb = void 0;
|
|
1287
1287
|
function Yb() {
|
|
1288
1288
|
Xb += 4;
|
|
1289
|
-
return
|
|
1289
|
+
return I[Xb - 4 >> 2];
|
|
1290
1290
|
}
|
|
1291
1291
|
function Zb(a) {
|
|
1292
1292
|
if (void 0 === a) {
|
|
@@ -1304,7 +1304,7 @@ function $b(a, b) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
function ac() {
|
|
1306
1306
|
this.M = [void 0];
|
|
1307
|
-
this.
|
|
1307
|
+
this.ib = [];
|
|
1308
1308
|
}
|
|
1309
1309
|
var Q = new ac(), bc = void 0;
|
|
1310
1310
|
function R(a) {
|
|
@@ -1324,7 +1324,7 @@ var S = a => {
|
|
|
1324
1324
|
case !1:
|
|
1325
1325
|
return 4;
|
|
1326
1326
|
default:
|
|
1327
|
-
return Q.ta({
|
|
1327
|
+
return Q.ta({ub:1, value:a});
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
1330
|
function cc(a) {
|
|
@@ -1390,7 +1390,7 @@ function sc(a, b, c) {
|
|
|
1390
1390
|
return null;
|
|
1391
1391
|
}
|
|
1392
1392
|
a = sc(a, b, c.A);
|
|
1393
|
-
return null === a ? null : c.
|
|
1393
|
+
return null === a ? null : c.Mb(a);
|
|
1394
1394
|
}
|
|
1395
1395
|
var tc = {};
|
|
1396
1396
|
function uc(a, b) {
|
|
@@ -1432,7 +1432,7 @@ function Ac(a) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
function Bc(a) {
|
|
1435
|
-
return this.fromWireType(
|
|
1435
|
+
return this.fromWireType(I[a >> 2]);
|
|
1436
1436
|
}
|
|
1437
1437
|
var Cc = {}, Dc = {};
|
|
1438
1438
|
function V(a, b, c) {
|
|
@@ -1440,7 +1440,7 @@ function V(a, b, c) {
|
|
|
1440
1440
|
l = c(l);
|
|
1441
1441
|
l.length !== a.length && wc("Mismatched type converter count");
|
|
1442
1442
|
for (var p = 0; p < a.length; ++p) {
|
|
1443
|
-
|
|
1443
|
+
Ec(a[p], l[p]);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
a.forEach(function(l) {
|
|
@@ -1456,7 +1456,7 @@ function V(a, b, c) {
|
|
|
1456
1456
|
});
|
|
1457
1457
|
0 === f.length && d(e);
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Fc(a) {
|
|
1460
1460
|
switch(a) {
|
|
1461
1461
|
case 1:
|
|
1462
1462
|
return 0;
|
|
@@ -1470,11 +1470,11 @@ function Ec(a) {
|
|
|
1470
1470
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Gc(a, b, c = {}) {
|
|
1474
1474
|
var d = b.name;
|
|
1475
1475
|
a || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
1476
1476
|
if (kc.hasOwnProperty(a)) {
|
|
1477
|
-
if (c.
|
|
1477
|
+
if (c.Xb) {
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
1480
|
R(`Cannot register type '${d}' twice`);
|
|
@@ -1483,18 +1483,18 @@ function Fc(a, b, c = {}) {
|
|
|
1483
1483
|
delete Dc[a];
|
|
1484
1484
|
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Ec(a, b, c = {}) {
|
|
1487
1487
|
if (!("argPackAdvance" in b)) {
|
|
1488
1488
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1489
1489
|
}
|
|
1490
|
-
|
|
1490
|
+
Gc(a, b, c);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Hc(a) {
|
|
1493
1493
|
R(a.g.u.i.name + " instance already deleted");
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Ic() {
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Jc(a, b, c) {
|
|
1498
1498
|
if (void 0 === a[b].B) {
|
|
1499
1499
|
var d = a[b];
|
|
1500
1500
|
a[b] = function() {
|
|
@@ -1505,50 +1505,50 @@ function Ic(a, b, c) {
|
|
|
1505
1505
|
a[b].B[d.ha] = d;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`),
|
|
1508
|
+
function Kc(a, b, c) {
|
|
1509
|
+
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`), Jc(k, a, a), k.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), k[a].B[c] = b) : (k[a] = b, void 0 !== c && (k[a].Mc = c));
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Lc(a, b, c, d, e, f, g, l) {
|
|
1512
1512
|
this.name = a;
|
|
1513
1513
|
this.constructor = b;
|
|
1514
1514
|
this.N = c;
|
|
1515
1515
|
this.W = d;
|
|
1516
1516
|
this.A = e;
|
|
1517
|
-
this.
|
|
1517
|
+
this.Rb = f;
|
|
1518
1518
|
this.pa = g;
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1519
|
+
this.Mb = l;
|
|
1520
|
+
this.qb = [];
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Mc(a, b, c) {
|
|
1523
1523
|
for (; b !== c;) {
|
|
1524
1524
|
b.pa || R(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1525
1525
|
}
|
|
1526
1526
|
return a;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Nc(a, b) {
|
|
1529
1529
|
if (null === b) {
|
|
1530
|
-
return this.
|
|
1530
|
+
return this.Ta && R(`null is not a valid ${this.name}`), 0;
|
|
1531
1531
|
}
|
|
1532
|
-
b.g || R(`Cannot pass "${
|
|
1532
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1533
1533
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1534
|
-
return
|
|
1534
|
+
return Mc(b.g.o, b.g.u.i, this.i);
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function Pc(a, b) {
|
|
1537
1537
|
if (null === b) {
|
|
1538
|
-
this.
|
|
1538
|
+
this.Ta && R(`null is not a valid ${this.name}`);
|
|
1539
1539
|
if (this.ya) {
|
|
1540
|
-
var c = this.
|
|
1540
|
+
var c = this.Va();
|
|
1541
1541
|
null !== a && a.push(this.W, c);
|
|
1542
1542
|
return c;
|
|
1543
1543
|
}
|
|
1544
1544
|
return 0;
|
|
1545
1545
|
}
|
|
1546
|
-
b.g || R(`Cannot pass "${
|
|
1546
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1547
1547
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1548
1548
|
!this.xa && b.g.u.xa && R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1549
|
-
c =
|
|
1549
|
+
c = Mc(b.g.o, b.g.u.i, this.i);
|
|
1550
1550
|
if (this.ya) {
|
|
1551
|
-
switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.
|
|
1551
|
+
switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.mc) {
|
|
1552
1552
|
case 0:
|
|
1553
1553
|
b.g.L === this ? c = b.g.H : R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1554
1554
|
break;
|
|
@@ -1560,7 +1560,7 @@ function Oc(a, b) {
|
|
|
1560
1560
|
c = b.g.H;
|
|
1561
1561
|
} else {
|
|
1562
1562
|
var d = b.clone();
|
|
1563
|
-
c = this.
|
|
1563
|
+
c = this.hc(c, T(function() {
|
|
1564
1564
|
d["delete"]();
|
|
1565
1565
|
}));
|
|
1566
1566
|
null !== a && a.push(this.W, c);
|
|
@@ -1572,33 +1572,33 @@ function Oc(a, b) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
return c;
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function Qc(a, b) {
|
|
1576
1576
|
if (null === b) {
|
|
1577
|
-
return this.
|
|
1577
|
+
return this.Ta && R(`null is not a valid ${this.name}`), 0;
|
|
1578
1578
|
}
|
|
1579
|
-
b.g || R(`Cannot pass "${
|
|
1579
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1580
1580
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1581
1581
|
b.g.u.xa && R(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1582
|
-
return
|
|
1582
|
+
return Mc(b.g.o, b.g.u.i, this.i);
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Rc(a, b, c, d) {
|
|
1585
1585
|
this.name = a;
|
|
1586
1586
|
this.i = b;
|
|
1587
|
-
this.
|
|
1587
|
+
this.Ta = c;
|
|
1588
1588
|
this.xa = d;
|
|
1589
1589
|
this.ya = !1;
|
|
1590
|
-
this.W = this.
|
|
1591
|
-
void 0 !== b.A ? this.toWireType =
|
|
1590
|
+
this.W = this.hc = this.Va = this.sb = this.mc = this.fc = void 0;
|
|
1591
|
+
void 0 !== b.A ? this.toWireType = Pc : (this.toWireType = d ? Nc : Qc, this.K = null);
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Sc(a, b, c) {
|
|
1594
1594
|
k.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1595
1595
|
void 0 !== k[a].B && void 0 !== c ? k[a].B[c] = b : (k[a] = b, k[a].ha = c);
|
|
1596
1596
|
}
|
|
1597
|
-
var
|
|
1598
|
-
var b =
|
|
1599
|
-
b || (a >=
|
|
1597
|
+
var Tc = [], Uc = a => {
|
|
1598
|
+
var b = Tc[a];
|
|
1599
|
+
b || (a >= Tc.length && (Tc.length = a + 1), Tc[a] = b = Aa.get(a));
|
|
1600
1600
|
return b;
|
|
1601
|
-
},
|
|
1601
|
+
}, Vc = (a, b) => {
|
|
1602
1602
|
var c = [];
|
|
1603
1603
|
return function() {
|
|
1604
1604
|
c.length = 0;
|
|
@@ -1607,27 +1607,27 @@ var Sc = [], Tc = a => {
|
|
|
1607
1607
|
var d = k["dynCall_" + a];
|
|
1608
1608
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1609
1609
|
} else {
|
|
1610
|
-
d =
|
|
1610
|
+
d = Uc(b).apply(null, c);
|
|
1611
1611
|
}
|
|
1612
1612
|
return d;
|
|
1613
1613
|
};
|
|
1614
1614
|
};
|
|
1615
|
-
function
|
|
1615
|
+
function W(a, b) {
|
|
1616
1616
|
a = U(a);
|
|
1617
|
-
var c = a.includes("j") ?
|
|
1617
|
+
var c = a.includes("j") ? Vc(a, b) : Uc(b);
|
|
1618
1618
|
"function" != typeof c && R(`unknown function pointer with signature ${a}: ${b}`);
|
|
1619
1619
|
return c;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1622
|
-
function
|
|
1621
|
+
var Wc = void 0;
|
|
1622
|
+
function Xc(a, b) {
|
|
1623
1623
|
function c(f) {
|
|
1624
1624
|
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1625
1625
|
}
|
|
1626
1626
|
var d = [], e = {};
|
|
1627
1627
|
b.forEach(c);
|
|
1628
|
-
throw new
|
|
1628
|
+
throw new Wc(`${a}: ` + d.map(lc).join([", "]));
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function Yc(a, b, c, d, e) {
|
|
1631
1631
|
var f = b.length;
|
|
1632
1632
|
2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1633
1633
|
var g = null !== b[1] && null !== c, l = !1;
|
|
@@ -1647,10 +1647,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1647
1647
|
var n = b[1].toWireType(x, this);
|
|
1648
1648
|
v[1] = n;
|
|
1649
1649
|
}
|
|
1650
|
-
for (var
|
|
1651
|
-
t[
|
|
1650
|
+
for (var r = 0; r < m; ++r) {
|
|
1651
|
+
t[r] = b[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
|
|
1652
1652
|
}
|
|
1653
|
-
|
|
1653
|
+
r = d.apply(null, v);
|
|
1654
1654
|
if (l) {
|
|
1655
1655
|
Ac(x);
|
|
1656
1656
|
} else {
|
|
@@ -1659,26 +1659,26 @@ function Xc(a, b, c, d, e) {
|
|
|
1659
1659
|
null !== b[u].K && b[u].K(y);
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
n = p ? b[0].fromWireType(
|
|
1662
|
+
n = p ? b[0].fromWireType(r) : void 0;
|
|
1663
1663
|
return n;
|
|
1664
1664
|
};
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function Zc(a, b) {
|
|
1667
1667
|
for (var c = [], d = 0; d < a; d++) {
|
|
1668
1668
|
c.push(K[b + 4 * d >> 2]);
|
|
1669
1669
|
}
|
|
1670
1670
|
return c;
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function $c(a, b, c) {
|
|
1673
1673
|
a instanceof Object || R(`${c} with invalid "this": ${a}`);
|
|
1674
1674
|
a instanceof b.i.constructor || R(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1675
1675
|
a.g.o || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1676
|
-
return
|
|
1676
|
+
return Mc(a.g.o, a.g.u.i, b.i);
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
a >= Q.h && 0 === --Q.get(a).
|
|
1678
|
+
function ad(a) {
|
|
1679
|
+
a >= Q.h && 0 === --Q.get(a).ub && Q.Wb(a);
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function bd(a, b, c) {
|
|
1682
1682
|
switch(b) {
|
|
1683
1683
|
case 0:
|
|
1684
1684
|
return function(d) {
|
|
@@ -1690,20 +1690,20 @@ function ad(a, b, c) {
|
|
|
1690
1690
|
};
|
|
1691
1691
|
case 2:
|
|
1692
1692
|
return function(d) {
|
|
1693
|
-
return this.fromWireType((c ?
|
|
1693
|
+
return this.fromWireType((c ? I : K)[d >> 2]);
|
|
1694
1694
|
};
|
|
1695
1695
|
default:
|
|
1696
1696
|
throw new TypeError("Unknown integer type: " + a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function Oc(a) {
|
|
1700
1700
|
if (null === a) {
|
|
1701
1701
|
return "null";
|
|
1702
1702
|
}
|
|
1703
1703
|
var b = typeof a;
|
|
1704
1704
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function cd(a, b) {
|
|
1707
1707
|
switch(b) {
|
|
1708
1708
|
case 2:
|
|
1709
1709
|
return function(c) {
|
|
@@ -1717,7 +1717,7 @@ function bd(a, b) {
|
|
|
1717
1717
|
throw new TypeError("Unknown float type: " + a);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function dd(a, b, c) {
|
|
1721
1721
|
switch(b) {
|
|
1722
1722
|
case 0:
|
|
1723
1723
|
return c ? function(d) {
|
|
@@ -1733,7 +1733,7 @@ function cd(a, b, c) {
|
|
|
1733
1733
|
};
|
|
1734
1734
|
case 2:
|
|
1735
1735
|
return c ? function(d) {
|
|
1736
|
-
return
|
|
1736
|
+
return I[d >> 2];
|
|
1737
1737
|
} : function(d) {
|
|
1738
1738
|
return K[d >> 2];
|
|
1739
1739
|
};
|
|
@@ -1741,14 +1741,14 @@ function cd(a, b, c) {
|
|
|
1741
1741
|
throw new TypeError("Unknown integer type: " + a);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
var
|
|
1744
|
+
var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
|
|
1745
1745
|
var c = a >> 1;
|
|
1746
1746
|
for (var d = c + b / 2; !(c >= d) && wa[c];) {
|
|
1747
1747
|
++c;
|
|
1748
1748
|
}
|
|
1749
1749
|
c <<= 1;
|
|
1750
|
-
if (32 < c - a &&
|
|
1751
|
-
return
|
|
1750
|
+
if (32 < c - a && ed) {
|
|
1751
|
+
return ed.decode(F.subarray(a, c));
|
|
1752
1752
|
}
|
|
1753
1753
|
c = "";
|
|
1754
1754
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1759,7 +1759,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1759
1759
|
c += String.fromCharCode(e);
|
|
1760
1760
|
}
|
|
1761
1761
|
return c;
|
|
1762
|
-
},
|
|
1762
|
+
}, gd = (a, b, c) => {
|
|
1763
1763
|
void 0 === c && (c = 2147483647);
|
|
1764
1764
|
if (2 > c) {
|
|
1765
1765
|
return 0;
|
|
@@ -1772,9 +1772,9 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1772
1772
|
}
|
|
1773
1773
|
G[b >> 1] = 0;
|
|
1774
1774
|
return b - d;
|
|
1775
|
-
},
|
|
1775
|
+
}, hd = a => 2 * a.length, jd = (a, b) => {
|
|
1776
1776
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1777
|
-
var e =
|
|
1777
|
+
var e = I[a + 4 * c >> 2];
|
|
1778
1778
|
if (0 == e) {
|
|
1779
1779
|
break;
|
|
1780
1780
|
}
|
|
@@ -1782,7 +1782,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1782
1782
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1783
1783
|
}
|
|
1784
1784
|
return d;
|
|
1785
|
-
},
|
|
1785
|
+
}, kd = (a, b, c) => {
|
|
1786
1786
|
void 0 === c && (c = 2147483647);
|
|
1787
1787
|
if (4 > c) {
|
|
1788
1788
|
return 0;
|
|
@@ -1795,77 +1795,77 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1795
1795
|
var g = a.charCodeAt(++e);
|
|
1796
1796
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1797
1797
|
}
|
|
1798
|
-
|
|
1798
|
+
I[b >> 2] = f;
|
|
1799
1799
|
b += 4;
|
|
1800
1800
|
if (b + 4 > c) {
|
|
1801
1801
|
break;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
|
|
1804
|
+
I[b >> 2] = 0;
|
|
1805
1805
|
return b - d;
|
|
1806
|
-
},
|
|
1806
|
+
}, ld = a => {
|
|
1807
1807
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1808
1808
|
var d = a.charCodeAt(c);
|
|
1809
1809
|
55296 <= d && 57343 >= d && ++c;
|
|
1810
1810
|
b += 4;
|
|
1811
1811
|
}
|
|
1812
1812
|
return b;
|
|
1813
|
-
},
|
|
1814
|
-
function
|
|
1815
|
-
var b =
|
|
1813
|
+
}, md = {};
|
|
1814
|
+
function nd(a) {
|
|
1815
|
+
var b = md[a];
|
|
1816
1816
|
return void 0 === b ? U(a) : b;
|
|
1817
1817
|
}
|
|
1818
|
-
var
|
|
1819
|
-
function
|
|
1820
|
-
var b =
|
|
1821
|
-
|
|
1818
|
+
var od = [];
|
|
1819
|
+
function pd(a) {
|
|
1820
|
+
var b = od.length;
|
|
1821
|
+
od.push(a);
|
|
1822
1822
|
return b;
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function qd(a, b) {
|
|
1825
1825
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1826
1826
|
c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
|
|
1827
1827
|
}
|
|
1828
1828
|
return c;
|
|
1829
1829
|
}
|
|
1830
|
-
var
|
|
1831
|
-
function sd(a) {
|
|
1832
|
-
a.Ac = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1833
|
-
}
|
|
1830
|
+
var rd = [], sd = [];
|
|
1834
1831
|
function td(a) {
|
|
1832
|
+
a.Dc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1833
|
+
}
|
|
1834
|
+
function ud(a) {
|
|
1835
1835
|
a.Ic = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1836
1836
|
}
|
|
1837
|
-
var
|
|
1837
|
+
var vd = 1, wd = [], X = [], xd = [], yd = [], zd = [], Ad = [], Bd = [], w = [], Cd = {};
|
|
1838
1838
|
function Y(a) {
|
|
1839
1839
|
Dd || (Dd = a);
|
|
1840
1840
|
}
|
|
1841
1841
|
function Ed(a) {
|
|
1842
|
-
for (var b =
|
|
1842
|
+
for (var b = vd++, c = a.length; c < b; c++) {
|
|
1843
1843
|
a[c] = null;
|
|
1844
1844
|
}
|
|
1845
1845
|
return b;
|
|
1846
1846
|
}
|
|
1847
1847
|
function ia(a, b) {
|
|
1848
|
-
var c = Ed(w), d = {handle:c, attributes:b, version:b.
|
|
1849
|
-
a.canvas && (a.canvas.
|
|
1848
|
+
var c = Ed(w), d = {handle:c, attributes:b, version:b.Hc, C:a};
|
|
1849
|
+
a.canvas && (a.canvas.Cb = d);
|
|
1850
1850
|
w[c] = d;
|
|
1851
|
-
("undefined" == typeof b.
|
|
1851
|
+
("undefined" == typeof b.Nb || b.Nb) && Fd(d);
|
|
1852
1852
|
return c;
|
|
1853
1853
|
}
|
|
1854
1854
|
function ja(a) {
|
|
1855
|
-
|
|
1856
|
-
k.
|
|
1855
|
+
q = w[a];
|
|
1856
|
+
k.Bc = Z = q && q.C;
|
|
1857
1857
|
return !(a && !Z);
|
|
1858
1858
|
}
|
|
1859
1859
|
function Fd(a) {
|
|
1860
|
-
a || (a =
|
|
1861
|
-
if (!a.
|
|
1862
|
-
a.
|
|
1860
|
+
a || (a = q);
|
|
1861
|
+
if (!a.Yb) {
|
|
1862
|
+
a.Yb = !0;
|
|
1863
1863
|
var b = a.C;
|
|
1864
|
-
sd(b);
|
|
1865
1864
|
td(b);
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1865
|
+
ud(b);
|
|
1866
|
+
2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1867
|
+
if (2 > a.version || !b.eb) {
|
|
1868
|
+
b.eb = b.getExtension("EXT_disjoint_timer_query");
|
|
1869
1869
|
}
|
|
1870
1870
|
Gd(b);
|
|
1871
1871
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
@@ -1873,7 +1873,7 @@ function Fd(a) {
|
|
|
1873
1873
|
});
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
|
-
var Dd,
|
|
1876
|
+
var Dd, q;
|
|
1877
1877
|
function Gd(a) {
|
|
1878
1878
|
a.Kc = a.getExtension("WEBGL_multi_draw");
|
|
1879
1879
|
}
|
|
@@ -1895,7 +1895,7 @@ function Ld(a, b, c, d) {
|
|
|
1895
1895
|
for (var e = 0; e < a; e++) {
|
|
1896
1896
|
var f = Z[c](), g = f && Ed(d);
|
|
1897
1897
|
f ? (f.name = g, d[g] = f) : Y(1282);
|
|
1898
|
-
|
|
1898
|
+
I[b + 4 * e >> 2] = g;
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
function Md(a, b) {
|
|
@@ -1916,7 +1916,7 @@ function Md(a, b) {
|
|
|
1916
1916
|
c = d ? d.length : 0;
|
|
1917
1917
|
break;
|
|
1918
1918
|
case 33309:
|
|
1919
|
-
if (2 >
|
|
1919
|
+
if (2 > q.version) {
|
|
1920
1920
|
Y(1282);
|
|
1921
1921
|
return;
|
|
1922
1922
|
}
|
|
@@ -1924,7 +1924,7 @@ function Md(a, b) {
|
|
|
1924
1924
|
break;
|
|
1925
1925
|
case 33307:
|
|
1926
1926
|
case 33308:
|
|
1927
|
-
if (2 >
|
|
1927
|
+
if (2 > q.version) {
|
|
1928
1928
|
Y(1280);
|
|
1929
1929
|
return;
|
|
1930
1930
|
}
|
|
@@ -1972,7 +1972,7 @@ function Md(a, b) {
|
|
|
1972
1972
|
} else {
|
|
1973
1973
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1974
1974
|
for (a = 0; a < d.length; ++a) {
|
|
1975
|
-
|
|
1975
|
+
I[b + 4 * a >> 2] = d[a];
|
|
1976
1976
|
}
|
|
1977
1977
|
return;
|
|
1978
1978
|
}
|
|
@@ -1991,7 +1991,7 @@ function Md(a, b) {
|
|
|
1991
1991
|
return;
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
|
|
1994
|
+
I[b >> 2] = c;
|
|
1995
1995
|
} else {
|
|
1996
1996
|
Y(1281);
|
|
1997
1997
|
}
|
|
@@ -2004,22 +2004,26 @@ var Od = a => {
|
|
|
2004
2004
|
function Pd(a) {
|
|
2005
2005
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
2006
2006
|
}
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2007
|
+
function Qd(a) {
|
|
2008
|
+
a -= 5120;
|
|
2009
|
+
return 0 == a ? D : 1 == a ? F : 2 == a ? G : 4 == a ? I : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : wa;
|
|
2010
|
+
}
|
|
2011
|
+
var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Td = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ud = (a, b, c, d) => {
|
|
2012
|
+
function e(n, r, u) {
|
|
2013
|
+
for (n = "number" == typeof n ? n.toString() : n || ""; n.length < r;) {
|
|
2010
2014
|
n = u[0] + n;
|
|
2011
2015
|
}
|
|
2012
2016
|
return n;
|
|
2013
2017
|
}
|
|
2014
|
-
function f(n,
|
|
2015
|
-
return e(n,
|
|
2018
|
+
function f(n, r) {
|
|
2019
|
+
return e(n, r, "0");
|
|
2016
2020
|
}
|
|
2017
|
-
function g(n,
|
|
2021
|
+
function g(n, r) {
|
|
2018
2022
|
function u(z) {
|
|
2019
2023
|
return 0 > z ? -1 : 0 < z ? 1 : 0;
|
|
2020
2024
|
}
|
|
2021
2025
|
var y;
|
|
2022
|
-
0 === (y = u(n.getFullYear() -
|
|
2026
|
+
0 === (y = u(n.getFullYear() - r.getFullYear())) && 0 === (y = u(n.getMonth() - r.getMonth())) && (y = u(n.getDate() - r.getDate()));
|
|
2023
2027
|
return y;
|
|
2024
2028
|
}
|
|
2025
2029
|
function l(n) {
|
|
@@ -2041,54 +2045,54 @@ var Qd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Rd = [31, 29, 31,
|
|
|
2041
2045
|
}
|
|
2042
2046
|
}
|
|
2043
2047
|
function p(n) {
|
|
2044
|
-
var
|
|
2045
|
-
for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 <
|
|
2046
|
-
var u = n.getMonth(), y = (
|
|
2047
|
-
if (
|
|
2048
|
-
|
|
2048
|
+
var r = n.da;
|
|
2049
|
+
for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2050
|
+
var u = n.getMonth(), y = (Rd(n.getFullYear()) ? Sd : Td)[u];
|
|
2051
|
+
if (r > y - n.getDate()) {
|
|
2052
|
+
r -= y - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
|
|
2049
2053
|
} else {
|
|
2050
|
-
n.setDate(n.getDate() +
|
|
2054
|
+
n.setDate(n.getDate() + r);
|
|
2051
2055
|
break;
|
|
2052
2056
|
}
|
|
2053
2057
|
}
|
|
2054
2058
|
u = new Date(n.getFullYear() + 1, 0, 4);
|
|
2055
|
-
|
|
2059
|
+
r = l(new Date(n.getFullYear(), 0, 4));
|
|
2056
2060
|
u = l(u);
|
|
2057
|
-
return 0 >= g(
|
|
2061
|
+
return 0 >= g(r, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
|
|
2058
2062
|
}
|
|
2059
|
-
var m =
|
|
2060
|
-
d = {
|
|
2063
|
+
var m = I[d + 40 >> 2];
|
|
2064
|
+
d = {pc:I[d >> 2], oc:I[d + 4 >> 2], Ja:I[d + 8 >> 2], Xa:I[d + 12 >> 2], Ka:I[d + 16 >> 2], ea:I[d + 20 >> 2], R:I[d + 24 >> 2], da:I[d + 28 >> 2], Pc:I[d + 32 >> 2], nc:I[d + 36 >> 2], qc:m ? m ? M(F, m) : "" : ""};
|
|
2061
2065
|
c = c ? M(F, c) : "";
|
|
2062
2066
|
m = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2063
2067
|
for (var t in m) {
|
|
2064
2068
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2065
2069
|
}
|
|
2066
2070
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2067
|
-
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.
|
|
2068
|
-
n = n.
|
|
2071
|
+
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ka].substring(0, 3), "%B":n => x[n.Ka], "%C":n => f((n.ea + 1900) / 100 | 0, 2), "%d":n => f(n.Xa, 2), "%e":n => e(n.Xa, 2, " "), "%g":n => p(n).toString().substring(2), "%G":n => p(n), "%H":n => f(n.Ja, 2), "%I":n => {
|
|
2072
|
+
n = n.Ja;
|
|
2069
2073
|
0 == n ? n = 12 : 12 < n && (n -= 12);
|
|
2070
2074
|
return f(n, 2);
|
|
2071
2075
|
}, "%j":n => {
|
|
2072
|
-
for (var
|
|
2073
|
-
}
|
|
2074
|
-
return f(n.
|
|
2075
|
-
}, "%m":n => f(n.
|
|
2076
|
-
var
|
|
2077
|
-
2 >= (n.R + 371 - n.da - 2) % 7 &&
|
|
2078
|
-
if (
|
|
2079
|
-
53 ==
|
|
2076
|
+
for (var r = 0, u = 0; u <= n.Ka - 1; r += (Rd(n.ea + 1900) ? Sd : Td)[u++]) {
|
|
2077
|
+
}
|
|
2078
|
+
return f(n.Xa + r, 3);
|
|
2079
|
+
}, "%m":n => f(n.Ka + 1, 2), "%M":n => f(n.oc, 2), "%n":() => "\n", "%p":n => 0 <= n.Ja && 12 > n.Ja ? "AM" : "PM", "%S":n => f(n.pc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.da + 7 - n.R) / 7), 2), "%V":n => {
|
|
2080
|
+
var r = Math.floor((n.da + 7 - (n.R + 6) % 7) / 7);
|
|
2081
|
+
2 >= (n.R + 371 - n.da - 2) % 7 && r++;
|
|
2082
|
+
if (r) {
|
|
2083
|
+
53 == r && (u = (n.R + 371 - n.da) % 7, 4 == u || 3 == u && Rd(n.ea) || (r = 1));
|
|
2080
2084
|
} else {
|
|
2081
|
-
|
|
2085
|
+
r = 52;
|
|
2082
2086
|
var u = (n.R + 7 - n.da - 1) % 7;
|
|
2083
|
-
(4 == u || 5 == u &&
|
|
2087
|
+
(4 == u || 5 == u && Rd(n.ea % 400 - 1)) && r++;
|
|
2084
2088
|
}
|
|
2085
|
-
return f(
|
|
2089
|
+
return f(r, 2);
|
|
2086
2090
|
}, "%w":n => n.R, "%W":n => f(Math.floor((n.da + 7 - (n.R + 6) % 7) / 7), 2), "%y":n => (n.ea + 1900).toString().substring(2), "%Y":n => n.ea + 1900, "%z":n => {
|
|
2087
|
-
n = n.
|
|
2088
|
-
var
|
|
2091
|
+
n = n.nc;
|
|
2092
|
+
var r = 0 <= n;
|
|
2089
2093
|
n = Math.abs(n) / 60;
|
|
2090
|
-
return (
|
|
2091
|
-
}, "%Z":n => n.
|
|
2094
|
+
return (r ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
|
|
2095
|
+
}, "%Z":n => n.qc, "%%":() => "%"};
|
|
2092
2096
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2093
2097
|
for (t in m) {
|
|
2094
2098
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
@@ -2105,13 +2109,13 @@ function Fb(a, b, c, d) {
|
|
|
2105
2109
|
a || (a = this);
|
|
2106
2110
|
this.parent = a;
|
|
2107
2111
|
this.U = a.U;
|
|
2108
|
-
this.
|
|
2112
|
+
this.Da = null;
|
|
2109
2113
|
this.id = xb++;
|
|
2110
2114
|
this.name = b;
|
|
2111
2115
|
this.mode = c;
|
|
2112
2116
|
this.l = {};
|
|
2113
2117
|
this.m = {};
|
|
2114
|
-
this.
|
|
2118
|
+
this.Fa = d;
|
|
2115
2119
|
}
|
|
2116
2120
|
Object.defineProperties(Fb.prototype, {read:{get:function() {
|
|
2117
2121
|
return 365 === (this.mode & 365);
|
|
@@ -2153,7 +2157,7 @@ P("/home/web_user", 16895, 0);
|
|
|
2153
2157
|
var b = pb(a, "fd", 16895, 73);
|
|
2154
2158
|
b.l = {ma:(c, d) => {
|
|
2155
2159
|
var e = Jb(+d);
|
|
2156
|
-
c = {parent:null, U:{
|
|
2160
|
+
c = {parent:null, U:{mb:"fake"}, l:{na:() => e.path},};
|
|
2157
2161
|
return c.parent = c;
|
|
2158
2162
|
}};
|
|
2159
2163
|
return b;
|
|
@@ -2164,12 +2168,12 @@ Object.assign(ac.prototype, {get(a) {
|
|
|
2164
2168
|
}, has(a) {
|
|
2165
2169
|
return void 0 !== this.M[a];
|
|
2166
2170
|
}, ta(a) {
|
|
2167
|
-
var b = this.
|
|
2171
|
+
var b = this.ib.pop() || this.M.length;
|
|
2168
2172
|
this.M[b] = a;
|
|
2169
2173
|
return b;
|
|
2170
|
-
},
|
|
2174
|
+
}, Wb(a) {
|
|
2171
2175
|
this.M[a] = void 0;
|
|
2172
|
-
this.
|
|
2176
|
+
this.ib.push(a);
|
|
2173
2177
|
}});
|
|
2174
2178
|
bc = k.BindingError = class extends Error {
|
|
2175
2179
|
constructor(a) {
|
|
@@ -2186,10 +2190,10 @@ k.count_emval_handles = function() {
|
|
|
2186
2190
|
return a;
|
|
2187
2191
|
};
|
|
2188
2192
|
dc = k.PureVirtualError = cc("PureVirtualError");
|
|
2189
|
-
for (var
|
|
2190
|
-
|
|
2193
|
+
for (var Vd = Array(256), Wd = 0; 256 > Wd; ++Wd) {
|
|
2194
|
+
Vd[Wd] = String.fromCharCode(Wd);
|
|
2191
2195
|
}
|
|
2192
|
-
ec =
|
|
2196
|
+
ec = Vd;
|
|
2193
2197
|
k.getInheritedInstanceCount = function() {
|
|
2194
2198
|
return Object.keys(ic).length;
|
|
2195
2199
|
};
|
|
@@ -2211,8 +2215,8 @@ vc = k.InternalError = class extends Error {
|
|
|
2211
2215
|
this.name = "InternalError";
|
|
2212
2216
|
}
|
|
2213
2217
|
};
|
|
2214
|
-
|
|
2215
|
-
if (!(this instanceof
|
|
2218
|
+
Ic.prototype.isAliasOf = function(a) {
|
|
2219
|
+
if (!(this instanceof Ic && a instanceof Ic)) {
|
|
2216
2220
|
return !1;
|
|
2217
2221
|
}
|
|
2218
2222
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2224,8 +2228,8 @@ Hc.prototype.isAliasOf = function(a) {
|
|
|
2224
2228
|
}
|
|
2225
2229
|
return b === d && c === a;
|
|
2226
2230
|
};
|
|
2227
|
-
|
|
2228
|
-
this.g.o ||
|
|
2231
|
+
Ic.prototype.clone = function() {
|
|
2232
|
+
this.g.o || Hc(this);
|
|
2229
2233
|
if (this.g.ka) {
|
|
2230
2234
|
return this.g.count.value += 1, this;
|
|
2231
2235
|
}
|
|
@@ -2235,45 +2239,45 @@ Hc.prototype.clone = function() {
|
|
|
2235
2239
|
a.g.ia = !1;
|
|
2236
2240
|
return a;
|
|
2237
2241
|
};
|
|
2238
|
-
|
|
2239
|
-
this.g.o ||
|
|
2242
|
+
Ic.prototype["delete"] = function() {
|
|
2243
|
+
this.g.o || Hc(this);
|
|
2240
2244
|
this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
|
|
2241
2245
|
pc(this);
|
|
2242
2246
|
rc(this.g);
|
|
2243
2247
|
this.g.ka || (this.g.H = void 0, this.g.o = void 0);
|
|
2244
2248
|
};
|
|
2245
|
-
|
|
2249
|
+
Ic.prototype.isDeleted = function() {
|
|
2246
2250
|
return !this.g.o;
|
|
2247
2251
|
};
|
|
2248
|
-
|
|
2249
|
-
this.g.o ||
|
|
2252
|
+
Ic.prototype.deleteLater = function() {
|
|
2253
|
+
this.g.o || Hc(this);
|
|
2250
2254
|
this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
|
|
2251
2255
|
fc.push(this);
|
|
2252
2256
|
1 === fc.length && hc && hc(gc);
|
|
2253
2257
|
this.g.ia = !0;
|
|
2254
2258
|
return this;
|
|
2255
2259
|
};
|
|
2256
|
-
|
|
2257
|
-
this.
|
|
2260
|
+
Rc.prototype.Sb = function(a) {
|
|
2261
|
+
this.sb && (a = this.sb(a));
|
|
2258
2262
|
return a;
|
|
2259
2263
|
};
|
|
2260
|
-
|
|
2264
|
+
Rc.prototype.cb = function(a) {
|
|
2261
2265
|
this.W && this.W(a);
|
|
2262
2266
|
};
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2267
|
+
Rc.prototype.argPackAdvance = 8;
|
|
2268
|
+
Rc.prototype.readValueFromPointer = Bc;
|
|
2269
|
+
Rc.prototype.deleteObject = function(a) {
|
|
2266
2270
|
if (null !== a) {
|
|
2267
2271
|
a["delete"]();
|
|
2268
2272
|
}
|
|
2269
2273
|
};
|
|
2270
|
-
|
|
2274
|
+
Rc.prototype.fromWireType = function(a) {
|
|
2271
2275
|
function b() {
|
|
2272
|
-
return this.ya ? xc(this.i.N, {u:this.
|
|
2276
|
+
return this.ya ? xc(this.i.N, {u:this.fc, o:c, L:this, H:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2273
2277
|
}
|
|
2274
|
-
var c = this.
|
|
2278
|
+
var c = this.Sb(a);
|
|
2275
2279
|
if (!c) {
|
|
2276
|
-
return this
|
|
2280
|
+
return this.cb(a), null;
|
|
2277
2281
|
}
|
|
2278
2282
|
var d = uc(this.i, c);
|
|
2279
2283
|
if (void 0 !== d) {
|
|
@@ -2281,23 +2285,23 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2281
2285
|
return d.g.o = c, d.g.H = a, d.clone();
|
|
2282
2286
|
}
|
|
2283
2287
|
d = d.clone();
|
|
2284
|
-
this
|
|
2288
|
+
this.cb(a);
|
|
2285
2289
|
return d;
|
|
2286
2290
|
}
|
|
2287
|
-
d = this.i.
|
|
2291
|
+
d = this.i.Rb(c);
|
|
2288
2292
|
d = tc[d];
|
|
2289
2293
|
if (!d) {
|
|
2290
2294
|
return b.call(this);
|
|
2291
2295
|
}
|
|
2292
|
-
d = this.xa ? d.
|
|
2296
|
+
d = this.xa ? d.Jb : d.pointerType;
|
|
2293
2297
|
var e = sc(c, this.i, d.i);
|
|
2294
2298
|
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, H:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2295
2299
|
};
|
|
2296
|
-
|
|
2297
|
-
for (var Z,
|
|
2298
|
-
Kd.push(Array(
|
|
2300
|
+
Wc = k.UnboundTypeError = cc("UnboundTypeError");
|
|
2301
|
+
for (var Z, Xd = 0; 32 > Xd; ++Xd) {
|
|
2302
|
+
Kd.push(Array(Xd));
|
|
2299
2303
|
}
|
|
2300
|
-
var
|
|
2304
|
+
var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
2301
2305
|
Xb = c;
|
|
2302
2306
|
try {
|
|
2303
2307
|
var d = Jb(a);
|
|
@@ -2321,7 +2325,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2321
2325
|
case 8:
|
|
2322
2326
|
return -28;
|
|
2323
2327
|
case 9:
|
|
2324
|
-
return
|
|
2328
|
+
return I[Yd() >> 2] = 28, -1;
|
|
2325
2329
|
default:
|
|
2326
2330
|
return -28;
|
|
2327
2331
|
}
|
|
@@ -2342,13 +2346,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2342
2346
|
if (!d.s) {
|
|
2343
2347
|
return -59;
|
|
2344
2348
|
}
|
|
2345
|
-
if (d.s.V
|
|
2349
|
+
if (d.s.V.$b) {
|
|
2346
2350
|
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,];
|
|
2347
2351
|
var e = Yb();
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
+
I[e >> 2] = 25856;
|
|
2353
|
+
I[e + 4 >> 2] = 5;
|
|
2354
|
+
I[e + 8 >> 2] = 191;
|
|
2355
|
+
I[e + 12 >> 2] = 35387;
|
|
2352
2356
|
for (var f = 0; 32 > f; f++) {
|
|
2353
2357
|
D[e + f + 17 >> 0] = b[f] || 0;
|
|
2354
2358
|
}
|
|
@@ -2364,7 +2368,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2364
2368
|
if (!d.s) {
|
|
2365
2369
|
return -59;
|
|
2366
2370
|
}
|
|
2367
|
-
if (d.s.V.
|
|
2371
|
+
if (d.s.V.ac) {
|
|
2368
2372
|
for (e = Yb(), b = [], f = 0; 32 > f; f++) {
|
|
2369
2373
|
b.push(D[e + f + 17 >> 0]);
|
|
2370
2374
|
}
|
|
@@ -2375,20 +2379,20 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2375
2379
|
return -59;
|
|
2376
2380
|
}
|
|
2377
2381
|
e = Yb();
|
|
2378
|
-
return
|
|
2382
|
+
return I[e >> 2] = 0;
|
|
2379
2383
|
case 21520:
|
|
2380
2384
|
return d.s ? -28 : -59;
|
|
2381
2385
|
case 21531:
|
|
2382
2386
|
e = Yb();
|
|
2383
|
-
if (!d.m.
|
|
2387
|
+
if (!d.m.Zb) {
|
|
2384
2388
|
throw new N(59);
|
|
2385
2389
|
}
|
|
2386
|
-
return d.m.
|
|
2390
|
+
return d.m.Zb(d, b, e);
|
|
2387
2391
|
case 21523:
|
|
2388
2392
|
if (!d.s) {
|
|
2389
2393
|
return -59;
|
|
2390
2394
|
}
|
|
2391
|
-
d.s.V.
|
|
2395
|
+
d.s.V.bc && (f = [24, 80], e = Yb(), G[e >> 1] = f[0], G[e + 2 >> 1] = f[1]);
|
|
2392
2396
|
return 0;
|
|
2393
2397
|
case 21524:
|
|
2394
2398
|
return d.s ? 0 : -59;
|
|
@@ -2431,7 +2435,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2431
2435
|
c = S(c);
|
|
2432
2436
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, l = e.A.constructor;
|
|
2433
2437
|
a = $b(a, function() {
|
|
2434
|
-
e.A.
|
|
2438
|
+
e.A.qb.forEach(function(m) {
|
|
2435
2439
|
if (this[m] === g[m]) {
|
|
2436
2440
|
throw new dc(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2437
2441
|
}
|
|
@@ -2467,15 +2471,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2467
2471
|
}, _embind_finalize_value_object:function(a) {
|
|
2468
2472
|
var b = zc[a];
|
|
2469
2473
|
delete zc[a];
|
|
2470
|
-
var c = b.
|
|
2474
|
+
var c = b.Va, d = b.W, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.kc));
|
|
2471
2475
|
V([a], f, g => {
|
|
2472
2476
|
var l = {};
|
|
2473
2477
|
e.forEach((p, m) => {
|
|
2474
|
-
var t = g[m], v = p.
|
|
2475
|
-
l[p.
|
|
2476
|
-
var
|
|
2477
|
-
|
|
2478
|
-
Ac(
|
|
2478
|
+
var t = g[m], v = p.Tb, x = p.Ub, n = g[m + e.length], r = p.jc, u = p.lc;
|
|
2479
|
+
l[p.Pb] = {read:y => t.fromWireType(v(x, y)), write:(y, z) => {
|
|
2480
|
+
var B = [];
|
|
2481
|
+
r(u, y, n.toWireType(B, z));
|
|
2482
|
+
Ac(B);
|
|
2479
2483
|
}};
|
|
2480
2484
|
});
|
|
2481
2485
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2501,9 +2505,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2501
2505
|
});
|
|
2502
2506
|
}, _embind_register_bigint:function() {
|
|
2503
2507
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2504
|
-
var f =
|
|
2508
|
+
var f = Fc(c);
|
|
2505
2509
|
b = U(b);
|
|
2506
|
-
|
|
2510
|
+
Ec(a, {name:b, fromWireType:function(g) {
|
|
2507
2511
|
return !!g;
|
|
2508
2512
|
}, toWireType:function(g, l) {
|
|
2509
2513
|
return l ? d : e;
|
|
@@ -2513,7 +2517,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2513
2517
|
} else if (2 === c) {
|
|
2514
2518
|
l = G;
|
|
2515
2519
|
} else if (4 === c) {
|
|
2516
|
-
l =
|
|
2520
|
+
l = I;
|
|
2517
2521
|
} else {
|
|
2518
2522
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2519
2523
|
}
|
|
@@ -2521,61 +2525,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2521
2525
|
}, K:null,});
|
|
2522
2526
|
}, _embind_register_class:function(a, b, c, d, e, f, g, l, p, m, t, v, x) {
|
|
2523
2527
|
t = U(t);
|
|
2524
|
-
f =
|
|
2525
|
-
l && (l =
|
|
2526
|
-
m && (m =
|
|
2527
|
-
x =
|
|
2528
|
+
f = W(e, f);
|
|
2529
|
+
l && (l = W(g, l));
|
|
2530
|
+
m && (m = W(p, m));
|
|
2531
|
+
x = W(v, x);
|
|
2528
2532
|
var n = Zb(t);
|
|
2529
|
-
|
|
2530
|
-
|
|
2533
|
+
Kc(n, function() {
|
|
2534
|
+
Xc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2531
2535
|
});
|
|
2532
|
-
V([a, b, c], d ? [d] : [], function(
|
|
2533
|
-
|
|
2536
|
+
V([a, b, c], d ? [d] : [], function(r) {
|
|
2537
|
+
r = r[0];
|
|
2534
2538
|
if (d) {
|
|
2535
|
-
var u =
|
|
2539
|
+
var u = r.i;
|
|
2536
2540
|
var y = u.N;
|
|
2537
2541
|
} else {
|
|
2538
|
-
y =
|
|
2542
|
+
y = Ic.prototype;
|
|
2539
2543
|
}
|
|
2540
|
-
|
|
2544
|
+
r = $b(n, function() {
|
|
2541
2545
|
if (Object.getPrototypeOf(this) !== z) {
|
|
2542
2546
|
throw new bc("Use 'new' to construct " + t);
|
|
2543
2547
|
}
|
|
2544
|
-
if (void 0 ===
|
|
2548
|
+
if (void 0 === B.$) {
|
|
2545
2549
|
throw new bc(t + " has no accessible constructor");
|
|
2546
2550
|
}
|
|
2547
|
-
var
|
|
2548
|
-
if (void 0 ===
|
|
2549
|
-
throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(
|
|
2551
|
+
var J = B.$[arguments.length];
|
|
2552
|
+
if (void 0 === J) {
|
|
2553
|
+
throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(B.$).toString()}) parameters instead!`);
|
|
2550
2554
|
}
|
|
2551
|
-
return
|
|
2555
|
+
return J.apply(this, arguments);
|
|
2552
2556
|
});
|
|
2553
|
-
var z = Object.create(y, {constructor:{value:
|
|
2554
|
-
|
|
2555
|
-
var
|
|
2556
|
-
|
|
2557
|
-
u = new
|
|
2558
|
-
y = new
|
|
2559
|
-
var H = new
|
|
2560
|
-
tc[a] = {pointerType:y,
|
|
2561
|
-
|
|
2557
|
+
var z = Object.create(y, {constructor:{value:r},});
|
|
2558
|
+
r.prototype = z;
|
|
2559
|
+
var B = new Lc(t, r, z, x, u, f, l, m);
|
|
2560
|
+
B.A && (void 0 === B.A.qa && (B.A.qa = []), B.A.qa.push(B));
|
|
2561
|
+
u = new Rc(t, B, !0, !1);
|
|
2562
|
+
y = new Rc(t + "*", B, !1, !1);
|
|
2563
|
+
var H = new Rc(t + " const*", B, !1, !0);
|
|
2564
|
+
tc[a] = {pointerType:y, Jb:H};
|
|
2565
|
+
Sc(n, r);
|
|
2562
2566
|
return [u, y, H];
|
|
2563
2567
|
});
|
|
2564
2568
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2565
|
-
var l =
|
|
2569
|
+
var l = Zc(c, d);
|
|
2566
2570
|
b = U(b);
|
|
2567
|
-
f =
|
|
2571
|
+
f = W(e, f);
|
|
2568
2572
|
V([], [a], function(p) {
|
|
2569
2573
|
function m() {
|
|
2570
|
-
|
|
2574
|
+
Xc(`Cannot call ${t} due to unbound types`, l);
|
|
2571
2575
|
}
|
|
2572
2576
|
p = p[0];
|
|
2573
2577
|
var t = `${p.name}.${b}`;
|
|
2574
2578
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2575
2579
|
var v = p.i.constructor;
|
|
2576
|
-
void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (
|
|
2580
|
+
void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (Jc(v, b, t), v[b].B[c - 1] = m);
|
|
2577
2581
|
V([], l, function(x) {
|
|
2578
|
-
x =
|
|
2582
|
+
x = Yc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2579
2583
|
void 0 === v[b].B ? (x.ha = c - 1, v[b] = x) : v[b].B[c - 1] = x;
|
|
2580
2584
|
if (p.i.qa) {
|
|
2581
2585
|
for (const n of p.i.qa) {
|
|
@@ -2588,14 +2592,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2588
2592
|
});
|
|
2589
2593
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, l) {
|
|
2590
2594
|
b = U(b);
|
|
2591
|
-
f =
|
|
2595
|
+
f = W(e, f);
|
|
2592
2596
|
V([], [a], function(p) {
|
|
2593
2597
|
p = p[0];
|
|
2594
2598
|
var m = `${p.name}.${b}`, t = {get() {
|
|
2595
|
-
|
|
2599
|
+
Xc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2596
2600
|
}, enumerable:!0, configurable:!0};
|
|
2597
2601
|
t.set = l ? () => {
|
|
2598
|
-
|
|
2602
|
+
Xc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2599
2603
|
} : () => {
|
|
2600
2604
|
R(`${m} is a read-only property`);
|
|
2601
2605
|
};
|
|
@@ -2605,10 +2609,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2605
2609
|
var x = {get() {
|
|
2606
2610
|
return v.fromWireType(f(d));
|
|
2607
2611
|
}, enumerable:!0};
|
|
2608
|
-
l && (l =
|
|
2609
|
-
var
|
|
2610
|
-
l(d, v.toWireType(
|
|
2611
|
-
Ac(
|
|
2612
|
+
l && (l = W(g, l), x.set = n => {
|
|
2613
|
+
var r = [];
|
|
2614
|
+
l(d, v.toWireType(r, n));
|
|
2615
|
+
Ac(r);
|
|
2612
2616
|
});
|
|
2613
2617
|
Object.defineProperty(p.i.constructor, b, x);
|
|
2614
2618
|
return [];
|
|
@@ -2616,8 +2620,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2616
2620
|
return [];
|
|
2617
2621
|
});
|
|
2618
2622
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2619
|
-
var g =
|
|
2620
|
-
e =
|
|
2623
|
+
var g = Zc(b, c);
|
|
2624
|
+
e = W(d, e);
|
|
2621
2625
|
V([], [a], function(l) {
|
|
2622
2626
|
l = l[0];
|
|
2623
2627
|
var p = `constructor ${l.name}`;
|
|
@@ -2626,61 +2630,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2626
2630
|
throw new bc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2627
2631
|
}
|
|
2628
2632
|
l.i.$[b - 1] = () => {
|
|
2629
|
-
|
|
2633
|
+
Xc(`Cannot construct ${l.name} due to unbound types`, g);
|
|
2630
2634
|
};
|
|
2631
2635
|
V([], g, function(m) {
|
|
2632
2636
|
m.splice(1, 0, null);
|
|
2633
|
-
l.i.$[b - 1] =
|
|
2637
|
+
l.i.$[b - 1] = Yc(p, m, null, e, f);
|
|
2634
2638
|
return [];
|
|
2635
2639
|
});
|
|
2636
2640
|
return [];
|
|
2637
2641
|
});
|
|
2638
2642
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, l) {
|
|
2639
|
-
var p =
|
|
2643
|
+
var p = Zc(c, d);
|
|
2640
2644
|
b = U(b);
|
|
2641
|
-
f =
|
|
2645
|
+
f = W(e, f);
|
|
2642
2646
|
V([], [a], function(m) {
|
|
2643
2647
|
function t() {
|
|
2644
|
-
|
|
2648
|
+
Xc(`Cannot call ${v} due to unbound types`, p);
|
|
2645
2649
|
}
|
|
2646
2650
|
m = m[0];
|
|
2647
2651
|
var v = `${m.name}.${b}`;
|
|
2648
2652
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2649
|
-
l && m.i.
|
|
2653
|
+
l && m.i.qb.push(b);
|
|
2650
2654
|
var x = m.i.N, n = x[b];
|
|
2651
|
-
void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (
|
|
2652
|
-
V([], p, function(
|
|
2653
|
-
|
|
2654
|
-
void 0 === x[b].B ? (
|
|
2655
|
+
void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (Jc(x, b, v), x[b].B[c - 2] = t);
|
|
2656
|
+
V([], p, function(r) {
|
|
2657
|
+
r = Yc(v, r, m, f, g);
|
|
2658
|
+
void 0 === x[b].B ? (r.ha = c - 2, x[b] = r) : x[b].B[c - 2] = r;
|
|
2655
2659
|
return [];
|
|
2656
2660
|
});
|
|
2657
2661
|
return [];
|
|
2658
2662
|
});
|
|
2659
2663
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2660
2664
|
b = U(b);
|
|
2661
|
-
e =
|
|
2665
|
+
e = W(d, e);
|
|
2662
2666
|
V([], [a], function(t) {
|
|
2663
2667
|
t = t[0];
|
|
2664
2668
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2665
|
-
|
|
2669
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2666
2670
|
}, enumerable:!0, configurable:!0};
|
|
2667
2671
|
x.set = p ? () => {
|
|
2668
|
-
|
|
2672
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2669
2673
|
} : () => {
|
|
2670
2674
|
R(v + " is a read-only property");
|
|
2671
2675
|
};
|
|
2672
2676
|
Object.defineProperty(t.i.N, b, x);
|
|
2673
2677
|
V([], p ? [c, g] : [c], function(n) {
|
|
2674
|
-
var
|
|
2675
|
-
var z =
|
|
2676
|
-
return
|
|
2678
|
+
var r = n[0], u = {get() {
|
|
2679
|
+
var z = $c(this, t, v + " getter");
|
|
2680
|
+
return r.fromWireType(e(f, z));
|
|
2677
2681
|
}, enumerable:!0};
|
|
2678
2682
|
if (p) {
|
|
2679
|
-
p =
|
|
2683
|
+
p = W(l, p);
|
|
2680
2684
|
var y = n[1];
|
|
2681
2685
|
u.set = function(z) {
|
|
2682
|
-
var
|
|
2683
|
-
p(m,
|
|
2686
|
+
var B = $c(this, t, v + " setter"), H = [];
|
|
2687
|
+
p(m, B, y.toWireType(H, z));
|
|
2684
2688
|
Ac(H);
|
|
2685
2689
|
};
|
|
2686
2690
|
}
|
|
@@ -2691,9 +2695,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2691
2695
|
});
|
|
2692
2696
|
}, _embind_register_emval:function(a, b) {
|
|
2693
2697
|
b = U(b);
|
|
2694
|
-
|
|
2698
|
+
Ec(a, {name:b, fromWireType:function(c) {
|
|
2695
2699
|
var d = S(c);
|
|
2696
|
-
|
|
2700
|
+
ad(c);
|
|
2697
2701
|
return d;
|
|
2698
2702
|
}, toWireType:function(c, d) {
|
|
2699
2703
|
return T(d);
|
|
@@ -2701,15 +2705,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2701
2705
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2702
2706
|
function e() {
|
|
2703
2707
|
}
|
|
2704
|
-
c =
|
|
2708
|
+
c = Fc(c);
|
|
2705
2709
|
b = U(b);
|
|
2706
2710
|
e.values = {};
|
|
2707
|
-
|
|
2711
|
+
Ec(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2708
2712
|
return this.constructor.values[f];
|
|
2709
2713
|
}, toWireType:function(f, g) {
|
|
2710
2714
|
return g.value;
|
|
2711
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2712
|
-
|
|
2715
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c, d), K:null,});
|
|
2716
|
+
Kc(b, e);
|
|
2713
2717
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2714
2718
|
var d = oc(a, "enum");
|
|
2715
2719
|
b = U(b);
|
|
@@ -2719,28 +2723,28 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2719
2723
|
a.values[c] = d;
|
|
2720
2724
|
a[b] = d;
|
|
2721
2725
|
}, _embind_register_float:function(a, b, c) {
|
|
2722
|
-
c =
|
|
2726
|
+
c = Fc(c);
|
|
2723
2727
|
b = U(b);
|
|
2724
|
-
|
|
2728
|
+
Ec(a, {name:b, fromWireType:function(d) {
|
|
2725
2729
|
return d;
|
|
2726
2730
|
}, toWireType:function(d, e) {
|
|
2727
2731
|
return e;
|
|
2728
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2732
|
+
}, argPackAdvance:8, readValueFromPointer:cd(b, c), K:null,});
|
|
2729
2733
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2730
|
-
var g =
|
|
2734
|
+
var g = Zc(b, c);
|
|
2731
2735
|
a = U(a);
|
|
2732
|
-
e =
|
|
2733
|
-
|
|
2734
|
-
|
|
2736
|
+
e = W(d, e);
|
|
2737
|
+
Kc(a, function() {
|
|
2738
|
+
Xc(`Cannot call ${a} due to unbound types`, g);
|
|
2735
2739
|
}, b - 1);
|
|
2736
2740
|
V([], g, function(l) {
|
|
2737
|
-
|
|
2741
|
+
Sc(a, Yc(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
|
|
2738
2742
|
return [];
|
|
2739
2743
|
});
|
|
2740
2744
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2741
2745
|
b = U(b);
|
|
2742
2746
|
-1 === e && (e = 4294967295);
|
|
2743
|
-
e =
|
|
2747
|
+
e = Fc(c);
|
|
2744
2748
|
var f = l => l;
|
|
2745
2749
|
if (0 === d) {
|
|
2746
2750
|
var g = 32 - 8 * c;
|
|
@@ -2751,7 +2755,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2751
2755
|
} : function(l, p) {
|
|
2752
2756
|
return p;
|
|
2753
2757
|
};
|
|
2754
|
-
|
|
2758
|
+
Ec(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), K:null,});
|
|
2755
2759
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2756
2760
|
function d(f) {
|
|
2757
2761
|
f >>= 2;
|
|
@@ -2760,11 +2764,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2760
2764
|
}
|
|
2761
2765
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2762
2766
|
c = U(c);
|
|
2763
|
-
|
|
2767
|
+
Ec(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Xb:!0,});
|
|
2764
2768
|
}, _embind_register_std_string:function(a, b) {
|
|
2765
2769
|
b = U(b);
|
|
2766
2770
|
var c = "std::string" === b;
|
|
2767
|
-
|
|
2771
|
+
Ec(a, {name:b, fromWireType:function(d) {
|
|
2768
2772
|
var e = K[d >> 2], f = d + 4;
|
|
2769
2773
|
if (c) {
|
|
2770
2774
|
for (var g = f, l = 0; l <= e; ++l) {
|
|
@@ -2818,19 +2822,19 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2818
2822
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2819
2823
|
c = U(c);
|
|
2820
2824
|
if (2 === b) {
|
|
2821
|
-
var d =
|
|
2822
|
-
var e =
|
|
2823
|
-
var f =
|
|
2825
|
+
var d = fd;
|
|
2826
|
+
var e = gd;
|
|
2827
|
+
var f = hd;
|
|
2824
2828
|
var g = () => wa;
|
|
2825
2829
|
var l = 1;
|
|
2826
2830
|
} else {
|
|
2827
|
-
4 === b && (d =
|
|
2831
|
+
4 === b && (d = jd, e = kd, f = ld, g = () => K, l = 2);
|
|
2828
2832
|
}
|
|
2829
|
-
|
|
2833
|
+
Ec(a, {name:c, fromWireType:function(p) {
|
|
2830
2834
|
for (var m = K[p >> 2], t = g(), v, x = p + 4, n = 0; n <= m; ++n) {
|
|
2831
|
-
var
|
|
2832
|
-
if (n == m || 0 == t[
|
|
2833
|
-
x = d(x,
|
|
2835
|
+
var r = p + 4 + n * b;
|
|
2836
|
+
if (n == m || 0 == t[r >> l]) {
|
|
2837
|
+
x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + b;
|
|
2834
2838
|
}
|
|
2835
2839
|
}
|
|
2836
2840
|
nc(p);
|
|
@@ -2846,12 +2850,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2846
2850
|
nc(p);
|
|
2847
2851
|
},});
|
|
2848
2852
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2849
|
-
zc[a] = {name:U(b),
|
|
2853
|
+
zc[a] = {name:U(b), Va:W(c, d), W:W(e, f), fb:[],};
|
|
2850
2854
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2851
|
-
zc[a].
|
|
2855
|
+
zc[a].fb.push({Pb:U(b), Vb:c, Tb:W(d, e), Ub:f, kc:g, jc:W(l, p), lc:m,});
|
|
2852
2856
|
}, _embind_register_void:function(a, b) {
|
|
2853
2857
|
b = U(b);
|
|
2854
|
-
|
|
2858
|
+
Ec(a, {cc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2855
2859
|
}, toWireType:function() {
|
|
2856
2860
|
},});
|
|
2857
2861
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
@@ -2861,56 +2865,56 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2861
2865
|
K[c >> 2] = e;
|
|
2862
2866
|
return b.toWireType(d, a);
|
|
2863
2867
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2864
|
-
a =
|
|
2868
|
+
a = od[a];
|
|
2865
2869
|
b = S(b);
|
|
2866
|
-
c =
|
|
2870
|
+
c = nd(c);
|
|
2867
2871
|
var f = [];
|
|
2868
2872
|
K[d >> 2] = T(f);
|
|
2869
2873
|
return a(b, c, f, e);
|
|
2870
2874
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2871
|
-
a =
|
|
2875
|
+
a = od[a];
|
|
2872
2876
|
b = S(b);
|
|
2873
|
-
c =
|
|
2877
|
+
c = nd(c);
|
|
2874
2878
|
a(b, c, null, d);
|
|
2875
|
-
}, _emval_decref
|
|
2876
|
-
var c =
|
|
2879
|
+
}, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
|
|
2880
|
+
var c = qd(a, b), d = c[0];
|
|
2877
2881
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2878
2882
|
return g.name;
|
|
2879
2883
|
}).join("_") + "$";
|
|
2880
|
-
var e =
|
|
2884
|
+
var e = rd[b];
|
|
2881
2885
|
if (void 0 !== e) {
|
|
2882
2886
|
return e;
|
|
2883
2887
|
}
|
|
2884
2888
|
var f = Array(a - 1);
|
|
2885
|
-
e =
|
|
2889
|
+
e = pd((g, l, p, m) => {
|
|
2886
2890
|
for (var t = 0, v = 0; v < a - 1; ++v) {
|
|
2887
2891
|
f[v] = c[v + 1].readValueFromPointer(m + t), t += c[v + 1].argPackAdvance;
|
|
2888
2892
|
}
|
|
2889
2893
|
g = g[l].apply(g, f);
|
|
2890
2894
|
for (v = 0; v < a - 1; ++v) {
|
|
2891
|
-
c[v + 1].
|
|
2895
|
+
c[v + 1].Lb && c[v + 1].Lb(f[v]);
|
|
2892
2896
|
}
|
|
2893
|
-
if (!d
|
|
2897
|
+
if (!d.cc) {
|
|
2894
2898
|
return d.toWireType(p, g);
|
|
2895
2899
|
}
|
|
2896
2900
|
});
|
|
2897
|
-
return
|
|
2901
|
+
return rd[b] = e;
|
|
2898
2902
|
}, _emval_get_property:function(a, b) {
|
|
2899
2903
|
a = S(a);
|
|
2900
2904
|
b = S(b);
|
|
2901
2905
|
return T(a[b]);
|
|
2902
2906
|
}, _emval_incref:function(a) {
|
|
2903
|
-
4 < a && (Q.get(a).
|
|
2907
|
+
4 < a && (Q.get(a).ub += 1);
|
|
2904
2908
|
}, _emval_new_array:function() {
|
|
2905
2909
|
return T([]);
|
|
2906
2910
|
}, _emval_new_cstring:function(a) {
|
|
2907
|
-
return T(
|
|
2911
|
+
return T(nd(a));
|
|
2908
2912
|
}, _emval_new_object:function() {
|
|
2909
2913
|
return T({});
|
|
2910
2914
|
}, _emval_run_destructors:function(a) {
|
|
2911
2915
|
var b = S(a);
|
|
2912
2916
|
Ac(b);
|
|
2913
|
-
|
|
2917
|
+
ad(a);
|
|
2914
2918
|
}, _emval_set_property:function(a, b, c) {
|
|
2915
2919
|
a = S(a);
|
|
2916
2920
|
b = S(b);
|
|
@@ -2940,12 +2944,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2940
2944
|
var b = k.images;
|
|
2941
2945
|
b && b.get(a) && b.delete(a);
|
|
2942
2946
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2943
|
-
|
|
2947
|
+
sd.length = 0;
|
|
2944
2948
|
var d;
|
|
2945
2949
|
for (c >>= 2; d = F[b++];) {
|
|
2946
|
-
c += 105 != d & c,
|
|
2950
|
+
c += 105 != d & c, sd.push(105 == d ? I[c] : ya[c++ >> 1]), ++c;
|
|
2947
2951
|
}
|
|
2948
|
-
return Ua[a].apply(null,
|
|
2952
|
+
return Ua[a].apply(null, sd);
|
|
2949
2953
|
}, emscripten_date_now:function() {
|
|
2950
2954
|
return Date.now();
|
|
2951
2955
|
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => F.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
@@ -2979,18 +2983,18 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2979
2983
|
a = w[a];
|
|
2980
2984
|
b = b ? M(F, b) : "";
|
|
2981
2985
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
2982
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
2983
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
2986
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2987
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && ud(Z);
|
|
2984
2988
|
"WEBGL_multi_draw" == b && Gd(Z);
|
|
2985
2989
|
return !!a.C.getExtension(b);
|
|
2986
2990
|
}, emscripten_webgl_get_current_context:function() {
|
|
2987
|
-
return
|
|
2991
|
+
return q ? q.handle : 0;
|
|
2988
2992
|
}, emscripten_webgl_make_context_current:function(a) {
|
|
2989
2993
|
return ja(a) ? 0 : -5;
|
|
2990
2994
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
2991
2995
|
a = w[a].C;
|
|
2992
|
-
a.
|
|
2993
|
-
return !!a.
|
|
2996
|
+
a.rb = a.getExtension("WEBGL_provoking_vertex");
|
|
2997
|
+
return !!a.rb;
|
|
2994
2998
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2995
2999
|
a = w[a].C;
|
|
2996
3000
|
a.ca = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
@@ -3024,7 +3028,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
3028
|
if (null === b.X) {
|
|
3025
3029
|
throw new N(8);
|
|
3026
3030
|
}
|
|
3027
|
-
b.
|
|
3031
|
+
b.Sa && (b.Sa = null);
|
|
3028
3032
|
try {
|
|
3029
3033
|
b.m.close && b.m.close(b);
|
|
3030
3034
|
} catch (c) {
|
|
@@ -3064,14 +3068,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3064
3068
|
if (!m.m.read) {
|
|
3065
3069
|
throw new N(28);
|
|
3066
3070
|
}
|
|
3067
|
-
var
|
|
3068
|
-
if (!
|
|
3071
|
+
var r = "undefined" != typeof x;
|
|
3072
|
+
if (!r) {
|
|
3069
3073
|
x = m.position;
|
|
3070
3074
|
} else if (!m.seekable) {
|
|
3071
3075
|
throw new N(70);
|
|
3072
3076
|
}
|
|
3073
3077
|
var u = m.m.read(m, n, t, v, x);
|
|
3074
|
-
|
|
3078
|
+
r || (m.position += u);
|
|
3075
3079
|
var y = u;
|
|
3076
3080
|
if (0 > y) {
|
|
3077
3081
|
var z = -1;
|
|
@@ -3087,11 +3091,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3087
3091
|
}
|
|
3088
3092
|
K[d >> 2] = z;
|
|
3089
3093
|
return 0;
|
|
3090
|
-
} catch (
|
|
3091
|
-
if ("undefined" == typeof Wb || "ErrnoError" !==
|
|
3092
|
-
throw
|
|
3094
|
+
} catch (B) {
|
|
3095
|
+
if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
|
|
3096
|
+
throw B;
|
|
3093
3097
|
}
|
|
3094
|
-
return
|
|
3098
|
+
return B.aa;
|
|
3095
3099
|
}
|
|
3096
3100
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3097
3101
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3102,9 +3106,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3102
3106
|
var f = Jb(a);
|
|
3103
3107
|
Rb(f, b, d);
|
|
3104
3108
|
Qa = [f.position >>> 0, (Pa = f.position, 1.0 <= +Math.abs(Pa) ? 0.0 < Pa ? +Math.floor(Pa / 4294967296.0) >>> 0 : ~~+Math.ceil((Pa - +(~~Pa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
f.
|
|
3109
|
+
I[e >> 2] = Qa[0];
|
|
3110
|
+
I[e + 4 >> 2] = Qa[1];
|
|
3111
|
+
f.Sa && 0 === b && 0 === d && (f.Sa = null);
|
|
3108
3112
|
return 0;
|
|
3109
3113
|
} catch (g) {
|
|
3110
3114
|
if ("undefined" == typeof Wb || "ErrnoError" !== g.name) {
|
|
@@ -3137,14 +3141,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3137
3141
|
throw new N(28);
|
|
3138
3142
|
}
|
|
3139
3143
|
m.seekable && m.flags & 1024 && Rb(m, 0, 2);
|
|
3140
|
-
var
|
|
3141
|
-
if (!
|
|
3144
|
+
var r = "undefined" != typeof x;
|
|
3145
|
+
if (!r) {
|
|
3142
3146
|
x = m.position;
|
|
3143
3147
|
} else if (!m.seekable) {
|
|
3144
3148
|
throw new N(70);
|
|
3145
3149
|
}
|
|
3146
3150
|
var u = m.m.write(m, n, t, v, x, void 0);
|
|
3147
|
-
|
|
3151
|
+
r || (m.position += u);
|
|
3148
3152
|
var y = u;
|
|
3149
3153
|
if (0 > y) {
|
|
3150
3154
|
var z = -1;
|
|
@@ -3157,11 +3161,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3157
3161
|
}
|
|
3158
3162
|
K[d >> 2] = z;
|
|
3159
3163
|
return 0;
|
|
3160
|
-
} catch (
|
|
3161
|
-
if ("undefined" == typeof Wb || "ErrnoError" !==
|
|
3162
|
-
throw
|
|
3164
|
+
} catch (B) {
|
|
3165
|
+
if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
|
|
3166
|
+
throw B;
|
|
3163
3167
|
}
|
|
3164
|
-
return
|
|
3168
|
+
return B.aa;
|
|
3165
3169
|
}
|
|
3166
3170
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3167
3171
|
(a = w[a].C.ca) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
@@ -3172,12 +3176,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3172
3176
|
}, glActiveTexture:function(a) {
|
|
3173
3177
|
Z.activeTexture(a);
|
|
3174
3178
|
}, glAttachShader:function(a, b) {
|
|
3175
|
-
Z.attachShader(
|
|
3179
|
+
Z.attachShader(X[a], Ad[b]);
|
|
3176
3180
|
}, glBindBuffer:function(a, b) {
|
|
3177
|
-
35051 == a ? Z.
|
|
3178
|
-
Z.bindBuffer(a,
|
|
3181
|
+
35051 == a ? Z.Pa = b : 35052 == a && (Z.Qa = b);
|
|
3182
|
+
Z.bindBuffer(a, wd[b]);
|
|
3179
3183
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3180
|
-
Z.bindBufferRange(a, b,
|
|
3184
|
+
Z.bindBufferRange(a, b, wd[c], d, e);
|
|
3181
3185
|
}, glBindFramebuffer:function(a, b) {
|
|
3182
3186
|
Z.bindFramebuffer(a, xd[b]);
|
|
3183
3187
|
}, glBindRenderbuffer:function(a, b) {
|
|
@@ -3198,6 +3202,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3198
3202
|
c && Z.bufferSubData(a, b, F, d, c);
|
|
3199
3203
|
}, glClear:function(a) {
|
|
3200
3204
|
Z.clear(a);
|
|
3205
|
+
}, glClearBufferfv:function(a, b, c) {
|
|
3206
|
+
Z.clearBufferfv(a, b, xa, c >> 2);
|
|
3207
|
+
}, glClearBufferuiv:function(a, b, c) {
|
|
3208
|
+
Z.clearBufferuiv(a, b, K, c >> 2);
|
|
3201
3209
|
}, glClearColor:function(a, b, c, d) {
|
|
3202
3210
|
Z.clearColor(a, b, c, d);
|
|
3203
3211
|
}, glClearDepthf:function(a) {
|
|
@@ -3209,11 +3217,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3209
3217
|
}, glCompileShader:function(a) {
|
|
3210
3218
|
Z.compileShader(Ad[a]);
|
|
3211
3219
|
}, glCreateProgram:function() {
|
|
3212
|
-
var a = Ed(
|
|
3220
|
+
var a = Ed(X), b = Z.createProgram();
|
|
3213
3221
|
b.name = a;
|
|
3214
|
-
b.
|
|
3215
|
-
b.
|
|
3216
|
-
|
|
3222
|
+
b.Ba = b.za = b.Aa = 0;
|
|
3223
|
+
b.Ya = 1;
|
|
3224
|
+
X[a] = b;
|
|
3217
3225
|
return a;
|
|
3218
3226
|
}, glCreateShader:function(a) {
|
|
3219
3227
|
var b = Ed(Ad);
|
|
@@ -3223,22 +3231,22 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3223
3231
|
Z.cullFace(a);
|
|
3224
3232
|
}, glDeleteBuffers:function(a, b) {
|
|
3225
3233
|
for (var c = 0; c < a; c++) {
|
|
3226
|
-
var d =
|
|
3227
|
-
e && (Z.deleteBuffer(e), e.name = 0,
|
|
3234
|
+
var d = I[b + 4 * c >> 2], e = wd[d];
|
|
3235
|
+
e && (Z.deleteBuffer(e), e.name = 0, wd[d] = null, d == Z.Pa && (Z.Pa = 0), d == Z.Qa && (Z.Qa = 0));
|
|
3228
3236
|
}
|
|
3229
3237
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3230
3238
|
for (var c = 0; c < a; ++c) {
|
|
3231
|
-
var d =
|
|
3239
|
+
var d = I[b + 4 * c >> 2], e = xd[d];
|
|
3232
3240
|
e && (Z.deleteFramebuffer(e), e.name = 0, xd[d] = null);
|
|
3233
3241
|
}
|
|
3234
3242
|
}, glDeleteProgram:function(a) {
|
|
3235
3243
|
if (a) {
|
|
3236
|
-
var b =
|
|
3237
|
-
b ? (Z.deleteProgram(b), b.name = 0,
|
|
3244
|
+
var b = X[a];
|
|
3245
|
+
b ? (Z.deleteProgram(b), b.name = 0, X[a] = null) : Y(1281);
|
|
3238
3246
|
}
|
|
3239
3247
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3240
3248
|
for (var c = 0; c < a; c++) {
|
|
3241
|
-
var d =
|
|
3249
|
+
var d = I[b + 4 * c >> 2], e = yd[d];
|
|
3242
3250
|
e && (Z.deleteRenderbuffer(e), e.name = 0, yd[d] = null);
|
|
3243
3251
|
}
|
|
3244
3252
|
}, glDeleteShader:function(a) {
|
|
@@ -3248,12 +3256,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3248
3256
|
}
|
|
3249
3257
|
}, glDeleteTextures:function(a, b) {
|
|
3250
3258
|
for (var c = 0; c < a; c++) {
|
|
3251
|
-
var d =
|
|
3259
|
+
var d = I[b + 4 * c >> 2], e = zd[d];
|
|
3252
3260
|
e && (Z.deleteTexture(e), e.name = 0, zd[d] = null);
|
|
3253
3261
|
}
|
|
3254
3262
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3255
3263
|
for (var c = 0; c < a; c++) {
|
|
3256
|
-
var d =
|
|
3264
|
+
var d = I[b + 4 * c >> 2];
|
|
3257
3265
|
Z.deleteVertexArray(Bd[d]);
|
|
3258
3266
|
Bd[d] = null;
|
|
3259
3267
|
}
|
|
@@ -3271,7 +3279,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3271
3279
|
Z.drawArraysInstanced(a, b, c, d);
|
|
3272
3280
|
}, glDrawBuffers:function(a, b) {
|
|
3273
3281
|
for (var c = Kd[a], d = 0; d < a; d++) {
|
|
3274
|
-
c[d] =
|
|
3282
|
+
c[d] = I[b + 4 * d >> 2];
|
|
3275
3283
|
}
|
|
3276
3284
|
Z.drawBuffers(c);
|
|
3277
3285
|
}, glDrawElements:function(a, b, c, d) {
|
|
@@ -3291,7 +3299,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3291
3299
|
}, glFrontFace:function(a) {
|
|
3292
3300
|
Z.frontFace(a);
|
|
3293
3301
|
}, glGenBuffers:function(a, b) {
|
|
3294
|
-
Ld(a, b, "createBuffer",
|
|
3302
|
+
Ld(a, b, "createBuffer", wd);
|
|
3295
3303
|
}, glGenFramebuffers:function(a, b) {
|
|
3296
3304
|
Ld(a, b, "createFramebuffer", xd);
|
|
3297
3305
|
}, glGenRenderbuffers:function(a, b) {
|
|
@@ -3308,6 +3316,43 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3308
3316
|
return a;
|
|
3309
3317
|
}, glGetIntegerv:function(a, b) {
|
|
3310
3318
|
Md(a, b);
|
|
3319
|
+
}, glGetProgramiv:function(a, b, c) {
|
|
3320
|
+
if (c) {
|
|
3321
|
+
if (a >= vd) {
|
|
3322
|
+
Y(1281);
|
|
3323
|
+
} else {
|
|
3324
|
+
if (a = X[a], 35716 == b) {
|
|
3325
|
+
a = Z.getProgramInfoLog(a), null === a && (a = "(unknown error)"), I[c >> 2] = a.length + 1;
|
|
3326
|
+
} else if (35719 == b) {
|
|
3327
|
+
if (!a.Ba) {
|
|
3328
|
+
for (b = 0; b < Z.getProgramParameter(a, 35718); ++b) {
|
|
3329
|
+
a.Ba = Math.max(a.Ba, Z.getActiveUniform(a, b).name.length + 1);
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
I[c >> 2] = a.Ba;
|
|
3333
|
+
} else if (35722 == b) {
|
|
3334
|
+
if (!a.za) {
|
|
3335
|
+
for (b = 0; b < Z.getProgramParameter(a, 35721); ++b) {
|
|
3336
|
+
a.za = Math.max(a.za, Z.getActiveAttrib(a, b).name.length + 1);
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
I[c >> 2] = a.za;
|
|
3340
|
+
} else if (35381 == b) {
|
|
3341
|
+
if (!a.Aa) {
|
|
3342
|
+
for (b = 0; b < Z.getProgramParameter(a, 35382); ++b) {
|
|
3343
|
+
a.Aa = Math.max(a.Aa, Z.getActiveUniformBlockName(a, b).length + 1);
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
I[c >> 2] = a.Aa;
|
|
3347
|
+
} else {
|
|
3348
|
+
I[c >> 2] = Z.getProgramParameter(a, b);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
} else {
|
|
3352
|
+
Y(1281);
|
|
3353
|
+
}
|
|
3354
|
+
}, glGetShaderiv:function(a, b, c) {
|
|
3355
|
+
c ? 35716 == b ? (a = Z.getShaderInfoLog(Ad[a]), null === a && (a = "(unknown error)"), I[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = Z.getShaderSource(Ad[a]), I[c >> 2] = a ? a.length + 1 : 0) : I[c >> 2] = Z.getShaderParameter(Ad[a], b) : Y(1281);
|
|
3311
3356
|
}, glGetString:function(a) {
|
|
3312
3357
|
var b = Cd[a];
|
|
3313
3358
|
if (!b) {
|
|
@@ -3342,23 +3387,23 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3342
3387
|
}
|
|
3343
3388
|
return b;
|
|
3344
3389
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3345
|
-
return Z.getUniformBlockIndex(
|
|
3390
|
+
return Z.getUniformBlockIndex(X[a], b ? M(F, b) : "");
|
|
3346
3391
|
}, glGetUniformLocation:function(a, b) {
|
|
3347
3392
|
b = b ? M(F, b) : "";
|
|
3348
|
-
if (a =
|
|
3349
|
-
var c = a, d = c.oa, e = c.
|
|
3393
|
+
if (a = X[a]) {
|
|
3394
|
+
var c = a, d = c.oa, e = c.zb, f;
|
|
3350
3395
|
if (!d) {
|
|
3351
|
-
for (c.oa = d = {}, c.
|
|
3396
|
+
for (c.oa = d = {}, c.yb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3352
3397
|
var g = Z.getActiveUniform(c, f);
|
|
3353
3398
|
var l = g.name;
|
|
3354
3399
|
g = g.size;
|
|
3355
3400
|
var p = Pd(l);
|
|
3356
3401
|
p = 0 < p ? l.slice(0, p) : l;
|
|
3357
|
-
var m = c.
|
|
3358
|
-
c.
|
|
3402
|
+
var m = c.Ya;
|
|
3403
|
+
c.Ya += g;
|
|
3359
3404
|
e[p] = [g, m];
|
|
3360
3405
|
for (l = 0; l < g; ++l) {
|
|
3361
|
-
d[m] = l, c.
|
|
3406
|
+
d[m] = l, c.yb[m++] = p;
|
|
3362
3407
|
}
|
|
3363
3408
|
}
|
|
3364
3409
|
}
|
|
@@ -3367,7 +3412,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3367
3412
|
e = b;
|
|
3368
3413
|
f = Pd(b);
|
|
3369
3414
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3370
|
-
if ((e = a.
|
|
3415
|
+
if ((e = a.zb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3371
3416
|
return d;
|
|
3372
3417
|
}
|
|
3373
3418
|
} else {
|
|
@@ -3376,23 +3421,30 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3376
3421
|
return -1;
|
|
3377
3422
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3378
3423
|
for (var d = Kd[b], e = 0; e < b; e++) {
|
|
3379
|
-
d[e] =
|
|
3424
|
+
d[e] = I[c + 4 * e >> 2];
|
|
3380
3425
|
}
|
|
3381
3426
|
Z.invalidateFramebuffer(a, d);
|
|
3382
3427
|
}, glLinkProgram:function(a) {
|
|
3383
|
-
a =
|
|
3428
|
+
a = X[a];
|
|
3384
3429
|
Z.linkProgram(a);
|
|
3385
3430
|
a.oa = 0;
|
|
3386
|
-
a.
|
|
3431
|
+
a.zb = {};
|
|
3387
3432
|
}, glPixelStorei:function(a, b) {
|
|
3388
3433
|
Z.pixelStorei(a, b);
|
|
3434
|
+
}, glReadPixels:function(a, b, c, d, e, f, g) {
|
|
3435
|
+
if (Z.Pa) {
|
|
3436
|
+
Z.readPixels(a, b, c, d, e, f, g);
|
|
3437
|
+
} else {
|
|
3438
|
+
var l = Qd(f);
|
|
3439
|
+
Z.readPixels(a, b, c, d, e, f, l, g >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3440
|
+
}
|
|
3389
3441
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3390
3442
|
Z.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3391
3443
|
}, glScissor:function(a, b, c, d) {
|
|
3392
3444
|
Z.scissor(a, b, c, d);
|
|
3393
3445
|
}, glShaderSource:function(a, b, c, d) {
|
|
3394
3446
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3395
|
-
var g = d ?
|
|
3447
|
+
var g = d ? I[d + 4 * f >> 2] : -1, l = I[c + 4 * f >> 2];
|
|
3396
3448
|
g = l ? M(F, l, 0 > g ? void 0 : g) : "";
|
|
3397
3449
|
e += g;
|
|
3398
3450
|
}
|
|
@@ -3412,33 +3464,32 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3412
3464
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3413
3465
|
Z.texStorage2D(a, b, c, d, e);
|
|
3414
3466
|
}, glTexSubImage2D:function(a, b, c, d, e, f, g, l, p) {
|
|
3415
|
-
if (Z.
|
|
3467
|
+
if (Z.Qa) {
|
|
3416
3468
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, p);
|
|
3417
3469
|
} else if (p) {
|
|
3418
|
-
var m = l
|
|
3419
|
-
m = 0 == m ? D : 1 == m ? F : 2 == m ? G : 4 == m ? J : 6 == m ? xa : 5 == m || 28922 == m || 28520 == m || 30779 == m || 30782 == m ? K : wa;
|
|
3470
|
+
var m = Qd(l);
|
|
3420
3471
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, m, p >> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3421
3472
|
} else {
|
|
3422
3473
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, null);
|
|
3423
3474
|
}
|
|
3424
3475
|
}, glUniform1i:function(a, b) {
|
|
3425
3476
|
var c = Z, d = c.uniform1i;
|
|
3426
|
-
var e = Z.
|
|
3477
|
+
var e = Z.Kb;
|
|
3427
3478
|
if (e) {
|
|
3428
3479
|
var f = e.oa[a];
|
|
3429
|
-
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.
|
|
3480
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.yb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3430
3481
|
a = f;
|
|
3431
3482
|
} else {
|
|
3432
3483
|
Y(1282), a = void 0;
|
|
3433
3484
|
}
|
|
3434
3485
|
d.call(c, a, b);
|
|
3435
3486
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3436
|
-
a =
|
|
3487
|
+
a = X[a];
|
|
3437
3488
|
Z.uniformBlockBinding(a, b, c);
|
|
3438
3489
|
}, glUseProgram:function(a) {
|
|
3439
|
-
a =
|
|
3490
|
+
a = X[a];
|
|
3440
3491
|
Z.useProgram(a);
|
|
3441
|
-
Z.
|
|
3492
|
+
Z.Kb = a;
|
|
3442
3493
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3443
3494
|
Z.vertexAttribDivisor(a, b);
|
|
3444
3495
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3448,8 +3499,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3448
3499
|
}, glViewport:function(a, b, c, d) {
|
|
3449
3500
|
Z.viewport(a, b, c, d);
|
|
3450
3501
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3451
|
-
(a = w[a].C.
|
|
3452
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3502
|
+
(a = w[a].C.rb) && a.provokingVertexWEBGL(b);
|
|
3503
|
+
}, strftime_l:(a, b, c, d) => Ud(a, b, c, d), upload_image:function(a, b) {
|
|
3453
3504
|
var c = k.images;
|
|
3454
3505
|
c && (b = c.get(b)) && (a = w[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
|
|
3455
3506
|
}};
|
|
@@ -3469,24 +3520,24 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3469
3520
|
}
|
|
3470
3521
|
return c;
|
|
3471
3522
|
}
|
|
3472
|
-
var b = {env:
|
|
3523
|
+
var b = {env:Zd, wasi_snapshot_preview1:Zd,};
|
|
3473
3524
|
Fa++;
|
|
3474
3525
|
k.monitorRunDependencies && k.monitorRunDependencies(Fa);
|
|
3475
3526
|
if (k.instantiateWasm) {
|
|
3476
3527
|
try {
|
|
3477
3528
|
return k.instantiateWasm(b, a);
|
|
3478
3529
|
} catch (c) {
|
|
3479
|
-
ra("Module.instantiateWasm callback failed with error: " + c),
|
|
3530
|
+
ra("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3480
3531
|
}
|
|
3481
3532
|
}
|
|
3482
3533
|
Oa(b, function(c) {
|
|
3483
3534
|
a(c.instance);
|
|
3484
|
-
}).catch(
|
|
3535
|
+
}).catch(ba);
|
|
3485
3536
|
return {};
|
|
3486
3537
|
})();
|
|
3487
3538
|
var nc = a => (nc = C.free)(a), Nd = a => (Nd = C.malloc)(a);
|
|
3488
3539
|
k._setWebImage = (a, b, c) => (k._setWebImage = C.setWebImage)(a, b, c);
|
|
3489
|
-
var
|
|
3540
|
+
var Yd = () => (Yd = C.__errno_location)(), Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
|
|
3490
3541
|
k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = C.ma_malloc_emscripten)(a, b);
|
|
3491
3542
|
k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = C.ma_free_emscripten)(a, b);
|
|
3492
3543
|
var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), mc = a => (mc = C.__getTypeName)(a);
|
|
@@ -3501,16 +3552,16 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
|
|
|
3501
3552
|
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3502
3553
|
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
|
|
3503
3554
|
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
|
|
3504
|
-
k.___start_em_js =
|
|
3505
|
-
k.___stop_em_js =
|
|
3506
|
-
var
|
|
3507
|
-
Ha = function
|
|
3508
|
-
|
|
3509
|
-
|
|
3555
|
+
k.___start_em_js = 531444;
|
|
3556
|
+
k.___stop_em_js = 534199;
|
|
3557
|
+
var $d;
|
|
3558
|
+
Ha = function ae() {
|
|
3559
|
+
$d || be();
|
|
3560
|
+
$d || (Ha = ae);
|
|
3510
3561
|
};
|
|
3511
|
-
function
|
|
3562
|
+
function be() {
|
|
3512
3563
|
function a() {
|
|
3513
|
-
if (
|
|
3564
|
+
if (!$d && ($d = !0, k.calledRun = !0, !va)) {
|
|
3514
3565
|
k.noFSInit || Tb || (Tb = !0, Sb(), k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Ob("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Ob("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Ob("/dev/tty1", "/dev/stderr"), Qb("/dev/stdin", 0), Qb("/dev/stdout", 1), Qb("/dev/stderr", 1));
|
|
3515
3566
|
zb = !1;
|
|
3516
3567
|
Va(Ca);
|
|
@@ -3547,7 +3598,7 @@ if (k.preInit) {
|
|
|
3547
3598
|
k.preInit.pop()();
|
|
3548
3599
|
}
|
|
3549
3600
|
}
|
|
3550
|
-
|
|
3601
|
+
be();
|
|
3551
3602
|
|
|
3552
3603
|
|
|
3553
3604
|
|
|
@@ -3562,7 +3613,7 @@ ae();
|
|
|
3562
3613
|
/* 2 */
|
|
3563
3614
|
/***/ ((module) => {
|
|
3564
3615
|
|
|
3565
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.
|
|
3616
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.3","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}}');
|
|
3566
3617
|
|
|
3567
3618
|
/***/ }),
|
|
3568
3619
|
/* 3 */
|
|
@@ -3709,11 +3760,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3709
3760
|
/* harmony export */ BLANK_URL: () => (/* reexport safe */ _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__.BLANK_URL),
|
|
3710
3761
|
/* harmony export */ CustomFileAssetLoaderWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.CustomFileAssetLoaderWrapper),
|
|
3711
3762
|
/* harmony export */ FileAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FileAssetWrapper),
|
|
3712
|
-
/* harmony export */
|
|
3763
|
+
/* harmony export */ FileFinalizer: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FileFinalizer),
|
|
3713
3764
|
/* harmony export */ FontAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FontAssetWrapper),
|
|
3714
3765
|
/* harmony export */ FontWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FontWrapper),
|
|
3715
3766
|
/* harmony export */ ImageAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageAssetWrapper),
|
|
3716
3767
|
/* harmony export */ ImageWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageWrapper),
|
|
3768
|
+
/* harmony export */ createFinalization: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.createFinalization),
|
|
3717
3769
|
/* harmony export */ finalizationRegistry: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry),
|
|
3718
3770
|
/* harmony export */ registerTouchInteractions: () => (/* reexport safe */ _registerTouchInteractions__WEBPACK_IMPORTED_MODULE_0__.registerTouchInteractions),
|
|
3719
3771
|
/* harmony export */ sanitizeUrl: () => (/* reexport safe */ _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__.sanitizeUrl)
|
|
@@ -3980,11 +4032,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3980
4032
|
/* harmony export */ AudioWrapper: () => (/* binding */ AudioWrapper),
|
|
3981
4033
|
/* harmony export */ CustomFileAssetLoaderWrapper: () => (/* binding */ CustomFileAssetLoaderWrapper),
|
|
3982
4034
|
/* harmony export */ FileAssetWrapper: () => (/* binding */ FileAssetWrapper),
|
|
3983
|
-
/* harmony export */
|
|
4035
|
+
/* harmony export */ FileFinalizer: () => (/* binding */ FileFinalizer),
|
|
3984
4036
|
/* harmony export */ FontAssetWrapper: () => (/* binding */ FontAssetWrapper),
|
|
3985
4037
|
/* harmony export */ FontWrapper: () => (/* binding */ FontWrapper),
|
|
3986
4038
|
/* harmony export */ ImageAssetWrapper: () => (/* binding */ ImageAssetWrapper),
|
|
3987
4039
|
/* harmony export */ ImageWrapper: () => (/* binding */ ImageWrapper),
|
|
4040
|
+
/* harmony export */ createFinalization: () => (/* binding */ createFinalization),
|
|
3988
4041
|
/* harmony export */ finalizationRegistry: () => (/* binding */ finalizationRegistry)
|
|
3989
4042
|
/* harmony export */ });
|
|
3990
4043
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -4002,11 +4055,33 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
4002
4055
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4003
4056
|
};
|
|
4004
4057
|
})();
|
|
4005
|
-
var
|
|
4006
|
-
function
|
|
4058
|
+
var FileFinalizer = /** @class */ (function () {
|
|
4059
|
+
function FileFinalizer(file) {
|
|
4007
4060
|
this.selfUnref = false;
|
|
4061
|
+
this._file = file;
|
|
4008
4062
|
}
|
|
4009
|
-
|
|
4063
|
+
FileFinalizer.prototype.unref = function () {
|
|
4064
|
+
if (this._file) {
|
|
4065
|
+
this._file.unref();
|
|
4066
|
+
}
|
|
4067
|
+
};
|
|
4068
|
+
return FileFinalizer;
|
|
4069
|
+
}());
|
|
4070
|
+
var ObjectFinalizer = /** @class */ (function () {
|
|
4071
|
+
function ObjectFinalizer(finalizableObject) {
|
|
4072
|
+
this._finalizableObject = finalizableObject;
|
|
4073
|
+
}
|
|
4074
|
+
ObjectFinalizer.prototype.unref = function () {
|
|
4075
|
+
this._finalizableObject.unref();
|
|
4076
|
+
};
|
|
4077
|
+
return ObjectFinalizer;
|
|
4078
|
+
}());
|
|
4079
|
+
var AssetWrapper = /** @class */ (function () {
|
|
4080
|
+
function AssetWrapper() {
|
|
4081
|
+
this.selfUnref = false;
|
|
4082
|
+
}
|
|
4083
|
+
AssetWrapper.prototype.unref = function () { };
|
|
4084
|
+
return AssetWrapper;
|
|
4010
4085
|
}());
|
|
4011
4086
|
var ImageWrapper = /** @class */ (function (_super) {
|
|
4012
4087
|
__extends(ImageWrapper, _super);
|
|
@@ -4028,7 +4103,7 @@ var ImageWrapper = /** @class */ (function (_super) {
|
|
|
4028
4103
|
}
|
|
4029
4104
|
};
|
|
4030
4105
|
return ImageWrapper;
|
|
4031
|
-
}(
|
|
4106
|
+
}(AssetWrapper));
|
|
4032
4107
|
var AudioWrapper = /** @class */ (function (_super) {
|
|
4033
4108
|
__extends(AudioWrapper, _super);
|
|
4034
4109
|
function AudioWrapper(audio) {
|
|
@@ -4049,7 +4124,7 @@ var AudioWrapper = /** @class */ (function (_super) {
|
|
|
4049
4124
|
}
|
|
4050
4125
|
};
|
|
4051
4126
|
return AudioWrapper;
|
|
4052
|
-
}(
|
|
4127
|
+
}(AssetWrapper));
|
|
4053
4128
|
var FontWrapper = /** @class */ (function (_super) {
|
|
4054
4129
|
__extends(FontWrapper, _super);
|
|
4055
4130
|
function FontWrapper(font) {
|
|
@@ -4070,7 +4145,7 @@ var FontWrapper = /** @class */ (function (_super) {
|
|
|
4070
4145
|
}
|
|
4071
4146
|
};
|
|
4072
4147
|
return FontWrapper;
|
|
4073
|
-
}(
|
|
4148
|
+
}(AssetWrapper));
|
|
4074
4149
|
var CustomFileAssetLoaderWrapper = /** @class */ (function () {
|
|
4075
4150
|
function CustomFileAssetLoaderWrapper(runtime, loaderCallback) {
|
|
4076
4151
|
this._assetLoaderCallback = loaderCallback;
|
|
@@ -4217,8 +4292,12 @@ var MyFinalizationRegistry = typeof FinalizationRegistry !== "undefined"
|
|
|
4217
4292
|
? FinalizationRegistry
|
|
4218
4293
|
: FakeFinalizationRegistry;
|
|
4219
4294
|
var finalizationRegistry = new MyFinalizationRegistry(function (ob) {
|
|
4220
|
-
ob.unref();
|
|
4295
|
+
ob === null || ob === void 0 ? void 0 : ob.unref();
|
|
4221
4296
|
});
|
|
4297
|
+
var createFinalization = function (target, finalizable) {
|
|
4298
|
+
var finalizer = new ObjectFinalizer(finalizable);
|
|
4299
|
+
finalizationRegistry.register(target, finalizer);
|
|
4300
|
+
};
|
|
4222
4301
|
|
|
4223
4302
|
|
|
4224
4303
|
|
|
@@ -4948,9 +5027,6 @@ var Animator = /** @class */ (function () {
|
|
|
4948
5027
|
if (sm) {
|
|
4949
5028
|
var newStateMachine = new StateMachine(sm, this.runtime, playing, this.artboard);
|
|
4950
5029
|
this.stateMachines.push(newStateMachine);
|
|
4951
|
-
if (!playing) {
|
|
4952
|
-
newStateMachine.advanceAndApply(0);
|
|
4953
|
-
}
|
|
4954
5030
|
}
|
|
4955
5031
|
else {
|
|
4956
5032
|
console.warn("State Machine with name ".concat(animatables[i], " not found."));
|
|
@@ -4969,6 +5045,16 @@ var Animator = /** @class */ (function () {
|
|
|
4969
5045
|
Animator.prototype.play = function (animatables) {
|
|
4970
5046
|
return this.add(animatables, true);
|
|
4971
5047
|
};
|
|
5048
|
+
/**
|
|
5049
|
+
* Advance state machines if they are paused after initialization
|
|
5050
|
+
*/
|
|
5051
|
+
Animator.prototype.advanceIfPaused = function () {
|
|
5052
|
+
this.stateMachines.forEach(function (sm) {
|
|
5053
|
+
if (!sm.playing) {
|
|
5054
|
+
sm.advanceAndApply(0);
|
|
5055
|
+
}
|
|
5056
|
+
});
|
|
5057
|
+
};
|
|
4972
5058
|
/**
|
|
4973
5059
|
* Pauses named animations and state machines, or everything if nothing is
|
|
4974
5060
|
* specified
|
|
@@ -5512,6 +5598,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
5512
5598
|
this.enableRiveAssetCDN = true;
|
|
5513
5599
|
this.referenceCount = 0;
|
|
5514
5600
|
this.destroyed = false;
|
|
5601
|
+
this.selfUnref = false;
|
|
5515
5602
|
this.src = params.src;
|
|
5516
5603
|
this.buffer = params.buffer;
|
|
5517
5604
|
if (params.assetLoader)
|
|
@@ -5527,19 +5614,25 @@ var RiveFile = /** @class */ (function () {
|
|
|
5527
5614
|
if (params.onLoadError)
|
|
5528
5615
|
this.on(EventType.LoadError, params.onLoadError);
|
|
5529
5616
|
}
|
|
5617
|
+
RiveFile.prototype.releaseFile = function () {
|
|
5618
|
+
var _a;
|
|
5619
|
+
if (this.selfUnref) {
|
|
5620
|
+
(_a = this.file) === null || _a === void 0 ? void 0 : _a.unref();
|
|
5621
|
+
}
|
|
5622
|
+
this.file = null;
|
|
5623
|
+
};
|
|
5530
5624
|
RiveFile.prototype.initData = function () {
|
|
5531
5625
|
return __awaiter(this, void 0, void 0, function () {
|
|
5532
|
-
var _a, loader, loaderWrapper, _b;
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
switch (_d.label) {
|
|
5626
|
+
var _a, loader, loaderWrapper, _b, fileFinalizer;
|
|
5627
|
+
return __generator(this, function (_c) {
|
|
5628
|
+
switch (_c.label) {
|
|
5536
5629
|
case 0:
|
|
5537
5630
|
if (!this.src) return [3 /*break*/, 2];
|
|
5538
5631
|
_a = this;
|
|
5539
5632
|
return [4 /*yield*/, loadRiveFile(this.src)];
|
|
5540
5633
|
case 1:
|
|
5541
|
-
_a.buffer =
|
|
5542
|
-
|
|
5634
|
+
_a.buffer = _c.sent();
|
|
5635
|
+
_c.label = 2;
|
|
5543
5636
|
case 2:
|
|
5544
5637
|
if (this.destroyed) {
|
|
5545
5638
|
return [2 /*return*/];
|
|
@@ -5553,10 +5646,11 @@ var RiveFile = /** @class */ (function () {
|
|
|
5553
5646
|
return [4 /*yield*/, this.runtime.load(new Uint8Array(this.buffer), loader, this.enableRiveAssetCDN)];
|
|
5554
5647
|
case 3:
|
|
5555
5648
|
// Load the Rive file
|
|
5556
|
-
_b.file =
|
|
5649
|
+
_b.file = _c.sent();
|
|
5650
|
+
fileFinalizer = new _utils__WEBPACK_IMPORTED_MODULE_3__.FileFinalizer(this.file);
|
|
5651
|
+
_utils__WEBPACK_IMPORTED_MODULE_3__.finalizationRegistry.register(this, fileFinalizer);
|
|
5557
5652
|
if (this.destroyed) {
|
|
5558
|
-
|
|
5559
|
-
this.file = null;
|
|
5653
|
+
this.releaseFile();
|
|
5560
5654
|
return [2 /*return*/];
|
|
5561
5655
|
}
|
|
5562
5656
|
if (this.file !== null) {
|
|
@@ -5637,12 +5731,10 @@ var RiveFile = /** @class */ (function () {
|
|
|
5637
5731
|
});
|
|
5638
5732
|
};
|
|
5639
5733
|
RiveFile.prototype.cleanup = function () {
|
|
5640
|
-
var _a;
|
|
5641
5734
|
this.referenceCount -= 1;
|
|
5642
5735
|
if (this.referenceCount <= 0) {
|
|
5643
5736
|
this.removeAllRiveEventListeners();
|
|
5644
|
-
|
|
5645
|
-
this.file = null;
|
|
5737
|
+
this.releaseFile();
|
|
5646
5738
|
this.destroyed = true;
|
|
5647
5739
|
}
|
|
5648
5740
|
};
|
|
@@ -5994,6 +6086,9 @@ var Rive = /** @class */ (function () {
|
|
|
5994
6086
|
type: EventType.Load,
|
|
5995
6087
|
data: (_a = this.src) !== null && _a !== void 0 ? _a : "buffer",
|
|
5996
6088
|
});
|
|
6089
|
+
// Only initialize paused state machines after the load event has been fired
|
|
6090
|
+
// to allow users to initialize inputs and view models before the first advance
|
|
6091
|
+
this.animator.advanceIfPaused();
|
|
5997
6092
|
// Flag ready for playback commands and clear the task queue; this order
|
|
5998
6093
|
// is important or it may infinitely recurse
|
|
5999
6094
|
this.readyForPlaying = true;
|
|
@@ -6029,12 +6124,6 @@ var Rive = /** @class */ (function () {
|
|
|
6029
6124
|
}
|
|
6030
6125
|
this.artboard = rootArtboard;
|
|
6031
6126
|
rootArtboard.volume = this._volume * audioManager.systemVolume;
|
|
6032
|
-
// Check that the artboard has at least 1 animation
|
|
6033
|
-
if (this.artboard.animationCount() < 1) {
|
|
6034
|
-
var msg = "Artboard has no animations";
|
|
6035
|
-
this.eventManager.fire({ type: EventType.LoadError, data: msg });
|
|
6036
|
-
throw msg;
|
|
6037
|
-
}
|
|
6038
6127
|
// Initialize the animator
|
|
6039
6128
|
this.animator = new Animator(this.runtime, this.artboard, this.eventManager);
|
|
6040
6129
|
// Initialize the animations; as loaded hasn't happened yet, we need to
|