@rive-app/canvas-advanced 2.10.3 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas_advanced.mjs +3308 -148
- package/package.json +1 -1
- package/rive.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -5,154 +5,3314 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
b
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
this.
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
8
|
+
var p = moduleArg, aa, ba;
|
|
9
|
+
p.ready = new Promise((a, b) => {
|
|
10
|
+
aa = a;
|
|
11
|
+
ba = b;
|
|
12
|
+
});
|
|
13
|
+
function ca() {
|
|
14
|
+
function a(g) {
|
|
15
|
+
const m = d;
|
|
16
|
+
c = b = 0;
|
|
17
|
+
d = new Map();
|
|
18
|
+
m.forEach(n => {
|
|
19
|
+
try {
|
|
20
|
+
n(g);
|
|
21
|
+
} catch (l) {
|
|
22
|
+
console.error(l);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
this.pb();
|
|
26
|
+
e && e.Yb();
|
|
27
|
+
}
|
|
28
|
+
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
|
+
this.requestAnimationFrame = function(g) {
|
|
30
|
+
b || (b = requestAnimationFrame(a.bind(this)));
|
|
31
|
+
const m = ++c;
|
|
32
|
+
d.set(m, g);
|
|
33
|
+
return m;
|
|
34
|
+
};
|
|
35
|
+
this.cancelAnimationFrame = function(g) {
|
|
36
|
+
d.delete(g);
|
|
37
|
+
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
|
+
};
|
|
39
|
+
this.Wb = function(g) {
|
|
40
|
+
f && (document.body.remove(f), f = null);
|
|
41
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
|
|
42
|
+
f.innerHTML = "RIVE FPS " + m.toFixed(1);
|
|
43
|
+
}, document.body.appendChild(f));
|
|
44
|
+
e = new function() {
|
|
45
|
+
let m = 0, n = 0;
|
|
46
|
+
this.Yb = function() {
|
|
47
|
+
var l = performance.now();
|
|
48
|
+
n ? (++m, l -= n, 1000 < l && (g(1000 * m / l), m = n = 0)) : (n = l, m = 0);
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
};
|
|
52
|
+
this.Tb = function() {
|
|
53
|
+
f && (document.body.remove(f), f = null);
|
|
54
|
+
e = null;
|
|
55
|
+
};
|
|
56
|
+
this.pb = function() {
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ha(a) {
|
|
60
|
+
console.assert(!0);
|
|
61
|
+
const b = new Map();
|
|
62
|
+
let c = -Infinity;
|
|
63
|
+
this.push = function(d) {
|
|
64
|
+
d = d + ((1 << a) - 1) >> a;
|
|
65
|
+
b.has(d) && clearTimeout(b.get(d));
|
|
66
|
+
b.set(d, setTimeout(function() {
|
|
67
|
+
b.delete(d);
|
|
68
|
+
0 == b.length ? c = -Infinity : d == c && (c = Math.max(...b.keys()), console.assert(c < d));
|
|
69
|
+
}, 1000));
|
|
70
|
+
c = Math.max(d, c);
|
|
71
|
+
return c << a;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const ia = p.onRuntimeInitialized;
|
|
75
|
+
p.onRuntimeInitialized = function() {
|
|
76
|
+
ia && ia();
|
|
77
|
+
let a = p.decodeFont;
|
|
78
|
+
p.decodeFont = function(c, d) {
|
|
79
|
+
c = a(c);
|
|
80
|
+
d(c);
|
|
81
|
+
};
|
|
82
|
+
const b = p.FileAssetLoader;
|
|
83
|
+
p.ptrToAsset = c => {
|
|
84
|
+
let d = p.ptrToFileAsset(c);
|
|
85
|
+
return d.isImage ? p.ptrToImageAsset(c) : d.isFont ? p.ptrToFontAsset(c) : d;
|
|
86
|
+
};
|
|
87
|
+
p.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
88
|
+
this.__parent.__construct.call(this);
|
|
89
|
+
this.Hb = c;
|
|
90
|
+
}, loadContents:function(c, d) {
|
|
91
|
+
c = p.ptrToAsset(c);
|
|
92
|
+
return this.Hb(c, d);
|
|
93
|
+
},});
|
|
94
|
+
p.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
|
|
95
|
+
this.__parent.__construct.call(this);
|
|
96
|
+
}, loadContents:function(c) {
|
|
97
|
+
let d = p.ptrToAsset(c);
|
|
98
|
+
c = d.cdnUuid;
|
|
99
|
+
if ("" === c) {
|
|
100
|
+
return !1;
|
|
101
|
+
}
|
|
102
|
+
(function(e, f) {
|
|
103
|
+
var g = new XMLHttpRequest();
|
|
104
|
+
g.responseType = "arraybuffer";
|
|
105
|
+
g.onreadystatechange = function() {
|
|
106
|
+
4 == g.readyState && 200 == g.status && f(g);
|
|
107
|
+
};
|
|
108
|
+
g.open("GET", e, !0);
|
|
109
|
+
g.send(null);
|
|
110
|
+
})(d.cdnBaseUrl + "/" + c, e => {
|
|
111
|
+
d.decode(new Uint8Array(e.response));
|
|
112
|
+
});
|
|
113
|
+
return !0;
|
|
114
|
+
},});
|
|
115
|
+
p.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
116
|
+
this.__parent.__construct.call(this);
|
|
117
|
+
this.lb = [];
|
|
118
|
+
}, addLoader:function(c) {
|
|
119
|
+
this.lb.push(c);
|
|
120
|
+
}, loadContents:function(c, d) {
|
|
121
|
+
for (let e of this.lb) {
|
|
122
|
+
if (e.loadContents(c, d)) {
|
|
123
|
+
return !0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return !1;
|
|
127
|
+
},});
|
|
128
|
+
};
|
|
129
|
+
const ja = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ka = new function() {
|
|
130
|
+
function a() {
|
|
131
|
+
if (!b) {
|
|
132
|
+
var k = document.createElement("canvas"), t = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
133
|
+
let r;
|
|
134
|
+
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
|
135
|
+
if (r = k.getContext("webgl", t), c = 1, !r) {
|
|
136
|
+
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
137
|
+
}
|
|
138
|
+
} else {
|
|
139
|
+
if (r = k.getContext("webgl2", t)) {
|
|
140
|
+
c = 2;
|
|
141
|
+
} else {
|
|
142
|
+
if (r = k.getContext("webgl", t)) {
|
|
143
|
+
c = 1;
|
|
144
|
+
} else {
|
|
145
|
+
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
r = new Proxy(r, {get(E, w) {
|
|
150
|
+
if (E.isContextLost()) {
|
|
151
|
+
if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), n = !0), "function" === typeof E[w]) {
|
|
152
|
+
return function() {
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
} else {
|
|
156
|
+
return "function" === typeof E[w] ? function(...O) {
|
|
157
|
+
return E[w].apply(E, O);
|
|
158
|
+
} : E[w];
|
|
159
|
+
}
|
|
160
|
+
}, set(E, w, O) {
|
|
161
|
+
if (E.isContextLost()) {
|
|
162
|
+
n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), n = !0);
|
|
163
|
+
} else {
|
|
164
|
+
return E[w] = O, !0;
|
|
165
|
+
}
|
|
166
|
+
},});
|
|
167
|
+
d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
|
|
168
|
+
function B(E, w, O) {
|
|
169
|
+
w = r.createShader(w);
|
|
170
|
+
r.shaderSource(w, O);
|
|
171
|
+
r.compileShader(w);
|
|
172
|
+
O = r.getShaderInfoLog(w);
|
|
173
|
+
if (0 < (O || "").length) {
|
|
174
|
+
throw O;
|
|
175
|
+
}
|
|
176
|
+
r.attachShader(E, w);
|
|
177
|
+
}
|
|
178
|
+
k = r.createProgram();
|
|
179
|
+
B(k, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
180
|
+
B(k, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
181
|
+
r.bindAttribLocation(k, 0, "vertex");
|
|
182
|
+
r.bindAttribLocation(k, 1, "uv");
|
|
183
|
+
r.linkProgram(k);
|
|
184
|
+
t = r.getProgramInfoLog(k);
|
|
185
|
+
if (0 < (t || "").trim().length) {
|
|
186
|
+
throw t;
|
|
187
|
+
}
|
|
188
|
+
e = r.getUniformLocation(k, "mat");
|
|
189
|
+
f = r.getUniformLocation(k, "translate");
|
|
190
|
+
r.useProgram(k);
|
|
191
|
+
r.bindBuffer(r.ARRAY_BUFFER, r.createBuffer());
|
|
192
|
+
r.enableVertexAttribArray(0);
|
|
193
|
+
r.enableVertexAttribArray(1);
|
|
194
|
+
r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, r.createBuffer());
|
|
195
|
+
r.uniform1i(r.getUniformLocation(k, "image"), 0);
|
|
196
|
+
r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
|
|
197
|
+
b = r;
|
|
198
|
+
}
|
|
199
|
+
return !0;
|
|
200
|
+
}
|
|
201
|
+
let b = null, c = 0, d = 0, e = null, f = null, g = 0, m = 0, n = !1;
|
|
202
|
+
a();
|
|
203
|
+
this.nc = function() {
|
|
204
|
+
a();
|
|
205
|
+
return d;
|
|
206
|
+
};
|
|
207
|
+
this.Qb = function(k) {
|
|
208
|
+
b.deleteTexture && b.deleteTexture(k);
|
|
209
|
+
};
|
|
210
|
+
this.Ob = function(k) {
|
|
211
|
+
if (!a()) {
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
const t = b.createTexture();
|
|
215
|
+
if (!t) {
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
b.bindTexture(b.TEXTURE_2D, t);
|
|
219
|
+
b.texImage2D(b.TEXTURE_2D, 0, b.RGBA, b.RGBA, b.UNSIGNED_BYTE, k);
|
|
220
|
+
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_S, b.CLAMP_TO_EDGE);
|
|
221
|
+
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_T, b.CLAMP_TO_EDGE);
|
|
222
|
+
b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MAG_FILTER, b.LINEAR);
|
|
223
|
+
2 == c ? (b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR_MIPMAP_LINEAR), b.generateMipmap(b.TEXTURE_2D)) : b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR);
|
|
224
|
+
return t;
|
|
225
|
+
};
|
|
226
|
+
const l = new ha(8), u = new ha(8), v = new ha(10), y = new ha(10);
|
|
227
|
+
this.Vb = function(k, t, r, B, E) {
|
|
228
|
+
if (a()) {
|
|
229
|
+
var w = l.push(k), O = u.push(t);
|
|
230
|
+
if (b.canvas) {
|
|
231
|
+
if (b.canvas.width != w || b.canvas.height != O) {
|
|
232
|
+
b.canvas.width = w, b.canvas.height = O;
|
|
233
|
+
}
|
|
234
|
+
b.viewport(0, O - t, k, t);
|
|
235
|
+
b.disable(b.SCISSOR_TEST);
|
|
236
|
+
b.clearColor(0, 0, 0, 0);
|
|
237
|
+
b.clear(b.COLOR_BUFFER_BIT);
|
|
238
|
+
b.enable(b.SCISSOR_TEST);
|
|
239
|
+
r.sort((H, da) => da.xb - H.xb);
|
|
240
|
+
w = v.push(B);
|
|
241
|
+
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
242
|
+
w = 0;
|
|
243
|
+
for (var V of r) {
|
|
244
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, V.Ua), w += 4 * V.Ua.length;
|
|
245
|
+
}
|
|
246
|
+
console.assert(w == 4 * B);
|
|
247
|
+
for (var ea of r) {
|
|
248
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, ea.Eb), w += 4 * ea.Eb.length;
|
|
249
|
+
}
|
|
250
|
+
console.assert(w == 8 * B);
|
|
251
|
+
w = y.push(E);
|
|
252
|
+
m != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), m = w);
|
|
253
|
+
V = 0;
|
|
254
|
+
for (var va of r) {
|
|
255
|
+
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, V, va.indices), V += 2 * va.indices.length;
|
|
256
|
+
}
|
|
257
|
+
console.assert(V == 2 * E);
|
|
258
|
+
va = 0;
|
|
259
|
+
ea = !0;
|
|
260
|
+
w = V = 0;
|
|
261
|
+
for (const H of r) {
|
|
262
|
+
H.image.Ka != va && (b.bindTexture(b.TEXTURE_2D, H.image.Ja || null), va = H.image.Ka);
|
|
263
|
+
H.tc ? (b.scissor(H.Za, O - H.$a - H.jb, H.Ic, H.jb), ea = !0) : ea && (b.scissor(0, O - t, k, t), ea = !1);
|
|
264
|
+
r = 2 / k;
|
|
265
|
+
const da = -2 / t;
|
|
266
|
+
b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] * da * H.Ca, H.ha[2] * r * H.Ba, H.ha[3] * da * H.Ca);
|
|
267
|
+
b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Za - H.oc * H.Ba) - 1, H.ha[5] * da * H.Ca + da * (H.$a - H.pc * H.Ca) + 1);
|
|
268
|
+
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
269
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * B);
|
|
270
|
+
b.drawElements(b.TRIANGLES, H.indices.length, b.UNSIGNED_SHORT, V);
|
|
271
|
+
w += 4 * H.Ua.length;
|
|
272
|
+
V += 2 * H.indices.length;
|
|
273
|
+
}
|
|
274
|
+
console.assert(w == 4 * B);
|
|
275
|
+
console.assert(V == 2 * E);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
this.canvas = function() {
|
|
280
|
+
return a() && b.canvas;
|
|
281
|
+
};
|
|
282
|
+
}(), la = p.onRuntimeInitialized;
|
|
283
|
+
p.onRuntimeInitialized = function() {
|
|
284
|
+
function a(q) {
|
|
285
|
+
switch(q) {
|
|
286
|
+
case l.srcOver:
|
|
287
|
+
return "source-over";
|
|
288
|
+
case l.screen:
|
|
289
|
+
return "screen";
|
|
290
|
+
case l.overlay:
|
|
291
|
+
return "overlay";
|
|
292
|
+
case l.darken:
|
|
293
|
+
return "darken";
|
|
294
|
+
case l.lighten:
|
|
295
|
+
return "lighten";
|
|
296
|
+
case l.colorDodge:
|
|
297
|
+
return "color-dodge";
|
|
298
|
+
case l.colorBurn:
|
|
299
|
+
return "color-burn";
|
|
300
|
+
case l.hardLight:
|
|
301
|
+
return "hard-light";
|
|
302
|
+
case l.softLight:
|
|
303
|
+
return "soft-light";
|
|
304
|
+
case l.difference:
|
|
305
|
+
return "difference";
|
|
306
|
+
case l.exclusion:
|
|
307
|
+
return "exclusion";
|
|
308
|
+
case l.multiply:
|
|
309
|
+
return "multiply";
|
|
310
|
+
case l.hue:
|
|
311
|
+
return "hue";
|
|
312
|
+
case l.saturation:
|
|
313
|
+
return "saturation";
|
|
314
|
+
case l.color:
|
|
315
|
+
return "color";
|
|
316
|
+
case l.luminosity:
|
|
317
|
+
return "luminosity";
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function b(q) {
|
|
321
|
+
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
322
|
+
}
|
|
323
|
+
function c() {
|
|
324
|
+
0 < O.length && (ka.Vb(w.drawWidth(), w.drawHeight(), O, V, ea), O = [], ea = V = 0, w.reset(512, 512));
|
|
325
|
+
for (const q of E) {
|
|
326
|
+
for (const z of q.J) {
|
|
327
|
+
z();
|
|
328
|
+
}
|
|
329
|
+
q.J = [];
|
|
330
|
+
}
|
|
331
|
+
E.clear();
|
|
332
|
+
}
|
|
333
|
+
la && la();
|
|
334
|
+
var d = p.RenderPaintStyle;
|
|
335
|
+
const e = p.RenderPath, f = p.RenderPaint, g = p.Renderer, m = p.StrokeCap, n = p.StrokeJoin, l = p.BlendMode, u = d.fill, v = d.stroke, y = p.FillRule.evenOdd;
|
|
336
|
+
let k = 1;
|
|
337
|
+
var t = p.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
|
|
338
|
+
this.__parent.__construct.call(this);
|
|
339
|
+
this.Ka = k;
|
|
340
|
+
k = k + 1 & 2147483647 || 1;
|
|
341
|
+
this.la = q;
|
|
342
|
+
this.ya = z;
|
|
343
|
+
}, __destruct:function() {
|
|
344
|
+
this.Ja && (ka.Qb(this.Ja), URL.revokeObjectURL(this.Xa));
|
|
345
|
+
this.__parent.__destruct.call(this);
|
|
346
|
+
}, decode:function(q) {
|
|
347
|
+
var z = this;
|
|
348
|
+
z.ya && z.ya(z);
|
|
349
|
+
var I = new Image();
|
|
350
|
+
z.Xa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
351
|
+
I.onload = function() {
|
|
352
|
+
z.Gb = I;
|
|
353
|
+
z.Ja = ka.Ob(I);
|
|
354
|
+
z.size(I.width, I.height);
|
|
355
|
+
z.la && z.la(z);
|
|
356
|
+
};
|
|
357
|
+
I.src = z.Xa;
|
|
358
|
+
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
359
|
+
this.__parent.__construct.call(this);
|
|
360
|
+
this.U = new Path2D();
|
|
361
|
+
}, rewind:function() {
|
|
362
|
+
this.U = new Path2D();
|
|
363
|
+
}, addPath:function(q, z, I, J, D, K, L) {
|
|
364
|
+
var M = this.U, Z = M.addPath;
|
|
365
|
+
q = q.U;
|
|
366
|
+
const R = new DOMMatrix();
|
|
367
|
+
R.a = z;
|
|
368
|
+
R.b = I;
|
|
369
|
+
R.c = J;
|
|
370
|
+
R.d = D;
|
|
371
|
+
R.e = K;
|
|
372
|
+
R.f = L;
|
|
373
|
+
Z.call(M, q, R);
|
|
374
|
+
}, fillRule:function(q) {
|
|
375
|
+
this.Wa = q;
|
|
376
|
+
}, moveTo:function(q, z) {
|
|
377
|
+
this.U.moveTo(q, z);
|
|
378
|
+
}, lineTo:function(q, z) {
|
|
379
|
+
this.U.lineTo(q, z);
|
|
380
|
+
}, cubicTo:function(q, z, I, J, D, K) {
|
|
381
|
+
this.U.bezierCurveTo(q, z, I, J, D, K);
|
|
382
|
+
}, close:function() {
|
|
383
|
+
this.U.closePath();
|
|
384
|
+
},}), B = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
385
|
+
this.Ya = b(q);
|
|
386
|
+
}, thickness:function(q) {
|
|
387
|
+
this.Jb = q;
|
|
388
|
+
}, join:function(q) {
|
|
389
|
+
switch(q) {
|
|
390
|
+
case n.miter:
|
|
391
|
+
this.Ia = "miter";
|
|
392
|
+
break;
|
|
393
|
+
case n.round:
|
|
394
|
+
this.Ia = "round";
|
|
395
|
+
break;
|
|
396
|
+
case n.bevel:
|
|
397
|
+
this.Ia = "bevel";
|
|
398
|
+
}
|
|
399
|
+
}, cap:function(q) {
|
|
400
|
+
switch(q) {
|
|
401
|
+
case m.butt:
|
|
402
|
+
this.Ha = "butt";
|
|
403
|
+
break;
|
|
404
|
+
case m.round:
|
|
405
|
+
this.Ha = "round";
|
|
406
|
+
break;
|
|
407
|
+
case m.square:
|
|
408
|
+
this.Ha = "square";
|
|
409
|
+
}
|
|
410
|
+
}, style:function(q) {
|
|
411
|
+
this.Ib = q;
|
|
412
|
+
}, blendMode:function(q) {
|
|
413
|
+
this.Fb = a(q);
|
|
414
|
+
}, clearGradient:function() {
|
|
415
|
+
this.ja = null;
|
|
416
|
+
}, linearGradient:function(q, z, I, J) {
|
|
417
|
+
this.ja = {zb:q, Ab:z, cb:I, eb:J, Sa:[],};
|
|
418
|
+
}, radialGradient:function(q, z, I, J) {
|
|
419
|
+
this.ja = {zb:q, Ab:z, cb:I, eb:J, Sa:[], lc:!0,};
|
|
420
|
+
}, addStop:function(q, z) {
|
|
421
|
+
this.ja.Sa.push({color:q, stop:z,});
|
|
422
|
+
}, completeGradient:function() {
|
|
423
|
+
}, draw:function(q, z, I) {
|
|
424
|
+
let J = this.Ib;
|
|
425
|
+
var D = this.Ya, K = this.ja;
|
|
426
|
+
q.globalCompositeOperation = this.Fb;
|
|
427
|
+
if (null != K) {
|
|
428
|
+
D = K.zb;
|
|
429
|
+
var L = K.Ab;
|
|
430
|
+
const Z = K.cb;
|
|
431
|
+
var M = K.eb;
|
|
432
|
+
const R = K.Sa;
|
|
433
|
+
K.lc ? (K = Z - D, M -= L, D = q.createRadialGradient(D, L, 0, D, L, Math.sqrt(K * K + M * M))) : D = q.createLinearGradient(D, L, Z, M);
|
|
434
|
+
for (let fa = 0, S = R.length; fa < S; fa++) {
|
|
435
|
+
L = R[fa], D.addColorStop(L.stop, b(L.color));
|
|
436
|
+
}
|
|
437
|
+
this.Ya = D;
|
|
438
|
+
this.ja = null;
|
|
439
|
+
}
|
|
440
|
+
switch(J) {
|
|
441
|
+
case v:
|
|
442
|
+
q.strokeStyle = D;
|
|
443
|
+
q.lineWidth = this.Jb;
|
|
444
|
+
q.lineCap = this.Ha;
|
|
445
|
+
q.lineJoin = this.Ia;
|
|
446
|
+
q.stroke(z);
|
|
447
|
+
break;
|
|
448
|
+
case u:
|
|
449
|
+
q.fillStyle = D, q.fill(z, I);
|
|
450
|
+
}
|
|
451
|
+
},});
|
|
452
|
+
const E = new Set();
|
|
453
|
+
let w = null, O = [], V = 0, ea = 0;
|
|
454
|
+
var va = p.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
455
|
+
this.__parent.__construct.call(this);
|
|
456
|
+
this.T = [1, 0, 0, 1, 0, 0];
|
|
457
|
+
this.C = q.getContext("2d");
|
|
458
|
+
this.Va = q;
|
|
459
|
+
this.J = [];
|
|
460
|
+
}, save:function() {
|
|
461
|
+
this.T.push(...this.T.slice(this.T.length - 6));
|
|
462
|
+
this.J.push(this.C.save.bind(this.C));
|
|
463
|
+
}, restore:function() {
|
|
464
|
+
const q = this.T.length - 6;
|
|
465
|
+
if (6 > q) {
|
|
466
|
+
throw "restore() called without matching save().";
|
|
467
|
+
}
|
|
468
|
+
this.T.splice(q);
|
|
469
|
+
this.J.push(this.C.restore.bind(this.C));
|
|
470
|
+
}, transform:function(q, z, I, J, D, K) {
|
|
471
|
+
const L = this.T, M = L.length - 6;
|
|
472
|
+
L.splice(M, 6, L[M] * q + L[M + 2] * z, L[M + 1] * q + L[M + 3] * z, L[M] * I + L[M + 2] * J, L[M + 1] * I + L[M + 3] * J, L[M] * D + L[M + 2] * K + L[M + 4], L[M + 1] * D + L[M + 3] * K + L[M + 5]);
|
|
473
|
+
this.J.push(this.C.transform.bind(this.C, q, z, I, J, D, K));
|
|
474
|
+
}, rotate:function(q) {
|
|
475
|
+
const z = Math.sin(q);
|
|
476
|
+
q = Math.cos(q);
|
|
477
|
+
this.transform(q, z, -z, q, 0, 0);
|
|
478
|
+
}, _drawPath:function(q, z) {
|
|
479
|
+
this.J.push(z.draw.bind(z, this.C, q.U, q.Wa === y ? "evenodd" : "nonzero"));
|
|
480
|
+
}, _drawRiveImage:function(q, z, I) {
|
|
481
|
+
var J = q.Gb;
|
|
482
|
+
if (J) {
|
|
483
|
+
var D = this.C, K = a(z);
|
|
484
|
+
this.J.push(function() {
|
|
485
|
+
D.globalCompositeOperation = K;
|
|
486
|
+
D.globalAlpha = I;
|
|
487
|
+
D.drawImage(J, 0, 0);
|
|
488
|
+
D.globalAlpha = 1;
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
}, _getMatrix:function(q) {
|
|
492
|
+
const z = this.T, I = z.length - 6;
|
|
493
|
+
for (let J = 0; 6 > J; ++J) {
|
|
494
|
+
q[J] = z[I + J];
|
|
495
|
+
}
|
|
496
|
+
}, _drawImageMesh:function(q, z, I, J, D, K, L, M, Z, R) {
|
|
497
|
+
var fa = this.C.canvas.width, S = this.C.canvas.height;
|
|
498
|
+
const Yb = Z - L, Zb = R - M;
|
|
499
|
+
L = Math.max(L, 0);
|
|
500
|
+
M = Math.max(M, 0);
|
|
501
|
+
Z = Math.min(Z, fa);
|
|
502
|
+
R = Math.min(R, S);
|
|
503
|
+
const Ga = Z - L, Ha = R - M;
|
|
504
|
+
console.assert(Ga <= Math.min(Yb, fa));
|
|
505
|
+
console.assert(Ha <= Math.min(Zb, S));
|
|
506
|
+
if (!(0 >= Ga || 0 >= Ha)) {
|
|
507
|
+
Z = Ga < Yb || Ha < Zb;
|
|
508
|
+
fa = R = 1;
|
|
509
|
+
var wa = Math.ceil(Ga * R), xa = Math.ceil(Ha * fa);
|
|
510
|
+
S = ka.nc();
|
|
511
|
+
wa > S && (R *= S / wa, wa = S);
|
|
512
|
+
xa > S && (fa *= S / xa, xa = S);
|
|
513
|
+
w || (w = new p.DynamicRectanizer(S), w.reset(512, 512));
|
|
514
|
+
S = w.addRect(wa, xa);
|
|
515
|
+
0 > S && (c(), E.add(this), S = w.addRect(wa, xa), console.assert(0 <= S));
|
|
516
|
+
var $b = S & 65535, ac = S >> 16;
|
|
517
|
+
O.push({ha:this.T.slice(this.T.length - 6), image:q, Za:$b, $a:ac, oc:L, pc:M, Ic:wa, jb:xa, Ba:R, Ca:fa, Ua:new Float32Array(J), Eb:new Float32Array(D), indices:new Uint16Array(K), tc:Z, xb:q.Ka << 1 | (Z ? 1 : 0),});
|
|
518
|
+
V += J.length;
|
|
519
|
+
ea += K.length;
|
|
520
|
+
var Aa = this.C, md = a(z);
|
|
521
|
+
this.J.push(function() {
|
|
522
|
+
Aa.save();
|
|
523
|
+
Aa.resetTransform();
|
|
524
|
+
Aa.globalCompositeOperation = md;
|
|
525
|
+
Aa.globalAlpha = I;
|
|
526
|
+
const bc = ka.canvas();
|
|
527
|
+
bc && Aa.drawImage(bc, $b, ac, wa, xa, L, M, Ga, Ha);
|
|
528
|
+
Aa.restore();
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
}, _clipPath:function(q) {
|
|
532
|
+
this.J.push(this.C.clip.bind(this.C, q.U, q.Wa === y ? "evenodd" : "nonzero"));
|
|
533
|
+
}, clear:function() {
|
|
534
|
+
E.add(this);
|
|
535
|
+
this.J.push(this.C.clearRect.bind(this.C, 0, 0, this.Va.width, this.Va.height));
|
|
536
|
+
}, flush:function() {
|
|
537
|
+
}, translate:function(q, z) {
|
|
538
|
+
this.transform(1, 0, 0, 1, q, z);
|
|
539
|
+
},});
|
|
540
|
+
p.makeRenderer = function(q) {
|
|
541
|
+
const z = new va(q), I = z.C;
|
|
542
|
+
return new Proxy(z, {get(J, D) {
|
|
543
|
+
if ("function" === typeof J[D]) {
|
|
544
|
+
return function(...K) {
|
|
545
|
+
return J[D].apply(J, K);
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
if ("function" === typeof I[D]) {
|
|
549
|
+
if (-1 < ja.indexOf(D)) {
|
|
550
|
+
throw Error("RiveException: Method call to '" + D + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
551
|
+
}
|
|
552
|
+
return function(...K) {
|
|
553
|
+
z.J.push(I[D].bind(I, ...K));
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
return J[D];
|
|
557
|
+
}, set(J, D, K) {
|
|
558
|
+
if (D in I) {
|
|
559
|
+
return I[D] = K, !0;
|
|
560
|
+
}
|
|
561
|
+
},});
|
|
562
|
+
};
|
|
563
|
+
p.decodeImage = function(q, z) {
|
|
564
|
+
(new t({la:z})).decode(q);
|
|
565
|
+
};
|
|
566
|
+
p.renderFactory = {makeRenderPaint:function() {
|
|
567
|
+
return new B();
|
|
568
|
+
}, makeRenderPath:function() {
|
|
569
|
+
return new r();
|
|
570
|
+
}, makeRenderImage:function() {
|
|
571
|
+
let q = da;
|
|
572
|
+
return new t({ya:() => {
|
|
573
|
+
q.total++;
|
|
574
|
+
}, la:() => {
|
|
575
|
+
q.loaded++;
|
|
576
|
+
if (q.loaded === q.total) {
|
|
577
|
+
const z = q.ready;
|
|
578
|
+
z && (z(), q.ready = null);
|
|
579
|
+
}
|
|
580
|
+
},});
|
|
581
|
+
},};
|
|
582
|
+
let H = p.load, da = null;
|
|
583
|
+
p.load = function(q, z, I = !0) {
|
|
584
|
+
const J = new p.FallbackFileAssetLoader();
|
|
585
|
+
void 0 !== z && J.addLoader(z);
|
|
586
|
+
I && (z = new p.CDNFileAssetLoader(), J.addLoader(z));
|
|
587
|
+
return new Promise(function(D) {
|
|
588
|
+
let K = null;
|
|
589
|
+
da = {total:0, loaded:0, ready:function() {
|
|
590
|
+
D(K);
|
|
591
|
+
},};
|
|
592
|
+
K = H(q, J);
|
|
593
|
+
0 == da.total && D(K);
|
|
594
|
+
});
|
|
595
|
+
};
|
|
596
|
+
d = new ca();
|
|
597
|
+
p.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
598
|
+
p.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
599
|
+
p.enableFPSCounter = d.Wb.bind(d);
|
|
600
|
+
p.disableFPSCounter = d.Tb;
|
|
601
|
+
d.pb = c;
|
|
602
|
+
p.resolveAnimationFrame = c;
|
|
603
|
+
p.cleanup = function() {
|
|
604
|
+
w && w.delete();
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
var ma = Object.assign({}, p), na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ra;
|
|
608
|
+
if (na || oa) {
|
|
609
|
+
oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ra = a => {
|
|
610
|
+
var b = new XMLHttpRequest();
|
|
611
|
+
b.open("GET", a, !1);
|
|
612
|
+
b.responseType = "arraybuffer";
|
|
613
|
+
b.send(null);
|
|
614
|
+
return new Uint8Array(b.response);
|
|
615
|
+
}), qa = (a, b, c) => {
|
|
616
|
+
var d = new XMLHttpRequest();
|
|
617
|
+
d.open("GET", a, !0);
|
|
618
|
+
d.responseType = "arraybuffer";
|
|
619
|
+
d.onload = () => {
|
|
620
|
+
200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
|
|
621
|
+
};
|
|
622
|
+
d.onerror = c;
|
|
623
|
+
d.send(null);
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
var sa = console.log.bind(console), ta = console.error.bind(console);
|
|
627
|
+
Object.assign(p, ma);
|
|
628
|
+
ma = null;
|
|
629
|
+
var noExitRuntime = !0;
|
|
630
|
+
"object" != typeof WebAssembly && ua("no native wasm support detected");
|
|
631
|
+
var ya, x, za = !1, A, C, Ba, Ca, F, G, Da, Ea;
|
|
632
|
+
function Fa() {
|
|
633
|
+
var a = ya.buffer;
|
|
634
|
+
p.HEAP8 = A = new Int8Array(a);
|
|
635
|
+
p.HEAP16 = Ba = new Int16Array(a);
|
|
636
|
+
p.HEAP32 = F = new Int32Array(a);
|
|
637
|
+
p.HEAPU8 = C = new Uint8Array(a);
|
|
638
|
+
p.HEAPU16 = Ca = new Uint16Array(a);
|
|
639
|
+
p.HEAPU32 = G = new Uint32Array(a);
|
|
640
|
+
p.HEAPF32 = Da = new Float32Array(a);
|
|
641
|
+
p.HEAPF64 = Ea = new Float64Array(a);
|
|
642
|
+
}
|
|
643
|
+
var Ia, Ja = [], Ka = [], La = [], Ma = 0, Na = null, Oa = null;
|
|
644
|
+
function ua(a) {
|
|
645
|
+
a = "Aborted(" + a + ")";
|
|
646
|
+
ta(a);
|
|
647
|
+
za = !0;
|
|
648
|
+
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
649
|
+
ba(a);
|
|
650
|
+
throw a;
|
|
651
|
+
}
|
|
652
|
+
function Pa(a) {
|
|
653
|
+
return a.startsWith("data:application/octet-stream;base64,");
|
|
654
|
+
}
|
|
655
|
+
var Qa;
|
|
656
|
+
Qa = "canvas_advanced.wasm";
|
|
657
|
+
Pa(Qa) || (Qa = pa + Qa);
|
|
658
|
+
function Ra(a) {
|
|
659
|
+
if (ra) {
|
|
660
|
+
return ra(a);
|
|
661
|
+
}
|
|
662
|
+
throw "both async and sync fetching of the wasm failed";
|
|
663
|
+
}
|
|
664
|
+
function Sa(a) {
|
|
665
|
+
if (na || oa) {
|
|
666
|
+
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
667
|
+
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
668
|
+
if (!b.ok) {
|
|
669
|
+
throw "failed to load wasm binary file at '" + a + "'";
|
|
670
|
+
}
|
|
671
|
+
return b.arrayBuffer();
|
|
672
|
+
}).catch(() => Ra(a));
|
|
673
|
+
}
|
|
674
|
+
if (qa) {
|
|
675
|
+
return new Promise((b, c) => {
|
|
676
|
+
qa(a, d => b(new Uint8Array(d)), c);
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return Promise.resolve().then(() => Ra(a));
|
|
681
|
+
}
|
|
682
|
+
function Ta(a, b, c) {
|
|
683
|
+
return Sa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
684
|
+
ta("failed to asynchronously prepare wasm: " + d);
|
|
685
|
+
ua(d);
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
function Ua(a, b) {
|
|
689
|
+
var c = Qa;
|
|
690
|
+
return "function" != typeof WebAssembly.instantiateStreaming || Pa(c) || c.startsWith("file://") || "function" != typeof fetch ? Ta(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
691
|
+
ta("wasm streaming compile failed: " + e);
|
|
692
|
+
ta("falling back to ArrayBuffer instantiation");
|
|
693
|
+
return Ta(c, a, b);
|
|
694
|
+
}));
|
|
695
|
+
}
|
|
696
|
+
var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
697
|
+
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
698
|
+
return 0;
|
|
699
|
+
}
|
|
700
|
+
if ("undefined" === typeof window.h) {
|
|
701
|
+
window.h = {Aa:0};
|
|
702
|
+
window.h.H = {};
|
|
703
|
+
window.h.H.za = a;
|
|
704
|
+
window.h.H.capture = b;
|
|
705
|
+
window.h.H.La = c;
|
|
706
|
+
window.h.ga = {};
|
|
707
|
+
window.h.ga.stopped = d;
|
|
708
|
+
window.h.ga.yb = e;
|
|
709
|
+
let f = window.h;
|
|
710
|
+
f.D = [];
|
|
711
|
+
f.Gc = function(g) {
|
|
712
|
+
for (var m = 0; m < f.D.length; ++m) {
|
|
713
|
+
if (null == f.D[m]) {
|
|
714
|
+
return f.D[m] = g, m;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
f.D.push(g);
|
|
718
|
+
return f.D.length - 1;
|
|
719
|
+
};
|
|
720
|
+
f.Db = function(g) {
|
|
721
|
+
for (f.D[g] = null; 0 < f.D.length;) {
|
|
722
|
+
if (null == f.D[f.D.length - 1]) {
|
|
723
|
+
f.D.pop();
|
|
724
|
+
} else {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
f.Sc = function(g) {
|
|
730
|
+
for (var m = 0; m < f.D.length; ++m) {
|
|
731
|
+
if (f.D[m] == g) {
|
|
732
|
+
return f.Db(m);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
f.sa = function(g) {
|
|
737
|
+
return f.D[g];
|
|
738
|
+
};
|
|
739
|
+
f.Cb = ["touchend", "click"];
|
|
740
|
+
f.unlock = function() {
|
|
741
|
+
for (var g = 0; g < f.D.length; ++g) {
|
|
742
|
+
var m = f.D[g];
|
|
743
|
+
null != m && null != m.I && m.state === f.ga.yb && m.I.resume().then(() => {
|
|
744
|
+
Va(m.qb);
|
|
745
|
+
}, n => {
|
|
746
|
+
console.error("Failed to resume audiocontext", n);
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
f.Cb.map(function(n) {
|
|
750
|
+
document.removeEventListener(n, f.unlock, !0);
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
f.Cb.map(function(g) {
|
|
754
|
+
document.addEventListener(g, f.unlock, !0);
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
window.h.Aa += 1;
|
|
758
|
+
return 1;
|
|
759
|
+
}, 237142:() => {
|
|
760
|
+
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
761
|
+
}, 237306:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 237410:() => {
|
|
762
|
+
try {
|
|
763
|
+
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
764
|
+
a.close();
|
|
765
|
+
return b;
|
|
766
|
+
} catch (c) {
|
|
767
|
+
return 0;
|
|
768
|
+
}
|
|
769
|
+
}, 237581:(a, b, c, d, e, f) => {
|
|
770
|
+
if ("undefined" === typeof window.h) {
|
|
771
|
+
return -1;
|
|
772
|
+
}
|
|
773
|
+
var g = {}, m = {};
|
|
774
|
+
a == window.h.H.za && 0 != c && (m.sampleRate = c);
|
|
775
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(m);
|
|
776
|
+
g.I.suspend();
|
|
777
|
+
g.state = window.h.ga.stopped;
|
|
778
|
+
c = 0;
|
|
779
|
+
a != window.h.H.za && (c = b);
|
|
780
|
+
g.$ = g.I.createScriptProcessor(d, c, b);
|
|
781
|
+
g.$.onaudioprocess = function(n) {
|
|
782
|
+
if (null == g.ta || 0 == g.ta.length) {
|
|
783
|
+
g.ta = new Float32Array(Da.buffer, e, d * b);
|
|
784
|
+
}
|
|
785
|
+
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
786
|
+
for (var l = 0; l < b; l += 1) {
|
|
787
|
+
for (var u = n.inputBuffer.getChannelData(l), v = g.ta, y = 0; y < d; y += 1) {
|
|
788
|
+
v[y * b + l] = u[y];
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
Wa(f, d, e);
|
|
792
|
+
}
|
|
793
|
+
if (a == window.h.H.za || a == window.h.H.La) {
|
|
794
|
+
for (Xa(f, d, e), l = 0; l < n.outputBuffer.numberOfChannels; ++l) {
|
|
795
|
+
for (u = n.outputBuffer.getChannelData(l), v = g.ta, y = 0; y < d; y += 1) {
|
|
796
|
+
u[y] = v[y * b + l];
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
} else {
|
|
800
|
+
for (l = 0; l < n.outputBuffer.numberOfChannels; ++l) {
|
|
801
|
+
n.outputBuffer.getChannelData(l).fill(0.0);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
806
|
+
g.Da = g.I.createMediaStreamSource(n);
|
|
807
|
+
g.Da.connect(g.$);
|
|
808
|
+
g.$.connect(g.I.destination);
|
|
809
|
+
}).catch(function(n) {
|
|
810
|
+
console.log("Failed to get user media: " + n);
|
|
811
|
+
});
|
|
812
|
+
a == window.h.H.za && g.$.connect(g.I.destination);
|
|
813
|
+
g.qb = f;
|
|
814
|
+
return window.h.Gc(g);
|
|
815
|
+
}, 240458:a => window.h.sa(a).I.sampleRate, 240531:a => {
|
|
816
|
+
a = window.h.sa(a);
|
|
817
|
+
void 0 !== a.$ && (a.$.onaudioprocess = function() {
|
|
818
|
+
}, a.$.disconnect(), a.$ = void 0);
|
|
819
|
+
void 0 !== a.Da && (a.Da.disconnect(), a.Da = void 0);
|
|
820
|
+
a.I.close();
|
|
821
|
+
a.I = void 0;
|
|
822
|
+
a.qb = void 0;
|
|
823
|
+
}, 240931:a => {
|
|
824
|
+
window.h.Db(a);
|
|
825
|
+
}, 240981:a => {
|
|
826
|
+
a = window.h.sa(a);
|
|
827
|
+
a.I.resume();
|
|
828
|
+
a.state = window.h.ga.yb;
|
|
829
|
+
}, 241120:a => {
|
|
830
|
+
a = window.h.sa(a);
|
|
831
|
+
a.I.suspend();
|
|
832
|
+
a.state = window.h.ga.stopped;
|
|
833
|
+
}}, Za = (a, b) => {
|
|
834
|
+
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
835
|
+
var e = a[d];
|
|
836
|
+
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
837
|
+
}
|
|
838
|
+
if (b) {
|
|
839
|
+
for (; c; c--) {
|
|
840
|
+
a.unshift("..");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
return a;
|
|
844
|
+
}, $a = a => {
|
|
845
|
+
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
846
|
+
(a = Za(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
847
|
+
a && c && (a += "/");
|
|
848
|
+
return (b ? "/" : "") + a;
|
|
849
|
+
}, ab = a => {
|
|
850
|
+
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
851
|
+
a = b[0];
|
|
852
|
+
b = b[1];
|
|
853
|
+
if (!a && !b) {
|
|
854
|
+
return ".";
|
|
855
|
+
}
|
|
856
|
+
b && (b = b.substr(0, b.length - 1));
|
|
857
|
+
return a + b;
|
|
858
|
+
}, bb = a => {
|
|
859
|
+
if ("/" === a) {
|
|
860
|
+
return "/";
|
|
861
|
+
}
|
|
862
|
+
a = $a(a);
|
|
863
|
+
a = a.replace(/\/$/, "");
|
|
864
|
+
var b = a.lastIndexOf("/");
|
|
865
|
+
return -1 === b ? a : a.substr(b + 1);
|
|
866
|
+
}, cb = () => {
|
|
867
|
+
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
868
|
+
return a => crypto.getRandomValues(a);
|
|
869
|
+
}
|
|
870
|
+
ua("initRandomDevice");
|
|
871
|
+
}, db = a => (db = cb())(a);
|
|
872
|
+
function eb() {
|
|
873
|
+
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
874
|
+
b = 0 <= c ? arguments[c] : "/";
|
|
875
|
+
if ("string" != typeof b) {
|
|
876
|
+
throw new TypeError("Arguments to path.resolve must be strings");
|
|
877
|
+
}
|
|
878
|
+
if (!b) {
|
|
879
|
+
return "";
|
|
880
|
+
}
|
|
881
|
+
a = b + "/" + a;
|
|
882
|
+
b = "/" === b.charAt(0);
|
|
883
|
+
}
|
|
884
|
+
a = Za(a.split("/").filter(d => !!d), !b).join("/");
|
|
885
|
+
return (b ? "/" : "") + a || ".";
|
|
886
|
+
}
|
|
887
|
+
var fb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, gb = (a, b, c) => {
|
|
888
|
+
var d = b + c;
|
|
889
|
+
for (c = b; a[c] && !(c >= d);) {
|
|
890
|
+
++c;
|
|
891
|
+
}
|
|
892
|
+
if (16 < c - b && a.buffer && fb) {
|
|
893
|
+
return fb.decode(a.subarray(b, c));
|
|
894
|
+
}
|
|
895
|
+
for (d = ""; b < c;) {
|
|
896
|
+
var e = a[b++];
|
|
897
|
+
if (e & 128) {
|
|
898
|
+
var f = a[b++] & 63;
|
|
899
|
+
if (192 == (e & 224)) {
|
|
900
|
+
d += String.fromCharCode((e & 31) << 6 | f);
|
|
901
|
+
} else {
|
|
902
|
+
var g = a[b++] & 63;
|
|
903
|
+
e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | g : (e & 7) << 18 | f << 12 | g << 6 | a[b++] & 63;
|
|
904
|
+
65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
|
|
905
|
+
}
|
|
906
|
+
} else {
|
|
907
|
+
d += String.fromCharCode(e);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return d;
|
|
911
|
+
}, hb = [], ib = a => {
|
|
912
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
913
|
+
var d = a.charCodeAt(c);
|
|
914
|
+
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
915
|
+
}
|
|
916
|
+
return b;
|
|
917
|
+
}, jb = (a, b, c, d) => {
|
|
918
|
+
if (!(0 < d)) {
|
|
919
|
+
return 0;
|
|
920
|
+
}
|
|
921
|
+
var e = c;
|
|
922
|
+
d = c + d - 1;
|
|
923
|
+
for (var f = 0; f < a.length; ++f) {
|
|
924
|
+
var g = a.charCodeAt(f);
|
|
925
|
+
if (55296 <= g && 57343 >= g) {
|
|
926
|
+
var m = a.charCodeAt(++f);
|
|
927
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
928
|
+
}
|
|
929
|
+
if (127 >= g) {
|
|
930
|
+
if (c >= d) {
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
b[c++] = g;
|
|
934
|
+
} else {
|
|
935
|
+
if (2047 >= g) {
|
|
936
|
+
if (c + 1 >= d) {
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
b[c++] = 192 | g >> 6;
|
|
940
|
+
} else {
|
|
941
|
+
if (65535 >= g) {
|
|
942
|
+
if (c + 2 >= d) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
b[c++] = 224 | g >> 12;
|
|
946
|
+
} else {
|
|
947
|
+
if (c + 3 >= d) {
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
b[c++] = 240 | g >> 18;
|
|
951
|
+
b[c++] = 128 | g >> 12 & 63;
|
|
952
|
+
}
|
|
953
|
+
b[c++] = 128 | g >> 6 & 63;
|
|
954
|
+
}
|
|
955
|
+
b[c++] = 128 | g & 63;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
b[c] = 0;
|
|
959
|
+
return c - e;
|
|
960
|
+
};
|
|
961
|
+
function kb(a, b) {
|
|
962
|
+
var c = Array(ib(a) + 1);
|
|
963
|
+
a = jb(a, c, 0, c.length);
|
|
964
|
+
b && (c.length = a);
|
|
965
|
+
return c;
|
|
966
|
+
}
|
|
967
|
+
var lb = [];
|
|
968
|
+
function mb(a, b) {
|
|
969
|
+
lb[a] = {input:[], F:[], W:b};
|
|
970
|
+
nb(a, ob);
|
|
971
|
+
}
|
|
972
|
+
var ob = {open:function(a) {
|
|
973
|
+
var b = lb[a.node.ma];
|
|
974
|
+
if (!b) {
|
|
975
|
+
throw new Q(43);
|
|
976
|
+
}
|
|
977
|
+
a.s = b;
|
|
978
|
+
a.seekable = !1;
|
|
979
|
+
}, close:function(a) {
|
|
980
|
+
a.s.W.ra(a.s);
|
|
981
|
+
}, ra:function(a) {
|
|
982
|
+
a.s.W.ra(a.s);
|
|
983
|
+
}, read:function(a, b, c, d) {
|
|
984
|
+
if (!a.s || !a.s.W.ib) {
|
|
985
|
+
throw new Q(60);
|
|
986
|
+
}
|
|
987
|
+
for (var e = 0, f = 0; f < d; f++) {
|
|
988
|
+
try {
|
|
989
|
+
var g = a.s.W.ib(a.s);
|
|
990
|
+
} catch (m) {
|
|
991
|
+
throw new Q(29);
|
|
992
|
+
}
|
|
993
|
+
if (void 0 === g && 0 === e) {
|
|
994
|
+
throw new Q(6);
|
|
995
|
+
}
|
|
996
|
+
if (null === g || void 0 === g) {
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
999
|
+
e++;
|
|
1000
|
+
b[c + f] = g;
|
|
1001
|
+
}
|
|
1002
|
+
e && (a.node.timestamp = Date.now());
|
|
1003
|
+
return e;
|
|
1004
|
+
}, write:function(a, b, c, d) {
|
|
1005
|
+
if (!a.s || !a.s.W.Pa) {
|
|
1006
|
+
throw new Q(60);
|
|
1007
|
+
}
|
|
1008
|
+
try {
|
|
1009
|
+
for (var e = 0; e < d; e++) {
|
|
1010
|
+
a.s.W.Pa(a.s, b[c + e]);
|
|
1011
|
+
}
|
|
1012
|
+
} catch (f) {
|
|
1013
|
+
throw new Q(29);
|
|
1014
|
+
}
|
|
1015
|
+
d && (a.node.timestamp = Date.now());
|
|
1016
|
+
return e;
|
|
1017
|
+
},}, pb = {ib:function() {
|
|
1018
|
+
a: {
|
|
1019
|
+
if (!hb.length) {
|
|
1020
|
+
var a = null;
|
|
1021
|
+
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
1022
|
+
if (!a) {
|
|
1023
|
+
a = null;
|
|
1024
|
+
break a;
|
|
1025
|
+
}
|
|
1026
|
+
hb = kb(a, !0);
|
|
1027
|
+
}
|
|
1028
|
+
a = hb.shift();
|
|
1029
|
+
}
|
|
1030
|
+
return a;
|
|
1031
|
+
}, Pa:function(a, b) {
|
|
1032
|
+
null === b || 10 === b ? (sa(gb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1033
|
+
}, ra:function(a) {
|
|
1034
|
+
a.F && 0 < a.F.length && (sa(gb(a.F, 0)), a.F = []);
|
|
1035
|
+
}, ic:function() {
|
|
1036
|
+
return {Lc:25856, Nc:5, Kc:191, Mc:35387, Jc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
1037
|
+
}, jc:function() {
|
|
1038
|
+
return 0;
|
|
1039
|
+
}, kc:function() {
|
|
1040
|
+
return [24, 80];
|
|
1041
|
+
},}, qb = {Pa:function(a, b) {
|
|
1042
|
+
null === b || 10 === b ? (ta(gb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1043
|
+
}, ra:function(a) {
|
|
1044
|
+
a.F && 0 < a.F.length && (ta(gb(a.F, 0)), a.F = []);
|
|
1045
|
+
},};
|
|
1046
|
+
function rb(a, b) {
|
|
1047
|
+
var c = a.l ? a.l.length : 0;
|
|
1048
|
+
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
|
|
1049
|
+
}
|
|
1050
|
+
var T = {P:null, V() {
|
|
1051
|
+
return T.createNode(null, "/", 16895, 0);
|
|
1052
|
+
}, createNode(a, b, c, d) {
|
|
1053
|
+
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1054
|
+
throw new Q(63);
|
|
1055
|
+
}
|
|
1056
|
+
T.P || (T.P = {dir:{node:{N:T.j.N, R:T.j.R, ka:T.j.ka, wa:T.j.wa, vb:T.j.vb, Bb:T.j.Bb, wb:T.j.wb, tb:T.j.tb, Ea:T.j.Ea}, stream:{ba:T.m.ba}}, file:{node:{N:T.j.N, R:T.j.R}, stream:{ba:T.m.ba, read:T.m.read, write:T.m.write, qa:T.m.qa, mb:T.m.mb, ob:T.m.ob}}, link:{node:{N:T.j.N, R:T.j.R, na:T.j.na}, stream:{}}, ab:{node:{N:T.j.N, R:T.j.R}, stream:sb}});
|
|
1057
|
+
c = tb(a, b, c, d);
|
|
1058
|
+
16384 === (c.mode & 61440) ? (c.j = T.P.dir.node, c.m = T.P.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = T.P.file.node, c.m = T.P.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = T.P.link.node, c.m = T.P.link.stream) : 8192 === (c.mode & 61440) && (c.j = T.P.ab.node, c.m = T.P.ab.stream);
|
|
1059
|
+
c.timestamp = Date.now();
|
|
1060
|
+
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
1061
|
+
return c;
|
|
1062
|
+
}, Oc(a) {
|
|
1063
|
+
return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
|
|
1064
|
+
}, j:{N(a) {
|
|
1065
|
+
var b = {};
|
|
1066
|
+
b.Sb = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1067
|
+
b.kb = a.id;
|
|
1068
|
+
b.mode = a.mode;
|
|
1069
|
+
b.uc = 1;
|
|
1070
|
+
b.uid = 0;
|
|
1071
|
+
b.dc = 0;
|
|
1072
|
+
b.ma = a.ma;
|
|
1073
|
+
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
1074
|
+
b.Kb = new Date(a.timestamp);
|
|
1075
|
+
b.rc = new Date(a.timestamp);
|
|
1076
|
+
b.Pb = new Date(a.timestamp);
|
|
1077
|
+
b.Lb = 4096;
|
|
1078
|
+
b.Mb = Math.ceil(b.size / b.Lb);
|
|
1079
|
+
return b;
|
|
1080
|
+
}, R(a, b) {
|
|
1081
|
+
void 0 !== b.mode && (a.mode = b.mode);
|
|
1082
|
+
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
1083
|
+
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
1084
|
+
if (0 == b) {
|
|
1085
|
+
a.l = null, a.v = 0;
|
|
1086
|
+
} else {
|
|
1087
|
+
var c = a.l;
|
|
1088
|
+
a.l = new Uint8Array(b);
|
|
1089
|
+
c && a.l.set(c.subarray(0, Math.min(b, a.v)));
|
|
1090
|
+
a.v = b;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}, ka() {
|
|
1094
|
+
throw ub[44];
|
|
1095
|
+
}, wa(a, b, c, d) {
|
|
1096
|
+
return T.createNode(a, b, c, d);
|
|
1097
|
+
}, vb(a, b, c) {
|
|
1098
|
+
if (16384 === (a.mode & 61440)) {
|
|
1099
|
+
try {
|
|
1100
|
+
var d = vb(b, c);
|
|
1101
|
+
} catch (f) {
|
|
1102
|
+
}
|
|
1103
|
+
if (d) {
|
|
1104
|
+
for (var e in d.l) {
|
|
1105
|
+
throw new Q(55);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
delete a.parent.l[a.name];
|
|
1110
|
+
a.parent.timestamp = Date.now();
|
|
1111
|
+
a.name = c;
|
|
1112
|
+
b.l[c] = a;
|
|
1113
|
+
b.timestamp = a.parent.timestamp;
|
|
1114
|
+
a.parent = b;
|
|
1115
|
+
}, Bb(a, b) {
|
|
1116
|
+
delete a.l[b];
|
|
1117
|
+
a.timestamp = Date.now();
|
|
1118
|
+
}, wb(a, b) {
|
|
1119
|
+
var c = vb(a, b), d;
|
|
1120
|
+
for (d in c.l) {
|
|
1121
|
+
throw new Q(55);
|
|
1122
|
+
}
|
|
1123
|
+
delete a.l[b];
|
|
1124
|
+
a.timestamp = Date.now();
|
|
1125
|
+
}, tb(a) {
|
|
1126
|
+
var b = [".", ".."], c;
|
|
1127
|
+
for (c in a.l) {
|
|
1128
|
+
a.l.hasOwnProperty(c) && b.push(c);
|
|
1129
|
+
}
|
|
1130
|
+
return b;
|
|
1131
|
+
}, Ea(a, b, c) {
|
|
1132
|
+
a = T.createNode(a, b, 41471, 0);
|
|
1133
|
+
a.link = c;
|
|
1134
|
+
return a;
|
|
1135
|
+
}, na(a) {
|
|
1136
|
+
if (40960 !== (a.mode & 61440)) {
|
|
1137
|
+
throw new Q(28);
|
|
1138
|
+
}
|
|
1139
|
+
return a.link;
|
|
1140
|
+
},}, m:{read(a, b, c, d, e) {
|
|
1141
|
+
var f = a.node.l;
|
|
1142
|
+
if (e >= a.node.v) {
|
|
1143
|
+
return 0;
|
|
1144
|
+
}
|
|
1145
|
+
a = Math.min(a.node.v - e, d);
|
|
1146
|
+
if (8 < a && f.subarray) {
|
|
1147
|
+
b.set(f.subarray(e, e + a), c);
|
|
1148
|
+
} else {
|
|
1149
|
+
for (d = 0; d < a; d++) {
|
|
1150
|
+
b[c + d] = f[e + d];
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
return a;
|
|
1154
|
+
}, write(a, b, c, d, e, f) {
|
|
1155
|
+
b.buffer === A.buffer && (f = !1);
|
|
1156
|
+
if (!d) {
|
|
1157
|
+
return 0;
|
|
1158
|
+
}
|
|
1159
|
+
a = a.node;
|
|
1160
|
+
a.timestamp = Date.now();
|
|
1161
|
+
if (b.subarray && (!a.l || a.l.subarray)) {
|
|
1162
|
+
if (f) {
|
|
1163
|
+
return a.l = b.subarray(c, c + d), a.v = d;
|
|
1164
|
+
}
|
|
1165
|
+
if (0 === a.v && 0 === e) {
|
|
1166
|
+
return a.l = b.slice(c, c + d), a.v = d;
|
|
1167
|
+
}
|
|
1168
|
+
if (e + d <= a.v) {
|
|
1169
|
+
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
rb(a, e + d);
|
|
1173
|
+
if (a.l.subarray && b.subarray) {
|
|
1174
|
+
a.l.set(b.subarray(c, c + d), e);
|
|
1175
|
+
} else {
|
|
1176
|
+
for (f = 0; f < d; f++) {
|
|
1177
|
+
a.l[e + f] = b[c + f];
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
a.v = Math.max(a.v, e + d);
|
|
1181
|
+
return d;
|
|
1182
|
+
}, ba(a, b, c) {
|
|
1183
|
+
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
1184
|
+
if (0 > b) {
|
|
1185
|
+
throw new Q(28);
|
|
1186
|
+
}
|
|
1187
|
+
return b;
|
|
1188
|
+
}, qa(a, b, c) {
|
|
1189
|
+
rb(a.node, b + c);
|
|
1190
|
+
a.node.v = Math.max(a.node.v, b + c);
|
|
1191
|
+
}, mb(a, b, c, d, e) {
|
|
1192
|
+
if (32768 !== (a.node.mode & 61440)) {
|
|
1193
|
+
throw new Q(43);
|
|
1194
|
+
}
|
|
1195
|
+
a = a.node.l;
|
|
1196
|
+
if (e & 2 || a.buffer !== A.buffer) {
|
|
1197
|
+
if (0 < c || c + b < a.length) {
|
|
1198
|
+
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1199
|
+
}
|
|
1200
|
+
c = !0;
|
|
1201
|
+
ua();
|
|
1202
|
+
b = void 0;
|
|
1203
|
+
if (!b) {
|
|
1204
|
+
throw new Q(48);
|
|
1205
|
+
}
|
|
1206
|
+
A.set(a, b);
|
|
1207
|
+
} else {
|
|
1208
|
+
c = !1, b = a.byteOffset;
|
|
1209
|
+
}
|
|
1210
|
+
return {o:b, M:c};
|
|
1211
|
+
}, ob(a, b, c, d) {
|
|
1212
|
+
T.m.write(a, b, 0, d, c, !1);
|
|
1213
|
+
return 0;
|
|
1214
|
+
},},};
|
|
1215
|
+
function wb(a, b) {
|
|
1216
|
+
var c = 0;
|
|
1217
|
+
a && (c |= 365);
|
|
1218
|
+
b && (c |= 146);
|
|
1219
|
+
return c;
|
|
1220
|
+
}
|
|
1221
|
+
var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {}, Eb = (a, b = {}) => {
|
|
1222
|
+
a = eb(a);
|
|
1223
|
+
if (!a) {
|
|
1224
|
+
return {path:"", node:null};
|
|
1225
|
+
}
|
|
1226
|
+
b = Object.assign({gb:!0, Ra:0}, b);
|
|
1227
|
+
if (8 < b.Ra) {
|
|
1228
|
+
throw new Q(32);
|
|
1229
|
+
}
|
|
1230
|
+
a = a.split("/").filter(g => !!g);
|
|
1231
|
+
for (var c = xb, d = "/", e = 0; e < a.length; e++) {
|
|
1232
|
+
var f = e === a.length - 1;
|
|
1233
|
+
if (f && b.parent) {
|
|
1234
|
+
break;
|
|
1235
|
+
}
|
|
1236
|
+
c = vb(c, a[e]);
|
|
1237
|
+
d = $a(d + "/" + a[e]);
|
|
1238
|
+
c.xa && (!f || f && b.gb) && (c = c.xa.root);
|
|
1239
|
+
if (!f || b.Ma) {
|
|
1240
|
+
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1241
|
+
if (c = Db(d), d = eb(ab(d), c), c = Eb(d, {Ra:b.Ra + 1}).node, 40 < f++) {
|
|
1242
|
+
throw new Q(32);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
return {path:d, node:c};
|
|
1248
|
+
}, Fb = a => {
|
|
1249
|
+
for (var b;;) {
|
|
1250
|
+
if (a === a.parent) {
|
|
1251
|
+
return a = a.V.nb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
1252
|
+
}
|
|
1253
|
+
b = b ? `${a.name}/${b}` : a.name;
|
|
1254
|
+
a = a.parent;
|
|
1255
|
+
}
|
|
1256
|
+
}, Gb = (a, b) => {
|
|
1257
|
+
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1258
|
+
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1259
|
+
}
|
|
1260
|
+
return (a + c >>> 0) % Bb.length;
|
|
1261
|
+
}, vb = (a, b) => {
|
|
1262
|
+
var c;
|
|
1263
|
+
if (c = (c = Hb(a, "x")) ? c : a.j.ka ? 0 : 2) {
|
|
1264
|
+
throw new Q(c, a);
|
|
1265
|
+
}
|
|
1266
|
+
for (c = Bb[Gb(a.id, b)]; c; c = c.sc) {
|
|
1267
|
+
var d = c.name;
|
|
1268
|
+
if (c.parent.id === a.id && d === b) {
|
|
1269
|
+
return c;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
return a.j.ka(a, b);
|
|
1273
|
+
}, tb = (a, b, c, d) => {
|
|
1274
|
+
a = new Ib(a, b, c, d);
|
|
1275
|
+
b = Gb(a.parent.id, a.name);
|
|
1276
|
+
a.sc = Bb[b];
|
|
1277
|
+
return Bb[b] = a;
|
|
1278
|
+
}, Jb = a => {
|
|
1279
|
+
var b = ["r", "w", "rw"][a & 3];
|
|
1280
|
+
a & 512 && (b += "w");
|
|
1281
|
+
return b;
|
|
1282
|
+
}, Hb = (a, b) => {
|
|
1283
|
+
if (Cb) {
|
|
1284
|
+
return 0;
|
|
1285
|
+
}
|
|
1286
|
+
if (!b.includes("r") || a.mode & 292) {
|
|
1287
|
+
if (b.includes("w") && !(a.mode & 146) || b.includes("x") && !(a.mode & 73)) {
|
|
1288
|
+
return 2;
|
|
1289
|
+
}
|
|
1290
|
+
} else {
|
|
1291
|
+
return 2;
|
|
1292
|
+
}
|
|
1293
|
+
return 0;
|
|
1294
|
+
}, Kb = (a, b) => {
|
|
1295
|
+
try {
|
|
1296
|
+
return vb(a, b), 20;
|
|
1297
|
+
} catch (c) {
|
|
1298
|
+
}
|
|
1299
|
+
return Hb(a, "wx");
|
|
1300
|
+
}, Lb = () => {
|
|
1301
|
+
for (var a = 0; 4096 >= a; a++) {
|
|
1302
|
+
if (!zb[a]) {
|
|
1303
|
+
return a;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
throw new Q(33);
|
|
1307
|
+
}, Mb = a => {
|
|
1308
|
+
a = zb[a];
|
|
1309
|
+
if (!a) {
|
|
1310
|
+
throw new Q(8);
|
|
1311
|
+
}
|
|
1312
|
+
return a;
|
|
1313
|
+
}, Ob = (a, b = -1) => {
|
|
1314
|
+
Nb || (Nb = function() {
|
|
1315
|
+
this.h = {};
|
|
1316
|
+
}, Nb.prototype = {}, Object.defineProperties(Nb.prototype, {object:{get() {
|
|
1317
|
+
return this.node;
|
|
1318
|
+
}, set(c) {
|
|
1319
|
+
this.node = c;
|
|
1320
|
+
}}, flags:{get() {
|
|
1321
|
+
return this.h.flags;
|
|
1322
|
+
}, set(c) {
|
|
1323
|
+
this.h.flags = c;
|
|
1324
|
+
},}, position:{get() {
|
|
1325
|
+
return this.h.position;
|
|
1326
|
+
}, set(c) {
|
|
1327
|
+
this.h.position = c;
|
|
1328
|
+
},},}));
|
|
1329
|
+
a = Object.assign(new Nb(), a);
|
|
1330
|
+
-1 == b && (b = Lb());
|
|
1331
|
+
a.Z = b;
|
|
1332
|
+
return zb[b] = a;
|
|
1333
|
+
}, sb = {open:a => {
|
|
1334
|
+
a.m = yb[a.node.ma].m;
|
|
1335
|
+
a.m.open && a.m.open(a);
|
|
1336
|
+
}, ba:() => {
|
|
1337
|
+
throw new Q(70);
|
|
1338
|
+
},}, nb = (a, b) => {
|
|
1339
|
+
yb[a] = {m:b};
|
|
1340
|
+
}, Pb = (a, b) => {
|
|
1341
|
+
var c = "/" === b, d = !b;
|
|
1342
|
+
if (c && xb) {
|
|
1343
|
+
throw new Q(10);
|
|
1344
|
+
}
|
|
1345
|
+
if (!c && !d) {
|
|
1346
|
+
var e = Eb(b, {gb:!1});
|
|
1347
|
+
b = e.path;
|
|
1348
|
+
e = e.node;
|
|
1349
|
+
if (e.xa) {
|
|
1350
|
+
throw new Q(10);
|
|
1351
|
+
}
|
|
1352
|
+
if (16384 !== (e.mode & 61440)) {
|
|
1353
|
+
throw new Q(54);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
b = {type:a, Qc:{}, nb:b, qc:[]};
|
|
1357
|
+
a = a.V(b);
|
|
1358
|
+
a.V = b;
|
|
1359
|
+
b.root = a;
|
|
1360
|
+
c ? xb = a : e && (e.xa = b, e.V && e.V.qc.push(b));
|
|
1361
|
+
}, Qb = (a, b, c) => {
|
|
1362
|
+
var d = Eb(a, {parent:!0}).node;
|
|
1363
|
+
a = bb(a);
|
|
1364
|
+
if (!a || "." === a || ".." === a) {
|
|
1365
|
+
throw new Q(28);
|
|
1366
|
+
}
|
|
1367
|
+
var e = Kb(d, a);
|
|
1368
|
+
if (e) {
|
|
1369
|
+
throw new Q(e);
|
|
1370
|
+
}
|
|
1371
|
+
if (!d.j.wa) {
|
|
1372
|
+
throw new Q(63);
|
|
1373
|
+
}
|
|
1374
|
+
return d.j.wa(d, a, b, c);
|
|
1375
|
+
}, Rb = (a, b, c) => {
|
|
1376
|
+
"undefined" == typeof c && (c = b, b = 438);
|
|
1377
|
+
Qb(a, b | 8192, c);
|
|
1378
|
+
}, Sb = (a, b) => {
|
|
1379
|
+
if (!eb(a)) {
|
|
1380
|
+
throw new Q(44);
|
|
1381
|
+
}
|
|
1382
|
+
var c = Eb(b, {parent:!0}).node;
|
|
1383
|
+
if (!c) {
|
|
1384
|
+
throw new Q(44);
|
|
1385
|
+
}
|
|
1386
|
+
b = bb(b);
|
|
1387
|
+
var d = Kb(c, b);
|
|
1388
|
+
if (d) {
|
|
1389
|
+
throw new Q(d);
|
|
1390
|
+
}
|
|
1391
|
+
if (!c.j.Ea) {
|
|
1392
|
+
throw new Q(63);
|
|
1393
|
+
}
|
|
1394
|
+
c.j.Ea(c, b, a);
|
|
1395
|
+
}, Db = a => {
|
|
1396
|
+
a = Eb(a).node;
|
|
1397
|
+
if (!a) {
|
|
1398
|
+
throw new Q(44);
|
|
1399
|
+
}
|
|
1400
|
+
if (!a.j.na) {
|
|
1401
|
+
throw new Q(28);
|
|
1402
|
+
}
|
|
1403
|
+
return eb(Fb(a.parent), a.j.na(a));
|
|
1404
|
+
}, Ub = (a, b, c) => {
|
|
1405
|
+
if ("" === a) {
|
|
1406
|
+
throw new Q(44);
|
|
1407
|
+
}
|
|
1408
|
+
if ("string" == typeof b) {
|
|
1409
|
+
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
1410
|
+
if ("undefined" == typeof d) {
|
|
1411
|
+
throw Error(`Unknown file open mode: ${b}`);
|
|
1412
|
+
}
|
|
1413
|
+
b = d;
|
|
1414
|
+
}
|
|
1415
|
+
c = b & 64 ? ("undefined" == typeof c ? 438 : c) & 4095 | 32768 : 0;
|
|
1416
|
+
if ("object" == typeof a) {
|
|
1417
|
+
var e = a;
|
|
1418
|
+
} else {
|
|
1419
|
+
a = $a(a);
|
|
1420
|
+
try {
|
|
1421
|
+
e = Eb(a, {Ma:!(b & 131072)}).node;
|
|
1422
|
+
} catch (f) {
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
d = !1;
|
|
1426
|
+
if (b & 64) {
|
|
1427
|
+
if (e) {
|
|
1428
|
+
if (b & 128) {
|
|
1429
|
+
throw new Q(20);
|
|
1430
|
+
}
|
|
1431
|
+
} else {
|
|
1432
|
+
e = Qb(a, c, 0), d = !0;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
if (!e) {
|
|
1436
|
+
throw new Q(44);
|
|
1437
|
+
}
|
|
1438
|
+
8192 === (e.mode & 61440) && (b &= -513);
|
|
1439
|
+
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1440
|
+
throw new Q(54);
|
|
1441
|
+
}
|
|
1442
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Jb(b) || b & 512) ? 31 : Hb(e, Jb(b)) : 44)) {
|
|
1443
|
+
throw new Q(c);
|
|
1444
|
+
}
|
|
1445
|
+
if (b & 512 && !d) {
|
|
1446
|
+
c = e;
|
|
1447
|
+
c = "string" == typeof c ? Eb(c, {Ma:!0}).node : c;
|
|
1448
|
+
if (!c.j.R) {
|
|
1449
|
+
throw new Q(63);
|
|
1450
|
+
}
|
|
1451
|
+
if (16384 === (c.mode & 61440)) {
|
|
1452
|
+
throw new Q(31);
|
|
1453
|
+
}
|
|
1454
|
+
if (32768 !== (c.mode & 61440)) {
|
|
1455
|
+
throw new Q(28);
|
|
1456
|
+
}
|
|
1457
|
+
if (d = Hb(c, "w")) {
|
|
1458
|
+
throw new Q(d);
|
|
1459
|
+
}
|
|
1460
|
+
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1461
|
+
}
|
|
1462
|
+
b &= -131713;
|
|
1463
|
+
e = Ob({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m, Hc:[], error:!1});
|
|
1464
|
+
e.m.open && e.m.open(e);
|
|
1465
|
+
!p.logReadFiles || b & 1 || (Tb || (Tb = {}), a in Tb || (Tb[a] = 1));
|
|
1466
|
+
return e;
|
|
1467
|
+
}, Vb = (a, b, c) => {
|
|
1468
|
+
if (null === a.Z) {
|
|
1469
|
+
throw new Q(8);
|
|
1470
|
+
}
|
|
1471
|
+
if (!a.seekable || !a.m.ba) {
|
|
1472
|
+
throw new Q(70);
|
|
1473
|
+
}
|
|
1474
|
+
if (0 != c && 1 != c && 2 != c) {
|
|
1475
|
+
throw new Q(28);
|
|
1476
|
+
}
|
|
1477
|
+
a.position = a.m.ba(a, b, c);
|
|
1478
|
+
a.Hc = [];
|
|
1479
|
+
}, Wb = () => {
|
|
1480
|
+
Q || (Q = function(a, b) {
|
|
1481
|
+
this.name = "ErrnoError";
|
|
1482
|
+
this.node = b;
|
|
1483
|
+
this.xc = function(c) {
|
|
1484
|
+
this.Y = c;
|
|
1485
|
+
};
|
|
1486
|
+
this.xc(a);
|
|
1487
|
+
this.message = "FS error";
|
|
1488
|
+
}, Q.prototype = Error(), Q.prototype.constructor = Q, [44].forEach(a => {
|
|
1489
|
+
ub[a] = new Q(a);
|
|
1490
|
+
ub[a].stack = "<generic error, no stack>";
|
|
1491
|
+
}));
|
|
1492
|
+
}, Xb, dc = (a, b, c) => {
|
|
1493
|
+
a = $a("/dev/" + a);
|
|
1494
|
+
var d = wb(!!b, !!c);
|
|
1495
|
+
cc || (cc = 64);
|
|
1496
|
+
var e = cc++ << 8 | 0;
|
|
1497
|
+
nb(e, {open:f => {
|
|
1498
|
+
f.seekable = !1;
|
|
1499
|
+
}, close:() => {
|
|
1500
|
+
c && c.buffer && c.buffer.length && c(10);
|
|
1501
|
+
}, read:(f, g, m, n) => {
|
|
1502
|
+
for (var l = 0, u = 0; u < n; u++) {
|
|
1503
|
+
try {
|
|
1504
|
+
var v = b();
|
|
1505
|
+
} catch (y) {
|
|
1506
|
+
throw new Q(29);
|
|
1507
|
+
}
|
|
1508
|
+
if (void 0 === v && 0 === l) {
|
|
1509
|
+
throw new Q(6);
|
|
1510
|
+
}
|
|
1511
|
+
if (null === v || void 0 === v) {
|
|
1512
|
+
break;
|
|
1513
|
+
}
|
|
1514
|
+
l++;
|
|
1515
|
+
g[m + u] = v;
|
|
1516
|
+
}
|
|
1517
|
+
l && (f.node.timestamp = Date.now());
|
|
1518
|
+
return l;
|
|
1519
|
+
}, write:(f, g, m, n) => {
|
|
1520
|
+
for (var l = 0; l < n; l++) {
|
|
1521
|
+
try {
|
|
1522
|
+
c(g[m + l]);
|
|
1523
|
+
} catch (u) {
|
|
1524
|
+
throw new Q(29);
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
n && (f.node.timestamp = Date.now());
|
|
1528
|
+
return l;
|
|
1529
|
+
}});
|
|
1530
|
+
Rb(a, d, e);
|
|
1531
|
+
}, cc, ec = {}, Nb, Tb, fc = void 0;
|
|
1532
|
+
function gc() {
|
|
1533
|
+
fc += 4;
|
|
1534
|
+
return F[fc - 4 >> 2];
|
|
1535
|
+
}
|
|
1536
|
+
function hc(a) {
|
|
1537
|
+
if (void 0 === a) {
|
|
1538
|
+
return "_unknown";
|
|
1539
|
+
}
|
|
1540
|
+
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
1541
|
+
var b = a.charCodeAt(0);
|
|
1542
|
+
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1543
|
+
}
|
|
1544
|
+
function ic(a, b) {
|
|
1545
|
+
a = hc(a);
|
|
1546
|
+
return {[a]:function() {
|
|
1547
|
+
return b.apply(this, arguments);
|
|
1548
|
+
}}[a];
|
|
1549
|
+
}
|
|
1550
|
+
function jc() {
|
|
1551
|
+
this.M = [void 0];
|
|
1552
|
+
this.hb = [];
|
|
1553
|
+
}
|
|
1554
|
+
var kc = new jc(), lc = void 0;
|
|
1555
|
+
function U(a) {
|
|
1556
|
+
throw new lc(a);
|
|
1557
|
+
}
|
|
1558
|
+
var mc = a => {
|
|
1559
|
+
a || U("Cannot use deleted val. handle = " + a);
|
|
1560
|
+
return kc.get(a).value;
|
|
1561
|
+
}, nc = a => {
|
|
1562
|
+
switch(a) {
|
|
1563
|
+
case void 0:
|
|
1564
|
+
return 1;
|
|
1565
|
+
case null:
|
|
1566
|
+
return 2;
|
|
1567
|
+
case !0:
|
|
1568
|
+
return 3;
|
|
1569
|
+
case !1:
|
|
1570
|
+
return 4;
|
|
1571
|
+
default:
|
|
1572
|
+
return kc.qa({ub:1, value:a});
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
function oc(a) {
|
|
1576
|
+
var b = Error, c = ic(a, function(d) {
|
|
1577
|
+
this.name = a;
|
|
1578
|
+
this.message = d;
|
|
1579
|
+
d = Error(d).stack;
|
|
1580
|
+
void 0 !== d && (this.stack = this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
1581
|
+
});
|
|
1582
|
+
c.prototype = Object.create(b.prototype);
|
|
1583
|
+
c.prototype.constructor = c;
|
|
1584
|
+
c.prototype.toString = function() {
|
|
1585
|
+
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1586
|
+
};
|
|
1587
|
+
return c;
|
|
1588
|
+
}
|
|
1589
|
+
var pc = void 0, qc = void 0;
|
|
1590
|
+
function W(a) {
|
|
1591
|
+
for (var b = ""; C[a];) {
|
|
1592
|
+
b += qc[C[a++]];
|
|
1593
|
+
}
|
|
1594
|
+
return b;
|
|
1595
|
+
}
|
|
1596
|
+
var rc = [];
|
|
1597
|
+
function sc() {
|
|
1598
|
+
for (; rc.length;) {
|
|
1599
|
+
var a = rc.pop();
|
|
1600
|
+
a.g.fa = !1;
|
|
1601
|
+
a["delete"]();
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
var tc = void 0, uc = {};
|
|
1605
|
+
function vc(a, b) {
|
|
1606
|
+
for (void 0 === b && U("ptr should not be undefined"); a.A;) {
|
|
1607
|
+
b = a.oa(b), a = a.A;
|
|
1608
|
+
}
|
|
1609
|
+
return b;
|
|
1610
|
+
}
|
|
1611
|
+
var wc = {};
|
|
1612
|
+
function xc(a) {
|
|
1613
|
+
a = yc(a);
|
|
1614
|
+
var b = W(a);
|
|
1615
|
+
zc(a);
|
|
1616
|
+
return b;
|
|
1617
|
+
}
|
|
1618
|
+
function Ac(a, b) {
|
|
1619
|
+
var c = wc[a];
|
|
1620
|
+
void 0 === c && U(b + " has unknown type " + xc(a));
|
|
1621
|
+
return c;
|
|
1622
|
+
}
|
|
1623
|
+
function Bc() {
|
|
1624
|
+
}
|
|
1625
|
+
var Cc = !1;
|
|
1626
|
+
function Dc(a) {
|
|
1627
|
+
--a.count.value;
|
|
1628
|
+
0 === a.count.value && (a.G ? a.L.X(a.G) : a.u.i.X(a.o));
|
|
1629
|
+
}
|
|
1630
|
+
function Ec(a, b, c) {
|
|
1631
|
+
if (b === c) {
|
|
1632
|
+
return a;
|
|
1633
|
+
}
|
|
1634
|
+
if (void 0 === c.A) {
|
|
1635
|
+
return null;
|
|
1636
|
+
}
|
|
1637
|
+
a = Ec(a, b, c.A);
|
|
1638
|
+
return null === a ? null : c.Ub(a);
|
|
1639
|
+
}
|
|
1640
|
+
var Fc = {};
|
|
1641
|
+
function Gc(a, b) {
|
|
1642
|
+
b = vc(a, b);
|
|
1643
|
+
return uc[b];
|
|
1644
|
+
}
|
|
1645
|
+
var Hc = void 0;
|
|
1646
|
+
function Ic(a) {
|
|
1647
|
+
throw new Hc(a);
|
|
1648
|
+
}
|
|
1649
|
+
function Jc(a, b) {
|
|
1650
|
+
b.u && b.o || Ic("makeClassHandle requires ptr and ptrType");
|
|
1651
|
+
!!b.L !== !!b.G && Ic("Both smartPtrType and smartPtr must be specified");
|
|
1652
|
+
b.count = {value:1};
|
|
1653
|
+
return Kc(Object.create(a, {g:{value:b,},}));
|
|
1654
|
+
}
|
|
1655
|
+
function Kc(a) {
|
|
1656
|
+
if ("undefined" === typeof FinalizationRegistry) {
|
|
1657
|
+
return Kc = b => b, a;
|
|
1658
|
+
}
|
|
1659
|
+
Cc = new FinalizationRegistry(b => {
|
|
1660
|
+
Dc(b.g);
|
|
1661
|
+
});
|
|
1662
|
+
Kc = b => {
|
|
1663
|
+
var c = b.g;
|
|
1664
|
+
c.G && Cc.register(b, {g:c}, b);
|
|
1665
|
+
return b;
|
|
1666
|
+
};
|
|
1667
|
+
Bc = b => {
|
|
1668
|
+
Cc.unregister(b);
|
|
1669
|
+
};
|
|
1670
|
+
return Kc(a);
|
|
1671
|
+
}
|
|
1672
|
+
var Lc = {};
|
|
1673
|
+
function Mc(a) {
|
|
1674
|
+
for (; a.length;) {
|
|
1675
|
+
var b = a.pop();
|
|
1676
|
+
a.pop()(b);
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
function Nc(a) {
|
|
1680
|
+
return this.fromWireType(F[a >> 2]);
|
|
1681
|
+
}
|
|
1682
|
+
var Oc = {}, Pc = {};
|
|
1683
|
+
function X(a, b, c) {
|
|
1684
|
+
function d(m) {
|
|
1685
|
+
m = c(m);
|
|
1686
|
+
m.length !== a.length && Ic("Mismatched type converter count");
|
|
1687
|
+
for (var n = 0; n < a.length; ++n) {
|
|
1688
|
+
Qc(a[n], m[n]);
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
a.forEach(function(m) {
|
|
1692
|
+
Pc[m] = b;
|
|
1693
|
+
});
|
|
1694
|
+
var e = Array(b.length), f = [], g = 0;
|
|
1695
|
+
b.forEach((m, n) => {
|
|
1696
|
+
wc.hasOwnProperty(m) ? e[n] = wc[m] : (f.push(m), Oc.hasOwnProperty(m) || (Oc[m] = []), Oc[m].push(() => {
|
|
1697
|
+
e[n] = wc[m];
|
|
1698
|
+
++g;
|
|
1699
|
+
g === f.length && d(e);
|
|
1700
|
+
}));
|
|
1701
|
+
});
|
|
1702
|
+
0 === f.length && d(e);
|
|
1703
|
+
}
|
|
1704
|
+
function Rc(a) {
|
|
1705
|
+
switch(a) {
|
|
1706
|
+
case 1:
|
|
1707
|
+
return 0;
|
|
1708
|
+
case 2:
|
|
1709
|
+
return 1;
|
|
1710
|
+
case 4:
|
|
1711
|
+
return 2;
|
|
1712
|
+
case 8:
|
|
1713
|
+
return 3;
|
|
1714
|
+
default:
|
|
1715
|
+
throw new TypeError(`Unknown type size: ${a}`);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
function Sc(a, b, c = {}) {
|
|
1719
|
+
var d = b.name;
|
|
1720
|
+
a || U(`type "${d}" must have a positive integer typeid pointer`);
|
|
1721
|
+
if (wc.hasOwnProperty(a)) {
|
|
1722
|
+
if (c.fc) {
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
U(`Cannot register type '${d}' twice`);
|
|
1726
|
+
}
|
|
1727
|
+
wc[a] = b;
|
|
1728
|
+
delete Pc[a];
|
|
1729
|
+
Oc.hasOwnProperty(a) && (b = Oc[a], delete Oc[a], b.forEach(e => e()));
|
|
1730
|
+
}
|
|
1731
|
+
function Qc(a, b, c = {}) {
|
|
1732
|
+
if (!("argPackAdvance" in b)) {
|
|
1733
|
+
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1734
|
+
}
|
|
1735
|
+
Sc(a, b, c);
|
|
1736
|
+
}
|
|
1737
|
+
function Tc(a) {
|
|
1738
|
+
U(a.g.u.i.name + " instance already deleted");
|
|
1739
|
+
}
|
|
1740
|
+
function Uc() {
|
|
1741
|
+
}
|
|
1742
|
+
function Vc(a, b, c) {
|
|
1743
|
+
if (void 0 === a[b].B) {
|
|
1744
|
+
var d = a[b];
|
|
1745
|
+
a[b] = function() {
|
|
1746
|
+
a[b].B.hasOwnProperty(arguments.length) || U(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1747
|
+
return a[b].B[arguments.length].apply(this, arguments);
|
|
1748
|
+
};
|
|
1749
|
+
a[b].B = [];
|
|
1750
|
+
a[b].B[d.ea] = d;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
function Wc(a, b, c) {
|
|
1754
|
+
p.hasOwnProperty(a) ? ((void 0 === c || void 0 !== p[a].B && void 0 !== p[a].B[c]) && U(`Cannot register public name '${a}' twice`), Vc(p, a, a), p.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), p[a].B[c] = b) : (p[a] = b, void 0 !== c && (p[a].Pc = c));
|
|
1755
|
+
}
|
|
1756
|
+
function Xc(a, b, c, d, e, f, g, m) {
|
|
1757
|
+
this.name = a;
|
|
1758
|
+
this.constructor = b;
|
|
1759
|
+
this.O = c;
|
|
1760
|
+
this.X = d;
|
|
1761
|
+
this.A = e;
|
|
1762
|
+
this.Zb = f;
|
|
1763
|
+
this.oa = g;
|
|
1764
|
+
this.Ub = m;
|
|
1765
|
+
this.rb = [];
|
|
1766
|
+
}
|
|
1767
|
+
function Yc(a, b, c) {
|
|
1768
|
+
for (; b !== c;) {
|
|
1769
|
+
b.oa || U(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
|
|
1770
|
+
}
|
|
1771
|
+
return a;
|
|
1772
|
+
}
|
|
1773
|
+
function Zc(a, b) {
|
|
1774
|
+
if (null === b) {
|
|
1775
|
+
return this.Oa && U(`null is not a valid ${this.name}`), 0;
|
|
1776
|
+
}
|
|
1777
|
+
b.g || U(`Cannot pass "${$c(b)}" as a ${this.name}`);
|
|
1778
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1779
|
+
return Yc(b.g.o, b.g.u.i, this.i);
|
|
1780
|
+
}
|
|
1781
|
+
function ad(a, b) {
|
|
1782
|
+
if (null === b) {
|
|
1783
|
+
this.Oa && U(`null is not a valid ${this.name}`);
|
|
1784
|
+
if (this.va) {
|
|
1785
|
+
var c = this.Qa();
|
|
1786
|
+
null !== a && a.push(this.X, c);
|
|
1787
|
+
return c;
|
|
1788
|
+
}
|
|
1789
|
+
return 0;
|
|
1790
|
+
}
|
|
1791
|
+
b.g || U(`Cannot pass "${$c(b)}" as a ${this.name}`);
|
|
1792
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1793
|
+
!this.ua && b.g.u.ua && U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1794
|
+
c = Yc(b.g.o, b.g.u.i, this.i);
|
|
1795
|
+
if (this.va) {
|
|
1796
|
+
switch(void 0 === b.g.G && U("Passing raw pointer to smart pointer is illegal"), this.Bc) {
|
|
1797
|
+
case 0:
|
|
1798
|
+
b.g.L === this ? c = b.g.G : U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1799
|
+
break;
|
|
1800
|
+
case 1:
|
|
1801
|
+
c = b.g.G;
|
|
1802
|
+
break;
|
|
1803
|
+
case 2:
|
|
1804
|
+
if (b.g.L === this) {
|
|
1805
|
+
c = b.g.G;
|
|
1806
|
+
} else {
|
|
1807
|
+
var d = b.clone();
|
|
1808
|
+
c = this.wc(c, nc(function() {
|
|
1809
|
+
d["delete"]();
|
|
1810
|
+
}));
|
|
1811
|
+
null !== a && a.push(this.X, c);
|
|
1812
|
+
}
|
|
1813
|
+
break;
|
|
1814
|
+
default:
|
|
1815
|
+
U("Unsupporting sharing policy");
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
return c;
|
|
1819
|
+
}
|
|
1820
|
+
function bd(a, b) {
|
|
1821
|
+
if (null === b) {
|
|
1822
|
+
return this.Oa && U(`null is not a valid ${this.name}`), 0;
|
|
1823
|
+
}
|
|
1824
|
+
b.g || U(`Cannot pass "${$c(b)}" as a ${this.name}`);
|
|
1825
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1826
|
+
b.g.u.ua && U(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1827
|
+
return Yc(b.g.o, b.g.u.i, this.i);
|
|
1828
|
+
}
|
|
1829
|
+
function cd(a, b, c, d) {
|
|
1830
|
+
this.name = a;
|
|
1831
|
+
this.i = b;
|
|
1832
|
+
this.Oa = c;
|
|
1833
|
+
this.ua = d;
|
|
1834
|
+
this.va = !1;
|
|
1835
|
+
this.X = this.wc = this.Qa = this.sb = this.Bc = this.vc = void 0;
|
|
1836
|
+
void 0 !== b.A ? this.toWireType = ad : (this.toWireType = d ? Zc : bd, this.K = null);
|
|
1837
|
+
}
|
|
1838
|
+
function dd(a, b, c) {
|
|
1839
|
+
p.hasOwnProperty(a) || Ic("Replacing nonexistant public symbol");
|
|
1840
|
+
void 0 !== p[a].B && void 0 !== c ? p[a].B[c] = b : (p[a] = b, p[a].ea = c);
|
|
1841
|
+
}
|
|
1842
|
+
var ed = [], fd = a => {
|
|
1843
|
+
var b = ed[a];
|
|
1844
|
+
b || (a >= ed.length && (ed.length = a + 1), ed[a] = b = Ia.get(a));
|
|
1845
|
+
return b;
|
|
1846
|
+
}, gd = (a, b) => {
|
|
1847
|
+
var c = [];
|
|
1848
|
+
return function() {
|
|
1849
|
+
c.length = 0;
|
|
1850
|
+
Object.assign(c, arguments);
|
|
1851
|
+
if (a.includes("j")) {
|
|
1852
|
+
var d = p["dynCall_" + a];
|
|
1853
|
+
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1854
|
+
} else {
|
|
1855
|
+
d = fd(b).apply(null, c);
|
|
1856
|
+
}
|
|
1857
|
+
return d;
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
function Y(a, b) {
|
|
1861
|
+
a = W(a);
|
|
1862
|
+
var c = a.includes("j") ? gd(a, b) : fd(b);
|
|
1863
|
+
"function" != typeof c && U(`unknown function pointer with signature ${a}: ${b}`);
|
|
1864
|
+
return c;
|
|
1865
|
+
}
|
|
1866
|
+
var hd = void 0;
|
|
1867
|
+
function jd(a, b) {
|
|
1868
|
+
function c(f) {
|
|
1869
|
+
e[f] || wc[f] || (Pc[f] ? Pc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1870
|
+
}
|
|
1871
|
+
var d = [], e = {};
|
|
1872
|
+
b.forEach(c);
|
|
1873
|
+
throw new hd(`${a}: ` + d.map(xc).join([", "]));
|
|
1874
|
+
}
|
|
1875
|
+
function kd(a, b, c, d, e) {
|
|
1876
|
+
var f = b.length;
|
|
1877
|
+
2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1878
|
+
var g = null !== b[1] && null !== c, m = !1;
|
|
1879
|
+
for (c = 1; c < b.length; ++c) {
|
|
1880
|
+
if (null !== b[c] && void 0 === b[c].K) {
|
|
1881
|
+
m = !0;
|
|
1882
|
+
break;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
var n = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], y = [];
|
|
1886
|
+
return function() {
|
|
1887
|
+
arguments.length !== l && U(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1888
|
+
y.length = 0;
|
|
1889
|
+
v.length = g ? 2 : 1;
|
|
1890
|
+
v[0] = e;
|
|
1891
|
+
if (g) {
|
|
1892
|
+
var k = b[1].toWireType(y, this);
|
|
1893
|
+
v[1] = k;
|
|
1894
|
+
}
|
|
1895
|
+
for (var t = 0; t < l; ++t) {
|
|
1896
|
+
u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
|
|
1897
|
+
}
|
|
1898
|
+
t = d.apply(null, v);
|
|
1899
|
+
if (m) {
|
|
1900
|
+
Mc(y);
|
|
1901
|
+
} else {
|
|
1902
|
+
for (var r = g ? 1 : 2; r < b.length; r++) {
|
|
1903
|
+
var B = 1 === r ? k : u[r - 2];
|
|
1904
|
+
null !== b[r].K && b[r].K(B);
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
k = n ? b[0].fromWireType(t) : void 0;
|
|
1908
|
+
return k;
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
function ld(a, b) {
|
|
1912
|
+
for (var c = [], d = 0; d < a; d++) {
|
|
1913
|
+
c.push(G[b + 4 * d >> 2]);
|
|
1914
|
+
}
|
|
1915
|
+
return c;
|
|
1916
|
+
}
|
|
1917
|
+
function nd(a, b, c) {
|
|
1918
|
+
a instanceof Object || U(`${c} with invalid "this": ${a}`);
|
|
1919
|
+
a instanceof b.i.constructor || U(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1920
|
+
a.g.o || U(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1921
|
+
return Yc(a.g.o, a.g.u.i, b.i);
|
|
1922
|
+
}
|
|
1923
|
+
function od(a) {
|
|
1924
|
+
a >= kc.h && 0 === --kc.get(a).ub && kc.ec(a);
|
|
1925
|
+
}
|
|
1926
|
+
function pd(a, b, c) {
|
|
1927
|
+
switch(b) {
|
|
1928
|
+
case 0:
|
|
1929
|
+
return function(d) {
|
|
1930
|
+
return this.fromWireType((c ? A : C)[d]);
|
|
1931
|
+
};
|
|
1932
|
+
case 1:
|
|
1933
|
+
return function(d) {
|
|
1934
|
+
return this.fromWireType((c ? Ba : Ca)[d >> 1]);
|
|
1935
|
+
};
|
|
1936
|
+
case 2:
|
|
1937
|
+
return function(d) {
|
|
1938
|
+
return this.fromWireType((c ? F : G)[d >> 2]);
|
|
1939
|
+
};
|
|
1940
|
+
default:
|
|
1941
|
+
throw new TypeError("Unknown integer type: " + a);
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
function $c(a) {
|
|
1945
|
+
if (null === a) {
|
|
1946
|
+
return "null";
|
|
1947
|
+
}
|
|
1948
|
+
var b = typeof a;
|
|
1949
|
+
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1950
|
+
}
|
|
1951
|
+
function qd(a, b) {
|
|
1952
|
+
switch(b) {
|
|
1953
|
+
case 2:
|
|
1954
|
+
return function(c) {
|
|
1955
|
+
return this.fromWireType(Da[c >> 2]);
|
|
1956
|
+
};
|
|
1957
|
+
case 3:
|
|
1958
|
+
return function(c) {
|
|
1959
|
+
return this.fromWireType(Ea[c >> 3]);
|
|
1960
|
+
};
|
|
1961
|
+
default:
|
|
1962
|
+
throw new TypeError("Unknown float type: " + a);
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
function rd(a, b, c) {
|
|
1966
|
+
switch(b) {
|
|
1967
|
+
case 0:
|
|
1968
|
+
return c ? function(d) {
|
|
1969
|
+
return A[d];
|
|
1970
|
+
} : function(d) {
|
|
1971
|
+
return C[d];
|
|
1972
|
+
};
|
|
1973
|
+
case 1:
|
|
1974
|
+
return c ? function(d) {
|
|
1975
|
+
return Ba[d >> 1];
|
|
1976
|
+
} : function(d) {
|
|
1977
|
+
return Ca[d >> 1];
|
|
1978
|
+
};
|
|
1979
|
+
case 2:
|
|
1980
|
+
return c ? function(d) {
|
|
1981
|
+
return F[d >> 2];
|
|
1982
|
+
} : function(d) {
|
|
1983
|
+
return G[d >> 2];
|
|
1984
|
+
};
|
|
1985
|
+
default:
|
|
1986
|
+
throw new TypeError("Unknown integer type: " + a);
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
var sd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, td = (a, b) => {
|
|
1990
|
+
var c = a >> 1;
|
|
1991
|
+
for (var d = c + b / 2; !(c >= d) && Ca[c];) {
|
|
1992
|
+
++c;
|
|
1993
|
+
}
|
|
1994
|
+
c <<= 1;
|
|
1995
|
+
if (32 < c - a && sd) {
|
|
1996
|
+
return sd.decode(C.subarray(a, c));
|
|
1997
|
+
}
|
|
1998
|
+
c = "";
|
|
1999
|
+
for (d = 0; !(d >= b / 2); ++d) {
|
|
2000
|
+
var e = Ba[a + 2 * d >> 1];
|
|
2001
|
+
if (0 == e) {
|
|
2002
|
+
break;
|
|
2003
|
+
}
|
|
2004
|
+
c += String.fromCharCode(e);
|
|
2005
|
+
}
|
|
2006
|
+
return c;
|
|
2007
|
+
}, ud = (a, b, c) => {
|
|
2008
|
+
void 0 === c && (c = 2147483647);
|
|
2009
|
+
if (2 > c) {
|
|
2010
|
+
return 0;
|
|
2011
|
+
}
|
|
2012
|
+
c -= 2;
|
|
2013
|
+
var d = b;
|
|
2014
|
+
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2015
|
+
for (var e = 0; e < c; ++e) {
|
|
2016
|
+
Ba[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2017
|
+
}
|
|
2018
|
+
Ba[b >> 1] = 0;
|
|
2019
|
+
return b - d;
|
|
2020
|
+
}, vd = a => 2 * a.length, wd = (a, b) => {
|
|
2021
|
+
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2022
|
+
var e = F[a + 4 * c >> 2];
|
|
2023
|
+
if (0 == e) {
|
|
2024
|
+
break;
|
|
2025
|
+
}
|
|
2026
|
+
++c;
|
|
2027
|
+
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2028
|
+
}
|
|
2029
|
+
return d;
|
|
2030
|
+
}, xd = (a, b, c) => {
|
|
2031
|
+
void 0 === c && (c = 2147483647);
|
|
2032
|
+
if (4 > c) {
|
|
2033
|
+
return 0;
|
|
2034
|
+
}
|
|
2035
|
+
var d = b;
|
|
2036
|
+
c = d + c - 4;
|
|
2037
|
+
for (var e = 0; e < a.length; ++e) {
|
|
2038
|
+
var f = a.charCodeAt(e);
|
|
2039
|
+
if (55296 <= f && 57343 >= f) {
|
|
2040
|
+
var g = a.charCodeAt(++e);
|
|
2041
|
+
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
2042
|
+
}
|
|
2043
|
+
F[b >> 2] = f;
|
|
2044
|
+
b += 4;
|
|
2045
|
+
if (b + 4 > c) {
|
|
2046
|
+
break;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
F[b >> 2] = 0;
|
|
2050
|
+
return b - d;
|
|
2051
|
+
}, yd = a => {
|
|
2052
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2053
|
+
var d = a.charCodeAt(c);
|
|
2054
|
+
55296 <= d && 57343 >= d && ++c;
|
|
2055
|
+
b += 4;
|
|
2056
|
+
}
|
|
2057
|
+
return b;
|
|
2058
|
+
}, zd = {};
|
|
2059
|
+
function Ad(a) {
|
|
2060
|
+
var b = zd[a];
|
|
2061
|
+
return void 0 === b ? W(a) : b;
|
|
2062
|
+
}
|
|
2063
|
+
var Bd = [];
|
|
2064
|
+
function Cd(a) {
|
|
2065
|
+
var b = Bd.length;
|
|
2066
|
+
Bd.push(a);
|
|
2067
|
+
return b;
|
|
2068
|
+
}
|
|
2069
|
+
function Dd(a, b) {
|
|
2070
|
+
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2071
|
+
c[d] = Ac(G[b + 4 * d >> 2], "parameter " + d);
|
|
2072
|
+
}
|
|
2073
|
+
return c;
|
|
2074
|
+
}
|
|
2075
|
+
var Ed = [], Fd = [], Gd = {}, Id = () => {
|
|
2076
|
+
if (!Hd) {
|
|
2077
|
+
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, b;
|
|
2078
|
+
for (b in Gd) {
|
|
2079
|
+
void 0 === Gd[b] ? delete a[b] : a[b] = Gd[b];
|
|
2080
|
+
}
|
|
2081
|
+
var c = [];
|
|
2082
|
+
for (b in a) {
|
|
2083
|
+
c.push(`${b}=${a[b]}`);
|
|
2084
|
+
}
|
|
2085
|
+
Hd = c;
|
|
2086
|
+
}
|
|
2087
|
+
return Hd;
|
|
2088
|
+
}, Hd, Jd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Kd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ld = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Md = (a, b, c, d) => {
|
|
2089
|
+
function e(k, t, r) {
|
|
2090
|
+
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < t;) {
|
|
2091
|
+
k = r[0] + k;
|
|
2092
|
+
}
|
|
2093
|
+
return k;
|
|
2094
|
+
}
|
|
2095
|
+
function f(k, t) {
|
|
2096
|
+
return e(k, t, "0");
|
|
2097
|
+
}
|
|
2098
|
+
function g(k, t) {
|
|
2099
|
+
function r(E) {
|
|
2100
|
+
return 0 > E ? -1 : 0 < E ? 1 : 0;
|
|
2101
|
+
}
|
|
2102
|
+
var B;
|
|
2103
|
+
0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
|
|
2104
|
+
return B;
|
|
2105
|
+
}
|
|
2106
|
+
function m(k) {
|
|
2107
|
+
switch(k.getDay()) {
|
|
2108
|
+
case 0:
|
|
2109
|
+
return new Date(k.getFullYear() - 1, 11, 29);
|
|
2110
|
+
case 1:
|
|
2111
|
+
return k;
|
|
2112
|
+
case 2:
|
|
2113
|
+
return new Date(k.getFullYear(), 0, 3);
|
|
2114
|
+
case 3:
|
|
2115
|
+
return new Date(k.getFullYear(), 0, 2);
|
|
2116
|
+
case 4:
|
|
2117
|
+
return new Date(k.getFullYear(), 0, 1);
|
|
2118
|
+
case 5:
|
|
2119
|
+
return new Date(k.getFullYear() - 1, 11, 31);
|
|
2120
|
+
case 6:
|
|
2121
|
+
return new Date(k.getFullYear() - 1, 11, 30);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
function n(k) {
|
|
2125
|
+
var t = k.ca;
|
|
2126
|
+
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2127
|
+
var r = k.getMonth(), B = (Jd(k.getFullYear()) ? Kd : Ld)[r];
|
|
2128
|
+
if (t > B - k.getDate()) {
|
|
2129
|
+
t -= B - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2130
|
+
} else {
|
|
2131
|
+
k.setDate(k.getDate() + t);
|
|
2132
|
+
break;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
r = new Date(k.getFullYear() + 1, 0, 4);
|
|
2136
|
+
t = m(new Date(k.getFullYear(), 0, 4));
|
|
2137
|
+
r = m(r);
|
|
2138
|
+
return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2139
|
+
}
|
|
2140
|
+
var l = F[d + 40 >> 2];
|
|
2141
|
+
d = {Ec:F[d >> 2], Dc:F[d + 4 >> 2], Fa:F[d + 8 >> 2], Ta:F[d + 12 >> 2], Ga:F[d + 16 >> 2], da:F[d + 20 >> 2], S:F[d + 24 >> 2], ca:F[d + 28 >> 2], Rc:F[d + 32 >> 2], Cc:F[d + 36 >> 2], Fc:l ? l ? gb(C, l) : "" : ""};
|
|
2142
|
+
c = c ? gb(C, c) : "";
|
|
2143
|
+
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2144
|
+
for (var u in l) {
|
|
2145
|
+
c = c.replace(new RegExp(u, "g"), l[u]);
|
|
2146
|
+
}
|
|
2147
|
+
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2148
|
+
l = {"%a":k => v[k.S].substring(0, 3), "%A":k => v[k.S], "%b":k => y[k.Ga].substring(0, 3), "%B":k => y[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Ta, 2), "%e":k => e(k.Ta, 2, " "), "%g":k => n(k).toString().substring(2), "%G":k => n(k), "%H":k => f(k.Fa, 2), "%I":k => {
|
|
2149
|
+
k = k.Fa;
|
|
2150
|
+
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2151
|
+
return f(k, 2);
|
|
2152
|
+
}, "%j":k => {
|
|
2153
|
+
for (var t = 0, r = 0; r <= k.Ga - 1; t += (Jd(k.da + 1900) ? Kd : Ld)[r++]) {
|
|
2154
|
+
}
|
|
2155
|
+
return f(k.Ta + t, 3);
|
|
2156
|
+
}, "%m":k => f(k.Ga + 1, 2), "%M":k => f(k.Dc, 2), "%n":() => "\n", "%p":k => 0 <= k.Fa && 12 > k.Fa ? "AM" : "PM", "%S":k => f(k.Ec, 2), "%t":() => "\t", "%u":k => k.S || 7, "%U":k => f(Math.floor((k.ca + 7 - k.S) / 7), 2), "%V":k => {
|
|
2157
|
+
var t = Math.floor((k.ca + 7 - (k.S + 6) % 7) / 7);
|
|
2158
|
+
2 >= (k.S + 371 - k.ca - 2) % 7 && t++;
|
|
2159
|
+
if (t) {
|
|
2160
|
+
53 == t && (r = (k.S + 371 - k.ca) % 7, 4 == r || 3 == r && Jd(k.da) || (t = 1));
|
|
2161
|
+
} else {
|
|
2162
|
+
t = 52;
|
|
2163
|
+
var r = (k.S + 7 - k.ca - 1) % 7;
|
|
2164
|
+
(4 == r || 5 == r && Jd(k.da % 400 - 1)) && t++;
|
|
2165
|
+
}
|
|
2166
|
+
return f(t, 2);
|
|
2167
|
+
}, "%w":k => k.S, "%W":k => f(Math.floor((k.ca + 7 - (k.S + 6) % 7) / 7), 2), "%y":k => (k.da + 1900).toString().substring(2), "%Y":k => k.da + 1900, "%z":k => {
|
|
2168
|
+
k = k.Cc;
|
|
2169
|
+
var t = 0 <= k;
|
|
2170
|
+
k = Math.abs(k) / 60;
|
|
2171
|
+
return (t ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
|
|
2172
|
+
}, "%Z":k => k.Fc, "%%":() => "%"};
|
|
2173
|
+
c = c.replace(/%%/g, "\x00\x00");
|
|
2174
|
+
for (u in l) {
|
|
2175
|
+
c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
|
|
2176
|
+
}
|
|
2177
|
+
c = c.replace(/\0\0/g, "%");
|
|
2178
|
+
u = kb(c, !1);
|
|
2179
|
+
if (u.length > b) {
|
|
2180
|
+
return 0;
|
|
2181
|
+
}
|
|
2182
|
+
A.set(u, a);
|
|
2183
|
+
return u.length - 1;
|
|
2184
|
+
};
|
|
2185
|
+
function Ib(a, b, c, d) {
|
|
2186
|
+
a || (a = this);
|
|
2187
|
+
this.parent = a;
|
|
2188
|
+
this.V = a.V;
|
|
2189
|
+
this.xa = null;
|
|
2190
|
+
this.id = Ab++;
|
|
2191
|
+
this.name = b;
|
|
2192
|
+
this.mode = c;
|
|
2193
|
+
this.j = {};
|
|
2194
|
+
this.m = {};
|
|
2195
|
+
this.ma = d;
|
|
2196
|
+
}
|
|
2197
|
+
Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
2198
|
+
return 365 === (this.mode & 365);
|
|
2199
|
+
}, set:function(a) {
|
|
2200
|
+
a ? this.mode |= 365 : this.mode &= -366;
|
|
2201
|
+
}}, write:{get:function() {
|
|
2202
|
+
return 146 === (this.mode & 146);
|
|
2203
|
+
}, set:function(a) {
|
|
2204
|
+
a ? this.mode |= 146 : this.mode &= -147;
|
|
2205
|
+
}}});
|
|
2206
|
+
Wb();
|
|
2207
|
+
Bb = Array(4096);
|
|
2208
|
+
Pb(T, "/");
|
|
2209
|
+
Qb("/tmp", 16895, 0);
|
|
2210
|
+
Qb("/home", 16895, 0);
|
|
2211
|
+
Qb("/home/web_user", 16895, 0);
|
|
2212
|
+
(() => {
|
|
2213
|
+
Qb("/dev", 16895, 0);
|
|
2214
|
+
nb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2215
|
+
Rb("/dev/null", 259);
|
|
2216
|
+
mb(1280, pb);
|
|
2217
|
+
mb(1536, qb);
|
|
2218
|
+
Rb("/dev/tty", 1280);
|
|
2219
|
+
Rb("/dev/tty1", 1536);
|
|
2220
|
+
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2221
|
+
0 === b && (b = db(a).byteLength);
|
|
2222
|
+
return a[--b];
|
|
2223
|
+
};
|
|
2224
|
+
dc("random", c);
|
|
2225
|
+
dc("urandom", c);
|
|
2226
|
+
Qb("/dev/shm", 16895, 0);
|
|
2227
|
+
Qb("/dev/shm/tmp", 16895, 0);
|
|
2228
|
+
})();
|
|
2229
|
+
(() => {
|
|
2230
|
+
Qb("/proc", 16895, 0);
|
|
2231
|
+
var a = Qb("/proc/self", 16895, 0);
|
|
2232
|
+
Qb("/proc/self/fd", 16895, 0);
|
|
2233
|
+
Pb({V:() => {
|
|
2234
|
+
var b = tb(a, "fd", 16895, 73);
|
|
2235
|
+
b.j = {ka:(c, d) => {
|
|
2236
|
+
var e = Mb(+d);
|
|
2237
|
+
c = {parent:null, V:{nb:"fake"}, j:{na:() => e.path},};
|
|
2238
|
+
return c.parent = c;
|
|
2239
|
+
}};
|
|
2240
|
+
return b;
|
|
2241
|
+
}}, "/proc/self/fd");
|
|
2242
|
+
})();
|
|
2243
|
+
Object.assign(jc.prototype, {get(a) {
|
|
2244
|
+
return this.M[a];
|
|
2245
|
+
}, has(a) {
|
|
2246
|
+
return void 0 !== this.M[a];
|
|
2247
|
+
}, qa(a) {
|
|
2248
|
+
var b = this.hb.pop() || this.M.length;
|
|
2249
|
+
this.M[b] = a;
|
|
2250
|
+
return b;
|
|
2251
|
+
}, ec(a) {
|
|
2252
|
+
this.M[a] = void 0;
|
|
2253
|
+
this.hb.push(a);
|
|
2254
|
+
}});
|
|
2255
|
+
lc = p.BindingError = class extends Error {
|
|
2256
|
+
constructor(a) {
|
|
2257
|
+
super(a);
|
|
2258
|
+
this.name = "BindingError";
|
|
2259
|
+
}
|
|
2260
|
+
};
|
|
2261
|
+
kc.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2262
|
+
kc.h = kc.M.length;
|
|
2263
|
+
p.count_emval_handles = function() {
|
|
2264
|
+
for (var a = 0, b = kc.h; b < kc.M.length; ++b) {
|
|
2265
|
+
void 0 !== kc.M[b] && ++a;
|
|
2266
|
+
}
|
|
2267
|
+
return a;
|
|
2268
|
+
};
|
|
2269
|
+
pc = p.PureVirtualError = oc("PureVirtualError");
|
|
2270
|
+
for (var Nd = Array(256), Od = 0; 256 > Od; ++Od) {
|
|
2271
|
+
Nd[Od] = String.fromCharCode(Od);
|
|
2272
|
+
}
|
|
2273
|
+
qc = Nd;
|
|
2274
|
+
p.getInheritedInstanceCount = function() {
|
|
2275
|
+
return Object.keys(uc).length;
|
|
2276
|
+
};
|
|
2277
|
+
p.getLiveInheritedInstances = function() {
|
|
2278
|
+
var a = [], b;
|
|
2279
|
+
for (b in uc) {
|
|
2280
|
+
uc.hasOwnProperty(b) && a.push(uc[b]);
|
|
2281
|
+
}
|
|
2282
|
+
return a;
|
|
2283
|
+
};
|
|
2284
|
+
p.flushPendingDeletes = sc;
|
|
2285
|
+
p.setDelayFunction = function(a) {
|
|
2286
|
+
tc = a;
|
|
2287
|
+
rc.length && tc && tc(sc);
|
|
2288
|
+
};
|
|
2289
|
+
Hc = p.InternalError = class extends Error {
|
|
2290
|
+
constructor(a) {
|
|
2291
|
+
super(a);
|
|
2292
|
+
this.name = "InternalError";
|
|
2293
|
+
}
|
|
2294
|
+
};
|
|
2295
|
+
Uc.prototype.isAliasOf = function(a) {
|
|
2296
|
+
if (!(this instanceof Uc && a instanceof Uc)) {
|
|
2297
|
+
return !1;
|
|
2298
|
+
}
|
|
2299
|
+
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
2300
|
+
for (a = a.g.o; b.A;) {
|
|
2301
|
+
c = b.oa(c), b = b.A;
|
|
2302
|
+
}
|
|
2303
|
+
for (; d.A;) {
|
|
2304
|
+
a = d.oa(a), d = d.A;
|
|
2305
|
+
}
|
|
2306
|
+
return b === d && c === a;
|
|
2307
|
+
};
|
|
2308
|
+
Uc.prototype.clone = function() {
|
|
2309
|
+
this.g.o || Tc(this);
|
|
2310
|
+
if (this.g.ia) {
|
|
2311
|
+
return this.g.count.value += 1, this;
|
|
2312
|
+
}
|
|
2313
|
+
var a = Kc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2314
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2315
|
+
a.g.count.value += 1;
|
|
2316
|
+
a.g.fa = !1;
|
|
2317
|
+
return a;
|
|
2318
|
+
};
|
|
2319
|
+
Uc.prototype["delete"] = function() {
|
|
2320
|
+
this.g.o || Tc(this);
|
|
2321
|
+
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2322
|
+
Bc(this);
|
|
2323
|
+
Dc(this.g);
|
|
2324
|
+
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
2325
|
+
};
|
|
2326
|
+
Uc.prototype.isDeleted = function() {
|
|
2327
|
+
return !this.g.o;
|
|
2328
|
+
};
|
|
2329
|
+
Uc.prototype.deleteLater = function() {
|
|
2330
|
+
this.g.o || Tc(this);
|
|
2331
|
+
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2332
|
+
rc.push(this);
|
|
2333
|
+
1 === rc.length && tc && tc(sc);
|
|
2334
|
+
this.g.fa = !0;
|
|
2335
|
+
return this;
|
|
2336
|
+
};
|
|
2337
|
+
cd.prototype.$b = function(a) {
|
|
2338
|
+
this.sb && (a = this.sb(a));
|
|
2339
|
+
return a;
|
|
2340
|
+
};
|
|
2341
|
+
cd.prototype.bb = function(a) {
|
|
2342
|
+
this.X && this.X(a);
|
|
2343
|
+
};
|
|
2344
|
+
cd.prototype.argPackAdvance = 8;
|
|
2345
|
+
cd.prototype.readValueFromPointer = Nc;
|
|
2346
|
+
cd.prototype.deleteObject = function(a) {
|
|
2347
|
+
if (null !== a) {
|
|
2348
|
+
a["delete"]();
|
|
2349
|
+
}
|
|
2350
|
+
};
|
|
2351
|
+
cd.prototype.fromWireType = function(a) {
|
|
2352
|
+
function b() {
|
|
2353
|
+
return this.va ? Jc(this.i.O, {u:this.vc, o:c, L:this, G:a,}) : Jc(this.i.O, {u:this, o:a,});
|
|
2354
|
+
}
|
|
2355
|
+
var c = this.$b(a);
|
|
2356
|
+
if (!c) {
|
|
2357
|
+
return this.bb(a), null;
|
|
2358
|
+
}
|
|
2359
|
+
var d = Gc(this.i, c);
|
|
2360
|
+
if (void 0 !== d) {
|
|
2361
|
+
if (0 === d.g.count.value) {
|
|
2362
|
+
return d.g.o = c, d.g.G = a, d.clone();
|
|
2363
|
+
}
|
|
2364
|
+
d = d.clone();
|
|
2365
|
+
this.bb(a);
|
|
2366
|
+
return d;
|
|
2367
|
+
}
|
|
2368
|
+
d = this.i.Zb(c);
|
|
2369
|
+
d = Fc[d];
|
|
2370
|
+
if (!d) {
|
|
2371
|
+
return b.call(this);
|
|
2372
|
+
}
|
|
2373
|
+
d = this.ua ? d.Nb : d.pointerType;
|
|
2374
|
+
var e = Ec(c, this.i, d.i);
|
|
2375
|
+
return null === e ? b.call(this) : this.va ? Jc(d.i.O, {u:d, o:e, L:this, G:a,}) : Jc(d.i.O, {u:d, o:e,});
|
|
2376
|
+
};
|
|
2377
|
+
hd = p.UnboundTypeError = oc("UnboundTypeError");
|
|
2378
|
+
var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
2379
|
+
fc = c;
|
|
2380
|
+
try {
|
|
2381
|
+
var d = Mb(a);
|
|
2382
|
+
switch(b) {
|
|
2383
|
+
case 0:
|
|
2384
|
+
var e = gc();
|
|
2385
|
+
return 0 > e ? -28 : Ob(d, e).Z;
|
|
2386
|
+
case 1:
|
|
2387
|
+
case 2:
|
|
2388
|
+
return 0;
|
|
2389
|
+
case 3:
|
|
2390
|
+
return d.flags;
|
|
2391
|
+
case 4:
|
|
2392
|
+
return e = gc(), d.flags |= e, 0;
|
|
2393
|
+
case 5:
|
|
2394
|
+
return e = gc(), Ba[e + 0 >> 1] = 2, 0;
|
|
2395
|
+
case 6:
|
|
2396
|
+
case 7:
|
|
2397
|
+
return 0;
|
|
2398
|
+
case 16:
|
|
2399
|
+
case 8:
|
|
2400
|
+
return -28;
|
|
2401
|
+
case 9:
|
|
2402
|
+
return F[Pd() >> 2] = 28, -1;
|
|
2403
|
+
default:
|
|
2404
|
+
return -28;
|
|
2405
|
+
}
|
|
2406
|
+
} catch (f) {
|
|
2407
|
+
if ("undefined" == typeof ec || "ErrnoError" !== f.name) {
|
|
2408
|
+
throw f;
|
|
2409
|
+
}
|
|
2410
|
+
return -f.Y;
|
|
2411
|
+
}
|
|
2412
|
+
}, __syscall_fstat64:function(a, b) {
|
|
2413
|
+
try {
|
|
2414
|
+
a: {
|
|
2415
|
+
var c = Mb(a).path;
|
|
2416
|
+
try {
|
|
2417
|
+
var d = Eb(c, {Ma:!0}).node;
|
|
2418
|
+
if (!d) {
|
|
2419
|
+
throw new Q(44);
|
|
2420
|
+
}
|
|
2421
|
+
if (!d.j.N) {
|
|
2422
|
+
throw new Q(63);
|
|
2423
|
+
}
|
|
2424
|
+
var e = d.j.N(d);
|
|
2425
|
+
} catch (l) {
|
|
2426
|
+
if (l && l.node && $a(c) !== $a(Fb(l.node))) {
|
|
2427
|
+
var f = -54;
|
|
2428
|
+
break a;
|
|
2429
|
+
}
|
|
2430
|
+
throw l;
|
|
2431
|
+
}
|
|
2432
|
+
F[b >> 2] = e.Sb;
|
|
2433
|
+
F[b + 4 >> 2] = e.mode;
|
|
2434
|
+
G[b + 8 >> 2] = e.uc;
|
|
2435
|
+
F[b + 12 >> 2] = e.uid;
|
|
2436
|
+
F[b + 16 >> 2] = e.dc;
|
|
2437
|
+
F[b + 20 >> 2] = e.ma;
|
|
2438
|
+
P = [e.size >>> 0, (N = e.size, 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2439
|
+
F[b + 24 >> 2] = P[0];
|
|
2440
|
+
F[b + 28 >> 2] = P[1];
|
|
2441
|
+
F[b + 32 >> 2] = 4096;
|
|
2442
|
+
F[b + 36 >> 2] = e.Mb;
|
|
2443
|
+
var g = e.Kb.getTime(), m = e.rc.getTime(), n = e.Pb.getTime();
|
|
2444
|
+
P = [Math.floor(g / 1000) >>> 0, (N = Math.floor(g / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2445
|
+
F[b + 40 >> 2] = P[0];
|
|
2446
|
+
F[b + 44 >> 2] = P[1];
|
|
2447
|
+
G[b + 48 >> 2] = g % 1000 * 1000;
|
|
2448
|
+
P = [Math.floor(m / 1000) >>> 0, (N = Math.floor(m / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2449
|
+
F[b + 56 >> 2] = P[0];
|
|
2450
|
+
F[b + 60 >> 2] = P[1];
|
|
2451
|
+
G[b + 64 >> 2] = m % 1000 * 1000;
|
|
2452
|
+
P = [Math.floor(n / 1000) >>> 0, (N = Math.floor(n / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2453
|
+
F[b + 72 >> 2] = P[0];
|
|
2454
|
+
F[b + 76 >> 2] = P[1];
|
|
2455
|
+
G[b + 80 >> 2] = n % 1000 * 1000;
|
|
2456
|
+
P = [e.kb >>> 0, (N = e.kb, 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2457
|
+
F[b + 88 >> 2] = P[0];
|
|
2458
|
+
F[b + 92 >> 2] = P[1];
|
|
2459
|
+
f = 0;
|
|
2460
|
+
}
|
|
2461
|
+
return f;
|
|
2462
|
+
} catch (l) {
|
|
2463
|
+
if ("undefined" == typeof ec || "ErrnoError" !== l.name) {
|
|
2464
|
+
throw l;
|
|
2465
|
+
}
|
|
2466
|
+
return -l.Y;
|
|
2467
|
+
}
|
|
2468
|
+
}, __syscall_ioctl:function(a, b, c) {
|
|
2469
|
+
fc = c;
|
|
2470
|
+
try {
|
|
2471
|
+
var d = Mb(a);
|
|
2472
|
+
switch(b) {
|
|
2473
|
+
case 21509:
|
|
2474
|
+
return d.s ? 0 : -59;
|
|
2475
|
+
case 21505:
|
|
2476
|
+
if (!d.s) {
|
|
2477
|
+
return -59;
|
|
2478
|
+
}
|
|
2479
|
+
if (d.s.W.ic) {
|
|
2480
|
+
b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
|
|
2481
|
+
var e = gc();
|
|
2482
|
+
F[e >> 2] = 25856;
|
|
2483
|
+
F[e + 4 >> 2] = 5;
|
|
2484
|
+
F[e + 8 >> 2] = 191;
|
|
2485
|
+
F[e + 12 >> 2] = 35387;
|
|
2486
|
+
for (var f = 0; 32 > f; f++) {
|
|
2487
|
+
A[e + f + 17 >> 0] = b[f] || 0;
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
return 0;
|
|
2491
|
+
case 21510:
|
|
2492
|
+
case 21511:
|
|
2493
|
+
case 21512:
|
|
2494
|
+
return d.s ? 0 : -59;
|
|
2495
|
+
case 21506:
|
|
2496
|
+
case 21507:
|
|
2497
|
+
case 21508:
|
|
2498
|
+
if (!d.s) {
|
|
2499
|
+
return -59;
|
|
2500
|
+
}
|
|
2501
|
+
if (d.s.W.jc) {
|
|
2502
|
+
for (e = gc(), b = [], f = 0; 32 > f; f++) {
|
|
2503
|
+
b.push(A[e + f + 17 >> 0]);
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
return 0;
|
|
2507
|
+
case 21519:
|
|
2508
|
+
if (!d.s) {
|
|
2509
|
+
return -59;
|
|
2510
|
+
}
|
|
2511
|
+
e = gc();
|
|
2512
|
+
return F[e >> 2] = 0;
|
|
2513
|
+
case 21520:
|
|
2514
|
+
return d.s ? -28 : -59;
|
|
2515
|
+
case 21531:
|
|
2516
|
+
e = gc();
|
|
2517
|
+
if (!d.m.hc) {
|
|
2518
|
+
throw new Q(59);
|
|
2519
|
+
}
|
|
2520
|
+
return d.m.hc(d, b, e);
|
|
2521
|
+
case 21523:
|
|
2522
|
+
if (!d.s) {
|
|
2523
|
+
return -59;
|
|
2524
|
+
}
|
|
2525
|
+
d.s.W.kc && (f = [24, 80], e = gc(), Ba[e >> 1] = f[0], Ba[e + 2 >> 1] = f[1]);
|
|
2526
|
+
return 0;
|
|
2527
|
+
case 21524:
|
|
2528
|
+
return d.s ? 0 : -59;
|
|
2529
|
+
case 21515:
|
|
2530
|
+
return d.s ? 0 : -59;
|
|
2531
|
+
default:
|
|
2532
|
+
return -28;
|
|
2533
|
+
}
|
|
2534
|
+
} catch (g) {
|
|
2535
|
+
if ("undefined" == typeof ec || "ErrnoError" !== g.name) {
|
|
2536
|
+
throw g;
|
|
2537
|
+
}
|
|
2538
|
+
return -g.Y;
|
|
2539
|
+
}
|
|
2540
|
+
}, __syscall_openat:function(a, b, c, d) {
|
|
2541
|
+
fc = d;
|
|
2542
|
+
try {
|
|
2543
|
+
b = b ? gb(C, b) : "";
|
|
2544
|
+
var e = b;
|
|
2545
|
+
if ("/" === e.charAt(0)) {
|
|
2546
|
+
b = e;
|
|
2547
|
+
} else {
|
|
2548
|
+
var f = -100 === a ? "/" : Mb(a).path;
|
|
2549
|
+
if (0 == e.length) {
|
|
2550
|
+
throw new Q(44);
|
|
2551
|
+
}
|
|
2552
|
+
b = $a(f + "/" + e);
|
|
2553
|
+
}
|
|
2554
|
+
var g = d ? gc() : 0;
|
|
2555
|
+
return Ub(b, c, g).Z;
|
|
2556
|
+
} catch (m) {
|
|
2557
|
+
if ("undefined" == typeof ec || "ErrnoError" !== m.name) {
|
|
2558
|
+
throw m;
|
|
2559
|
+
}
|
|
2560
|
+
return -m.Y;
|
|
2561
|
+
}
|
|
2562
|
+
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2563
|
+
a = W(a);
|
|
2564
|
+
b = Ac(b, "wrapper");
|
|
2565
|
+
c = mc(c);
|
|
2566
|
+
var d = [].slice, e = b.i, f = e.O, g = e.A.O, m = e.A.constructor;
|
|
2567
|
+
a = ic(a, function() {
|
|
2568
|
+
e.A.rb.forEach(function(l) {
|
|
2569
|
+
if (this[l] === g[l]) {
|
|
2570
|
+
throw new pc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2571
|
+
}
|
|
2572
|
+
}.bind(this));
|
|
2573
|
+
Object.defineProperty(this, "__parent", {value:f});
|
|
2574
|
+
this.__construct.apply(this, d.call(arguments));
|
|
2575
|
+
});
|
|
2576
|
+
f.__construct = function() {
|
|
2577
|
+
this === f && U("Pass correct 'this' to __construct");
|
|
2578
|
+
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2579
|
+
Bc(l);
|
|
2580
|
+
var u = l.g;
|
|
2581
|
+
l.notifyOnDestruction();
|
|
2582
|
+
u.ia = !0;
|
|
2583
|
+
Object.defineProperties(this, {g:{value:u}});
|
|
2584
|
+
Kc(this);
|
|
2585
|
+
l = u.o;
|
|
2586
|
+
l = vc(e, l);
|
|
2587
|
+
uc.hasOwnProperty(l) ? U(`Tried to register registered instance: ${l}`) : uc[l] = this;
|
|
2588
|
+
};
|
|
2589
|
+
f.__destruct = function() {
|
|
2590
|
+
this === f && U("Pass correct 'this' to __destruct");
|
|
2591
|
+
Bc(this);
|
|
2592
|
+
var l = this.g.o;
|
|
2593
|
+
l = vc(e, l);
|
|
2594
|
+
uc.hasOwnProperty(l) ? delete uc[l] : U(`Tried to unregister unregistered instance: ${l}`);
|
|
2595
|
+
};
|
|
2596
|
+
a.prototype = Object.create(f);
|
|
2597
|
+
for (var n in c) {
|
|
2598
|
+
a.prototype[n] = c[n];
|
|
2599
|
+
}
|
|
2600
|
+
return nc(a);
|
|
2601
|
+
}, _embind_finalize_value_object:function(a) {
|
|
2602
|
+
var b = Lc[a];
|
|
2603
|
+
delete Lc[a];
|
|
2604
|
+
var c = b.Qa, d = b.X, e = b.fb, f = e.map(g => g.cc).concat(e.map(g => g.zc));
|
|
2605
|
+
X([a], f, g => {
|
|
2606
|
+
var m = {};
|
|
2607
|
+
e.forEach((n, l) => {
|
|
2608
|
+
var u = g[l], v = n.ac, y = n.bc, k = g[l + e.length], t = n.yc, r = n.Ac;
|
|
2609
|
+
m[n.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
|
|
2610
|
+
var w = [];
|
|
2611
|
+
t(r, B, k.toWireType(w, E));
|
|
2612
|
+
Mc(w);
|
|
2613
|
+
}};
|
|
2614
|
+
});
|
|
2615
|
+
return [{name:b.name, fromWireType:function(n) {
|
|
2616
|
+
var l = {}, u;
|
|
2617
|
+
for (u in m) {
|
|
2618
|
+
l[u] = m[u].read(n);
|
|
2619
|
+
}
|
|
2620
|
+
d(n);
|
|
2621
|
+
return l;
|
|
2622
|
+
}, toWireType:function(n, l) {
|
|
2623
|
+
for (var u in m) {
|
|
2624
|
+
if (!(u in l)) {
|
|
2625
|
+
throw new TypeError(`Missing field: "${u}"`);
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
var v = c();
|
|
2629
|
+
for (u in m) {
|
|
2630
|
+
m[u].write(v, l[u]);
|
|
2631
|
+
}
|
|
2632
|
+
null !== n && n.push(d, v);
|
|
2633
|
+
return v;
|
|
2634
|
+
}, argPackAdvance:8, readValueFromPointer:Nc, K:d,}];
|
|
2635
|
+
});
|
|
2636
|
+
}, _embind_register_bigint:function() {
|
|
2637
|
+
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2638
|
+
var f = Rc(c);
|
|
2639
|
+
b = W(b);
|
|
2640
|
+
Qc(a, {name:b, fromWireType:function(g) {
|
|
2641
|
+
return !!g;
|
|
2642
|
+
}, toWireType:function(g, m) {
|
|
2643
|
+
return m ? d : e;
|
|
2644
|
+
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2645
|
+
if (1 === c) {
|
|
2646
|
+
var m = A;
|
|
2647
|
+
} else if (2 === c) {
|
|
2648
|
+
m = Ba;
|
|
2649
|
+
} else if (4 === c) {
|
|
2650
|
+
m = F;
|
|
2651
|
+
} else {
|
|
2652
|
+
throw new TypeError("Unknown boolean type size: " + b);
|
|
2653
|
+
}
|
|
2654
|
+
return this.fromWireType(m[g >> f]);
|
|
2655
|
+
}, K:null,});
|
|
2656
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, m, n, l, u, v, y) {
|
|
2657
|
+
u = W(u);
|
|
2658
|
+
f = Y(e, f);
|
|
2659
|
+
m && (m = Y(g, m));
|
|
2660
|
+
l && (l = Y(n, l));
|
|
2661
|
+
y = Y(v, y);
|
|
2662
|
+
var k = hc(u);
|
|
2663
|
+
Wc(k, function() {
|
|
2664
|
+
jd(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2665
|
+
});
|
|
2666
|
+
X([a, b, c], d ? [d] : [], function(t) {
|
|
2667
|
+
t = t[0];
|
|
2668
|
+
if (d) {
|
|
2669
|
+
var r = t.i;
|
|
2670
|
+
var B = r.O;
|
|
2671
|
+
} else {
|
|
2672
|
+
B = Uc.prototype;
|
|
2673
|
+
}
|
|
2674
|
+
t = ic(k, function() {
|
|
2675
|
+
if (Object.getPrototypeOf(this) !== E) {
|
|
2676
|
+
throw new lc("Use 'new' to construct " + u);
|
|
2677
|
+
}
|
|
2678
|
+
if (void 0 === w.aa) {
|
|
2679
|
+
throw new lc(u + " has no accessible constructor");
|
|
2680
|
+
}
|
|
2681
|
+
var V = w.aa[arguments.length];
|
|
2682
|
+
if (void 0 === V) {
|
|
2683
|
+
throw new lc(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(w.aa).toString()}) parameters instead!`);
|
|
2684
|
+
}
|
|
2685
|
+
return V.apply(this, arguments);
|
|
2686
|
+
});
|
|
2687
|
+
var E = Object.create(B, {constructor:{value:t},});
|
|
2688
|
+
t.prototype = E;
|
|
2689
|
+
var w = new Xc(u, t, E, y, r, f, m, l);
|
|
2690
|
+
w.A && (void 0 === w.A.pa && (w.A.pa = []), w.A.pa.push(w));
|
|
2691
|
+
r = new cd(u, w, !0, !1);
|
|
2692
|
+
B = new cd(u + "*", w, !1, !1);
|
|
2693
|
+
var O = new cd(u + " const*", w, !1, !0);
|
|
2694
|
+
Fc[a] = {pointerType:B, Nb:O};
|
|
2695
|
+
dd(k, t);
|
|
2696
|
+
return [r, B, O];
|
|
2697
|
+
});
|
|
2698
|
+
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2699
|
+
var m = ld(c, d);
|
|
2700
|
+
b = W(b);
|
|
2701
|
+
f = Y(e, f);
|
|
2702
|
+
X([], [a], function(n) {
|
|
2703
|
+
function l() {
|
|
2704
|
+
jd(`Cannot call ${u} due to unbound types`, m);
|
|
2705
|
+
}
|
|
2706
|
+
n = n[0];
|
|
2707
|
+
var u = `${n.name}.${b}`;
|
|
2708
|
+
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2709
|
+
var v = n.i.constructor;
|
|
2710
|
+
void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : (Vc(v, b, u), v[b].B[c - 1] = l);
|
|
2711
|
+
X([], m, function(y) {
|
|
2712
|
+
y = kd(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2713
|
+
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2714
|
+
if (n.i.pa) {
|
|
2715
|
+
for (const k of n.i.pa) {
|
|
2716
|
+
k.constructor.hasOwnProperty(b) || (k.constructor[b] = y);
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
return [];
|
|
2720
|
+
});
|
|
2721
|
+
return [];
|
|
2722
|
+
});
|
|
2723
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2724
|
+
b = W(b);
|
|
2725
|
+
f = Y(e, f);
|
|
2726
|
+
X([], [a], function(n) {
|
|
2727
|
+
n = n[0];
|
|
2728
|
+
var l = `${n.name}.${b}`, u = {get() {
|
|
2729
|
+
jd(`Cannot access ${l} due to unbound types`, [c]);
|
|
2730
|
+
}, enumerable:!0, configurable:!0};
|
|
2731
|
+
u.set = m ? () => {
|
|
2732
|
+
jd(`Cannot access ${l} due to unbound types`, [c]);
|
|
2733
|
+
} : () => {
|
|
2734
|
+
U(`${l} is a read-only property`);
|
|
2735
|
+
};
|
|
2736
|
+
Object.defineProperty(n.i.constructor, b, u);
|
|
2737
|
+
X([], [c], function(v) {
|
|
2738
|
+
v = v[0];
|
|
2739
|
+
var y = {get() {
|
|
2740
|
+
return v.fromWireType(f(d));
|
|
2741
|
+
}, enumerable:!0};
|
|
2742
|
+
m && (m = Y(g, m), y.set = k => {
|
|
2743
|
+
var t = [];
|
|
2744
|
+
m(d, v.toWireType(t, k));
|
|
2745
|
+
Mc(t);
|
|
2746
|
+
});
|
|
2747
|
+
Object.defineProperty(n.i.constructor, b, y);
|
|
2748
|
+
return [];
|
|
2749
|
+
});
|
|
2750
|
+
return [];
|
|
2751
|
+
});
|
|
2752
|
+
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2753
|
+
var g = ld(b, c);
|
|
2754
|
+
e = Y(d, e);
|
|
2755
|
+
X([], [a], function(m) {
|
|
2756
|
+
m = m[0];
|
|
2757
|
+
var n = `constructor ${m.name}`;
|
|
2758
|
+
void 0 === m.i.aa && (m.i.aa = []);
|
|
2759
|
+
if (void 0 !== m.i.aa[b - 1]) {
|
|
2760
|
+
throw new lc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2761
|
+
}
|
|
2762
|
+
m.i.aa[b - 1] = () => {
|
|
2763
|
+
jd(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2764
|
+
};
|
|
2765
|
+
X([], g, function(l) {
|
|
2766
|
+
l.splice(1, 0, null);
|
|
2767
|
+
m.i.aa[b - 1] = kd(n, l, null, e, f);
|
|
2768
|
+
return [];
|
|
2769
|
+
});
|
|
2770
|
+
return [];
|
|
2771
|
+
});
|
|
2772
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2773
|
+
var n = ld(c, d);
|
|
2774
|
+
b = W(b);
|
|
2775
|
+
f = Y(e, f);
|
|
2776
|
+
X([], [a], function(l) {
|
|
2777
|
+
function u() {
|
|
2778
|
+
jd(`Cannot call ${v} due to unbound types`, n);
|
|
2779
|
+
}
|
|
2780
|
+
l = l[0];
|
|
2781
|
+
var v = `${l.name}.${b}`;
|
|
2782
|
+
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2783
|
+
m && l.i.rb.push(b);
|
|
2784
|
+
var y = l.i.O, k = y[b];
|
|
2785
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : (Vc(y, b, v), y[b].B[c - 2] = u);
|
|
2786
|
+
X([], n, function(t) {
|
|
2787
|
+
t = kd(v, t, l, f, g);
|
|
2788
|
+
void 0 === y[b].B ? (t.ea = c - 2, y[b] = t) : y[b].B[c - 2] = t;
|
|
2789
|
+
return [];
|
|
2790
|
+
});
|
|
2791
|
+
return [];
|
|
2792
|
+
});
|
|
2793
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, n, l) {
|
|
2794
|
+
b = W(b);
|
|
2795
|
+
e = Y(d, e);
|
|
2796
|
+
X([], [a], function(u) {
|
|
2797
|
+
u = u[0];
|
|
2798
|
+
var v = `${u.name}.${b}`, y = {get() {
|
|
2799
|
+
jd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2800
|
+
}, enumerable:!0, configurable:!0};
|
|
2801
|
+
y.set = n ? () => {
|
|
2802
|
+
jd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2803
|
+
} : () => {
|
|
2804
|
+
U(v + " is a read-only property");
|
|
2805
|
+
};
|
|
2806
|
+
Object.defineProperty(u.i.O, b, y);
|
|
2807
|
+
X([], n ? [c, g] : [c], function(k) {
|
|
2808
|
+
var t = k[0], r = {get() {
|
|
2809
|
+
var E = nd(this, u, v + " getter");
|
|
2810
|
+
return t.fromWireType(e(f, E));
|
|
2811
|
+
}, enumerable:!0};
|
|
2812
|
+
if (n) {
|
|
2813
|
+
n = Y(m, n);
|
|
2814
|
+
var B = k[1];
|
|
2815
|
+
r.set = function(E) {
|
|
2816
|
+
var w = nd(this, u, v + " setter"), O = [];
|
|
2817
|
+
n(l, w, B.toWireType(O, E));
|
|
2818
|
+
Mc(O);
|
|
2819
|
+
};
|
|
2820
|
+
}
|
|
2821
|
+
Object.defineProperty(u.i.O, b, r);
|
|
2822
|
+
return [];
|
|
2823
|
+
});
|
|
2824
|
+
return [];
|
|
2825
|
+
});
|
|
2826
|
+
}, _embind_register_emval:function(a, b) {
|
|
2827
|
+
b = W(b);
|
|
2828
|
+
Qc(a, {name:b, fromWireType:function(c) {
|
|
2829
|
+
var d = mc(c);
|
|
2830
|
+
od(c);
|
|
2831
|
+
return d;
|
|
2832
|
+
}, toWireType:function(c, d) {
|
|
2833
|
+
return nc(d);
|
|
2834
|
+
}, argPackAdvance:8, readValueFromPointer:Nc, K:null,});
|
|
2835
|
+
}, _embind_register_enum:function(a, b, c, d) {
|
|
2836
|
+
function e() {
|
|
2837
|
+
}
|
|
2838
|
+
c = Rc(c);
|
|
2839
|
+
b = W(b);
|
|
2840
|
+
e.values = {};
|
|
2841
|
+
Qc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2842
|
+
return this.constructor.values[f];
|
|
2843
|
+
}, toWireType:function(f, g) {
|
|
2844
|
+
return g.value;
|
|
2845
|
+
}, argPackAdvance:8, readValueFromPointer:pd(b, c, d), K:null,});
|
|
2846
|
+
Wc(b, e);
|
|
2847
|
+
}, _embind_register_enum_value:function(a, b, c) {
|
|
2848
|
+
var d = Ac(a, "enum");
|
|
2849
|
+
b = W(b);
|
|
2850
|
+
a = d.constructor;
|
|
2851
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:ic(`${d.name}_${b}`, function() {
|
|
2852
|
+
})},});
|
|
2853
|
+
a.values[c] = d;
|
|
2854
|
+
a[b] = d;
|
|
2855
|
+
}, _embind_register_float:function(a, b, c) {
|
|
2856
|
+
c = Rc(c);
|
|
2857
|
+
b = W(b);
|
|
2858
|
+
Qc(a, {name:b, fromWireType:function(d) {
|
|
2859
|
+
return d;
|
|
2860
|
+
}, toWireType:function(d, e) {
|
|
2861
|
+
return e;
|
|
2862
|
+
}, argPackAdvance:8, readValueFromPointer:qd(b, c), K:null,});
|
|
2863
|
+
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2864
|
+
var g = ld(b, c);
|
|
2865
|
+
a = W(a);
|
|
2866
|
+
e = Y(d, e);
|
|
2867
|
+
Wc(a, function() {
|
|
2868
|
+
jd(`Cannot call ${a} due to unbound types`, g);
|
|
2869
|
+
}, b - 1);
|
|
2870
|
+
X([], g, function(m) {
|
|
2871
|
+
dd(a, kd(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2872
|
+
return [];
|
|
2873
|
+
});
|
|
2874
|
+
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2875
|
+
b = W(b);
|
|
2876
|
+
-1 === e && (e = 4294967295);
|
|
2877
|
+
e = Rc(c);
|
|
2878
|
+
var f = m => m;
|
|
2879
|
+
if (0 === d) {
|
|
2880
|
+
var g = 32 - 8 * c;
|
|
2881
|
+
f = m => m << g >>> g;
|
|
2882
|
+
}
|
|
2883
|
+
c = b.includes("unsigned") ? function(m, n) {
|
|
2884
|
+
return n >>> 0;
|
|
2885
|
+
} : function(m, n) {
|
|
2886
|
+
return n;
|
|
2887
|
+
};
|
|
2888
|
+
Qc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:rd(b, e, 0 !== d), K:null,});
|
|
2889
|
+
}, _embind_register_memory_view:function(a, b, c) {
|
|
2890
|
+
function d(f) {
|
|
2891
|
+
f >>= 2;
|
|
2892
|
+
var g = G;
|
|
2893
|
+
return new e(g.buffer, g[f + 1], g[f]);
|
|
2894
|
+
}
|
|
2895
|
+
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2896
|
+
c = W(c);
|
|
2897
|
+
Qc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {fc:!0,});
|
|
2898
|
+
}, _embind_register_std_string:function(a, b) {
|
|
2899
|
+
b = W(b);
|
|
2900
|
+
var c = "std::string" === b;
|
|
2901
|
+
Qc(a, {name:b, fromWireType:function(d) {
|
|
2902
|
+
var e = G[d >> 2], f = d + 4;
|
|
2903
|
+
if (c) {
|
|
2904
|
+
for (var g = f, m = 0; m <= e; ++m) {
|
|
2905
|
+
var n = f + m;
|
|
2906
|
+
if (m == e || 0 == C[n]) {
|
|
2907
|
+
g = g ? gb(C, g, n - g) : "";
|
|
2908
|
+
if (void 0 === l) {
|
|
2909
|
+
var l = g;
|
|
2910
|
+
} else {
|
|
2911
|
+
l += String.fromCharCode(0), l += g;
|
|
2912
|
+
}
|
|
2913
|
+
g = n + 1;
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
} else {
|
|
2917
|
+
l = Array(e);
|
|
2918
|
+
for (m = 0; m < e; ++m) {
|
|
2919
|
+
l[m] = String.fromCharCode(C[f + m]);
|
|
2920
|
+
}
|
|
2921
|
+
l = l.join("");
|
|
2922
|
+
}
|
|
2923
|
+
zc(d);
|
|
2924
|
+
return l;
|
|
2925
|
+
}, toWireType:function(d, e) {
|
|
2926
|
+
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2927
|
+
var f = "string" == typeof e;
|
|
2928
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
|
|
2929
|
+
var g = c && f ? ib(e) : e.length;
|
|
2930
|
+
var m = Qd(4 + g + 1), n = m + 4;
|
|
2931
|
+
G[m >> 2] = g;
|
|
2932
|
+
if (c && f) {
|
|
2933
|
+
jb(e, C, n, g + 1);
|
|
2934
|
+
} else {
|
|
2935
|
+
if (f) {
|
|
2936
|
+
for (f = 0; f < g; ++f) {
|
|
2937
|
+
var l = e.charCodeAt(f);
|
|
2938
|
+
255 < l && (zc(n), U("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2939
|
+
C[n + f] = l;
|
|
2940
|
+
}
|
|
2941
|
+
} else {
|
|
2942
|
+
for (f = 0; f < g; ++f) {
|
|
2943
|
+
C[n + f] = e[f];
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
null !== d && d.push(zc, m);
|
|
2948
|
+
return m;
|
|
2949
|
+
}, argPackAdvance:8, readValueFromPointer:Nc, K:function(d) {
|
|
2950
|
+
zc(d);
|
|
2951
|
+
},});
|
|
2952
|
+
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2953
|
+
c = W(c);
|
|
2954
|
+
if (2 === b) {
|
|
2955
|
+
var d = td;
|
|
2956
|
+
var e = ud;
|
|
2957
|
+
var f = vd;
|
|
2958
|
+
var g = () => Ca;
|
|
2959
|
+
var m = 1;
|
|
2960
|
+
} else {
|
|
2961
|
+
4 === b && (d = wd, e = xd, f = yd, g = () => G, m = 2);
|
|
2962
|
+
}
|
|
2963
|
+
Qc(a, {name:c, fromWireType:function(n) {
|
|
2964
|
+
for (var l = G[n >> 2], u = g(), v, y = n + 4, k = 0; k <= l; ++k) {
|
|
2965
|
+
var t = n + 4 + k * b;
|
|
2966
|
+
if (k == l || 0 == u[t >> m]) {
|
|
2967
|
+
y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
zc(n);
|
|
2971
|
+
return v;
|
|
2972
|
+
}, toWireType:function(n, l) {
|
|
2973
|
+
"string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
|
|
2974
|
+
var u = f(l), v = Qd(4 + u + b);
|
|
2975
|
+
G[v >> 2] = u >> m;
|
|
2976
|
+
e(l, v + 4, u + b);
|
|
2977
|
+
null !== n && n.push(zc, v);
|
|
2978
|
+
return v;
|
|
2979
|
+
}, argPackAdvance:8, readValueFromPointer:Nc, K:function(n) {
|
|
2980
|
+
zc(n);
|
|
2981
|
+
},});
|
|
2982
|
+
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2983
|
+
Lc[a] = {name:W(b), Qa:Y(c, d), X:Y(e, f), fb:[],};
|
|
2984
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, n, l) {
|
|
2985
|
+
Lc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(m, n), Ac:l,});
|
|
2986
|
+
}, _embind_register_void:function(a, b) {
|
|
2987
|
+
b = W(b);
|
|
2988
|
+
Qc(a, {mc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2989
|
+
}, toWireType:function() {
|
|
2990
|
+
},});
|
|
2991
|
+
}, _emval_as:function(a, b, c) {
|
|
2992
|
+
a = mc(a);
|
|
2993
|
+
b = Ac(b, "emval::as");
|
|
2994
|
+
var d = [], e = nc(d);
|
|
2995
|
+
G[c >> 2] = e;
|
|
2996
|
+
return b.toWireType(d, a);
|
|
2997
|
+
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2998
|
+
a = Bd[a];
|
|
2999
|
+
b = mc(b);
|
|
3000
|
+
c = Ad(c);
|
|
3001
|
+
var f = [];
|
|
3002
|
+
G[d >> 2] = nc(f);
|
|
3003
|
+
return a(b, c, f, e);
|
|
3004
|
+
}, _emval_call_void_method:function(a, b, c, d) {
|
|
3005
|
+
a = Bd[a];
|
|
3006
|
+
b = mc(b);
|
|
3007
|
+
c = Ad(c);
|
|
3008
|
+
a(b, c, null, d);
|
|
3009
|
+
}, _emval_decref:od, _emval_get_method_caller:function(a, b) {
|
|
3010
|
+
var c = Dd(a, b), d = c[0];
|
|
3011
|
+
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
3012
|
+
return g.name;
|
|
3013
|
+
}).join("_") + "$";
|
|
3014
|
+
var e = Ed[b];
|
|
3015
|
+
if (void 0 !== e) {
|
|
3016
|
+
return e;
|
|
3017
|
+
}
|
|
3018
|
+
var f = Array(a - 1);
|
|
3019
|
+
e = Cd((g, m, n, l) => {
|
|
3020
|
+
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
3021
|
+
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
3022
|
+
}
|
|
3023
|
+
g = g[m].apply(g, f);
|
|
3024
|
+
for (v = 0; v < a - 1; ++v) {
|
|
3025
|
+
c[v + 1].Rb && c[v + 1].Rb(f[v]);
|
|
3026
|
+
}
|
|
3027
|
+
if (!d.mc) {
|
|
3028
|
+
return d.toWireType(n, g);
|
|
3029
|
+
}
|
|
3030
|
+
});
|
|
3031
|
+
return Ed[b] = e;
|
|
3032
|
+
}, _emval_get_module_property:function(a) {
|
|
3033
|
+
a = Ad(a);
|
|
3034
|
+
return nc(p[a]);
|
|
3035
|
+
}, _emval_get_property:function(a, b) {
|
|
3036
|
+
a = mc(a);
|
|
3037
|
+
b = mc(b);
|
|
3038
|
+
return nc(a[b]);
|
|
3039
|
+
}, _emval_incref:function(a) {
|
|
3040
|
+
4 < a && (kc.get(a).ub += 1);
|
|
3041
|
+
}, _emval_new_cstring:function(a) {
|
|
3042
|
+
return nc(Ad(a));
|
|
3043
|
+
}, _emval_new_object:function() {
|
|
3044
|
+
return nc({});
|
|
3045
|
+
}, _emval_run_destructors:function(a) {
|
|
3046
|
+
var b = mc(a);
|
|
3047
|
+
Mc(b);
|
|
3048
|
+
od(a);
|
|
3049
|
+
}, _emval_set_property:function(a, b, c) {
|
|
3050
|
+
a = mc(a);
|
|
3051
|
+
b = mc(b);
|
|
3052
|
+
c = mc(c);
|
|
3053
|
+
a[b] = c;
|
|
3054
|
+
}, _emval_take_value:function(a, b) {
|
|
3055
|
+
a = Ac(a, "_emval_take_value");
|
|
3056
|
+
a = a.readValueFromPointer(b);
|
|
3057
|
+
return nc(a);
|
|
3058
|
+
}, abort:() => {
|
|
3059
|
+
ua("");
|
|
3060
|
+
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3061
|
+
Fd.length = 0;
|
|
3062
|
+
var d;
|
|
3063
|
+
for (c >>= 2; d = C[b++];) {
|
|
3064
|
+
c += 105 != d & c, Fd.push(105 == d ? F[c] : Ea[c++ >> 1]), ++c;
|
|
3065
|
+
}
|
|
3066
|
+
return Ya[a].apply(null, Fd);
|
|
3067
|
+
}, emscripten_memcpy_big:(a, b, c) => C.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
3068
|
+
var b = C.length;
|
|
3069
|
+
a >>>= 0;
|
|
3070
|
+
if (2147483648 < a) {
|
|
3071
|
+
return !1;
|
|
3072
|
+
}
|
|
3073
|
+
for (var c = 1; 4 >= c; c *= 2) {
|
|
3074
|
+
var d = b * (1 + 0.2 / c);
|
|
3075
|
+
d = Math.min(d, a + 100663296);
|
|
3076
|
+
var e = Math;
|
|
3077
|
+
d = Math.max(a, d);
|
|
3078
|
+
a: {
|
|
3079
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ya.buffer.byteLength + 65535 >>> 16;
|
|
3080
|
+
try {
|
|
3081
|
+
ya.grow(e);
|
|
3082
|
+
Fa();
|
|
3083
|
+
var f = 1;
|
|
3084
|
+
break a;
|
|
3085
|
+
} catch (g) {
|
|
3086
|
+
}
|
|
3087
|
+
f = void 0;
|
|
3088
|
+
}
|
|
3089
|
+
if (f) {
|
|
3090
|
+
return !0;
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
return !1;
|
|
3094
|
+
}, environ_get:(a, b) => {
|
|
3095
|
+
var c = 0;
|
|
3096
|
+
Id().forEach(function(d, e) {
|
|
3097
|
+
var f = b + c;
|
|
3098
|
+
e = G[a + 4 * e >> 2] = f;
|
|
3099
|
+
for (f = 0; f < d.length; ++f) {
|
|
3100
|
+
A[e++ >> 0] = d.charCodeAt(f);
|
|
3101
|
+
}
|
|
3102
|
+
A[e >> 0] = 0;
|
|
3103
|
+
c += d.length + 1;
|
|
3104
|
+
});
|
|
3105
|
+
return 0;
|
|
3106
|
+
}, environ_sizes_get:(a, b) => {
|
|
3107
|
+
var c = Id();
|
|
3108
|
+
G[a >> 2] = c.length;
|
|
3109
|
+
var d = 0;
|
|
3110
|
+
c.forEach(function(e) {
|
|
3111
|
+
d += e.length + 1;
|
|
3112
|
+
});
|
|
3113
|
+
G[b >> 2] = d;
|
|
3114
|
+
return 0;
|
|
3115
|
+
}, fd_close:function(a) {
|
|
3116
|
+
try {
|
|
3117
|
+
var b = Mb(a);
|
|
3118
|
+
if (null === b.Z) {
|
|
3119
|
+
throw new Q(8);
|
|
3120
|
+
}
|
|
3121
|
+
b.Na && (b.Na = null);
|
|
3122
|
+
try {
|
|
3123
|
+
b.m.close && b.m.close(b);
|
|
3124
|
+
} catch (c) {
|
|
3125
|
+
throw c;
|
|
3126
|
+
} finally {
|
|
3127
|
+
zb[b.Z] = null;
|
|
3128
|
+
}
|
|
3129
|
+
b.Z = null;
|
|
3130
|
+
return 0;
|
|
3131
|
+
} catch (c) {
|
|
3132
|
+
if ("undefined" == typeof ec || "ErrnoError" !== c.name) {
|
|
3133
|
+
throw c;
|
|
3134
|
+
}
|
|
3135
|
+
return c.Y;
|
|
3136
|
+
}
|
|
3137
|
+
}, fd_read:function(a, b, c, d) {
|
|
3138
|
+
try {
|
|
3139
|
+
a: {
|
|
3140
|
+
var e = Mb(a);
|
|
3141
|
+
a = b;
|
|
3142
|
+
for (var f, g = b = 0; g < c; g++) {
|
|
3143
|
+
var m = G[a >> 2], n = G[a + 4 >> 2];
|
|
3144
|
+
a += 8;
|
|
3145
|
+
var l = e, u = m, v = n, y = f, k = A;
|
|
3146
|
+
if (0 > v || 0 > y) {
|
|
3147
|
+
throw new Q(28);
|
|
3148
|
+
}
|
|
3149
|
+
if (null === l.Z) {
|
|
3150
|
+
throw new Q(8);
|
|
3151
|
+
}
|
|
3152
|
+
if (1 === (l.flags & 2097155)) {
|
|
3153
|
+
throw new Q(8);
|
|
3154
|
+
}
|
|
3155
|
+
if (16384 === (l.node.mode & 61440)) {
|
|
3156
|
+
throw new Q(31);
|
|
3157
|
+
}
|
|
3158
|
+
if (!l.m.read) {
|
|
3159
|
+
throw new Q(28);
|
|
3160
|
+
}
|
|
3161
|
+
var t = "undefined" != typeof y;
|
|
3162
|
+
if (!t) {
|
|
3163
|
+
y = l.position;
|
|
3164
|
+
} else if (!l.seekable) {
|
|
3165
|
+
throw new Q(70);
|
|
3166
|
+
}
|
|
3167
|
+
var r = l.m.read(l, k, u, v, y);
|
|
3168
|
+
t || (l.position += r);
|
|
3169
|
+
var B = r;
|
|
3170
|
+
if (0 > B) {
|
|
3171
|
+
var E = -1;
|
|
3172
|
+
break a;
|
|
3173
|
+
}
|
|
3174
|
+
b += B;
|
|
3175
|
+
if (B < n) {
|
|
3176
|
+
break;
|
|
3177
|
+
}
|
|
3178
|
+
"undefined" !== typeof f && (f += B);
|
|
3179
|
+
}
|
|
3180
|
+
E = b;
|
|
3181
|
+
}
|
|
3182
|
+
G[d >> 2] = E;
|
|
3183
|
+
return 0;
|
|
3184
|
+
} catch (w) {
|
|
3185
|
+
if ("undefined" == typeof ec || "ErrnoError" !== w.name) {
|
|
3186
|
+
throw w;
|
|
3187
|
+
}
|
|
3188
|
+
return w.Y;
|
|
3189
|
+
}
|
|
3190
|
+
}, fd_seek:function(a, b, c, d, e) {
|
|
3191
|
+
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
3192
|
+
try {
|
|
3193
|
+
if (isNaN(b)) {
|
|
3194
|
+
return 61;
|
|
3195
|
+
}
|
|
3196
|
+
var f = Mb(a);
|
|
3197
|
+
Vb(f, b, d);
|
|
3198
|
+
P = [f.position >>> 0, (N = f.position, 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3199
|
+
F[e >> 2] = P[0];
|
|
3200
|
+
F[e + 4 >> 2] = P[1];
|
|
3201
|
+
f.Na && 0 === b && 0 === d && (f.Na = null);
|
|
3202
|
+
return 0;
|
|
3203
|
+
} catch (g) {
|
|
3204
|
+
if ("undefined" == typeof ec || "ErrnoError" !== g.name) {
|
|
3205
|
+
throw g;
|
|
3206
|
+
}
|
|
3207
|
+
return g.Y;
|
|
3208
|
+
}
|
|
3209
|
+
}, fd_write:function(a, b, c, d) {
|
|
3210
|
+
try {
|
|
3211
|
+
a: {
|
|
3212
|
+
var e = Mb(a);
|
|
3213
|
+
a = b;
|
|
3214
|
+
for (var f, g = b = 0; g < c; g++) {
|
|
3215
|
+
var m = G[a >> 2], n = G[a + 4 >> 2];
|
|
3216
|
+
a += 8;
|
|
3217
|
+
var l = e, u = m, v = n, y = f, k = A;
|
|
3218
|
+
if (0 > v || 0 > y) {
|
|
3219
|
+
throw new Q(28);
|
|
3220
|
+
}
|
|
3221
|
+
if (null === l.Z) {
|
|
3222
|
+
throw new Q(8);
|
|
3223
|
+
}
|
|
3224
|
+
if (0 === (l.flags & 2097155)) {
|
|
3225
|
+
throw new Q(8);
|
|
3226
|
+
}
|
|
3227
|
+
if (16384 === (l.node.mode & 61440)) {
|
|
3228
|
+
throw new Q(31);
|
|
3229
|
+
}
|
|
3230
|
+
if (!l.m.write) {
|
|
3231
|
+
throw new Q(28);
|
|
3232
|
+
}
|
|
3233
|
+
l.seekable && l.flags & 1024 && Vb(l, 0, 2);
|
|
3234
|
+
var t = "undefined" != typeof y;
|
|
3235
|
+
if (!t) {
|
|
3236
|
+
y = l.position;
|
|
3237
|
+
} else if (!l.seekable) {
|
|
3238
|
+
throw new Q(70);
|
|
3239
|
+
}
|
|
3240
|
+
var r = l.m.write(l, k, u, v, y, void 0);
|
|
3241
|
+
t || (l.position += r);
|
|
3242
|
+
var B = r;
|
|
3243
|
+
if (0 > B) {
|
|
3244
|
+
var E = -1;
|
|
3245
|
+
break a;
|
|
3246
|
+
}
|
|
3247
|
+
b += B;
|
|
3248
|
+
"undefined" !== typeof f && (f += B);
|
|
3249
|
+
}
|
|
3250
|
+
E = b;
|
|
3251
|
+
}
|
|
3252
|
+
G[d >> 2] = E;
|
|
3253
|
+
return 0;
|
|
3254
|
+
} catch (w) {
|
|
3255
|
+
if ("undefined" == typeof ec || "ErrnoError" !== w.name) {
|
|
3256
|
+
throw w;
|
|
3257
|
+
}
|
|
3258
|
+
return w.Y;
|
|
3259
|
+
}
|
|
3260
|
+
}, strftime_l:(a, b, c, d) => Md(a, b, c, d)};
|
|
3261
|
+
(function() {
|
|
3262
|
+
var a = {env:Rd, wasi_snapshot_preview1:Rd,};
|
|
3263
|
+
Ma++;
|
|
3264
|
+
Ua(a, function(b) {
|
|
3265
|
+
x = b.instance.exports;
|
|
3266
|
+
ya = x.memory;
|
|
3267
|
+
Fa();
|
|
3268
|
+
Ia = x.__indirect_function_table;
|
|
3269
|
+
Ka.unshift(x.__wasm_call_ctors);
|
|
3270
|
+
Ma--;
|
|
3271
|
+
0 == Ma && (null !== Na && (clearInterval(Na), Na = null), Oa && (b = Oa, Oa = null, b()));
|
|
3272
|
+
}).catch(ba);
|
|
3273
|
+
return {};
|
|
3274
|
+
})();
|
|
3275
|
+
var zc = a => (zc = x.free)(a), Qd = a => (Qd = x.malloc)(a), Va = p._ma_device__on_notification_unlocked = a => (Va = p._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
|
|
3276
|
+
p._ma_malloc_emscripten = (a, b) => (p._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
|
|
3277
|
+
p._ma_free_emscripten = (a, b) => (p._ma_free_emscripten = x.ma_free_emscripten)(a, b);
|
|
3278
|
+
var Wa = p._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Wa = p._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Xa = p._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Xa = p._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Pd = () => (Pd = x.__errno_location)(), yc = a => (yc = x.__getTypeName)(a);
|
|
3279
|
+
p.__embind_initialize_bindings = () => (p.__embind_initialize_bindings = x._embind_initialize_bindings)();
|
|
3280
|
+
p.dynCall_iiji = (a, b, c, d, e) => (p.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
|
|
3281
|
+
p.dynCall_iiiji = (a, b, c, d, e, f) => (p.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3282
|
+
p.dynCall_jiji = (a, b, c, d, e) => (p.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
|
|
3283
|
+
p.dynCall_iij = (a, b, c, d) => (p.dynCall_iij = x.dynCall_iij)(a, b, c, d);
|
|
3284
|
+
p.dynCall_jii = (a, b, c) => (p.dynCall_jii = x.dynCall_jii)(a, b, c);
|
|
3285
|
+
p.dynCall_viijii = (a, b, c, d, e, f, g) => (p.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3286
|
+
p.dynCall_iiiiij = (a, b, c, d, e, f, g) => (p.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3287
|
+
p.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, n) => (p.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, n);
|
|
3288
|
+
p.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, n, l) => (p.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, n, l);
|
|
3289
|
+
var Sd;
|
|
3290
|
+
Oa = function Td() {
|
|
3291
|
+
Sd || Ud();
|
|
3292
|
+
Sd || (Oa = Td);
|
|
3293
|
+
};
|
|
3294
|
+
function Ud() {
|
|
3295
|
+
if (!(0 < Ma)) {
|
|
3296
|
+
for (; 0 < Ja.length;) {
|
|
3297
|
+
Ja.shift()(p);
|
|
3298
|
+
}
|
|
3299
|
+
if (!(0 < Ma || Sd || (Sd = !0, p.calledRun = !0, za))) {
|
|
3300
|
+
p.noFSInit || Xb || (Xb = !0, Wb(), p.stdin = p.stdin, p.stdout = p.stdout, p.stderr = p.stderr, p.stdin ? dc("stdin", p.stdin) : Sb("/dev/tty", "/dev/stdin"), p.stdout ? dc("stdout", null, p.stdout) : Sb("/dev/tty", "/dev/stdout"), p.stderr ? dc("stderr", null, p.stderr) : Sb("/dev/tty1", "/dev/stderr"), Ub("/dev/stdin", 0), Ub("/dev/stdout", 1), Ub("/dev/stderr", 1));
|
|
3301
|
+
for (Cb = !1; 0 < Ka.length;) {
|
|
3302
|
+
Ka.shift()(p);
|
|
3303
|
+
}
|
|
3304
|
+
aa(p);
|
|
3305
|
+
if (p.onRuntimeInitialized) {
|
|
3306
|
+
p.onRuntimeInitialized();
|
|
3307
|
+
}
|
|
3308
|
+
for (; 0 < La.length;) {
|
|
3309
|
+
La.shift()(p);
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
Ud();
|
|
3315
|
+
|
|
156
3316
|
|
|
157
3317
|
|
|
158
3318
|
return moduleArg.ready
|