@rive-app/canvas-lite 2.11.0 → 2.12.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/package.json +1 -1
- package/rive.js +886 -829
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -26,47 +26,47 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var h = moduleArg, aa, ba;
|
|
30
|
+
h.ready = new Promise((b, a) => {
|
|
31
31
|
aa = b;
|
|
32
32
|
ba = a;
|
|
33
33
|
});
|
|
34
34
|
function ca() {
|
|
35
|
-
function b(
|
|
36
|
-
const
|
|
35
|
+
function b(m) {
|
|
36
|
+
const l = d;
|
|
37
37
|
c = a = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
|
|
39
|
+
l.forEach(n => {
|
|
40
40
|
try {
|
|
41
|
-
m
|
|
42
|
-
} catch (
|
|
43
|
-
console.error(
|
|
41
|
+
n(m);
|
|
42
|
+
} catch (k) {
|
|
43
|
+
console.error(k);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
this.xa();
|
|
47
47
|
e && e.Ta();
|
|
48
48
|
}
|
|
49
49
|
let a = 0, c = 0, d = new Map(), e = null, g = null;
|
|
50
|
-
this.requestAnimationFrame = function(
|
|
50
|
+
this.requestAnimationFrame = function(m) {
|
|
51
51
|
a || (a = requestAnimationFrame(b.bind(this)));
|
|
52
|
-
const
|
|
53
|
-
d.set(
|
|
54
|
-
return
|
|
52
|
+
const l = ++c;
|
|
53
|
+
d.set(l, m);
|
|
54
|
+
return l;
|
|
55
55
|
};
|
|
56
|
-
this.cancelAnimationFrame = function(
|
|
57
|
-
d.delete(
|
|
56
|
+
this.cancelAnimationFrame = function(m) {
|
|
57
|
+
d.delete(m);
|
|
58
58
|
a && 0 == d.size && (cancelAnimationFrame(a), a = 0);
|
|
59
59
|
};
|
|
60
|
-
this.Ra = function(
|
|
60
|
+
this.Ra = function(m) {
|
|
61
61
|
g && (document.body.remove(g), g = null);
|
|
62
|
-
|
|
63
|
-
g.innerHTML = "RIVE FPS " +
|
|
62
|
+
m || (g = document.createElement("div"), g.style.backgroundColor = "black", g.style.position = "fixed", g.style.right = 0, g.style.top = 0, g.style.color = "white", g.style.padding = "4px", g.innerHTML = "RIVE FPS", m = function(l) {
|
|
63
|
+
g.innerHTML = "RIVE FPS " + l.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(g));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let
|
|
66
|
+
let l = 0, n = 0;
|
|
67
67
|
this.Ta = function() {
|
|
68
|
-
var
|
|
69
|
-
|
|
68
|
+
var k = performance.now();
|
|
69
|
+
n ? (++l, k -= n, 1000 < k && (m(1000 * l / k), l = n = 0)) : (n = k, l = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
@@ -92,48 +92,48 @@ function da(b) {
|
|
|
92
92
|
return c << b;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const ea =
|
|
96
|
-
|
|
95
|
+
const ea = h.onRuntimeInitialized;
|
|
96
|
+
h.onRuntimeInitialized = function() {
|
|
97
97
|
ea && ea();
|
|
98
|
-
let b =
|
|
99
|
-
|
|
98
|
+
let b = h.decodeFont;
|
|
99
|
+
h.decodeFont = function(c, d) {
|
|
100
100
|
c = b(c);
|
|
101
101
|
d(c);
|
|
102
102
|
};
|
|
103
|
-
const a =
|
|
104
|
-
|
|
105
|
-
let d =
|
|
106
|
-
return d.isImage ?
|
|
103
|
+
const a = h.FileAssetLoader;
|
|
104
|
+
h.ptrToAsset = c => {
|
|
105
|
+
let d = h.ptrToFileAsset(c);
|
|
106
|
+
return d.isImage ? h.ptrToImageAsset(c) : d.isFont ? h.ptrToFontAsset(c) : d;
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
h.CustomFileAssetLoader = a.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
109
109
|
this.__parent.__construct.call(this);
|
|
110
110
|
this.Ha = c;
|
|
111
111
|
}, loadContents:function(c, d) {
|
|
112
|
-
c =
|
|
112
|
+
c = h.ptrToAsset(c);
|
|
113
113
|
return this.Ha(c, d);
|
|
114
114
|
},});
|
|
115
|
-
|
|
115
|
+
h.CDNFileAssetLoader = a.extend("CDNFileAssetLoader", {__construct:function() {
|
|
116
116
|
this.__parent.__construct.call(this);
|
|
117
117
|
}, loadContents:function(c) {
|
|
118
|
-
let d =
|
|
118
|
+
let d = h.ptrToAsset(c);
|
|
119
119
|
c = d.cdnUuid;
|
|
120
120
|
if ("" === c) {
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
123
|
(function(e, g) {
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
4 ==
|
|
124
|
+
var m = new XMLHttpRequest();
|
|
125
|
+
m.responseType = "arraybuffer";
|
|
126
|
+
m.onreadystatechange = function() {
|
|
127
|
+
4 == m.readyState && 200 == m.status && g(m);
|
|
128
128
|
};
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
m.open("GET", e, !0);
|
|
130
|
+
m.send(null);
|
|
131
131
|
})(d.cdnBaseUrl + "/" + c, e => {
|
|
132
132
|
d.decode(new Uint8Array(e.response));
|
|
133
133
|
});
|
|
134
134
|
return !0;
|
|
135
135
|
},});
|
|
136
|
-
|
|
136
|
+
h.FallbackFileAssetLoader = a.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
137
137
|
this.__parent.__construct.call(this);
|
|
138
138
|
this.wa = [];
|
|
139
139
|
}, addLoader:function(c) {
|
|
@@ -169,7 +169,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
169
169
|
}
|
|
170
170
|
q = new Proxy(q, {get(D, u) {
|
|
171
171
|
if (D.isContextLost()) {
|
|
172
|
-
if (
|
|
172
|
+
if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", u), n = !0), "function" === typeof D[u]) {
|
|
173
173
|
return function() {
|
|
174
174
|
};
|
|
175
175
|
}
|
|
@@ -180,7 +180,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
180
180
|
}
|
|
181
181
|
}, set(D, u, I) {
|
|
182
182
|
if (D.isContextLost()) {
|
|
183
|
-
|
|
183
|
+
n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + u), n = !0);
|
|
184
184
|
} else {
|
|
185
185
|
return D[u] = I, !0;
|
|
186
186
|
}
|
|
@@ -219,7 +219,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
219
219
|
}
|
|
220
220
|
return !0;
|
|
221
221
|
}
|
|
222
|
-
let a = null, c = 0, d = 0, e = null, g = null,
|
|
222
|
+
let a = null, c = 0, d = 0, e = null, g = null, m = 0, l = 0, n = !1;
|
|
223
223
|
b();
|
|
224
224
|
this.eb = function() {
|
|
225
225
|
b();
|
|
@@ -244,10 +244,10 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
244
244
|
2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
|
|
245
245
|
return r;
|
|
246
246
|
};
|
|
247
|
-
const
|
|
247
|
+
const k = new da(8), t = new da(8), v = new da(10), x = new da(10);
|
|
248
248
|
this.Qa = function(f, r, q, G, D) {
|
|
249
249
|
if (b()) {
|
|
250
|
-
var u =
|
|
250
|
+
var u = k.push(f), I = t.push(r);
|
|
251
251
|
if (a.canvas) {
|
|
252
252
|
if (a.canvas.width != u || a.canvas.height != I) {
|
|
253
253
|
a.canvas.width = u, a.canvas.height = I;
|
|
@@ -259,7 +259,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
259
259
|
a.enable(a.SCISSOR_TEST);
|
|
260
260
|
q.sort((A, W) => W.Ba - A.Ba);
|
|
261
261
|
u = v.push(G);
|
|
262
|
-
|
|
262
|
+
m != u && (a.bufferData(a.ARRAY_BUFFER, 8 * u, a.DYNAMIC_DRAW), m = u);
|
|
263
263
|
u = 0;
|
|
264
264
|
for (var O of q) {
|
|
265
265
|
a.bufferSubData(a.ARRAY_BUFFER, u, O.ia), u += 4 * O.ia.length;
|
|
@@ -270,7 +270,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
270
270
|
}
|
|
271
271
|
console.assert(u == 8 * G);
|
|
272
272
|
u = x.push(D);
|
|
273
|
-
|
|
273
|
+
l != u && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * u, a.DYNAMIC_DRAW), l = u);
|
|
274
274
|
O = 0;
|
|
275
275
|
for (var ia of q) {
|
|
276
276
|
a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, O, ia.indices), O += 2 * ia.indices.length;
|
|
@@ -300,75 +300,75 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
300
300
|
this.canvas = function() {
|
|
301
301
|
return b() && a.canvas;
|
|
302
302
|
};
|
|
303
|
-
}(), la =
|
|
304
|
-
|
|
305
|
-
function b(
|
|
306
|
-
switch(
|
|
307
|
-
case
|
|
303
|
+
}(), la = h.onRuntimeInitialized;
|
|
304
|
+
h.onRuntimeInitialized = function() {
|
|
305
|
+
function b(p) {
|
|
306
|
+
switch(p) {
|
|
307
|
+
case k.srcOver:
|
|
308
308
|
return "source-over";
|
|
309
|
-
case
|
|
309
|
+
case k.screen:
|
|
310
310
|
return "screen";
|
|
311
|
-
case
|
|
311
|
+
case k.overlay:
|
|
312
312
|
return "overlay";
|
|
313
|
-
case
|
|
313
|
+
case k.darken:
|
|
314
314
|
return "darken";
|
|
315
|
-
case
|
|
315
|
+
case k.lighten:
|
|
316
316
|
return "lighten";
|
|
317
|
-
case
|
|
317
|
+
case k.colorDodge:
|
|
318
318
|
return "color-dodge";
|
|
319
|
-
case
|
|
319
|
+
case k.colorBurn:
|
|
320
320
|
return "color-burn";
|
|
321
|
-
case
|
|
321
|
+
case k.hardLight:
|
|
322
322
|
return "hard-light";
|
|
323
|
-
case
|
|
323
|
+
case k.softLight:
|
|
324
324
|
return "soft-light";
|
|
325
|
-
case
|
|
325
|
+
case k.difference:
|
|
326
326
|
return "difference";
|
|
327
|
-
case
|
|
327
|
+
case k.exclusion:
|
|
328
328
|
return "exclusion";
|
|
329
|
-
case
|
|
329
|
+
case k.multiply:
|
|
330
330
|
return "multiply";
|
|
331
|
-
case
|
|
331
|
+
case k.hue:
|
|
332
332
|
return "hue";
|
|
333
|
-
case
|
|
333
|
+
case k.saturation:
|
|
334
334
|
return "saturation";
|
|
335
|
-
case
|
|
335
|
+
case k.color:
|
|
336
336
|
return "color";
|
|
337
|
-
case
|
|
337
|
+
case k.luminosity:
|
|
338
338
|
return "luminosity";
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function a(
|
|
342
|
-
return "rgba(" + ((16711680 &
|
|
341
|
+
function a(p) {
|
|
342
|
+
return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
|
|
343
343
|
}
|
|
344
344
|
function c() {
|
|
345
345
|
0 < I.length && (ha.Qa(u.drawWidth(), u.drawHeight(), I, O, X), I = [], X = O = 0, u.reset(512, 512));
|
|
346
|
-
for (const
|
|
347
|
-
for (const w of
|
|
346
|
+
for (const p of D) {
|
|
347
|
+
for (const w of p.u) {
|
|
348
348
|
w();
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
p.u = [];
|
|
351
351
|
}
|
|
352
352
|
D.clear();
|
|
353
353
|
}
|
|
354
354
|
la && la();
|
|
355
|
-
var d =
|
|
356
|
-
const e =
|
|
355
|
+
var d = h.RenderPaintStyle;
|
|
356
|
+
const e = h.RenderPath, g = h.RenderPaint, m = h.Renderer, l = h.StrokeCap, n = h.StrokeJoin, k = h.BlendMode, t = d.fill, v = d.stroke, x = h.FillRule.evenOdd;
|
|
357
357
|
let f = 1;
|
|
358
|
-
var r =
|
|
358
|
+
var r = h.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:w} = {}) {
|
|
359
359
|
this.__parent.__construct.call(this);
|
|
360
360
|
this.da = f;
|
|
361
361
|
f = f + 1 & 2147483647 || 1;
|
|
362
|
-
this.R =
|
|
362
|
+
this.R = p;
|
|
363
363
|
this.W = w;
|
|
364
364
|
}, __destruct:function() {
|
|
365
365
|
this.ca && (ha.Ma(this.ca), URL.revokeObjectURL(this.la));
|
|
366
366
|
this.__parent.__destruct.call(this);
|
|
367
|
-
}, decode:function(
|
|
367
|
+
}, decode:function(p) {
|
|
368
368
|
var w = this;
|
|
369
369
|
w.W && w.W(w);
|
|
370
370
|
var B = new Image();
|
|
371
|
-
w.la = URL.createObjectURL(new Blob([
|
|
371
|
+
w.la = URL.createObjectURL(new Blob([p], {type:"image/png",}));
|
|
372
372
|
B.onload = function() {
|
|
373
373
|
w.Ga = B;
|
|
374
374
|
w.ca = ha.La(B);
|
|
@@ -381,9 +381,9 @@ p.onRuntimeInitialized = function() {
|
|
|
381
381
|
this.F = new Path2D();
|
|
382
382
|
}, rewind:function() {
|
|
383
383
|
this.F = new Path2D();
|
|
384
|
-
}, addPath:function(
|
|
384
|
+
}, addPath:function(p, w, B, C, z, E, F) {
|
|
385
385
|
var H = this.F, T = H.addPath;
|
|
386
|
-
|
|
386
|
+
p = p.F;
|
|
387
387
|
const K = new DOMMatrix();
|
|
388
388
|
K.a = w;
|
|
389
389
|
K.b = B;
|
|
@@ -391,67 +391,67 @@ p.onRuntimeInitialized = function() {
|
|
|
391
391
|
K.d = z;
|
|
392
392
|
K.e = E;
|
|
393
393
|
K.f = F;
|
|
394
|
-
T.call(H,
|
|
395
|
-
}, fillRule:function(
|
|
396
|
-
this.ka =
|
|
397
|
-
}, moveTo:function(
|
|
398
|
-
this.F.moveTo(
|
|
399
|
-
}, lineTo:function(
|
|
400
|
-
this.F.lineTo(
|
|
401
|
-
}, cubicTo:function(
|
|
402
|
-
this.F.bezierCurveTo(
|
|
394
|
+
T.call(H, p, K);
|
|
395
|
+
}, fillRule:function(p) {
|
|
396
|
+
this.ka = p;
|
|
397
|
+
}, moveTo:function(p, w) {
|
|
398
|
+
this.F.moveTo(p, w);
|
|
399
|
+
}, lineTo:function(p, w) {
|
|
400
|
+
this.F.lineTo(p, w);
|
|
401
|
+
}, cubicTo:function(p, w, B, C, z, E) {
|
|
402
|
+
this.F.bezierCurveTo(p, w, B, C, z, E);
|
|
403
403
|
}, close:function() {
|
|
404
404
|
this.F.closePath();
|
|
405
|
-
},}), G = g.extend("CanvasRenderPaint", {color:function(
|
|
406
|
-
this.ma = a(
|
|
407
|
-
}, thickness:function(
|
|
408
|
-
this.Ja =
|
|
409
|
-
}, join:function(
|
|
410
|
-
switch(
|
|
411
|
-
case
|
|
405
|
+
},}), G = g.extend("CanvasRenderPaint", {color:function(p) {
|
|
406
|
+
this.ma = a(p);
|
|
407
|
+
}, thickness:function(p) {
|
|
408
|
+
this.Ja = p;
|
|
409
|
+
}, join:function(p) {
|
|
410
|
+
switch(p) {
|
|
411
|
+
case n.miter:
|
|
412
412
|
this.ba = "miter";
|
|
413
413
|
break;
|
|
414
|
-
case
|
|
414
|
+
case n.round:
|
|
415
415
|
this.ba = "round";
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
417
|
+
case n.bevel:
|
|
418
418
|
this.ba = "bevel";
|
|
419
419
|
}
|
|
420
|
-
}, cap:function(
|
|
421
|
-
switch(
|
|
422
|
-
case
|
|
420
|
+
}, cap:function(p) {
|
|
421
|
+
switch(p) {
|
|
422
|
+
case l.butt:
|
|
423
423
|
this.aa = "butt";
|
|
424
424
|
break;
|
|
425
|
-
case
|
|
425
|
+
case l.round:
|
|
426
426
|
this.aa = "round";
|
|
427
427
|
break;
|
|
428
|
-
case
|
|
428
|
+
case l.square:
|
|
429
429
|
this.aa = "square";
|
|
430
430
|
}
|
|
431
|
-
}, style:function(
|
|
432
|
-
this.Ia =
|
|
433
|
-
}, blendMode:function(
|
|
434
|
-
this.Fa = b(
|
|
431
|
+
}, style:function(p) {
|
|
432
|
+
this.Ia = p;
|
|
433
|
+
}, blendMode:function(p) {
|
|
434
|
+
this.Fa = b(p);
|
|
435
435
|
}, clearGradient:function() {
|
|
436
436
|
this.P = null;
|
|
437
|
-
}, linearGradient:function(
|
|
438
|
-
this.P = {Ca:
|
|
439
|
-
}, radialGradient:function(
|
|
440
|
-
this.P = {Ca:
|
|
441
|
-
}, addStop:function(
|
|
442
|
-
this.P.ga.push({color:
|
|
437
|
+
}, linearGradient:function(p, w, B, C) {
|
|
438
|
+
this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[],};
|
|
439
|
+
}, radialGradient:function(p, w, B, C) {
|
|
440
|
+
this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[], bb:!0,};
|
|
441
|
+
}, addStop:function(p, w) {
|
|
442
|
+
this.P.ga.push({color:p, stop:w,});
|
|
443
443
|
}, completeGradient:function() {
|
|
444
|
-
}, draw:function(
|
|
444
|
+
}, draw:function(p, w, B) {
|
|
445
445
|
let C = this.Ia;
|
|
446
446
|
var z = this.ma, E = this.P;
|
|
447
|
-
|
|
447
|
+
p.globalCompositeOperation = this.Fa;
|
|
448
448
|
if (null != E) {
|
|
449
449
|
z = E.Ca;
|
|
450
450
|
var F = E.Da;
|
|
451
451
|
const T = E.qa;
|
|
452
452
|
var H = E.ra;
|
|
453
453
|
const K = E.ga;
|
|
454
|
-
E.bb ? (E = T - z, H -= F, z =
|
|
454
|
+
E.bb ? (E = T - z, H -= F, z = p.createRadialGradient(z, F, 0, z, F, Math.sqrt(E * E + H * H))) : z = p.createLinearGradient(z, F, T, H);
|
|
455
455
|
for (let Y = 0, N = K.length; Y < N; Y++) {
|
|
456
456
|
F = K[Y], z.addColorStop(F.stop, a(F.color));
|
|
457
457
|
}
|
|
@@ -460,46 +460,46 @@ p.onRuntimeInitialized = function() {
|
|
|
460
460
|
}
|
|
461
461
|
switch(C) {
|
|
462
462
|
case v:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
463
|
+
p.strokeStyle = z;
|
|
464
|
+
p.lineWidth = this.Ja;
|
|
465
|
+
p.lineCap = this.aa;
|
|
466
|
+
p.lineJoin = this.ba;
|
|
467
|
+
p.stroke(w);
|
|
468
468
|
break;
|
|
469
469
|
case t:
|
|
470
|
-
|
|
470
|
+
p.fillStyle = z, p.fill(w, B);
|
|
471
471
|
}
|
|
472
472
|
},});
|
|
473
473
|
const D = new Set();
|
|
474
474
|
let u = null, I = [], O = 0, X = 0;
|
|
475
|
-
var ia =
|
|
475
|
+
var ia = h.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
|
|
476
476
|
this.__parent.__construct.call(this);
|
|
477
477
|
this.D = [1, 0, 0, 1, 0, 0];
|
|
478
|
-
this.o =
|
|
479
|
-
this.ja =
|
|
478
|
+
this.o = p.getContext("2d");
|
|
479
|
+
this.ja = p;
|
|
480
480
|
this.u = [];
|
|
481
481
|
}, save:function() {
|
|
482
482
|
this.D.push(...this.D.slice(this.D.length - 6));
|
|
483
483
|
this.u.push(this.o.save.bind(this.o));
|
|
484
484
|
}, restore:function() {
|
|
485
|
-
const
|
|
486
|
-
if (6 >
|
|
485
|
+
const p = this.D.length - 6;
|
|
486
|
+
if (6 > p) {
|
|
487
487
|
throw "restore() called without matching save().";
|
|
488
488
|
}
|
|
489
|
-
this.D.splice(
|
|
489
|
+
this.D.splice(p);
|
|
490
490
|
this.u.push(this.o.restore.bind(this.o));
|
|
491
|
-
}, transform:function(
|
|
491
|
+
}, transform:function(p, w, B, C, z, E) {
|
|
492
492
|
const F = this.D, H = F.length - 6;
|
|
493
|
-
F.splice(H, 6, F[H] *
|
|
494
|
-
this.u.push(this.o.transform.bind(this.o,
|
|
495
|
-
}, rotate:function(
|
|
496
|
-
const w = Math.sin(
|
|
497
|
-
|
|
498
|
-
this.transform(
|
|
499
|
-
}, _drawPath:function(
|
|
500
|
-
this.u.push(w.draw.bind(w, this.o,
|
|
501
|
-
}, _drawRiveImage:function(
|
|
502
|
-
var C =
|
|
493
|
+
F.splice(H, 6, F[H] * p + F[H + 2] * w, F[H + 1] * p + F[H + 3] * w, F[H] * B + F[H + 2] * C, F[H + 1] * B + F[H + 3] * C, F[H] * z + F[H + 2] * E + F[H + 4], F[H + 1] * z + F[H + 3] * E + F[H + 5]);
|
|
494
|
+
this.u.push(this.o.transform.bind(this.o, p, w, B, C, z, E));
|
|
495
|
+
}, rotate:function(p) {
|
|
496
|
+
const w = Math.sin(p);
|
|
497
|
+
p = Math.cos(p);
|
|
498
|
+
this.transform(p, w, -w, p, 0, 0);
|
|
499
|
+
}, _drawPath:function(p, w) {
|
|
500
|
+
this.u.push(w.draw.bind(w, this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
|
|
501
|
+
}, _drawRiveImage:function(p, w, B) {
|
|
502
|
+
var C = p.Ga;
|
|
503
503
|
if (C) {
|
|
504
504
|
var z = this.o, E = b(w);
|
|
505
505
|
this.u.push(function() {
|
|
@@ -509,57 +509,57 @@ p.onRuntimeInitialized = function() {
|
|
|
509
509
|
z.globalAlpha = 1;
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
}, _getMatrix:function(
|
|
512
|
+
}, _getMatrix:function(p) {
|
|
513
513
|
const w = this.D, B = w.length - 6;
|
|
514
514
|
for (let C = 0; 6 > C; ++C) {
|
|
515
|
-
|
|
515
|
+
p[C] = w[B + C];
|
|
516
516
|
}
|
|
517
|
-
}, _drawImageMesh:function(
|
|
517
|
+
}, _drawImageMesh:function(p, w, B, C, z, E, F, H, T, K) {
|
|
518
518
|
var Y = this.o.canvas.width, N = this.o.canvas.height;
|
|
519
|
-
const
|
|
519
|
+
const tb = T - F, ub = K - H;
|
|
520
520
|
F = Math.max(F, 0);
|
|
521
521
|
H = Math.max(H, 0);
|
|
522
522
|
T = Math.min(T, Y);
|
|
523
523
|
K = Math.min(K, N);
|
|
524
|
-
const
|
|
525
|
-
console.assert(
|
|
526
|
-
console.assert(
|
|
527
|
-
if (!(0 >=
|
|
528
|
-
T =
|
|
524
|
+
const wa = T - F, xa = K - H;
|
|
525
|
+
console.assert(wa <= Math.min(tb, Y));
|
|
526
|
+
console.assert(xa <= Math.min(ub, N));
|
|
527
|
+
if (!(0 >= wa || 0 >= xa)) {
|
|
528
|
+
T = wa < tb || xa < ub;
|
|
529
529
|
Y = K = 1;
|
|
530
|
-
var ja = Math.ceil(
|
|
530
|
+
var ja = Math.ceil(wa * K), ka = Math.ceil(xa * Y);
|
|
531
531
|
N = ha.eb();
|
|
532
532
|
ja > N && (K *= N / ja, ja = N);
|
|
533
533
|
ka > N && (Y *= N / ka, ka = N);
|
|
534
|
-
u || (u = new
|
|
534
|
+
u || (u = new h.DynamicRectanizer(N), u.reset(512, 512));
|
|
535
535
|
N = u.addRect(ja, ka);
|
|
536
536
|
0 > N && (c(), D.add(this), N = u.addRect(ja, ka), console.assert(0 <= N));
|
|
537
|
-
var
|
|
538
|
-
I.push({N:this.D.slice(this.D.length - 6), image:
|
|
537
|
+
var vb = N & 65535, wb = N >> 16;
|
|
538
|
+
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(C), Ea:new Float32Array(z), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
|
|
539
539
|
O += C.length;
|
|
540
540
|
X += E.length;
|
|
541
|
-
var
|
|
541
|
+
var pa = this.o, oc = b(w);
|
|
542
542
|
this.u.push(function() {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
543
|
+
pa.save();
|
|
544
|
+
pa.resetTransform();
|
|
545
|
+
pa.globalCompositeOperation = oc;
|
|
546
|
+
pa.globalAlpha = B;
|
|
547
|
+
const xb = ha.canvas();
|
|
548
|
+
xb && pa.drawImage(xb, vb, wb, ja, ka, F, H, wa, xa);
|
|
549
|
+
pa.restore();
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
}, _clipPath:function(
|
|
553
|
-
this.u.push(this.o.clip.bind(this.o,
|
|
552
|
+
}, _clipPath:function(p) {
|
|
553
|
+
this.u.push(this.o.clip.bind(this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
|
|
554
554
|
}, clear:function() {
|
|
555
555
|
D.add(this);
|
|
556
556
|
this.u.push(this.o.clearRect.bind(this.o, 0, 0, this.ja.width, this.ja.height));
|
|
557
557
|
}, flush:function() {
|
|
558
|
-
}, translate:function(
|
|
559
|
-
this.transform(1, 0, 0, 1,
|
|
558
|
+
}, translate:function(p, w) {
|
|
559
|
+
this.transform(1, 0, 0, 1, p, w);
|
|
560
560
|
},});
|
|
561
|
-
|
|
562
|
-
const w = new ia(
|
|
561
|
+
h.makeRenderer = function(p) {
|
|
562
|
+
const w = new ia(p), B = w.o;
|
|
563
563
|
return new Proxy(w, {get(C, z) {
|
|
564
564
|
if ("function" === typeof C[z]) {
|
|
565
565
|
return function(...E) {
|
|
@@ -581,53 +581,53 @@ p.onRuntimeInitialized = function() {
|
|
|
581
581
|
}
|
|
582
582
|
},});
|
|
583
583
|
};
|
|
584
|
-
|
|
585
|
-
(new r({R:w})).decode(
|
|
584
|
+
h.decodeImage = function(p, w) {
|
|
585
|
+
(new r({R:w})).decode(p);
|
|
586
586
|
};
|
|
587
|
-
|
|
587
|
+
h.renderFactory = {makeRenderPaint:function() {
|
|
588
588
|
return new G();
|
|
589
589
|
}, makeRenderPath:function() {
|
|
590
590
|
return new q();
|
|
591
591
|
}, makeRenderImage:function() {
|
|
592
|
-
let
|
|
592
|
+
let p = W;
|
|
593
593
|
return new r({W:() => {
|
|
594
|
-
|
|
594
|
+
p.total++;
|
|
595
595
|
}, R:() => {
|
|
596
|
-
|
|
597
|
-
if (
|
|
598
|
-
const w =
|
|
599
|
-
w && (w(),
|
|
596
|
+
p.loaded++;
|
|
597
|
+
if (p.loaded === p.total) {
|
|
598
|
+
const w = p.ready;
|
|
599
|
+
w && (w(), p.ready = null);
|
|
600
600
|
}
|
|
601
601
|
},});
|
|
602
602
|
},};
|
|
603
|
-
let A =
|
|
604
|
-
|
|
605
|
-
const C = new
|
|
603
|
+
let A = h.load, W = null;
|
|
604
|
+
h.load = function(p, w, B = !0) {
|
|
605
|
+
const C = new h.FallbackFileAssetLoader();
|
|
606
606
|
void 0 !== w && C.addLoader(w);
|
|
607
|
-
B && (w = new
|
|
607
|
+
B && (w = new h.CDNFileAssetLoader(), C.addLoader(w));
|
|
608
608
|
return new Promise(function(z) {
|
|
609
609
|
let E = null;
|
|
610
610
|
W = {total:0, loaded:0, ready:function() {
|
|
611
611
|
z(E);
|
|
612
612
|
},};
|
|
613
|
-
E = A(
|
|
613
|
+
E = A(p, C);
|
|
614
614
|
0 == W.total && z(E);
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
617
|
d = new ca();
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
618
|
+
h.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
619
|
+
h.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
620
|
+
h.enableFPSCounter = d.Ra.bind(d);
|
|
621
|
+
h.disableFPSCounter = d.Oa;
|
|
622
622
|
d.xa = c;
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
h.resolveAnimationFrame = c;
|
|
624
|
+
h.cleanup = function() {
|
|
625
625
|
u && u.delete();
|
|
626
626
|
};
|
|
627
627
|
};
|
|
628
|
-
var ma = Object.assign({},
|
|
629
|
-
if (
|
|
630
|
-
|
|
628
|
+
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts, y = "", ra, sa;
|
|
629
|
+
if (oa || qa) {
|
|
630
|
+
qa ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptDir && (y = _scriptDir), 0 !== y.indexOf("blob:") ? y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1) : y = "", qa && (sa = b => {
|
|
631
631
|
var a = new XMLHttpRequest();
|
|
632
632
|
a.open("GET", b, !1);
|
|
633
633
|
a.responseType = "arraybuffer";
|
|
@@ -644,53 +644,70 @@ if (na || pa) {
|
|
|
644
644
|
d.send(null);
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
Object.assign(
|
|
647
|
+
var ta = h.print || console.log.bind(console), ua = h.printErr || console.error.bind(console);
|
|
648
|
+
Object.assign(h, ma);
|
|
649
649
|
ma = null;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
650
|
+
h.thisProgram && (na = h.thisProgram);
|
|
651
|
+
var va;
|
|
652
|
+
h.wasmBinary && (va = h.wasmBinary);
|
|
653
|
+
var noExitRuntime = h.noExitRuntime || !0;
|
|
654
|
+
"object" != typeof WebAssembly && ya("no native wasm support detected");
|
|
655
|
+
var za, J, Aa = !1, Ba, L, Ca, Da, M, P, Ea, Fa;
|
|
656
|
+
function Ga() {
|
|
657
|
+
var b = za.buffer;
|
|
658
|
+
h.HEAP8 = Ba = new Int8Array(b);
|
|
659
|
+
h.HEAP16 = Ca = new Int16Array(b);
|
|
660
|
+
h.HEAP32 = M = new Int32Array(b);
|
|
661
|
+
h.HEAPU8 = L = new Uint8Array(b);
|
|
662
|
+
h.HEAPU16 = Da = new Uint16Array(b);
|
|
663
|
+
h.HEAPU32 = P = new Uint32Array(b);
|
|
664
|
+
h.HEAPF32 = Ea = new Float32Array(b);
|
|
665
|
+
h.HEAPF64 = Fa = new Float64Array(b);
|
|
666
|
+
}
|
|
667
|
+
var Ha, Ia = [], Ja = [], Ka = [];
|
|
668
|
+
function La() {
|
|
669
|
+
var b = h.preRun.shift();
|
|
670
|
+
Ia.unshift(b);
|
|
663
671
|
}
|
|
664
|
-
var
|
|
665
|
-
function
|
|
672
|
+
var Ma = 0, Na = null, Oa = null;
|
|
673
|
+
function ya(b) {
|
|
674
|
+
if (h.onAbort) {
|
|
675
|
+
h.onAbort(b);
|
|
676
|
+
}
|
|
666
677
|
b = "Aborted(" + b + ")";
|
|
667
|
-
|
|
668
|
-
|
|
678
|
+
ua(b);
|
|
679
|
+
Aa = !0;
|
|
669
680
|
b = new WebAssembly.RuntimeError(b + ". Build with -sASSERTIONS for more info.");
|
|
670
681
|
ba(b);
|
|
671
682
|
throw b;
|
|
672
683
|
}
|
|
673
|
-
function
|
|
684
|
+
function Pa(b) {
|
|
674
685
|
return b.startsWith("data:application/octet-stream;base64,");
|
|
675
686
|
}
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
687
|
+
var Qa;
|
|
688
|
+
Qa = "canvas_advanced.wasm";
|
|
689
|
+
if (!Pa(Qa)) {
|
|
690
|
+
var Ra = Qa;
|
|
691
|
+
Qa = h.locateFile ? h.locateFile(Ra, y) : y + Ra;
|
|
692
|
+
}
|
|
693
|
+
function Sa(b) {
|
|
694
|
+
if (b == Qa && va) {
|
|
695
|
+
return new Uint8Array(va);
|
|
696
|
+
}
|
|
680
697
|
if (sa) {
|
|
681
698
|
return sa(b);
|
|
682
699
|
}
|
|
683
700
|
throw "both async and sync fetching of the wasm failed";
|
|
684
701
|
}
|
|
685
|
-
function
|
|
686
|
-
if (
|
|
702
|
+
function Ta(b) {
|
|
703
|
+
if (!va && (oa || qa)) {
|
|
687
704
|
if ("function" == typeof fetch && !b.startsWith("file://")) {
|
|
688
705
|
return fetch(b, {credentials:"same-origin"}).then(a => {
|
|
689
706
|
if (!a.ok) {
|
|
690
707
|
throw "failed to load wasm binary file at '" + b + "'";
|
|
691
708
|
}
|
|
692
709
|
return a.arrayBuffer();
|
|
693
|
-
}).catch(() =>
|
|
710
|
+
}).catch(() => Sa(b));
|
|
694
711
|
}
|
|
695
712
|
if (ra) {
|
|
696
713
|
return new Promise((a, c) => {
|
|
@@ -698,23 +715,28 @@ function Qa(b) {
|
|
|
698
715
|
});
|
|
699
716
|
}
|
|
700
717
|
}
|
|
701
|
-
return Promise.resolve().then(() =>
|
|
718
|
+
return Promise.resolve().then(() => Sa(b));
|
|
702
719
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
705
|
-
|
|
706
|
-
|
|
720
|
+
function Ua(b, a, c) {
|
|
721
|
+
return Ta(b).then(d => WebAssembly.instantiate(d, a)).then(d => d).then(c, d => {
|
|
722
|
+
ua("failed to asynchronously prepare wasm: " + d);
|
|
723
|
+
ya(d);
|
|
707
724
|
});
|
|
708
725
|
}
|
|
709
|
-
function
|
|
710
|
-
var c =
|
|
711
|
-
return "function" != typeof WebAssembly.instantiateStreaming ||
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
return
|
|
726
|
+
function Va(b, a) {
|
|
727
|
+
var c = Qa;
|
|
728
|
+
return va || "function" != typeof WebAssembly.instantiateStreaming || Pa(c) || c.startsWith("file://") || "function" != typeof fetch ? Ua(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
|
|
729
|
+
ua("wasm streaming compile failed: " + e);
|
|
730
|
+
ua("falling back to ArrayBuffer instantiation");
|
|
731
|
+
return Ua(c, b, a);
|
|
715
732
|
}));
|
|
716
733
|
}
|
|
717
|
-
|
|
734
|
+
var Wa = b => {
|
|
735
|
+
for (; 0 < b.length;) {
|
|
736
|
+
b.shift()(h);
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
function Xa(b) {
|
|
718
740
|
if (void 0 === b) {
|
|
719
741
|
return "_unknown";
|
|
720
742
|
}
|
|
@@ -722,24 +744,24 @@ function Ta(b) {
|
|
|
722
744
|
var a = b.charCodeAt(0);
|
|
723
745
|
return 48 <= a && 57 >= a ? `_${b}` : b;
|
|
724
746
|
}
|
|
725
|
-
function
|
|
726
|
-
b =
|
|
747
|
+
function Ya(b, a) {
|
|
748
|
+
b = Xa(b);
|
|
727
749
|
return {[b]:function() {
|
|
728
750
|
return a.apply(this, arguments);
|
|
729
751
|
}}[b];
|
|
730
752
|
}
|
|
731
|
-
function
|
|
753
|
+
function Za() {
|
|
732
754
|
this.G = [void 0];
|
|
733
755
|
this.ta = [];
|
|
734
756
|
}
|
|
735
|
-
var
|
|
736
|
-
function
|
|
737
|
-
throw new
|
|
757
|
+
var Q = new Za(), $a = void 0;
|
|
758
|
+
function R(b) {
|
|
759
|
+
throw new $a(b);
|
|
738
760
|
}
|
|
739
|
-
var
|
|
740
|
-
b ||
|
|
741
|
-
return
|
|
742
|
-
},
|
|
761
|
+
var S = b => {
|
|
762
|
+
b || R("Cannot use deleted val. handle = " + b);
|
|
763
|
+
return Q.get(b).value;
|
|
764
|
+
}, ab = b => {
|
|
743
765
|
switch(b) {
|
|
744
766
|
case void 0:
|
|
745
767
|
return 1;
|
|
@@ -750,11 +772,11 @@ var R = b => {
|
|
|
750
772
|
case !1:
|
|
751
773
|
return 4;
|
|
752
774
|
default:
|
|
753
|
-
return
|
|
775
|
+
return Q.Za({Aa:1, value:b});
|
|
754
776
|
}
|
|
755
777
|
};
|
|
756
|
-
function
|
|
757
|
-
var a = Error, c =
|
|
778
|
+
function bb(b) {
|
|
779
|
+
var a = Error, c = Ya(b, function(d) {
|
|
758
780
|
this.name = b;
|
|
759
781
|
this.message = d;
|
|
760
782
|
d = Error(d).stack;
|
|
@@ -767,122 +789,122 @@ function Xa(b) {
|
|
|
767
789
|
};
|
|
768
790
|
return c;
|
|
769
791
|
}
|
|
770
|
-
var
|
|
792
|
+
var cb = void 0, db = void 0;
|
|
771
793
|
function U(b) {
|
|
772
|
-
for (var a = "";
|
|
773
|
-
a +=
|
|
794
|
+
for (var a = ""; L[b];) {
|
|
795
|
+
a += db[L[b++]];
|
|
774
796
|
}
|
|
775
797
|
return a;
|
|
776
798
|
}
|
|
777
|
-
var
|
|
778
|
-
function
|
|
779
|
-
for (;
|
|
780
|
-
var b =
|
|
799
|
+
var eb = [];
|
|
800
|
+
function fb() {
|
|
801
|
+
for (; eb.length;) {
|
|
802
|
+
var b = eb.pop();
|
|
781
803
|
b.g.M = !1;
|
|
782
804
|
b["delete"]();
|
|
783
805
|
}
|
|
784
806
|
}
|
|
785
|
-
var
|
|
786
|
-
function
|
|
787
|
-
for (void 0 === a &&
|
|
807
|
+
var gb = void 0, hb = {};
|
|
808
|
+
function ib(b, a) {
|
|
809
|
+
for (void 0 === a && R("ptr should not be undefined"); b.l;) {
|
|
788
810
|
a = b.S(a), b = b.l;
|
|
789
811
|
}
|
|
790
812
|
return a;
|
|
791
813
|
}
|
|
792
|
-
var
|
|
793
|
-
function
|
|
794
|
-
b =
|
|
814
|
+
var jb = {};
|
|
815
|
+
function kb(b) {
|
|
816
|
+
b = lb(b);
|
|
795
817
|
var a = U(b);
|
|
796
|
-
|
|
818
|
+
mb(b);
|
|
797
819
|
return a;
|
|
798
820
|
}
|
|
799
|
-
function
|
|
800
|
-
var c =
|
|
801
|
-
void 0 === c &&
|
|
821
|
+
function nb(b, a) {
|
|
822
|
+
var c = jb[b];
|
|
823
|
+
void 0 === c && R(a + " has unknown type " + kb(b));
|
|
802
824
|
return c;
|
|
803
825
|
}
|
|
804
|
-
function
|
|
826
|
+
function ob() {
|
|
805
827
|
}
|
|
806
|
-
var
|
|
807
|
-
function
|
|
828
|
+
var pb = !1;
|
|
829
|
+
function qb(b) {
|
|
808
830
|
--b.count.value;
|
|
809
831
|
0 === b.count.value && (b.s ? b.A.H(b.s) : b.j.h.H(b.i));
|
|
810
832
|
}
|
|
811
|
-
function
|
|
833
|
+
function rb(b, a, c) {
|
|
812
834
|
if (a === c) {
|
|
813
835
|
return b;
|
|
814
836
|
}
|
|
815
837
|
if (void 0 === c.l) {
|
|
816
838
|
return null;
|
|
817
839
|
}
|
|
818
|
-
b =
|
|
840
|
+
b = rb(b, a, c.l);
|
|
819
841
|
return null === b ? null : c.Pa(b);
|
|
820
842
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
823
|
-
a =
|
|
824
|
-
return
|
|
843
|
+
var sb = {};
|
|
844
|
+
function yb(b, a) {
|
|
845
|
+
a = ib(b, a);
|
|
846
|
+
return hb[a];
|
|
825
847
|
}
|
|
826
|
-
var
|
|
827
|
-
function
|
|
828
|
-
throw new
|
|
848
|
+
var zb = void 0;
|
|
849
|
+
function Ab(b) {
|
|
850
|
+
throw new zb(b);
|
|
829
851
|
}
|
|
830
|
-
function
|
|
831
|
-
a.j && a.i ||
|
|
832
|
-
!!a.A !== !!a.s &&
|
|
852
|
+
function Bb(b, a) {
|
|
853
|
+
a.j && a.i || Ab("makeClassHandle requires ptr and ptrType");
|
|
854
|
+
!!a.A !== !!a.s && Ab("Both smartPtrType and smartPtr must be specified");
|
|
833
855
|
a.count = {value:1};
|
|
834
|
-
return
|
|
856
|
+
return Cb(Object.create(b, {g:{value:a,},}));
|
|
835
857
|
}
|
|
836
|
-
function
|
|
858
|
+
function Cb(b) {
|
|
837
859
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
838
|
-
return
|
|
860
|
+
return Cb = a => a, b;
|
|
839
861
|
}
|
|
840
|
-
|
|
841
|
-
|
|
862
|
+
pb = new FinalizationRegistry(a => {
|
|
863
|
+
qb(a.g);
|
|
842
864
|
});
|
|
843
|
-
|
|
865
|
+
Cb = a => {
|
|
844
866
|
var c = a.g;
|
|
845
|
-
c.s &&
|
|
867
|
+
c.s && pb.register(a, {g:c}, a);
|
|
846
868
|
return a;
|
|
847
869
|
};
|
|
848
|
-
|
|
849
|
-
|
|
870
|
+
ob = a => {
|
|
871
|
+
pb.unregister(a);
|
|
850
872
|
};
|
|
851
|
-
return
|
|
873
|
+
return Cb(b);
|
|
852
874
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
875
|
+
var Db = {};
|
|
876
|
+
function Eb(b) {
|
|
855
877
|
for (; b.length;) {
|
|
856
878
|
var a = b.pop();
|
|
857
879
|
b.pop()(a);
|
|
858
880
|
}
|
|
859
881
|
}
|
|
860
|
-
function
|
|
861
|
-
return this.fromWireType(
|
|
882
|
+
function Fb(b) {
|
|
883
|
+
return this.fromWireType(M[b >> 2]);
|
|
862
884
|
}
|
|
863
|
-
var
|
|
885
|
+
var Gb = {}, Hb = {};
|
|
864
886
|
function V(b, a, c) {
|
|
865
|
-
function d(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
for (var
|
|
869
|
-
|
|
887
|
+
function d(l) {
|
|
888
|
+
l = c(l);
|
|
889
|
+
l.length !== b.length && Ab("Mismatched type converter count");
|
|
890
|
+
for (var n = 0; n < b.length; ++n) {
|
|
891
|
+
Ib(b[n], l[n]);
|
|
870
892
|
}
|
|
871
893
|
}
|
|
872
|
-
b.forEach(function(
|
|
873
|
-
|
|
894
|
+
b.forEach(function(l) {
|
|
895
|
+
Hb[l] = a;
|
|
874
896
|
});
|
|
875
|
-
var e = Array(a.length), g = [],
|
|
876
|
-
a.forEach((
|
|
877
|
-
|
|
878
|
-
e[
|
|
879
|
-
++
|
|
880
|
-
|
|
897
|
+
var e = Array(a.length), g = [], m = 0;
|
|
898
|
+
a.forEach((l, n) => {
|
|
899
|
+
jb.hasOwnProperty(l) ? e[n] = jb[l] : (g.push(l), Gb.hasOwnProperty(l) || (Gb[l] = []), Gb[l].push(() => {
|
|
900
|
+
e[n] = jb[l];
|
|
901
|
+
++m;
|
|
902
|
+
m === g.length && d(e);
|
|
881
903
|
}));
|
|
882
904
|
});
|
|
883
905
|
0 === g.length && d(e);
|
|
884
906
|
}
|
|
885
|
-
function
|
|
907
|
+
function Jb(b) {
|
|
886
908
|
switch(b) {
|
|
887
909
|
case 1:
|
|
888
910
|
return 0;
|
|
@@ -896,72 +918,72 @@ function Eb(b) {
|
|
|
896
918
|
throw new TypeError(`Unknown type size: ${b}`);
|
|
897
919
|
}
|
|
898
920
|
}
|
|
899
|
-
function
|
|
921
|
+
function Kb(b, a, c = {}) {
|
|
900
922
|
var d = a.name;
|
|
901
|
-
b ||
|
|
902
|
-
if (
|
|
923
|
+
b || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
924
|
+
if (jb.hasOwnProperty(b)) {
|
|
903
925
|
if (c.ab) {
|
|
904
926
|
return;
|
|
905
927
|
}
|
|
906
|
-
|
|
928
|
+
R(`Cannot register type '${d}' twice`);
|
|
907
929
|
}
|
|
908
|
-
|
|
909
|
-
delete
|
|
910
|
-
|
|
930
|
+
jb[b] = a;
|
|
931
|
+
delete Hb[b];
|
|
932
|
+
Gb.hasOwnProperty(b) && (a = Gb[b], delete Gb[b], a.forEach(e => e()));
|
|
911
933
|
}
|
|
912
|
-
function
|
|
934
|
+
function Ib(b, a, c = {}) {
|
|
913
935
|
if (!("argPackAdvance" in a)) {
|
|
914
936
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
915
937
|
}
|
|
916
|
-
|
|
938
|
+
Kb(b, a, c);
|
|
917
939
|
}
|
|
918
|
-
function
|
|
919
|
-
|
|
940
|
+
function Lb(b) {
|
|
941
|
+
R(b.g.j.h.name + " instance already deleted");
|
|
920
942
|
}
|
|
921
|
-
function
|
|
943
|
+
function Mb() {
|
|
922
944
|
}
|
|
923
|
-
function
|
|
945
|
+
function Nb(b, a, c) {
|
|
924
946
|
if (void 0 === b[a].m) {
|
|
925
947
|
var d = b[a];
|
|
926
948
|
b[a] = function() {
|
|
927
|
-
b[a].m.hasOwnProperty(arguments.length) ||
|
|
949
|
+
b[a].m.hasOwnProperty(arguments.length) || R(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${b[a].m})!`);
|
|
928
950
|
return b[a].m[arguments.length].apply(this, arguments);
|
|
929
951
|
};
|
|
930
952
|
b[a].m = [];
|
|
931
953
|
b[a].m[d.L] = d;
|
|
932
954
|
}
|
|
933
955
|
}
|
|
934
|
-
function
|
|
935
|
-
|
|
956
|
+
function Ob(b, a, c) {
|
|
957
|
+
h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) && R(`Cannot register public name '${b}' twice`), Nb(h, b, b), h.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), h[b].m[c] = a) : (h[b] = a, void 0 !== c && (h[b].tb = c));
|
|
936
958
|
}
|
|
937
|
-
function
|
|
959
|
+
function Pb(b, a, c, d, e, g, m, l) {
|
|
938
960
|
this.name = b;
|
|
939
961
|
this.constructor = a;
|
|
940
962
|
this.B = c;
|
|
941
963
|
this.H = d;
|
|
942
964
|
this.l = e;
|
|
943
965
|
this.Ua = g;
|
|
944
|
-
this.S =
|
|
945
|
-
this.Pa =
|
|
966
|
+
this.S = m;
|
|
967
|
+
this.Pa = l;
|
|
946
968
|
this.ya = [];
|
|
947
969
|
}
|
|
948
|
-
function
|
|
970
|
+
function Qb(b, a, c) {
|
|
949
971
|
for (; a !== c;) {
|
|
950
|
-
a.S ||
|
|
972
|
+
a.S || R(`Expected null or instance of ${c.name}, got an instance of ${a.name}`), b = a.S(b), a = a.l;
|
|
951
973
|
}
|
|
952
974
|
return b;
|
|
953
975
|
}
|
|
954
|
-
function
|
|
976
|
+
function Rb(b, a) {
|
|
955
977
|
if (null === a) {
|
|
956
|
-
return this.ea &&
|
|
978
|
+
return this.ea && R(`null is not a valid ${this.name}`), 0;
|
|
957
979
|
}
|
|
958
|
-
a.g ||
|
|
959
|
-
a.g.i ||
|
|
960
|
-
return
|
|
980
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
981
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
982
|
+
return Qb(a.g.i, a.g.j.h, this.h);
|
|
961
983
|
}
|
|
962
|
-
function
|
|
984
|
+
function Tb(b, a) {
|
|
963
985
|
if (null === a) {
|
|
964
|
-
this.ea &&
|
|
986
|
+
this.ea && R(`null is not a valid ${this.name}`);
|
|
965
987
|
if (this.V) {
|
|
966
988
|
var c = this.fa();
|
|
967
989
|
null !== b && b.push(this.H, c);
|
|
@@ -969,14 +991,14 @@ function Ob(b, a) {
|
|
|
969
991
|
}
|
|
970
992
|
return 0;
|
|
971
993
|
}
|
|
972
|
-
a.g ||
|
|
973
|
-
a.g.i ||
|
|
974
|
-
!this.U && a.g.j.U &&
|
|
975
|
-
c =
|
|
994
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
995
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
996
|
+
!this.U && a.g.j.U && R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
997
|
+
c = Qb(a.g.i, a.g.j.h, this.h);
|
|
976
998
|
if (this.V) {
|
|
977
|
-
switch(void 0 === a.g.s &&
|
|
999
|
+
switch(void 0 === a.g.s && R("Passing raw pointer to smart pointer is illegal"), this.nb) {
|
|
978
1000
|
case 0:
|
|
979
|
-
a.g.A === this ? c = a.g.s :
|
|
1001
|
+
a.g.A === this ? c = a.g.s : R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
980
1002
|
break;
|
|
981
1003
|
case 1:
|
|
982
1004
|
c = a.g.s;
|
|
@@ -986,195 +1008,195 @@ function Ob(b, a) {
|
|
|
986
1008
|
c = a.g.s;
|
|
987
1009
|
} else {
|
|
988
1010
|
var d = a.clone();
|
|
989
|
-
c = this.jb(c,
|
|
1011
|
+
c = this.jb(c, ab(function() {
|
|
990
1012
|
d["delete"]();
|
|
991
1013
|
}));
|
|
992
1014
|
null !== b && b.push(this.H, c);
|
|
993
1015
|
}
|
|
994
1016
|
break;
|
|
995
1017
|
default:
|
|
996
|
-
|
|
1018
|
+
R("Unsupporting sharing policy");
|
|
997
1019
|
}
|
|
998
1020
|
}
|
|
999
1021
|
return c;
|
|
1000
1022
|
}
|
|
1001
|
-
function
|
|
1023
|
+
function Ub(b, a) {
|
|
1002
1024
|
if (null === a) {
|
|
1003
|
-
return this.ea &&
|
|
1025
|
+
return this.ea && R(`null is not a valid ${this.name}`), 0;
|
|
1004
1026
|
}
|
|
1005
|
-
a.g ||
|
|
1006
|
-
a.g.i ||
|
|
1007
|
-
a.g.j.U &&
|
|
1008
|
-
return
|
|
1027
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
1028
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1029
|
+
a.g.j.U && R(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
|
|
1030
|
+
return Qb(a.g.i, a.g.j.h, this.h);
|
|
1009
1031
|
}
|
|
1010
|
-
function
|
|
1032
|
+
function Vb(b, a, c, d) {
|
|
1011
1033
|
this.name = b;
|
|
1012
1034
|
this.h = a;
|
|
1013
1035
|
this.ea = c;
|
|
1014
1036
|
this.U = d;
|
|
1015
1037
|
this.V = !1;
|
|
1016
1038
|
this.H = this.jb = this.fa = this.za = this.nb = this.ib = void 0;
|
|
1017
|
-
void 0 !== a.l ? this.toWireType =
|
|
1039
|
+
void 0 !== a.l ? this.toWireType = Tb : (this.toWireType = d ? Rb : Ub, this.v = null);
|
|
1018
1040
|
}
|
|
1019
|
-
function
|
|
1020
|
-
|
|
1021
|
-
void 0 !==
|
|
1041
|
+
function Wb(b, a, c) {
|
|
1042
|
+
h.hasOwnProperty(b) || Ab("Replacing nonexistant public symbol");
|
|
1043
|
+
void 0 !== h[b].m && void 0 !== c ? h[b].m[c] = a : (h[b] = a, h[b].L = c);
|
|
1022
1044
|
}
|
|
1023
|
-
var
|
|
1024
|
-
var a =
|
|
1025
|
-
a || (b >=
|
|
1045
|
+
var Xb = [], Yb = b => {
|
|
1046
|
+
var a = Xb[b];
|
|
1047
|
+
a || (b >= Xb.length && (Xb.length = b + 1), Xb[b] = a = Ha.get(b));
|
|
1026
1048
|
return a;
|
|
1027
|
-
},
|
|
1049
|
+
}, Zb = (b, a) => {
|
|
1028
1050
|
var c = [];
|
|
1029
1051
|
return function() {
|
|
1030
1052
|
c.length = 0;
|
|
1031
1053
|
Object.assign(c, arguments);
|
|
1032
1054
|
if (b.includes("j")) {
|
|
1033
|
-
var d =
|
|
1055
|
+
var d = h["dynCall_" + b];
|
|
1034
1056
|
d = c && c.length ? d.apply(null, [a].concat(c)) : d.call(null, a);
|
|
1035
1057
|
} else {
|
|
1036
|
-
d =
|
|
1058
|
+
d = Yb(a).apply(null, c);
|
|
1037
1059
|
}
|
|
1038
1060
|
return d;
|
|
1039
1061
|
};
|
|
1040
1062
|
};
|
|
1041
1063
|
function Z(b, a) {
|
|
1042
1064
|
b = U(b);
|
|
1043
|
-
var c = b.includes("j") ?
|
|
1044
|
-
"function" != typeof c &&
|
|
1065
|
+
var c = b.includes("j") ? Zb(b, a) : Yb(a);
|
|
1066
|
+
"function" != typeof c && R(`unknown function pointer with signature ${b}: ${a}`);
|
|
1045
1067
|
return c;
|
|
1046
1068
|
}
|
|
1047
|
-
var
|
|
1048
|
-
function
|
|
1069
|
+
var $b = void 0;
|
|
1070
|
+
function ac(b, a) {
|
|
1049
1071
|
function c(g) {
|
|
1050
|
-
e[g] ||
|
|
1072
|
+
e[g] || jb[g] || (Hb[g] ? Hb[g].forEach(c) : (d.push(g), e[g] = !0));
|
|
1051
1073
|
}
|
|
1052
1074
|
var d = [], e = {};
|
|
1053
1075
|
a.forEach(c);
|
|
1054
|
-
throw new
|
|
1076
|
+
throw new $b(`${b}: ` + d.map(kb).join([", "]));
|
|
1055
1077
|
}
|
|
1056
|
-
function
|
|
1078
|
+
function bc(b, a, c, d, e) {
|
|
1057
1079
|
var g = a.length;
|
|
1058
|
-
2 > g &&
|
|
1059
|
-
var
|
|
1080
|
+
2 > g && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1081
|
+
var m = null !== a[1] && null !== c, l = !1;
|
|
1060
1082
|
for (c = 1; c < a.length; ++c) {
|
|
1061
1083
|
if (null !== a[c] && void 0 === a[c].v) {
|
|
1062
|
-
|
|
1084
|
+
l = !0;
|
|
1063
1085
|
break;
|
|
1064
1086
|
}
|
|
1065
1087
|
}
|
|
1066
|
-
var
|
|
1088
|
+
var n = "void" !== a[0].name, k = g - 2, t = Array(k), v = [], x = [];
|
|
1067
1089
|
return function() {
|
|
1068
|
-
arguments.length !==
|
|
1090
|
+
arguments.length !== k && R(`function ${b} called with ${arguments.length} arguments, expected ${k} args!`);
|
|
1069
1091
|
x.length = 0;
|
|
1070
|
-
v.length =
|
|
1092
|
+
v.length = m ? 2 : 1;
|
|
1071
1093
|
v[0] = e;
|
|
1072
|
-
if (
|
|
1094
|
+
if (m) {
|
|
1073
1095
|
var f = a[1].toWireType(x, this);
|
|
1074
1096
|
v[1] = f;
|
|
1075
1097
|
}
|
|
1076
|
-
for (var r = 0; r <
|
|
1098
|
+
for (var r = 0; r < k; ++r) {
|
|
1077
1099
|
t[r] = a[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
|
|
1078
1100
|
}
|
|
1079
1101
|
r = d.apply(null, v);
|
|
1080
|
-
if (
|
|
1081
|
-
|
|
1102
|
+
if (l) {
|
|
1103
|
+
Eb(x);
|
|
1082
1104
|
} else {
|
|
1083
|
-
for (var q =
|
|
1105
|
+
for (var q = m ? 1 : 2; q < a.length; q++) {
|
|
1084
1106
|
var G = 1 === q ? f : t[q - 2];
|
|
1085
1107
|
null !== a[q].v && a[q].v(G);
|
|
1086
1108
|
}
|
|
1087
1109
|
}
|
|
1088
|
-
f =
|
|
1110
|
+
f = n ? a[0].fromWireType(r) : void 0;
|
|
1089
1111
|
return f;
|
|
1090
1112
|
};
|
|
1091
1113
|
}
|
|
1092
|
-
function
|
|
1114
|
+
function cc(b, a) {
|
|
1093
1115
|
for (var c = [], d = 0; d < b; d++) {
|
|
1094
|
-
c.push(
|
|
1116
|
+
c.push(P[a + 4 * d >> 2]);
|
|
1095
1117
|
}
|
|
1096
1118
|
return c;
|
|
1097
1119
|
}
|
|
1098
|
-
function
|
|
1099
|
-
b instanceof Object ||
|
|
1100
|
-
b instanceof a.h.constructor ||
|
|
1101
|
-
b.g.i ||
|
|
1102
|
-
return
|
|
1120
|
+
function dc(b, a, c) {
|
|
1121
|
+
b instanceof Object || R(`${c} with invalid "this": ${b}`);
|
|
1122
|
+
b instanceof a.h.constructor || R(`${c} incompatible with "this" of type ${b.constructor.name}`);
|
|
1123
|
+
b.g.i || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1124
|
+
return Qb(b.g.i, b.g.j.h, a.h);
|
|
1103
1125
|
}
|
|
1104
|
-
function
|
|
1105
|
-
b >=
|
|
1126
|
+
function ec(b) {
|
|
1127
|
+
b >= Q.ua && 0 === --Q.get(b).Aa && Q.$a(b);
|
|
1106
1128
|
}
|
|
1107
|
-
function
|
|
1129
|
+
function fc(b, a, c) {
|
|
1108
1130
|
switch(a) {
|
|
1109
1131
|
case 0:
|
|
1110
1132
|
return function(d) {
|
|
1111
|
-
return this.fromWireType((c ?
|
|
1133
|
+
return this.fromWireType((c ? Ba : L)[d]);
|
|
1112
1134
|
};
|
|
1113
1135
|
case 1:
|
|
1114
1136
|
return function(d) {
|
|
1115
|
-
return this.fromWireType((c ?
|
|
1137
|
+
return this.fromWireType((c ? Ca : Da)[d >> 1]);
|
|
1116
1138
|
};
|
|
1117
1139
|
case 2:
|
|
1118
1140
|
return function(d) {
|
|
1119
|
-
return this.fromWireType((c ?
|
|
1141
|
+
return this.fromWireType((c ? M : P)[d >> 2]);
|
|
1120
1142
|
};
|
|
1121
1143
|
default:
|
|
1122
1144
|
throw new TypeError("Unknown integer type: " + b);
|
|
1123
1145
|
}
|
|
1124
1146
|
}
|
|
1125
|
-
function
|
|
1147
|
+
function Sb(b) {
|
|
1126
1148
|
if (null === b) {
|
|
1127
1149
|
return "null";
|
|
1128
1150
|
}
|
|
1129
1151
|
var a = typeof b;
|
|
1130
1152
|
return "object" === a || "array" === a || "function" === a ? b.toString() : "" + b;
|
|
1131
1153
|
}
|
|
1132
|
-
function
|
|
1154
|
+
function gc(b, a) {
|
|
1133
1155
|
switch(a) {
|
|
1134
1156
|
case 2:
|
|
1135
1157
|
return function(c) {
|
|
1136
|
-
return this.fromWireType(
|
|
1158
|
+
return this.fromWireType(Ea[c >> 2]);
|
|
1137
1159
|
};
|
|
1138
1160
|
case 3:
|
|
1139
1161
|
return function(c) {
|
|
1140
|
-
return this.fromWireType(
|
|
1162
|
+
return this.fromWireType(Fa[c >> 3]);
|
|
1141
1163
|
};
|
|
1142
1164
|
default:
|
|
1143
1165
|
throw new TypeError("Unknown float type: " + b);
|
|
1144
1166
|
}
|
|
1145
1167
|
}
|
|
1146
|
-
function
|
|
1168
|
+
function hc(b, a, c) {
|
|
1147
1169
|
switch(a) {
|
|
1148
1170
|
case 0:
|
|
1149
1171
|
return c ? function(d) {
|
|
1150
|
-
return
|
|
1172
|
+
return Ba[d];
|
|
1151
1173
|
} : function(d) {
|
|
1152
|
-
return
|
|
1174
|
+
return L[d];
|
|
1153
1175
|
};
|
|
1154
1176
|
case 1:
|
|
1155
1177
|
return c ? function(d) {
|
|
1156
|
-
return Ba[d >> 1];
|
|
1157
|
-
} : function(d) {
|
|
1158
1178
|
return Ca[d >> 1];
|
|
1179
|
+
} : function(d) {
|
|
1180
|
+
return Da[d >> 1];
|
|
1159
1181
|
};
|
|
1160
1182
|
case 2:
|
|
1161
1183
|
return c ? function(d) {
|
|
1162
|
-
return L[d >> 2];
|
|
1163
|
-
} : function(d) {
|
|
1164
1184
|
return M[d >> 2];
|
|
1185
|
+
} : function(d) {
|
|
1186
|
+
return P[d >> 2];
|
|
1165
1187
|
};
|
|
1166
1188
|
default:
|
|
1167
1189
|
throw new TypeError("Unknown integer type: " + b);
|
|
1168
1190
|
}
|
|
1169
1191
|
}
|
|
1170
|
-
var
|
|
1192
|
+
var ic = (b, a, c, d) => {
|
|
1171
1193
|
if (0 < d) {
|
|
1172
1194
|
d = c + d - 1;
|
|
1173
1195
|
for (var e = 0; e < b.length; ++e) {
|
|
1174
1196
|
var g = b.charCodeAt(e);
|
|
1175
1197
|
if (55296 <= g && 57343 >= g) {
|
|
1176
|
-
var
|
|
1177
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
1198
|
+
var m = b.charCodeAt(++e);
|
|
1199
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
1178
1200
|
}
|
|
1179
1201
|
if (127 >= g) {
|
|
1180
1202
|
if (c >= d) {
|
|
@@ -1207,19 +1229,19 @@ var dc = (b, a, c, d) => {
|
|
|
1207
1229
|
}
|
|
1208
1230
|
a[c] = 0;
|
|
1209
1231
|
}
|
|
1210
|
-
},
|
|
1232
|
+
}, jc = b => {
|
|
1211
1233
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1212
1234
|
var d = b.charCodeAt(c);
|
|
1213
1235
|
127 >= d ? a++ : 2047 >= d ? a += 2 : 55296 <= d && 57343 >= d ? (a += 4, ++c) : a += 3;
|
|
1214
1236
|
}
|
|
1215
1237
|
return a;
|
|
1216
|
-
},
|
|
1238
|
+
}, kc = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, lc = (b, a, c) => {
|
|
1217
1239
|
var d = a + c;
|
|
1218
1240
|
for (c = a; b[c] && !(c >= d);) {
|
|
1219
1241
|
++c;
|
|
1220
1242
|
}
|
|
1221
|
-
if (16 < c - a && b.buffer &&
|
|
1222
|
-
return
|
|
1243
|
+
if (16 < c - a && b.buffer && kc) {
|
|
1244
|
+
return kc.decode(b.subarray(a, c));
|
|
1223
1245
|
}
|
|
1224
1246
|
for (d = ""; a < c;) {
|
|
1225
1247
|
var e = b[a++];
|
|
@@ -1228,8 +1250,8 @@ var dc = (b, a, c, d) => {
|
|
|
1228
1250
|
if (192 == (e & 224)) {
|
|
1229
1251
|
d += String.fromCharCode((e & 31) << 6 | g);
|
|
1230
1252
|
} else {
|
|
1231
|
-
var
|
|
1232
|
-
e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 |
|
|
1253
|
+
var m = b[a++] & 63;
|
|
1254
|
+
e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 | m : (e & 7) << 18 | g << 12 | m << 6 | b[a++] & 63;
|
|
1233
1255
|
65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
|
|
1234
1256
|
}
|
|
1235
1257
|
} else {
|
|
@@ -1237,25 +1259,25 @@ var dc = (b, a, c, d) => {
|
|
|
1237
1259
|
}
|
|
1238
1260
|
}
|
|
1239
1261
|
return d;
|
|
1240
|
-
},
|
|
1262
|
+
}, mc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nc = (b, a) => {
|
|
1241
1263
|
var c = b >> 1;
|
|
1242
|
-
for (var d = c + a / 2; !(c >= d) &&
|
|
1264
|
+
for (var d = c + a / 2; !(c >= d) && Da[c];) {
|
|
1243
1265
|
++c;
|
|
1244
1266
|
}
|
|
1245
1267
|
c <<= 1;
|
|
1246
|
-
if (32 < c - b &&
|
|
1247
|
-
return
|
|
1268
|
+
if (32 < c - b && mc) {
|
|
1269
|
+
return mc.decode(L.subarray(b, c));
|
|
1248
1270
|
}
|
|
1249
1271
|
c = "";
|
|
1250
1272
|
for (d = 0; !(d >= a / 2); ++d) {
|
|
1251
|
-
var e =
|
|
1273
|
+
var e = Ca[b + 2 * d >> 1];
|
|
1252
1274
|
if (0 == e) {
|
|
1253
1275
|
break;
|
|
1254
1276
|
}
|
|
1255
1277
|
c += String.fromCharCode(e);
|
|
1256
1278
|
}
|
|
1257
1279
|
return c;
|
|
1258
|
-
},
|
|
1280
|
+
}, pc = (b, a, c) => {
|
|
1259
1281
|
void 0 === c && (c = 2147483647);
|
|
1260
1282
|
if (2 > c) {
|
|
1261
1283
|
return 0;
|
|
@@ -1264,13 +1286,13 @@ var dc = (b, a, c, d) => {
|
|
|
1264
1286
|
var d = a;
|
|
1265
1287
|
c = c < 2 * b.length ? c / 2 : b.length;
|
|
1266
1288
|
for (var e = 0; e < c; ++e) {
|
|
1267
|
-
|
|
1289
|
+
Ca[a >> 1] = b.charCodeAt(e), a += 2;
|
|
1268
1290
|
}
|
|
1269
|
-
|
|
1291
|
+
Ca[a >> 1] = 0;
|
|
1270
1292
|
return a - d;
|
|
1271
|
-
},
|
|
1293
|
+
}, qc = b => 2 * b.length, rc = (b, a) => {
|
|
1272
1294
|
for (var c = 0, d = ""; !(c >= a / 4);) {
|
|
1273
|
-
var e =
|
|
1295
|
+
var e = M[b + 4 * c >> 2];
|
|
1274
1296
|
if (0 == e) {
|
|
1275
1297
|
break;
|
|
1276
1298
|
}
|
|
@@ -1278,7 +1300,7 @@ var dc = (b, a, c, d) => {
|
|
|
1278
1300
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1279
1301
|
}
|
|
1280
1302
|
return d;
|
|
1281
|
-
},
|
|
1303
|
+
}, sc = (b, a, c) => {
|
|
1282
1304
|
void 0 === c && (c = 2147483647);
|
|
1283
1305
|
if (4 > c) {
|
|
1284
1306
|
return 0;
|
|
@@ -1288,61 +1310,61 @@ var dc = (b, a, c, d) => {
|
|
|
1288
1310
|
for (var e = 0; e < b.length; ++e) {
|
|
1289
1311
|
var g = b.charCodeAt(e);
|
|
1290
1312
|
if (55296 <= g && 57343 >= g) {
|
|
1291
|
-
var
|
|
1292
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
1313
|
+
var m = b.charCodeAt(++e);
|
|
1314
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
1293
1315
|
}
|
|
1294
|
-
|
|
1316
|
+
M[a >> 2] = g;
|
|
1295
1317
|
a += 4;
|
|
1296
1318
|
if (a + 4 > c) {
|
|
1297
1319
|
break;
|
|
1298
1320
|
}
|
|
1299
1321
|
}
|
|
1300
|
-
|
|
1322
|
+
M[a >> 2] = 0;
|
|
1301
1323
|
return a - d;
|
|
1302
|
-
},
|
|
1324
|
+
}, tc = b => {
|
|
1303
1325
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1304
1326
|
var d = b.charCodeAt(c);
|
|
1305
1327
|
55296 <= d && 57343 >= d && ++c;
|
|
1306
1328
|
a += 4;
|
|
1307
1329
|
}
|
|
1308
1330
|
return a;
|
|
1309
|
-
},
|
|
1310
|
-
function
|
|
1311
|
-
var a =
|
|
1331
|
+
}, uc = {};
|
|
1332
|
+
function vc(b) {
|
|
1333
|
+
var a = uc[b];
|
|
1312
1334
|
return void 0 === a ? U(b) : a;
|
|
1313
1335
|
}
|
|
1314
|
-
var
|
|
1315
|
-
function
|
|
1316
|
-
var a =
|
|
1317
|
-
|
|
1336
|
+
var wc = [];
|
|
1337
|
+
function xc(b) {
|
|
1338
|
+
var a = wc.length;
|
|
1339
|
+
wc.push(b);
|
|
1318
1340
|
return a;
|
|
1319
1341
|
}
|
|
1320
|
-
function
|
|
1342
|
+
function yc(b, a) {
|
|
1321
1343
|
for (var c = Array(b), d = 0; d < b; ++d) {
|
|
1322
|
-
c[d] =
|
|
1344
|
+
c[d] = nb(P[a + 4 * d >> 2], "parameter " + d);
|
|
1323
1345
|
}
|
|
1324
1346
|
return c;
|
|
1325
1347
|
}
|
|
1326
|
-
var
|
|
1327
|
-
if (!
|
|
1328
|
-
var b = {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", _:"./this.program"}, a;
|
|
1329
|
-
for (a in
|
|
1330
|
-
void 0 ===
|
|
1348
|
+
var zc = [], Ac = {}, Cc = () => {
|
|
1349
|
+
if (!Bc) {
|
|
1350
|
+
var b = {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"}, a;
|
|
1351
|
+
for (a in Ac) {
|
|
1352
|
+
void 0 === Ac[a] ? delete b[a] : b[a] = Ac[a];
|
|
1331
1353
|
}
|
|
1332
1354
|
var c = [];
|
|
1333
1355
|
for (a in b) {
|
|
1334
1356
|
c.push(`${a}=${b[a]}`);
|
|
1335
1357
|
}
|
|
1336
|
-
|
|
1358
|
+
Bc = c;
|
|
1337
1359
|
}
|
|
1338
|
-
return
|
|
1339
|
-
},
|
|
1340
|
-
function
|
|
1341
|
-
var a = Array(
|
|
1342
|
-
|
|
1360
|
+
return Bc;
|
|
1361
|
+
}, Bc, Dc = [null, [], []], Ec = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Fc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Gc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1362
|
+
function Hc(b) {
|
|
1363
|
+
var a = Array(jc(b) + 1);
|
|
1364
|
+
ic(b, a, 0, a.length);
|
|
1343
1365
|
return a;
|
|
1344
1366
|
}
|
|
1345
|
-
var
|
|
1367
|
+
var Ic = (b, a, c, d) => {
|
|
1346
1368
|
function e(f, r, q) {
|
|
1347
1369
|
for (f = "number" == typeof f ? f.toString() : f || ""; f.length < r;) {
|
|
1348
1370
|
f = q[0] + f;
|
|
@@ -1352,7 +1374,7 @@ var Dc = (b, a, c, d) => {
|
|
|
1352
1374
|
function g(f, r) {
|
|
1353
1375
|
return e(f, r, "0");
|
|
1354
1376
|
}
|
|
1355
|
-
function
|
|
1377
|
+
function m(f, r) {
|
|
1356
1378
|
function q(D) {
|
|
1357
1379
|
return 0 > D ? -1 : 0 < D ? 1 : 0;
|
|
1358
1380
|
}
|
|
@@ -1360,7 +1382,7 @@ var Dc = (b, a, c, d) => {
|
|
|
1360
1382
|
0 === (G = q(f.getFullYear() - r.getFullYear())) && 0 === (G = q(f.getMonth() - r.getMonth())) && (G = q(f.getDate() - r.getDate()));
|
|
1361
1383
|
return G;
|
|
1362
1384
|
}
|
|
1363
|
-
function
|
|
1385
|
+
function l(f) {
|
|
1364
1386
|
switch(f.getDay()) {
|
|
1365
1387
|
case 0:
|
|
1366
1388
|
return new Date(f.getFullYear() - 1, 11, 29);
|
|
@@ -1378,10 +1400,10 @@ var Dc = (b, a, c, d) => {
|
|
|
1378
1400
|
return new Date(f.getFullYear() - 1, 11, 30);
|
|
1379
1401
|
}
|
|
1380
1402
|
}
|
|
1381
|
-
function
|
|
1403
|
+
function n(f) {
|
|
1382
1404
|
var r = f.J;
|
|
1383
1405
|
for (f = new Date((new Date(f.K + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
1384
|
-
var q = f.getMonth(), G = (
|
|
1406
|
+
var q = f.getMonth(), G = (Ec(f.getFullYear()) ? Fc : Gc)[q];
|
|
1385
1407
|
if (r > G - f.getDate()) {
|
|
1386
1408
|
r -= G - f.getDate() + 1, f.setDate(1), 11 > q ? f.setMonth(q + 1) : (f.setMonth(0), f.setFullYear(f.getFullYear() + 1));
|
|
1387
1409
|
} else {
|
|
@@ -1390,35 +1412,35 @@ var Dc = (b, a, c, d) => {
|
|
|
1390
1412
|
}
|
|
1391
1413
|
}
|
|
1392
1414
|
q = new Date(f.getFullYear() + 1, 0, 4);
|
|
1393
|
-
r =
|
|
1394
|
-
q =
|
|
1395
|
-
return 0 >=
|
|
1415
|
+
r = l(new Date(f.getFullYear(), 0, 4));
|
|
1416
|
+
q = l(q);
|
|
1417
|
+
return 0 >= m(r, f) ? 0 >= m(q, f) ? f.getFullYear() + 1 : f.getFullYear() : f.getFullYear() - 1;
|
|
1396
1418
|
}
|
|
1397
|
-
var
|
|
1398
|
-
d = {qb:
|
|
1399
|
-
c = c ?
|
|
1400
|
-
|
|
1401
|
-
for (var t in
|
|
1402
|
-
c = c.replace(new RegExp(t, "g"),
|
|
1419
|
+
var k = M[d + 40 >> 2];
|
|
1420
|
+
d = {qb:M[d >> 2], pb:M[d + 4 >> 2], Z:M[d + 8 >> 2], ha:M[d + 12 >> 2], $:M[d + 16 >> 2], K:M[d + 20 >> 2], C:M[d + 24 >> 2], J:M[d + 28 >> 2], ub:M[d + 32 >> 2], ob:M[d + 36 >> 2], rb:k ? k ? lc(L, k) : "" : ""};
|
|
1421
|
+
c = c ? lc(L, c) : "";
|
|
1422
|
+
k = {"%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",};
|
|
1423
|
+
for (var t in k) {
|
|
1424
|
+
c = c.replace(new RegExp(t, "g"), k[t]);
|
|
1403
1425
|
}
|
|
1404
1426
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
1405
|
-
|
|
1427
|
+
k = {"%a":f => v[f.C].substring(0, 3), "%A":f => v[f.C], "%b":f => x[f.$].substring(0, 3), "%B":f => x[f.$], "%C":f => g((f.K + 1900) / 100 | 0, 2), "%d":f => g(f.ha, 2), "%e":f => e(f.ha, 2, " "), "%g":f => n(f).toString().substring(2), "%G":f => n(f), "%H":f => g(f.Z, 2), "%I":f => {
|
|
1406
1428
|
f = f.Z;
|
|
1407
1429
|
0 == f ? f = 12 : 12 < f && (f -= 12);
|
|
1408
1430
|
return g(f, 2);
|
|
1409
1431
|
}, "%j":f => {
|
|
1410
|
-
for (var r = 0, q = 0; q <= f.$ - 1; r += (
|
|
1432
|
+
for (var r = 0, q = 0; q <= f.$ - 1; r += (Ec(f.K + 1900) ? Fc : Gc)[q++]) {
|
|
1411
1433
|
}
|
|
1412
1434
|
return g(f.ha + r, 3);
|
|
1413
1435
|
}, "%m":f => g(f.$ + 1, 2), "%M":f => g(f.pb, 2), "%n":() => "\n", "%p":f => 0 <= f.Z && 12 > f.Z ? "AM" : "PM", "%S":f => g(f.qb, 2), "%t":() => "\t", "%u":f => f.C || 7, "%U":f => g(Math.floor((f.J + 7 - f.C) / 7), 2), "%V":f => {
|
|
1414
1436
|
var r = Math.floor((f.J + 7 - (f.C + 6) % 7) / 7);
|
|
1415
1437
|
2 >= (f.C + 371 - f.J - 2) % 7 && r++;
|
|
1416
1438
|
if (r) {
|
|
1417
|
-
53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q &&
|
|
1439
|
+
53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q && Ec(f.K) || (r = 1));
|
|
1418
1440
|
} else {
|
|
1419
1441
|
r = 52;
|
|
1420
1442
|
var q = (f.C + 7 - f.J - 1) % 7;
|
|
1421
|
-
(4 == q || 5 == q &&
|
|
1443
|
+
(4 == q || 5 == q && Ec(f.K % 400 - 1)) && r++;
|
|
1422
1444
|
}
|
|
1423
1445
|
return g(r, 2);
|
|
1424
1446
|
}, "%w":f => f.C, "%W":f => g(Math.floor((f.J + 7 - (f.C + 6) % 7) / 7), 2), "%y":f => (f.K + 1900).toString().substring(2), "%Y":f => f.K + 1900, "%z":f => {
|
|
@@ -1428,18 +1450,18 @@ var Dc = (b, a, c, d) => {
|
|
|
1428
1450
|
return (r ? "+" : "-") + String("0000" + (f / 60 * 100 + f % 60)).slice(-4);
|
|
1429
1451
|
}, "%Z":f => f.rb, "%%":() => "%"};
|
|
1430
1452
|
c = c.replace(/%%/g, "\x00\x00");
|
|
1431
|
-
for (t in
|
|
1432
|
-
c.includes(t) && (c = c.replace(new RegExp(t, "g"),
|
|
1453
|
+
for (t in k) {
|
|
1454
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), k[t](d)));
|
|
1433
1455
|
}
|
|
1434
1456
|
c = c.replace(/\0\0/g, "%");
|
|
1435
|
-
t =
|
|
1457
|
+
t = Hc(c);
|
|
1436
1458
|
if (t.length > a) {
|
|
1437
1459
|
return 0;
|
|
1438
1460
|
}
|
|
1439
|
-
|
|
1461
|
+
Ba.set(t, b);
|
|
1440
1462
|
return t.length - 1;
|
|
1441
1463
|
};
|
|
1442
|
-
Object.assign(
|
|
1464
|
+
Object.assign(Za.prototype, {get(b) {
|
|
1443
1465
|
return this.G[b];
|
|
1444
1466
|
}, has(b) {
|
|
1445
1467
|
return void 0 !== this.G[b];
|
|
@@ -1451,48 +1473,48 @@ Object.assign(Va.prototype, {get(b) {
|
|
|
1451
1473
|
this.G[b] = void 0;
|
|
1452
1474
|
this.ta.push(b);
|
|
1453
1475
|
}});
|
|
1454
|
-
|
|
1476
|
+
$a = h.BindingError = class extends Error {
|
|
1455
1477
|
constructor(b) {
|
|
1456
1478
|
super(b);
|
|
1457
1479
|
this.name = "BindingError";
|
|
1458
1480
|
}
|
|
1459
1481
|
};
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
for (var b = 0, a =
|
|
1464
|
-
void 0 !==
|
|
1482
|
+
Q.G.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
1483
|
+
Q.ua = Q.G.length;
|
|
1484
|
+
h.count_emval_handles = function() {
|
|
1485
|
+
for (var b = 0, a = Q.ua; a < Q.G.length; ++a) {
|
|
1486
|
+
void 0 !== Q.G[a] && ++b;
|
|
1465
1487
|
}
|
|
1466
1488
|
return b;
|
|
1467
1489
|
};
|
|
1468
|
-
|
|
1469
|
-
for (var
|
|
1470
|
-
|
|
1490
|
+
cb = h.PureVirtualError = bb("PureVirtualError");
|
|
1491
|
+
for (var Jc = Array(256), Kc = 0; 256 > Kc; ++Kc) {
|
|
1492
|
+
Jc[Kc] = String.fromCharCode(Kc);
|
|
1471
1493
|
}
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
return Object.keys(
|
|
1494
|
+
db = Jc;
|
|
1495
|
+
h.getInheritedInstanceCount = function() {
|
|
1496
|
+
return Object.keys(hb).length;
|
|
1475
1497
|
};
|
|
1476
|
-
|
|
1498
|
+
h.getLiveInheritedInstances = function() {
|
|
1477
1499
|
var b = [], a;
|
|
1478
|
-
for (a in
|
|
1479
|
-
|
|
1500
|
+
for (a in hb) {
|
|
1501
|
+
hb.hasOwnProperty(a) && b.push(hb[a]);
|
|
1480
1502
|
}
|
|
1481
1503
|
return b;
|
|
1482
1504
|
};
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1505
|
+
h.flushPendingDeletes = fb;
|
|
1506
|
+
h.setDelayFunction = function(b) {
|
|
1507
|
+
gb = b;
|
|
1508
|
+
eb.length && gb && gb(fb);
|
|
1487
1509
|
};
|
|
1488
|
-
|
|
1510
|
+
zb = h.InternalError = class extends Error {
|
|
1489
1511
|
constructor(b) {
|
|
1490
1512
|
super(b);
|
|
1491
1513
|
this.name = "InternalError";
|
|
1492
1514
|
}
|
|
1493
1515
|
};
|
|
1494
|
-
|
|
1495
|
-
if (!(this instanceof
|
|
1516
|
+
Mb.prototype.isAliasOf = function(b) {
|
|
1517
|
+
if (!(this instanceof Mb && b instanceof Mb)) {
|
|
1496
1518
|
return !1;
|
|
1497
1519
|
}
|
|
1498
1520
|
var a = this.g.j.h, c = this.g.i, d = b.g.j.h;
|
|
@@ -1504,58 +1526,58 @@ Hb.prototype.isAliasOf = function(b) {
|
|
|
1504
1526
|
}
|
|
1505
1527
|
return a === d && c === b;
|
|
1506
1528
|
};
|
|
1507
|
-
|
|
1508
|
-
this.g.i ||
|
|
1529
|
+
Mb.prototype.clone = function() {
|
|
1530
|
+
this.g.i || Lb(this);
|
|
1509
1531
|
if (this.g.O) {
|
|
1510
1532
|
return this.g.count.value += 1, this;
|
|
1511
1533
|
}
|
|
1512
|
-
var b =
|
|
1534
|
+
var b = Cb, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
1513
1535
|
b = b(c.call(a, d, {g:{value:{count:e.count, M:e.M, O:e.O, i:e.i, j:e.j, s:e.s, A:e.A,},}}));
|
|
1514
1536
|
b.g.count.value += 1;
|
|
1515
1537
|
b.g.M = !1;
|
|
1516
1538
|
return b;
|
|
1517
1539
|
};
|
|
1518
|
-
|
|
1519
|
-
this.g.i ||
|
|
1520
|
-
this.g.M && !this.g.O &&
|
|
1521
|
-
|
|
1522
|
-
|
|
1540
|
+
Mb.prototype["delete"] = function() {
|
|
1541
|
+
this.g.i || Lb(this);
|
|
1542
|
+
this.g.M && !this.g.O && R("Object already scheduled for deletion");
|
|
1543
|
+
ob(this);
|
|
1544
|
+
qb(this.g);
|
|
1523
1545
|
this.g.O || (this.g.s = void 0, this.g.i = void 0);
|
|
1524
1546
|
};
|
|
1525
|
-
|
|
1547
|
+
Mb.prototype.isDeleted = function() {
|
|
1526
1548
|
return !this.g.i;
|
|
1527
1549
|
};
|
|
1528
|
-
|
|
1529
|
-
this.g.i ||
|
|
1530
|
-
this.g.M && !this.g.O &&
|
|
1531
|
-
|
|
1532
|
-
1 ===
|
|
1550
|
+
Mb.prototype.deleteLater = function() {
|
|
1551
|
+
this.g.i || Lb(this);
|
|
1552
|
+
this.g.M && !this.g.O && R("Object already scheduled for deletion");
|
|
1553
|
+
eb.push(this);
|
|
1554
|
+
1 === eb.length && gb && gb(fb);
|
|
1533
1555
|
this.g.M = !0;
|
|
1534
1556
|
return this;
|
|
1535
1557
|
};
|
|
1536
|
-
|
|
1558
|
+
Vb.prototype.Va = function(b) {
|
|
1537
1559
|
this.za && (b = this.za(b));
|
|
1538
1560
|
return b;
|
|
1539
1561
|
};
|
|
1540
|
-
|
|
1562
|
+
Vb.prototype.pa = function(b) {
|
|
1541
1563
|
this.H && this.H(b);
|
|
1542
1564
|
};
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1565
|
+
Vb.prototype.argPackAdvance = 8;
|
|
1566
|
+
Vb.prototype.readValueFromPointer = Fb;
|
|
1567
|
+
Vb.prototype.deleteObject = function(b) {
|
|
1546
1568
|
if (null !== b) {
|
|
1547
1569
|
b["delete"]();
|
|
1548
1570
|
}
|
|
1549
1571
|
};
|
|
1550
|
-
|
|
1572
|
+
Vb.prototype.fromWireType = function(b) {
|
|
1551
1573
|
function a() {
|
|
1552
|
-
return this.V ?
|
|
1574
|
+
return this.V ? Bb(this.h.B, {j:this.ib, i:c, A:this, s:b,}) : Bb(this.h.B, {j:this, i:b,});
|
|
1553
1575
|
}
|
|
1554
1576
|
var c = this.Va(b);
|
|
1555
1577
|
if (!c) {
|
|
1556
1578
|
return this.pa(b), null;
|
|
1557
1579
|
}
|
|
1558
|
-
var d =
|
|
1580
|
+
var d = yb(this.h, c);
|
|
1559
1581
|
if (void 0 !== d) {
|
|
1560
1582
|
if (0 === d.g.count.value) {
|
|
1561
1583
|
return d.g.i = c, d.g.s = b, d.clone();
|
|
@@ -1565,118 +1587,118 @@ Qb.prototype.fromWireType = function(b) {
|
|
|
1565
1587
|
return d;
|
|
1566
1588
|
}
|
|
1567
1589
|
d = this.h.Ua(c);
|
|
1568
|
-
d =
|
|
1590
|
+
d = sb[d];
|
|
1569
1591
|
if (!d) {
|
|
1570
1592
|
return a.call(this);
|
|
1571
1593
|
}
|
|
1572
1594
|
d = this.U ? d.Ka : d.pointerType;
|
|
1573
|
-
var e =
|
|
1574
|
-
return null === e ? a.call(this) : this.V ?
|
|
1595
|
+
var e = rb(c, this.h, d.h);
|
|
1596
|
+
return null === e ? a.call(this) : this.V ? Bb(d.h.B, {j:d, i:e, A:this, s:b,}) : Bb(d.h.B, {j:d, i:e,});
|
|
1575
1597
|
};
|
|
1576
|
-
|
|
1577
|
-
var
|
|
1598
|
+
$b = h.UnboundTypeError = bb("UnboundTypeError");
|
|
1599
|
+
var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
1578
1600
|
b = U(b);
|
|
1579
|
-
a =
|
|
1580
|
-
c =
|
|
1581
|
-
var d = [].slice, e = a.h, g = e.B,
|
|
1582
|
-
b =
|
|
1583
|
-
e.l.ya.forEach(function(
|
|
1584
|
-
if (this[
|
|
1585
|
-
throw new
|
|
1601
|
+
a = nb(a, "wrapper");
|
|
1602
|
+
c = S(c);
|
|
1603
|
+
var d = [].slice, e = a.h, g = e.B, m = e.l.B, l = e.l.constructor;
|
|
1604
|
+
b = Ya(b, function() {
|
|
1605
|
+
e.l.ya.forEach(function(k) {
|
|
1606
|
+
if (this[k] === m[k]) {
|
|
1607
|
+
throw new cb(`Pure virtual function ${k} must be implemented in JavaScript`);
|
|
1586
1608
|
}
|
|
1587
1609
|
}.bind(this));
|
|
1588
1610
|
Object.defineProperty(this, "__parent", {value:g});
|
|
1589
1611
|
this.__construct.apply(this, d.call(arguments));
|
|
1590
1612
|
});
|
|
1591
1613
|
g.__construct = function() {
|
|
1592
|
-
this === g &&
|
|
1593
|
-
var
|
|
1594
|
-
|
|
1595
|
-
var t =
|
|
1596
|
-
|
|
1614
|
+
this === g && R("Pass correct 'this' to __construct");
|
|
1615
|
+
var k = l.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
1616
|
+
ob(k);
|
|
1617
|
+
var t = k.g;
|
|
1618
|
+
k.notifyOnDestruction();
|
|
1597
1619
|
t.O = !0;
|
|
1598
1620
|
Object.defineProperties(this, {g:{value:t}});
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1621
|
+
Cb(this);
|
|
1622
|
+
k = t.i;
|
|
1623
|
+
k = ib(e, k);
|
|
1624
|
+
hb.hasOwnProperty(k) ? R(`Tried to register registered instance: ${k}`) : hb[k] = this;
|
|
1603
1625
|
};
|
|
1604
1626
|
g.__destruct = function() {
|
|
1605
|
-
this === g &&
|
|
1606
|
-
|
|
1607
|
-
var
|
|
1608
|
-
|
|
1609
|
-
|
|
1627
|
+
this === g && R("Pass correct 'this' to __destruct");
|
|
1628
|
+
ob(this);
|
|
1629
|
+
var k = this.g.i;
|
|
1630
|
+
k = ib(e, k);
|
|
1631
|
+
hb.hasOwnProperty(k) ? delete hb[k] : R(`Tried to unregister unregistered instance: ${k}`);
|
|
1610
1632
|
};
|
|
1611
1633
|
b.prototype = Object.create(g);
|
|
1612
|
-
for (var
|
|
1613
|
-
b.prototype[
|
|
1634
|
+
for (var n in c) {
|
|
1635
|
+
b.prototype[n] = c[n];
|
|
1614
1636
|
}
|
|
1615
|
-
return
|
|
1637
|
+
return ab(b);
|
|
1616
1638
|
}, _embind_finalize_value_object:function(b) {
|
|
1617
|
-
var a =
|
|
1618
|
-
delete
|
|
1619
|
-
var c = a.fa, d = a.H, e = a.sa, g = e.map(
|
|
1620
|
-
V([b], g,
|
|
1621
|
-
var
|
|
1622
|
-
e.forEach((
|
|
1623
|
-
var t =
|
|
1624
|
-
|
|
1639
|
+
var a = Db[b];
|
|
1640
|
+
delete Db[b];
|
|
1641
|
+
var c = a.fa, d = a.H, e = a.sa, g = e.map(m => m.Ya).concat(e.map(m => m.lb));
|
|
1642
|
+
V([b], g, m => {
|
|
1643
|
+
var l = {};
|
|
1644
|
+
e.forEach((n, k) => {
|
|
1645
|
+
var t = m[k], v = n.Wa, x = n.Xa, f = m[k + e.length], r = n.kb, q = n.mb;
|
|
1646
|
+
l[n.Sa] = {read:G => t.fromWireType(v(x, G)), write:(G, D) => {
|
|
1625
1647
|
var u = [];
|
|
1626
1648
|
r(q, G, f.toWireType(u, D));
|
|
1627
|
-
|
|
1649
|
+
Eb(u);
|
|
1628
1650
|
}};
|
|
1629
1651
|
});
|
|
1630
|
-
return [{name:a.name, fromWireType:function(
|
|
1631
|
-
var
|
|
1632
|
-
for (t in
|
|
1633
|
-
|
|
1652
|
+
return [{name:a.name, fromWireType:function(n) {
|
|
1653
|
+
var k = {}, t;
|
|
1654
|
+
for (t in l) {
|
|
1655
|
+
k[t] = l[t].read(n);
|
|
1634
1656
|
}
|
|
1635
|
-
d(
|
|
1636
|
-
return
|
|
1637
|
-
}, toWireType:function(
|
|
1638
|
-
for (var t in
|
|
1639
|
-
if (!(t in
|
|
1657
|
+
d(n);
|
|
1658
|
+
return k;
|
|
1659
|
+
}, toWireType:function(n, k) {
|
|
1660
|
+
for (var t in l) {
|
|
1661
|
+
if (!(t in k)) {
|
|
1640
1662
|
throw new TypeError(`Missing field: "${t}"`);
|
|
1641
1663
|
}
|
|
1642
1664
|
}
|
|
1643
1665
|
var v = c();
|
|
1644
|
-
for (t in
|
|
1645
|
-
|
|
1666
|
+
for (t in l) {
|
|
1667
|
+
l[t].write(v, k[t]);
|
|
1646
1668
|
}
|
|
1647
|
-
null !==
|
|
1669
|
+
null !== n && n.push(d, v);
|
|
1648
1670
|
return v;
|
|
1649
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1671
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:d,}];
|
|
1650
1672
|
});
|
|
1651
1673
|
}, _embind_register_bigint:function() {
|
|
1652
1674
|
}, _embind_register_bool:function(b, a, c, d, e) {
|
|
1653
|
-
var g =
|
|
1675
|
+
var g = Jb(c);
|
|
1654
1676
|
a = U(a);
|
|
1655
|
-
|
|
1656
|
-
return !!
|
|
1657
|
-
}, toWireType:function(
|
|
1658
|
-
return
|
|
1659
|
-
}, argPackAdvance:8, readValueFromPointer:function(
|
|
1677
|
+
Ib(b, {name:a, fromWireType:function(m) {
|
|
1678
|
+
return !!m;
|
|
1679
|
+
}, toWireType:function(m, l) {
|
|
1680
|
+
return l ? d : e;
|
|
1681
|
+
}, argPackAdvance:8, readValueFromPointer:function(m) {
|
|
1660
1682
|
if (1 === c) {
|
|
1661
|
-
var
|
|
1683
|
+
var l = Ba;
|
|
1662
1684
|
} else if (2 === c) {
|
|
1663
|
-
|
|
1685
|
+
l = Ca;
|
|
1664
1686
|
} else if (4 === c) {
|
|
1665
|
-
|
|
1687
|
+
l = M;
|
|
1666
1688
|
} else {
|
|
1667
1689
|
throw new TypeError("Unknown boolean type size: " + a);
|
|
1668
1690
|
}
|
|
1669
|
-
return this.fromWireType(
|
|
1691
|
+
return this.fromWireType(l[m >> g]);
|
|
1670
1692
|
}, v:null,});
|
|
1671
|
-
}, _embind_register_class:function(b, a, c, d, e, g,
|
|
1693
|
+
}, _embind_register_class:function(b, a, c, d, e, g, m, l, n, k, t, v, x) {
|
|
1672
1694
|
t = U(t);
|
|
1673
1695
|
g = Z(e, g);
|
|
1674
|
-
|
|
1675
|
-
|
|
1696
|
+
l && (l = Z(m, l));
|
|
1697
|
+
k && (k = Z(n, k));
|
|
1676
1698
|
x = Z(v, x);
|
|
1677
|
-
var f =
|
|
1678
|
-
|
|
1679
|
-
|
|
1699
|
+
var f = Xa(t);
|
|
1700
|
+
Ob(f, function() {
|
|
1701
|
+
ac(`Cannot construct ${t} due to unbound types`, [d]);
|
|
1680
1702
|
});
|
|
1681
1703
|
V([b, a, c], d ? [d] : [], function(r) {
|
|
1682
1704
|
r = r[0];
|
|
@@ -1684,50 +1706,50 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1684
1706
|
var q = r.h;
|
|
1685
1707
|
var G = q.B;
|
|
1686
1708
|
} else {
|
|
1687
|
-
G =
|
|
1709
|
+
G = Mb.prototype;
|
|
1688
1710
|
}
|
|
1689
|
-
r =
|
|
1711
|
+
r = Ya(f, function() {
|
|
1690
1712
|
if (Object.getPrototypeOf(this) !== D) {
|
|
1691
|
-
throw new
|
|
1713
|
+
throw new $a("Use 'new' to construct " + t);
|
|
1692
1714
|
}
|
|
1693
1715
|
if (void 0 === u.I) {
|
|
1694
|
-
throw new
|
|
1716
|
+
throw new $a(t + " has no accessible constructor");
|
|
1695
1717
|
}
|
|
1696
1718
|
var O = u.I[arguments.length];
|
|
1697
1719
|
if (void 0 === O) {
|
|
1698
|
-
throw new
|
|
1720
|
+
throw new $a(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.I).toString()}) parameters instead!`);
|
|
1699
1721
|
}
|
|
1700
1722
|
return O.apply(this, arguments);
|
|
1701
1723
|
});
|
|
1702
1724
|
var D = Object.create(G, {constructor:{value:r},});
|
|
1703
1725
|
r.prototype = D;
|
|
1704
|
-
var u = new
|
|
1726
|
+
var u = new Pb(t, r, D, x, q, g, l, k);
|
|
1705
1727
|
u.l && (void 0 === u.l.T && (u.l.T = []), u.l.T.push(u));
|
|
1706
|
-
q = new
|
|
1707
|
-
G = new
|
|
1708
|
-
var I = new
|
|
1709
|
-
|
|
1710
|
-
|
|
1728
|
+
q = new Vb(t, u, !0, !1);
|
|
1729
|
+
G = new Vb(t + "*", u, !1, !1);
|
|
1730
|
+
var I = new Vb(t + " const*", u, !1, !0);
|
|
1731
|
+
sb[b] = {pointerType:G, Ka:I};
|
|
1732
|
+
Wb(f, r);
|
|
1711
1733
|
return [q, G, I];
|
|
1712
1734
|
});
|
|
1713
|
-
}, _embind_register_class_class_function:function(b, a, c, d, e, g,
|
|
1714
|
-
var
|
|
1735
|
+
}, _embind_register_class_class_function:function(b, a, c, d, e, g, m) {
|
|
1736
|
+
var l = cc(c, d);
|
|
1715
1737
|
a = U(a);
|
|
1716
1738
|
g = Z(e, g);
|
|
1717
|
-
V([], [b], function(
|
|
1718
|
-
function
|
|
1719
|
-
|
|
1739
|
+
V([], [b], function(n) {
|
|
1740
|
+
function k() {
|
|
1741
|
+
ac(`Cannot call ${t} due to unbound types`, l);
|
|
1720
1742
|
}
|
|
1721
|
-
|
|
1722
|
-
var t = `${
|
|
1743
|
+
n = n[0];
|
|
1744
|
+
var t = `${n.name}.${a}`;
|
|
1723
1745
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1724
|
-
var v =
|
|
1725
|
-
void 0 === v[a] ? (
|
|
1726
|
-
V([],
|
|
1727
|
-
x =
|
|
1746
|
+
var v = n.h.constructor;
|
|
1747
|
+
void 0 === v[a] ? (k.L = c - 1, v[a] = k) : (Nb(v, a, t), v[a].m[c - 1] = k);
|
|
1748
|
+
V([], l, function(x) {
|
|
1749
|
+
x = bc(t, [x[0], null].concat(x.slice(1)), null, g, m);
|
|
1728
1750
|
void 0 === v[a].m ? (x.L = c - 1, v[a] = x) : v[a].m[c - 1] = x;
|
|
1729
|
-
if (
|
|
1730
|
-
for (const f of
|
|
1751
|
+
if (n.h.T) {
|
|
1752
|
+
for (const f of n.h.T) {
|
|
1731
1753
|
f.constructor.hasOwnProperty(a) || (f.constructor[a] = x);
|
|
1732
1754
|
}
|
|
1733
1755
|
}
|
|
@@ -1735,102 +1757,102 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1735
1757
|
});
|
|
1736
1758
|
return [];
|
|
1737
1759
|
});
|
|
1738
|
-
}, _embind_register_class_class_property:function(b, a, c, d, e, g,
|
|
1760
|
+
}, _embind_register_class_class_property:function(b, a, c, d, e, g, m, l) {
|
|
1739
1761
|
a = U(a);
|
|
1740
1762
|
g = Z(e, g);
|
|
1741
|
-
V([], [b], function(
|
|
1742
|
-
|
|
1743
|
-
var
|
|
1744
|
-
|
|
1763
|
+
V([], [b], function(n) {
|
|
1764
|
+
n = n[0];
|
|
1765
|
+
var k = `${n.name}.${a}`, t = {get() {
|
|
1766
|
+
ac(`Cannot access ${k} due to unbound types`, [c]);
|
|
1745
1767
|
}, enumerable:!0, configurable:!0};
|
|
1746
|
-
t.set =
|
|
1747
|
-
|
|
1768
|
+
t.set = l ? () => {
|
|
1769
|
+
ac(`Cannot access ${k} due to unbound types`, [c]);
|
|
1748
1770
|
} : () => {
|
|
1749
|
-
|
|
1771
|
+
R(`${k} is a read-only property`);
|
|
1750
1772
|
};
|
|
1751
|
-
Object.defineProperty(
|
|
1773
|
+
Object.defineProperty(n.h.constructor, a, t);
|
|
1752
1774
|
V([], [c], function(v) {
|
|
1753
1775
|
v = v[0];
|
|
1754
1776
|
var x = {get() {
|
|
1755
1777
|
return v.fromWireType(g(d));
|
|
1756
1778
|
}, enumerable:!0};
|
|
1757
|
-
|
|
1779
|
+
l && (l = Z(m, l), x.set = f => {
|
|
1758
1780
|
var r = [];
|
|
1759
|
-
|
|
1760
|
-
|
|
1781
|
+
l(d, v.toWireType(r, f));
|
|
1782
|
+
Eb(r);
|
|
1761
1783
|
});
|
|
1762
|
-
Object.defineProperty(
|
|
1784
|
+
Object.defineProperty(n.h.constructor, a, x);
|
|
1763
1785
|
return [];
|
|
1764
1786
|
});
|
|
1765
1787
|
return [];
|
|
1766
1788
|
});
|
|
1767
1789
|
}, _embind_register_class_constructor:function(b, a, c, d, e, g) {
|
|
1768
|
-
var
|
|
1790
|
+
var m = cc(a, c);
|
|
1769
1791
|
e = Z(d, e);
|
|
1770
|
-
V([], [b], function(
|
|
1771
|
-
|
|
1772
|
-
var
|
|
1773
|
-
void 0 ===
|
|
1774
|
-
if (void 0 !==
|
|
1775
|
-
throw new
|
|
1792
|
+
V([], [b], function(l) {
|
|
1793
|
+
l = l[0];
|
|
1794
|
+
var n = `constructor ${l.name}`;
|
|
1795
|
+
void 0 === l.h.I && (l.h.I = []);
|
|
1796
|
+
if (void 0 !== l.h.I[a - 1]) {
|
|
1797
|
+
throw new $a(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1776
1798
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1799
|
+
l.h.I[a - 1] = () => {
|
|
1800
|
+
ac(`Cannot construct ${l.name} due to unbound types`, m);
|
|
1779
1801
|
};
|
|
1780
|
-
V([],
|
|
1781
|
-
|
|
1782
|
-
|
|
1802
|
+
V([], m, function(k) {
|
|
1803
|
+
k.splice(1, 0, null);
|
|
1804
|
+
l.h.I[a - 1] = bc(n, k, null, e, g);
|
|
1783
1805
|
return [];
|
|
1784
1806
|
});
|
|
1785
1807
|
return [];
|
|
1786
1808
|
});
|
|
1787
|
-
}, _embind_register_class_function:function(b, a, c, d, e, g,
|
|
1788
|
-
var
|
|
1809
|
+
}, _embind_register_class_function:function(b, a, c, d, e, g, m, l) {
|
|
1810
|
+
var n = cc(c, d);
|
|
1789
1811
|
a = U(a);
|
|
1790
1812
|
g = Z(e, g);
|
|
1791
|
-
V([], [b], function(
|
|
1813
|
+
V([], [b], function(k) {
|
|
1792
1814
|
function t() {
|
|
1793
|
-
|
|
1815
|
+
ac(`Cannot call ${v} due to unbound types`, n);
|
|
1794
1816
|
}
|
|
1795
|
-
|
|
1796
|
-
var v = `${
|
|
1817
|
+
k = k[0];
|
|
1818
|
+
var v = `${k.name}.${a}`;
|
|
1797
1819
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1798
|
-
|
|
1799
|
-
var x =
|
|
1800
|
-
void 0 === f || void 0 === f.m && f.className !==
|
|
1801
|
-
V([],
|
|
1802
|
-
r =
|
|
1820
|
+
l && k.h.ya.push(a);
|
|
1821
|
+
var x = k.h.B, f = x[a];
|
|
1822
|
+
void 0 === f || void 0 === f.m && f.className !== k.name && f.L === c - 2 ? (t.L = c - 2, t.className = k.name, x[a] = t) : (Nb(x, a, v), x[a].m[c - 2] = t);
|
|
1823
|
+
V([], n, function(r) {
|
|
1824
|
+
r = bc(v, r, k, g, m);
|
|
1803
1825
|
void 0 === x[a].m ? (r.L = c - 2, x[a] = r) : x[a].m[c - 2] = r;
|
|
1804
1826
|
return [];
|
|
1805
1827
|
});
|
|
1806
1828
|
return [];
|
|
1807
1829
|
});
|
|
1808
|
-
}, _embind_register_class_property:function(b, a, c, d, e, g,
|
|
1830
|
+
}, _embind_register_class_property:function(b, a, c, d, e, g, m, l, n, k) {
|
|
1809
1831
|
a = U(a);
|
|
1810
1832
|
e = Z(d, e);
|
|
1811
1833
|
V([], [b], function(t) {
|
|
1812
1834
|
t = t[0];
|
|
1813
1835
|
var v = `${t.name}.${a}`, x = {get() {
|
|
1814
|
-
|
|
1836
|
+
ac(`Cannot access ${v} due to unbound types`, [c, m]);
|
|
1815
1837
|
}, enumerable:!0, configurable:!0};
|
|
1816
|
-
x.set =
|
|
1817
|
-
|
|
1838
|
+
x.set = n ? () => {
|
|
1839
|
+
ac(`Cannot access ${v} due to unbound types`, [c, m]);
|
|
1818
1840
|
} : () => {
|
|
1819
|
-
|
|
1841
|
+
R(v + " is a read-only property");
|
|
1820
1842
|
};
|
|
1821
1843
|
Object.defineProperty(t.h.B, a, x);
|
|
1822
|
-
V([],
|
|
1844
|
+
V([], n ? [c, m] : [c], function(f) {
|
|
1823
1845
|
var r = f[0], q = {get() {
|
|
1824
|
-
var D =
|
|
1846
|
+
var D = dc(this, t, v + " getter");
|
|
1825
1847
|
return r.fromWireType(e(g, D));
|
|
1826
1848
|
}, enumerable:!0};
|
|
1827
|
-
if (
|
|
1828
|
-
|
|
1849
|
+
if (n) {
|
|
1850
|
+
n = Z(l, n);
|
|
1829
1851
|
var G = f[1];
|
|
1830
1852
|
q.set = function(D) {
|
|
1831
|
-
var u =
|
|
1832
|
-
|
|
1833
|
-
|
|
1853
|
+
var u = dc(this, t, v + " setter"), I = [];
|
|
1854
|
+
n(k, u, G.toWireType(I, D));
|
|
1855
|
+
Eb(I);
|
|
1834
1856
|
};
|
|
1835
1857
|
}
|
|
1836
1858
|
Object.defineProperty(t.h.B, a, q);
|
|
@@ -1840,240 +1862,240 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1840
1862
|
});
|
|
1841
1863
|
}, _embind_register_emval:function(b, a) {
|
|
1842
1864
|
a = U(a);
|
|
1843
|
-
|
|
1844
|
-
var d =
|
|
1845
|
-
|
|
1865
|
+
Ib(b, {name:a, fromWireType:function(c) {
|
|
1866
|
+
var d = S(c);
|
|
1867
|
+
ec(c);
|
|
1846
1868
|
return d;
|
|
1847
1869
|
}, toWireType:function(c, d) {
|
|
1848
|
-
return
|
|
1849
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1870
|
+
return ab(d);
|
|
1871
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:null,});
|
|
1850
1872
|
}, _embind_register_enum:function(b, a, c, d) {
|
|
1851
1873
|
function e() {
|
|
1852
1874
|
}
|
|
1853
|
-
c =
|
|
1875
|
+
c = Jb(c);
|
|
1854
1876
|
a = U(a);
|
|
1855
1877
|
e.values = {};
|
|
1856
|
-
|
|
1878
|
+
Ib(b, {name:a, constructor:e, fromWireType:function(g) {
|
|
1857
1879
|
return this.constructor.values[g];
|
|
1858
|
-
}, toWireType:function(g,
|
|
1859
|
-
return
|
|
1860
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1861
|
-
|
|
1880
|
+
}, toWireType:function(g, m) {
|
|
1881
|
+
return m.value;
|
|
1882
|
+
}, argPackAdvance:8, readValueFromPointer:fc(a, c, d), v:null,});
|
|
1883
|
+
Ob(a, e);
|
|
1862
1884
|
}, _embind_register_enum_value:function(b, a, c) {
|
|
1863
|
-
var d =
|
|
1885
|
+
var d = nb(b, "enum");
|
|
1864
1886
|
a = U(a);
|
|
1865
1887
|
b = d.constructor;
|
|
1866
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
1888
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Ya(`${d.name}_${a}`, function() {
|
|
1867
1889
|
})},});
|
|
1868
1890
|
b.values[c] = d;
|
|
1869
1891
|
b[a] = d;
|
|
1870
1892
|
}, _embind_register_float:function(b, a, c) {
|
|
1871
|
-
c =
|
|
1893
|
+
c = Jb(c);
|
|
1872
1894
|
a = U(a);
|
|
1873
|
-
|
|
1895
|
+
Ib(b, {name:a, fromWireType:function(d) {
|
|
1874
1896
|
return d;
|
|
1875
1897
|
}, toWireType:function(d, e) {
|
|
1876
1898
|
return e;
|
|
1877
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1899
|
+
}, argPackAdvance:8, readValueFromPointer:gc(a, c), v:null,});
|
|
1878
1900
|
}, _embind_register_function:function(b, a, c, d, e, g) {
|
|
1879
|
-
var
|
|
1901
|
+
var m = cc(a, c);
|
|
1880
1902
|
b = U(b);
|
|
1881
1903
|
e = Z(d, e);
|
|
1882
|
-
|
|
1883
|
-
|
|
1904
|
+
Ob(b, function() {
|
|
1905
|
+
ac(`Cannot call ${b} due to unbound types`, m);
|
|
1884
1906
|
}, a - 1);
|
|
1885
|
-
V([],
|
|
1886
|
-
|
|
1907
|
+
V([], m, function(l) {
|
|
1908
|
+
Wb(b, bc(b, [l[0], null].concat(l.slice(1)), null, e, g), a - 1);
|
|
1887
1909
|
return [];
|
|
1888
1910
|
});
|
|
1889
1911
|
}, _embind_register_integer:function(b, a, c, d, e) {
|
|
1890
1912
|
a = U(a);
|
|
1891
1913
|
-1 === e && (e = 4294967295);
|
|
1892
|
-
e =
|
|
1893
|
-
var g =
|
|
1914
|
+
e = Jb(c);
|
|
1915
|
+
var g = l => l;
|
|
1894
1916
|
if (0 === d) {
|
|
1895
|
-
var
|
|
1896
|
-
g =
|
|
1917
|
+
var m = 32 - 8 * c;
|
|
1918
|
+
g = l => l << m >>> m;
|
|
1897
1919
|
}
|
|
1898
|
-
c = a.includes("unsigned") ? function(
|
|
1899
|
-
return
|
|
1900
|
-
} : function(
|
|
1901
|
-
return
|
|
1920
|
+
c = a.includes("unsigned") ? function(l, n) {
|
|
1921
|
+
return n >>> 0;
|
|
1922
|
+
} : function(l, n) {
|
|
1923
|
+
return n;
|
|
1902
1924
|
};
|
|
1903
|
-
|
|
1925
|
+
Ib(b, {name:a, fromWireType:g, toWireType:c, argPackAdvance:8, readValueFromPointer:hc(a, e, 0 !== d), v:null,});
|
|
1904
1926
|
}, _embind_register_memory_view:function(b, a, c) {
|
|
1905
1927
|
function d(g) {
|
|
1906
1928
|
g >>= 2;
|
|
1907
|
-
var
|
|
1908
|
-
return new e(
|
|
1929
|
+
var m = P;
|
|
1930
|
+
return new e(m.buffer, m[g + 1], m[g]);
|
|
1909
1931
|
}
|
|
1910
1932
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
|
|
1911
1933
|
c = U(c);
|
|
1912
|
-
|
|
1934
|
+
Ib(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {ab:!0,});
|
|
1913
1935
|
}, _embind_register_std_string:function(b, a) {
|
|
1914
1936
|
a = U(a);
|
|
1915
1937
|
var c = "std::string" === a;
|
|
1916
|
-
|
|
1917
|
-
var e =
|
|
1938
|
+
Ib(b, {name:a, fromWireType:function(d) {
|
|
1939
|
+
var e = P[d >> 2], g = d + 4;
|
|
1918
1940
|
if (c) {
|
|
1919
|
-
for (var
|
|
1920
|
-
var
|
|
1921
|
-
if (
|
|
1922
|
-
|
|
1923
|
-
if (void 0 ===
|
|
1924
|
-
var
|
|
1941
|
+
for (var m = g, l = 0; l <= e; ++l) {
|
|
1942
|
+
var n = g + l;
|
|
1943
|
+
if (l == e || 0 == L[n]) {
|
|
1944
|
+
m = m ? lc(L, m, n - m) : "";
|
|
1945
|
+
if (void 0 === k) {
|
|
1946
|
+
var k = m;
|
|
1925
1947
|
} else {
|
|
1926
|
-
|
|
1948
|
+
k += String.fromCharCode(0), k += m;
|
|
1927
1949
|
}
|
|
1928
|
-
|
|
1950
|
+
m = n + 1;
|
|
1929
1951
|
}
|
|
1930
1952
|
}
|
|
1931
1953
|
} else {
|
|
1932
|
-
|
|
1933
|
-
for (
|
|
1934
|
-
|
|
1954
|
+
k = Array(e);
|
|
1955
|
+
for (l = 0; l < e; ++l) {
|
|
1956
|
+
k[l] = String.fromCharCode(L[g + l]);
|
|
1935
1957
|
}
|
|
1936
|
-
|
|
1958
|
+
k = k.join("");
|
|
1937
1959
|
}
|
|
1938
|
-
|
|
1939
|
-
return
|
|
1960
|
+
mb(d);
|
|
1961
|
+
return k;
|
|
1940
1962
|
}, toWireType:function(d, e) {
|
|
1941
1963
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
1942
1964
|
var g = "string" == typeof e;
|
|
1943
|
-
g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
1944
|
-
var
|
|
1945
|
-
var
|
|
1946
|
-
|
|
1965
|
+
g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || R("Cannot pass non-string to std::string");
|
|
1966
|
+
var m = c && g ? jc(e) : e.length;
|
|
1967
|
+
var l = Lc(4 + m + 1), n = l + 4;
|
|
1968
|
+
P[l >> 2] = m;
|
|
1947
1969
|
if (c && g) {
|
|
1948
|
-
|
|
1970
|
+
ic(e, L, n, m + 1);
|
|
1949
1971
|
} else {
|
|
1950
1972
|
if (g) {
|
|
1951
|
-
for (g = 0; g <
|
|
1952
|
-
var
|
|
1953
|
-
255 <
|
|
1954
|
-
|
|
1973
|
+
for (g = 0; g < m; ++g) {
|
|
1974
|
+
var k = e.charCodeAt(g);
|
|
1975
|
+
255 < k && (mb(n), R("String has UTF-16 code units that do not fit in 8 bits"));
|
|
1976
|
+
L[n + g] = k;
|
|
1955
1977
|
}
|
|
1956
1978
|
} else {
|
|
1957
|
-
for (g = 0; g <
|
|
1958
|
-
|
|
1979
|
+
for (g = 0; g < m; ++g) {
|
|
1980
|
+
L[n + g] = e[g];
|
|
1959
1981
|
}
|
|
1960
1982
|
}
|
|
1961
1983
|
}
|
|
1962
|
-
null !== d && d.push(
|
|
1963
|
-
return
|
|
1964
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1965
|
-
|
|
1984
|
+
null !== d && d.push(mb, l);
|
|
1985
|
+
return l;
|
|
1986
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:function(d) {
|
|
1987
|
+
mb(d);
|
|
1966
1988
|
},});
|
|
1967
1989
|
}, _embind_register_std_wstring:function(b, a, c) {
|
|
1968
1990
|
c = U(c);
|
|
1969
1991
|
if (2 === a) {
|
|
1970
|
-
var d =
|
|
1971
|
-
var e =
|
|
1972
|
-
var g =
|
|
1973
|
-
var
|
|
1974
|
-
var
|
|
1992
|
+
var d = nc;
|
|
1993
|
+
var e = pc;
|
|
1994
|
+
var g = qc;
|
|
1995
|
+
var m = () => Da;
|
|
1996
|
+
var l = 1;
|
|
1975
1997
|
} else {
|
|
1976
|
-
4 === a && (d =
|
|
1998
|
+
4 === a && (d = rc, e = sc, g = tc, m = () => P, l = 2);
|
|
1977
1999
|
}
|
|
1978
|
-
|
|
1979
|
-
for (var
|
|
1980
|
-
var r =
|
|
1981
|
-
if (f ==
|
|
2000
|
+
Ib(b, {name:c, fromWireType:function(n) {
|
|
2001
|
+
for (var k = P[n >> 2], t = m(), v, x = n + 4, f = 0; f <= k; ++f) {
|
|
2002
|
+
var r = n + 4 + f * a;
|
|
2003
|
+
if (f == k || 0 == t[r >> l]) {
|
|
1982
2004
|
x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + a;
|
|
1983
2005
|
}
|
|
1984
2006
|
}
|
|
1985
|
-
|
|
2007
|
+
mb(n);
|
|
1986
2008
|
return v;
|
|
1987
|
-
}, toWireType:function(
|
|
1988
|
-
"string" != typeof
|
|
1989
|
-
var t = g(
|
|
1990
|
-
|
|
1991
|
-
e(
|
|
1992
|
-
null !==
|
|
2009
|
+
}, toWireType:function(n, k) {
|
|
2010
|
+
"string" != typeof k && R(`Cannot pass non-string to C++ string type ${c}`);
|
|
2011
|
+
var t = g(k), v = Lc(4 + t + a);
|
|
2012
|
+
P[v >> 2] = t >> l;
|
|
2013
|
+
e(k, v + 4, t + a);
|
|
2014
|
+
null !== n && n.push(mb, v);
|
|
1993
2015
|
return v;
|
|
1994
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1995
|
-
|
|
2016
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:function(n) {
|
|
2017
|
+
mb(n);
|
|
1996
2018
|
},});
|
|
1997
2019
|
}, _embind_register_value_object:function(b, a, c, d, e, g) {
|
|
1998
|
-
|
|
1999
|
-
}, _embind_register_value_object_field:function(b, a, c, d, e, g,
|
|
2000
|
-
|
|
2020
|
+
Db[b] = {name:U(a), fa:Z(c, d), H:Z(e, g), sa:[],};
|
|
2021
|
+
}, _embind_register_value_object_field:function(b, a, c, d, e, g, m, l, n, k) {
|
|
2022
|
+
Db[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:g, lb:m, kb:Z(l, n), mb:k,});
|
|
2001
2023
|
}, _embind_register_void:function(b, a) {
|
|
2002
2024
|
a = U(a);
|
|
2003
|
-
|
|
2025
|
+
Ib(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
|
|
2004
2026
|
}, toWireType:function() {
|
|
2005
2027
|
},});
|
|
2006
2028
|
}, _emval_as:function(b, a, c) {
|
|
2007
|
-
b =
|
|
2008
|
-
a =
|
|
2009
|
-
var d = [], e =
|
|
2010
|
-
|
|
2029
|
+
b = S(b);
|
|
2030
|
+
a = nb(a, "emval::as");
|
|
2031
|
+
var d = [], e = ab(d);
|
|
2032
|
+
P[c >> 2] = e;
|
|
2011
2033
|
return a.toWireType(d, b);
|
|
2012
2034
|
}, _emval_call_method:function(b, a, c, d, e) {
|
|
2013
|
-
b =
|
|
2014
|
-
a =
|
|
2015
|
-
c =
|
|
2035
|
+
b = wc[b];
|
|
2036
|
+
a = S(a);
|
|
2037
|
+
c = vc(c);
|
|
2016
2038
|
var g = [];
|
|
2017
|
-
|
|
2039
|
+
P[d >> 2] = ab(g);
|
|
2018
2040
|
return b(a, c, g, e);
|
|
2019
2041
|
}, _emval_call_void_method:function(b, a, c, d) {
|
|
2020
|
-
b =
|
|
2021
|
-
a =
|
|
2022
|
-
c =
|
|
2042
|
+
b = wc[b];
|
|
2043
|
+
a = S(a);
|
|
2044
|
+
c = vc(c);
|
|
2023
2045
|
b(a, c, null, d);
|
|
2024
|
-
}, _emval_decref
|
|
2025
|
-
var c =
|
|
2026
|
-
a = d.name + "_$" + c.slice(1).map(function(
|
|
2027
|
-
return
|
|
2046
|
+
}, _emval_decref:ec, _emval_get_method_caller:function(b, a) {
|
|
2047
|
+
var c = yc(b, a), d = c[0];
|
|
2048
|
+
a = d.name + "_$" + c.slice(1).map(function(m) {
|
|
2049
|
+
return m.name;
|
|
2028
2050
|
}).join("_") + "$";
|
|
2029
|
-
var e =
|
|
2051
|
+
var e = zc[a];
|
|
2030
2052
|
if (void 0 !== e) {
|
|
2031
2053
|
return e;
|
|
2032
2054
|
}
|
|
2033
2055
|
var g = Array(b - 1);
|
|
2034
|
-
e =
|
|
2056
|
+
e = xc((m, l, n, k) => {
|
|
2035
2057
|
for (var t = 0, v = 0; v < b - 1; ++v) {
|
|
2036
|
-
g[v] = c[v + 1].readValueFromPointer(
|
|
2058
|
+
g[v] = c[v + 1].readValueFromPointer(k + t), t += c[v + 1].argPackAdvance;
|
|
2037
2059
|
}
|
|
2038
|
-
|
|
2060
|
+
m = m[l].apply(m, g);
|
|
2039
2061
|
for (v = 0; v < b - 1; ++v) {
|
|
2040
2062
|
c[v + 1].Na && c[v + 1].Na(g[v]);
|
|
2041
2063
|
}
|
|
2042
2064
|
if (!d.cb) {
|
|
2043
|
-
return d.toWireType(
|
|
2065
|
+
return d.toWireType(n, m);
|
|
2044
2066
|
}
|
|
2045
2067
|
});
|
|
2046
|
-
return
|
|
2068
|
+
return zc[a] = e;
|
|
2047
2069
|
}, _emval_get_module_property:function(b) {
|
|
2048
|
-
b =
|
|
2049
|
-
return
|
|
2070
|
+
b = vc(b);
|
|
2071
|
+
return ab(h[b]);
|
|
2050
2072
|
}, _emval_get_property:function(b, a) {
|
|
2051
|
-
b =
|
|
2052
|
-
a =
|
|
2053
|
-
return
|
|
2073
|
+
b = S(b);
|
|
2074
|
+
a = S(a);
|
|
2075
|
+
return ab(b[a]);
|
|
2054
2076
|
}, _emval_incref:function(b) {
|
|
2055
|
-
4 < b && (
|
|
2077
|
+
4 < b && (Q.get(b).Aa += 1);
|
|
2056
2078
|
}, _emval_new_cstring:function(b) {
|
|
2057
|
-
return
|
|
2079
|
+
return ab(vc(b));
|
|
2058
2080
|
}, _emval_new_object:function() {
|
|
2059
|
-
return
|
|
2081
|
+
return ab({});
|
|
2060
2082
|
}, _emval_run_destructors:function(b) {
|
|
2061
|
-
var a =
|
|
2062
|
-
|
|
2063
|
-
|
|
2083
|
+
var a = S(b);
|
|
2084
|
+
Eb(a);
|
|
2085
|
+
ec(b);
|
|
2064
2086
|
}, _emval_set_property:function(b, a, c) {
|
|
2065
|
-
b =
|
|
2066
|
-
a =
|
|
2067
|
-
c =
|
|
2087
|
+
b = S(b);
|
|
2088
|
+
a = S(a);
|
|
2089
|
+
c = S(c);
|
|
2068
2090
|
b[a] = c;
|
|
2069
2091
|
}, _emval_take_value:function(b, a) {
|
|
2070
|
-
b =
|
|
2092
|
+
b = nb(b, "_emval_take_value");
|
|
2071
2093
|
b = b.readValueFromPointer(a);
|
|
2072
|
-
return
|
|
2094
|
+
return ab(b);
|
|
2073
2095
|
}, abort:() => {
|
|
2074
|
-
|
|
2075
|
-
}, emscripten_memcpy_big:(b, a, c) =>
|
|
2076
|
-
var a =
|
|
2096
|
+
ya("");
|
|
2097
|
+
}, emscripten_memcpy_big:(b, a, c) => L.copyWithin(b, a, a + c), emscripten_resize_heap:b => {
|
|
2098
|
+
var a = L.length;
|
|
2077
2099
|
b >>>= 0;
|
|
2078
2100
|
if (2147483648 < b) {
|
|
2079
2101
|
return !1;
|
|
@@ -2084,13 +2106,13 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2084
2106
|
var e = Math;
|
|
2085
2107
|
d = Math.max(b, d);
|
|
2086
2108
|
a: {
|
|
2087
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2109
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - za.buffer.byteLength + 65535 >>> 16;
|
|
2088
2110
|
try {
|
|
2089
|
-
|
|
2090
|
-
|
|
2111
|
+
za.grow(e);
|
|
2112
|
+
Ga();
|
|
2091
2113
|
var g = 1;
|
|
2092
2114
|
break a;
|
|
2093
|
-
} catch (
|
|
2115
|
+
} catch (m) {
|
|
2094
2116
|
}
|
|
2095
2117
|
g = void 0;
|
|
2096
2118
|
}
|
|
@@ -2101,86 +2123,121 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2101
2123
|
return !1;
|
|
2102
2124
|
}, environ_get:(b, a) => {
|
|
2103
2125
|
var c = 0;
|
|
2104
|
-
|
|
2126
|
+
Cc().forEach(function(d, e) {
|
|
2105
2127
|
var g = a + c;
|
|
2106
|
-
e =
|
|
2128
|
+
e = P[b + 4 * e >> 2] = g;
|
|
2107
2129
|
for (g = 0; g < d.length; ++g) {
|
|
2108
|
-
|
|
2130
|
+
Ba[e++ >> 0] = d.charCodeAt(g);
|
|
2109
2131
|
}
|
|
2110
|
-
|
|
2132
|
+
Ba[e >> 0] = 0;
|
|
2111
2133
|
c += d.length + 1;
|
|
2112
2134
|
});
|
|
2113
2135
|
return 0;
|
|
2114
2136
|
}, environ_sizes_get:(b, a) => {
|
|
2115
|
-
var c =
|
|
2116
|
-
|
|
2137
|
+
var c = Cc();
|
|
2138
|
+
P[b >> 2] = c.length;
|
|
2117
2139
|
var d = 0;
|
|
2118
2140
|
c.forEach(function(e) {
|
|
2119
2141
|
d += e.length + 1;
|
|
2120
2142
|
});
|
|
2121
|
-
|
|
2143
|
+
P[a >> 2] = d;
|
|
2122
2144
|
return 0;
|
|
2123
2145
|
}, fd_close:() => 52, fd_seek:function() {
|
|
2124
2146
|
return 70;
|
|
2125
2147
|
}, fd_write:(b, a, c, d) => {
|
|
2126
2148
|
for (var e = 0, g = 0; g < c; g++) {
|
|
2127
|
-
var
|
|
2149
|
+
var m = P[a >> 2], l = P[a + 4 >> 2];
|
|
2128
2150
|
a += 8;
|
|
2129
|
-
for (var
|
|
2130
|
-
var
|
|
2131
|
-
0 ===
|
|
2151
|
+
for (var n = 0; n < l; n++) {
|
|
2152
|
+
var k = L[m + n], t = Dc[b];
|
|
2153
|
+
0 === k || 10 === k ? ((1 === b ? ta : ua)(lc(t, 0)), t.length = 0) : t.push(k);
|
|
2132
2154
|
}
|
|
2133
|
-
e +=
|
|
2155
|
+
e += l;
|
|
2134
2156
|
}
|
|
2135
|
-
|
|
2157
|
+
P[d >> 2] = e;
|
|
2136
2158
|
return 0;
|
|
2137
|
-
}, strftime_l:(b, a, c, d) =>
|
|
2159
|
+
}, strftime_l:(b, a, c, d) => Ic(b, a, c, d)};
|
|
2138
2160
|
(function() {
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2161
|
+
function b(c) {
|
|
2162
|
+
J = c = c.exports;
|
|
2163
|
+
za = J.memory;
|
|
2164
|
+
Ga();
|
|
2165
|
+
Ha = J.__indirect_function_table;
|
|
2166
|
+
Ja.unshift(J.__wasm_call_ctors);
|
|
2167
|
+
Ma--;
|
|
2168
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Ma);
|
|
2169
|
+
if (0 == Ma && (null !== Na && (clearInterval(Na), Na = null), Oa)) {
|
|
2170
|
+
var d = Oa;
|
|
2171
|
+
Oa = null;
|
|
2172
|
+
d();
|
|
2173
|
+
}
|
|
2174
|
+
return c;
|
|
2175
|
+
}
|
|
2176
|
+
var a = {env:Mc, wasi_snapshot_preview1:Mc,};
|
|
2177
|
+
Ma++;
|
|
2178
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Ma);
|
|
2179
|
+
if (h.instantiateWasm) {
|
|
2180
|
+
try {
|
|
2181
|
+
return h.instantiateWasm(a, b);
|
|
2182
|
+
} catch (c) {
|
|
2183
|
+
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
Va(a, function(c) {
|
|
2187
|
+
b(c.instance);
|
|
2149
2188
|
}).catch(ba);
|
|
2150
2189
|
return {};
|
|
2151
2190
|
})();
|
|
2152
|
-
var
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
var
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2191
|
+
var mb = b => (mb = J.free)(b), Lc = b => (Lc = J.malloc)(b), lb = b => (lb = J.__getTypeName)(b);
|
|
2192
|
+
h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings = J._embind_initialize_bindings)();
|
|
2193
|
+
h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji = J.dynCall_jiji)(b, a, c, d, e);
|
|
2194
|
+
h.dynCall_viijii = (b, a, c, d, e, g, m) => (h.dynCall_viijii = J.dynCall_viijii)(b, a, c, d, e, g, m);
|
|
2195
|
+
h.dynCall_iiiiij = (b, a, c, d, e, g, m) => (h.dynCall_iiiiij = J.dynCall_iiiiij)(b, a, c, d, e, g, m);
|
|
2196
|
+
h.dynCall_iiiiijj = (b, a, c, d, e, g, m, l, n) => (h.dynCall_iiiiijj = J.dynCall_iiiiijj)(b, a, c, d, e, g, m, l, n);
|
|
2197
|
+
h.dynCall_iiiiiijj = (b, a, c, d, e, g, m, l, n, k) => (h.dynCall_iiiiiijj = J.dynCall_iiiiiijj)(b, a, c, d, e, g, m, l, n, k);
|
|
2198
|
+
var Nc;
|
|
2199
|
+
Oa = function Oc() {
|
|
2200
|
+
Nc || Pc();
|
|
2201
|
+
Nc || (Oa = Oc);
|
|
2163
2202
|
};
|
|
2164
|
-
function
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
Ia.shift()(p);
|
|
2203
|
+
function Pc() {
|
|
2204
|
+
function b() {
|
|
2205
|
+
if (!Nc && (Nc = !0, h.calledRun = !0, !Aa)) {
|
|
2206
|
+
Wa(Ja);
|
|
2207
|
+
aa(h);
|
|
2208
|
+
if (h.onRuntimeInitialized) {
|
|
2209
|
+
h.onRuntimeInitialized();
|
|
2172
2210
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2211
|
+
if (h.postRun) {
|
|
2212
|
+
for ("function" == typeof h.postRun && (h.postRun = [h.postRun]); h.postRun.length;) {
|
|
2213
|
+
var a = h.postRun.shift();
|
|
2214
|
+
Ka.unshift(a);
|
|
2215
|
+
}
|
|
2176
2216
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2217
|
+
Wa(Ka);
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
if (!(0 < Ma)) {
|
|
2221
|
+
if (h.preRun) {
|
|
2222
|
+
for ("function" == typeof h.preRun && (h.preRun = [h.preRun]); h.preRun.length;) {
|
|
2223
|
+
La();
|
|
2179
2224
|
}
|
|
2180
2225
|
}
|
|
2226
|
+
Wa(Ia);
|
|
2227
|
+
0 < Ma || (h.setStatus ? (h.setStatus("Running..."), setTimeout(function() {
|
|
2228
|
+
setTimeout(function() {
|
|
2229
|
+
h.setStatus("");
|
|
2230
|
+
}, 1);
|
|
2231
|
+
b();
|
|
2232
|
+
}, 1)) : b());
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
if (h.preInit) {
|
|
2236
|
+
for ("function" == typeof h.preInit && (h.preInit = [h.preInit]); 0 < h.preInit.length;) {
|
|
2237
|
+
h.preInit.pop()();
|
|
2181
2238
|
}
|
|
2182
2239
|
}
|
|
2183
|
-
|
|
2240
|
+
Pc();
|
|
2184
2241
|
|
|
2185
2242
|
|
|
2186
2243
|
|
|
@@ -2195,7 +2252,7 @@ Kc();
|
|
|
2195
2252
|
/* 2 */
|
|
2196
2253
|
/***/ ((module) => {
|
|
2197
2254
|
|
|
2198
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.
|
|
2255
|
+
module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.12.0","description":"A lite version of Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
2199
2256
|
|
|
2200
2257
|
/***/ }),
|
|
2201
2258
|
/* 3 */
|