@rive-app/canvas-advanced 2.21.7 → 2.22.0
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 +299 -291
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +26 -1
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -75,61 +75,65 @@ const ia = m.onRuntimeInitialized;
|
|
|
75
75
|
m.onRuntimeInitialized = function() {
|
|
76
76
|
ia && ia();
|
|
77
77
|
let a = m.decodeAudio;
|
|
78
|
-
m.decodeAudio = function(
|
|
79
|
-
|
|
80
|
-
e
|
|
78
|
+
m.decodeAudio = function(e, f) {
|
|
79
|
+
e = a(e);
|
|
80
|
+
f(e);
|
|
81
81
|
};
|
|
82
82
|
let b = m.decodeFont;
|
|
83
|
-
m.decodeFont = function(
|
|
84
|
-
|
|
85
|
-
e
|
|
83
|
+
m.decodeFont = function(e, f) {
|
|
84
|
+
e = b(e);
|
|
85
|
+
f(e);
|
|
86
86
|
};
|
|
87
87
|
const c = m.FileAssetLoader;
|
|
88
|
-
m.ptrToAsset =
|
|
89
|
-
let
|
|
90
|
-
return
|
|
88
|
+
m.ptrToAsset = e => {
|
|
89
|
+
let f = m.ptrToFileAsset(e);
|
|
90
|
+
return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
|
|
91
91
|
};
|
|
92
|
-
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:
|
|
92
|
+
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
93
93
|
this.__parent.__construct.call(this);
|
|
94
|
-
this.Gb =
|
|
95
|
-
}, loadContents:function(
|
|
96
|
-
|
|
97
|
-
return this.Gb(
|
|
94
|
+
this.Gb = e;
|
|
95
|
+
}, loadContents:function(e, f) {
|
|
96
|
+
e = m.ptrToAsset(e);
|
|
97
|
+
return this.Gb(e, f);
|
|
98
98
|
},});
|
|
99
99
|
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
100
100
|
this.__parent.__construct.call(this);
|
|
101
|
-
}, loadContents:function(
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
if ("" ===
|
|
101
|
+
}, loadContents:function(e) {
|
|
102
|
+
let f = m.ptrToAsset(e);
|
|
103
|
+
e = f.cdnUuid;
|
|
104
|
+
if ("" === e) {
|
|
105
105
|
return !1;
|
|
106
106
|
}
|
|
107
|
-
(function(
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
4 ==
|
|
107
|
+
(function(g, n) {
|
|
108
|
+
var p = new XMLHttpRequest();
|
|
109
|
+
p.responseType = "arraybuffer";
|
|
110
|
+
p.onreadystatechange = function() {
|
|
111
|
+
4 == p.readyState && 200 == p.status && n(p);
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})(
|
|
116
|
-
|
|
113
|
+
p.open("GET", g, !0);
|
|
114
|
+
p.send(null);
|
|
115
|
+
})(f.cdnBaseUrl + "/" + e, g => {
|
|
116
|
+
f.decode(new Uint8Array(g.response));
|
|
117
117
|
});
|
|
118
118
|
return !0;
|
|
119
119
|
},});
|
|
120
120
|
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
121
121
|
this.__parent.__construct.call(this);
|
|
122
122
|
this.kb = [];
|
|
123
|
-
}, addLoader:function(
|
|
124
|
-
this.kb.push(
|
|
125
|
-
}, loadContents:function(
|
|
126
|
-
for (let
|
|
127
|
-
if (
|
|
123
|
+
}, addLoader:function(e) {
|
|
124
|
+
this.kb.push(e);
|
|
125
|
+
}, loadContents:function(e, f) {
|
|
126
|
+
for (let g of this.kb) {
|
|
127
|
+
if (g.loadContents(e, f)) {
|
|
128
128
|
return !0;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
return !1;
|
|
132
132
|
},});
|
|
133
|
+
let d = m.computeAlignment;
|
|
134
|
+
m.computeAlignment = function(e, f, g, n, p = 1.0) {
|
|
135
|
+
return d.call(this, e, f, g, n, p);
|
|
136
|
+
};
|
|
133
137
|
};
|
|
134
138
|
const ja = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ka = new function() {
|
|
135
139
|
function a() {
|
|
@@ -170,7 +174,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
170
174
|
}
|
|
171
175
|
},});
|
|
172
176
|
d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
|
|
173
|
-
function
|
|
177
|
+
function B(D, w, M) {
|
|
174
178
|
w = r.createShader(w);
|
|
175
179
|
r.shaderSource(w, M);
|
|
176
180
|
r.compileShader(w);
|
|
@@ -181,8 +185,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
181
185
|
r.attachShader(D, w);
|
|
182
186
|
}
|
|
183
187
|
k = r.createProgram();
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
B(k, 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 }");
|
|
189
|
+
B(k, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
186
190
|
r.bindAttribLocation(k, 0, "vertex");
|
|
187
191
|
r.bindAttribLocation(k, 1, "uv");
|
|
188
192
|
r.linkProgram(k);
|
|
@@ -229,7 +233,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
229
233
|
return t;
|
|
230
234
|
};
|
|
231
235
|
const l = new ha(8), u = new ha(8), v = new ha(10), x = new ha(10);
|
|
232
|
-
this.Qb = function(k, t, r,
|
|
236
|
+
this.Qb = function(k, t, r, B, D) {
|
|
233
237
|
if (a()) {
|
|
234
238
|
var w = l.push(k), M = u.push(t);
|
|
235
239
|
if (b.canvas) {
|
|
@@ -241,18 +245,18 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
241
245
|
b.clearColor(0, 0, 0, 0);
|
|
242
246
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
243
247
|
b.enable(b.SCISSOR_TEST);
|
|
244
|
-
r.sort((
|
|
245
|
-
w = v.push(
|
|
248
|
+
r.sort((H, ba) => ba.wb - H.wb);
|
|
249
|
+
w = v.push(B);
|
|
246
250
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
247
251
|
w = 0;
|
|
248
252
|
for (var T of r) {
|
|
249
253
|
b.bufferSubData(b.ARRAY_BUFFER, w, T.Ta), w += 4 * T.Ta.length;
|
|
250
254
|
}
|
|
251
|
-
console.assert(w == 4 *
|
|
255
|
+
console.assert(w == 4 * B);
|
|
252
256
|
for (var ca of r) {
|
|
253
257
|
b.bufferSubData(b.ARRAY_BUFFER, w, ca.Db), w += 4 * ca.Db.length;
|
|
254
258
|
}
|
|
255
|
-
console.assert(w == 8 *
|
|
259
|
+
console.assert(w == 8 * B);
|
|
256
260
|
w = x.push(D);
|
|
257
261
|
n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
|
|
258
262
|
T = 0;
|
|
@@ -263,20 +267,20 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
263
267
|
ra = 0;
|
|
264
268
|
ca = !0;
|
|
265
269
|
w = T = 0;
|
|
266
|
-
for (const
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
for (const H of r) {
|
|
271
|
+
H.image.Ka != ra && (b.bindTexture(b.TEXTURE_2D, H.image.Ja || null), ra = H.image.Ka);
|
|
272
|
+
H.mc ? (b.scissor(H.Ya, M - H.Za - H.jb, H.Ac, H.jb), ca = !0) : ca && (b.scissor(0, M - t, k, t), ca = !1);
|
|
269
273
|
r = 2 / k;
|
|
270
274
|
const ba = -2 / t;
|
|
271
|
-
b.uniform4f(e,
|
|
272
|
-
b.uniform2f(f,
|
|
275
|
+
b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] * ba * H.Ca, H.ha[2] * r * H.Ba, H.ha[3] * ba * H.Ca);
|
|
276
|
+
b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Ya - H.ic * H.Ba) - 1, H.ha[5] * ba * H.Ca + ba * (H.Za - H.jc * H.Ca) + 1);
|
|
273
277
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
274
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
275
|
-
b.drawElements(b.TRIANGLES,
|
|
276
|
-
w += 4 *
|
|
277
|
-
T += 2 *
|
|
278
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * B);
|
|
279
|
+
b.drawElements(b.TRIANGLES, H.indices.length, b.UNSIGNED_SHORT, T);
|
|
280
|
+
w += 4 * H.Ta.length;
|
|
281
|
+
T += 2 * H.indices.length;
|
|
278
282
|
}
|
|
279
|
-
console.assert(w == 4 *
|
|
283
|
+
console.assert(w == 4 * B);
|
|
280
284
|
console.assert(T == 2 * D);
|
|
281
285
|
}
|
|
282
286
|
}
|
|
@@ -328,8 +332,8 @@ m.onRuntimeInitialized = function() {
|
|
|
328
332
|
function c() {
|
|
329
333
|
0 < M.length && (ka.Qb(w.drawWidth(), w.drawHeight(), M, T, ca), M = [], ca = T = 0, w.reset(512, 512));
|
|
330
334
|
for (const q of D) {
|
|
331
|
-
for (const
|
|
332
|
-
|
|
335
|
+
for (const y of q.H) {
|
|
336
|
+
y();
|
|
333
337
|
}
|
|
334
338
|
q.H = [];
|
|
335
339
|
}
|
|
@@ -339,54 +343,54 @@ m.onRuntimeInitialized = function() {
|
|
|
339
343
|
var d = m.RenderPaintStyle;
|
|
340
344
|
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, x = m.FillRule.evenOdd;
|
|
341
345
|
let k = 1;
|
|
342
|
-
var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:
|
|
346
|
+
var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:y} = {}) {
|
|
343
347
|
this.__parent.__construct.call(this);
|
|
344
348
|
this.Ka = k;
|
|
345
349
|
k = k + 1 & 2147483647 || 1;
|
|
346
350
|
this.la = q;
|
|
347
|
-
this.xa =
|
|
351
|
+
this.xa = y;
|
|
348
352
|
}, __destruct:function() {
|
|
349
353
|
this.Ja && (ka.Mb(this.Ja), URL.revokeObjectURL(this.Wa));
|
|
350
354
|
this.__parent.__destruct.call(this);
|
|
351
355
|
}, decode:function(q) {
|
|
352
|
-
var
|
|
353
|
-
|
|
354
|
-
var
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
356
|
+
var y = this;
|
|
357
|
+
y.xa && y.xa(y);
|
|
358
|
+
var F = new Image();
|
|
359
|
+
y.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
360
|
+
F.onload = function() {
|
|
361
|
+
y.Fb = F;
|
|
362
|
+
y.Ja = ka.Lb(F);
|
|
363
|
+
y.size(F.width, F.height);
|
|
364
|
+
y.la && y.la(y);
|
|
361
365
|
};
|
|
362
|
-
|
|
366
|
+
F.src = y.Wa;
|
|
363
367
|
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
364
368
|
this.__parent.__construct.call(this);
|
|
365
369
|
this.T = new Path2D();
|
|
366
370
|
}, rewind:function() {
|
|
367
371
|
this.T = new Path2D();
|
|
368
|
-
}, addPath:function(q,
|
|
372
|
+
}, addPath:function(q, y, F, G, A, I, J) {
|
|
369
373
|
var K = this.T, X = K.addPath;
|
|
370
374
|
q = q.T;
|
|
371
375
|
const Q = new DOMMatrix();
|
|
372
|
-
Q.a =
|
|
373
|
-
Q.b =
|
|
374
|
-
Q.c =
|
|
375
|
-
Q.d =
|
|
376
|
+
Q.a = y;
|
|
377
|
+
Q.b = F;
|
|
378
|
+
Q.c = G;
|
|
379
|
+
Q.d = A;
|
|
376
380
|
Q.e = I;
|
|
377
381
|
Q.f = J;
|
|
378
382
|
X.call(K, q, Q);
|
|
379
383
|
}, fillRule:function(q) {
|
|
380
384
|
this.Va = q;
|
|
381
|
-
}, moveTo:function(q,
|
|
382
|
-
this.T.moveTo(q,
|
|
383
|
-
}, lineTo:function(q,
|
|
384
|
-
this.T.lineTo(q,
|
|
385
|
-
}, cubicTo:function(q,
|
|
386
|
-
this.T.bezierCurveTo(q,
|
|
385
|
+
}, moveTo:function(q, y) {
|
|
386
|
+
this.T.moveTo(q, y);
|
|
387
|
+
}, lineTo:function(q, y) {
|
|
388
|
+
this.T.lineTo(q, y);
|
|
389
|
+
}, cubicTo:function(q, y, F, G, A, I) {
|
|
390
|
+
this.T.bezierCurveTo(q, y, F, G, A, I);
|
|
387
391
|
}, close:function() {
|
|
388
392
|
this.T.closePath();
|
|
389
|
-
},}),
|
|
393
|
+
},}), B = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
390
394
|
this.Xa = b(q);
|
|
391
395
|
}, thickness:function(q) {
|
|
392
396
|
this.Ib = q;
|
|
@@ -418,40 +422,40 @@ m.onRuntimeInitialized = function() {
|
|
|
418
422
|
this.Eb = a(q);
|
|
419
423
|
}, clearGradient:function() {
|
|
420
424
|
this.ja = null;
|
|
421
|
-
}, linearGradient:function(q,
|
|
422
|
-
this.ja = {yb:q, zb:
|
|
423
|
-
}, radialGradient:function(q,
|
|
424
|
-
this.ja = {yb:q, zb:
|
|
425
|
-
}, addStop:function(q,
|
|
426
|
-
this.ja.Ra.push({color:q, stop:
|
|
425
|
+
}, linearGradient:function(q, y, F, G) {
|
|
426
|
+
this.ja = {yb:q, zb:y, bb:F, cb:G, Ra:[],};
|
|
427
|
+
}, radialGradient:function(q, y, F, G) {
|
|
428
|
+
this.ja = {yb:q, zb:y, bb:F, cb:G, Ra:[], ec:!0,};
|
|
429
|
+
}, addStop:function(q, y) {
|
|
430
|
+
this.ja.Ra.push({color:q, stop:y,});
|
|
427
431
|
}, completeGradient:function() {
|
|
428
|
-
}, draw:function(q,
|
|
429
|
-
let
|
|
430
|
-
var
|
|
432
|
+
}, draw:function(q, y, F) {
|
|
433
|
+
let G = this.Hb;
|
|
434
|
+
var A = this.Xa, I = this.ja;
|
|
431
435
|
q.globalCompositeOperation = this.Eb;
|
|
432
436
|
if (null != I) {
|
|
433
|
-
|
|
437
|
+
A = I.yb;
|
|
434
438
|
var J = I.zb;
|
|
435
439
|
const X = I.bb;
|
|
436
440
|
var K = I.cb;
|
|
437
441
|
const Q = I.Ra;
|
|
438
|
-
I.ec ? (I = X -
|
|
442
|
+
I.ec ? (I = X - A, K -= J, A = q.createRadialGradient(A, J, 0, A, J, Math.sqrt(I * I + K * K))) : A = q.createLinearGradient(A, J, X, K);
|
|
439
443
|
for (let da = 0, R = Q.length; da < R; da++) {
|
|
440
|
-
J = Q[da],
|
|
444
|
+
J = Q[da], A.addColorStop(J.stop, b(J.color));
|
|
441
445
|
}
|
|
442
|
-
this.Xa =
|
|
446
|
+
this.Xa = A;
|
|
443
447
|
this.ja = null;
|
|
444
448
|
}
|
|
445
|
-
switch(
|
|
449
|
+
switch(G) {
|
|
446
450
|
case v:
|
|
447
|
-
q.strokeStyle =
|
|
451
|
+
q.strokeStyle = A;
|
|
448
452
|
q.lineWidth = this.Ib;
|
|
449
453
|
q.lineCap = this.Ha;
|
|
450
454
|
q.lineJoin = this.Ia;
|
|
451
|
-
q.stroke(
|
|
455
|
+
q.stroke(y);
|
|
452
456
|
break;
|
|
453
457
|
case u:
|
|
454
|
-
q.fillStyle =
|
|
458
|
+
q.fillStyle = A, q.fill(y, F);
|
|
455
459
|
}
|
|
456
460
|
},});
|
|
457
461
|
const D = new Set();
|
|
@@ -472,33 +476,33 @@ m.onRuntimeInitialized = function() {
|
|
|
472
476
|
}
|
|
473
477
|
this.S.splice(q);
|
|
474
478
|
this.H.push(this.C.restore.bind(this.C));
|
|
475
|
-
}, transform:function(q,
|
|
479
|
+
}, transform:function(q, y, F, G, A, I) {
|
|
476
480
|
const J = this.S, K = J.length - 6;
|
|
477
|
-
J.splice(K, 6, J[K] * q + J[K + 2] *
|
|
478
|
-
this.H.push(this.C.transform.bind(this.C, q,
|
|
481
|
+
J.splice(K, 6, J[K] * q + J[K + 2] * y, J[K + 1] * q + J[K + 3] * y, J[K] * F + J[K + 2] * G, J[K + 1] * F + J[K + 3] * G, J[K] * A + J[K + 2] * I + J[K + 4], J[K + 1] * A + J[K + 3] * I + J[K + 5]);
|
|
482
|
+
this.H.push(this.C.transform.bind(this.C, q, y, F, G, A, I));
|
|
479
483
|
}, rotate:function(q) {
|
|
480
|
-
const
|
|
484
|
+
const y = Math.sin(q);
|
|
481
485
|
q = Math.cos(q);
|
|
482
|
-
this.transform(q,
|
|
483
|
-
}, _drawPath:function(q,
|
|
484
|
-
this.H.push(
|
|
485
|
-
}, _drawRiveImage:function(q,
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
488
|
-
var
|
|
486
|
+
this.transform(q, y, -y, q, 0, 0);
|
|
487
|
+
}, _drawPath:function(q, y) {
|
|
488
|
+
this.H.push(y.draw.bind(y, this.C, q.T, q.Va === x ? "evenodd" : "nonzero"));
|
|
489
|
+
}, _drawRiveImage:function(q, y, F) {
|
|
490
|
+
var G = q.Fb;
|
|
491
|
+
if (G) {
|
|
492
|
+
var A = this.C, I = a(y);
|
|
489
493
|
this.H.push(function() {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
+
A.globalCompositeOperation = I;
|
|
495
|
+
A.globalAlpha = F;
|
|
496
|
+
A.drawImage(G, 0, 0);
|
|
497
|
+
A.globalAlpha = 1;
|
|
494
498
|
});
|
|
495
499
|
}
|
|
496
500
|
}, _getMatrix:function(q) {
|
|
497
|
-
const
|
|
498
|
-
for (let
|
|
499
|
-
q[
|
|
501
|
+
const y = this.S, F = y.length - 6;
|
|
502
|
+
for (let G = 0; 6 > G; ++G) {
|
|
503
|
+
q[G] = y[F + G];
|
|
500
504
|
}
|
|
501
|
-
}, _drawImageMesh:function(q,
|
|
505
|
+
}, _drawImageMesh:function(q, y, F, G, A, I, J, K, X, Q) {
|
|
502
506
|
var da = this.C.canvas.width, R = this.C.canvas.height;
|
|
503
507
|
const Yb = X - J, Zb = Q - K;
|
|
504
508
|
J = Math.max(J, 0);
|
|
@@ -519,15 +523,15 @@ m.onRuntimeInitialized = function() {
|
|
|
519
523
|
R = w.addRect(sa, ta);
|
|
520
524
|
0 > R && (c(), D.add(this), R = w.addRect(sa, ta), console.assert(0 <= R));
|
|
521
525
|
var $b = R & 65535, ac = R >> 16;
|
|
522
|
-
M.push({ha:this.S.slice(this.S.length - 6), image:q, Ya:$b, Za:ac, ic:J, jc:K, Ac:sa, jb:ta, Ba:Q, Ca:da, Ta:new Float32Array(
|
|
523
|
-
T +=
|
|
526
|
+
M.push({ha:this.S.slice(this.S.length - 6), image:q, Ya:$b, Za:ac, ic:J, jc:K, Ac:sa, jb:ta, Ba:Q, Ca:da, Ta:new Float32Array(G), Db:new Float32Array(A), indices:new Uint16Array(I), mc:X, wb:q.Ka << 1 | (X ? 1 : 0),});
|
|
527
|
+
T += G.length;
|
|
524
528
|
ca += I.length;
|
|
525
|
-
var za = this.C, qd = a(
|
|
529
|
+
var za = this.C, qd = a(y);
|
|
526
530
|
this.H.push(function() {
|
|
527
531
|
za.save();
|
|
528
532
|
za.resetTransform();
|
|
529
533
|
za.globalCompositeOperation = qd;
|
|
530
|
-
za.globalAlpha =
|
|
534
|
+
za.globalAlpha = F;
|
|
531
535
|
const bc = ka.canvas();
|
|
532
536
|
bc && za.drawImage(bc, $b, ac, sa, ta, J, K, Ga, Ha);
|
|
533
537
|
za.restore();
|
|
@@ -539,39 +543,39 @@ m.onRuntimeInitialized = function() {
|
|
|
539
543
|
D.add(this);
|
|
540
544
|
this.H.push(this.C.clearRect.bind(this.C, 0, 0, this.Ua.width, this.Ua.height));
|
|
541
545
|
}, flush:function() {
|
|
542
|
-
}, translate:function(q,
|
|
543
|
-
this.transform(1, 0, 0, 1, q,
|
|
546
|
+
}, translate:function(q, y) {
|
|
547
|
+
this.transform(1, 0, 0, 1, q, y);
|
|
544
548
|
},});
|
|
545
549
|
m.makeRenderer = function(q) {
|
|
546
|
-
const
|
|
547
|
-
return new Proxy(
|
|
548
|
-
if ("function" === typeof
|
|
550
|
+
const y = new ra(q), F = y.C;
|
|
551
|
+
return new Proxy(y, {get(G, A) {
|
|
552
|
+
if ("function" === typeof G[A]) {
|
|
549
553
|
return function(...I) {
|
|
550
|
-
return
|
|
554
|
+
return G[A].apply(G, I);
|
|
551
555
|
};
|
|
552
556
|
}
|
|
553
|
-
if ("function" === typeof
|
|
554
|
-
if (-1 < ja.indexOf(
|
|
555
|
-
throw Error("RiveException: Method call to '" +
|
|
557
|
+
if ("function" === typeof F[A]) {
|
|
558
|
+
if (-1 < ja.indexOf(A)) {
|
|
559
|
+
throw Error("RiveException: Method call to '" + A + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
556
560
|
}
|
|
557
561
|
return function(...I) {
|
|
558
|
-
|
|
562
|
+
y.H.push(F[A].bind(F, ...I));
|
|
559
563
|
};
|
|
560
564
|
}
|
|
561
|
-
return
|
|
562
|
-
}, set(
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
565
|
-
|
|
565
|
+
return G[A];
|
|
566
|
+
}, set(G, A, I) {
|
|
567
|
+
if (A in F) {
|
|
568
|
+
return y.H.push(() => {
|
|
569
|
+
F[A] = I;
|
|
566
570
|
}), !0;
|
|
567
571
|
}
|
|
568
572
|
},});
|
|
569
573
|
};
|
|
570
|
-
m.decodeImage = function(q,
|
|
571
|
-
(new t({la:
|
|
574
|
+
m.decodeImage = function(q, y) {
|
|
575
|
+
(new t({la:y})).decode(q);
|
|
572
576
|
};
|
|
573
577
|
m.renderFactory = {makeRenderPaint:function() {
|
|
574
|
-
return new
|
|
578
|
+
return new B();
|
|
575
579
|
}, makeRenderPath:function() {
|
|
576
580
|
return new r();
|
|
577
581
|
}, makeRenderImage:function() {
|
|
@@ -581,25 +585,29 @@ m.onRuntimeInitialized = function() {
|
|
|
581
585
|
}, la:() => {
|
|
582
586
|
q.loaded++;
|
|
583
587
|
if (q.loaded === q.total) {
|
|
584
|
-
const
|
|
585
|
-
|
|
588
|
+
const y = q.ready;
|
|
589
|
+
y && (y(), q.ready = null);
|
|
586
590
|
}
|
|
587
591
|
},});
|
|
588
592
|
},};
|
|
589
|
-
let
|
|
590
|
-
m.load = function(q,
|
|
591
|
-
const
|
|
592
|
-
void 0 !==
|
|
593
|
-
|
|
594
|
-
return new Promise(function(
|
|
593
|
+
let H = m.load, ba = null;
|
|
594
|
+
m.load = function(q, y, F = !0) {
|
|
595
|
+
const G = new m.FallbackFileAssetLoader();
|
|
596
|
+
void 0 !== y && G.addLoader(y);
|
|
597
|
+
F && (y = new m.CDNFileAssetLoader(), G.addLoader(y));
|
|
598
|
+
return new Promise(function(A) {
|
|
595
599
|
let I = null;
|
|
596
600
|
ba = {total:0, loaded:0, ready:function() {
|
|
597
|
-
|
|
601
|
+
A(I);
|
|
598
602
|
},};
|
|
599
|
-
I =
|
|
600
|
-
0 == ba.total &&
|
|
603
|
+
I = H(q, G);
|
|
604
|
+
0 == ba.total && A(I);
|
|
601
605
|
});
|
|
602
606
|
};
|
|
607
|
+
let rd = m.RendererWrapper.prototype.align;
|
|
608
|
+
m.RendererWrapper.prototype.align = function(q, y, F, G, A = 1.0) {
|
|
609
|
+
rd.call(this, q, y, F, G, A);
|
|
610
|
+
};
|
|
603
611
|
d = new fa();
|
|
604
612
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
605
613
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
@@ -638,10 +646,10 @@ var ya;
|
|
|
638
646
|
m.wasmBinary && (ya = m.wasmBinary);
|
|
639
647
|
var noExitRuntime = m.noExitRuntime || !0;
|
|
640
648
|
"object" != typeof WebAssembly && Aa("no native wasm support detected");
|
|
641
|
-
var Ba,
|
|
649
|
+
var Ba, z, Ca = !1, C, E, Da, Ea, L, N, Fa, Ia;
|
|
642
650
|
function Ja() {
|
|
643
651
|
var a = Ba.buffer;
|
|
644
|
-
m.HEAP8 =
|
|
652
|
+
m.HEAP8 = C = new Int8Array(a);
|
|
645
653
|
m.HEAP16 = Da = new Int16Array(a);
|
|
646
654
|
m.HEAP32 = L = new Int32Array(a);
|
|
647
655
|
m.HEAPU8 = E = new Uint8Array(a);
|
|
@@ -717,7 +725,7 @@ function Ya(a, b) {
|
|
|
717
725
|
return Xa(c, a, b);
|
|
718
726
|
}));
|
|
719
727
|
}
|
|
720
|
-
var Za, $a, db = {
|
|
728
|
+
var Za, $a, db = {438588:(a, b, c, d, e) => {
|
|
721
729
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
722
730
|
return 0;
|
|
723
731
|
}
|
|
@@ -780,9 +788,9 @@ var Za, $a, db = {438492:(a, b, c, d, e) => {
|
|
|
780
788
|
}
|
|
781
789
|
window.h.Aa += 1;
|
|
782
790
|
return 1;
|
|
783
|
-
},
|
|
791
|
+
}, 440766:() => {
|
|
784
792
|
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
785
|
-
},
|
|
793
|
+
}, 440930:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 441034:() => {
|
|
786
794
|
try {
|
|
787
795
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
788
796
|
a.close();
|
|
@@ -790,7 +798,7 @@ var Za, $a, db = {438492:(a, b, c, d, e) => {
|
|
|
790
798
|
} catch (c) {
|
|
791
799
|
return 0;
|
|
792
800
|
}
|
|
793
|
-
},
|
|
801
|
+
}, 441205:(a, b, c, d, e, f) => {
|
|
794
802
|
if ("undefined" === typeof window.h) {
|
|
795
803
|
return -1;
|
|
796
804
|
}
|
|
@@ -836,7 +844,7 @@ var Za, $a, db = {438492:(a, b, c, d, e) => {
|
|
|
836
844
|
a == window.h.I.ya && g.Z.connect(g.J.destination);
|
|
837
845
|
g.pb = f;
|
|
838
846
|
return window.h.yc(g);
|
|
839
|
-
},
|
|
847
|
+
}, 444082:a => window.h.ra(a).J.sampleRate, 444155:a => {
|
|
840
848
|
a = window.h.ra(a);
|
|
841
849
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
842
850
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -844,13 +852,13 @@ var Za, $a, db = {438492:(a, b, c, d, e) => {
|
|
|
844
852
|
a.J.close();
|
|
845
853
|
a.J = void 0;
|
|
846
854
|
a.pb = void 0;
|
|
847
|
-
},
|
|
855
|
+
}, 444555:a => {
|
|
848
856
|
window.h.Cb(a);
|
|
849
|
-
},
|
|
857
|
+
}, 444605:a => {
|
|
850
858
|
a = window.h.ra(a);
|
|
851
859
|
a.J.resume();
|
|
852
860
|
a.state = window.h.ga.xb;
|
|
853
|
-
},
|
|
861
|
+
}, 444744:a => {
|
|
854
862
|
a = window.h.ra(a);
|
|
855
863
|
a.J.suspend();
|
|
856
864
|
a.state = window.h.ga.stopped;
|
|
@@ -1180,7 +1188,7 @@ var P = {O:null, U() {
|
|
|
1180
1188
|
}
|
|
1181
1189
|
return a;
|
|
1182
1190
|
}, write(a, b, c, d, e, f) {
|
|
1183
|
-
b.buffer ===
|
|
1191
|
+
b.buffer === C.buffer && (f = !1);
|
|
1184
1192
|
if (!d) {
|
|
1185
1193
|
return 0;
|
|
1186
1194
|
}
|
|
@@ -1221,7 +1229,7 @@ var P = {O:null, U() {
|
|
|
1221
1229
|
throw new O(43);
|
|
1222
1230
|
}
|
|
1223
1231
|
a = a.node.j;
|
|
1224
|
-
if (e & 2 || a.buffer !==
|
|
1232
|
+
if (e & 2 || a.buffer !== C.buffer) {
|
|
1225
1233
|
if (0 < c || c + b < a.length) {
|
|
1226
1234
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1227
1235
|
}
|
|
@@ -1231,7 +1239,7 @@ var P = {O:null, U() {
|
|
|
1231
1239
|
if (!b) {
|
|
1232
1240
|
throw new O(48);
|
|
1233
1241
|
}
|
|
1234
|
-
|
|
1242
|
+
C.set(a, b);
|
|
1235
1243
|
} else {
|
|
1236
1244
|
c = !1, b = a.byteOffset;
|
|
1237
1245
|
}
|
|
@@ -1928,34 +1936,34 @@ function pd(a, b, c, d, e) {
|
|
|
1928
1936
|
Rc(x);
|
|
1929
1937
|
} else {
|
|
1930
1938
|
for (var r = g ? 1 : 2; r < b.length; r++) {
|
|
1931
|
-
var
|
|
1932
|
-
null !== b[r].K && b[r].K(
|
|
1939
|
+
var B = 1 === r ? k : u[r - 2];
|
|
1940
|
+
null !== b[r].K && b[r].K(B);
|
|
1933
1941
|
}
|
|
1934
1942
|
}
|
|
1935
1943
|
k = p ? b[0].fromWireType(t) : void 0;
|
|
1936
1944
|
return k;
|
|
1937
1945
|
};
|
|
1938
1946
|
}
|
|
1939
|
-
function
|
|
1947
|
+
function sd(a, b) {
|
|
1940
1948
|
for (var c = [], d = 0; d < a; d++) {
|
|
1941
1949
|
c.push(N[b + 4 * d >> 2]);
|
|
1942
1950
|
}
|
|
1943
1951
|
return c;
|
|
1944
1952
|
}
|
|
1945
|
-
function
|
|
1953
|
+
function td(a, b, c) {
|
|
1946
1954
|
a instanceof Object || V(`${c} with invalid "this": ${a}`);
|
|
1947
1955
|
a instanceof b.i.constructor || V(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1948
1956
|
a.g.o || V(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1949
1957
|
return cd(a.g.o, a.g.u.i, b.i);
|
|
1950
1958
|
}
|
|
1951
|
-
function
|
|
1959
|
+
function ud(a) {
|
|
1952
1960
|
a >= U.h && 0 === --U.get(a).tb && U.Zb(a);
|
|
1953
1961
|
}
|
|
1954
|
-
function
|
|
1962
|
+
function vd(a, b, c) {
|
|
1955
1963
|
switch(b) {
|
|
1956
1964
|
case 0:
|
|
1957
1965
|
return function(d) {
|
|
1958
|
-
return this.fromWireType((c ?
|
|
1966
|
+
return this.fromWireType((c ? C : E)[d]);
|
|
1959
1967
|
};
|
|
1960
1968
|
case 1:
|
|
1961
1969
|
return function(d) {
|
|
@@ -1976,7 +1984,7 @@ function ed(a) {
|
|
|
1976
1984
|
var b = typeof a;
|
|
1977
1985
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1978
1986
|
}
|
|
1979
|
-
function
|
|
1987
|
+
function wd(a, b) {
|
|
1980
1988
|
switch(b) {
|
|
1981
1989
|
case 2:
|
|
1982
1990
|
return function(c) {
|
|
@@ -1990,11 +1998,11 @@ function vd(a, b) {
|
|
|
1990
1998
|
throw new TypeError("Unknown float type: " + a);
|
|
1991
1999
|
}
|
|
1992
2000
|
}
|
|
1993
|
-
function
|
|
2001
|
+
function xd(a, b, c) {
|
|
1994
2002
|
switch(b) {
|
|
1995
2003
|
case 0:
|
|
1996
2004
|
return c ? function(d) {
|
|
1997
|
-
return
|
|
2005
|
+
return C[d];
|
|
1998
2006
|
} : function(d) {
|
|
1999
2007
|
return E[d];
|
|
2000
2008
|
};
|
|
@@ -2014,14 +2022,14 @@ function wd(a, b, c) {
|
|
|
2014
2022
|
throw new TypeError("Unknown integer type: " + a);
|
|
2015
2023
|
}
|
|
2016
2024
|
}
|
|
2017
|
-
var
|
|
2025
|
+
var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, zd = (a, b) => {
|
|
2018
2026
|
var c = a >> 1;
|
|
2019
2027
|
for (var d = c + b / 2; !(c >= d) && Ea[c];) {
|
|
2020
2028
|
++c;
|
|
2021
2029
|
}
|
|
2022
2030
|
c <<= 1;
|
|
2023
|
-
if (32 < c - a &&
|
|
2024
|
-
return
|
|
2031
|
+
if (32 < c - a && yd) {
|
|
2032
|
+
return yd.decode(E.subarray(a, c));
|
|
2025
2033
|
}
|
|
2026
2034
|
c = "";
|
|
2027
2035
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -2032,7 +2040,7 @@ var xd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2032
2040
|
c += String.fromCharCode(e);
|
|
2033
2041
|
}
|
|
2034
2042
|
return c;
|
|
2035
|
-
},
|
|
2043
|
+
}, Ad = (a, b, c) => {
|
|
2036
2044
|
void 0 === c && (c = 2147483647);
|
|
2037
2045
|
if (2 > c) {
|
|
2038
2046
|
return 0;
|
|
@@ -2045,7 +2053,7 @@ var xd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2045
2053
|
}
|
|
2046
2054
|
Da[b >> 1] = 0;
|
|
2047
2055
|
return b - d;
|
|
2048
|
-
},
|
|
2056
|
+
}, Bd = a => 2 * a.length, Cd = (a, b) => {
|
|
2049
2057
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2050
2058
|
var e = L[a + 4 * c >> 2];
|
|
2051
2059
|
if (0 == e) {
|
|
@@ -2055,7 +2063,7 @@ var xd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2055
2063
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2056
2064
|
}
|
|
2057
2065
|
return d;
|
|
2058
|
-
},
|
|
2066
|
+
}, Dd = (a, b, c) => {
|
|
2059
2067
|
void 0 === c && (c = 2147483647);
|
|
2060
2068
|
if (4 > c) {
|
|
2061
2069
|
return 0;
|
|
@@ -2076,44 +2084,44 @@ var xd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2076
2084
|
}
|
|
2077
2085
|
L[b >> 2] = 0;
|
|
2078
2086
|
return b - d;
|
|
2079
|
-
},
|
|
2087
|
+
}, Ed = a => {
|
|
2080
2088
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2081
2089
|
var d = a.charCodeAt(c);
|
|
2082
2090
|
55296 <= d && 57343 >= d && ++c;
|
|
2083
2091
|
b += 4;
|
|
2084
2092
|
}
|
|
2085
2093
|
return b;
|
|
2086
|
-
},
|
|
2087
|
-
function
|
|
2088
|
-
var b =
|
|
2094
|
+
}, Fd = {};
|
|
2095
|
+
function Gd(a) {
|
|
2096
|
+
var b = Fd[a];
|
|
2089
2097
|
return void 0 === b ? W(a) : b;
|
|
2090
2098
|
}
|
|
2091
|
-
var
|
|
2092
|
-
function
|
|
2093
|
-
var b =
|
|
2094
|
-
|
|
2099
|
+
var Hd = [];
|
|
2100
|
+
function Id(a) {
|
|
2101
|
+
var b = Hd.length;
|
|
2102
|
+
Hd.push(a);
|
|
2095
2103
|
return b;
|
|
2096
2104
|
}
|
|
2097
|
-
function
|
|
2105
|
+
function Jd(a, b) {
|
|
2098
2106
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2099
2107
|
c[d] = Fc(N[b + 4 * d >> 2], "parameter " + d);
|
|
2100
2108
|
}
|
|
2101
2109
|
return c;
|
|
2102
2110
|
}
|
|
2103
|
-
var
|
|
2104
|
-
if (!
|
|
2111
|
+
var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
2112
|
+
if (!Nd) {
|
|
2105
2113
|
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
|
|
2106
|
-
for (b in
|
|
2107
|
-
void 0 ===
|
|
2114
|
+
for (b in Md) {
|
|
2115
|
+
void 0 === Md[b] ? delete a[b] : a[b] = Md[b];
|
|
2108
2116
|
}
|
|
2109
2117
|
var c = [];
|
|
2110
2118
|
for (b in a) {
|
|
2111
2119
|
c.push(`${b}=${a[b]}`);
|
|
2112
2120
|
}
|
|
2113
|
-
|
|
2121
|
+
Nd = c;
|
|
2114
2122
|
}
|
|
2115
|
-
return
|
|
2116
|
-
},
|
|
2123
|
+
return Nd;
|
|
2124
|
+
}, Nd, Pd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Qd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sd = (a, b, c, d) => {
|
|
2117
2125
|
function e(k, t, r) {
|
|
2118
2126
|
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < t;) {
|
|
2119
2127
|
k = r[0] + k;
|
|
@@ -2127,9 +2135,9 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2127
2135
|
function r(D) {
|
|
2128
2136
|
return 0 > D ? -1 : 0 < D ? 1 : 0;
|
|
2129
2137
|
}
|
|
2130
|
-
var
|
|
2131
|
-
0 === (
|
|
2132
|
-
return
|
|
2138
|
+
var B;
|
|
2139
|
+
0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
|
|
2140
|
+
return B;
|
|
2133
2141
|
}
|
|
2134
2142
|
function n(k) {
|
|
2135
2143
|
switch(k.getDay()) {
|
|
@@ -2152,9 +2160,9 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2152
2160
|
function p(k) {
|
|
2153
2161
|
var t = k.ca;
|
|
2154
2162
|
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2155
|
-
var r = k.getMonth(),
|
|
2156
|
-
if (t >
|
|
2157
|
-
t -=
|
|
2163
|
+
var r = k.getMonth(), B = (Pd(k.getFullYear()) ? Qd : Rd)[r];
|
|
2164
|
+
if (t > B - k.getDate()) {
|
|
2165
|
+
t -= B - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2158
2166
|
} else {
|
|
2159
2167
|
k.setDate(k.getDate() + t);
|
|
2160
2168
|
break;
|
|
@@ -2178,18 +2186,18 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2178
2186
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2179
2187
|
return f(k, 2);
|
|
2180
2188
|
}, "%j":k => {
|
|
2181
|
-
for (var t = 0, r = 0; r <= k.Ga - 1; t += (
|
|
2189
|
+
for (var t = 0, r = 0; r <= k.Ga - 1; t += (Pd(k.da + 1900) ? Qd : Rd)[r++]) {
|
|
2182
2190
|
}
|
|
2183
2191
|
return f(k.Sa + t, 3);
|
|
2184
2192
|
}, "%m":k => f(k.Ga + 1, 2), "%M":k => f(k.vc, 2), "%n":() => "\n", "%p":k => 0 <= k.Fa && 12 > k.Fa ? "AM" : "PM", "%S":k => f(k.wc, 2), "%t":() => "\t", "%u":k => k.R || 7, "%U":k => f(Math.floor((k.ca + 7 - k.R) / 7), 2), "%V":k => {
|
|
2185
2193
|
var t = Math.floor((k.ca + 7 - (k.R + 6) % 7) / 7);
|
|
2186
2194
|
2 >= (k.R + 371 - k.ca - 2) % 7 && t++;
|
|
2187
2195
|
if (t) {
|
|
2188
|
-
53 == t && (r = (k.R + 371 - k.ca) % 7, 4 == r || 3 == r &&
|
|
2196
|
+
53 == t && (r = (k.R + 371 - k.ca) % 7, 4 == r || 3 == r && Pd(k.da) || (t = 1));
|
|
2189
2197
|
} else {
|
|
2190
2198
|
t = 52;
|
|
2191
2199
|
var r = (k.R + 7 - k.ca - 1) % 7;
|
|
2192
|
-
(4 == r || 5 == r &&
|
|
2200
|
+
(4 == r || 5 == r && Pd(k.da % 400 - 1)) && t++;
|
|
2193
2201
|
}
|
|
2194
2202
|
return f(t, 2);
|
|
2195
2203
|
}, "%w":k => k.R, "%W":k => f(Math.floor((k.ca + 7 - (k.R + 6) % 7) / 7), 2), "%y":k => (k.da + 1900).toString().substring(2), "%Y":k => k.da + 1900, "%z":k => {
|
|
@@ -2207,7 +2215,7 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2207
2215
|
if (u.length > b) {
|
|
2208
2216
|
return 0;
|
|
2209
2217
|
}
|
|
2210
|
-
|
|
2218
|
+
C.set(u, a);
|
|
2211
2219
|
return u.length - 1;
|
|
2212
2220
|
};
|
|
2213
2221
|
function Pb(a, b, c, d) {
|
|
@@ -2295,10 +2303,10 @@ m.count_emval_handles = function() {
|
|
|
2295
2303
|
return a;
|
|
2296
2304
|
};
|
|
2297
2305
|
uc = m.PureVirtualError = tc("PureVirtualError");
|
|
2298
|
-
for (var
|
|
2299
|
-
|
|
2306
|
+
for (var Td = Array(256), Ud = 0; 256 > Ud; ++Ud) {
|
|
2307
|
+
Td[Ud] = String.fromCharCode(Ud);
|
|
2300
2308
|
}
|
|
2301
|
-
vc =
|
|
2309
|
+
vc = Td;
|
|
2302
2310
|
m.getInheritedInstanceCount = function() {
|
|
2303
2311
|
return Object.keys(zc).length;
|
|
2304
2312
|
};
|
|
@@ -2403,7 +2411,7 @@ hd.prototype.fromWireType = function(a) {
|
|
|
2403
2411
|
return null === e ? b.call(this) : this.ua ? Oc(d.i.N, {u:d, o:e, L:this, G:a,}) : Oc(d.i.N, {u:d, o:e,});
|
|
2404
2412
|
};
|
|
2405
2413
|
nd = m.UnboundTypeError = tc("UnboundTypeError");
|
|
2406
|
-
var
|
|
2414
|
+
var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
2407
2415
|
lc = c;
|
|
2408
2416
|
try {
|
|
2409
2417
|
var d = Tb(a);
|
|
@@ -2427,7 +2435,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2427
2435
|
case 8:
|
|
2428
2436
|
return -28;
|
|
2429
2437
|
case 9:
|
|
2430
|
-
return L[
|
|
2438
|
+
return L[Vd() >> 2] = 28, -1;
|
|
2431
2439
|
default:
|
|
2432
2440
|
return -28;
|
|
2433
2441
|
}
|
|
@@ -2456,7 +2464,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2456
2464
|
L[e + 8 >> 2] = 191;
|
|
2457
2465
|
L[e + 12 >> 2] = 35387;
|
|
2458
2466
|
for (var f = 0; 32 > f; f++) {
|
|
2459
|
-
|
|
2467
|
+
C[e + f + 17 >> 0] = b[f] || 0;
|
|
2460
2468
|
}
|
|
2461
2469
|
}
|
|
2462
2470
|
return 0;
|
|
@@ -2472,7 +2480,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2472
2480
|
}
|
|
2473
2481
|
if (d.s.V.cc) {
|
|
2474
2482
|
for (e = mc(), b = [], f = 0; 32 > f; f++) {
|
|
2475
|
-
b.push(
|
|
2483
|
+
b.push(C[e + f + 17 >> 0]);
|
|
2476
2484
|
}
|
|
2477
2485
|
}
|
|
2478
2486
|
return 0;
|
|
@@ -2578,9 +2586,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2578
2586
|
var n = {};
|
|
2579
2587
|
e.forEach((p, l) => {
|
|
2580
2588
|
var u = g[l], v = p.Wb, x = p.Xb, k = g[l + e.length], t = p.qc, r = p.sc;
|
|
2581
|
-
n[p.Sb] = {read:
|
|
2589
|
+
n[p.Sb] = {read:B => u.fromWireType(v(x, B)), write:(B, D) => {
|
|
2582
2590
|
var w = [];
|
|
2583
|
-
t(r,
|
|
2591
|
+
t(r, B, k.toWireType(w, D));
|
|
2584
2592
|
Rc(w);
|
|
2585
2593
|
}};
|
|
2586
2594
|
});
|
|
@@ -2615,7 +2623,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2615
2623
|
return n ? d : e;
|
|
2616
2624
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2617
2625
|
if (1 === c) {
|
|
2618
|
-
var n =
|
|
2626
|
+
var n = C;
|
|
2619
2627
|
} else if (2 === c) {
|
|
2620
2628
|
n = Da;
|
|
2621
2629
|
} else if (4 === c) {
|
|
@@ -2639,9 +2647,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2639
2647
|
t = t[0];
|
|
2640
2648
|
if (d) {
|
|
2641
2649
|
var r = t.i;
|
|
2642
|
-
var
|
|
2650
|
+
var B = r.N;
|
|
2643
2651
|
} else {
|
|
2644
|
-
|
|
2652
|
+
B = Zc.prototype;
|
|
2645
2653
|
}
|
|
2646
2654
|
t = oc(k, function() {
|
|
2647
2655
|
if (Object.getPrototypeOf(this) !== D) {
|
|
@@ -2656,19 +2664,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2656
2664
|
}
|
|
2657
2665
|
return T.apply(this, arguments);
|
|
2658
2666
|
});
|
|
2659
|
-
var D = Object.create(
|
|
2667
|
+
var D = Object.create(B, {constructor:{value:t},});
|
|
2660
2668
|
t.prototype = D;
|
|
2661
2669
|
var w = new bd(u, t, D, x, r, f, n, l);
|
|
2662
2670
|
w.A && (void 0 === w.A.oa && (w.A.oa = []), w.A.oa.push(w));
|
|
2663
2671
|
r = new hd(u, w, !0, !1);
|
|
2664
|
-
|
|
2672
|
+
B = new hd(u + "*", w, !1, !1);
|
|
2665
2673
|
var M = new hd(u + " const*", w, !1, !0);
|
|
2666
|
-
Kc[a] = {pointerType:
|
|
2674
|
+
Kc[a] = {pointerType:B, Kb:M};
|
|
2667
2675
|
jd(k, t);
|
|
2668
|
-
return [r,
|
|
2676
|
+
return [r, B, M];
|
|
2669
2677
|
});
|
|
2670
2678
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2671
|
-
var n =
|
|
2679
|
+
var n = sd(c, d);
|
|
2672
2680
|
b = W(b);
|
|
2673
2681
|
f = Z(e, f);
|
|
2674
2682
|
Y([], [a], function(p) {
|
|
@@ -2722,7 +2730,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2722
2730
|
return [];
|
|
2723
2731
|
});
|
|
2724
2732
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2725
|
-
var g =
|
|
2733
|
+
var g = sd(b, c);
|
|
2726
2734
|
e = Z(d, e);
|
|
2727
2735
|
Y([], [a], function(n) {
|
|
2728
2736
|
n = n[0];
|
|
@@ -2742,7 +2750,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2742
2750
|
return [];
|
|
2743
2751
|
});
|
|
2744
2752
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2745
|
-
var p =
|
|
2753
|
+
var p = sd(c, d);
|
|
2746
2754
|
b = W(b);
|
|
2747
2755
|
f = Z(e, f);
|
|
2748
2756
|
Y([], [a], function(l) {
|
|
@@ -2778,15 +2786,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2778
2786
|
Object.defineProperty(u.i.N, b, x);
|
|
2779
2787
|
Y([], p ? [c, g] : [c], function(k) {
|
|
2780
2788
|
var t = k[0], r = {get() {
|
|
2781
|
-
var D =
|
|
2789
|
+
var D = td(this, u, v + " getter");
|
|
2782
2790
|
return t.fromWireType(e(f, D));
|
|
2783
2791
|
}, enumerable:!0};
|
|
2784
2792
|
if (p) {
|
|
2785
2793
|
p = Z(n, p);
|
|
2786
|
-
var
|
|
2794
|
+
var B = k[1];
|
|
2787
2795
|
r.set = function(D) {
|
|
2788
|
-
var w =
|
|
2789
|
-
p(l, w,
|
|
2796
|
+
var w = td(this, u, v + " setter"), M = [];
|
|
2797
|
+
p(l, w, B.toWireType(M, D));
|
|
2790
2798
|
Rc(M);
|
|
2791
2799
|
};
|
|
2792
2800
|
}
|
|
@@ -2799,7 +2807,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2799
2807
|
b = W(b);
|
|
2800
2808
|
Vc(a, {name:b, fromWireType:function(c) {
|
|
2801
2809
|
var d = rc(c);
|
|
2802
|
-
|
|
2810
|
+
ud(c);
|
|
2803
2811
|
return d;
|
|
2804
2812
|
}, toWireType:function(c, d) {
|
|
2805
2813
|
return sc(d);
|
|
@@ -2814,7 +2822,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2814
2822
|
return this.constructor.values[f];
|
|
2815
2823
|
}, toWireType:function(f, g) {
|
|
2816
2824
|
return g.value;
|
|
2817
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2825
|
+
}, argPackAdvance:8, readValueFromPointer:vd(b, c, d), K:null,});
|
|
2818
2826
|
ad(b, e);
|
|
2819
2827
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2820
2828
|
var d = Fc(a, "enum");
|
|
@@ -2831,9 +2839,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2831
2839
|
return d;
|
|
2832
2840
|
}, toWireType:function(d, e) {
|
|
2833
2841
|
return e;
|
|
2834
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2842
|
+
}, argPackAdvance:8, readValueFromPointer:wd(b, c), K:null,});
|
|
2835
2843
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2836
|
-
var g =
|
|
2844
|
+
var g = sd(b, c);
|
|
2837
2845
|
a = W(a);
|
|
2838
2846
|
e = Z(d, e);
|
|
2839
2847
|
ad(a, function() {
|
|
@@ -2857,7 +2865,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2857
2865
|
} : function(n, p) {
|
|
2858
2866
|
return p;
|
|
2859
2867
|
};
|
|
2860
|
-
Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:
|
|
2868
|
+
Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:xd(b, e, 0 !== d), K:null,});
|
|
2861
2869
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2862
2870
|
function d(f) {
|
|
2863
2871
|
f >>= 2;
|
|
@@ -2899,7 +2907,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2899
2907
|
var f = "string" == typeof e;
|
|
2900
2908
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || V("Cannot pass non-string to std::string");
|
|
2901
2909
|
var g = c && f ? pb(e) : e.length;
|
|
2902
|
-
var n =
|
|
2910
|
+
var n = Wd(4 + g + 1), p = n + 4;
|
|
2903
2911
|
N[n >> 2] = g;
|
|
2904
2912
|
if (c && f) {
|
|
2905
2913
|
qb(e, E, p, g + 1);
|
|
@@ -2924,13 +2932,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2924
2932
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2925
2933
|
c = W(c);
|
|
2926
2934
|
if (2 === b) {
|
|
2927
|
-
var d =
|
|
2928
|
-
var e =
|
|
2929
|
-
var f =
|
|
2935
|
+
var d = zd;
|
|
2936
|
+
var e = Ad;
|
|
2937
|
+
var f = Bd;
|
|
2930
2938
|
var g = () => Ea;
|
|
2931
2939
|
var n = 1;
|
|
2932
2940
|
} else {
|
|
2933
|
-
4 === b && (d =
|
|
2941
|
+
4 === b && (d = Cd, e = Dd, f = Ed, g = () => N, n = 2);
|
|
2934
2942
|
}
|
|
2935
2943
|
Vc(a, {name:c, fromWireType:function(p) {
|
|
2936
2944
|
for (var l = N[p >> 2], u = g(), v, x = p + 4, k = 0; k <= l; ++k) {
|
|
@@ -2943,7 +2951,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2943
2951
|
return v;
|
|
2944
2952
|
}, toWireType:function(p, l) {
|
|
2945
2953
|
"string" != typeof l && V(`Cannot pass non-string to C++ string type ${c}`);
|
|
2946
|
-
var u = f(l), v =
|
|
2954
|
+
var u = f(l), v = Wd(4 + u + b);
|
|
2947
2955
|
N[v >> 2] = u >> n;
|
|
2948
2956
|
e(l, v + 4, u + b);
|
|
2949
2957
|
null !== p && p.push(Ec, v);
|
|
@@ -2967,28 +2975,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2967
2975
|
N[c >> 2] = e;
|
|
2968
2976
|
return b.toWireType(d, a);
|
|
2969
2977
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2970
|
-
a =
|
|
2978
|
+
a = Hd[a];
|
|
2971
2979
|
b = rc(b);
|
|
2972
|
-
c =
|
|
2980
|
+
c = Gd(c);
|
|
2973
2981
|
var f = [];
|
|
2974
2982
|
N[d >> 2] = sc(f);
|
|
2975
2983
|
return a(b, c, f, e);
|
|
2976
2984
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2977
|
-
a =
|
|
2985
|
+
a = Hd[a];
|
|
2978
2986
|
b = rc(b);
|
|
2979
|
-
c =
|
|
2987
|
+
c = Gd(c);
|
|
2980
2988
|
a(b, c, null, d);
|
|
2981
|
-
}, _emval_decref:
|
|
2982
|
-
var c =
|
|
2989
|
+
}, _emval_decref:ud, _emval_get_method_caller:function(a, b) {
|
|
2990
|
+
var c = Jd(a, b), d = c[0];
|
|
2983
2991
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2984
2992
|
return g.name;
|
|
2985
2993
|
}).join("_") + "$";
|
|
2986
|
-
var e =
|
|
2994
|
+
var e = Kd[b];
|
|
2987
2995
|
if (void 0 !== e) {
|
|
2988
2996
|
return e;
|
|
2989
2997
|
}
|
|
2990
2998
|
var f = Array(a - 1);
|
|
2991
|
-
e =
|
|
2999
|
+
e = Id((g, n, p, l) => {
|
|
2992
3000
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
2993
3001
|
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
2994
3002
|
}
|
|
@@ -3000,9 +3008,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3000
3008
|
return d.toWireType(p, g);
|
|
3001
3009
|
}
|
|
3002
3010
|
});
|
|
3003
|
-
return
|
|
3011
|
+
return Kd[b] = e;
|
|
3004
3012
|
}, _emval_get_module_property:function(a) {
|
|
3005
|
-
a =
|
|
3013
|
+
a = Gd(a);
|
|
3006
3014
|
return sc(m[a]);
|
|
3007
3015
|
}, _emval_get_property:function(a, b) {
|
|
3008
3016
|
a = rc(a);
|
|
@@ -3011,13 +3019,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3011
3019
|
}, _emval_incref:function(a) {
|
|
3012
3020
|
4 < a && (U.get(a).tb += 1);
|
|
3013
3021
|
}, _emval_new_cstring:function(a) {
|
|
3014
|
-
return sc(
|
|
3022
|
+
return sc(Gd(a));
|
|
3015
3023
|
}, _emval_new_object:function() {
|
|
3016
3024
|
return sc({});
|
|
3017
3025
|
}, _emval_run_destructors:function(a) {
|
|
3018
3026
|
var b = rc(a);
|
|
3019
3027
|
Rc(b);
|
|
3020
|
-
|
|
3028
|
+
ud(a);
|
|
3021
3029
|
}, _emval_set_property:function(a, b, c) {
|
|
3022
3030
|
a = rc(a);
|
|
3023
3031
|
b = rc(b);
|
|
@@ -3030,12 +3038,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3030
3038
|
}, abort:() => {
|
|
3031
3039
|
Aa("");
|
|
3032
3040
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3033
|
-
|
|
3041
|
+
Ld.length = 0;
|
|
3034
3042
|
var d;
|
|
3035
3043
|
for (c >>= 2; d = E[b++];) {
|
|
3036
|
-
c += 105 != d & c,
|
|
3044
|
+
c += 105 != d & c, Ld.push(105 == d ? L[c] : Ia[c++ >> 1]), ++c;
|
|
3037
3045
|
}
|
|
3038
|
-
return db[a].apply(null,
|
|
3046
|
+
return db[a].apply(null, Ld);
|
|
3039
3047
|
}, emscripten_date_now:function() {
|
|
3040
3048
|
return Date.now();
|
|
3041
3049
|
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => E.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
@@ -3067,18 +3075,18 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3067
3075
|
return !1;
|
|
3068
3076
|
}, environ_get:(a, b) => {
|
|
3069
3077
|
var c = 0;
|
|
3070
|
-
|
|
3078
|
+
Od().forEach(function(d, e) {
|
|
3071
3079
|
var f = b + c;
|
|
3072
3080
|
e = N[a + 4 * e >> 2] = f;
|
|
3073
3081
|
for (f = 0; f < d.length; ++f) {
|
|
3074
|
-
|
|
3082
|
+
C[e++ >> 0] = d.charCodeAt(f);
|
|
3075
3083
|
}
|
|
3076
|
-
|
|
3084
|
+
C[e >> 0] = 0;
|
|
3077
3085
|
c += d.length + 1;
|
|
3078
3086
|
});
|
|
3079
3087
|
return 0;
|
|
3080
3088
|
}, environ_sizes_get:(a, b) => {
|
|
3081
|
-
var c =
|
|
3089
|
+
var c = Od();
|
|
3082
3090
|
N[a >> 2] = c.length;
|
|
3083
3091
|
var d = 0;
|
|
3084
3092
|
c.forEach(function(e) {
|
|
@@ -3116,7 +3124,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3116
3124
|
for (var f, g = b = 0; g < c; g++) {
|
|
3117
3125
|
var n = N[a >> 2], p = N[a + 4 >> 2];
|
|
3118
3126
|
a += 8;
|
|
3119
|
-
var l = e, u = n, v = p, x = f, k =
|
|
3127
|
+
var l = e, u = n, v = p, x = f, k = C;
|
|
3120
3128
|
if (0 > v || 0 > x) {
|
|
3121
3129
|
throw new O(28);
|
|
3122
3130
|
}
|
|
@@ -3140,16 +3148,16 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3140
3148
|
}
|
|
3141
3149
|
var r = l.m.read(l, k, u, v, x);
|
|
3142
3150
|
t || (l.position += r);
|
|
3143
|
-
var
|
|
3144
|
-
if (0 >
|
|
3151
|
+
var B = r;
|
|
3152
|
+
if (0 > B) {
|
|
3145
3153
|
var D = -1;
|
|
3146
3154
|
break a;
|
|
3147
3155
|
}
|
|
3148
|
-
b +=
|
|
3149
|
-
if (
|
|
3156
|
+
b += B;
|
|
3157
|
+
if (B < p) {
|
|
3150
3158
|
break;
|
|
3151
3159
|
}
|
|
3152
|
-
"undefined" !== typeof f && (f +=
|
|
3160
|
+
"undefined" !== typeof f && (f += B);
|
|
3153
3161
|
}
|
|
3154
3162
|
D = b;
|
|
3155
3163
|
}
|
|
@@ -3188,7 +3196,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3188
3196
|
for (var f, g = b = 0; g < c; g++) {
|
|
3189
3197
|
var n = N[a >> 2], p = N[a + 4 >> 2];
|
|
3190
3198
|
a += 8;
|
|
3191
|
-
var l = e, u = n, v = p, x = f, k =
|
|
3199
|
+
var l = e, u = n, v = p, x = f, k = C;
|
|
3192
3200
|
if (0 > v || 0 > x) {
|
|
3193
3201
|
throw new O(28);
|
|
3194
3202
|
}
|
|
@@ -3213,13 +3221,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3213
3221
|
}
|
|
3214
3222
|
var r = l.m.write(l, k, u, v, x, void 0);
|
|
3215
3223
|
t || (l.position += r);
|
|
3216
|
-
var
|
|
3217
|
-
if (0 >
|
|
3224
|
+
var B = r;
|
|
3225
|
+
if (0 > B) {
|
|
3218
3226
|
var D = -1;
|
|
3219
3227
|
break a;
|
|
3220
3228
|
}
|
|
3221
|
-
b +=
|
|
3222
|
-
"undefined" !== typeof f && (f +=
|
|
3229
|
+
b += B;
|
|
3230
|
+
"undefined" !== typeof f && (f += B);
|
|
3223
3231
|
}
|
|
3224
3232
|
D = b;
|
|
3225
3233
|
}
|
|
@@ -3231,14 +3239,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3231
3239
|
}
|
|
3232
3240
|
return w.aa;
|
|
3233
3241
|
}
|
|
3234
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3242
|
+
}, strftime_l:(a, b, c, d) => Sd(a, b, c, d)};
|
|
3235
3243
|
(function() {
|
|
3236
3244
|
function a(c) {
|
|
3237
|
-
|
|
3238
|
-
Ba =
|
|
3245
|
+
z = c = c.exports;
|
|
3246
|
+
Ba = z.memory;
|
|
3239
3247
|
Ja();
|
|
3240
|
-
Ka =
|
|
3241
|
-
Ma.unshift(
|
|
3248
|
+
Ka = z.__indirect_function_table;
|
|
3249
|
+
Ma.unshift(z.__wasm_call_ctors);
|
|
3242
3250
|
Pa--;
|
|
3243
3251
|
m.monitorRunDependencies && m.monitorRunDependencies(Pa);
|
|
3244
3252
|
if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
|
|
@@ -3248,7 +3256,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3248
3256
|
}
|
|
3249
3257
|
return c;
|
|
3250
3258
|
}
|
|
3251
|
-
var b = {env:
|
|
3259
|
+
var b = {env:Xd, wasi_snapshot_preview1:Xd,};
|
|
3252
3260
|
Pa++;
|
|
3253
3261
|
m.monitorRunDependencies && m.monitorRunDependencies(Pa);
|
|
3254
3262
|
if (m.instantiateWasm) {
|
|
@@ -3263,28 +3271,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3263
3271
|
}).catch(ea);
|
|
3264
3272
|
return {};
|
|
3265
3273
|
})();
|
|
3266
|
-
var Ec = a => (Ec =
|
|
3267
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3268
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3269
|
-
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio =
|
|
3270
|
-
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings =
|
|
3271
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3272
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3273
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3274
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3275
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3276
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3277
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3278
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj =
|
|
3279
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj =
|
|
3280
|
-
var
|
|
3281
|
-
Ra = function
|
|
3282
|
-
|
|
3283
|
-
|
|
3274
|
+
var Ec = a => (Ec = z.free)(a), Wd = a => (Wd = z.malloc)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = z.ma_device__on_notification_unlocked)(a);
|
|
3275
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = z.ma_malloc_emscripten)(a, b);
|
|
3276
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = z.ma_free_emscripten)(a, b);
|
|
3277
|
+
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = z.__errno_location)(), Dc = a => (Dc = z.__getTypeName)(a);
|
|
3278
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = z._embind_initialize_bindings)();
|
|
3279
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = z.dynCall_iiji)(a, b, c, d, e);
|
|
3280
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = z.dynCall_jiji)(a, b, c, d, e);
|
|
3281
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = z.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3282
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = z.dynCall_iij)(a, b, c, d);
|
|
3283
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = z.dynCall_jii)(a, b, c);
|
|
3284
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = z.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3285
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = z.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3286
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3287
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3288
|
+
var Yd;
|
|
3289
|
+
Ra = function Zd() {
|
|
3290
|
+
Yd || $d();
|
|
3291
|
+
Yd || (Ra = Zd);
|
|
3284
3292
|
};
|
|
3285
|
-
function
|
|
3293
|
+
function $d() {
|
|
3286
3294
|
function a() {
|
|
3287
|
-
if (!
|
|
3295
|
+
if (!Yd && (Yd = !0, m.calledRun = !0, !Ca)) {
|
|
3288
3296
|
m.noFSInit || hc || (hc = !0, gc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : cc("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : cc("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : cc("/dev/tty1", "/dev/stderr"), ec("/dev/stdin", 0), ec("/dev/stdout", 1), ec("/dev/stderr", 1));
|
|
3289
3297
|
Jb = !1;
|
|
3290
3298
|
eb(Ma);
|
|
@@ -3321,7 +3329,7 @@ if (m.preInit) {
|
|
|
3321
3329
|
m.preInit.pop()();
|
|
3322
3330
|
}
|
|
3323
3331
|
}
|
|
3324
|
-
|
|
3332
|
+
$d();
|
|
3325
3333
|
|
|
3326
3334
|
|
|
3327
3335
|
|