@rive-app/canvas-advanced 2.37.5 → 2.37.7
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/canvas_advanced.mjs +308 -287
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var Rive = (() => {
|
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
var moduleRtn;
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var l = moduleArg, ca, da, ea = new Promise((a, b) => {
|
|
10
10
|
ca = a;
|
|
11
11
|
da = b;
|
|
12
12
|
}), fa = "object" == typeof window, ia = "function" == typeof importScripts;
|
|
@@ -23,7 +23,7 @@ function ja() {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
this.ob();
|
|
26
|
-
e && e.
|
|
26
|
+
e && e.Rb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
@@ -36,20 +36,20 @@ function ja() {
|
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Pb = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
41
|
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
|
|
42
42
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let k = 0, p = 0;
|
|
46
|
-
this.
|
|
46
|
+
this.Rb = function() {
|
|
47
47
|
var n = performance.now();
|
|
48
48
|
p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.Mb = function() {
|
|
53
53
|
f && (document.body.remove(f), f = null);
|
|
54
54
|
e = null;
|
|
55
55
|
};
|
|
@@ -71,41 +71,41 @@ function ka(a) {
|
|
|
71
71
|
return c << a;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const la =
|
|
75
|
-
|
|
74
|
+
const la = l.onRuntimeInitialized;
|
|
75
|
+
l.onRuntimeInitialized = function() {
|
|
76
76
|
la && la();
|
|
77
|
-
let a =
|
|
78
|
-
|
|
77
|
+
let a = l.decodeAudio;
|
|
78
|
+
l.decodeAudio = function(f, g) {
|
|
79
79
|
f = a(f);
|
|
80
80
|
g(f);
|
|
81
81
|
};
|
|
82
|
-
let b =
|
|
83
|
-
|
|
82
|
+
let b = l.decodeFont;
|
|
83
|
+
l.decodeFont = function(f, g) {
|
|
84
84
|
f = b(f);
|
|
85
85
|
g(f);
|
|
86
86
|
};
|
|
87
|
-
let c =
|
|
88
|
-
|
|
87
|
+
let c = l.setFallbackFontCb;
|
|
88
|
+
l.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
89
89
|
c(f);
|
|
90
90
|
} : function() {
|
|
91
91
|
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
92
92
|
};
|
|
93
|
-
const d =
|
|
94
|
-
|
|
95
|
-
let g =
|
|
96
|
-
return g.isImage ?
|
|
93
|
+
const d = l.FileAssetLoader;
|
|
94
|
+
l.ptrToAsset = f => {
|
|
95
|
+
let g = l.ptrToFileAsset(f);
|
|
96
|
+
return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
99
99
|
this.__parent.__construct.call(this);
|
|
100
100
|
this.Eb = f;
|
|
101
101
|
}, loadContents:function(f, g) {
|
|
102
|
-
f =
|
|
102
|
+
f = l.ptrToAsset(f);
|
|
103
103
|
return this.Eb(f, g);
|
|
104
104
|
},});
|
|
105
|
-
|
|
105
|
+
l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
106
106
|
this.__parent.__construct.call(this);
|
|
107
107
|
}, loadContents:function(f) {
|
|
108
|
-
let g =
|
|
108
|
+
let g = l.ptrToAsset(f);
|
|
109
109
|
f = g.cdnUuid;
|
|
110
110
|
if ("" === f) {
|
|
111
111
|
return !1;
|
|
@@ -123,7 +123,7 @@ m.onRuntimeInitialized = function() {
|
|
|
123
123
|
});
|
|
124
124
|
return !0;
|
|
125
125
|
},});
|
|
126
|
-
|
|
126
|
+
l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
127
127
|
this.__parent.__construct.call(this);
|
|
128
128
|
this.kb = [];
|
|
129
129
|
}, addLoader:function(f) {
|
|
@@ -136,25 +136,25 @@ m.onRuntimeInitialized = function() {
|
|
|
136
136
|
}
|
|
137
137
|
return !1;
|
|
138
138
|
},});
|
|
139
|
-
let e =
|
|
140
|
-
|
|
139
|
+
let e = l.computeAlignment;
|
|
140
|
+
l.computeAlignment = function(f, g, k, p, n = 1.0) {
|
|
141
141
|
return e.call(this, f, g, k, p, n);
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
const ma = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), na = new function() {
|
|
145
145
|
function a() {
|
|
146
146
|
if (!b) {
|
|
147
|
-
var
|
|
147
|
+
var m = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
148
148
|
let r;
|
|
149
149
|
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
|
150
|
-
if (r =
|
|
150
|
+
if (r = m.getContext("webgl", u), c = 1, !r) {
|
|
151
151
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
152
152
|
}
|
|
153
153
|
} else {
|
|
154
|
-
if (r =
|
|
154
|
+
if (r = m.getContext("webgl2", u)) {
|
|
155
155
|
c = 2;
|
|
156
156
|
} else {
|
|
157
|
-
if (r =
|
|
157
|
+
if (r = m.getContext("webgl", u)) {
|
|
158
158
|
c = 1;
|
|
159
159
|
} else {
|
|
160
160
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
@@ -190,24 +190,24 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
190
190
|
}
|
|
191
191
|
r.attachShader(I, w);
|
|
192
192
|
}
|
|
193
|
-
|
|
194
|
-
D(
|
|
195
|
-
D(
|
|
196
|
-
r.bindAttribLocation(
|
|
197
|
-
r.bindAttribLocation(
|
|
198
|
-
r.linkProgram(
|
|
199
|
-
u = r.getProgramInfoLog(
|
|
193
|
+
m = r.createProgram();
|
|
194
|
+
D(m, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
195
|
+
D(m, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
196
|
+
r.bindAttribLocation(m, 0, "vertex");
|
|
197
|
+
r.bindAttribLocation(m, 1, "uv");
|
|
198
|
+
r.linkProgram(m);
|
|
199
|
+
u = r.getProgramInfoLog(m);
|
|
200
200
|
if (0 < (u || "").trim().length) {
|
|
201
201
|
throw u;
|
|
202
202
|
}
|
|
203
|
-
e = r.getUniformLocation(
|
|
204
|
-
f = r.getUniformLocation(
|
|
205
|
-
r.useProgram(
|
|
203
|
+
e = r.getUniformLocation(m, "mat");
|
|
204
|
+
f = r.getUniformLocation(m, "translate");
|
|
205
|
+
r.useProgram(m);
|
|
206
206
|
r.bindBuffer(r.ARRAY_BUFFER, r.createBuffer());
|
|
207
207
|
r.enableVertexAttribArray(0);
|
|
208
208
|
r.enableVertexAttribArray(1);
|
|
209
209
|
r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, r.createBuffer());
|
|
210
|
-
r.uniform1i(r.getUniformLocation(
|
|
210
|
+
r.uniform1i(r.getUniformLocation(m, "image"), 0);
|
|
211
211
|
r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
|
|
212
212
|
b = r;
|
|
213
213
|
}
|
|
@@ -215,14 +215,14 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
215
215
|
}
|
|
216
216
|
let b = null, c = 0, d = 0, e = null, f = null, g = 0, k = 0, p = !1;
|
|
217
217
|
a();
|
|
218
|
-
this.
|
|
218
|
+
this.cc = function() {
|
|
219
219
|
a();
|
|
220
220
|
return d;
|
|
221
221
|
};
|
|
222
|
-
this.
|
|
223
|
-
b.deleteTexture && b.deleteTexture(
|
|
222
|
+
this.Lb = function(m) {
|
|
223
|
+
b.deleteTexture && b.deleteTexture(m);
|
|
224
224
|
};
|
|
225
|
-
this.
|
|
225
|
+
this.Kb = function(m) {
|
|
226
226
|
if (!a()) {
|
|
227
227
|
return null;
|
|
228
228
|
}
|
|
@@ -231,7 +231,7 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
231
231
|
return null;
|
|
232
232
|
}
|
|
233
233
|
b.bindTexture(b.TEXTURE_2D, u);
|
|
234
|
-
b.texImage2D(b.TEXTURE_2D, 0, b.RGBA, b.RGBA, b.UNSIGNED_BYTE,
|
|
234
|
+
b.texImage2D(b.TEXTURE_2D, 0, b.RGBA, b.RGBA, b.UNSIGNED_BYTE, m);
|
|
235
235
|
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_S, b.CLAMP_TO_EDGE);
|
|
236
236
|
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_T, b.CLAMP_TO_EDGE);
|
|
237
237
|
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MAG_FILTER, b.LINEAR);
|
|
@@ -239,14 +239,14 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
239
239
|
return u;
|
|
240
240
|
};
|
|
241
241
|
const n = new ka(8), t = new ka(8), x = new ka(10), y = new ka(10);
|
|
242
|
-
this.
|
|
242
|
+
this.Ob = function(m, u, r, D, I) {
|
|
243
243
|
if (a()) {
|
|
244
|
-
var w = n.push(
|
|
244
|
+
var w = n.push(m), L = t.push(u);
|
|
245
245
|
if (b.canvas) {
|
|
246
246
|
if (b.canvas.width != w || b.canvas.height != L) {
|
|
247
247
|
b.canvas.width = w, b.canvas.height = L;
|
|
248
248
|
}
|
|
249
|
-
b.viewport(0, L - u,
|
|
249
|
+
b.viewport(0, L - u, m, u);
|
|
250
250
|
b.disable(b.SCISSOR_TEST);
|
|
251
251
|
b.clearColor(0, 0, 0, 0);
|
|
252
252
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
@@ -275,11 +275,11 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
275
275
|
w = R = 0;
|
|
276
276
|
for (const K of r) {
|
|
277
277
|
K.image.Ja != qa && (b.bindTexture(b.TEXTURE_2D, K.image.Ia || null), qa = K.image.Ja);
|
|
278
|
-
K.
|
|
279
|
-
r = 2 /
|
|
278
|
+
K.ic ? (b.scissor(K.Za, L - K.$a - K.jb, K.vc, K.jb), V = !0) : V && (b.scissor(0, L - u, m, u), V = !1);
|
|
279
|
+
r = 2 / m;
|
|
280
280
|
const aa = -2 / u;
|
|
281
281
|
b.uniform4f(e, K.ha[0] * r * K.Aa, K.ha[1] * aa * K.Ba, K.ha[2] * r * K.Aa, K.ha[3] * aa * K.Ba);
|
|
282
|
-
b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.
|
|
282
|
+
b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.dc * K.Aa) - 1, K.ha[5] * aa * K.Ba + aa * (K.$a - K.ec * K.Ba) + 1);
|
|
283
283
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
284
284
|
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
285
285
|
b.drawElements(b.TRIANGLES, K.indices.length, b.UNSIGNED_SHORT, R);
|
|
@@ -294,8 +294,8 @@ const ma = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
294
294
|
this.canvas = function() {
|
|
295
295
|
return a() && b.canvas;
|
|
296
296
|
};
|
|
297
|
-
}(), oa =
|
|
298
|
-
|
|
297
|
+
}(), oa = l.onRuntimeInitialized;
|
|
298
|
+
l.onRuntimeInitialized = function() {
|
|
299
299
|
function a(q) {
|
|
300
300
|
switch(q) {
|
|
301
301
|
case n.srcOver:
|
|
@@ -336,7 +336,7 @@ m.onRuntimeInitialized = function() {
|
|
|
336
336
|
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
337
337
|
}
|
|
338
338
|
function c() {
|
|
339
|
-
0 < L.length && (na.
|
|
339
|
+
0 < L.length && (na.Ob(w.drawWidth(), w.drawHeight(), L, R, V), L = [], V = R = 0, w.reset(512, 512));
|
|
340
340
|
for (const q of I) {
|
|
341
341
|
for (const v of q.I) {
|
|
342
342
|
v();
|
|
@@ -346,17 +346,17 @@ m.onRuntimeInitialized = function() {
|
|
|
346
346
|
I.clear();
|
|
347
347
|
}
|
|
348
348
|
oa && oa();
|
|
349
|
-
var d =
|
|
350
|
-
const e =
|
|
351
|
-
let
|
|
352
|
-
var u =
|
|
349
|
+
var d = l.RenderPaintStyle;
|
|
350
|
+
const e = l.RenderPath, f = l.RenderPaint, g = l.Renderer, k = l.StrokeCap, p = l.StrokeJoin, n = l.BlendMode, t = d.fill, x = d.stroke, y = l.FillRule.evenOdd;
|
|
351
|
+
let m = 1;
|
|
352
|
+
var u = l.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, wa:v} = {}) {
|
|
353
353
|
this.__parent.__construct.call(this);
|
|
354
|
-
this.Ja =
|
|
355
|
-
|
|
354
|
+
this.Ja = m;
|
|
355
|
+
m = m + 1 & 2147483647 || 1;
|
|
356
356
|
this.la = q;
|
|
357
357
|
this.wa = v;
|
|
358
358
|
}, __destruct:function() {
|
|
359
|
-
this.Ia && (na.
|
|
359
|
+
this.Ia && (na.Lb(this.Ia), URL.revokeObjectURL(this.Wa));
|
|
360
360
|
this.__parent.__destruct.call(this);
|
|
361
361
|
}, decode:function(q) {
|
|
362
362
|
var v = this;
|
|
@@ -365,7 +365,7 @@ m.onRuntimeInitialized = function() {
|
|
|
365
365
|
v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
366
366
|
J.onload = function() {
|
|
367
367
|
v.Db = J;
|
|
368
|
-
v.Ia = na.
|
|
368
|
+
v.Ia = na.Kb(J);
|
|
369
369
|
v.size(J.width, J.height);
|
|
370
370
|
v.la && v.la(v);
|
|
371
371
|
};
|
|
@@ -399,7 +399,7 @@ m.onRuntimeInitialized = function() {
|
|
|
399
399
|
},}), D = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
400
400
|
this.Xa = b(q);
|
|
401
401
|
}, thickness:function(q) {
|
|
402
|
-
this.
|
|
402
|
+
this.Hb = q;
|
|
403
403
|
}, join:function(q) {
|
|
404
404
|
switch(q) {
|
|
405
405
|
case p.miter:
|
|
@@ -423,7 +423,7 @@ m.onRuntimeInitialized = function() {
|
|
|
423
423
|
this.Ga = "square";
|
|
424
424
|
}
|
|
425
425
|
}, style:function(q) {
|
|
426
|
-
this.
|
|
426
|
+
this.Gb = q;
|
|
427
427
|
}, blendMode:function(q) {
|
|
428
428
|
this.Cb = a(q);
|
|
429
429
|
}, clearGradient:function() {
|
|
@@ -431,12 +431,12 @@ m.onRuntimeInitialized = function() {
|
|
|
431
431
|
}, linearGradient:function(q, v, J, G) {
|
|
432
432
|
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[],};
|
|
433
433
|
}, radialGradient:function(q, v, J, G) {
|
|
434
|
-
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[],
|
|
434
|
+
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[], bc:!0,};
|
|
435
435
|
}, addStop:function(q, v) {
|
|
436
436
|
this.ja.Qa.push({color:q, stop:v,});
|
|
437
437
|
}, completeGradient:function() {
|
|
438
438
|
}, draw:function(q, v, J, G) {
|
|
439
|
-
let A = this.
|
|
439
|
+
let A = this.Gb;
|
|
440
440
|
var H = this.Xa, E = this.ja;
|
|
441
441
|
const M = q.globalCompositeOperation, ya = q.globalAlpha;
|
|
442
442
|
q.globalCompositeOperation = this.Cb;
|
|
@@ -446,7 +446,7 @@ m.onRuntimeInitialized = function() {
|
|
|
446
446
|
const X = E.yb, ha = E.cb;
|
|
447
447
|
var T = E.eb;
|
|
448
448
|
G = E.Qa;
|
|
449
|
-
E.
|
|
449
|
+
E.bc ? (E = ha - H, T -= X, H = q.createRadialGradient(H, X, 0, H, X, Math.sqrt(E * E + T * T))) : H = q.createLinearGradient(H, X, ha, T);
|
|
450
450
|
for (let Y = 0, ba = G.length; Y < ba; Y++) {
|
|
451
451
|
E = G[Y], H.addColorStop(E.stop, b(E.color));
|
|
452
452
|
}
|
|
@@ -456,7 +456,7 @@ m.onRuntimeInitialized = function() {
|
|
|
456
456
|
switch(A) {
|
|
457
457
|
case x:
|
|
458
458
|
q.strokeStyle = H;
|
|
459
|
-
q.lineWidth = this.
|
|
459
|
+
q.lineWidth = this.Hb;
|
|
460
460
|
q.lineCap = this.Ga;
|
|
461
461
|
q.lineJoin = this.Ha;
|
|
462
462
|
q.stroke(v);
|
|
@@ -469,7 +469,7 @@ m.onRuntimeInitialized = function() {
|
|
|
469
469
|
},});
|
|
470
470
|
const I = new Set();
|
|
471
471
|
let w = null, L = [], R = 0, V = 0;
|
|
472
|
-
var qa =
|
|
472
|
+
var qa = l.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
473
473
|
this.__parent.__construct.call(this);
|
|
474
474
|
this.T = [1, 0, 0, 1, 0, 0];
|
|
475
475
|
this.G = [1.0];
|
|
@@ -519,7 +519,7 @@ m.onRuntimeInitialized = function() {
|
|
|
519
519
|
}, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y, ba) {
|
|
520
520
|
let ac, bc, cc;
|
|
521
521
|
try {
|
|
522
|
-
ac =
|
|
522
|
+
ac = l.HEAPF32.slice(A >> 2, (A >> 2) + H), bc = l.HEAPF32.slice(E >> 2, (E >> 2) + M), cc = l.HEAPU16.slice(ya >> 1, (ya >> 1) + T);
|
|
523
523
|
} catch (tb) {
|
|
524
524
|
console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
|
|
525
525
|
return;
|
|
@@ -539,14 +539,14 @@ m.onRuntimeInitialized = function() {
|
|
|
539
539
|
Y = Ga < E || Ha < M;
|
|
540
540
|
v = ba = 1;
|
|
541
541
|
var ra = Math.ceil(Ga * ba), sa = Math.ceil(Ha * v);
|
|
542
|
-
A = na.
|
|
542
|
+
A = na.cc();
|
|
543
543
|
ra > A && (ba *= A / ra, ra = A);
|
|
544
544
|
sa > A && (v *= A / sa, sa = A);
|
|
545
|
-
w || (w = new
|
|
545
|
+
w || (w = new l.DynamicRectanizer(A), w.reset(512, 512));
|
|
546
546
|
A = w.addRect(ra, sa);
|
|
547
547
|
0 > A && (c(), I.add(this), A = w.addRect(ra, sa), console.assert(0 <= A));
|
|
548
548
|
var dc = A & 65535, ec = A >> 16;
|
|
549
|
-
L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec,
|
|
549
|
+
L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec, dc:X, ec:ha, vc:ra, jb:sa, Aa:ba, Ba:v, Ta:ac, Bb:bc, indices:cc, ic:Y, vb:q.Ja << 1 | (Y ? 1 : 0),});
|
|
550
550
|
R += H;
|
|
551
551
|
V += T;
|
|
552
552
|
var za = this.B, rd = a(J), sd = Math.max(0, G * this.G[this.G.length - 1]);
|
|
@@ -569,7 +569,7 @@ m.onRuntimeInitialized = function() {
|
|
|
569
569
|
}, translate:function(q, v) {
|
|
570
570
|
this.transform(1, 0, 0, 1, q, v);
|
|
571
571
|
},});
|
|
572
|
-
|
|
572
|
+
l.makeRenderer = function(q) {
|
|
573
573
|
const v = new qa(q), J = v.B;
|
|
574
574
|
return new Proxy(v, {get(G, A) {
|
|
575
575
|
if ("function" === typeof G[A]) {
|
|
@@ -594,10 +594,10 @@ m.onRuntimeInitialized = function() {
|
|
|
594
594
|
}
|
|
595
595
|
},});
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
l.decodeImage = function(q, v) {
|
|
598
598
|
(new u({la:v})).decode(q);
|
|
599
599
|
};
|
|
600
|
-
|
|
600
|
+
l.renderFactory = {makeRenderPaint:function() {
|
|
601
601
|
return new D();
|
|
602
602
|
}, makeRenderPath:function() {
|
|
603
603
|
return new r();
|
|
@@ -613,11 +613,11 @@ m.onRuntimeInitialized = function() {
|
|
|
613
613
|
}
|
|
614
614
|
},});
|
|
615
615
|
},};
|
|
616
|
-
let K =
|
|
617
|
-
|
|
618
|
-
const G = new
|
|
616
|
+
let K = l.load, aa = null;
|
|
617
|
+
l.load = function(q, v, J = !0) {
|
|
618
|
+
const G = new l.FallbackFileAssetLoader();
|
|
619
619
|
void 0 !== v && G.addLoader(v);
|
|
620
|
-
J && (v = new
|
|
620
|
+
J && (v = new l.CDNFileAssetLoader(), G.addLoader(v));
|
|
621
621
|
return new Promise(function(A) {
|
|
622
622
|
let H = null;
|
|
623
623
|
aa = {total:0, loaded:0, ready:function() {
|
|
@@ -627,22 +627,22 @@ m.onRuntimeInitialized = function() {
|
|
|
627
627
|
0 == aa.total && A(H);
|
|
628
628
|
});
|
|
629
629
|
};
|
|
630
|
-
let td =
|
|
631
|
-
|
|
630
|
+
let td = l.RendererWrapper.prototype.align;
|
|
631
|
+
l.RendererWrapper.prototype.align = function(q, v, J, G, A = 1.0) {
|
|
632
632
|
td.call(this, q, v, J, G, A);
|
|
633
633
|
};
|
|
634
634
|
d = new ja();
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
635
|
+
l.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
636
|
+
l.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
637
|
+
l.enableFPSCounter = d.Pb.bind(d);
|
|
638
|
+
l.disableFPSCounter = d.Mb;
|
|
639
639
|
d.ob = c;
|
|
640
|
-
|
|
641
|
-
|
|
640
|
+
l.resolveAnimationFrame = c;
|
|
641
|
+
l.cleanup = function() {
|
|
642
642
|
w && w.delete();
|
|
643
643
|
};
|
|
644
644
|
};
|
|
645
|
-
var pa = Object.assign({},
|
|
645
|
+
var pa = Object.assign({}, l), ta = "./this.program", ua = "", va, wa;
|
|
646
646
|
if (fa || ia) {
|
|
647
647
|
ia ? ua = self.location.href : "undefined" != typeof document && document.currentScript && (ua = document.currentScript.src), _scriptName && (ua = _scriptName), ua.startsWith("blob:") ? ua = "" : ua = ua.substr(0, ua.replace(/[?#].*/, "").lastIndexOf("/") + 1), ia && (wa = a => {
|
|
648
648
|
var b = new XMLHttpRequest();
|
|
@@ -665,32 +665,32 @@ if (fa || ia) {
|
|
|
665
665
|
}
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
var Aa =
|
|
669
|
-
Object.assign(
|
|
668
|
+
var Aa = l.print || console.log.bind(console), Ba = l.printErr || console.error.bind(console);
|
|
669
|
+
Object.assign(l, pa);
|
|
670
670
|
pa = null;
|
|
671
|
-
|
|
671
|
+
l.thisProgram && (ta = l.thisProgram);
|
|
672
672
|
var Ca;
|
|
673
|
-
|
|
673
|
+
l.wasmBinary && (Ca = l.wasmBinary);
|
|
674
674
|
var Da, Ea = !1, z, B, Fa, Ia, C, F, Ja, Ka;
|
|
675
675
|
function La() {
|
|
676
676
|
var a = Da.buffer;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
677
|
+
l.HEAP8 = z = new Int8Array(a);
|
|
678
|
+
l.HEAP16 = Fa = new Int16Array(a);
|
|
679
|
+
l.HEAPU8 = B = new Uint8Array(a);
|
|
680
|
+
l.HEAPU16 = Ia = new Uint16Array(a);
|
|
681
|
+
l.HEAP32 = C = new Int32Array(a);
|
|
682
|
+
l.HEAPU32 = F = new Uint32Array(a);
|
|
683
|
+
l.HEAPF32 = Ja = new Float32Array(a);
|
|
684
|
+
l.HEAPF64 = Ka = new Float64Array(a);
|
|
685
685
|
}
|
|
686
686
|
var Ma = [], Na = [], Oa = [];
|
|
687
687
|
function Pa() {
|
|
688
|
-
var a =
|
|
688
|
+
var a = l.preRun.shift();
|
|
689
689
|
Ma.unshift(a);
|
|
690
690
|
}
|
|
691
691
|
var Qa = 0, Ra = null, Sa = null;
|
|
692
692
|
function Ta(a) {
|
|
693
|
-
|
|
693
|
+
l.onAbort?.(a);
|
|
694
694
|
a = "Aborted(" + a + ")";
|
|
695
695
|
Ba(a);
|
|
696
696
|
Ea = !0;
|
|
@@ -733,7 +733,7 @@ function Za(a, b) {
|
|
|
733
733
|
return Ya(c, a, b);
|
|
734
734
|
}));
|
|
735
735
|
}
|
|
736
|
-
var $a, ab, eb = {
|
|
736
|
+
var $a, ab, eb = {484301:(a, b, c, d, e) => {
|
|
737
737
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
738
738
|
return 0;
|
|
739
739
|
}
|
|
@@ -748,7 +748,7 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
748
748
|
window.h.ga.wb = e;
|
|
749
749
|
let f = window.h;
|
|
750
750
|
f.D = [];
|
|
751
|
-
f.
|
|
751
|
+
f.tc = function(g) {
|
|
752
752
|
for (var k = 0; k < f.D.length; ++k) {
|
|
753
753
|
if (null == f.D[k]) {
|
|
754
754
|
return f.D[k] = g, k;
|
|
@@ -766,7 +766,7 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
f.
|
|
769
|
+
f.Wc = function(g) {
|
|
770
770
|
for (var k = 0; k < f.D.length; ++k) {
|
|
771
771
|
if (f.D[k] == g) {
|
|
772
772
|
return f.Ab(k);
|
|
@@ -796,11 +796,11 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
796
796
|
}
|
|
797
797
|
window.h.za += 1;
|
|
798
798
|
return 1;
|
|
799
|
-
},
|
|
799
|
+
}, 486479:() => {
|
|
800
800
|
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
801
801
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
802
802
|
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
803
|
-
},
|
|
803
|
+
}, 486783:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 486887:() => {
|
|
804
804
|
try {
|
|
805
805
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
806
806
|
a.close();
|
|
@@ -808,7 +808,7 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
808
808
|
} catch (c) {
|
|
809
809
|
return 0;
|
|
810
810
|
}
|
|
811
|
-
},
|
|
811
|
+
}, 487058:(a, b, c, d, e, f) => {
|
|
812
812
|
if ("undefined" === typeof window.h) {
|
|
813
813
|
return -1;
|
|
814
814
|
}
|
|
@@ -853,8 +853,8 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
853
853
|
});
|
|
854
854
|
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
855
855
|
g.pb = f;
|
|
856
|
-
return window.h.
|
|
857
|
-
},
|
|
856
|
+
return window.h.tc(g);
|
|
857
|
+
}, 489935:a => window.h.qa(a).L.sampleRate, 490008:a => {
|
|
858
858
|
a = window.h.qa(a);
|
|
859
859
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
860
860
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -862,19 +862,19 @@ var $a, ab, eb = {480578:(a, b, c, d, e) => {
|
|
|
862
862
|
a.L.close();
|
|
863
863
|
a.L = void 0;
|
|
864
864
|
a.pb = void 0;
|
|
865
|
-
},
|
|
865
|
+
}, 490408:a => {
|
|
866
866
|
window.h.Ab(a);
|
|
867
|
-
},
|
|
867
|
+
}, 490458:a => {
|
|
868
868
|
a = window.h.qa(a);
|
|
869
869
|
a.L.resume();
|
|
870
870
|
a.state = window.h.ga.wb;
|
|
871
|
-
},
|
|
871
|
+
}, 490597:a => {
|
|
872
872
|
a = window.h.qa(a);
|
|
873
873
|
a.L.suspend();
|
|
874
874
|
a.state = window.h.ga.stopped;
|
|
875
875
|
}}, fb = a => {
|
|
876
876
|
for (; 0 < a.length;) {
|
|
877
|
-
a.shift()(
|
|
877
|
+
a.shift()(l);
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
function gb() {
|
|
@@ -1082,11 +1082,11 @@ var zb = {open(a) {
|
|
|
1082
1082
|
null === b || 10 === b ? (Aa(qb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1083
1083
|
}, pa(a) {
|
|
1084
1084
|
a.H && 0 < a.H.length && (Aa(qb(a.H, 0)), a.H = []);
|
|
1085
|
-
}, Yb() {
|
|
1086
|
-
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
|
|
1087
1085
|
}, Zb() {
|
|
1088
|
-
return 0;
|
|
1086
|
+
return {Fc:25856, Hc:5, Ec:191, Gc:35387, Dc:[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,]};
|
|
1089
1087
|
}, $b() {
|
|
1088
|
+
return 0;
|
|
1089
|
+
}, ac() {
|
|
1090
1090
|
return [24, 80];
|
|
1091
1091
|
},}, Bb = {Na(a, b) {
|
|
1092
1092
|
null === b || 10 === b ? (Ba(qb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
@@ -1109,23 +1109,23 @@ var O = {O:null, V() {
|
|
|
1109
1109
|
c.timestamp = Date.now();
|
|
1110
1110
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
1111
1111
|
return c;
|
|
1112
|
-
},
|
|
1112
|
+
}, Lc(a) {
|
|
1113
1113
|
return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
|
|
1114
1114
|
}, j:{Y(a) {
|
|
1115
1115
|
var b = {};
|
|
1116
|
-
b.
|
|
1117
|
-
b.
|
|
1116
|
+
b.Jc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1117
|
+
b.Nc = a.id;
|
|
1118
1118
|
b.mode = a.mode;
|
|
1119
|
-
b.
|
|
1119
|
+
b.Rc = 1;
|
|
1120
1120
|
b.uid = 0;
|
|
1121
|
-
b.
|
|
1121
|
+
b.Mc = 0;
|
|
1122
1122
|
b.ya = a.ya;
|
|
1123
1123
|
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;
|
|
1124
|
-
b.
|
|
1125
|
-
b.
|
|
1126
|
-
b.
|
|
1127
|
-
b.
|
|
1128
|
-
b.
|
|
1124
|
+
b.Bc = new Date(a.timestamp);
|
|
1125
|
+
b.Qc = new Date(a.timestamp);
|
|
1126
|
+
b.Ic = new Date(a.timestamp);
|
|
1127
|
+
b.Ib = 4096;
|
|
1128
|
+
b.Cc = Math.ceil(b.size / b.Ib);
|
|
1129
1129
|
return b;
|
|
1130
1130
|
}, R(a, b) {
|
|
1131
1131
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -1256,7 +1256,7 @@ var O = {O:null, V() {
|
|
|
1256
1256
|
} else {
|
|
1257
1257
|
c = !1, b = a.byteOffset;
|
|
1258
1258
|
}
|
|
1259
|
-
return {o:b,
|
|
1259
|
+
return {o:b, Ac:c};
|
|
1260
1260
|
}, nb(a, b, c, d) {
|
|
1261
1261
|
O.m.write(a, b, 0, d, c, !1);
|
|
1262
1262
|
return 0;
|
|
@@ -1361,7 +1361,7 @@ function Gb(a, b) {
|
|
|
1361
1361
|
if (c) {
|
|
1362
1362
|
throw new N(c);
|
|
1363
1363
|
}
|
|
1364
|
-
for (c = Mb[Tb(a.id, b)]; c; c = c.
|
|
1364
|
+
for (c = Mb[Tb(a.id, b)]; c; c = c.hc) {
|
|
1365
1365
|
var d = c.name;
|
|
1366
1366
|
if (c.parent.id === a.id && d === b) {
|
|
1367
1367
|
return c;
|
|
@@ -1372,7 +1372,7 @@ function Gb(a, b) {
|
|
|
1372
1372
|
function Eb(a, b, c, d) {
|
|
1373
1373
|
a = new Pb(a, b, c, d);
|
|
1374
1374
|
b = Tb(a.parent.id, a.name);
|
|
1375
|
-
a.
|
|
1375
|
+
a.hc = Mb[b];
|
|
1376
1376
|
return Mb[b] = a;
|
|
1377
1377
|
}
|
|
1378
1378
|
function Vb(a) {
|
|
@@ -1424,7 +1424,7 @@ function Yb(a, b = -1) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
function Zb(a, b = -1) {
|
|
1426
1426
|
a = Yb(a, b);
|
|
1427
|
-
a.m?.
|
|
1427
|
+
a.m?.Kc?.(a);
|
|
1428
1428
|
return a;
|
|
1429
1429
|
}
|
|
1430
1430
|
var Db = {open(a) {
|
|
@@ -1452,11 +1452,11 @@ function $b(a, b) {
|
|
|
1452
1452
|
throw new N(54);
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
b = {type:a,
|
|
1455
|
+
b = {type:a, Tc:{}, mb:b, fc:[]};
|
|
1456
1456
|
a = a.V(b);
|
|
1457
1457
|
a.V = b;
|
|
1458
1458
|
b.root = a;
|
|
1459
|
-
c ? Ib = a : d && (d.va = b, d.V && d.V.
|
|
1459
|
+
c ? Ib = a : d && (d.va = b, d.V && d.V.fc.push(b));
|
|
1460
1460
|
}
|
|
1461
1461
|
function fc(a, b, c) {
|
|
1462
1462
|
var d = Qb(a, {parent:!0}).node;
|
|
@@ -1567,9 +1567,9 @@ function jc(a, b, c) {
|
|
|
1567
1567
|
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1568
1568
|
}
|
|
1569
1569
|
b &= -131713;
|
|
1570
|
-
e = Yb({node:e, path:Sb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1570
|
+
e = Yb({node:e, path:Sb(e), flags:b, seekable:!0, position:0, m:e.m, uc:[], error:!1});
|
|
1571
1571
|
e.m.open && e.m.open(e);
|
|
1572
|
-
!
|
|
1572
|
+
!l.logReadFiles || b & 1 || (kc ||= {}, a in kc || (kc[a] = 1));
|
|
1573
1573
|
return e;
|
|
1574
1574
|
}
|
|
1575
1575
|
function lc(a, b, c) {
|
|
@@ -1583,7 +1583,7 @@ function lc(a, b, c) {
|
|
|
1583
1583
|
throw new N(28);
|
|
1584
1584
|
}
|
|
1585
1585
|
a.position = a.m.ba(a, b, c);
|
|
1586
|
-
a.
|
|
1586
|
+
a.uc = [];
|
|
1587
1587
|
}
|
|
1588
1588
|
var mc;
|
|
1589
1589
|
function nc(a, b, c) {
|
|
@@ -1699,7 +1699,7 @@ var oc, pc = {}, kc, hb = void 0, qc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1699
1699
|
return null;
|
|
1700
1700
|
}
|
|
1701
1701
|
a = Jc(a, b, c.C);
|
|
1702
|
-
return null === a ? null : c.
|
|
1702
|
+
return null === a ? null : c.Nb(a);
|
|
1703
1703
|
}, Kc = {}, Lc = (a, b) => {
|
|
1704
1704
|
b = Bc(a, b);
|
|
1705
1705
|
return Ac[b];
|
|
@@ -1768,7 +1768,7 @@ function Vc(a, b, c = {}) {
|
|
|
1768
1768
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1769
1769
|
}
|
|
1770
1770
|
if (Cc.hasOwnProperty(a)) {
|
|
1771
|
-
if (c.
|
|
1771
|
+
if (c.Xb) {
|
|
1772
1772
|
return;
|
|
1773
1773
|
}
|
|
1774
1774
|
throw new P(`Cannot register type '${d}' twice`);
|
|
@@ -1801,17 +1801,17 @@ var Yc = (a, b, c) => {
|
|
|
1801
1801
|
a[b].A[d.ea] = d;
|
|
1802
1802
|
}
|
|
1803
1803
|
}, Zc = (a, b, c) => {
|
|
1804
|
-
if (
|
|
1805
|
-
if (void 0 === c || void 0 !==
|
|
1804
|
+
if (l.hasOwnProperty(a)) {
|
|
1805
|
+
if (void 0 === c || void 0 !== l[a].A && void 0 !== l[a].A[c]) {
|
|
1806
1806
|
throw new P(`Cannot register public name '${a}' twice`);
|
|
1807
1807
|
}
|
|
1808
|
-
Yc(
|
|
1809
|
-
if (
|
|
1808
|
+
Yc(l, a, a);
|
|
1809
|
+
if (l.hasOwnProperty(c)) {
|
|
1810
1810
|
throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1811
1811
|
}
|
|
1812
|
-
|
|
1812
|
+
l[a].A[c] = b;
|
|
1813
1813
|
} else {
|
|
1814
|
-
|
|
1814
|
+
l[a] = b, void 0 !== c && (l[a].Sc = c);
|
|
1815
1815
|
}
|
|
1816
1816
|
}, $c = a => {
|
|
1817
1817
|
if (void 0 === a) {
|
|
@@ -1827,9 +1827,9 @@ function ad(a, b, c, d, e, f, g, k) {
|
|
|
1827
1827
|
this.N = c;
|
|
1828
1828
|
this.P = d;
|
|
1829
1829
|
this.C = e;
|
|
1830
|
-
this.
|
|
1830
|
+
this.Sb = f;
|
|
1831
1831
|
this.na = g;
|
|
1832
|
-
this.
|
|
1832
|
+
this.Nb = k;
|
|
1833
1833
|
this.qb = [];
|
|
1834
1834
|
}
|
|
1835
1835
|
var bd = (a, b, c) => {
|
|
@@ -1883,7 +1883,7 @@ function ed(a, b) {
|
|
|
1883
1883
|
if (void 0 === b.g.F) {
|
|
1884
1884
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1885
1885
|
}
|
|
1886
|
-
switch(this.
|
|
1886
|
+
switch(this.oc) {
|
|
1887
1887
|
case 0:
|
|
1888
1888
|
if (b.g.K === this) {
|
|
1889
1889
|
c = b.g.F;
|
|
@@ -1899,7 +1899,7 @@ function ed(a, b) {
|
|
|
1899
1899
|
c = b.g.F;
|
|
1900
1900
|
} else {
|
|
1901
1901
|
var d = b.clone();
|
|
1902
|
-
c = this.
|
|
1902
|
+
c = this.kc(c, tc(() => d["delete"]()));
|
|
1903
1903
|
null !== a && a.push(this.P, c);
|
|
1904
1904
|
}
|
|
1905
1905
|
break;
|
|
@@ -1933,25 +1933,25 @@ function gd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
|
1933
1933
|
this.Ma = c;
|
|
1934
1934
|
this.sa = d;
|
|
1935
1935
|
this.ta = e;
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1936
|
+
this.jc = f;
|
|
1937
|
+
this.oc = g;
|
|
1938
1938
|
this.rb = k;
|
|
1939
1939
|
this.Oa = p;
|
|
1940
|
-
this.
|
|
1940
|
+
this.kc = n;
|
|
1941
1941
|
this.P = t;
|
|
1942
1942
|
e || void 0 !== b.C ? this.toWireType = ed : (this.toWireType = d ? cd : fd, this.M = null);
|
|
1943
1943
|
}
|
|
1944
1944
|
var hd = (a, b, c) => {
|
|
1945
|
-
if (!
|
|
1945
|
+
if (!l.hasOwnProperty(a)) {
|
|
1946
1946
|
throw new Mc("Replacing nonexistent public symbol");
|
|
1947
1947
|
}
|
|
1948
|
-
void 0 !==
|
|
1948
|
+
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].ea = c);
|
|
1949
1949
|
}, jd = [], kd, ld = a => {
|
|
1950
1950
|
var b = jd[a];
|
|
1951
1951
|
b || (a >= jd.length && (jd.length = a + 1), jd[a] = b = kd.get(a));
|
|
1952
1952
|
return b;
|
|
1953
1953
|
}, md = (a, b, c = []) => {
|
|
1954
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,
|
|
1954
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b = ld(b)(...c);
|
|
1955
1955
|
return b;
|
|
1956
1956
|
}, nd = (a, b) => (...c) => md(a, b, c), W = (a, b) => {
|
|
1957
1957
|
a = S(a);
|
|
@@ -1982,9 +1982,9 @@ function ud(a, b, c, d, e) {
|
|
|
1982
1982
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1983
1983
|
}
|
|
1984
1984
|
var g = null !== b[1] && null !== c, k = qd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
1985
|
-
return qc(a, function(...
|
|
1986
|
-
if (
|
|
1987
|
-
throw new P(`function ${a} called with ${
|
|
1985
|
+
return qc(a, function(...m) {
|
|
1986
|
+
if (m.length !== n) {
|
|
1987
|
+
throw new P(`function ${a} called with ${m.length} arguments, expected ${n}`);
|
|
1988
1988
|
}
|
|
1989
1989
|
y.length = 0;
|
|
1990
1990
|
x.length = g ? 2 : 1;
|
|
@@ -1994,9 +1994,9 @@ function ud(a, b, c, d, e) {
|
|
|
1994
1994
|
x[1] = u;
|
|
1995
1995
|
}
|
|
1996
1996
|
for (var r = 0; r < n; ++r) {
|
|
1997
|
-
t[r] = b[r + 2].toWireType(y,
|
|
1997
|
+
t[r] = b[r + 2].toWireType(y, m[r]), x.push(t[r]);
|
|
1998
1998
|
}
|
|
1999
|
-
|
|
1999
|
+
m = d(...x);
|
|
2000
2000
|
if (k) {
|
|
2001
2001
|
Qc(y);
|
|
2002
2002
|
} else {
|
|
@@ -2005,7 +2005,7 @@ function ud(a, b, c, d, e) {
|
|
|
2005
2005
|
null !== b[r].M && b[r].M(D);
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
|
-
u = p ? b[0].fromWireType(
|
|
2008
|
+
u = p ? b[0].fromWireType(m) : void 0;
|
|
2009
2009
|
return u;
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
@@ -2188,90 +2188,90 @@ var vd = (a, b) => {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
return Wd;
|
|
2190
2190
|
}, Wd, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
|
|
2191
|
-
function e(
|
|
2192
|
-
for (
|
|
2193
|
-
|
|
2191
|
+
function e(m, u, r) {
|
|
2192
|
+
for (m = "number" == typeof m ? m.toString() : m || ""; m.length < u;) {
|
|
2193
|
+
m = r[0] + m;
|
|
2194
2194
|
}
|
|
2195
|
-
return
|
|
2195
|
+
return m;
|
|
2196
2196
|
}
|
|
2197
|
-
function f(
|
|
2198
|
-
return e(
|
|
2197
|
+
function f(m, u) {
|
|
2198
|
+
return e(m, u, "0");
|
|
2199
2199
|
}
|
|
2200
|
-
function g(
|
|
2200
|
+
function g(m, u) {
|
|
2201
2201
|
function r(I) {
|
|
2202
2202
|
return 0 > I ? -1 : 0 < I ? 1 : 0;
|
|
2203
2203
|
}
|
|
2204
2204
|
var D;
|
|
2205
|
-
0 === (D = r(
|
|
2205
|
+
0 === (D = r(m.getFullYear() - u.getFullYear())) && 0 === (D = r(m.getMonth() - u.getMonth())) && (D = r(m.getDate() - u.getDate()));
|
|
2206
2206
|
return D;
|
|
2207
2207
|
}
|
|
2208
|
-
function k(
|
|
2209
|
-
switch(
|
|
2208
|
+
function k(m) {
|
|
2209
|
+
switch(m.getDay()) {
|
|
2210
2210
|
case 0:
|
|
2211
|
-
return new Date(
|
|
2211
|
+
return new Date(m.getFullYear() - 1, 11, 29);
|
|
2212
2212
|
case 1:
|
|
2213
|
-
return
|
|
2213
|
+
return m;
|
|
2214
2214
|
case 2:
|
|
2215
|
-
return new Date(
|
|
2215
|
+
return new Date(m.getFullYear(), 0, 3);
|
|
2216
2216
|
case 3:
|
|
2217
|
-
return new Date(
|
|
2217
|
+
return new Date(m.getFullYear(), 0, 2);
|
|
2218
2218
|
case 4:
|
|
2219
|
-
return new Date(
|
|
2219
|
+
return new Date(m.getFullYear(), 0, 1);
|
|
2220
2220
|
case 5:
|
|
2221
|
-
return new Date(
|
|
2221
|
+
return new Date(m.getFullYear() - 1, 11, 31);
|
|
2222
2222
|
case 6:
|
|
2223
|
-
return new Date(
|
|
2223
|
+
return new Date(m.getFullYear() - 1, 11, 30);
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
function p(
|
|
2227
|
-
var u =
|
|
2228
|
-
for (
|
|
2229
|
-
var r =
|
|
2230
|
-
if (u > D -
|
|
2231
|
-
u -= D -
|
|
2226
|
+
function p(m) {
|
|
2227
|
+
var u = m.ca;
|
|
2228
|
+
for (m = new Date((new Date(m.da + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2229
|
+
var r = m.getMonth(), D = (Rd(m.getFullYear()) ? Yd : Zd)[r];
|
|
2230
|
+
if (u > D - m.getDate()) {
|
|
2231
|
+
u -= D - m.getDate() + 1, m.setDate(1), 11 > r ? m.setMonth(r + 1) : (m.setMonth(0), m.setFullYear(m.getFullYear() + 1));
|
|
2232
2232
|
} else {
|
|
2233
|
-
|
|
2233
|
+
m.setDate(m.getDate() + u);
|
|
2234
2234
|
break;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
r = new Date(
|
|
2238
|
-
u = k(new Date(
|
|
2237
|
+
r = new Date(m.getFullYear() + 1, 0, 4);
|
|
2238
|
+
u = k(new Date(m.getFullYear(), 0, 4));
|
|
2239
2239
|
r = k(r);
|
|
2240
|
-
return 0 >= g(u,
|
|
2240
|
+
return 0 >= g(u, m) ? 0 >= g(r, m) ? m.getFullYear() + 1 : m.getFullYear() : m.getFullYear() - 1;
|
|
2241
2241
|
}
|
|
2242
2242
|
var n = F[d + 40 >> 2];
|
|
2243
|
-
d = {
|
|
2243
|
+
d = {rc:C[d >> 2], qc:C[d + 4 >> 2], Ea:C[d + 8 >> 2], Ra:C[d + 12 >> 2], Fa:C[d + 16 >> 2], da:C[d + 20 >> 2], S:C[d + 24 >> 2], ca:C[d + 28 >> 2], Vc:C[d + 32 >> 2], pc:C[d + 36 >> 2], sc:n ? n ? qb(B, n) : "" : ""};
|
|
2244
2244
|
c = c ? qb(B, c) : "";
|
|
2245
2245
|
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2246
2246
|
for (var t in n) {
|
|
2247
2247
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
2248
2248
|
}
|
|
2249
2249
|
var x = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2250
|
-
n = {"%a":
|
|
2251
|
-
|
|
2252
|
-
0 ==
|
|
2253
|
-
return f(
|
|
2254
|
-
}, "%j":
|
|
2255
|
-
for (var u = 0, r = 0; r <=
|
|
2256
|
-
}
|
|
2257
|
-
return f(
|
|
2258
|
-
}, "%m":
|
|
2259
|
-
var u = Math.floor((
|
|
2260
|
-
2 >= (
|
|
2250
|
+
n = {"%a":m => x[m.S].substring(0, 3), "%A":m => x[m.S], "%b":m => y[m.Fa].substring(0, 3), "%B":m => y[m.Fa], "%C":m => f((m.da + 1900) / 100 | 0, 2), "%d":m => f(m.Ra, 2), "%e":m => e(m.Ra, 2, " "), "%g":m => p(m).toString().substring(2), "%G":p, "%H":m => f(m.Ea, 2), "%I":m => {
|
|
2251
|
+
m = m.Ea;
|
|
2252
|
+
0 == m ? m = 12 : 12 < m && (m -= 12);
|
|
2253
|
+
return f(m, 2);
|
|
2254
|
+
}, "%j":m => {
|
|
2255
|
+
for (var u = 0, r = 0; r <= m.Fa - 1; u += (Rd(m.da + 1900) ? Yd : Zd)[r++]) {
|
|
2256
|
+
}
|
|
2257
|
+
return f(m.Ra + u, 3);
|
|
2258
|
+
}, "%m":m => f(m.Fa + 1, 2), "%M":m => f(m.qc, 2), "%n":() => "\n", "%p":m => 0 <= m.Ea && 12 > m.Ea ? "AM" : "PM", "%S":m => f(m.rc, 2), "%t":() => "\t", "%u":m => m.S || 7, "%U":m => f(Math.floor((m.ca + 7 - m.S) / 7), 2), "%V":m => {
|
|
2259
|
+
var u = Math.floor((m.ca + 7 - (m.S + 6) % 7) / 7);
|
|
2260
|
+
2 >= (m.S + 371 - m.ca - 2) % 7 && u++;
|
|
2261
2261
|
if (u) {
|
|
2262
|
-
53 == u && (r = (
|
|
2262
|
+
53 == u && (r = (m.S + 371 - m.ca) % 7, 4 == r || 3 == r && Rd(m.da) || (u = 1));
|
|
2263
2263
|
} else {
|
|
2264
2264
|
u = 52;
|
|
2265
|
-
var r = (
|
|
2266
|
-
(4 == r || 5 == r && Rd(
|
|
2265
|
+
var r = (m.S + 7 - m.ca - 1) % 7;
|
|
2266
|
+
(4 == r || 5 == r && Rd(m.da % 400 - 1)) && u++;
|
|
2267
2267
|
}
|
|
2268
2268
|
return f(u, 2);
|
|
2269
|
-
}, "%w":
|
|
2270
|
-
|
|
2271
|
-
var u = 0 <=
|
|
2272
|
-
|
|
2273
|
-
return (u ? "+" : "-") + String("0000" + (
|
|
2274
|
-
}, "%Z":
|
|
2269
|
+
}, "%w":m => m.S, "%W":m => f(Math.floor((m.ca + 7 - (m.S + 6) % 7) / 7), 2), "%y":m => (m.da + 1900).toString().substring(2), "%Y":m => m.da + 1900, "%z":m => {
|
|
2270
|
+
m = m.pc;
|
|
2271
|
+
var u = 0 <= m;
|
|
2272
|
+
m = Math.abs(m) / 60;
|
|
2273
|
+
return (u ? "+" : "-") + String("0000" + (m / 60 * 100 + m % 60)).slice(-4);
|
|
2274
|
+
}, "%Z":m => m.sc, "%%":() => "%"};
|
|
2275
2275
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2276
2276
|
for (t in n) {
|
|
2277
2277
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
@@ -2324,33 +2324,33 @@ gc("/home/web_user");
|
|
|
2324
2324
|
return b;
|
|
2325
2325
|
}}, "/proc/self/fd");
|
|
2326
2326
|
})();
|
|
2327
|
-
P =
|
|
2327
|
+
P = l.BindingError = class extends Error {
|
|
2328
2328
|
constructor(a) {
|
|
2329
2329
|
super(a);
|
|
2330
2330
|
this.name = "BindingError";
|
|
2331
2331
|
}
|
|
2332
2332
|
};
|
|
2333
2333
|
sc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2334
|
-
|
|
2335
|
-
vc =
|
|
2334
|
+
l.count_emval_handles = () => sc.length / 2 - 5 - rc.length;
|
|
2335
|
+
vc = l.PureVirtualError = uc("PureVirtualError");
|
|
2336
2336
|
for (var ae = Array(256), be = 0; 256 > be; ++be) {
|
|
2337
2337
|
ae[be] = String.fromCharCode(be);
|
|
2338
2338
|
}
|
|
2339
2339
|
wc = ae;
|
|
2340
|
-
|
|
2341
|
-
|
|
2340
|
+
l.getInheritedInstanceCount = () => Object.keys(Ac).length;
|
|
2341
|
+
l.getLiveInheritedInstances = () => {
|
|
2342
2342
|
var a = [], b;
|
|
2343
2343
|
for (b in Ac) {
|
|
2344
2344
|
Ac.hasOwnProperty(b) && a.push(Ac[b]);
|
|
2345
2345
|
}
|
|
2346
2346
|
return a;
|
|
2347
2347
|
};
|
|
2348
|
-
|
|
2349
|
-
|
|
2348
|
+
l.flushPendingDeletes = yc;
|
|
2349
|
+
l.setDelayFunction = a => {
|
|
2350
2350
|
zc = a;
|
|
2351
2351
|
xc.length && zc && zc(yc);
|
|
2352
2352
|
};
|
|
2353
|
-
Mc =
|
|
2353
|
+
Mc = l.InternalError = class extends Error {
|
|
2354
2354
|
constructor(a) {
|
|
2355
2355
|
super(a);
|
|
2356
2356
|
this.name = "InternalError";
|
|
@@ -2402,16 +2402,16 @@ Object.assign(Xc.prototype, {isAliasOf:function(a) {
|
|
|
2402
2402
|
this.g.fa = !0;
|
|
2403
2403
|
return this;
|
|
2404
2404
|
},});
|
|
2405
|
-
Object.assign(gd.prototype, {
|
|
2405
|
+
Object.assign(gd.prototype, {Tb(a) {
|
|
2406
2406
|
this.rb && (a = this.rb(a));
|
|
2407
2407
|
return a;
|
|
2408
2408
|
}, bb(a) {
|
|
2409
2409
|
this.P?.(a);
|
|
2410
2410
|
}, argPackAdvance:8, readValueFromPointer:Rc, fromWireType:function(a) {
|
|
2411
2411
|
function b() {
|
|
2412
|
-
return this.ta ? Oc(this.i.N, {u:this.
|
|
2412
|
+
return this.ta ? Oc(this.i.N, {u:this.jc, o:c, K:this, F:a,}) : Oc(this.i.N, {u:this, o:a,});
|
|
2413
2413
|
}
|
|
2414
|
-
var c = this.
|
|
2414
|
+
var c = this.Tb(a);
|
|
2415
2415
|
if (!c) {
|
|
2416
2416
|
return this.bb(a), null;
|
|
2417
2417
|
}
|
|
@@ -2424,16 +2424,16 @@ Object.assign(gd.prototype, {Sb(a) {
|
|
|
2424
2424
|
this.bb(a);
|
|
2425
2425
|
return d;
|
|
2426
2426
|
}
|
|
2427
|
-
d = this.i.
|
|
2427
|
+
d = this.i.Sb(c);
|
|
2428
2428
|
d = Kc[d];
|
|
2429
2429
|
if (!d) {
|
|
2430
2430
|
return b.call(this);
|
|
2431
2431
|
}
|
|
2432
|
-
d = this.sa ? d.
|
|
2432
|
+
d = this.sa ? d.Jb : d.pointerType;
|
|
2433
2433
|
var e = Jc(c, this.i, d.i);
|
|
2434
2434
|
return null === e ? b.call(this) : this.ta ? Oc(d.i.N, {u:d, o:e, K:this, F:a,}) : Oc(d.i.N, {u:d, o:e,});
|
|
2435
2435
|
},});
|
|
2436
|
-
od =
|
|
2436
|
+
od = l.UnboundTypeError = uc("UnboundTypeError");
|
|
2437
2437
|
var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
2438
2438
|
hb = c;
|
|
2439
2439
|
try {
|
|
@@ -2479,7 +2479,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2479
2479
|
if (!d.s) {
|
|
2480
2480
|
return -59;
|
|
2481
2481
|
}
|
|
2482
|
-
if (d.s.W.
|
|
2482
|
+
if (d.s.W.Zb) {
|
|
2483
2483
|
a = [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,];
|
|
2484
2484
|
var e = gb();
|
|
2485
2485
|
C[e >> 2] = 25856;
|
|
@@ -2501,7 +2501,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2501
2501
|
if (!d.s) {
|
|
2502
2502
|
return -59;
|
|
2503
2503
|
}
|
|
2504
|
-
if (d.s.W
|
|
2504
|
+
if (d.s.W.$b) {
|
|
2505
2505
|
for (e = gb(), a = [], f = 0; 32 > f; f++) {
|
|
2506
2506
|
a.push(z[e + f + 17]);
|
|
2507
2507
|
}
|
|
@@ -2517,15 +2517,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2517
2517
|
return d.s ? -28 : -59;
|
|
2518
2518
|
case 21531:
|
|
2519
2519
|
e = gb();
|
|
2520
|
-
if (!d.m.
|
|
2520
|
+
if (!d.m.Yb) {
|
|
2521
2521
|
throw new N(59);
|
|
2522
2522
|
}
|
|
2523
|
-
return d.m.
|
|
2523
|
+
return d.m.Yb(d, b, e);
|
|
2524
2524
|
case 21523:
|
|
2525
2525
|
if (!d.s) {
|
|
2526
2526
|
return -59;
|
|
2527
2527
|
}
|
|
2528
|
-
d.s.W
|
|
2528
|
+
d.s.W.ac && (f = [24, 80], e = gb(), Fa[e >> 1] = f[0], Fa[e + 2 >> 1] = f[1]);
|
|
2529
2529
|
return 0;
|
|
2530
2530
|
case 21524:
|
|
2531
2531
|
return d.s ? 0 : -59;
|
|
@@ -2615,14 +2615,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2615
2615
|
}, _embind_finalize_value_object:a => {
|
|
2616
2616
|
var b = Pc[a];
|
|
2617
2617
|
delete Pc[a];
|
|
2618
|
-
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.
|
|
2618
|
+
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Wb).concat(e.map(g => g.mc));
|
|
2619
2619
|
U([a], f, g => {
|
|
2620
2620
|
var k = {};
|
|
2621
2621
|
e.forEach((p, n) => {
|
|
2622
|
-
var t = g[n], x = p.
|
|
2623
|
-
k[p.
|
|
2622
|
+
var t = g[n], x = p.Ub, y = p.Vb, m = g[n + e.length], u = p.lc, r = p.nc;
|
|
2623
|
+
k[p.Qb] = {read:D => t.fromWireType(x(y, D)), write:(D, I) => {
|
|
2624
2624
|
var w = [];
|
|
2625
|
-
u(r, D,
|
|
2625
|
+
u(r, D, m.toWireType(w, I));
|
|
2626
2626
|
Qc(w);
|
|
2627
2627
|
}};
|
|
2628
2628
|
});
|
|
@@ -2663,8 +2663,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2663
2663
|
k &&= W(g, k);
|
|
2664
2664
|
n &&= W(p, n);
|
|
2665
2665
|
y = W(x, y);
|
|
2666
|
-
var
|
|
2667
|
-
Zc(
|
|
2666
|
+
var m = $c(t);
|
|
2667
|
+
Zc(m, function() {
|
|
2668
2668
|
pd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2669
2669
|
});
|
|
2670
2670
|
U([a, b, c], d ? [d] : [], u => {
|
|
@@ -2699,8 +2699,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2699
2699
|
r = new gd(t, w, !0, !1, !1);
|
|
2700
2700
|
L = new gd(t + "*", w, !1, !1, !1);
|
|
2701
2701
|
D = new gd(t + " const*", w, !1, !0, !1);
|
|
2702
|
-
Kc[a] = {pointerType:L,
|
|
2703
|
-
hd(
|
|
2702
|
+
Kc[a] = {pointerType:L, Jb:D};
|
|
2703
|
+
hd(m, u);
|
|
2704
2704
|
return [r, L, D];
|
|
2705
2705
|
});
|
|
2706
2706
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
@@ -2721,8 +2721,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2721
2721
|
y = ud(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2722
2722
|
void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
|
|
2723
2723
|
if (p.i.oa) {
|
|
2724
|
-
for (const
|
|
2725
|
-
|
|
2724
|
+
for (const m of p.i.oa) {
|
|
2725
|
+
m.constructor.hasOwnProperty(b) || (m.constructor[b] = y);
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
2728
|
return [];
|
|
@@ -2748,9 +2748,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2748
2748
|
var y = {get() {
|
|
2749
2749
|
return x.fromWireType(f(d));
|
|
2750
2750
|
}, enumerable:!0};
|
|
2751
|
-
k && (k = W(g, k), y.set =
|
|
2751
|
+
k && (k = W(g, k), y.set = m => {
|
|
2752
2752
|
var u = [];
|
|
2753
|
-
k(d, x.toWireType(u,
|
|
2753
|
+
k(d, x.toWireType(u, m));
|
|
2754
2754
|
Qc(u);
|
|
2755
2755
|
});
|
|
2756
2756
|
Object.defineProperty(p.i.constructor, b, y);
|
|
@@ -2791,8 +2791,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2791
2791
|
var x = `${n.name}.${b}`;
|
|
2792
2792
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2793
2793
|
k && n.i.qb.push(b);
|
|
2794
|
-
var y = n.i.N,
|
|
2795
|
-
void 0 ===
|
|
2794
|
+
var y = n.i.N, m = y[b];
|
|
2795
|
+
void 0 === m || void 0 === m.A && m.className !== n.name && m.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Yc(y, b, x), y[b].A[c - 2] = t);
|
|
2796
2796
|
U([], p, u => {
|
|
2797
2797
|
u = ud(x, u, n, f, g);
|
|
2798
2798
|
void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
|
|
@@ -2812,14 +2812,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2812
2812
|
throw new P(x + " is a read-only property");
|
|
2813
2813
|
};
|
|
2814
2814
|
Object.defineProperty(t.i.N, b, y);
|
|
2815
|
-
U([], p ? [c, g] : [c],
|
|
2816
|
-
var u =
|
|
2815
|
+
U([], p ? [c, g] : [c], m => {
|
|
2816
|
+
var u = m[0], r = {get() {
|
|
2817
2817
|
var I = xd(this, t, x + " getter");
|
|
2818
2818
|
return u.fromWireType(e(f, I));
|
|
2819
2819
|
}, enumerable:!0};
|
|
2820
2820
|
if (p) {
|
|
2821
2821
|
p = W(k, p);
|
|
2822
|
-
var D =
|
|
2822
|
+
var D = m[1];
|
|
2823
2823
|
r.set = function(I) {
|
|
2824
2824
|
var w = xd(this, t, x + " setter"), L = [];
|
|
2825
2825
|
p(n, w, D.toWireType(L, I));
|
|
@@ -2883,7 +2883,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2885
2885
|
c = S(c);
|
|
2886
|
-
Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2886
|
+
Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Xb:!0,});
|
|
2887
2887
|
}, _embind_register_std_string:(a, b) => {
|
|
2888
2888
|
b = S(b);
|
|
2889
2889
|
var c = "std::string" === b;
|
|
@@ -2976,10 +2976,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2976
2976
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2977
2977
|
Pc[a] = {name:S(b), Oa:W(c, d), P:W(e, f), fb:[],};
|
|
2978
2978
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2979
|
-
Pc[a].fb.push({
|
|
2979
|
+
Pc[a].fb.push({Qb:S(b), Wb:c, Ub:W(d, e), Vb:f, mc:g, lc:W(k, p), nc:n,});
|
|
2980
2980
|
}, _embind_register_void:(a, b) => {
|
|
2981
2981
|
b = S(b);
|
|
2982
|
-
Uc(a, {
|
|
2982
|
+
Uc(a, {Oc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2983
2983
|
}, toWireType:() => {
|
|
2984
2984
|
},});
|
|
2985
2985
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => B.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
@@ -3011,7 +3011,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3011
3011
|
}));
|
|
3012
3012
|
}, _emval_get_module_property:a => {
|
|
3013
3013
|
a = Nd(a);
|
|
3014
|
-
return tc(
|
|
3014
|
+
return tc(l[a]);
|
|
3015
3015
|
}, _emval_get_property:(a, b) => {
|
|
3016
3016
|
a = Q(a);
|
|
3017
3017
|
b = Q(b);
|
|
@@ -3173,9 +3173,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3173
3173
|
} else if (!n.seekable) {
|
|
3174
3174
|
throw new N(70);
|
|
3175
3175
|
}
|
|
3176
|
-
var
|
|
3177
|
-
y || (n.position +=
|
|
3178
|
-
var u =
|
|
3176
|
+
var m = n.m.read(n, x, k, p, t);
|
|
3177
|
+
y || (n.position += m);
|
|
3178
|
+
var u = m;
|
|
3179
3179
|
if (0 > u) {
|
|
3180
3180
|
var r = -1;
|
|
3181
3181
|
break a;
|
|
@@ -3223,7 +3223,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3223
3223
|
for (var f, g = b = 0; g < c; g++) {
|
|
3224
3224
|
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
3225
3225
|
a += 8;
|
|
3226
|
-
var n = e, t = k, x = p, y = f,
|
|
3226
|
+
var n = e, t = k, x = p, y = f, m = z;
|
|
3227
3227
|
if (0 > x || 0 > y) {
|
|
3228
3228
|
throw new N(28);
|
|
3229
3229
|
}
|
|
@@ -3246,7 +3246,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3246
3246
|
} else if (!n.seekable) {
|
|
3247
3247
|
throw new N(70);
|
|
3248
3248
|
}
|
|
3249
|
-
var r = n.m.write(n,
|
|
3249
|
+
var r = n.m.write(n, m, t, x, y, void 0);
|
|
3250
3250
|
u || (n.position += r);
|
|
3251
3251
|
var D = r;
|
|
3252
3252
|
if (0 > D) {
|
|
@@ -3268,7 +3268,25 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
}, invoke_vii:de, isWindowsBrowser:function() {
|
|
3270
3270
|
return -1 < navigator.platform.indexOf("Win");
|
|
3271
|
-
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)
|
|
3271
|
+
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d), wasm_start_image_decode:function(a, b, c) {
|
|
3272
|
+
b = l.HEAP8.subarray(b, b + c);
|
|
3273
|
+
c = new Uint8Array(c);
|
|
3274
|
+
c.set(b);
|
|
3275
|
+
createImageBitmap(new Blob([c])).then(function(d) {
|
|
3276
|
+
var e = (new OffscreenCanvas(d.width, d.height)).getContext("2d");
|
|
3277
|
+
e.drawImage(d, 0, 0);
|
|
3278
|
+
e = e.getImageData(0, 0, d.width, d.height);
|
|
3279
|
+
var f = e.data.length, g = l.Fb(f);
|
|
3280
|
+
l.wc.set(e.data, g);
|
|
3281
|
+
l.yc(a, d.width, d.height, g, f);
|
|
3282
|
+
}).catch(function(d) {
|
|
3283
|
+
d = d.message || "decode failed";
|
|
3284
|
+
var e = l.Pc(d) + 1, f = l.Fb(e);
|
|
3285
|
+
l.Uc(d, f, e);
|
|
3286
|
+
l.zc(a, f);
|
|
3287
|
+
l.xc(f);
|
|
3288
|
+
});
|
|
3289
|
+
}}, Z = function() {
|
|
3272
3290
|
function a(c) {
|
|
3273
3291
|
Z = c.exports;
|
|
3274
3292
|
Da = Z.memory;
|
|
@@ -3276,38 +3294,41 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3276
3294
|
kd = Z.__indirect_function_table;
|
|
3277
3295
|
Na.unshift(Z.__wasm_call_ctors);
|
|
3278
3296
|
Qa--;
|
|
3279
|
-
|
|
3297
|
+
l.monitorRunDependencies?.(Qa);
|
|
3280
3298
|
0 == Qa && (null !== Ra && (clearInterval(Ra), Ra = null), Sa && (c = Sa, Sa = null, c()));
|
|
3281
3299
|
return Z;
|
|
3282
3300
|
}
|
|
3283
3301
|
var b = {env:ee, wasi_snapshot_preview1:ee,};
|
|
3284
3302
|
Qa++;
|
|
3285
|
-
|
|
3286
|
-
if (
|
|
3303
|
+
l.monitorRunDependencies?.(Qa);
|
|
3304
|
+
if (l.instantiateWasm) {
|
|
3287
3305
|
try {
|
|
3288
|
-
return
|
|
3306
|
+
return l.instantiateWasm(b, a);
|
|
3289
3307
|
} catch (c) {
|
|
3290
3308
|
Ba(`Module.instantiateWasm callback failed with error: ${c}`), da(c);
|
|
3291
3309
|
}
|
|
3292
3310
|
}
|
|
3293
|
-
Va ||= Ua("canvas_advanced.wasm") ? "canvas_advanced.wasm" :
|
|
3311
|
+
Va ||= Ua("canvas_advanced.wasm") ? "canvas_advanced.wasm" : l.locateFile ? l.locateFile("canvas_advanced.wasm", ua) : ua + "canvas_advanced.wasm";
|
|
3294
3312
|
Za(b, function(c) {
|
|
3295
3313
|
a(c.instance);
|
|
3296
3314
|
}).catch(da);
|
|
3297
3315
|
return {};
|
|
3298
|
-
}(), Ec = a => (Ec = Z.free)(a), ce = a => (ce = Z.malloc)(a), Dc = a => (Dc = Z.__getTypeName)(a)
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
var
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3316
|
+
}(), Ec = a => (Ec = Z.free)(a), ce = a => (ce = Z.malloc)(a), Dc = a => (Dc = Z.__getTypeName)(a);
|
|
3317
|
+
l._wasm_image_decode_complete = (a, b, c, d, e) => (l._wasm_image_decode_complete = Z.wasm_image_decode_complete)(a, b, c, d, e);
|
|
3318
|
+
l._wasm_image_decode_error = (a, b) => (l._wasm_image_decode_error = Z.wasm_image_decode_error)(a, b);
|
|
3319
|
+
var bb = l._ma_device__on_notification_unlocked = a => (bb = l._ma_device__on_notification_unlocked = Z.ma_device__on_notification_unlocked)(a);
|
|
3320
|
+
l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = Z.ma_malloc_emscripten)(a, b);
|
|
3321
|
+
l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = Z.ma_free_emscripten)(a, b);
|
|
3322
|
+
var cb = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (cb = l._ma_device_process_pcm_frames_capture__webaudio = Z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), db = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (db = l._ma_device_process_pcm_frames_playback__webaudio = Z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = Z.setThrew)(a, b), ge = a => (ge = Z._emscripten_stack_restore)(a), he = () => (he = Z.emscripten_stack_get_current)();
|
|
3323
|
+
l.dynCall_iiji = (a, b, c, d, e) => (l.dynCall_iiji = Z.dynCall_iiji)(a, b, c, d, e);
|
|
3324
|
+
l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Z.dynCall_jiji)(a, b, c, d, e);
|
|
3325
|
+
l.dynCall_iiiji = (a, b, c, d, e, f) => (l.dynCall_iiiji = Z.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3326
|
+
l.dynCall_iij = (a, b, c, d) => (l.dynCall_iij = Z.dynCall_iij)(a, b, c, d);
|
|
3327
|
+
l.dynCall_jii = (a, b, c) => (l.dynCall_jii = Z.dynCall_jii)(a, b, c);
|
|
3328
|
+
l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Z.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3329
|
+
l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Z.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3330
|
+
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (l.dynCall_iiiiijj = Z.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3331
|
+
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (l.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3311
3332
|
function de(a, b, c) {
|
|
3312
3333
|
var d = he();
|
|
3313
3334
|
try {
|
|
@@ -3327,17 +3348,17 @@ Sa = function je() {
|
|
|
3327
3348
|
};
|
|
3328
3349
|
function ke() {
|
|
3329
3350
|
function a() {
|
|
3330
|
-
if (!ie && (ie = !0,
|
|
3331
|
-
|
|
3351
|
+
if (!ie && (ie = !0, l.calledRun = !0, !Ea)) {
|
|
3352
|
+
l.noFSInit || mc || (mc = !0, l.stdin = l.stdin, l.stdout = l.stdout, l.stderr = l.stderr, l.stdin ? nc("stdin", l.stdin) : ic("/dev/tty", "/dev/stdin"), l.stdout ? nc("stdout", null, l.stdout) : ic("/dev/tty", "/dev/stdout"), l.stderr ? nc("stderr", null, l.stderr) : ic("/dev/tty1", "/dev/stderr"), jc("/dev/stdin", 0), jc("/dev/stdout", 1), jc("/dev/stderr", 1));
|
|
3332
3353
|
Nb = !1;
|
|
3333
3354
|
fb(Na);
|
|
3334
|
-
ca(
|
|
3335
|
-
if (
|
|
3336
|
-
|
|
3355
|
+
ca(l);
|
|
3356
|
+
if (l.onRuntimeInitialized) {
|
|
3357
|
+
l.onRuntimeInitialized();
|
|
3337
3358
|
}
|
|
3338
|
-
if (
|
|
3339
|
-
for ("function" == typeof
|
|
3340
|
-
var b =
|
|
3359
|
+
if (l.postRun) {
|
|
3360
|
+
for ("function" == typeof l.postRun && (l.postRun = [l.postRun]); l.postRun.length;) {
|
|
3361
|
+
var b = l.postRun.shift();
|
|
3341
3362
|
Oa.unshift(b);
|
|
3342
3363
|
}
|
|
3343
3364
|
}
|
|
@@ -3345,23 +3366,23 @@ function ke() {
|
|
|
3345
3366
|
}
|
|
3346
3367
|
}
|
|
3347
3368
|
if (!(0 < Qa)) {
|
|
3348
|
-
if (
|
|
3349
|
-
for ("function" == typeof
|
|
3369
|
+
if (l.preRun) {
|
|
3370
|
+
for ("function" == typeof l.preRun && (l.preRun = [l.preRun]); l.preRun.length;) {
|
|
3350
3371
|
Pa();
|
|
3351
3372
|
}
|
|
3352
3373
|
}
|
|
3353
3374
|
fb(Ma);
|
|
3354
|
-
0 < Qa || (
|
|
3375
|
+
0 < Qa || (l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {
|
|
3355
3376
|
setTimeout(function() {
|
|
3356
|
-
|
|
3377
|
+
l.setStatus("");
|
|
3357
3378
|
}, 1);
|
|
3358
3379
|
a();
|
|
3359
3380
|
}, 1)) : a());
|
|
3360
3381
|
}
|
|
3361
3382
|
}
|
|
3362
|
-
if (
|
|
3363
|
-
for ("function" == typeof
|
|
3364
|
-
|
|
3383
|
+
if (l.preInit) {
|
|
3384
|
+
for ("function" == typeof l.preInit && (l.preInit = [l.preInit]); 0 < l.preInit.length;) {
|
|
3385
|
+
l.preInit.pop()();
|
|
3365
3386
|
}
|
|
3366
3387
|
}
|
|
3367
3388
|
ke();
|