@rive-app/webgl 2.21.6 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +6 -2
- package/rive.js +1336 -1316
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +26 -1
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -26,8 +26,8 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var l = moduleArg, aa, ba;
|
|
30
|
+
l.ready = new Promise((a, b) => {
|
|
31
31
|
aa = a;
|
|
32
32
|
ba = b;
|
|
33
33
|
});
|
|
@@ -36,9 +36,9 @@ function ca() {
|
|
|
36
36
|
const k = d;
|
|
37
37
|
c = b = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
k.forEach(
|
|
39
|
+
k.forEach(p => {
|
|
40
40
|
try {
|
|
41
|
-
|
|
41
|
+
p(g);
|
|
42
42
|
} catch (n) {
|
|
43
43
|
console.error(n);
|
|
44
44
|
}
|
|
@@ -63,10 +63,10 @@ function ca() {
|
|
|
63
63
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let k = 0,
|
|
66
|
+
let k = 0, p = 0;
|
|
67
67
|
this.Mb = function() {
|
|
68
68
|
var n = performance.now();
|
|
69
|
-
|
|
69
|
+
p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
@@ -88,71 +88,75 @@ function da() {
|
|
|
88
88
|
return b << 8;
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const ea =
|
|
92
|
-
|
|
91
|
+
const ea = l.onRuntimeInitialized;
|
|
92
|
+
l.onRuntimeInitialized = function() {
|
|
93
93
|
ea && ea();
|
|
94
|
-
let a =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
e
|
|
94
|
+
let a = l.decodeAudio;
|
|
95
|
+
l.decodeAudio = function(e, f) {
|
|
96
|
+
e = a(e);
|
|
97
|
+
f(e);
|
|
98
98
|
};
|
|
99
|
-
let b =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
e
|
|
99
|
+
let b = l.decodeFont;
|
|
100
|
+
l.decodeFont = function(e, f) {
|
|
101
|
+
e = b(e);
|
|
102
|
+
f(e);
|
|
103
103
|
};
|
|
104
|
-
const c =
|
|
105
|
-
|
|
106
|
-
let
|
|
107
|
-
return
|
|
104
|
+
const c = l.FileAssetLoader;
|
|
105
|
+
l.ptrToAsset = e => {
|
|
106
|
+
let f = l.ptrToFileAsset(e);
|
|
107
|
+
return f.isImage ? l.ptrToImageAsset(e) : f.isFont ? l.ptrToFontAsset(e) : f.isAudio ? l.ptrToAudioAsset(e) : f;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
l.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
110
110
|
this.__parent.__construct.call(this);
|
|
111
|
-
this.Bb =
|
|
112
|
-
}, loadContents:function(
|
|
113
|
-
|
|
114
|
-
return this.Bb(
|
|
111
|
+
this.Bb = e;
|
|
112
|
+
}, loadContents:function(e, f) {
|
|
113
|
+
e = l.ptrToAsset(e);
|
|
114
|
+
return this.Bb(e, f);
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
l.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
|
-
}, loadContents:function(
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
if ("" ===
|
|
118
|
+
}, loadContents:function(e) {
|
|
119
|
+
let f = l.ptrToAsset(e);
|
|
120
|
+
e = f.cdnUuid;
|
|
121
|
+
if ("" === e) {
|
|
122
122
|
return !1;
|
|
123
123
|
}
|
|
124
|
-
(function(
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
4 ==
|
|
124
|
+
(function(g, k) {
|
|
125
|
+
var p = new XMLHttpRequest();
|
|
126
|
+
p.responseType = "arraybuffer";
|
|
127
|
+
p.onreadystatechange = function() {
|
|
128
|
+
4 == p.readyState && 200 == p.status && k(p);
|
|
129
129
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
})(
|
|
133
|
-
|
|
130
|
+
p.open("GET", g, !0);
|
|
131
|
+
p.send(null);
|
|
132
|
+
})(f.cdnBaseUrl + "/" + e, g => {
|
|
133
|
+
f.decode(new Uint8Array(g.response));
|
|
134
134
|
});
|
|
135
135
|
return !0;
|
|
136
136
|
},});
|
|
137
|
-
|
|
137
|
+
l.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
138
|
this.__parent.__construct.call(this);
|
|
139
139
|
this.fb = [];
|
|
140
|
-
}, addLoader:function(
|
|
141
|
-
this.fb.push(
|
|
142
|
-
}, loadContents:function(
|
|
143
|
-
for (let
|
|
144
|
-
if (
|
|
140
|
+
}, addLoader:function(e) {
|
|
141
|
+
this.fb.push(e);
|
|
142
|
+
}, loadContents:function(e, f) {
|
|
143
|
+
for (let g of this.fb) {
|
|
144
|
+
if (g.loadContents(e, f)) {
|
|
145
145
|
return !0;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
return !1;
|
|
149
149
|
},});
|
|
150
|
+
let d = l.computeAlignment;
|
|
151
|
+
l.computeAlignment = function(e, f, g, k, p = 1.0) {
|
|
152
|
+
return d.call(this, e, f, g, k, p);
|
|
153
|
+
};
|
|
150
154
|
};
|
|
151
|
-
const fa =
|
|
152
|
-
|
|
153
|
-
function a(
|
|
154
|
-
this.F =
|
|
155
|
-
this.yb =
|
|
155
|
+
const fa = l.onRuntimeInitialized;
|
|
156
|
+
l.onRuntimeInitialized = function() {
|
|
157
|
+
function a(r) {
|
|
158
|
+
this.F = r;
|
|
159
|
+
this.yb = r.getContext("2d");
|
|
156
160
|
this.Db = e;
|
|
157
161
|
this.R = [];
|
|
158
162
|
this.ja = 0;
|
|
@@ -168,11 +172,11 @@ m.onRuntimeInitialized = function() {
|
|
|
168
172
|
this.restore = function() {
|
|
169
173
|
0 < this.ja && (this.R.push(e.restore.bind(e)), --this.ja);
|
|
170
174
|
};
|
|
171
|
-
this.transform = function(
|
|
172
|
-
this.R.push(e.transform.bind(e,
|
|
175
|
+
this.transform = function(u) {
|
|
176
|
+
this.R.push(e.transform.bind(e, u));
|
|
173
177
|
};
|
|
174
|
-
this.align = function(
|
|
175
|
-
this.R.push(e.align.bind(e,
|
|
178
|
+
this.align = function(u, z, B, C, O = 1.0) {
|
|
179
|
+
this.R.push(e.align.bind(e, u, z, B, C, O));
|
|
176
180
|
};
|
|
177
181
|
this.flush = function() {
|
|
178
182
|
console.assert(0 == this.ja);
|
|
@@ -180,78 +184,78 @@ m.onRuntimeInitialized = function() {
|
|
|
180
184
|
d && c();
|
|
181
185
|
};
|
|
182
186
|
}
|
|
183
|
-
function b(
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
ja[
|
|
189
|
-
("undefined" == typeof
|
|
190
|
-
la(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return
|
|
187
|
+
function b(r) {
|
|
188
|
+
var u = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, z = r.getContext("webgl2", u);
|
|
189
|
+
z || (z = r.getContext("webgl", u));
|
|
190
|
+
var B = z, C = ha(ja), O = {handle:C, attributes:u, version:u.Dc, Ta:B};
|
|
191
|
+
B.canvas && (B.canvas.pc = O);
|
|
192
|
+
ja[C] = O;
|
|
193
|
+
("undefined" == typeof u.Jb || u.Jb) && ka(O);
|
|
194
|
+
la(C);
|
|
195
|
+
u = g(r.width, r.height);
|
|
196
|
+
u.Ab = C;
|
|
197
|
+
u.F = r;
|
|
198
|
+
u.Va = r.width;
|
|
199
|
+
u.Ua = r.height;
|
|
200
|
+
u.zb = z;
|
|
201
|
+
return u;
|
|
198
202
|
}
|
|
199
203
|
function c() {
|
|
200
204
|
if (e) {
|
|
201
|
-
var
|
|
202
|
-
for (var
|
|
203
|
-
|
|
205
|
+
var r = e.Cb, u = 0, z = 0, B = 0, C = Array(f.size), O = 0;
|
|
206
|
+
for (var M of f) {
|
|
207
|
+
M.da = Math.min(M.F.width, r), M.ca = Math.min(M.F.height, r), M.Ja = M.ca * M.da, u = Math.max(u, M.da), z = Math.max(z, M.ca), B += M.Ja, C[O++] = M;
|
|
204
208
|
}
|
|
205
209
|
f.clear();
|
|
206
|
-
if (!(0 >=
|
|
207
|
-
|
|
208
|
-
for (
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
for (
|
|
216
|
-
|
|
217
|
-
for (
|
|
218
|
-
var
|
|
219
|
-
if (0 >
|
|
220
|
-
console.assert(
|
|
210
|
+
if (!(0 >= B)) {
|
|
211
|
+
u = 1 << (0 >= u ? 0 : 32 - Math.clz32(u - 1));
|
|
212
|
+
for (z = 1 << (0 >= z ? 0 : 32 - Math.clz32(z - 1)); z * u < B;) {
|
|
213
|
+
u <= z ? u *= 2 : z *= 2;
|
|
214
|
+
}
|
|
215
|
+
u = Math.min(u, r);
|
|
216
|
+
u = Math.min(z, r);
|
|
217
|
+
C.sort((ia, Gb) => Gb.Ja - ia.Ja);
|
|
218
|
+
B = new l.DynamicRectanizer(r);
|
|
219
|
+
for (M = 0; M < C.length;) {
|
|
220
|
+
B.reset(u, z);
|
|
221
|
+
for (O = M; O < C.length; ++O) {
|
|
222
|
+
var P = C[O], J = B.addRect(P.da, P.ca);
|
|
223
|
+
if (0 > J) {
|
|
224
|
+
console.assert(O > M);
|
|
221
225
|
break;
|
|
222
226
|
}
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
P.pa = J & 65535;
|
|
228
|
+
P.qa = J >> 16;
|
|
225
229
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
console.assert(
|
|
229
|
-
console.assert(
|
|
230
|
-
console.assert(
|
|
231
|
-
console.assert(
|
|
232
|
-
e.F.width !=
|
|
233
|
-
e.F.height !=
|
|
230
|
+
P = p.push(B.drawWidth());
|
|
231
|
+
J = n.push(B.drawHeight());
|
|
232
|
+
console.assert(P >= B.drawWidth());
|
|
233
|
+
console.assert(J >= B.drawHeight());
|
|
234
|
+
console.assert(P <= r);
|
|
235
|
+
console.assert(J <= r);
|
|
236
|
+
e.F.width != P && (e.F.width = P);
|
|
237
|
+
e.F.height != J && (e.F.height = J);
|
|
234
238
|
e.clear();
|
|
235
|
-
for (
|
|
236
|
-
|
|
237
|
-
e.saveClipRect(
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
e.transform(
|
|
245
|
-
for (const
|
|
246
|
-
|
|
239
|
+
for (P = M; P < O; ++P) {
|
|
240
|
+
J = C[P];
|
|
241
|
+
e.saveClipRect(J.pa, J.qa, J.pa + J.da, J.qa + J.ca);
|
|
242
|
+
let ia = new l.Mat2D();
|
|
243
|
+
ia.xx = J.da / J.F.width;
|
|
244
|
+
ia.yy = J.ca / J.F.height;
|
|
245
|
+
ia.xy = ia.yx = 0;
|
|
246
|
+
ia.tx = J.pa;
|
|
247
|
+
ia.ty = J.qa;
|
|
248
|
+
e.transform(ia);
|
|
249
|
+
for (const Gb of J.R) {
|
|
250
|
+
Gb();
|
|
247
251
|
}
|
|
248
252
|
e.restoreClipRect();
|
|
249
|
-
|
|
253
|
+
J.R = [];
|
|
250
254
|
}
|
|
251
|
-
for (e.flush();
|
|
252
|
-
|
|
255
|
+
for (e.flush(); M < O; ++M) {
|
|
256
|
+
P = C[M], J = P.yb, J.globalCompositeOperation = "copy", J.drawImage(e.F, P.pa, P.qa, P.da, P.ca, 0, 0, P.F.width, P.F.height);
|
|
253
257
|
}
|
|
254
|
-
|
|
258
|
+
M = O;
|
|
255
259
|
}
|
|
256
260
|
}
|
|
257
261
|
}
|
|
@@ -259,42 +263,46 @@ m.onRuntimeInitialized = function() {
|
|
|
259
263
|
fa && fa();
|
|
260
264
|
const d = navigator.userAgent.match(/firefox|fxios/i);
|
|
261
265
|
let e = null;
|
|
262
|
-
const f = new Set(), g =
|
|
263
|
-
|
|
264
|
-
return
|
|
266
|
+
const f = new Set(), g = l.makeRenderer;
|
|
267
|
+
l.makeRenderer = function(r, u) {
|
|
268
|
+
return u ? (e || (e = b(document.createElement("canvas")), u = e.zb, e.Cb = Math.min(u.getParameter(u.MAX_RENDERBUFFER_SIZE), u.getParameter(u.MAX_TEXTURE_SIZE))), new a(r)) : b(r);
|
|
265
269
|
};
|
|
266
|
-
const k =
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
const k = l.Artboard.prototype.draw;
|
|
271
|
+
l.Artboard.prototype.draw = function(r) {
|
|
272
|
+
r.R ? r.R.push(k.bind(this, r.Db)) : k.call(this, r);
|
|
269
273
|
};
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
+
const p = new da(), n = new da(), t = new ca();
|
|
275
|
+
l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
276
|
+
l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
277
|
+
l.enableFPSCounter = t.Kb.bind(t);
|
|
274
278
|
t.kb = c;
|
|
275
|
-
|
|
276
|
-
let
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
void 0 !==
|
|
280
|
-
|
|
281
|
-
return Promise.resolve(
|
|
279
|
+
l.resolveAnimationFrame = c;
|
|
280
|
+
let w = l.load;
|
|
281
|
+
l.load = function(r, u, z = !0) {
|
|
282
|
+
const B = new l.FallbackFileAssetLoader();
|
|
283
|
+
void 0 !== u && B.addLoader(u);
|
|
284
|
+
z && (u = new l.CDNFileAssetLoader(), B.addLoader(u));
|
|
285
|
+
return Promise.resolve(w(r, B));
|
|
282
286
|
};
|
|
283
|
-
const y =
|
|
284
|
-
|
|
287
|
+
const y = l.WebGLRenderer.prototype.clear;
|
|
288
|
+
l.WebGLRenderer.prototype.clear = function() {
|
|
285
289
|
la(this.Ab);
|
|
286
|
-
const
|
|
287
|
-
if (this.Va !=
|
|
288
|
-
this.resize(
|
|
290
|
+
const r = this.F;
|
|
291
|
+
if (this.Va != r.width || this.Ua != r.height) {
|
|
292
|
+
this.resize(r.width, r.height), this.Va = r.width, this.Ua = r.height;
|
|
289
293
|
}
|
|
290
294
|
y.call(this);
|
|
291
295
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
r
|
|
296
|
+
l.decodeImage = function(r, u) {
|
|
297
|
+
r = l.decodeImageSkia(r);
|
|
298
|
+
u(r);
|
|
299
|
+
};
|
|
300
|
+
let q = l.Renderer.prototype.align;
|
|
301
|
+
l.Renderer.prototype.align = function(r, u, z, B, C = 1.0) {
|
|
302
|
+
q.call(this, r, u, z, B, C);
|
|
295
303
|
};
|
|
296
304
|
};
|
|
297
|
-
var ma = Object.assign({},
|
|
305
|
+
var ma = Object.assign({}, l), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
|
|
298
306
|
if (oa || pa) {
|
|
299
307
|
pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
|
|
300
308
|
var b = new XMLHttpRequest();
|
|
@@ -313,35 +321,35 @@ if (oa || pa) {
|
|
|
313
321
|
d.send(null);
|
|
314
322
|
};
|
|
315
323
|
}
|
|
316
|
-
var ta =
|
|
317
|
-
Object.assign(
|
|
324
|
+
var ta = l.print || console.log.bind(console), ua = l.printErr || console.error.bind(console);
|
|
325
|
+
Object.assign(l, ma);
|
|
318
326
|
ma = null;
|
|
319
|
-
|
|
327
|
+
l.thisProgram && (na = l.thisProgram);
|
|
320
328
|
var va;
|
|
321
|
-
|
|
322
|
-
var noExitRuntime =
|
|
329
|
+
l.wasmBinary && (va = l.wasmBinary);
|
|
330
|
+
var noExitRuntime = l.noExitRuntime || !0;
|
|
323
331
|
"object" != typeof WebAssembly && wa("no native wasm support detected");
|
|
324
|
-
var xa,
|
|
332
|
+
var xa, m, ya = !1, v, x, A, za, D, E, F, Aa;
|
|
325
333
|
function Ba() {
|
|
326
334
|
var a = xa.buffer;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
+
l.HEAP8 = v = new Int8Array(a);
|
|
336
|
+
l.HEAP16 = A = new Int16Array(a);
|
|
337
|
+
l.HEAP32 = D = new Int32Array(a);
|
|
338
|
+
l.HEAPU8 = x = new Uint8Array(a);
|
|
339
|
+
l.HEAPU16 = za = new Uint16Array(a);
|
|
340
|
+
l.HEAPU32 = E = new Uint32Array(a);
|
|
341
|
+
l.HEAPF32 = F = new Float32Array(a);
|
|
342
|
+
l.HEAPF64 = Aa = new Float64Array(a);
|
|
335
343
|
}
|
|
336
344
|
var Ca, Da = [], Ea = [], Fa = [];
|
|
337
345
|
function Ga() {
|
|
338
|
-
var a =
|
|
346
|
+
var a = l.preRun.shift();
|
|
339
347
|
Da.unshift(a);
|
|
340
348
|
}
|
|
341
349
|
var Ha = 0, Ia = null, Ja = null;
|
|
342
350
|
function wa(a) {
|
|
343
|
-
if (
|
|
344
|
-
|
|
351
|
+
if (l.onAbort) {
|
|
352
|
+
l.onAbort(a);
|
|
345
353
|
}
|
|
346
354
|
a = "Aborted(" + a + ")";
|
|
347
355
|
ua(a);
|
|
@@ -357,7 +365,7 @@ var La;
|
|
|
357
365
|
La = "webgl_advanced.wasm";
|
|
358
366
|
if (!Ka(La)) {
|
|
359
367
|
var Ma = La;
|
|
360
|
-
La =
|
|
368
|
+
La = l.locateFile ? l.locateFile(Ma, qa) : qa + Ma;
|
|
361
369
|
}
|
|
362
370
|
function Na(a) {
|
|
363
371
|
if (a == La && va) {
|
|
@@ -400,7 +408,7 @@ function Qa(a, b) {
|
|
|
400
408
|
return Pa(c, a, b);
|
|
401
409
|
}));
|
|
402
410
|
}
|
|
403
|
-
var Ra, Sa, Wa = {
|
|
411
|
+
var Ra, Sa, Wa = {693276:(a, b, c, d, e) => {
|
|
404
412
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
405
413
|
return 0;
|
|
406
414
|
}
|
|
@@ -449,12 +457,12 @@ var Ra, Sa, Wa = {692684:(a, b, c, d, e) => {
|
|
|
449
457
|
var k = f.C[g];
|
|
450
458
|
null != k && null != k.I && k.state === f.ha.sb && k.I.resume().then(() => {
|
|
451
459
|
Ta(k.lb);
|
|
452
|
-
},
|
|
453
|
-
console.error("Failed to resume audiocontext",
|
|
460
|
+
}, p => {
|
|
461
|
+
console.error("Failed to resume audiocontext", p);
|
|
454
462
|
});
|
|
455
463
|
}
|
|
456
|
-
f.wb.map(function(
|
|
457
|
-
document.removeEventListener(
|
|
464
|
+
f.wb.map(function(p) {
|
|
465
|
+
document.removeEventListener(p, f.unlock, !0);
|
|
458
466
|
});
|
|
459
467
|
};
|
|
460
468
|
f.wb.map(function(g) {
|
|
@@ -463,9 +471,9 @@ var Ra, Sa, Wa = {692684:(a, b, c, d, e) => {
|
|
|
463
471
|
}
|
|
464
472
|
window.h.Ea += 1;
|
|
465
473
|
return 1;
|
|
466
|
-
},
|
|
474
|
+
}, 695454:() => {
|
|
467
475
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
468
|
-
},
|
|
476
|
+
}, 695618:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 695722:() => {
|
|
469
477
|
try {
|
|
470
478
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
471
479
|
a.close();
|
|
@@ -473,7 +481,7 @@ var Ra, Sa, Wa = {692684:(a, b, c, d, e) => {
|
|
|
473
481
|
} catch (c) {
|
|
474
482
|
return 0;
|
|
475
483
|
}
|
|
476
|
-
},
|
|
484
|
+
}, 695893:(a, b, c, d, e, f) => {
|
|
477
485
|
if ("undefined" === typeof window.h) {
|
|
478
486
|
return -1;
|
|
479
487
|
}
|
|
@@ -485,41 +493,41 @@ var Ra, Sa, Wa = {692684:(a, b, c, d, e) => {
|
|
|
485
493
|
c = 0;
|
|
486
494
|
a != window.h.H.Ca && (c = b);
|
|
487
495
|
g.X = g.I.createScriptProcessor(d, c, b);
|
|
488
|
-
g.X.onaudioprocess = function(
|
|
496
|
+
g.X.onaudioprocess = function(p) {
|
|
489
497
|
if (null == g.ua || 0 == g.ua.length) {
|
|
490
|
-
g.ua = new Float32Array(
|
|
498
|
+
g.ua = new Float32Array(F.buffer, e, d * b);
|
|
491
499
|
}
|
|
492
500
|
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
493
501
|
for (var n = 0; n < b; n += 1) {
|
|
494
|
-
for (var t =
|
|
495
|
-
|
|
502
|
+
for (var t = p.inputBuffer.getChannelData(n), w = g.ua, y = 0; y < d; y += 1) {
|
|
503
|
+
w[y * b + n] = t[y];
|
|
496
504
|
}
|
|
497
505
|
}
|
|
498
506
|
Ua(f, d, e);
|
|
499
507
|
}
|
|
500
508
|
if (a == window.h.H.Ca || a == window.h.H.La) {
|
|
501
|
-
for (Va(f, d, e), n = 0; n <
|
|
502
|
-
for (t =
|
|
503
|
-
t[y] =
|
|
509
|
+
for (Va(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
510
|
+
for (t = p.outputBuffer.getChannelData(n), w = g.ua, y = 0; y < d; y += 1) {
|
|
511
|
+
t[y] = w[y * b + n];
|
|
504
512
|
}
|
|
505
513
|
}
|
|
506
514
|
} else {
|
|
507
|
-
for (n = 0; n <
|
|
508
|
-
|
|
515
|
+
for (n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
516
|
+
p.outputBuffer.getChannelData(n).fill(0.0);
|
|
509
517
|
}
|
|
510
518
|
}
|
|
511
519
|
};
|
|
512
|
-
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
513
|
-
g.Fa = g.I.createMediaStreamSource(
|
|
520
|
+
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
521
|
+
g.Fa = g.I.createMediaStreamSource(p);
|
|
514
522
|
g.Fa.connect(g.X);
|
|
515
523
|
g.X.connect(g.I.destination);
|
|
516
|
-
}).catch(function(
|
|
517
|
-
console.log("Failed to get user media: " +
|
|
524
|
+
}).catch(function(p) {
|
|
525
|
+
console.log("Failed to get user media: " + p);
|
|
518
526
|
});
|
|
519
527
|
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
520
528
|
g.lb = f;
|
|
521
529
|
return window.h.nc(g);
|
|
522
|
-
},
|
|
530
|
+
}, 698770:a => window.h.ta(a).I.sampleRate, 698843:a => {
|
|
523
531
|
a = window.h.ta(a);
|
|
524
532
|
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
525
533
|
}, a.X.disconnect(), a.X = void 0);
|
|
@@ -527,19 +535,19 @@ var Ra, Sa, Wa = {692684:(a, b, c, d, e) => {
|
|
|
527
535
|
a.I.close();
|
|
528
536
|
a.I = void 0;
|
|
529
537
|
a.lb = void 0;
|
|
530
|
-
},
|
|
538
|
+
}, 699243:a => {
|
|
531
539
|
window.h.xb(a);
|
|
532
|
-
},
|
|
540
|
+
}, 699293:a => {
|
|
533
541
|
a = window.h.ta(a);
|
|
534
542
|
a.I.resume();
|
|
535
543
|
a.state = window.h.ha.sb;
|
|
536
|
-
},
|
|
544
|
+
}, 699432:a => {
|
|
537
545
|
a = window.h.ta(a);
|
|
538
546
|
a.I.suspend();
|
|
539
547
|
a.state = window.h.ha.stopped;
|
|
540
548
|
}}, Xa = a => {
|
|
541
549
|
for (; 0 < a.length;) {
|
|
542
|
-
a.shift()(
|
|
550
|
+
a.shift()(l);
|
|
543
551
|
}
|
|
544
552
|
}, Ya = (a, b) => {
|
|
545
553
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -595,7 +603,7 @@ function db() {
|
|
|
595
603
|
a = Ya(a.split("/").filter(d => !!d), !b).join("/");
|
|
596
604
|
return (b ? "/" : "") + a || ".";
|
|
597
605
|
}
|
|
598
|
-
var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0,
|
|
606
|
+
var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, fb = (a, b, c) => {
|
|
599
607
|
var d = b + c;
|
|
600
608
|
for (c = b; a[c] && !(c >= d);) {
|
|
601
609
|
++c;
|
|
@@ -619,13 +627,13 @@ var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, F
|
|
|
619
627
|
}
|
|
620
628
|
}
|
|
621
629
|
return d;
|
|
622
|
-
},
|
|
630
|
+
}, gb = [], hb = a => {
|
|
623
631
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
624
632
|
var d = a.charCodeAt(c);
|
|
625
633
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
626
634
|
}
|
|
627
635
|
return b;
|
|
628
|
-
},
|
|
636
|
+
}, ib = (a, b, c, d) => {
|
|
629
637
|
if (!(0 < d)) {
|
|
630
638
|
return 0;
|
|
631
639
|
}
|
|
@@ -669,21 +677,21 @@ var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, F
|
|
|
669
677
|
b[c] = 0;
|
|
670
678
|
return c - e;
|
|
671
679
|
};
|
|
672
|
-
function
|
|
673
|
-
var c = Array(
|
|
674
|
-
a =
|
|
680
|
+
function jb(a, b) {
|
|
681
|
+
var c = Array(hb(a) + 1);
|
|
682
|
+
a = ib(a, c, 0, c.length);
|
|
675
683
|
b && (c.length = a);
|
|
676
684
|
return c;
|
|
677
685
|
}
|
|
678
|
-
var
|
|
679
|
-
function
|
|
680
|
-
|
|
681
|
-
|
|
686
|
+
var kb = [];
|
|
687
|
+
function lb(a, b) {
|
|
688
|
+
kb[a] = {input:[], D:[], T:b};
|
|
689
|
+
mb(a, nb);
|
|
682
690
|
}
|
|
683
|
-
var
|
|
684
|
-
var b =
|
|
691
|
+
var nb = {open:function(a) {
|
|
692
|
+
var b = kb[a.node.Da];
|
|
685
693
|
if (!b) {
|
|
686
|
-
throw new
|
|
694
|
+
throw new G(43);
|
|
687
695
|
}
|
|
688
696
|
a.s = b;
|
|
689
697
|
a.seekable = !1;
|
|
@@ -693,16 +701,16 @@ var mb = {open:function(a) {
|
|
|
693
701
|
a.s.T.sa(a.s);
|
|
694
702
|
}, read:function(a, b, c, d) {
|
|
695
703
|
if (!a.s || !a.s.T.eb) {
|
|
696
|
-
throw new
|
|
704
|
+
throw new G(60);
|
|
697
705
|
}
|
|
698
706
|
for (var e = 0, f = 0; f < d; f++) {
|
|
699
707
|
try {
|
|
700
708
|
var g = a.s.T.eb(a.s);
|
|
701
709
|
} catch (k) {
|
|
702
|
-
throw new
|
|
710
|
+
throw new G(29);
|
|
703
711
|
}
|
|
704
712
|
if (void 0 === g && 0 === e) {
|
|
705
|
-
throw new
|
|
713
|
+
throw new G(6);
|
|
706
714
|
}
|
|
707
715
|
if (null === g || void 0 === g) {
|
|
708
716
|
break;
|
|
@@ -714,59 +722,59 @@ var mb = {open:function(a) {
|
|
|
714
722
|
return e;
|
|
715
723
|
}, write:function(a, b, c, d) {
|
|
716
724
|
if (!a.s || !a.s.T.Oa) {
|
|
717
|
-
throw new
|
|
725
|
+
throw new G(60);
|
|
718
726
|
}
|
|
719
727
|
try {
|
|
720
728
|
for (var e = 0; e < d; e++) {
|
|
721
729
|
a.s.T.Oa(a.s, b[c + e]);
|
|
722
730
|
}
|
|
723
731
|
} catch (f) {
|
|
724
|
-
throw new
|
|
732
|
+
throw new G(29);
|
|
725
733
|
}
|
|
726
734
|
d && (a.node.timestamp = Date.now());
|
|
727
735
|
return e;
|
|
728
|
-
},},
|
|
736
|
+
},}, ob = {eb:function() {
|
|
729
737
|
a: {
|
|
730
|
-
if (!
|
|
738
|
+
if (!gb.length) {
|
|
731
739
|
var a = null;
|
|
732
740
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
733
741
|
if (!a) {
|
|
734
742
|
a = null;
|
|
735
743
|
break a;
|
|
736
744
|
}
|
|
737
|
-
|
|
745
|
+
gb = jb(a, !0);
|
|
738
746
|
}
|
|
739
|
-
a =
|
|
747
|
+
a = gb.shift();
|
|
740
748
|
}
|
|
741
749
|
return a;
|
|
742
750
|
}, Oa:function(a, b) {
|
|
743
|
-
null === b || 10 === b ? (ta(
|
|
751
|
+
null === b || 10 === b ? (ta(fb(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
744
752
|
}, sa:function(a) {
|
|
745
|
-
a.D && 0 < a.D.length && (ta(
|
|
753
|
+
a.D && 0 < a.D.length && (ta(fb(a.D, 0)), a.D = []);
|
|
746
754
|
}, Wb:function() {
|
|
747
755
|
return {uc:25856, wc:5, tc:191, vc:35387, sc:[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,]};
|
|
748
756
|
}, Xb:function() {
|
|
749
757
|
return 0;
|
|
750
758
|
}, Yb:function() {
|
|
751
759
|
return [24, 80];
|
|
752
|
-
},},
|
|
753
|
-
null === b || 10 === b ? (ua(
|
|
760
|
+
},}, pb = {Oa:function(a, b) {
|
|
761
|
+
null === b || 10 === b ? (ua(fb(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
754
762
|
}, sa:function(a) {
|
|
755
|
-
a.D && 0 < a.D.length && (ua(
|
|
763
|
+
a.D && 0 < a.D.length && (ua(fb(a.D, 0)), a.D = []);
|
|
756
764
|
},};
|
|
757
|
-
function
|
|
765
|
+
function qb(a, b) {
|
|
758
766
|
var c = a.j ? a.j.length : 0;
|
|
759
767
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
760
768
|
}
|
|
761
|
-
var
|
|
762
|
-
return
|
|
769
|
+
var H = {N:null, S() {
|
|
770
|
+
return H.createNode(null, "/", 16895, 0);
|
|
763
771
|
}, createNode(a, b, c, d) {
|
|
764
772
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
765
|
-
throw new
|
|
773
|
+
throw new G(63);
|
|
766
774
|
}
|
|
767
|
-
|
|
768
|
-
c =
|
|
769
|
-
16384 === (c.mode & 61440) ? (c.l =
|
|
775
|
+
H.N || (H.N = {dir:{node:{W:H.l.W, O:H.l.O, ka:H.l.ka, Aa:H.l.Aa, qb:H.l.qb, vb:H.l.vb, rb:H.l.rb, ob:H.l.ob, Ga:H.l.Ga}, stream:{$:H.m.$}}, file:{node:{W:H.l.W, O:H.l.O}, stream:{$:H.m.$, read:H.m.read, write:H.m.write, ra:H.m.ra, hb:H.m.hb, jb:H.m.jb}}, link:{node:{W:H.l.W, O:H.l.O, la:H.l.la}, stream:{}}, Wa:{node:{W:H.l.W, O:H.l.O}, stream:rb}});
|
|
776
|
+
c = sb(a, b, c, d);
|
|
777
|
+
16384 === (c.mode & 61440) ? (c.l = H.N.dir.node, c.m = H.N.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = H.N.file.node, c.m = H.N.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = H.N.link.node, c.m = H.N.link.stream) : 8192 === (c.mode & 61440) && (c.l = H.N.Wa.node, c.m = H.N.Wa.stream);
|
|
770
778
|
c.timestamp = Date.now();
|
|
771
779
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
772
780
|
return c;
|
|
@@ -802,18 +810,18 @@ var I = {N:null, S() {
|
|
|
802
810
|
}
|
|
803
811
|
}
|
|
804
812
|
}, ka() {
|
|
805
|
-
throw
|
|
813
|
+
throw tb[44];
|
|
806
814
|
}, Aa(a, b, c, d) {
|
|
807
|
-
return
|
|
815
|
+
return H.createNode(a, b, c, d);
|
|
808
816
|
}, qb(a, b, c) {
|
|
809
817
|
if (16384 === (a.mode & 61440)) {
|
|
810
818
|
try {
|
|
811
|
-
var d =
|
|
819
|
+
var d = ub(b, c);
|
|
812
820
|
} catch (f) {
|
|
813
821
|
}
|
|
814
822
|
if (d) {
|
|
815
823
|
for (var e in d.j) {
|
|
816
|
-
throw new
|
|
824
|
+
throw new G(55);
|
|
817
825
|
}
|
|
818
826
|
}
|
|
819
827
|
}
|
|
@@ -827,9 +835,9 @@ var I = {N:null, S() {
|
|
|
827
835
|
delete a.j[b];
|
|
828
836
|
a.timestamp = Date.now();
|
|
829
837
|
}, rb(a, b) {
|
|
830
|
-
var c =
|
|
838
|
+
var c = ub(a, b), d;
|
|
831
839
|
for (d in c.j) {
|
|
832
|
-
throw new
|
|
840
|
+
throw new G(55);
|
|
833
841
|
}
|
|
834
842
|
delete a.j[b];
|
|
835
843
|
a.timestamp = Date.now();
|
|
@@ -840,12 +848,12 @@ var I = {N:null, S() {
|
|
|
840
848
|
}
|
|
841
849
|
return b;
|
|
842
850
|
}, Ga(a, b, c) {
|
|
843
|
-
a =
|
|
851
|
+
a = H.createNode(a, b, 41471, 0);
|
|
844
852
|
a.link = c;
|
|
845
853
|
return a;
|
|
846
854
|
}, la(a) {
|
|
847
855
|
if (40960 !== (a.mode & 61440)) {
|
|
848
|
-
throw new
|
|
856
|
+
throw new G(28);
|
|
849
857
|
}
|
|
850
858
|
return a.link;
|
|
851
859
|
},}, m:{read(a, b, c, d, e) {
|
|
@@ -863,7 +871,7 @@ var I = {N:null, S() {
|
|
|
863
871
|
}
|
|
864
872
|
return a;
|
|
865
873
|
}, write(a, b, c, d, e, f) {
|
|
866
|
-
b.buffer ===
|
|
874
|
+
b.buffer === v.buffer && (f = !1);
|
|
867
875
|
if (!d) {
|
|
868
876
|
return 0;
|
|
869
877
|
}
|
|
@@ -880,7 +888,7 @@ var I = {N:null, S() {
|
|
|
880
888
|
return a.j.set(b.subarray(c, c + d), e), d;
|
|
881
889
|
}
|
|
882
890
|
}
|
|
883
|
-
|
|
891
|
+
qb(a, e + d);
|
|
884
892
|
if (a.j.subarray && b.subarray) {
|
|
885
893
|
a.j.set(b.subarray(c, c + d), e);
|
|
886
894
|
} else {
|
|
@@ -893,70 +901,70 @@ var I = {N:null, S() {
|
|
|
893
901
|
}, $(a, b, c) {
|
|
894
902
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
895
903
|
if (0 > b) {
|
|
896
|
-
throw new
|
|
904
|
+
throw new G(28);
|
|
897
905
|
}
|
|
898
906
|
return b;
|
|
899
907
|
}, ra(a, b, c) {
|
|
900
|
-
|
|
908
|
+
qb(a.node, b + c);
|
|
901
909
|
a.node.v = Math.max(a.node.v, b + c);
|
|
902
910
|
}, hb(a, b, c, d, e) {
|
|
903
911
|
if (32768 !== (a.node.mode & 61440)) {
|
|
904
|
-
throw new
|
|
912
|
+
throw new G(43);
|
|
905
913
|
}
|
|
906
914
|
a = a.node.j;
|
|
907
|
-
if (e & 2 || a.buffer !==
|
|
915
|
+
if (e & 2 || a.buffer !== v.buffer) {
|
|
908
916
|
if (0 < c || c + b < a.length) {
|
|
909
917
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
910
918
|
}
|
|
911
919
|
c = !0;
|
|
912
920
|
b = 65536 * Math.ceil(b / 65536);
|
|
913
|
-
(e =
|
|
921
|
+
(e = vb(65536, b)) ? (x.fill(0, e, e + b), b = e) : b = 0;
|
|
914
922
|
if (!b) {
|
|
915
|
-
throw new
|
|
923
|
+
throw new G(48);
|
|
916
924
|
}
|
|
917
|
-
|
|
925
|
+
v.set(a, b);
|
|
918
926
|
} else {
|
|
919
927
|
c = !1, b = a.byteOffset;
|
|
920
928
|
}
|
|
921
929
|
return {o:b, L:c};
|
|
922
930
|
}, jb(a, b, c, d) {
|
|
923
|
-
|
|
931
|
+
H.m.write(a, b, 0, d, c, !1);
|
|
924
932
|
return 0;
|
|
925
933
|
},},};
|
|
926
|
-
function
|
|
934
|
+
function wb(a, b) {
|
|
927
935
|
var c = 0;
|
|
928
936
|
a && (c |= 365);
|
|
929
937
|
b && (c |= 146);
|
|
930
938
|
return c;
|
|
931
939
|
}
|
|
932
|
-
var
|
|
940
|
+
var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, G = null, tb = {}, Eb = (a, b = {}) => {
|
|
933
941
|
a = db(a);
|
|
934
942
|
if (!a) {
|
|
935
943
|
return {path:"", node:null};
|
|
936
944
|
}
|
|
937
945
|
b = Object.assign({bb:!0, Qa:0}, b);
|
|
938
946
|
if (8 < b.Qa) {
|
|
939
|
-
throw new
|
|
947
|
+
throw new G(32);
|
|
940
948
|
}
|
|
941
949
|
a = a.split("/").filter(g => !!g);
|
|
942
|
-
for (var c =
|
|
950
|
+
for (var c = xb, d = "/", e = 0; e < a.length; e++) {
|
|
943
951
|
var f = e === a.length - 1;
|
|
944
952
|
if (f && b.parent) {
|
|
945
953
|
break;
|
|
946
954
|
}
|
|
947
|
-
c =
|
|
955
|
+
c = ub(c, a[e]);
|
|
948
956
|
d = Za(d + "/" + a[e]);
|
|
949
957
|
c.Ba && (!f || f && b.bb) && (c = c.Ba.root);
|
|
950
958
|
if (!f || b.ab) {
|
|
951
959
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
952
|
-
if (c =
|
|
953
|
-
throw new
|
|
960
|
+
if (c = Db(d), d = db($a(d), c), c = Eb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
961
|
+
throw new G(32);
|
|
954
962
|
}
|
|
955
963
|
}
|
|
956
964
|
}
|
|
957
965
|
}
|
|
958
966
|
return {path:d, node:c};
|
|
959
|
-
},
|
|
967
|
+
}, Fb = a => {
|
|
960
968
|
for (var b;;) {
|
|
961
969
|
if (a === a.parent) {
|
|
962
970
|
return a = a.S.ib, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -964,34 +972,34 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
964
972
|
b = b ? `${a.name}/${b}` : a.name;
|
|
965
973
|
a = a.parent;
|
|
966
974
|
}
|
|
967
|
-
},
|
|
975
|
+
}, Hb = (a, b) => {
|
|
968
976
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
969
977
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
970
978
|
}
|
|
971
|
-
return (a + c >>> 0) %
|
|
972
|
-
},
|
|
979
|
+
return (a + c >>> 0) % Bb.length;
|
|
980
|
+
}, ub = (a, b) => {
|
|
973
981
|
var c;
|
|
974
|
-
if (c = (c =
|
|
975
|
-
throw new
|
|
982
|
+
if (c = (c = Ib(a, "x")) ? c : a.l.ka ? 0 : 2) {
|
|
983
|
+
throw new G(c, a);
|
|
976
984
|
}
|
|
977
|
-
for (c =
|
|
985
|
+
for (c = Bb[Hb(a.id, b)]; c; c = c.ac) {
|
|
978
986
|
var d = c.name;
|
|
979
987
|
if (c.parent.id === a.id && d === b) {
|
|
980
988
|
return c;
|
|
981
989
|
}
|
|
982
990
|
}
|
|
983
991
|
return a.l.ka(a, b);
|
|
984
|
-
},
|
|
985
|
-
a = new
|
|
986
|
-
b =
|
|
987
|
-
a.ac =
|
|
988
|
-
return
|
|
989
|
-
},
|
|
992
|
+
}, sb = (a, b, c, d) => {
|
|
993
|
+
a = new Jb(a, b, c, d);
|
|
994
|
+
b = Hb(a.parent.id, a.name);
|
|
995
|
+
a.ac = Bb[b];
|
|
996
|
+
return Bb[b] = a;
|
|
997
|
+
}, Kb = a => {
|
|
990
998
|
var b = ["r", "w", "rw"][a & 3];
|
|
991
999
|
a & 512 && (b += "w");
|
|
992
1000
|
return b;
|
|
993
|
-
},
|
|
994
|
-
if (
|
|
1001
|
+
}, Ib = (a, b) => {
|
|
1002
|
+
if (Cb) {
|
|
995
1003
|
return 0;
|
|
996
1004
|
}
|
|
997
1005
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1002,29 +1010,29 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
1002
1010
|
return 2;
|
|
1003
1011
|
}
|
|
1004
1012
|
return 0;
|
|
1005
|
-
},
|
|
1013
|
+
}, Lb = (a, b) => {
|
|
1006
1014
|
try {
|
|
1007
|
-
return
|
|
1015
|
+
return ub(a, b), 20;
|
|
1008
1016
|
} catch (c) {
|
|
1009
1017
|
}
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1018
|
+
return Ib(a, "wx");
|
|
1019
|
+
}, Mb = () => {
|
|
1012
1020
|
for (var a = 0; 4096 >= a; a++) {
|
|
1013
|
-
if (!
|
|
1021
|
+
if (!zb[a]) {
|
|
1014
1022
|
return a;
|
|
1015
1023
|
}
|
|
1016
1024
|
}
|
|
1017
|
-
throw new
|
|
1018
|
-
},
|
|
1019
|
-
a =
|
|
1025
|
+
throw new G(33);
|
|
1026
|
+
}, Nb = a => {
|
|
1027
|
+
a = zb[a];
|
|
1020
1028
|
if (!a) {
|
|
1021
|
-
throw new
|
|
1029
|
+
throw new G(8);
|
|
1022
1030
|
}
|
|
1023
1031
|
return a;
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1032
|
+
}, Pb = (a, b = -1) => {
|
|
1033
|
+
Ob || (Ob = function() {
|
|
1026
1034
|
this.h = {};
|
|
1027
|
-
},
|
|
1035
|
+
}, Ob.prototype = {}, Object.defineProperties(Ob.prototype, {object:{get() {
|
|
1028
1036
|
return this.node;
|
|
1029
1037
|
}, set(c) {
|
|
1030
1038
|
this.node = c;
|
|
@@ -1037,84 +1045,84 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
1037
1045
|
}, set(c) {
|
|
1038
1046
|
this.h.position = c;
|
|
1039
1047
|
},},}));
|
|
1040
|
-
a = Object.assign(new
|
|
1041
|
-
-1 == b && (b =
|
|
1048
|
+
a = Object.assign(new Ob(), a);
|
|
1049
|
+
-1 == b && (b = Mb());
|
|
1042
1050
|
a.V = b;
|
|
1043
|
-
return
|
|
1044
|
-
},
|
|
1045
|
-
a.m =
|
|
1051
|
+
return zb[b] = a;
|
|
1052
|
+
}, rb = {open:a => {
|
|
1053
|
+
a.m = yb[a.node.Da].m;
|
|
1046
1054
|
a.m.open && a.m.open(a);
|
|
1047
1055
|
}, $:() => {
|
|
1048
|
-
throw new
|
|
1049
|
-
},},
|
|
1050
|
-
|
|
1051
|
-
},
|
|
1056
|
+
throw new G(70);
|
|
1057
|
+
},}, mb = (a, b) => {
|
|
1058
|
+
yb[a] = {m:b};
|
|
1059
|
+
}, Qb = (a, b) => {
|
|
1052
1060
|
var c = "/" === b, d = !b;
|
|
1053
|
-
if (c &&
|
|
1054
|
-
throw new
|
|
1061
|
+
if (c && xb) {
|
|
1062
|
+
throw new G(10);
|
|
1055
1063
|
}
|
|
1056
1064
|
if (!c && !d) {
|
|
1057
|
-
var e =
|
|
1065
|
+
var e = Eb(b, {bb:!1});
|
|
1058
1066
|
b = e.path;
|
|
1059
1067
|
e = e.node;
|
|
1060
1068
|
if (e.Ba) {
|
|
1061
|
-
throw new
|
|
1069
|
+
throw new G(10);
|
|
1062
1070
|
}
|
|
1063
1071
|
if (16384 !== (e.mode & 61440)) {
|
|
1064
|
-
throw new
|
|
1072
|
+
throw new G(54);
|
|
1065
1073
|
}
|
|
1066
1074
|
}
|
|
1067
1075
|
b = {type:a, Ic:{}, ib:b, $b:[]};
|
|
1068
1076
|
a = a.S(b);
|
|
1069
1077
|
a.S = b;
|
|
1070
1078
|
b.root = a;
|
|
1071
|
-
c ?
|
|
1072
|
-
},
|
|
1073
|
-
var d =
|
|
1079
|
+
c ? xb = a : e && (e.Ba = b, e.S && e.S.$b.push(b));
|
|
1080
|
+
}, Rb = (a, b, c) => {
|
|
1081
|
+
var d = Eb(a, {parent:!0}).node;
|
|
1074
1082
|
a = ab(a);
|
|
1075
1083
|
if (!a || "." === a || ".." === a) {
|
|
1076
|
-
throw new
|
|
1084
|
+
throw new G(28);
|
|
1077
1085
|
}
|
|
1078
|
-
var e =
|
|
1086
|
+
var e = Lb(d, a);
|
|
1079
1087
|
if (e) {
|
|
1080
|
-
throw new
|
|
1088
|
+
throw new G(e);
|
|
1081
1089
|
}
|
|
1082
1090
|
if (!d.l.Aa) {
|
|
1083
|
-
throw new
|
|
1091
|
+
throw new G(63);
|
|
1084
1092
|
}
|
|
1085
1093
|
return d.l.Aa(d, a, b, c);
|
|
1086
|
-
},
|
|
1094
|
+
}, Sb = (a, b, c) => {
|
|
1087
1095
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1088
|
-
|
|
1089
|
-
},
|
|
1096
|
+
Rb(a, b | 8192, c);
|
|
1097
|
+
}, Tb = (a, b) => {
|
|
1090
1098
|
if (!db(a)) {
|
|
1091
|
-
throw new
|
|
1099
|
+
throw new G(44);
|
|
1092
1100
|
}
|
|
1093
|
-
var c =
|
|
1101
|
+
var c = Eb(b, {parent:!0}).node;
|
|
1094
1102
|
if (!c) {
|
|
1095
|
-
throw new
|
|
1103
|
+
throw new G(44);
|
|
1096
1104
|
}
|
|
1097
1105
|
b = ab(b);
|
|
1098
|
-
var d =
|
|
1106
|
+
var d = Lb(c, b);
|
|
1099
1107
|
if (d) {
|
|
1100
|
-
throw new
|
|
1108
|
+
throw new G(d);
|
|
1101
1109
|
}
|
|
1102
1110
|
if (!c.l.Ga) {
|
|
1103
|
-
throw new
|
|
1111
|
+
throw new G(63);
|
|
1104
1112
|
}
|
|
1105
1113
|
c.l.Ga(c, b, a);
|
|
1106
|
-
},
|
|
1107
|
-
a =
|
|
1114
|
+
}, Db = a => {
|
|
1115
|
+
a = Eb(a).node;
|
|
1108
1116
|
if (!a) {
|
|
1109
|
-
throw new
|
|
1117
|
+
throw new G(44);
|
|
1110
1118
|
}
|
|
1111
1119
|
if (!a.l.la) {
|
|
1112
|
-
throw new
|
|
1120
|
+
throw new G(28);
|
|
1113
1121
|
}
|
|
1114
|
-
return db(
|
|
1115
|
-
},
|
|
1122
|
+
return db(Fb(a.parent), a.l.la(a));
|
|
1123
|
+
}, Vb = (a, b, c) => {
|
|
1116
1124
|
if ("" === a) {
|
|
1117
|
-
throw new
|
|
1125
|
+
throw new G(44);
|
|
1118
1126
|
}
|
|
1119
1127
|
if ("string" == typeof b) {
|
|
1120
1128
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1129,7 +1137,7 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
1129
1137
|
} else {
|
|
1130
1138
|
a = Za(a);
|
|
1131
1139
|
try {
|
|
1132
|
-
e =
|
|
1140
|
+
e = Eb(a, {ab:!(b & 131072)}).node;
|
|
1133
1141
|
} catch (f) {
|
|
1134
1142
|
}
|
|
1135
1143
|
}
|
|
@@ -1137,58 +1145,58 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
1137
1145
|
if (b & 64) {
|
|
1138
1146
|
if (e) {
|
|
1139
1147
|
if (b & 128) {
|
|
1140
|
-
throw new
|
|
1148
|
+
throw new G(20);
|
|
1141
1149
|
}
|
|
1142
1150
|
} else {
|
|
1143
|
-
e =
|
|
1151
|
+
e = Rb(a, c, 0), d = !0;
|
|
1144
1152
|
}
|
|
1145
1153
|
}
|
|
1146
1154
|
if (!e) {
|
|
1147
|
-
throw new
|
|
1155
|
+
throw new G(44);
|
|
1148
1156
|
}
|
|
1149
1157
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1150
1158
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1151
|
-
throw new
|
|
1159
|
+
throw new G(54);
|
|
1152
1160
|
}
|
|
1153
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1154
|
-
throw new
|
|
1161
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Kb(b) || b & 512) ? 31 : Ib(e, Kb(b)) : 44)) {
|
|
1162
|
+
throw new G(c);
|
|
1155
1163
|
}
|
|
1156
1164
|
if (b & 512 && !d) {
|
|
1157
1165
|
c = e;
|
|
1158
|
-
c = "string" == typeof c ?
|
|
1166
|
+
c = "string" == typeof c ? Eb(c, {ab:!0}).node : c;
|
|
1159
1167
|
if (!c.l.O) {
|
|
1160
|
-
throw new
|
|
1168
|
+
throw new G(63);
|
|
1161
1169
|
}
|
|
1162
1170
|
if (16384 === (c.mode & 61440)) {
|
|
1163
|
-
throw new
|
|
1171
|
+
throw new G(31);
|
|
1164
1172
|
}
|
|
1165
1173
|
if (32768 !== (c.mode & 61440)) {
|
|
1166
|
-
throw new
|
|
1174
|
+
throw new G(28);
|
|
1167
1175
|
}
|
|
1168
|
-
if (d =
|
|
1169
|
-
throw new
|
|
1176
|
+
if (d = Ib(c, "w")) {
|
|
1177
|
+
throw new G(d);
|
|
1170
1178
|
}
|
|
1171
1179
|
c.l.O(c, {size:0, timestamp:Date.now()});
|
|
1172
1180
|
}
|
|
1173
1181
|
b &= -131713;
|
|
1174
|
-
e =
|
|
1182
|
+
e = Pb({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
|
|
1175
1183
|
e.m.open && e.m.open(e);
|
|
1176
|
-
!
|
|
1184
|
+
!l.logReadFiles || b & 1 || (Ub || (Ub = {}), a in Ub || (Ub[a] = 1));
|
|
1177
1185
|
return e;
|
|
1178
|
-
},
|
|
1186
|
+
}, Wb = (a, b, c) => {
|
|
1179
1187
|
if (null === a.V) {
|
|
1180
|
-
throw new
|
|
1188
|
+
throw new G(8);
|
|
1181
1189
|
}
|
|
1182
1190
|
if (!a.seekable || !a.m.$) {
|
|
1183
|
-
throw new
|
|
1191
|
+
throw new G(70);
|
|
1184
1192
|
}
|
|
1185
1193
|
if (0 != c && 1 != c && 2 != c) {
|
|
1186
|
-
throw new
|
|
1194
|
+
throw new G(28);
|
|
1187
1195
|
}
|
|
1188
1196
|
a.position = a.m.$(a, b, c);
|
|
1189
1197
|
a.oc = [];
|
|
1190
|
-
},
|
|
1191
|
-
|
|
1198
|
+
}, Xb = () => {
|
|
1199
|
+
G || (G = function(a, b) {
|
|
1192
1200
|
this.name = "ErrnoError";
|
|
1193
1201
|
this.node = b;
|
|
1194
1202
|
this.dc = function(c) {
|
|
@@ -1196,55 +1204,55 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {},
|
|
|
1196
1204
|
};
|
|
1197
1205
|
this.dc(a);
|
|
1198
1206
|
this.message = "FS error";
|
|
1199
|
-
},
|
|
1200
|
-
|
|
1201
|
-
|
|
1207
|
+
}, G.prototype = Error(), G.prototype.constructor = G, [44].forEach(a => {
|
|
1208
|
+
tb[a] = new G(a);
|
|
1209
|
+
tb[a].stack = "<generic error, no stack>";
|
|
1202
1210
|
}));
|
|
1203
|
-
},
|
|
1211
|
+
}, Yb, $b = (a, b, c) => {
|
|
1204
1212
|
a = Za("/dev/" + a);
|
|
1205
|
-
var d =
|
|
1206
|
-
|
|
1207
|
-
var e =
|
|
1208
|
-
|
|
1213
|
+
var d = wb(!!b, !!c);
|
|
1214
|
+
Zb || (Zb = 64);
|
|
1215
|
+
var e = Zb++ << 8 | 0;
|
|
1216
|
+
mb(e, {open:f => {
|
|
1209
1217
|
f.seekable = !1;
|
|
1210
1218
|
}, close:() => {
|
|
1211
1219
|
c && c.buffer && c.buffer.length && c(10);
|
|
1212
|
-
}, read:(f, g, k,
|
|
1213
|
-
for (var n = 0, t = 0; t <
|
|
1220
|
+
}, read:(f, g, k, p) => {
|
|
1221
|
+
for (var n = 0, t = 0; t < p; t++) {
|
|
1214
1222
|
try {
|
|
1215
|
-
var
|
|
1223
|
+
var w = b();
|
|
1216
1224
|
} catch (y) {
|
|
1217
|
-
throw new
|
|
1225
|
+
throw new G(29);
|
|
1218
1226
|
}
|
|
1219
|
-
if (void 0 ===
|
|
1220
|
-
throw new
|
|
1227
|
+
if (void 0 === w && 0 === n) {
|
|
1228
|
+
throw new G(6);
|
|
1221
1229
|
}
|
|
1222
|
-
if (null ===
|
|
1230
|
+
if (null === w || void 0 === w) {
|
|
1223
1231
|
break;
|
|
1224
1232
|
}
|
|
1225
1233
|
n++;
|
|
1226
|
-
g[k + t] =
|
|
1234
|
+
g[k + t] = w;
|
|
1227
1235
|
}
|
|
1228
1236
|
n && (f.node.timestamp = Date.now());
|
|
1229
1237
|
return n;
|
|
1230
|
-
}, write:(f, g, k,
|
|
1231
|
-
for (var n = 0; n <
|
|
1238
|
+
}, write:(f, g, k, p) => {
|
|
1239
|
+
for (var n = 0; n < p; n++) {
|
|
1232
1240
|
try {
|
|
1233
1241
|
c(g[k + n]);
|
|
1234
1242
|
} catch (t) {
|
|
1235
|
-
throw new
|
|
1243
|
+
throw new G(29);
|
|
1236
1244
|
}
|
|
1237
1245
|
}
|
|
1238
|
-
|
|
1246
|
+
p && (f.node.timestamp = Date.now());
|
|
1239
1247
|
return n;
|
|
1240
1248
|
}});
|
|
1241
|
-
|
|
1242
|
-
},
|
|
1243
|
-
function
|
|
1244
|
-
|
|
1245
|
-
return
|
|
1249
|
+
Sb(a, d, e);
|
|
1250
|
+
}, Zb, ac = {}, Ob, Ub, bc = void 0;
|
|
1251
|
+
function cc() {
|
|
1252
|
+
bc += 4;
|
|
1253
|
+
return D[bc - 4 >> 2];
|
|
1246
1254
|
}
|
|
1247
|
-
function
|
|
1255
|
+
function dc(a) {
|
|
1248
1256
|
if (void 0 === a) {
|
|
1249
1257
|
return "_unknown";
|
|
1250
1258
|
}
|
|
@@ -1252,24 +1260,24 @@ function cc(a) {
|
|
|
1252
1260
|
var b = a.charCodeAt(0);
|
|
1253
1261
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1254
1262
|
}
|
|
1255
|
-
function
|
|
1256
|
-
a =
|
|
1263
|
+
function ec(a, b) {
|
|
1264
|
+
a = dc(a);
|
|
1257
1265
|
return {[a]:function() {
|
|
1258
1266
|
return b.apply(this, arguments);
|
|
1259
1267
|
}}[a];
|
|
1260
1268
|
}
|
|
1261
|
-
function
|
|
1269
|
+
function fc() {
|
|
1262
1270
|
this.L = [void 0];
|
|
1263
1271
|
this.cb = [];
|
|
1264
1272
|
}
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
throw new
|
|
1273
|
+
var I = new fc(), gc = void 0;
|
|
1274
|
+
function K(a) {
|
|
1275
|
+
throw new gc(a);
|
|
1268
1276
|
}
|
|
1269
|
-
var
|
|
1270
|
-
a ||
|
|
1271
|
-
return
|
|
1272
|
-
},
|
|
1277
|
+
var hc = a => {
|
|
1278
|
+
a || K("Cannot use deleted val. handle = " + a);
|
|
1279
|
+
return I.get(a).value;
|
|
1280
|
+
}, ic = a => {
|
|
1273
1281
|
switch(a) {
|
|
1274
1282
|
case void 0:
|
|
1275
1283
|
return 1;
|
|
@@ -1280,11 +1288,11 @@ var gc = a => {
|
|
|
1280
1288
|
case !1:
|
|
1281
1289
|
return 4;
|
|
1282
1290
|
default:
|
|
1283
|
-
return
|
|
1291
|
+
return I.ra({pb:1, value:a});
|
|
1284
1292
|
}
|
|
1285
1293
|
};
|
|
1286
|
-
function
|
|
1287
|
-
var b = Error, c =
|
|
1294
|
+
function jc(a) {
|
|
1295
|
+
var b = Error, c = ec(a, function(d) {
|
|
1288
1296
|
this.name = a;
|
|
1289
1297
|
this.message = d;
|
|
1290
1298
|
d = Error(d).stack;
|
|
@@ -1297,122 +1305,122 @@ function ic(a) {
|
|
|
1297
1305
|
};
|
|
1298
1306
|
return c;
|
|
1299
1307
|
}
|
|
1300
|
-
var
|
|
1301
|
-
function
|
|
1302
|
-
for (var b = "";
|
|
1303
|
-
b +=
|
|
1308
|
+
var kc = void 0, lc = void 0;
|
|
1309
|
+
function L(a) {
|
|
1310
|
+
for (var b = ""; x[a];) {
|
|
1311
|
+
b += lc[x[a++]];
|
|
1304
1312
|
}
|
|
1305
1313
|
return b;
|
|
1306
1314
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
for (;
|
|
1310
|
-
var a =
|
|
1315
|
+
var mc = [];
|
|
1316
|
+
function nc() {
|
|
1317
|
+
for (; mc.length;) {
|
|
1318
|
+
var a = mc.pop();
|
|
1311
1319
|
a.g.ga = !1;
|
|
1312
1320
|
a["delete"]();
|
|
1313
1321
|
}
|
|
1314
1322
|
}
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1317
|
-
for (void 0 === b &&
|
|
1323
|
+
var oc = void 0, pc = {};
|
|
1324
|
+
function qc(a, b) {
|
|
1325
|
+
for (void 0 === b && K("ptr should not be undefined"); a.A;) {
|
|
1318
1326
|
b = a.na(b), a = a.A;
|
|
1319
1327
|
}
|
|
1320
1328
|
return b;
|
|
1321
1329
|
}
|
|
1322
|
-
var
|
|
1323
|
-
function
|
|
1324
|
-
a =
|
|
1325
|
-
var b =
|
|
1326
|
-
|
|
1330
|
+
var rc = {};
|
|
1331
|
+
function sc(a) {
|
|
1332
|
+
a = tc(a);
|
|
1333
|
+
var b = L(a);
|
|
1334
|
+
uc(a);
|
|
1327
1335
|
return b;
|
|
1328
1336
|
}
|
|
1329
|
-
function
|
|
1330
|
-
var c =
|
|
1331
|
-
void 0 === c &&
|
|
1337
|
+
function vc(a, b) {
|
|
1338
|
+
var c = rc[a];
|
|
1339
|
+
void 0 === c && K(b + " has unknown type " + sc(a));
|
|
1332
1340
|
return c;
|
|
1333
1341
|
}
|
|
1334
|
-
function
|
|
1342
|
+
function wc() {
|
|
1335
1343
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1344
|
+
var xc = !1;
|
|
1345
|
+
function yc(a) {
|
|
1338
1346
|
--a.count.value;
|
|
1339
1347
|
0 === a.count.value && (a.G ? a.K.U(a.G) : a.u.i.U(a.o));
|
|
1340
1348
|
}
|
|
1341
|
-
function
|
|
1349
|
+
function zc(a, b, c) {
|
|
1342
1350
|
if (b === c) {
|
|
1343
1351
|
return a;
|
|
1344
1352
|
}
|
|
1345
1353
|
if (void 0 === c.A) {
|
|
1346
1354
|
return null;
|
|
1347
1355
|
}
|
|
1348
|
-
a =
|
|
1356
|
+
a = zc(a, b, c.A);
|
|
1349
1357
|
return null === a ? null : c.Ib(a);
|
|
1350
1358
|
}
|
|
1351
|
-
var
|
|
1352
|
-
function
|
|
1353
|
-
b =
|
|
1354
|
-
return
|
|
1359
|
+
var Ac = {};
|
|
1360
|
+
function Bc(a, b) {
|
|
1361
|
+
b = qc(a, b);
|
|
1362
|
+
return pc[b];
|
|
1355
1363
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1358
|
-
throw new
|
|
1364
|
+
var Cc = void 0;
|
|
1365
|
+
function Dc(a) {
|
|
1366
|
+
throw new Cc(a);
|
|
1359
1367
|
}
|
|
1360
|
-
function
|
|
1361
|
-
b.u && b.o ||
|
|
1362
|
-
!!b.K !== !!b.G &&
|
|
1368
|
+
function Ec(a, b) {
|
|
1369
|
+
b.u && b.o || Dc("makeClassHandle requires ptr and ptrType");
|
|
1370
|
+
!!b.K !== !!b.G && Dc("Both smartPtrType and smartPtr must be specified");
|
|
1363
1371
|
b.count = {value:1};
|
|
1364
|
-
return
|
|
1372
|
+
return Fc(Object.create(a, {g:{value:b,},}));
|
|
1365
1373
|
}
|
|
1366
|
-
function
|
|
1374
|
+
function Fc(a) {
|
|
1367
1375
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1368
|
-
return
|
|
1376
|
+
return Fc = b => b, a;
|
|
1369
1377
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1378
|
+
xc = new FinalizationRegistry(b => {
|
|
1379
|
+
yc(b.g);
|
|
1372
1380
|
});
|
|
1373
|
-
|
|
1381
|
+
Fc = b => {
|
|
1374
1382
|
var c = b.g;
|
|
1375
|
-
c.G &&
|
|
1383
|
+
c.G && xc.register(b, {g:c}, b);
|
|
1376
1384
|
return b;
|
|
1377
1385
|
};
|
|
1378
|
-
|
|
1379
|
-
|
|
1386
|
+
wc = b => {
|
|
1387
|
+
xc.unregister(b);
|
|
1380
1388
|
};
|
|
1381
|
-
return
|
|
1389
|
+
return Fc(a);
|
|
1382
1390
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1391
|
+
var Gc = {};
|
|
1392
|
+
function Hc(a) {
|
|
1385
1393
|
for (; a.length;) {
|
|
1386
1394
|
var b = a.pop();
|
|
1387
1395
|
a.pop()(b);
|
|
1388
1396
|
}
|
|
1389
1397
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return this.fromWireType(
|
|
1398
|
+
function Ic(a) {
|
|
1399
|
+
return this.fromWireType(D[a >> 2]);
|
|
1392
1400
|
}
|
|
1393
|
-
var
|
|
1394
|
-
function
|
|
1401
|
+
var Jc = {}, Kc = {};
|
|
1402
|
+
function N(a, b, c) {
|
|
1395
1403
|
function d(k) {
|
|
1396
1404
|
k = c(k);
|
|
1397
|
-
k.length !== a.length &&
|
|
1398
|
-
for (var
|
|
1399
|
-
|
|
1405
|
+
k.length !== a.length && Dc("Mismatched type converter count");
|
|
1406
|
+
for (var p = 0; p < a.length; ++p) {
|
|
1407
|
+
Lc(a[p], k[p]);
|
|
1400
1408
|
}
|
|
1401
1409
|
}
|
|
1402
1410
|
a.forEach(function(k) {
|
|
1403
|
-
|
|
1411
|
+
Kc[k] = b;
|
|
1404
1412
|
});
|
|
1405
1413
|
var e = Array(b.length), f = [], g = 0;
|
|
1406
|
-
b.forEach((k,
|
|
1407
|
-
|
|
1408
|
-
e[
|
|
1414
|
+
b.forEach((k, p) => {
|
|
1415
|
+
rc.hasOwnProperty(k) ? e[p] = rc[k] : (f.push(k), Jc.hasOwnProperty(k) || (Jc[k] = []), Jc[k].push(() => {
|
|
1416
|
+
e[p] = rc[k];
|
|
1409
1417
|
++g;
|
|
1410
1418
|
g === f.length && d(e);
|
|
1411
1419
|
}));
|
|
1412
1420
|
});
|
|
1413
1421
|
0 === f.length && d(e);
|
|
1414
1422
|
}
|
|
1415
|
-
function
|
|
1423
|
+
function Mc(a) {
|
|
1416
1424
|
switch(a) {
|
|
1417
1425
|
case 1:
|
|
1418
1426
|
return 0;
|
|
@@ -1426,45 +1434,45 @@ function Lc(a) {
|
|
|
1426
1434
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1427
1435
|
}
|
|
1428
1436
|
}
|
|
1429
|
-
function
|
|
1437
|
+
function Nc(a, b, c = {}) {
|
|
1430
1438
|
var d = b.name;
|
|
1431
|
-
a ||
|
|
1432
|
-
if (
|
|
1439
|
+
a || K(`type "${d}" must have a positive integer typeid pointer`);
|
|
1440
|
+
if (rc.hasOwnProperty(a)) {
|
|
1433
1441
|
if (c.Tb) {
|
|
1434
1442
|
return;
|
|
1435
1443
|
}
|
|
1436
|
-
|
|
1444
|
+
K(`Cannot register type '${d}' twice`);
|
|
1437
1445
|
}
|
|
1438
|
-
|
|
1439
|
-
delete
|
|
1440
|
-
|
|
1446
|
+
rc[a] = b;
|
|
1447
|
+
delete Kc[a];
|
|
1448
|
+
Jc.hasOwnProperty(a) && (b = Jc[a], delete Jc[a], b.forEach(e => e()));
|
|
1441
1449
|
}
|
|
1442
|
-
function
|
|
1450
|
+
function Lc(a, b, c = {}) {
|
|
1443
1451
|
if (!("argPackAdvance" in b)) {
|
|
1444
1452
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1445
1453
|
}
|
|
1446
|
-
|
|
1454
|
+
Nc(a, b, c);
|
|
1447
1455
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1456
|
+
function Oc(a) {
|
|
1457
|
+
K(a.g.u.i.name + " instance already deleted");
|
|
1450
1458
|
}
|
|
1451
|
-
function
|
|
1459
|
+
function Pc() {
|
|
1452
1460
|
}
|
|
1453
|
-
function
|
|
1461
|
+
function Qc(a, b, c) {
|
|
1454
1462
|
if (void 0 === a[b].B) {
|
|
1455
1463
|
var d = a[b];
|
|
1456
1464
|
a[b] = function() {
|
|
1457
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1465
|
+
a[b].B.hasOwnProperty(arguments.length) || K(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1458
1466
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1459
1467
|
};
|
|
1460
1468
|
a[b].B = [];
|
|
1461
1469
|
a[b].B[d.ea] = d;
|
|
1462
1470
|
}
|
|
1463
1471
|
}
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1472
|
+
function Rc(a, b, c) {
|
|
1473
|
+
l.hasOwnProperty(a) ? ((void 0 === c || void 0 !== l[a].B && void 0 !== l[a].B[c]) && K(`Cannot register public name '${a}' twice`), Qc(l, a, a), l.hasOwnProperty(c) && K(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), l[a].B[c] = b) : (l[a] = b, void 0 !== c && (l[a].Hc = c));
|
|
1466
1474
|
}
|
|
1467
|
-
function
|
|
1475
|
+
function Sc(a, b, c, d, e, f, g, k) {
|
|
1468
1476
|
this.name = a;
|
|
1469
1477
|
this.constructor = b;
|
|
1470
1478
|
this.M = c;
|
|
@@ -1475,23 +1483,23 @@ function Rc(a, b, c, d, e, f, g, k) {
|
|
|
1475
1483
|
this.Ib = k;
|
|
1476
1484
|
this.mb = [];
|
|
1477
1485
|
}
|
|
1478
|
-
function
|
|
1486
|
+
function Tc(a, b, c) {
|
|
1479
1487
|
for (; b !== c;) {
|
|
1480
|
-
b.na ||
|
|
1488
|
+
b.na || K(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
|
|
1481
1489
|
}
|
|
1482
1490
|
return a;
|
|
1483
1491
|
}
|
|
1484
|
-
function
|
|
1492
|
+
function Uc(a, b) {
|
|
1485
1493
|
if (null === b) {
|
|
1486
|
-
return this.Na &&
|
|
1494
|
+
return this.Na && K(`null is not a valid ${this.name}`), 0;
|
|
1487
1495
|
}
|
|
1488
|
-
b.g ||
|
|
1489
|
-
b.g.o ||
|
|
1490
|
-
return
|
|
1496
|
+
b.g || K(`Cannot pass "${Vc(b)}" as a ${this.name}`);
|
|
1497
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1498
|
+
return Tc(b.g.o, b.g.u.i, this.i);
|
|
1491
1499
|
}
|
|
1492
|
-
function
|
|
1500
|
+
function Wc(a, b) {
|
|
1493
1501
|
if (null === b) {
|
|
1494
|
-
this.Na &&
|
|
1502
|
+
this.Na && K(`null is not a valid ${this.name}`);
|
|
1495
1503
|
if (this.wa) {
|
|
1496
1504
|
var c = this.Pa();
|
|
1497
1505
|
null !== a && a.push(this.U, c);
|
|
@@ -1499,14 +1507,14 @@ function Vc(a, b) {
|
|
|
1499
1507
|
}
|
|
1500
1508
|
return 0;
|
|
1501
1509
|
}
|
|
1502
|
-
b.g ||
|
|
1503
|
-
b.g.o ||
|
|
1504
|
-
!this.va && b.g.u.va &&
|
|
1505
|
-
c =
|
|
1510
|
+
b.g || K(`Cannot pass "${Vc(b)}" as a ${this.name}`);
|
|
1511
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1512
|
+
!this.va && b.g.u.va && K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1513
|
+
c = Tc(b.g.o, b.g.u.i, this.i);
|
|
1506
1514
|
if (this.wa) {
|
|
1507
|
-
switch(void 0 === b.g.G &&
|
|
1515
|
+
switch(void 0 === b.g.G && K("Passing raw pointer to smart pointer is illegal"), this.ic) {
|
|
1508
1516
|
case 0:
|
|
1509
|
-
b.g.K === this ? c = b.g.G :
|
|
1517
|
+
b.g.K === this ? c = b.g.G : K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1510
1518
|
break;
|
|
1511
1519
|
case 1:
|
|
1512
1520
|
c = b.g.G;
|
|
@@ -1516,51 +1524,51 @@ function Vc(a, b) {
|
|
|
1516
1524
|
c = b.g.G;
|
|
1517
1525
|
} else {
|
|
1518
1526
|
var d = b.clone();
|
|
1519
|
-
c = this.cc(c,
|
|
1527
|
+
c = this.cc(c, ic(function() {
|
|
1520
1528
|
d["delete"]();
|
|
1521
1529
|
}));
|
|
1522
1530
|
null !== a && a.push(this.U, c);
|
|
1523
1531
|
}
|
|
1524
1532
|
break;
|
|
1525
1533
|
default:
|
|
1526
|
-
|
|
1534
|
+
K("Unsupporting sharing policy");
|
|
1527
1535
|
}
|
|
1528
1536
|
}
|
|
1529
1537
|
return c;
|
|
1530
1538
|
}
|
|
1531
|
-
function
|
|
1539
|
+
function Xc(a, b) {
|
|
1532
1540
|
if (null === b) {
|
|
1533
|
-
return this.Na &&
|
|
1541
|
+
return this.Na && K(`null is not a valid ${this.name}`), 0;
|
|
1534
1542
|
}
|
|
1535
|
-
b.g ||
|
|
1536
|
-
b.g.o ||
|
|
1537
|
-
b.g.u.va &&
|
|
1538
|
-
return
|
|
1543
|
+
b.g || K(`Cannot pass "${Vc(b)}" as a ${this.name}`);
|
|
1544
|
+
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1545
|
+
b.g.u.va && K(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1546
|
+
return Tc(b.g.o, b.g.u.i, this.i);
|
|
1539
1547
|
}
|
|
1540
|
-
function
|
|
1548
|
+
function Yc(a, b, c, d) {
|
|
1541
1549
|
this.name = a;
|
|
1542
1550
|
this.i = b;
|
|
1543
1551
|
this.Na = c;
|
|
1544
1552
|
this.va = d;
|
|
1545
1553
|
this.wa = !1;
|
|
1546
1554
|
this.U = this.cc = this.Pa = this.nb = this.ic = this.bc = void 0;
|
|
1547
|
-
void 0 !== b.A ? this.toWireType =
|
|
1555
|
+
void 0 !== b.A ? this.toWireType = Wc : (this.toWireType = d ? Uc : Xc, this.J = null);
|
|
1548
1556
|
}
|
|
1549
|
-
function
|
|
1550
|
-
|
|
1551
|
-
void 0 !==
|
|
1557
|
+
function Zc(a, b, c) {
|
|
1558
|
+
l.hasOwnProperty(a) || Dc("Replacing nonexistant public symbol");
|
|
1559
|
+
void 0 !== l[a].B && void 0 !== c ? l[a].B[c] = b : (l[a] = b, l[a].ea = c);
|
|
1552
1560
|
}
|
|
1553
|
-
var
|
|
1554
|
-
var b =
|
|
1555
|
-
b || (a >=
|
|
1561
|
+
var $c = [], Q = a => {
|
|
1562
|
+
var b = $c[a];
|
|
1563
|
+
b || (a >= $c.length && ($c.length = a + 1), $c[a] = b = Ca.get(a));
|
|
1556
1564
|
return b;
|
|
1557
|
-
},
|
|
1565
|
+
}, ad = (a, b) => {
|
|
1558
1566
|
var c = [];
|
|
1559
1567
|
return function() {
|
|
1560
1568
|
c.length = 0;
|
|
1561
1569
|
Object.assign(c, arguments);
|
|
1562
1570
|
if (a.includes("j")) {
|
|
1563
|
-
var d =
|
|
1571
|
+
var d = l["dynCall_" + a];
|
|
1564
1572
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1565
1573
|
} else {
|
|
1566
1574
|
d = Q(b).apply(null, c);
|
|
@@ -1569,23 +1577,23 @@ var Zc = [], Q = a => {
|
|
|
1569
1577
|
};
|
|
1570
1578
|
};
|
|
1571
1579
|
function R(a, b) {
|
|
1572
|
-
a =
|
|
1573
|
-
var c = a.includes("j") ?
|
|
1574
|
-
"function" != typeof c &&
|
|
1580
|
+
a = L(a);
|
|
1581
|
+
var c = a.includes("j") ? ad(a, b) : Q(b);
|
|
1582
|
+
"function" != typeof c && K(`unknown function pointer with signature ${a}: ${b}`);
|
|
1575
1583
|
return c;
|
|
1576
1584
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1585
|
+
var bd = void 0;
|
|
1586
|
+
function cd(a, b) {
|
|
1579
1587
|
function c(f) {
|
|
1580
|
-
e[f] ||
|
|
1588
|
+
e[f] || rc[f] || (Kc[f] ? Kc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1581
1589
|
}
|
|
1582
1590
|
var d = [], e = {};
|
|
1583
1591
|
b.forEach(c);
|
|
1584
|
-
throw new
|
|
1592
|
+
throw new bd(`${a}: ` + d.map(sc).join([", "]));
|
|
1585
1593
|
}
|
|
1586
|
-
function
|
|
1594
|
+
function dd(a, b, c, d, e) {
|
|
1587
1595
|
var f = b.length;
|
|
1588
|
-
2 > f &&
|
|
1596
|
+
2 > f && K("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1589
1597
|
var g = null !== b[1] && null !== c, k = !1;
|
|
1590
1598
|
for (c = 1; c < b.length; ++c) {
|
|
1591
1599
|
if (null !== b[c] && void 0 === b[c].J) {
|
|
@@ -1593,52 +1601,52 @@ function cd(a, b, c, d, e) {
|
|
|
1593
1601
|
break;
|
|
1594
1602
|
}
|
|
1595
1603
|
}
|
|
1596
|
-
var
|
|
1604
|
+
var p = "void" !== b[0].name, n = f - 2, t = Array(n), w = [], y = [];
|
|
1597
1605
|
return function() {
|
|
1598
|
-
arguments.length !== n &&
|
|
1606
|
+
arguments.length !== n && K(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
|
|
1599
1607
|
y.length = 0;
|
|
1600
|
-
|
|
1601
|
-
|
|
1608
|
+
w.length = g ? 2 : 1;
|
|
1609
|
+
w[0] = e;
|
|
1602
1610
|
if (g) {
|
|
1603
|
-
var
|
|
1604
|
-
|
|
1611
|
+
var q = b[1].toWireType(y, this);
|
|
1612
|
+
w[1] = q;
|
|
1605
1613
|
}
|
|
1606
1614
|
for (var r = 0; r < n; ++r) {
|
|
1607
|
-
t[r] = b[r + 2].toWireType(y, arguments[r]),
|
|
1615
|
+
t[r] = b[r + 2].toWireType(y, arguments[r]), w.push(t[r]);
|
|
1608
1616
|
}
|
|
1609
|
-
r = d.apply(null,
|
|
1617
|
+
r = d.apply(null, w);
|
|
1610
1618
|
if (k) {
|
|
1611
|
-
|
|
1619
|
+
Hc(y);
|
|
1612
1620
|
} else {
|
|
1613
|
-
for (var
|
|
1614
|
-
var z = 1 ===
|
|
1615
|
-
null !== b[
|
|
1621
|
+
for (var u = g ? 1 : 2; u < b.length; u++) {
|
|
1622
|
+
var z = 1 === u ? q : t[u - 2];
|
|
1623
|
+
null !== b[u].J && b[u].J(z);
|
|
1616
1624
|
}
|
|
1617
1625
|
}
|
|
1618
|
-
|
|
1619
|
-
return
|
|
1626
|
+
q = p ? b[0].fromWireType(r) : void 0;
|
|
1627
|
+
return q;
|
|
1620
1628
|
};
|
|
1621
1629
|
}
|
|
1622
|
-
function
|
|
1630
|
+
function ed(a, b) {
|
|
1623
1631
|
for (var c = [], d = 0; d < a; d++) {
|
|
1624
|
-
c.push(
|
|
1632
|
+
c.push(E[b + 4 * d >> 2]);
|
|
1625
1633
|
}
|
|
1626
1634
|
return c;
|
|
1627
1635
|
}
|
|
1628
|
-
function
|
|
1629
|
-
a instanceof Object ||
|
|
1630
|
-
a instanceof b.i.constructor ||
|
|
1631
|
-
a.g.o ||
|
|
1632
|
-
return
|
|
1636
|
+
function fd(a, b, c) {
|
|
1637
|
+
a instanceof Object || K(`${c} with invalid "this": ${a}`);
|
|
1638
|
+
a instanceof b.i.constructor || K(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1639
|
+
a.g.o || K(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1640
|
+
return Tc(a.g.o, a.g.u.i, b.i);
|
|
1633
1641
|
}
|
|
1634
|
-
function
|
|
1635
|
-
a >=
|
|
1642
|
+
function gd(a) {
|
|
1643
|
+
a >= I.h && 0 === --I.get(a).pb && I.Sb(a);
|
|
1636
1644
|
}
|
|
1637
|
-
function
|
|
1645
|
+
function hd(a, b, c) {
|
|
1638
1646
|
switch(b) {
|
|
1639
1647
|
case 0:
|
|
1640
1648
|
return function(d) {
|
|
1641
|
-
return this.fromWireType((c ?
|
|
1649
|
+
return this.fromWireType((c ? v : x)[d]);
|
|
1642
1650
|
};
|
|
1643
1651
|
case 1:
|
|
1644
1652
|
return function(d) {
|
|
@@ -1646,24 +1654,24 @@ function gd(a, b, c) {
|
|
|
1646
1654
|
};
|
|
1647
1655
|
case 2:
|
|
1648
1656
|
return function(d) {
|
|
1649
|
-
return this.fromWireType((c ?
|
|
1657
|
+
return this.fromWireType((c ? D : E)[d >> 2]);
|
|
1650
1658
|
};
|
|
1651
1659
|
default:
|
|
1652
1660
|
throw new TypeError("Unknown integer type: " + a);
|
|
1653
1661
|
}
|
|
1654
1662
|
}
|
|
1655
|
-
function
|
|
1663
|
+
function Vc(a) {
|
|
1656
1664
|
if (null === a) {
|
|
1657
1665
|
return "null";
|
|
1658
1666
|
}
|
|
1659
1667
|
var b = typeof a;
|
|
1660
1668
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1661
1669
|
}
|
|
1662
|
-
function
|
|
1670
|
+
function jd(a, b) {
|
|
1663
1671
|
switch(b) {
|
|
1664
1672
|
case 2:
|
|
1665
1673
|
return function(c) {
|
|
1666
|
-
return this.fromWireType(
|
|
1674
|
+
return this.fromWireType(F[c >> 2]);
|
|
1667
1675
|
};
|
|
1668
1676
|
case 3:
|
|
1669
1677
|
return function(c) {
|
|
@@ -1673,13 +1681,13 @@ function hd(a, b) {
|
|
|
1673
1681
|
throw new TypeError("Unknown float type: " + a);
|
|
1674
1682
|
}
|
|
1675
1683
|
}
|
|
1676
|
-
function
|
|
1684
|
+
function kd(a, b, c) {
|
|
1677
1685
|
switch(b) {
|
|
1678
1686
|
case 0:
|
|
1679
1687
|
return c ? function(d) {
|
|
1680
|
-
return
|
|
1688
|
+
return v[d];
|
|
1681
1689
|
} : function(d) {
|
|
1682
|
-
return
|
|
1690
|
+
return x[d];
|
|
1683
1691
|
};
|
|
1684
1692
|
case 1:
|
|
1685
1693
|
return c ? function(d) {
|
|
@@ -1689,22 +1697,22 @@ function jd(a, b, c) {
|
|
|
1689
1697
|
};
|
|
1690
1698
|
case 2:
|
|
1691
1699
|
return c ? function(d) {
|
|
1692
|
-
return B[d >> 2];
|
|
1693
|
-
} : function(d) {
|
|
1694
1700
|
return D[d >> 2];
|
|
1701
|
+
} : function(d) {
|
|
1702
|
+
return E[d >> 2];
|
|
1695
1703
|
};
|
|
1696
1704
|
default:
|
|
1697
1705
|
throw new TypeError("Unknown integer type: " + a);
|
|
1698
1706
|
}
|
|
1699
1707
|
}
|
|
1700
|
-
var
|
|
1708
|
+
var ld = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, md = (a, b) => {
|
|
1701
1709
|
var c = a >> 1;
|
|
1702
1710
|
for (var d = c + b / 2; !(c >= d) && za[c];) {
|
|
1703
1711
|
++c;
|
|
1704
1712
|
}
|
|
1705
1713
|
c <<= 1;
|
|
1706
|
-
if (32 < c - a &&
|
|
1707
|
-
return
|
|
1714
|
+
if (32 < c - a && ld) {
|
|
1715
|
+
return ld.decode(x.subarray(a, c));
|
|
1708
1716
|
}
|
|
1709
1717
|
c = "";
|
|
1710
1718
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1715,7 +1723,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1715
1723
|
c += String.fromCharCode(e);
|
|
1716
1724
|
}
|
|
1717
1725
|
return c;
|
|
1718
|
-
},
|
|
1726
|
+
}, nd = (a, b, c) => {
|
|
1719
1727
|
void 0 === c && (c = 2147483647);
|
|
1720
1728
|
if (2 > c) {
|
|
1721
1729
|
return 0;
|
|
@@ -1728,9 +1736,9 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1728
1736
|
}
|
|
1729
1737
|
A[b >> 1] = 0;
|
|
1730
1738
|
return b - d;
|
|
1731
|
-
},
|
|
1739
|
+
}, od = a => 2 * a.length, pd = (a, b) => {
|
|
1732
1740
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1733
|
-
var e =
|
|
1741
|
+
var e = D[a + 4 * c >> 2];
|
|
1734
1742
|
if (0 == e) {
|
|
1735
1743
|
break;
|
|
1736
1744
|
}
|
|
@@ -1738,7 +1746,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1738
1746
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1739
1747
|
}
|
|
1740
1748
|
return d;
|
|
1741
|
-
},
|
|
1749
|
+
}, qd = (a, b, c) => {
|
|
1742
1750
|
void 0 === c && (c = 2147483647);
|
|
1743
1751
|
if (4 > c) {
|
|
1744
1752
|
return 0;
|
|
@@ -1751,40 +1759,40 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1751
1759
|
var g = a.charCodeAt(++e);
|
|
1752
1760
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1753
1761
|
}
|
|
1754
|
-
|
|
1762
|
+
D[b >> 2] = f;
|
|
1755
1763
|
b += 4;
|
|
1756
1764
|
if (b + 4 > c) {
|
|
1757
1765
|
break;
|
|
1758
1766
|
}
|
|
1759
1767
|
}
|
|
1760
|
-
|
|
1768
|
+
D[b >> 2] = 0;
|
|
1761
1769
|
return b - d;
|
|
1762
|
-
},
|
|
1770
|
+
}, rd = a => {
|
|
1763
1771
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1764
1772
|
var d = a.charCodeAt(c);
|
|
1765
1773
|
55296 <= d && 57343 >= d && ++c;
|
|
1766
1774
|
b += 4;
|
|
1767
1775
|
}
|
|
1768
1776
|
return b;
|
|
1769
|
-
},
|
|
1770
|
-
function
|
|
1771
|
-
var b =
|
|
1772
|
-
return void 0 === b ?
|
|
1777
|
+
}, sd = {};
|
|
1778
|
+
function td(a) {
|
|
1779
|
+
var b = sd[a];
|
|
1780
|
+
return void 0 === b ? L(a) : b;
|
|
1773
1781
|
}
|
|
1774
|
-
var
|
|
1775
|
-
function
|
|
1776
|
-
var b =
|
|
1777
|
-
|
|
1782
|
+
var ud = [];
|
|
1783
|
+
function vd(a) {
|
|
1784
|
+
var b = ud.length;
|
|
1785
|
+
ud.push(a);
|
|
1778
1786
|
return b;
|
|
1779
1787
|
}
|
|
1780
|
-
function
|
|
1788
|
+
function wd(a, b) {
|
|
1781
1789
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1782
|
-
c[d] =
|
|
1790
|
+
c[d] = vc(E[b + 4 * d >> 2], "parameter " + d);
|
|
1783
1791
|
}
|
|
1784
1792
|
return c;
|
|
1785
1793
|
}
|
|
1786
|
-
var
|
|
1787
|
-
function
|
|
1794
|
+
var xd = [], yd = [];
|
|
1795
|
+
function zd(a) {
|
|
1788
1796
|
var b = a.getExtension("ANGLE_instanced_arrays");
|
|
1789
1797
|
b && (a.vertexAttribDivisor = function(c, d) {
|
|
1790
1798
|
b.vertexAttribDivisorANGLE(c, d);
|
|
@@ -1794,7 +1802,7 @@ function yd(a) {
|
|
|
1794
1802
|
b.drawElementsInstancedANGLE(c, d, e, f, g);
|
|
1795
1803
|
});
|
|
1796
1804
|
}
|
|
1797
|
-
function
|
|
1805
|
+
function Ad(a) {
|
|
1798
1806
|
var b = a.getExtension("OES_vertex_array_object");
|
|
1799
1807
|
b && (a.createVertexArray = function() {
|
|
1800
1808
|
return b.createVertexArrayOES();
|
|
@@ -1806,25 +1814,25 @@ function zd(a) {
|
|
|
1806
1814
|
return b.isVertexArrayOES(c);
|
|
1807
1815
|
});
|
|
1808
1816
|
}
|
|
1809
|
-
function
|
|
1817
|
+
function Bd(a) {
|
|
1810
1818
|
var b = a.getExtension("WEBGL_draw_buffers");
|
|
1811
1819
|
b && (a.drawBuffers = function(c, d) {
|
|
1812
1820
|
b.drawBuffersWEBGL(c, d);
|
|
1813
1821
|
});
|
|
1814
1822
|
}
|
|
1815
|
-
var
|
|
1823
|
+
var Cd = 1, Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [], Jd = [], ja = [], Kd = [], Ld = [], Md = {}, Nd = {}, Od = 4;
|
|
1816
1824
|
function S(a) {
|
|
1817
|
-
|
|
1825
|
+
Pd || (Pd = a);
|
|
1818
1826
|
}
|
|
1819
|
-
function
|
|
1820
|
-
for (var b =
|
|
1827
|
+
function ha(a) {
|
|
1828
|
+
for (var b = Cd++, c = a.length; c < b; c++) {
|
|
1821
1829
|
a[c] = null;
|
|
1822
1830
|
}
|
|
1823
1831
|
return b;
|
|
1824
1832
|
}
|
|
1825
1833
|
function la(a) {
|
|
1826
1834
|
T = ja[a];
|
|
1827
|
-
|
|
1835
|
+
l.yc = U = T && T.Ta;
|
|
1828
1836
|
return !(a && !U);
|
|
1829
1837
|
}
|
|
1830
1838
|
function ka(a) {
|
|
@@ -1832,9 +1840,9 @@ function ka(a) {
|
|
|
1832
1840
|
if (!a.Ub) {
|
|
1833
1841
|
a.Ub = !0;
|
|
1834
1842
|
var b = a.Ta;
|
|
1835
|
-
yd(b);
|
|
1836
1843
|
zd(b);
|
|
1837
1844
|
Ad(b);
|
|
1845
|
+
Bd(b);
|
|
1838
1846
|
b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1839
1847
|
b.gb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1840
1848
|
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
@@ -1847,35 +1855,35 @@ function ka(a) {
|
|
|
1847
1855
|
});
|
|
1848
1856
|
}
|
|
1849
1857
|
}
|
|
1850
|
-
var
|
|
1851
|
-
function
|
|
1852
|
-
U.bindFramebuffer(a,
|
|
1858
|
+
var Pd, T;
|
|
1859
|
+
function Qd(a, b) {
|
|
1860
|
+
U.bindFramebuffer(a, Fd[b]);
|
|
1853
1861
|
}
|
|
1854
|
-
function
|
|
1855
|
-
U.bindVertexArray(
|
|
1862
|
+
function Rd(a) {
|
|
1863
|
+
U.bindVertexArray(Jd[a]);
|
|
1856
1864
|
}
|
|
1857
|
-
function
|
|
1865
|
+
function Sd(a, b) {
|
|
1858
1866
|
for (var c = 0; c < a; c++) {
|
|
1859
|
-
var d =
|
|
1860
|
-
U.deleteVertexArray(
|
|
1861
|
-
|
|
1867
|
+
var d = D[b + 4 * c >> 2];
|
|
1868
|
+
U.deleteVertexArray(Jd[d]);
|
|
1869
|
+
Jd[d] = null;
|
|
1862
1870
|
}
|
|
1863
1871
|
}
|
|
1864
|
-
var
|
|
1865
|
-
function
|
|
1872
|
+
var Td = [];
|
|
1873
|
+
function Ud(a, b, c, d) {
|
|
1866
1874
|
U.drawElements(a, b, c, d);
|
|
1867
1875
|
}
|
|
1868
|
-
function
|
|
1876
|
+
function Vd(a, b, c, d) {
|
|
1869
1877
|
for (var e = 0; e < a; e++) {
|
|
1870
|
-
var f = U[c](), g = f &&
|
|
1878
|
+
var f = U[c](), g = f && ha(d);
|
|
1871
1879
|
f ? (f.name = g, d[g] = f) : S(1282);
|
|
1872
|
-
|
|
1880
|
+
D[b + 4 * e >> 2] = g;
|
|
1873
1881
|
}
|
|
1874
1882
|
}
|
|
1875
|
-
function Vd(a, b) {
|
|
1876
|
-
Ud(a, b, "createVertexArray", Id);
|
|
1877
|
-
}
|
|
1878
1883
|
function Wd(a, b) {
|
|
1884
|
+
Vd(a, b, "createVertexArray", Jd);
|
|
1885
|
+
}
|
|
1886
|
+
function Xd(a, b) {
|
|
1879
1887
|
if (b) {
|
|
1880
1888
|
var c = void 0;
|
|
1881
1889
|
switch(a) {
|
|
@@ -1949,7 +1957,7 @@ function Wd(a, b) {
|
|
|
1949
1957
|
} else {
|
|
1950
1958
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1951
1959
|
for (a = 0; a < d.length; ++a) {
|
|
1952
|
-
|
|
1960
|
+
D[b + 4 * a >> 2] = d[a];
|
|
1953
1961
|
}
|
|
1954
1962
|
return;
|
|
1955
1963
|
}
|
|
@@ -1968,29 +1976,29 @@ function Wd(a, b) {
|
|
|
1968
1976
|
return;
|
|
1969
1977
|
}
|
|
1970
1978
|
}
|
|
1971
|
-
|
|
1979
|
+
D[b >> 2] = c;
|
|
1972
1980
|
} else {
|
|
1973
1981
|
S(1281);
|
|
1974
1982
|
}
|
|
1975
1983
|
}
|
|
1976
|
-
function
|
|
1977
|
-
|
|
1984
|
+
function Yd(a, b) {
|
|
1985
|
+
Xd(a, b);
|
|
1978
1986
|
}
|
|
1979
|
-
var
|
|
1980
|
-
var b =
|
|
1981
|
-
c &&
|
|
1987
|
+
var $d = a => {
|
|
1988
|
+
var b = hb(a) + 1, c = Zd(b);
|
|
1989
|
+
c && ib(a, x, c, b);
|
|
1982
1990
|
return c;
|
|
1983
1991
|
};
|
|
1984
|
-
function
|
|
1992
|
+
function ae(a) {
|
|
1985
1993
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
1986
1994
|
}
|
|
1987
|
-
function
|
|
1995
|
+
function be(a) {
|
|
1988
1996
|
a -= 5120;
|
|
1989
|
-
return 0 == a ?
|
|
1997
|
+
return 0 == a ? v : 1 == a ? x : 2 == a ? A : 4 == a ? D : 6 == a ? F : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? E : za;
|
|
1990
1998
|
}
|
|
1991
|
-
function
|
|
1992
|
-
a =
|
|
1993
|
-
var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g =
|
|
1999
|
+
function ce(a, b, c, d, e) {
|
|
2000
|
+
a = be(a);
|
|
2001
|
+
var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g = Od;
|
|
1994
2002
|
return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
|
|
1995
2003
|
}
|
|
1996
2004
|
function V(a) {
|
|
@@ -2002,129 +2010,129 @@ function V(a) {
|
|
|
2002
2010
|
}
|
|
2003
2011
|
S(1282);
|
|
2004
2012
|
}
|
|
2005
|
-
var
|
|
2006
|
-
if (!
|
|
2013
|
+
var de = [], ee = [], fe = {}, he = () => {
|
|
2014
|
+
if (!ge) {
|
|
2007
2015
|
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
|
|
2008
|
-
for (b in
|
|
2009
|
-
void 0 ===
|
|
2016
|
+
for (b in fe) {
|
|
2017
|
+
void 0 === fe[b] ? delete a[b] : a[b] = fe[b];
|
|
2010
2018
|
}
|
|
2011
2019
|
var c = [];
|
|
2012
2020
|
for (b in a) {
|
|
2013
2021
|
c.push(`${b}=${a[b]}`);
|
|
2014
2022
|
}
|
|
2015
|
-
|
|
2023
|
+
ge = c;
|
|
2016
2024
|
}
|
|
2017
|
-
return
|
|
2018
|
-
},
|
|
2019
|
-
function e(
|
|
2020
|
-
for (
|
|
2021
|
-
|
|
2025
|
+
return ge;
|
|
2026
|
+
}, ge, ie = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), je = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ke = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], le = (a, b, c, d) => {
|
|
2027
|
+
function e(q, r, u) {
|
|
2028
|
+
for (q = "number" == typeof q ? q.toString() : q || ""; q.length < r;) {
|
|
2029
|
+
q = u[0] + q;
|
|
2022
2030
|
}
|
|
2023
|
-
return
|
|
2031
|
+
return q;
|
|
2024
2032
|
}
|
|
2025
|
-
function f(
|
|
2026
|
-
return e(
|
|
2033
|
+
function f(q, r) {
|
|
2034
|
+
return e(q, r, "0");
|
|
2027
2035
|
}
|
|
2028
|
-
function g(
|
|
2029
|
-
function
|
|
2030
|
-
return 0 >
|
|
2036
|
+
function g(q, r) {
|
|
2037
|
+
function u(B) {
|
|
2038
|
+
return 0 > B ? -1 : 0 < B ? 1 : 0;
|
|
2031
2039
|
}
|
|
2032
2040
|
var z;
|
|
2033
|
-
0 === (z =
|
|
2041
|
+
0 === (z = u(q.getFullYear() - r.getFullYear())) && 0 === (z = u(q.getMonth() - r.getMonth())) && (z = u(q.getDate() - r.getDate()));
|
|
2034
2042
|
return z;
|
|
2035
2043
|
}
|
|
2036
|
-
function k(
|
|
2037
|
-
switch(
|
|
2044
|
+
function k(q) {
|
|
2045
|
+
switch(q.getDay()) {
|
|
2038
2046
|
case 0:
|
|
2039
|
-
return new Date(
|
|
2047
|
+
return new Date(q.getFullYear() - 1, 11, 29);
|
|
2040
2048
|
case 1:
|
|
2041
|
-
return
|
|
2049
|
+
return q;
|
|
2042
2050
|
case 2:
|
|
2043
|
-
return new Date(
|
|
2051
|
+
return new Date(q.getFullYear(), 0, 3);
|
|
2044
2052
|
case 3:
|
|
2045
|
-
return new Date(
|
|
2053
|
+
return new Date(q.getFullYear(), 0, 2);
|
|
2046
2054
|
case 4:
|
|
2047
|
-
return new Date(
|
|
2055
|
+
return new Date(q.getFullYear(), 0, 1);
|
|
2048
2056
|
case 5:
|
|
2049
|
-
return new Date(
|
|
2057
|
+
return new Date(q.getFullYear() - 1, 11, 31);
|
|
2050
2058
|
case 6:
|
|
2051
|
-
return new Date(
|
|
2059
|
+
return new Date(q.getFullYear() - 1, 11, 30);
|
|
2052
2060
|
}
|
|
2053
2061
|
}
|
|
2054
|
-
function q
|
|
2055
|
-
var r =
|
|
2056
|
-
for (
|
|
2057
|
-
var
|
|
2058
|
-
if (r > z -
|
|
2059
|
-
r -= z -
|
|
2062
|
+
function p(q) {
|
|
2063
|
+
var r = q.aa;
|
|
2064
|
+
for (q = new Date((new Date(q.ba + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2065
|
+
var u = q.getMonth(), z = (ie(q.getFullYear()) ? je : ke)[u];
|
|
2066
|
+
if (r > z - q.getDate()) {
|
|
2067
|
+
r -= z - q.getDate() + 1, q.setDate(1), 11 > u ? q.setMonth(u + 1) : (q.setMonth(0), q.setFullYear(q.getFullYear() + 1));
|
|
2060
2068
|
} else {
|
|
2061
|
-
|
|
2069
|
+
q.setDate(q.getDate() + r);
|
|
2062
2070
|
break;
|
|
2063
2071
|
}
|
|
2064
2072
|
}
|
|
2065
|
-
|
|
2066
|
-
r = k(new Date(
|
|
2067
|
-
|
|
2068
|
-
return 0 >= g(r,
|
|
2073
|
+
u = new Date(q.getFullYear() + 1, 0, 4);
|
|
2074
|
+
r = k(new Date(q.getFullYear(), 0, 4));
|
|
2075
|
+
u = k(u);
|
|
2076
|
+
return 0 >= g(r, q) ? 0 >= g(u, q) ? q.getFullYear() + 1 : q.getFullYear() : q.getFullYear() - 1;
|
|
2069
2077
|
}
|
|
2070
|
-
var n =
|
|
2071
|
-
d = {lc:
|
|
2072
|
-
c = c ?
|
|
2078
|
+
var n = D[d + 40 >> 2];
|
|
2079
|
+
d = {lc:D[d >> 2], kc:D[d + 4 >> 2], Ha:D[d + 8 >> 2], Ra:D[d + 12 >> 2], Ia:D[d + 16 >> 2], ba:D[d + 20 >> 2], P:D[d + 24 >> 2], aa:D[d + 28 >> 2], Jc:D[d + 32 >> 2], jc:D[d + 36 >> 2], mc:n ? n ? fb(x, n) : "" : ""};
|
|
2080
|
+
c = c ? fb(x, c) : "";
|
|
2073
2081
|
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2074
2082
|
for (var t in n) {
|
|
2075
2083
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
2076
2084
|
}
|
|
2077
|
-
var
|
|
2078
|
-
n = {"%a":
|
|
2079
|
-
|
|
2080
|
-
0 ==
|
|
2081
|
-
return f(
|
|
2082
|
-
}, "%j":
|
|
2083
|
-
for (var r = 0,
|
|
2084
|
-
}
|
|
2085
|
-
return f(
|
|
2086
|
-
}, "%m":
|
|
2087
|
-
var r = Math.floor((
|
|
2088
|
-
2 >= (
|
|
2085
|
+
var w = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2086
|
+
n = {"%a":q => w[q.P].substring(0, 3), "%A":q => w[q.P], "%b":q => y[q.Ia].substring(0, 3), "%B":q => y[q.Ia], "%C":q => f((q.ba + 1900) / 100 | 0, 2), "%d":q => f(q.Ra, 2), "%e":q => e(q.Ra, 2, " "), "%g":q => p(q).toString().substring(2), "%G":q => p(q), "%H":q => f(q.Ha, 2), "%I":q => {
|
|
2087
|
+
q = q.Ha;
|
|
2088
|
+
0 == q ? q = 12 : 12 < q && (q -= 12);
|
|
2089
|
+
return f(q, 2);
|
|
2090
|
+
}, "%j":q => {
|
|
2091
|
+
for (var r = 0, u = 0; u <= q.Ia - 1; r += (ie(q.ba + 1900) ? je : ke)[u++]) {
|
|
2092
|
+
}
|
|
2093
|
+
return f(q.Ra + r, 3);
|
|
2094
|
+
}, "%m":q => f(q.Ia + 1, 2), "%M":q => f(q.kc, 2), "%n":() => "\n", "%p":q => 0 <= q.Ha && 12 > q.Ha ? "AM" : "PM", "%S":q => f(q.lc, 2), "%t":() => "\t", "%u":q => q.P || 7, "%U":q => f(Math.floor((q.aa + 7 - q.P) / 7), 2), "%V":q => {
|
|
2095
|
+
var r = Math.floor((q.aa + 7 - (q.P + 6) % 7) / 7);
|
|
2096
|
+
2 >= (q.P + 371 - q.aa - 2) % 7 && r++;
|
|
2089
2097
|
if (r) {
|
|
2090
|
-
53 == r && (
|
|
2098
|
+
53 == r && (u = (q.P + 371 - q.aa) % 7, 4 == u || 3 == u && ie(q.ba) || (r = 1));
|
|
2091
2099
|
} else {
|
|
2092
2100
|
r = 52;
|
|
2093
|
-
var
|
|
2094
|
-
(4 ==
|
|
2101
|
+
var u = (q.P + 7 - q.aa - 1) % 7;
|
|
2102
|
+
(4 == u || 5 == u && ie(q.ba % 400 - 1)) && r++;
|
|
2095
2103
|
}
|
|
2096
2104
|
return f(r, 2);
|
|
2097
|
-
}, "%w":
|
|
2098
|
-
|
|
2099
|
-
var r = 0 <=
|
|
2100
|
-
|
|
2101
|
-
return (r ? "+" : "-") + String("0000" + (
|
|
2102
|
-
}, "%Z":
|
|
2105
|
+
}, "%w":q => q.P, "%W":q => f(Math.floor((q.aa + 7 - (q.P + 6) % 7) / 7), 2), "%y":q => (q.ba + 1900).toString().substring(2), "%Y":q => q.ba + 1900, "%z":q => {
|
|
2106
|
+
q = q.jc;
|
|
2107
|
+
var r = 0 <= q;
|
|
2108
|
+
q = Math.abs(q) / 60;
|
|
2109
|
+
return (r ? "+" : "-") + String("0000" + (q / 60 * 100 + q % 60)).slice(-4);
|
|
2110
|
+
}, "%Z":q => q.mc, "%%":() => "%"};
|
|
2103
2111
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2104
2112
|
for (t in n) {
|
|
2105
2113
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2106
2114
|
}
|
|
2107
2115
|
c = c.replace(/\0\0/g, "%");
|
|
2108
|
-
t =
|
|
2116
|
+
t = jb(c, !1);
|
|
2109
2117
|
if (t.length > b) {
|
|
2110
2118
|
return 0;
|
|
2111
2119
|
}
|
|
2112
|
-
|
|
2120
|
+
v.set(t, a);
|
|
2113
2121
|
return t.length - 1;
|
|
2114
2122
|
};
|
|
2115
|
-
function
|
|
2123
|
+
function Jb(a, b, c, d) {
|
|
2116
2124
|
a || (a = this);
|
|
2117
2125
|
this.parent = a;
|
|
2118
2126
|
this.S = a.S;
|
|
2119
2127
|
this.Ba = null;
|
|
2120
|
-
this.id =
|
|
2128
|
+
this.id = Ab++;
|
|
2121
2129
|
this.name = b;
|
|
2122
2130
|
this.mode = c;
|
|
2123
2131
|
this.l = {};
|
|
2124
2132
|
this.m = {};
|
|
2125
2133
|
this.Da = d;
|
|
2126
2134
|
}
|
|
2127
|
-
Object.defineProperties(
|
|
2135
|
+
Object.defineProperties(Jb.prototype, {read:{get:function() {
|
|
2128
2136
|
return 365 === (this.mode & 365);
|
|
2129
2137
|
}, set:function(a) {
|
|
2130
2138
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2133,44 +2141,44 @@ Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
|
2133
2141
|
}, set:function(a) {
|
|
2134
2142
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2135
2143
|
}}});
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2144
|
+
Xb();
|
|
2145
|
+
Bb = Array(4096);
|
|
2146
|
+
Qb(H, "/");
|
|
2147
|
+
Rb("/tmp", 16895, 0);
|
|
2148
|
+
Rb("/home", 16895, 0);
|
|
2149
|
+
Rb("/home/web_user", 16895, 0);
|
|
2142
2150
|
(() => {
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2151
|
+
Rb("/dev", 16895, 0);
|
|
2152
|
+
mb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2153
|
+
Sb("/dev/null", 259);
|
|
2154
|
+
lb(1280, ob);
|
|
2155
|
+
lb(1536, pb);
|
|
2156
|
+
Sb("/dev/tty", 1280);
|
|
2157
|
+
Sb("/dev/tty1", 1536);
|
|
2150
2158
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2151
2159
|
0 === b && (b = cb(a).byteLength);
|
|
2152
2160
|
return a[--b];
|
|
2153
2161
|
};
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2162
|
+
$b("random", c);
|
|
2163
|
+
$b("urandom", c);
|
|
2164
|
+
Rb("/dev/shm", 16895, 0);
|
|
2165
|
+
Rb("/dev/shm/tmp", 16895, 0);
|
|
2158
2166
|
})();
|
|
2159
2167
|
(() => {
|
|
2160
|
-
|
|
2161
|
-
var a =
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
var b =
|
|
2168
|
+
Rb("/proc", 16895, 0);
|
|
2169
|
+
var a = Rb("/proc/self", 16895, 0);
|
|
2170
|
+
Rb("/proc/self/fd", 16895, 0);
|
|
2171
|
+
Qb({S:() => {
|
|
2172
|
+
var b = sb(a, "fd", 16895, 73);
|
|
2165
2173
|
b.l = {ka:(c, d) => {
|
|
2166
|
-
var e =
|
|
2174
|
+
var e = Nb(+d);
|
|
2167
2175
|
c = {parent:null, S:{ib:"fake"}, l:{la:() => e.path},};
|
|
2168
2176
|
return c.parent = c;
|
|
2169
2177
|
}};
|
|
2170
2178
|
return b;
|
|
2171
2179
|
}}, "/proc/self/fd");
|
|
2172
2180
|
})();
|
|
2173
|
-
Object.assign(
|
|
2181
|
+
Object.assign(fc.prototype, {get(a) {
|
|
2174
2182
|
return this.L[a];
|
|
2175
2183
|
}, has(a) {
|
|
2176
2184
|
return void 0 !== this.L[a];
|
|
@@ -2182,48 +2190,48 @@ Object.assign(ec.prototype, {get(a) {
|
|
|
2182
2190
|
this.L[a] = void 0;
|
|
2183
2191
|
this.cb.push(a);
|
|
2184
2192
|
}});
|
|
2185
|
-
|
|
2193
|
+
gc = l.BindingError = class extends Error {
|
|
2186
2194
|
constructor(a) {
|
|
2187
2195
|
super(a);
|
|
2188
2196
|
this.name = "BindingError";
|
|
2189
2197
|
}
|
|
2190
2198
|
};
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
for (var a = 0, b =
|
|
2195
|
-
void 0 !==
|
|
2199
|
+
I.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2200
|
+
I.h = I.L.length;
|
|
2201
|
+
l.count_emval_handles = function() {
|
|
2202
|
+
for (var a = 0, b = I.h; b < I.L.length; ++b) {
|
|
2203
|
+
void 0 !== I.L[b] && ++a;
|
|
2196
2204
|
}
|
|
2197
2205
|
return a;
|
|
2198
2206
|
};
|
|
2199
|
-
|
|
2200
|
-
for (var
|
|
2201
|
-
|
|
2207
|
+
kc = l.PureVirtualError = jc("PureVirtualError");
|
|
2208
|
+
for (var me = Array(256), ne = 0; 256 > ne; ++ne) {
|
|
2209
|
+
me[ne] = String.fromCharCode(ne);
|
|
2202
2210
|
}
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
return Object.keys(
|
|
2211
|
+
lc = me;
|
|
2212
|
+
l.getInheritedInstanceCount = function() {
|
|
2213
|
+
return Object.keys(pc).length;
|
|
2206
2214
|
};
|
|
2207
|
-
|
|
2215
|
+
l.getLiveInheritedInstances = function() {
|
|
2208
2216
|
var a = [], b;
|
|
2209
|
-
for (b in
|
|
2210
|
-
|
|
2217
|
+
for (b in pc) {
|
|
2218
|
+
pc.hasOwnProperty(b) && a.push(pc[b]);
|
|
2211
2219
|
}
|
|
2212
2220
|
return a;
|
|
2213
2221
|
};
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2222
|
+
l.flushPendingDeletes = nc;
|
|
2223
|
+
l.setDelayFunction = function(a) {
|
|
2224
|
+
oc = a;
|
|
2225
|
+
mc.length && oc && oc(nc);
|
|
2218
2226
|
};
|
|
2219
|
-
|
|
2227
|
+
Cc = l.InternalError = class extends Error {
|
|
2220
2228
|
constructor(a) {
|
|
2221
2229
|
super(a);
|
|
2222
2230
|
this.name = "InternalError";
|
|
2223
2231
|
}
|
|
2224
2232
|
};
|
|
2225
|
-
|
|
2226
|
-
if (!(this instanceof
|
|
2233
|
+
Pc.prototype.isAliasOf = function(a) {
|
|
2234
|
+
if (!(this instanceof Pc && a instanceof Pc)) {
|
|
2227
2235
|
return !1;
|
|
2228
2236
|
}
|
|
2229
2237
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2235,58 +2243,58 @@ Oc.prototype.isAliasOf = function(a) {
|
|
|
2235
2243
|
}
|
|
2236
2244
|
return b === d && c === a;
|
|
2237
2245
|
};
|
|
2238
|
-
|
|
2239
|
-
this.g.o ||
|
|
2246
|
+
Pc.prototype.clone = function() {
|
|
2247
|
+
this.g.o || Oc(this);
|
|
2240
2248
|
if (this.g.ia) {
|
|
2241
2249
|
return this.g.count.value += 1, this;
|
|
2242
2250
|
}
|
|
2243
|
-
var a =
|
|
2251
|
+
var a = Fc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2244
2252
|
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, G:e.G, K:e.K,},}}));
|
|
2245
2253
|
a.g.count.value += 1;
|
|
2246
2254
|
a.g.ga = !1;
|
|
2247
2255
|
return a;
|
|
2248
2256
|
};
|
|
2249
|
-
|
|
2250
|
-
this.g.o ||
|
|
2251
|
-
this.g.ga && !this.g.ia &&
|
|
2252
|
-
|
|
2253
|
-
|
|
2257
|
+
Pc.prototype["delete"] = function() {
|
|
2258
|
+
this.g.o || Oc(this);
|
|
2259
|
+
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2260
|
+
wc(this);
|
|
2261
|
+
yc(this.g);
|
|
2254
2262
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
2255
2263
|
};
|
|
2256
|
-
|
|
2264
|
+
Pc.prototype.isDeleted = function() {
|
|
2257
2265
|
return !this.g.o;
|
|
2258
2266
|
};
|
|
2259
|
-
|
|
2260
|
-
this.g.o ||
|
|
2261
|
-
this.g.ga && !this.g.ia &&
|
|
2262
|
-
|
|
2263
|
-
1 ===
|
|
2267
|
+
Pc.prototype.deleteLater = function() {
|
|
2268
|
+
this.g.o || Oc(this);
|
|
2269
|
+
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2270
|
+
mc.push(this);
|
|
2271
|
+
1 === mc.length && oc && oc(nc);
|
|
2264
2272
|
this.g.ga = !0;
|
|
2265
2273
|
return this;
|
|
2266
2274
|
};
|
|
2267
|
-
|
|
2275
|
+
Yc.prototype.Ob = function(a) {
|
|
2268
2276
|
this.nb && (a = this.nb(a));
|
|
2269
2277
|
return a;
|
|
2270
2278
|
};
|
|
2271
|
-
|
|
2279
|
+
Yc.prototype.Xa = function(a) {
|
|
2272
2280
|
this.U && this.U(a);
|
|
2273
2281
|
};
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2282
|
+
Yc.prototype.argPackAdvance = 8;
|
|
2283
|
+
Yc.prototype.readValueFromPointer = Ic;
|
|
2284
|
+
Yc.prototype.deleteObject = function(a) {
|
|
2277
2285
|
if (null !== a) {
|
|
2278
2286
|
a["delete"]();
|
|
2279
2287
|
}
|
|
2280
2288
|
};
|
|
2281
|
-
|
|
2289
|
+
Yc.prototype.fromWireType = function(a) {
|
|
2282
2290
|
function b() {
|
|
2283
|
-
return this.wa ?
|
|
2291
|
+
return this.wa ? Ec(this.i.M, {u:this.bc, o:c, K:this, G:a,}) : Ec(this.i.M, {u:this, o:a,});
|
|
2284
2292
|
}
|
|
2285
2293
|
var c = this.Ob(a);
|
|
2286
2294
|
if (!c) {
|
|
2287
2295
|
return this.Xa(a), null;
|
|
2288
2296
|
}
|
|
2289
|
-
var d =
|
|
2297
|
+
var d = Bc(this.i, c);
|
|
2290
2298
|
if (void 0 !== d) {
|
|
2291
2299
|
if (0 === d.g.count.value) {
|
|
2292
2300
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2296,43 +2304,43 @@ Xc.prototype.fromWireType = function(a) {
|
|
|
2296
2304
|
return d;
|
|
2297
2305
|
}
|
|
2298
2306
|
d = this.i.Nb(c);
|
|
2299
|
-
d =
|
|
2307
|
+
d = Ac[d];
|
|
2300
2308
|
if (!d) {
|
|
2301
2309
|
return b.call(this);
|
|
2302
2310
|
}
|
|
2303
2311
|
d = this.va ? d.Fb : d.pointerType;
|
|
2304
|
-
var e =
|
|
2305
|
-
return null === e ? b.call(this) : this.wa ?
|
|
2312
|
+
var e = zc(c, this.i, d.i);
|
|
2313
|
+
return null === e ? b.call(this) : this.wa ? Ec(d.i.M, {u:d, o:e, K:this, G:a,}) : Ec(d.i.M, {u:d, o:e,});
|
|
2306
2314
|
};
|
|
2307
|
-
|
|
2315
|
+
bd = l.UnboundTypeError = jc("UnboundTypeError");
|
|
2308
2316
|
for (var U, W = 0; 32 > W; ++W) {
|
|
2309
|
-
|
|
2317
|
+
Td.push(Array(W));
|
|
2310
2318
|
}
|
|
2311
|
-
var
|
|
2319
|
+
var oe = new Float32Array(288);
|
|
2312
2320
|
for (W = 0; 288 > W; ++W) {
|
|
2313
|
-
|
|
2321
|
+
de[W] = oe.subarray(0, W + 1);
|
|
2314
2322
|
}
|
|
2315
|
-
var
|
|
2323
|
+
var pe = new Int32Array(288);
|
|
2316
2324
|
for (W = 0; 288 > W; ++W) {
|
|
2317
|
-
|
|
2325
|
+
ee[W] = pe.subarray(0, W + 1);
|
|
2318
2326
|
}
|
|
2319
|
-
var
|
|
2320
|
-
|
|
2327
|
+
var Ge = {__syscall_fcntl64:function(a, b, c) {
|
|
2328
|
+
bc = c;
|
|
2321
2329
|
try {
|
|
2322
|
-
var d =
|
|
2330
|
+
var d = Nb(a);
|
|
2323
2331
|
switch(b) {
|
|
2324
2332
|
case 0:
|
|
2325
|
-
var e =
|
|
2326
|
-
return 0 > e ? -28 :
|
|
2333
|
+
var e = cc();
|
|
2334
|
+
return 0 > e ? -28 : Pb(d, e).V;
|
|
2327
2335
|
case 1:
|
|
2328
2336
|
case 2:
|
|
2329
2337
|
return 0;
|
|
2330
2338
|
case 3:
|
|
2331
2339
|
return d.flags;
|
|
2332
2340
|
case 4:
|
|
2333
|
-
return e =
|
|
2341
|
+
return e = cc(), d.flags |= e, 0;
|
|
2334
2342
|
case 5:
|
|
2335
|
-
return e =
|
|
2343
|
+
return e = cc(), A[e + 0 >> 1] = 2, 0;
|
|
2336
2344
|
case 6:
|
|
2337
2345
|
case 7:
|
|
2338
2346
|
return 0;
|
|
@@ -2340,20 +2348,20 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2340
2348
|
case 8:
|
|
2341
2349
|
return -28;
|
|
2342
2350
|
case 9:
|
|
2343
|
-
return
|
|
2351
|
+
return D[qe() >> 2] = 28, -1;
|
|
2344
2352
|
default:
|
|
2345
2353
|
return -28;
|
|
2346
2354
|
}
|
|
2347
2355
|
} catch (f) {
|
|
2348
|
-
if ("undefined" == typeof
|
|
2356
|
+
if ("undefined" == typeof ac || "ErrnoError" !== f.name) {
|
|
2349
2357
|
throw f;
|
|
2350
2358
|
}
|
|
2351
2359
|
return -f.Z;
|
|
2352
2360
|
}
|
|
2353
2361
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2354
|
-
|
|
2362
|
+
bc = c;
|
|
2355
2363
|
try {
|
|
2356
|
-
var d =
|
|
2364
|
+
var d = Nb(a);
|
|
2357
2365
|
switch(b) {
|
|
2358
2366
|
case 21509:
|
|
2359
2367
|
return d.s ? 0 : -59;
|
|
@@ -2363,13 +2371,13 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2363
2371
|
}
|
|
2364
2372
|
if (d.s.T.Wb) {
|
|
2365
2373
|
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,];
|
|
2366
|
-
var e =
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2374
|
+
var e = cc();
|
|
2375
|
+
D[e >> 2] = 25856;
|
|
2376
|
+
D[e + 4 >> 2] = 5;
|
|
2377
|
+
D[e + 8 >> 2] = 191;
|
|
2378
|
+
D[e + 12 >> 2] = 35387;
|
|
2371
2379
|
for (var f = 0; 32 > f; f++) {
|
|
2372
|
-
|
|
2380
|
+
v[e + f + 17 >> 0] = b[f] || 0;
|
|
2373
2381
|
}
|
|
2374
2382
|
}
|
|
2375
2383
|
return 0;
|
|
@@ -2384,8 +2392,8 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2384
2392
|
return -59;
|
|
2385
2393
|
}
|
|
2386
2394
|
if (d.s.T.Xb) {
|
|
2387
|
-
for (e =
|
|
2388
|
-
b.push(
|
|
2395
|
+
for (e = cc(), b = [], f = 0; 32 > f; f++) {
|
|
2396
|
+
b.push(v[e + f + 17 >> 0]);
|
|
2389
2397
|
}
|
|
2390
2398
|
}
|
|
2391
2399
|
return 0;
|
|
@@ -2393,21 +2401,21 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2393
2401
|
if (!d.s) {
|
|
2394
2402
|
return -59;
|
|
2395
2403
|
}
|
|
2396
|
-
e =
|
|
2397
|
-
return
|
|
2404
|
+
e = cc();
|
|
2405
|
+
return D[e >> 2] = 0;
|
|
2398
2406
|
case 21520:
|
|
2399
2407
|
return d.s ? -28 : -59;
|
|
2400
2408
|
case 21531:
|
|
2401
|
-
e =
|
|
2409
|
+
e = cc();
|
|
2402
2410
|
if (!d.m.Vb) {
|
|
2403
|
-
throw new
|
|
2411
|
+
throw new G(59);
|
|
2404
2412
|
}
|
|
2405
2413
|
return d.m.Vb(d, b, e);
|
|
2406
2414
|
case 21523:
|
|
2407
2415
|
if (!d.s) {
|
|
2408
2416
|
return -59;
|
|
2409
2417
|
}
|
|
2410
|
-
d.s.T.Yb && (f = [24, 80], e =
|
|
2418
|
+
d.s.T.Yb && (f = [24, 80], e = cc(), A[e >> 1] = f[0], A[e + 2 >> 1] = f[1]);
|
|
2411
2419
|
return 0;
|
|
2412
2420
|
case 21524:
|
|
2413
2421
|
return d.s ? 0 : -59;
|
|
@@ -2417,188 +2425,188 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2417
2425
|
return -28;
|
|
2418
2426
|
}
|
|
2419
2427
|
} catch (g) {
|
|
2420
|
-
if ("undefined" == typeof
|
|
2428
|
+
if ("undefined" == typeof ac || "ErrnoError" !== g.name) {
|
|
2421
2429
|
throw g;
|
|
2422
2430
|
}
|
|
2423
2431
|
return -g.Z;
|
|
2424
2432
|
}
|
|
2425
2433
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2426
|
-
|
|
2434
|
+
bc = d;
|
|
2427
2435
|
try {
|
|
2428
|
-
b = b ?
|
|
2436
|
+
b = b ? fb(x, b) : "";
|
|
2429
2437
|
var e = b;
|
|
2430
2438
|
if ("/" === e.charAt(0)) {
|
|
2431
2439
|
b = e;
|
|
2432
2440
|
} else {
|
|
2433
|
-
var f = -100 === a ? "/" :
|
|
2441
|
+
var f = -100 === a ? "/" : Nb(a).path;
|
|
2434
2442
|
if (0 == e.length) {
|
|
2435
|
-
throw new
|
|
2443
|
+
throw new G(44);
|
|
2436
2444
|
}
|
|
2437
2445
|
b = Za(f + "/" + e);
|
|
2438
2446
|
}
|
|
2439
|
-
var g = d ?
|
|
2440
|
-
return
|
|
2447
|
+
var g = d ? cc() : 0;
|
|
2448
|
+
return Vb(b, c, g).V;
|
|
2441
2449
|
} catch (k) {
|
|
2442
|
-
if ("undefined" == typeof
|
|
2450
|
+
if ("undefined" == typeof ac || "ErrnoError" !== k.name) {
|
|
2443
2451
|
throw k;
|
|
2444
2452
|
}
|
|
2445
2453
|
return -k.Z;
|
|
2446
2454
|
}
|
|
2447
2455
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2448
|
-
a =
|
|
2449
|
-
b =
|
|
2450
|
-
c =
|
|
2456
|
+
a = L(a);
|
|
2457
|
+
b = vc(b, "wrapper");
|
|
2458
|
+
c = hc(c);
|
|
2451
2459
|
var d = [].slice, e = b.i, f = e.M, g = e.A.M, k = e.A.constructor;
|
|
2452
|
-
a =
|
|
2460
|
+
a = ec(a, function() {
|
|
2453
2461
|
e.A.mb.forEach(function(n) {
|
|
2454
2462
|
if (this[n] === g[n]) {
|
|
2455
|
-
throw new
|
|
2463
|
+
throw new kc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2456
2464
|
}
|
|
2457
2465
|
}.bind(this));
|
|
2458
2466
|
Object.defineProperty(this, "__parent", {value:f});
|
|
2459
2467
|
this.__construct.apply(this, d.call(arguments));
|
|
2460
2468
|
});
|
|
2461
2469
|
f.__construct = function() {
|
|
2462
|
-
this === f &&
|
|
2470
|
+
this === f && K("Pass correct 'this' to __construct");
|
|
2463
2471
|
var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2464
|
-
|
|
2472
|
+
wc(n);
|
|
2465
2473
|
var t = n.g;
|
|
2466
2474
|
n.notifyOnDestruction();
|
|
2467
2475
|
t.ia = !0;
|
|
2468
2476
|
Object.defineProperties(this, {g:{value:t}});
|
|
2469
|
-
|
|
2477
|
+
Fc(this);
|
|
2470
2478
|
n = t.o;
|
|
2471
|
-
n =
|
|
2472
|
-
|
|
2479
|
+
n = qc(e, n);
|
|
2480
|
+
pc.hasOwnProperty(n) ? K(`Tried to register registered instance: ${n}`) : pc[n] = this;
|
|
2473
2481
|
};
|
|
2474
2482
|
f.__destruct = function() {
|
|
2475
|
-
this === f &&
|
|
2476
|
-
|
|
2483
|
+
this === f && K("Pass correct 'this' to __destruct");
|
|
2484
|
+
wc(this);
|
|
2477
2485
|
var n = this.g.o;
|
|
2478
|
-
n =
|
|
2479
|
-
|
|
2486
|
+
n = qc(e, n);
|
|
2487
|
+
pc.hasOwnProperty(n) ? delete pc[n] : K(`Tried to unregister unregistered instance: ${n}`);
|
|
2480
2488
|
};
|
|
2481
2489
|
a.prototype = Object.create(f);
|
|
2482
|
-
for (var
|
|
2483
|
-
a.prototype[
|
|
2490
|
+
for (var p in c) {
|
|
2491
|
+
a.prototype[p] = c[p];
|
|
2484
2492
|
}
|
|
2485
|
-
return
|
|
2493
|
+
return ic(a);
|
|
2486
2494
|
}, _embind_finalize_value_object:function(a) {
|
|
2487
|
-
var b =
|
|
2488
|
-
delete
|
|
2495
|
+
var b = Gc[a];
|
|
2496
|
+
delete Gc[a];
|
|
2489
2497
|
var c = b.Pa, d = b.U, e = b.$a, f = e.map(g => g.Rb).concat(e.map(g => g.fc));
|
|
2490
|
-
|
|
2498
|
+
N([a], f, g => {
|
|
2491
2499
|
var k = {};
|
|
2492
|
-
e.forEach((
|
|
2493
|
-
var t = g[n],
|
|
2494
|
-
k[
|
|
2500
|
+
e.forEach((p, n) => {
|
|
2501
|
+
var t = g[n], w = p.Pb, y = p.Qb, q = g[n + e.length], r = p.ec, u = p.hc;
|
|
2502
|
+
k[p.Lb] = {read:z => t.fromWireType(w(y, z)), write:(z, B) => {
|
|
2495
2503
|
var C = [];
|
|
2496
|
-
r(
|
|
2497
|
-
|
|
2504
|
+
r(u, z, q.toWireType(C, B));
|
|
2505
|
+
Hc(C);
|
|
2498
2506
|
}};
|
|
2499
2507
|
});
|
|
2500
|
-
return [{name:b.name, fromWireType:function(
|
|
2508
|
+
return [{name:b.name, fromWireType:function(p) {
|
|
2501
2509
|
var n = {}, t;
|
|
2502
2510
|
for (t in k) {
|
|
2503
|
-
n[t] = k[t].read(
|
|
2511
|
+
n[t] = k[t].read(p);
|
|
2504
2512
|
}
|
|
2505
|
-
d(
|
|
2513
|
+
d(p);
|
|
2506
2514
|
return n;
|
|
2507
|
-
}, toWireType:function(
|
|
2515
|
+
}, toWireType:function(p, n) {
|
|
2508
2516
|
for (var t in k) {
|
|
2509
2517
|
if (!(t in n)) {
|
|
2510
2518
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2511
2519
|
}
|
|
2512
2520
|
}
|
|
2513
|
-
var
|
|
2521
|
+
var w = c();
|
|
2514
2522
|
for (t in k) {
|
|
2515
|
-
k[t].write(
|
|
2523
|
+
k[t].write(w, n[t]);
|
|
2516
2524
|
}
|
|
2517
|
-
null !==
|
|
2518
|
-
return
|
|
2519
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2525
|
+
null !== p && p.push(d, w);
|
|
2526
|
+
return w;
|
|
2527
|
+
}, argPackAdvance:8, readValueFromPointer:Ic, J:d,}];
|
|
2520
2528
|
});
|
|
2521
2529
|
}, _embind_register_bigint:function() {
|
|
2522
2530
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2523
|
-
var f =
|
|
2524
|
-
b =
|
|
2525
|
-
|
|
2531
|
+
var f = Mc(c);
|
|
2532
|
+
b = L(b);
|
|
2533
|
+
Lc(a, {name:b, fromWireType:function(g) {
|
|
2526
2534
|
return !!g;
|
|
2527
2535
|
}, toWireType:function(g, k) {
|
|
2528
2536
|
return k ? d : e;
|
|
2529
2537
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2530
2538
|
if (1 === c) {
|
|
2531
|
-
var k =
|
|
2539
|
+
var k = v;
|
|
2532
2540
|
} else if (2 === c) {
|
|
2533
2541
|
k = A;
|
|
2534
2542
|
} else if (4 === c) {
|
|
2535
|
-
k =
|
|
2543
|
+
k = D;
|
|
2536
2544
|
} else {
|
|
2537
2545
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2538
2546
|
}
|
|
2539
2547
|
return this.fromWireType(k[g >> f]);
|
|
2540
2548
|
}, J:null,});
|
|
2541
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, k,
|
|
2542
|
-
t =
|
|
2549
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, k, p, n, t, w, y) {
|
|
2550
|
+
t = L(t);
|
|
2543
2551
|
f = R(e, f);
|
|
2544
2552
|
k && (k = R(g, k));
|
|
2545
|
-
n && (n = R(
|
|
2546
|
-
y = R(
|
|
2547
|
-
var
|
|
2548
|
-
|
|
2549
|
-
|
|
2553
|
+
n && (n = R(p, n));
|
|
2554
|
+
y = R(w, y);
|
|
2555
|
+
var q = dc(t);
|
|
2556
|
+
Rc(q, function() {
|
|
2557
|
+
cd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2550
2558
|
});
|
|
2551
|
-
|
|
2559
|
+
N([a, b, c], d ? [d] : [], function(r) {
|
|
2552
2560
|
r = r[0];
|
|
2553
2561
|
if (d) {
|
|
2554
|
-
var
|
|
2555
|
-
var z =
|
|
2562
|
+
var u = r.i;
|
|
2563
|
+
var z = u.M;
|
|
2556
2564
|
} else {
|
|
2557
|
-
z =
|
|
2565
|
+
z = Pc.prototype;
|
|
2558
2566
|
}
|
|
2559
|
-
r =
|
|
2560
|
-
if (Object.getPrototypeOf(this) !==
|
|
2561
|
-
throw new
|
|
2567
|
+
r = ec(q, function() {
|
|
2568
|
+
if (Object.getPrototypeOf(this) !== B) {
|
|
2569
|
+
throw new gc("Use 'new' to construct " + t);
|
|
2562
2570
|
}
|
|
2563
2571
|
if (void 0 === C.Y) {
|
|
2564
|
-
throw new
|
|
2572
|
+
throw new gc(t + " has no accessible constructor");
|
|
2565
2573
|
}
|
|
2566
|
-
var
|
|
2567
|
-
if (void 0 ===
|
|
2568
|
-
throw new
|
|
2574
|
+
var M = C.Y[arguments.length];
|
|
2575
|
+
if (void 0 === M) {
|
|
2576
|
+
throw new gc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Y).toString()}) parameters instead!`);
|
|
2569
2577
|
}
|
|
2570
|
-
return
|
|
2578
|
+
return M.apply(this, arguments);
|
|
2571
2579
|
});
|
|
2572
|
-
var
|
|
2573
|
-
r.prototype =
|
|
2574
|
-
var C = new
|
|
2580
|
+
var B = Object.create(z, {constructor:{value:r},});
|
|
2581
|
+
r.prototype = B;
|
|
2582
|
+
var C = new Sc(t, r, B, y, u, f, k, n);
|
|
2575
2583
|
C.A && (void 0 === C.A.oa && (C.A.oa = []), C.A.oa.push(C));
|
|
2576
|
-
|
|
2577
|
-
z = new
|
|
2578
|
-
var
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
return [
|
|
2584
|
+
u = new Yc(t, C, !0, !1);
|
|
2585
|
+
z = new Yc(t + "*", C, !1, !1);
|
|
2586
|
+
var O = new Yc(t + " const*", C, !1, !0);
|
|
2587
|
+
Ac[a] = {pointerType:z, Fb:O};
|
|
2588
|
+
Zc(q, r);
|
|
2589
|
+
return [u, z, O];
|
|
2582
2590
|
});
|
|
2583
2591
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2584
|
-
var k =
|
|
2585
|
-
b =
|
|
2592
|
+
var k = ed(c, d);
|
|
2593
|
+
b = L(b);
|
|
2586
2594
|
f = R(e, f);
|
|
2587
|
-
|
|
2595
|
+
N([], [a], function(p) {
|
|
2588
2596
|
function n() {
|
|
2589
|
-
|
|
2597
|
+
cd(`Cannot call ${t} due to unbound types`, k);
|
|
2590
2598
|
}
|
|
2591
|
-
|
|
2592
|
-
var t = `${
|
|
2599
|
+
p = p[0];
|
|
2600
|
+
var t = `${p.name}.${b}`;
|
|
2593
2601
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2594
|
-
var
|
|
2595
|
-
void 0 ===
|
|
2596
|
-
|
|
2597
|
-
y =
|
|
2598
|
-
void 0 ===
|
|
2599
|
-
if (
|
|
2600
|
-
for (const
|
|
2601
|
-
|
|
2602
|
+
var w = p.i.constructor;
|
|
2603
|
+
void 0 === w[b] ? (n.ea = c - 1, w[b] = n) : (Qc(w, b, t), w[b].B[c - 1] = n);
|
|
2604
|
+
N([], k, function(y) {
|
|
2605
|
+
y = dd(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2606
|
+
void 0 === w[b].B ? (y.ea = c - 1, w[b] = y) : w[b].B[c - 1] = y;
|
|
2607
|
+
if (p.i.oa) {
|
|
2608
|
+
for (const q of p.i.oa) {
|
|
2609
|
+
q.constructor.hasOwnProperty(b) || (q.constructor[b] = y);
|
|
2602
2610
|
}
|
|
2603
2611
|
}
|
|
2604
2612
|
return [];
|
|
@@ -2606,377 +2614,377 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2606
2614
|
return [];
|
|
2607
2615
|
});
|
|
2608
2616
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
|
|
2609
|
-
b =
|
|
2617
|
+
b = L(b);
|
|
2610
2618
|
f = R(e, f);
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
var n = `${
|
|
2614
|
-
|
|
2619
|
+
N([], [a], function(p) {
|
|
2620
|
+
p = p[0];
|
|
2621
|
+
var n = `${p.name}.${b}`, t = {get() {
|
|
2622
|
+
cd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2615
2623
|
}, enumerable:!0, configurable:!0};
|
|
2616
2624
|
t.set = k ? () => {
|
|
2617
|
-
|
|
2625
|
+
cd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2618
2626
|
} : () => {
|
|
2619
|
-
|
|
2627
|
+
K(`${n} is a read-only property`);
|
|
2620
2628
|
};
|
|
2621
|
-
Object.defineProperty(
|
|
2622
|
-
|
|
2623
|
-
|
|
2629
|
+
Object.defineProperty(p.i.constructor, b, t);
|
|
2630
|
+
N([], [c], function(w) {
|
|
2631
|
+
w = w[0];
|
|
2624
2632
|
var y = {get() {
|
|
2625
|
-
return
|
|
2633
|
+
return w.fromWireType(f(d));
|
|
2626
2634
|
}, enumerable:!0};
|
|
2627
|
-
k && (k = R(g, k), y.set =
|
|
2635
|
+
k && (k = R(g, k), y.set = q => {
|
|
2628
2636
|
var r = [];
|
|
2629
|
-
k(d,
|
|
2630
|
-
|
|
2637
|
+
k(d, w.toWireType(r, q));
|
|
2638
|
+
Hc(r);
|
|
2631
2639
|
});
|
|
2632
|
-
Object.defineProperty(
|
|
2640
|
+
Object.defineProperty(p.i.constructor, b, y);
|
|
2633
2641
|
return [];
|
|
2634
2642
|
});
|
|
2635
2643
|
return [];
|
|
2636
2644
|
});
|
|
2637
2645
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2638
|
-
var g =
|
|
2646
|
+
var g = ed(b, c);
|
|
2639
2647
|
e = R(d, e);
|
|
2640
|
-
|
|
2648
|
+
N([], [a], function(k) {
|
|
2641
2649
|
k = k[0];
|
|
2642
|
-
var
|
|
2650
|
+
var p = `constructor ${k.name}`;
|
|
2643
2651
|
void 0 === k.i.Y && (k.i.Y = []);
|
|
2644
2652
|
if (void 0 !== k.i.Y[b - 1]) {
|
|
2645
|
-
throw new
|
|
2653
|
+
throw new gc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2646
2654
|
}
|
|
2647
2655
|
k.i.Y[b - 1] = () => {
|
|
2648
|
-
|
|
2656
|
+
cd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2649
2657
|
};
|
|
2650
|
-
|
|
2658
|
+
N([], g, function(n) {
|
|
2651
2659
|
n.splice(1, 0, null);
|
|
2652
|
-
k.i.Y[b - 1] =
|
|
2660
|
+
k.i.Y[b - 1] = dd(p, n, null, e, f);
|
|
2653
2661
|
return [];
|
|
2654
2662
|
});
|
|
2655
2663
|
return [];
|
|
2656
2664
|
});
|
|
2657
2665
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
|
|
2658
|
-
var
|
|
2659
|
-
b =
|
|
2666
|
+
var p = ed(c, d);
|
|
2667
|
+
b = L(b);
|
|
2660
2668
|
f = R(e, f);
|
|
2661
|
-
|
|
2669
|
+
N([], [a], function(n) {
|
|
2662
2670
|
function t() {
|
|
2663
|
-
|
|
2671
|
+
cd(`Cannot call ${w} due to unbound types`, p);
|
|
2664
2672
|
}
|
|
2665
2673
|
n = n[0];
|
|
2666
|
-
var
|
|
2674
|
+
var w = `${n.name}.${b}`;
|
|
2667
2675
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2668
2676
|
k && n.i.mb.push(b);
|
|
2669
|
-
var y = n.i.M,
|
|
2670
|
-
void 0 ===
|
|
2671
|
-
|
|
2672
|
-
r =
|
|
2677
|
+
var y = n.i.M, q = y[b];
|
|
2678
|
+
void 0 === q || void 0 === q.B && q.className !== n.name && q.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Qc(y, b, w), y[b].B[c - 2] = t);
|
|
2679
|
+
N([], p, function(r) {
|
|
2680
|
+
r = dd(w, r, n, f, g);
|
|
2673
2681
|
void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
|
|
2674
2682
|
return [];
|
|
2675
2683
|
});
|
|
2676
2684
|
return [];
|
|
2677
2685
|
});
|
|
2678
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k,
|
|
2679
|
-
b =
|
|
2686
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k, p, n) {
|
|
2687
|
+
b = L(b);
|
|
2680
2688
|
e = R(d, e);
|
|
2681
|
-
|
|
2689
|
+
N([], [a], function(t) {
|
|
2682
2690
|
t = t[0];
|
|
2683
|
-
var
|
|
2684
|
-
|
|
2691
|
+
var w = `${t.name}.${b}`, y = {get() {
|
|
2692
|
+
cd(`Cannot access ${w} due to unbound types`, [c, g]);
|
|
2685
2693
|
}, enumerable:!0, configurable:!0};
|
|
2686
|
-
y.set =
|
|
2687
|
-
|
|
2694
|
+
y.set = p ? () => {
|
|
2695
|
+
cd(`Cannot access ${w} due to unbound types`, [c, g]);
|
|
2688
2696
|
} : () => {
|
|
2689
|
-
|
|
2697
|
+
K(w + " is a read-only property");
|
|
2690
2698
|
};
|
|
2691
2699
|
Object.defineProperty(t.i.M, b, y);
|
|
2692
|
-
|
|
2693
|
-
var r =
|
|
2694
|
-
var
|
|
2695
|
-
return r.fromWireType(e(f,
|
|
2700
|
+
N([], p ? [c, g] : [c], function(q) {
|
|
2701
|
+
var r = q[0], u = {get() {
|
|
2702
|
+
var B = fd(this, t, w + " getter");
|
|
2703
|
+
return r.fromWireType(e(f, B));
|
|
2696
2704
|
}, enumerable:!0};
|
|
2697
|
-
if (
|
|
2698
|
-
|
|
2699
|
-
var z =
|
|
2700
|
-
|
|
2701
|
-
var C =
|
|
2702
|
-
|
|
2703
|
-
|
|
2705
|
+
if (p) {
|
|
2706
|
+
p = R(k, p);
|
|
2707
|
+
var z = q[1];
|
|
2708
|
+
u.set = function(B) {
|
|
2709
|
+
var C = fd(this, t, w + " setter"), O = [];
|
|
2710
|
+
p(n, C, z.toWireType(O, B));
|
|
2711
|
+
Hc(O);
|
|
2704
2712
|
};
|
|
2705
2713
|
}
|
|
2706
|
-
Object.defineProperty(t.i.M, b,
|
|
2714
|
+
Object.defineProperty(t.i.M, b, u);
|
|
2707
2715
|
return [];
|
|
2708
2716
|
});
|
|
2709
2717
|
return [];
|
|
2710
2718
|
});
|
|
2711
2719
|
}, _embind_register_emval:function(a, b) {
|
|
2712
|
-
b =
|
|
2713
|
-
|
|
2714
|
-
var d =
|
|
2715
|
-
|
|
2720
|
+
b = L(b);
|
|
2721
|
+
Lc(a, {name:b, fromWireType:function(c) {
|
|
2722
|
+
var d = hc(c);
|
|
2723
|
+
gd(c);
|
|
2716
2724
|
return d;
|
|
2717
2725
|
}, toWireType:function(c, d) {
|
|
2718
|
-
return
|
|
2719
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2726
|
+
return ic(d);
|
|
2727
|
+
}, argPackAdvance:8, readValueFromPointer:Ic, J:null,});
|
|
2720
2728
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2721
2729
|
function e() {
|
|
2722
2730
|
}
|
|
2723
|
-
c =
|
|
2724
|
-
b =
|
|
2731
|
+
c = Mc(c);
|
|
2732
|
+
b = L(b);
|
|
2725
2733
|
e.values = {};
|
|
2726
|
-
|
|
2734
|
+
Lc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2727
2735
|
return this.constructor.values[f];
|
|
2728
2736
|
}, toWireType:function(f, g) {
|
|
2729
2737
|
return g.value;
|
|
2730
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2731
|
-
|
|
2738
|
+
}, argPackAdvance:8, readValueFromPointer:hd(b, c, d), J:null,});
|
|
2739
|
+
Rc(b, e);
|
|
2732
2740
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2733
|
-
var d =
|
|
2734
|
-
b =
|
|
2741
|
+
var d = vc(a, "enum");
|
|
2742
|
+
b = L(b);
|
|
2735
2743
|
a = d.constructor;
|
|
2736
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2744
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:ec(`${d.name}_${b}`, function() {
|
|
2737
2745
|
})},});
|
|
2738
2746
|
a.values[c] = d;
|
|
2739
2747
|
a[b] = d;
|
|
2740
2748
|
}, _embind_register_float:function(a, b, c) {
|
|
2741
|
-
c =
|
|
2742
|
-
b =
|
|
2743
|
-
|
|
2749
|
+
c = Mc(c);
|
|
2750
|
+
b = L(b);
|
|
2751
|
+
Lc(a, {name:b, fromWireType:function(d) {
|
|
2744
2752
|
return d;
|
|
2745
2753
|
}, toWireType:function(d, e) {
|
|
2746
2754
|
return e;
|
|
2747
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2755
|
+
}, argPackAdvance:8, readValueFromPointer:jd(b, c), J:null,});
|
|
2748
2756
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2749
|
-
var g =
|
|
2750
|
-
a =
|
|
2757
|
+
var g = ed(b, c);
|
|
2758
|
+
a = L(a);
|
|
2751
2759
|
e = R(d, e);
|
|
2752
|
-
|
|
2753
|
-
|
|
2760
|
+
Rc(a, function() {
|
|
2761
|
+
cd(`Cannot call ${a} due to unbound types`, g);
|
|
2754
2762
|
}, b - 1);
|
|
2755
|
-
|
|
2756
|
-
|
|
2763
|
+
N([], g, function(k) {
|
|
2764
|
+
Zc(a, dd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2757
2765
|
return [];
|
|
2758
2766
|
});
|
|
2759
2767
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2760
|
-
b =
|
|
2768
|
+
b = L(b);
|
|
2761
2769
|
-1 === e && (e = 4294967295);
|
|
2762
|
-
e =
|
|
2770
|
+
e = Mc(c);
|
|
2763
2771
|
var f = k => k;
|
|
2764
2772
|
if (0 === d) {
|
|
2765
2773
|
var g = 32 - 8 * c;
|
|
2766
2774
|
f = k => k << g >>> g;
|
|
2767
2775
|
}
|
|
2768
|
-
c = b.includes("unsigned") ? function(k,
|
|
2769
|
-
return
|
|
2770
|
-
} : function(k,
|
|
2771
|
-
return
|
|
2776
|
+
c = b.includes("unsigned") ? function(k, p) {
|
|
2777
|
+
return p >>> 0;
|
|
2778
|
+
} : function(k, p) {
|
|
2779
|
+
return p;
|
|
2772
2780
|
};
|
|
2773
|
-
|
|
2781
|
+
Lc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:kd(b, e, 0 !== d), J:null,});
|
|
2774
2782
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2775
2783
|
function d(f) {
|
|
2776
2784
|
f >>= 2;
|
|
2777
|
-
var g =
|
|
2785
|
+
var g = E;
|
|
2778
2786
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2779
2787
|
}
|
|
2780
2788
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2781
|
-
c =
|
|
2782
|
-
|
|
2789
|
+
c = L(c);
|
|
2790
|
+
Lc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Tb:!0,});
|
|
2783
2791
|
}, _embind_register_std_string:function(a, b) {
|
|
2784
|
-
b =
|
|
2792
|
+
b = L(b);
|
|
2785
2793
|
var c = "std::string" === b;
|
|
2786
|
-
|
|
2787
|
-
var e =
|
|
2794
|
+
Lc(a, {name:b, fromWireType:function(d) {
|
|
2795
|
+
var e = E[d >> 2], f = d + 4;
|
|
2788
2796
|
if (c) {
|
|
2789
2797
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2790
|
-
var
|
|
2791
|
-
if (k == e || 0 ==
|
|
2792
|
-
g = g ?
|
|
2798
|
+
var p = f + k;
|
|
2799
|
+
if (k == e || 0 == x[p]) {
|
|
2800
|
+
g = g ? fb(x, g, p - g) : "";
|
|
2793
2801
|
if (void 0 === n) {
|
|
2794
2802
|
var n = g;
|
|
2795
2803
|
} else {
|
|
2796
2804
|
n += String.fromCharCode(0), n += g;
|
|
2797
2805
|
}
|
|
2798
|
-
g =
|
|
2806
|
+
g = p + 1;
|
|
2799
2807
|
}
|
|
2800
2808
|
}
|
|
2801
2809
|
} else {
|
|
2802
2810
|
n = Array(e);
|
|
2803
2811
|
for (k = 0; k < e; ++k) {
|
|
2804
|
-
n[k] = String.fromCharCode(
|
|
2812
|
+
n[k] = String.fromCharCode(x[f + k]);
|
|
2805
2813
|
}
|
|
2806
2814
|
n = n.join("");
|
|
2807
2815
|
}
|
|
2808
|
-
|
|
2816
|
+
uc(d);
|
|
2809
2817
|
return n;
|
|
2810
2818
|
}, toWireType:function(d, e) {
|
|
2811
2819
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2812
2820
|
var f = "string" == typeof e;
|
|
2813
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2814
|
-
var g = c && f ?
|
|
2815
|
-
var k =
|
|
2816
|
-
|
|
2821
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || K("Cannot pass non-string to std::string");
|
|
2822
|
+
var g = c && f ? hb(e) : e.length;
|
|
2823
|
+
var k = Zd(4 + g + 1), p = k + 4;
|
|
2824
|
+
E[k >> 2] = g;
|
|
2817
2825
|
if (c && f) {
|
|
2818
|
-
|
|
2826
|
+
ib(e, x, p, g + 1);
|
|
2819
2827
|
} else {
|
|
2820
2828
|
if (f) {
|
|
2821
2829
|
for (f = 0; f < g; ++f) {
|
|
2822
2830
|
var n = e.charCodeAt(f);
|
|
2823
|
-
255 < n && (
|
|
2824
|
-
|
|
2831
|
+
255 < n && (uc(p), K("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2832
|
+
x[p + f] = n;
|
|
2825
2833
|
}
|
|
2826
2834
|
} else {
|
|
2827
2835
|
for (f = 0; f < g; ++f) {
|
|
2828
|
-
|
|
2836
|
+
x[p + f] = e[f];
|
|
2829
2837
|
}
|
|
2830
2838
|
}
|
|
2831
2839
|
}
|
|
2832
|
-
null !== d && d.push(
|
|
2840
|
+
null !== d && d.push(uc, k);
|
|
2833
2841
|
return k;
|
|
2834
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2835
|
-
|
|
2842
|
+
}, argPackAdvance:8, readValueFromPointer:Ic, J:function(d) {
|
|
2843
|
+
uc(d);
|
|
2836
2844
|
},});
|
|
2837
2845
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2838
|
-
c =
|
|
2846
|
+
c = L(c);
|
|
2839
2847
|
if (2 === b) {
|
|
2840
|
-
var d =
|
|
2841
|
-
var e =
|
|
2842
|
-
var f =
|
|
2848
|
+
var d = md;
|
|
2849
|
+
var e = nd;
|
|
2850
|
+
var f = od;
|
|
2843
2851
|
var g = () => za;
|
|
2844
2852
|
var k = 1;
|
|
2845
2853
|
} else {
|
|
2846
|
-
4 === b && (d =
|
|
2854
|
+
4 === b && (d = pd, e = qd, f = rd, g = () => E, k = 2);
|
|
2847
2855
|
}
|
|
2848
|
-
|
|
2849
|
-
for (var n =
|
|
2850
|
-
var r =
|
|
2851
|
-
if (
|
|
2852
|
-
y = d(y, r - y), void 0 ===
|
|
2856
|
+
Lc(a, {name:c, fromWireType:function(p) {
|
|
2857
|
+
for (var n = E[p >> 2], t = g(), w, y = p + 4, q = 0; q <= n; ++q) {
|
|
2858
|
+
var r = p + 4 + q * b;
|
|
2859
|
+
if (q == n || 0 == t[r >> k]) {
|
|
2860
|
+
y = d(y, r - y), void 0 === w ? w = y : (w += String.fromCharCode(0), w += y), y = r + b;
|
|
2853
2861
|
}
|
|
2854
2862
|
}
|
|
2855
|
-
|
|
2856
|
-
return
|
|
2857
|
-
}, toWireType:function(
|
|
2858
|
-
"string" != typeof n &&
|
|
2859
|
-
var t = f(n),
|
|
2860
|
-
|
|
2861
|
-
e(n,
|
|
2862
|
-
null !==
|
|
2863
|
-
return
|
|
2864
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2865
|
-
|
|
2863
|
+
uc(p);
|
|
2864
|
+
return w;
|
|
2865
|
+
}, toWireType:function(p, n) {
|
|
2866
|
+
"string" != typeof n && K(`Cannot pass non-string to C++ string type ${c}`);
|
|
2867
|
+
var t = f(n), w = Zd(4 + t + b);
|
|
2868
|
+
E[w >> 2] = t >> k;
|
|
2869
|
+
e(n, w + 4, t + b);
|
|
2870
|
+
null !== p && p.push(uc, w);
|
|
2871
|
+
return w;
|
|
2872
|
+
}, argPackAdvance:8, readValueFromPointer:Ic, J:function(p) {
|
|
2873
|
+
uc(p);
|
|
2866
2874
|
},});
|
|
2867
2875
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2868
|
-
|
|
2869
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k,
|
|
2870
|
-
|
|
2876
|
+
Gc[a] = {name:L(b), Pa:R(c, d), U:R(e, f), $a:[],};
|
|
2877
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, p, n) {
|
|
2878
|
+
Gc[a].$a.push({Lb:L(b), Rb:c, Pb:R(d, e), Qb:f, fc:g, ec:R(k, p), hc:n,});
|
|
2871
2879
|
}, _embind_register_void:function(a, b) {
|
|
2872
|
-
b =
|
|
2873
|
-
|
|
2880
|
+
b = L(b);
|
|
2881
|
+
Lc(a, {Zb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2874
2882
|
}, toWireType:function() {
|
|
2875
2883
|
},});
|
|
2876
2884
|
}, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
|
|
2877
2885
|
throw Infinity;
|
|
2878
2886
|
}, _emval_as:function(a, b, c) {
|
|
2879
|
-
a =
|
|
2880
|
-
b =
|
|
2881
|
-
var d = [], e =
|
|
2882
|
-
|
|
2887
|
+
a = hc(a);
|
|
2888
|
+
b = vc(b, "emval::as");
|
|
2889
|
+
var d = [], e = ic(d);
|
|
2890
|
+
E[c >> 2] = e;
|
|
2883
2891
|
return b.toWireType(d, a);
|
|
2884
2892
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2885
|
-
a =
|
|
2886
|
-
b =
|
|
2887
|
-
c =
|
|
2893
|
+
a = ud[a];
|
|
2894
|
+
b = hc(b);
|
|
2895
|
+
c = td(c);
|
|
2888
2896
|
var f = [];
|
|
2889
|
-
|
|
2897
|
+
E[d >> 2] = ic(f);
|
|
2890
2898
|
return a(b, c, f, e);
|
|
2891
2899
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2892
|
-
a =
|
|
2893
|
-
b =
|
|
2894
|
-
c =
|
|
2900
|
+
a = ud[a];
|
|
2901
|
+
b = hc(b);
|
|
2902
|
+
c = td(c);
|
|
2895
2903
|
a(b, c, null, d);
|
|
2896
|
-
}, _emval_decref:
|
|
2897
|
-
var c =
|
|
2904
|
+
}, _emval_decref:gd, _emval_get_method_caller:function(a, b) {
|
|
2905
|
+
var c = wd(a, b), d = c[0];
|
|
2898
2906
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2899
2907
|
return g.name;
|
|
2900
2908
|
}).join("_") + "$";
|
|
2901
|
-
var e =
|
|
2909
|
+
var e = xd[b];
|
|
2902
2910
|
if (void 0 !== e) {
|
|
2903
2911
|
return e;
|
|
2904
2912
|
}
|
|
2905
2913
|
var f = Array(a - 1);
|
|
2906
|
-
e =
|
|
2907
|
-
for (var t = 0,
|
|
2908
|
-
f[
|
|
2914
|
+
e = vd((g, k, p, n) => {
|
|
2915
|
+
for (var t = 0, w = 0; w < a - 1; ++w) {
|
|
2916
|
+
f[w] = c[w + 1].readValueFromPointer(n + t), t += c[w + 1].argPackAdvance;
|
|
2909
2917
|
}
|
|
2910
2918
|
g = g[k].apply(g, f);
|
|
2911
|
-
for (
|
|
2912
|
-
c[
|
|
2919
|
+
for (w = 0; w < a - 1; ++w) {
|
|
2920
|
+
c[w + 1].Hb && c[w + 1].Hb(f[w]);
|
|
2913
2921
|
}
|
|
2914
2922
|
if (!d.Zb) {
|
|
2915
|
-
return d.toWireType(
|
|
2923
|
+
return d.toWireType(p, g);
|
|
2916
2924
|
}
|
|
2917
2925
|
});
|
|
2918
|
-
return
|
|
2926
|
+
return xd[b] = e;
|
|
2919
2927
|
}, _emval_get_property:function(a, b) {
|
|
2920
|
-
a =
|
|
2921
|
-
b =
|
|
2922
|
-
return
|
|
2928
|
+
a = hc(a);
|
|
2929
|
+
b = hc(b);
|
|
2930
|
+
return ic(a[b]);
|
|
2923
2931
|
}, _emval_incref:function(a) {
|
|
2924
|
-
4 < a && (
|
|
2932
|
+
4 < a && (I.get(a).pb += 1);
|
|
2925
2933
|
}, _emval_new_cstring:function(a) {
|
|
2926
|
-
return
|
|
2934
|
+
return ic(td(a));
|
|
2927
2935
|
}, _emval_new_object:function() {
|
|
2928
|
-
return
|
|
2936
|
+
return ic({});
|
|
2929
2937
|
}, _emval_run_destructors:function(a) {
|
|
2930
|
-
var b =
|
|
2931
|
-
|
|
2932
|
-
|
|
2938
|
+
var b = hc(a);
|
|
2939
|
+
Hc(b);
|
|
2940
|
+
gd(a);
|
|
2933
2941
|
}, _emval_set_property:function(a, b, c) {
|
|
2934
|
-
a =
|
|
2935
|
-
b =
|
|
2936
|
-
c =
|
|
2942
|
+
a = hc(a);
|
|
2943
|
+
b = hc(b);
|
|
2944
|
+
c = hc(c);
|
|
2937
2945
|
a[b] = c;
|
|
2938
2946
|
}, _emval_take_value:function(a, b) {
|
|
2939
|
-
a =
|
|
2947
|
+
a = vc(a, "_emval_take_value");
|
|
2940
2948
|
a = a.readValueFromPointer(b);
|
|
2941
|
-
return
|
|
2949
|
+
return ic(a);
|
|
2942
2950
|
}, abort:() => {
|
|
2943
2951
|
wa("");
|
|
2944
2952
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2945
|
-
|
|
2953
|
+
yd.length = 0;
|
|
2946
2954
|
var d;
|
|
2947
|
-
for (c >>= 2; d =
|
|
2948
|
-
c += 105 != d & c,
|
|
2955
|
+
for (c >>= 2; d = x[b++];) {
|
|
2956
|
+
c += 105 != d & c, yd.push(105 == d ? D[c] : Aa[c++ >> 1]), ++c;
|
|
2949
2957
|
}
|
|
2950
|
-
return Wa[a].apply(null,
|
|
2958
|
+
return Wa[a].apply(null, yd);
|
|
2951
2959
|
}, emscripten_date_now:function() {
|
|
2952
2960
|
return Date.now();
|
|
2953
2961
|
}, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
|
|
2954
2962
|
U.activeTexture(a);
|
|
2955
2963
|
}, emscripten_glAttachShader:function(a, b) {
|
|
2956
|
-
U.attachShader(
|
|
2964
|
+
U.attachShader(Ed[a], Id[b]);
|
|
2957
2965
|
}, emscripten_glBindAttribLocation:function(a, b, c) {
|
|
2958
|
-
U.bindAttribLocation(
|
|
2966
|
+
U.bindAttribLocation(Ed[a], b, c ? fb(x, c) : "");
|
|
2959
2967
|
}, emscripten_glBindBuffer:function(a, b) {
|
|
2960
2968
|
35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
|
|
2961
|
-
U.bindBuffer(a,
|
|
2962
|
-
}, emscripten_glBindFramebuffer:
|
|
2963
|
-
U.bindRenderbuffer(a,
|
|
2969
|
+
U.bindBuffer(a, Dd[b]);
|
|
2970
|
+
}, emscripten_glBindFramebuffer:Qd, emscripten_glBindRenderbuffer:function(a, b) {
|
|
2971
|
+
U.bindRenderbuffer(a, Gd[b]);
|
|
2964
2972
|
}, emscripten_glBindSampler:function(a, b) {
|
|
2965
|
-
U.bindSampler(a,
|
|
2973
|
+
U.bindSampler(a, Kd[b]);
|
|
2966
2974
|
}, emscripten_glBindTexture:function(a, b) {
|
|
2967
|
-
U.bindTexture(a,
|
|
2968
|
-
}, emscripten_glBindVertexArray:
|
|
2975
|
+
U.bindTexture(a, Hd[b]);
|
|
2976
|
+
}, emscripten_glBindVertexArray:Rd, emscripten_glBindVertexArrayOES:Rd, emscripten_glBlendColor:function(a, b, c, d) {
|
|
2969
2977
|
U.blendColor(a, b, c, d);
|
|
2970
2978
|
}, emscripten_glBlendEquation:function(a) {
|
|
2971
2979
|
U.blendEquation(a);
|
|
2972
2980
|
}, emscripten_glBlendFunc:function(a, b) {
|
|
2973
2981
|
U.blendFunc(a, b);
|
|
2974
|
-
}, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k,
|
|
2975
|
-
U.blitFramebuffer(a, b, c, d, e, f, g, k,
|
|
2982
|
+
}, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k, p, n) {
|
|
2983
|
+
U.blitFramebuffer(a, b, c, d, e, f, g, k, p, n);
|
|
2976
2984
|
}, emscripten_glBufferData:function(a, b, c, d) {
|
|
2977
|
-
2 <= T.version ? c && b ? U.bufferData(a,
|
|
2985
|
+
2 <= T.version ? c && b ? U.bufferData(a, x, d, c, b) : U.bufferData(a, b, d) : U.bufferData(a, c ? x.subarray(c, c + b) : b, d);
|
|
2978
2986
|
}, emscripten_glBufferSubData:function(a, b, c, d) {
|
|
2979
|
-
2 <= T.version ? c && U.bufferSubData(a, b,
|
|
2987
|
+
2 <= T.version ? c && U.bufferSubData(a, b, x, d, c) : U.bufferSubData(a, b, x.subarray(d, d + c));
|
|
2980
2988
|
}, emscripten_glCheckFramebufferStatus:function(a) {
|
|
2981
2989
|
return U.checkFramebufferStatus(a);
|
|
2982
2990
|
}, emscripten_glClear:function(a) {
|
|
@@ -2986,71 +2994,71 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2986
2994
|
}, emscripten_glClearStencil:function(a) {
|
|
2987
2995
|
U.clearStencil(a);
|
|
2988
2996
|
}, emscripten_glClientWaitSync:function(a, b, c, d) {
|
|
2989
|
-
return U.clientWaitSync(
|
|
2997
|
+
return U.clientWaitSync(Ld[a], b, (c >>> 0) + 4294967296 * d);
|
|
2990
2998
|
}, emscripten_glColorMask:function(a, b, c, d) {
|
|
2991
2999
|
U.colorMask(!!a, !!b, !!c, !!d);
|
|
2992
3000
|
}, emscripten_glCompileShader:function(a) {
|
|
2993
|
-
U.compileShader(
|
|
3001
|
+
U.compileShader(Id[a]);
|
|
2994
3002
|
}, emscripten_glCompressedTexImage2D:function(a, b, c, d, e, f, g, k) {
|
|
2995
|
-
2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f,
|
|
2996
|
-
}, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k,
|
|
2997
|
-
2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k,
|
|
3003
|
+
2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f, x, k, g) : U.compressedTexImage2D(a, b, c, d, e, f, k ? x.subarray(k, k + g) : null);
|
|
3004
|
+
}, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3005
|
+
2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k, p) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, x, p, k) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, p ? x.subarray(p, p + k) : null);
|
|
2998
3006
|
}, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
|
|
2999
3007
|
U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
|
|
3000
3008
|
}, emscripten_glCreateProgram:function() {
|
|
3001
|
-
var a =
|
|
3009
|
+
var a = ha(Ed), b = U.createProgram();
|
|
3002
3010
|
b.name = a;
|
|
3003
3011
|
b.za = b.xa = b.ya = 0;
|
|
3004
3012
|
b.Sa = 1;
|
|
3005
|
-
|
|
3013
|
+
Ed[a] = b;
|
|
3006
3014
|
return a;
|
|
3007
3015
|
}, emscripten_glCreateShader:function(a) {
|
|
3008
|
-
var b =
|
|
3009
|
-
|
|
3016
|
+
var b = ha(Id);
|
|
3017
|
+
Id[b] = U.createShader(a);
|
|
3010
3018
|
return b;
|
|
3011
3019
|
}, emscripten_glCullFace:function(a) {
|
|
3012
3020
|
U.cullFace(a);
|
|
3013
3021
|
}, emscripten_glDeleteBuffers:function(a, b) {
|
|
3014
3022
|
for (var c = 0; c < a; c++) {
|
|
3015
|
-
var d =
|
|
3016
|
-
e && (U.deleteBuffer(e), e.name = 0,
|
|
3023
|
+
var d = D[b + 4 * c >> 2], e = Dd[d];
|
|
3024
|
+
e && (U.deleteBuffer(e), e.name = 0, Dd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
|
|
3017
3025
|
}
|
|
3018
3026
|
}, emscripten_glDeleteFramebuffers:function(a, b) {
|
|
3019
3027
|
for (var c = 0; c < a; ++c) {
|
|
3020
|
-
var d =
|
|
3021
|
-
e && (U.deleteFramebuffer(e), e.name = 0,
|
|
3028
|
+
var d = D[b + 4 * c >> 2], e = Fd[d];
|
|
3029
|
+
e && (U.deleteFramebuffer(e), e.name = 0, Fd[d] = null);
|
|
3022
3030
|
}
|
|
3023
3031
|
}, emscripten_glDeleteProgram:function(a) {
|
|
3024
3032
|
if (a) {
|
|
3025
|
-
var b =
|
|
3026
|
-
b ? (U.deleteProgram(b), b.name = 0,
|
|
3033
|
+
var b = Ed[a];
|
|
3034
|
+
b ? (U.deleteProgram(b), b.name = 0, Ed[a] = null) : S(1281);
|
|
3027
3035
|
}
|
|
3028
3036
|
}, emscripten_glDeleteRenderbuffers:function(a, b) {
|
|
3029
3037
|
for (var c = 0; c < a; c++) {
|
|
3030
|
-
var d =
|
|
3031
|
-
e && (U.deleteRenderbuffer(e), e.name = 0,
|
|
3038
|
+
var d = D[b + 4 * c >> 2], e = Gd[d];
|
|
3039
|
+
e && (U.deleteRenderbuffer(e), e.name = 0, Gd[d] = null);
|
|
3032
3040
|
}
|
|
3033
3041
|
}, emscripten_glDeleteSamplers:function(a, b) {
|
|
3034
3042
|
for (var c = 0; c < a; c++) {
|
|
3035
|
-
var d =
|
|
3036
|
-
e && (U.deleteSampler(e), e.name = 0,
|
|
3043
|
+
var d = D[b + 4 * c >> 2], e = Kd[d];
|
|
3044
|
+
e && (U.deleteSampler(e), e.name = 0, Kd[d] = null);
|
|
3037
3045
|
}
|
|
3038
3046
|
}, emscripten_glDeleteShader:function(a) {
|
|
3039
3047
|
if (a) {
|
|
3040
|
-
var b =
|
|
3041
|
-
b ? (U.deleteShader(b),
|
|
3048
|
+
var b = Id[a];
|
|
3049
|
+
b ? (U.deleteShader(b), Id[a] = null) : S(1281);
|
|
3042
3050
|
}
|
|
3043
3051
|
}, emscripten_glDeleteSync:function(a) {
|
|
3044
3052
|
if (a) {
|
|
3045
|
-
var b =
|
|
3046
|
-
b ? (U.deleteSync(b), b.name = 0,
|
|
3053
|
+
var b = Ld[a];
|
|
3054
|
+
b ? (U.deleteSync(b), b.name = 0, Ld[a] = null) : S(1281);
|
|
3047
3055
|
}
|
|
3048
3056
|
}, emscripten_glDeleteTextures:function(a, b) {
|
|
3049
3057
|
for (var c = 0; c < a; c++) {
|
|
3050
|
-
var d =
|
|
3051
|
-
e && (U.deleteTexture(e), e.name = 0,
|
|
3058
|
+
var d = D[b + 4 * c >> 2], e = Hd[d];
|
|
3059
|
+
e && (U.deleteTexture(e), e.name = 0, Hd[d] = null);
|
|
3052
3060
|
}
|
|
3053
|
-
}, emscripten_glDeleteVertexArrays:
|
|
3061
|
+
}, emscripten_glDeleteVertexArrays:Sd, emscripten_glDeleteVertexArraysOES:Sd, emscripten_glDepthMask:function(a) {
|
|
3054
3062
|
U.depthMask(!!a);
|
|
3055
3063
|
}, emscripten_glDisable:function(a) {
|
|
3056
3064
|
U.disable(a);
|
|
@@ -3063,112 +3071,112 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3063
3071
|
}, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
|
|
3064
3072
|
U.Ya.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
|
|
3065
3073
|
}, emscripten_glDrawBuffers:function(a, b) {
|
|
3066
|
-
for (var c =
|
|
3067
|
-
c[d] =
|
|
3074
|
+
for (var c = Td[a], d = 0; d < a; d++) {
|
|
3075
|
+
c[d] = D[b + 4 * d >> 2];
|
|
3068
3076
|
}
|
|
3069
3077
|
U.drawBuffers(c);
|
|
3070
|
-
}, emscripten_glDrawElements:
|
|
3078
|
+
}, emscripten_glDrawElements:Ud, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3071
3079
|
U.drawElementsInstanced(a, b, c, d, e);
|
|
3072
3080
|
}, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
|
|
3073
3081
|
U.Ya.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
|
|
3074
3082
|
}, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
|
|
3075
|
-
|
|
3083
|
+
Ud(a, d, e, f);
|
|
3076
3084
|
}, emscripten_glEnable:function(a) {
|
|
3077
3085
|
U.enable(a);
|
|
3078
3086
|
}, emscripten_glEnableVertexAttribArray:function(a) {
|
|
3079
3087
|
U.enableVertexAttribArray(a);
|
|
3080
3088
|
}, emscripten_glFenceSync:function(a, b) {
|
|
3081
|
-
return (a = U.fenceSync(a, b)) ? (b =
|
|
3089
|
+
return (a = U.fenceSync(a, b)) ? (b = ha(Ld), a.name = b, Ld[b] = a, b) : 0;
|
|
3082
3090
|
}, emscripten_glFinish:function() {
|
|
3083
3091
|
U.finish();
|
|
3084
3092
|
}, emscripten_glFlush:function() {
|
|
3085
3093
|
U.flush();
|
|
3086
3094
|
}, emscripten_glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3087
|
-
U.framebufferRenderbuffer(a, b, c,
|
|
3095
|
+
U.framebufferRenderbuffer(a, b, c, Gd[d]);
|
|
3088
3096
|
}, emscripten_glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3089
|
-
U.framebufferTexture2D(a, b, c,
|
|
3097
|
+
U.framebufferTexture2D(a, b, c, Hd[d], e);
|
|
3090
3098
|
}, emscripten_glFrontFace:function(a) {
|
|
3091
3099
|
U.frontFace(a);
|
|
3092
3100
|
}, emscripten_glGenBuffers:function(a, b) {
|
|
3093
|
-
|
|
3101
|
+
Vd(a, b, "createBuffer", Dd);
|
|
3094
3102
|
}, emscripten_glGenFramebuffers:function(a, b) {
|
|
3095
|
-
|
|
3103
|
+
Vd(a, b, "createFramebuffer", Fd);
|
|
3096
3104
|
}, emscripten_glGenRenderbuffers:function(a, b) {
|
|
3097
|
-
|
|
3105
|
+
Vd(a, b, "createRenderbuffer", Gd);
|
|
3098
3106
|
}, emscripten_glGenSamplers:function(a, b) {
|
|
3099
|
-
|
|
3107
|
+
Vd(a, b, "createSampler", Kd);
|
|
3100
3108
|
}, emscripten_glGenTextures:function(a, b) {
|
|
3101
|
-
|
|
3102
|
-
}, emscripten_glGenVertexArrays:
|
|
3109
|
+
Vd(a, b, "createTexture", Hd);
|
|
3110
|
+
}, emscripten_glGenVertexArrays:Wd, emscripten_glGenVertexArraysOES:Wd, emscripten_glGenerateMipmap:function(a) {
|
|
3103
3111
|
U.generateMipmap(a);
|
|
3104
3112
|
}, emscripten_glGetBufferParameteriv:function(a, b, c) {
|
|
3105
|
-
c ?
|
|
3113
|
+
c ? D[c >> 2] = U.getBufferParameter(a, b) : S(1281);
|
|
3106
3114
|
}, emscripten_glGetError:function() {
|
|
3107
|
-
var a = U.getError() ||
|
|
3108
|
-
|
|
3115
|
+
var a = U.getError() || Pd;
|
|
3116
|
+
Pd = 0;
|
|
3109
3117
|
return a;
|
|
3110
3118
|
}, emscripten_glGetFramebufferAttachmentParameteriv:function(a, b, c, d) {
|
|
3111
3119
|
a = U.getFramebufferAttachmentParameter(a, b, c);
|
|
3112
3120
|
if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
|
|
3113
3121
|
a = a.name | 0;
|
|
3114
3122
|
}
|
|
3115
|
-
|
|
3116
|
-
}, emscripten_glGetIntegerv:
|
|
3117
|
-
a = U.getProgramInfoLog(
|
|
3123
|
+
D[d >> 2] = a;
|
|
3124
|
+
}, emscripten_glGetIntegerv:Yd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
|
|
3125
|
+
a = U.getProgramInfoLog(Ed[a]);
|
|
3118
3126
|
null === a && (a = "(unknown error)");
|
|
3119
|
-
b = 0 < b && d ?
|
|
3120
|
-
c && (
|
|
3127
|
+
b = 0 < b && d ? ib(a, x, d, b) : 0;
|
|
3128
|
+
c && (D[c >> 2] = b);
|
|
3121
3129
|
}, emscripten_glGetProgramiv:function(a, b, c) {
|
|
3122
3130
|
if (c) {
|
|
3123
|
-
if (a >=
|
|
3131
|
+
if (a >= Cd) {
|
|
3124
3132
|
S(1281);
|
|
3125
3133
|
} else {
|
|
3126
|
-
if (a =
|
|
3127
|
-
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"),
|
|
3134
|
+
if (a = Ed[a], 35716 == b) {
|
|
3135
|
+
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), D[c >> 2] = a.length + 1;
|
|
3128
3136
|
} else if (35719 == b) {
|
|
3129
3137
|
if (!a.za) {
|
|
3130
3138
|
for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
|
|
3131
3139
|
a.za = Math.max(a.za, U.getActiveUniform(a, b).name.length + 1);
|
|
3132
3140
|
}
|
|
3133
3141
|
}
|
|
3134
|
-
|
|
3142
|
+
D[c >> 2] = a.za;
|
|
3135
3143
|
} else if (35722 == b) {
|
|
3136
3144
|
if (!a.xa) {
|
|
3137
3145
|
for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
|
|
3138
3146
|
a.xa = Math.max(a.xa, U.getActiveAttrib(a, b).name.length + 1);
|
|
3139
3147
|
}
|
|
3140
3148
|
}
|
|
3141
|
-
|
|
3149
|
+
D[c >> 2] = a.xa;
|
|
3142
3150
|
} else if (35381 == b) {
|
|
3143
3151
|
if (!a.ya) {
|
|
3144
3152
|
for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
|
|
3145
3153
|
a.ya = Math.max(a.ya, U.getActiveUniformBlockName(a, b).length + 1);
|
|
3146
3154
|
}
|
|
3147
3155
|
}
|
|
3148
|
-
|
|
3156
|
+
D[c >> 2] = a.ya;
|
|
3149
3157
|
} else {
|
|
3150
|
-
|
|
3158
|
+
D[c >> 2] = U.getProgramParameter(a, b);
|
|
3151
3159
|
}
|
|
3152
3160
|
}
|
|
3153
3161
|
} else {
|
|
3154
3162
|
S(1281);
|
|
3155
3163
|
}
|
|
3156
3164
|
}, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
|
|
3157
|
-
c ?
|
|
3165
|
+
c ? D[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
|
|
3158
3166
|
}, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
|
|
3159
|
-
a = U.getShaderInfoLog(
|
|
3167
|
+
a = U.getShaderInfoLog(Id[a]);
|
|
3160
3168
|
null === a && (a = "(unknown error)");
|
|
3161
|
-
b = 0 < b && d ?
|
|
3162
|
-
c && (
|
|
3169
|
+
b = 0 < b && d ? ib(a, x, d, b) : 0;
|
|
3170
|
+
c && (D[c >> 2] = b);
|
|
3163
3171
|
}, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
|
|
3164
3172
|
a = U.getShaderPrecisionFormat(a, b);
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3173
|
+
D[c >> 2] = a.rangeMin;
|
|
3174
|
+
D[c + 4 >> 2] = a.rangeMax;
|
|
3175
|
+
D[d >> 2] = a.precision;
|
|
3168
3176
|
}, emscripten_glGetShaderiv:function(a, b, c) {
|
|
3169
|
-
c ? 35716 == b ? (a = U.getShaderInfoLog(
|
|
3177
|
+
c ? 35716 == b ? (a = U.getShaderInfoLog(Id[a]), null === a && (a = "(unknown error)"), D[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Id[a]), D[c >> 2] = a ? a.length + 1 : 0) : D[c >> 2] = U.getShaderParameter(Id[a], b) : S(1281);
|
|
3170
3178
|
}, emscripten_glGetString:function(a) {
|
|
3171
|
-
var b =
|
|
3179
|
+
var b = Md[a];
|
|
3172
3180
|
if (!b) {
|
|
3173
3181
|
switch(a) {
|
|
3174
3182
|
case 7939:
|
|
@@ -3176,37 +3184,37 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3176
3184
|
b = b.concat(b.map(function(d) {
|
|
3177
3185
|
return "GL_" + d;
|
|
3178
3186
|
}));
|
|
3179
|
-
b =
|
|
3187
|
+
b = $d(b.join(" "));
|
|
3180
3188
|
break;
|
|
3181
3189
|
case 7936:
|
|
3182
3190
|
case 7937:
|
|
3183
3191
|
case 37445:
|
|
3184
3192
|
case 37446:
|
|
3185
3193
|
(b = U.getParameter(a)) || S(1280);
|
|
3186
|
-
b = b &&
|
|
3194
|
+
b = b && $d(b);
|
|
3187
3195
|
break;
|
|
3188
3196
|
case 7938:
|
|
3189
3197
|
b = U.getParameter(7938);
|
|
3190
3198
|
b = 2 <= T.version ? "OpenGL ES 3.0 (" + b + ")" : "OpenGL ES 2.0 (" + b + ")";
|
|
3191
|
-
b =
|
|
3199
|
+
b = $d(b);
|
|
3192
3200
|
break;
|
|
3193
3201
|
case 35724:
|
|
3194
3202
|
b = U.getParameter(35724);
|
|
3195
3203
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3196
3204
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3197
|
-
b =
|
|
3205
|
+
b = $d(b);
|
|
3198
3206
|
break;
|
|
3199
3207
|
default:
|
|
3200
3208
|
S(1280);
|
|
3201
3209
|
}
|
|
3202
|
-
|
|
3210
|
+
Md[a] = b;
|
|
3203
3211
|
}
|
|
3204
3212
|
return b;
|
|
3205
3213
|
}, emscripten_glGetStringi:function(a, b) {
|
|
3206
3214
|
if (2 > T.version) {
|
|
3207
3215
|
return S(1282), 0;
|
|
3208
3216
|
}
|
|
3209
|
-
var c =
|
|
3217
|
+
var c = Nd[a];
|
|
3210
3218
|
if (c) {
|
|
3211
3219
|
return 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3212
3220
|
}
|
|
@@ -3215,34 +3223,34 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3215
3223
|
return c = U.getSupportedExtensions() || [], c = c.concat(c.map(function(d) {
|
|
3216
3224
|
return "GL_" + d;
|
|
3217
3225
|
})), c = c.map(function(d) {
|
|
3218
|
-
return
|
|
3219
|
-
}), c =
|
|
3226
|
+
return $d(d);
|
|
3227
|
+
}), c = Nd[a] = c, 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3220
3228
|
default:
|
|
3221
3229
|
return S(1280), 0;
|
|
3222
3230
|
}
|
|
3223
3231
|
}, emscripten_glGetUniformLocation:function(a, b) {
|
|
3224
|
-
b = b ?
|
|
3225
|
-
if (a =
|
|
3232
|
+
b = b ? fb(x, b) : "";
|
|
3233
|
+
if (a = Ed[a]) {
|
|
3226
3234
|
var c = a, d = c.ma, e = c.ub, f;
|
|
3227
3235
|
if (!d) {
|
|
3228
3236
|
for (c.ma = d = {}, c.tb = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
|
|
3229
3237
|
var g = U.getActiveUniform(c, f);
|
|
3230
3238
|
var k = g.name;
|
|
3231
3239
|
g = g.size;
|
|
3232
|
-
var
|
|
3233
|
-
|
|
3240
|
+
var p = ae(k);
|
|
3241
|
+
p = 0 < p ? k.slice(0, p) : k;
|
|
3234
3242
|
var n = c.Sa;
|
|
3235
3243
|
c.Sa += g;
|
|
3236
|
-
e[
|
|
3244
|
+
e[p] = [g, n];
|
|
3237
3245
|
for (k = 0; k < g; ++k) {
|
|
3238
|
-
d[n] = k, c.tb[n++] =
|
|
3246
|
+
d[n] = k, c.tb[n++] = p;
|
|
3239
3247
|
}
|
|
3240
3248
|
}
|
|
3241
3249
|
}
|
|
3242
3250
|
c = a.ma;
|
|
3243
3251
|
d = 0;
|
|
3244
3252
|
e = b;
|
|
3245
|
-
f =
|
|
3253
|
+
f = ae(b);
|
|
3246
3254
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3247
3255
|
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
|
|
3248
3256
|
return d;
|
|
@@ -3252,32 +3260,32 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3252
3260
|
}
|
|
3253
3261
|
return -1;
|
|
3254
3262
|
}, emscripten_glInvalidateFramebuffer:function(a, b, c) {
|
|
3255
|
-
for (var d =
|
|
3256
|
-
d[e] =
|
|
3263
|
+
for (var d = Td[b], e = 0; e < b; e++) {
|
|
3264
|
+
d[e] = D[c + 4 * e >> 2];
|
|
3257
3265
|
}
|
|
3258
3266
|
U.invalidateFramebuffer(a, d);
|
|
3259
3267
|
}, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3260
|
-
for (var k =
|
|
3261
|
-
k[
|
|
3268
|
+
for (var k = Td[b], p = 0; p < b; p++) {
|
|
3269
|
+
k[p] = D[c + 4 * p >> 2];
|
|
3262
3270
|
}
|
|
3263
3271
|
U.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3264
3272
|
}, emscripten_glIsSync:function(a) {
|
|
3265
|
-
return U.isSync(
|
|
3273
|
+
return U.isSync(Ld[a]);
|
|
3266
3274
|
}, emscripten_glIsTexture:function(a) {
|
|
3267
|
-
return (a =
|
|
3275
|
+
return (a = Hd[a]) ? U.isTexture(a) : 0;
|
|
3268
3276
|
}, emscripten_glLineWidth:function(a) {
|
|
3269
3277
|
U.lineWidth(a);
|
|
3270
3278
|
}, emscripten_glLinkProgram:function(a) {
|
|
3271
|
-
a =
|
|
3279
|
+
a = Ed[a];
|
|
3272
3280
|
U.linkProgram(a);
|
|
3273
3281
|
a.ma = 0;
|
|
3274
3282
|
a.ub = {};
|
|
3275
3283
|
}, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
|
|
3276
|
-
U.gb.multiDrawArraysInstancedBaseInstanceWEBGL(a,
|
|
3284
|
+
U.gb.multiDrawArraysInstancedBaseInstanceWEBGL(a, D, b >> 2, D, c >> 2, D, d >> 2, E, e >> 2, f);
|
|
3277
3285
|
}, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
|
|
3278
|
-
U.gb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a,
|
|
3286
|
+
U.gb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, D, b >> 2, c, D, d >> 2, D, e >> 2, D, f >> 2, E, g >> 2, k);
|
|
3279
3287
|
}, emscripten_glPixelStorei:function(a, b) {
|
|
3280
|
-
3317 == a && (
|
|
3288
|
+
3317 == a && (Od = b);
|
|
3281
3289
|
U.pixelStorei(a, b);
|
|
3282
3290
|
}, emscripten_glReadBuffer:function(a) {
|
|
3283
3291
|
U.readBuffer(a);
|
|
@@ -3286,29 +3294,29 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3286
3294
|
if (U.Ka) {
|
|
3287
3295
|
U.readPixels(a, b, c, d, e, f, g);
|
|
3288
3296
|
} else {
|
|
3289
|
-
var k =
|
|
3297
|
+
var k = be(f);
|
|
3290
3298
|
U.readPixels(a, b, c, d, e, f, k, g >> 31 - Math.clz32(k.BYTES_PER_ELEMENT));
|
|
3291
3299
|
}
|
|
3292
3300
|
} else {
|
|
3293
|
-
(g =
|
|
3301
|
+
(g = ce(f, e, c, d, g)) ? U.readPixels(a, b, c, d, e, f, g) : S(1280);
|
|
3294
3302
|
}
|
|
3295
3303
|
}, emscripten_glRenderbufferStorage:function(a, b, c, d) {
|
|
3296
3304
|
U.renderbufferStorage(a, b, c, d);
|
|
3297
3305
|
}, emscripten_glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3298
3306
|
U.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3299
3307
|
}, emscripten_glSamplerParameteri:function(a, b, c) {
|
|
3300
|
-
U.samplerParameteri(
|
|
3308
|
+
U.samplerParameteri(Kd[a], b, c);
|
|
3301
3309
|
}, emscripten_glSamplerParameteriv:function(a, b, c) {
|
|
3302
|
-
U.samplerParameteri(
|
|
3310
|
+
U.samplerParameteri(Kd[a], b, D[c >> 2]);
|
|
3303
3311
|
}, emscripten_glScissor:function(a, b, c, d) {
|
|
3304
3312
|
U.scissor(a, b, c, d);
|
|
3305
3313
|
}, emscripten_glShaderSource:function(a, b, c, d) {
|
|
3306
3314
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3307
|
-
var g = d ?
|
|
3308
|
-
g = k ?
|
|
3315
|
+
var g = d ? D[d + 4 * f >> 2] : -1, k = D[c + 4 * f >> 2];
|
|
3316
|
+
g = k ? fb(x, k, 0 > g ? void 0 : g) : "";
|
|
3309
3317
|
e += g;
|
|
3310
3318
|
}
|
|
3311
|
-
U.shaderSource(
|
|
3319
|
+
U.shaderSource(Id[a], e);
|
|
3312
3320
|
}, emscripten_glStencilFunc:function(a, b, c) {
|
|
3313
3321
|
U.stencilFunc(a, b, c);
|
|
3314
3322
|
}, emscripten_glStencilFuncSeparate:function(a, b, c, d) {
|
|
@@ -3321,54 +3329,54 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3321
3329
|
U.stencilOp(a, b, c);
|
|
3322
3330
|
}, emscripten_glStencilOpSeparate:function(a, b, c, d) {
|
|
3323
3331
|
U.stencilOpSeparate(a, b, c, d);
|
|
3324
|
-
}, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k,
|
|
3332
|
+
}, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3325
3333
|
if (2 <= T.version) {
|
|
3326
3334
|
if (U.fa) {
|
|
3327
|
-
U.texImage2D(a, b, c, d, e, f, g, k,
|
|
3328
|
-
} else if (
|
|
3329
|
-
var n =
|
|
3330
|
-
U.texImage2D(a, b, c, d, e, f, g, k, n,
|
|
3335
|
+
U.texImage2D(a, b, c, d, e, f, g, k, p);
|
|
3336
|
+
} else if (p) {
|
|
3337
|
+
var n = be(k);
|
|
3338
|
+
U.texImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3331
3339
|
} else {
|
|
3332
3340
|
U.texImage2D(a, b, c, d, e, f, g, k, null);
|
|
3333
3341
|
}
|
|
3334
3342
|
} else {
|
|
3335
|
-
U.texImage2D(a, b, c, d, e, f, g, k,
|
|
3343
|
+
U.texImage2D(a, b, c, d, e, f, g, k, p ? ce(k, g, d, e, p) : null);
|
|
3336
3344
|
}
|
|
3337
3345
|
}, emscripten_glTexParameterf:function(a, b, c) {
|
|
3338
3346
|
U.texParameterf(a, b, c);
|
|
3339
3347
|
}, emscripten_glTexParameterfv:function(a, b, c) {
|
|
3340
|
-
U.texParameterf(a, b,
|
|
3348
|
+
U.texParameterf(a, b, F[c >> 2]);
|
|
3341
3349
|
}, emscripten_glTexParameteri:function(a, b, c) {
|
|
3342
3350
|
U.texParameteri(a, b, c);
|
|
3343
3351
|
}, emscripten_glTexParameteriv:function(a, b, c) {
|
|
3344
|
-
U.texParameteri(a, b,
|
|
3352
|
+
U.texParameteri(a, b, D[c >> 2]);
|
|
3345
3353
|
}, emscripten_glTexStorage2D:function(a, b, c, d, e) {
|
|
3346
3354
|
U.texStorage2D(a, b, c, d, e);
|
|
3347
|
-
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k,
|
|
3355
|
+
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
|
|
3348
3356
|
if (2 <= T.version) {
|
|
3349
3357
|
if (U.fa) {
|
|
3350
|
-
U.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3351
|
-
} else if (
|
|
3352
|
-
var n =
|
|
3353
|
-
U.texSubImage2D(a, b, c, d, e, f, g, k, n,
|
|
3358
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, p);
|
|
3359
|
+
} else if (p) {
|
|
3360
|
+
var n = be(k);
|
|
3361
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3354
3362
|
} else {
|
|
3355
3363
|
U.texSubImage2D(a, b, c, d, e, f, g, k, null);
|
|
3356
3364
|
}
|
|
3357
3365
|
} else {
|
|
3358
|
-
n = null,
|
|
3366
|
+
n = null, p && (n = ce(k, g, e, f, p)), U.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3359
3367
|
}
|
|
3360
3368
|
}, emscripten_glUniform1f:function(a, b) {
|
|
3361
3369
|
U.uniform1f(V(a), b);
|
|
3362
3370
|
}, emscripten_glUniform1fv:function(a, b, c) {
|
|
3363
3371
|
if (2 <= T.version) {
|
|
3364
|
-
b && U.uniform1fv(V(a),
|
|
3372
|
+
b && U.uniform1fv(V(a), F, c >> 2, b);
|
|
3365
3373
|
} else {
|
|
3366
3374
|
if (288 >= b) {
|
|
3367
|
-
for (var d =
|
|
3368
|
-
d[e] =
|
|
3375
|
+
for (var d = de[b - 1], e = 0; e < b; ++e) {
|
|
3376
|
+
d[e] = F[c + 4 * e >> 2];
|
|
3369
3377
|
}
|
|
3370
3378
|
} else {
|
|
3371
|
-
d =
|
|
3379
|
+
d = F.subarray(c >> 2, c + 4 * b >> 2);
|
|
3372
3380
|
}
|
|
3373
3381
|
U.uniform1fv(V(a), d);
|
|
3374
3382
|
}
|
|
@@ -3376,14 +3384,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3376
3384
|
U.uniform1i(V(a), b);
|
|
3377
3385
|
}, emscripten_glUniform1iv:function(a, b, c) {
|
|
3378
3386
|
if (2 <= T.version) {
|
|
3379
|
-
b && U.uniform1iv(V(a),
|
|
3387
|
+
b && U.uniform1iv(V(a), D, c >> 2, b);
|
|
3380
3388
|
} else {
|
|
3381
3389
|
if (288 >= b) {
|
|
3382
|
-
for (var d =
|
|
3383
|
-
d[e] =
|
|
3390
|
+
for (var d = ee[b - 1], e = 0; e < b; ++e) {
|
|
3391
|
+
d[e] = D[c + 4 * e >> 2];
|
|
3384
3392
|
}
|
|
3385
3393
|
} else {
|
|
3386
|
-
d =
|
|
3394
|
+
d = D.subarray(c >> 2, c + 4 * b >> 2);
|
|
3387
3395
|
}
|
|
3388
3396
|
U.uniform1iv(V(a), d);
|
|
3389
3397
|
}
|
|
@@ -3391,14 +3399,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3391
3399
|
U.uniform2f(V(a), b, c);
|
|
3392
3400
|
}, emscripten_glUniform2fv:function(a, b, c) {
|
|
3393
3401
|
if (2 <= T.version) {
|
|
3394
|
-
b && U.uniform2fv(V(a),
|
|
3402
|
+
b && U.uniform2fv(V(a), F, c >> 2, 2 * b);
|
|
3395
3403
|
} else {
|
|
3396
3404
|
if (144 >= b) {
|
|
3397
|
-
for (var d =
|
|
3398
|
-
d[e] =
|
|
3405
|
+
for (var d = de[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3406
|
+
d[e] = F[c + 4 * e >> 2], d[e + 1] = F[c + (4 * e + 4) >> 2];
|
|
3399
3407
|
}
|
|
3400
3408
|
} else {
|
|
3401
|
-
d =
|
|
3409
|
+
d = F.subarray(c >> 2, c + 8 * b >> 2);
|
|
3402
3410
|
}
|
|
3403
3411
|
U.uniform2fv(V(a), d);
|
|
3404
3412
|
}
|
|
@@ -3406,14 +3414,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3406
3414
|
U.uniform2i(V(a), b, c);
|
|
3407
3415
|
}, emscripten_glUniform2iv:function(a, b, c) {
|
|
3408
3416
|
if (2 <= T.version) {
|
|
3409
|
-
b && U.uniform2iv(V(a),
|
|
3417
|
+
b && U.uniform2iv(V(a), D, c >> 2, 2 * b);
|
|
3410
3418
|
} else {
|
|
3411
3419
|
if (144 >= b) {
|
|
3412
|
-
for (var d =
|
|
3413
|
-
d[e] =
|
|
3420
|
+
for (var d = ee[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3421
|
+
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2];
|
|
3414
3422
|
}
|
|
3415
3423
|
} else {
|
|
3416
|
-
d =
|
|
3424
|
+
d = D.subarray(c >> 2, c + 8 * b >> 2);
|
|
3417
3425
|
}
|
|
3418
3426
|
U.uniform2iv(V(a), d);
|
|
3419
3427
|
}
|
|
@@ -3421,14 +3429,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3421
3429
|
U.uniform3f(V(a), b, c, d);
|
|
3422
3430
|
}, emscripten_glUniform3fv:function(a, b, c) {
|
|
3423
3431
|
if (2 <= T.version) {
|
|
3424
|
-
b && U.uniform3fv(V(a),
|
|
3432
|
+
b && U.uniform3fv(V(a), F, c >> 2, 3 * b);
|
|
3425
3433
|
} else {
|
|
3426
3434
|
if (96 >= b) {
|
|
3427
|
-
for (var d =
|
|
3428
|
-
d[e] =
|
|
3435
|
+
for (var d = de[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3436
|
+
d[e] = F[c + 4 * e >> 2], d[e + 1] = F[c + (4 * e + 4) >> 2], d[e + 2] = F[c + (4 * e + 8) >> 2];
|
|
3429
3437
|
}
|
|
3430
3438
|
} else {
|
|
3431
|
-
d =
|
|
3439
|
+
d = F.subarray(c >> 2, c + 12 * b >> 2);
|
|
3432
3440
|
}
|
|
3433
3441
|
U.uniform3fv(V(a), d);
|
|
3434
3442
|
}
|
|
@@ -3436,14 +3444,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3436
3444
|
U.uniform3i(V(a), b, c, d);
|
|
3437
3445
|
}, emscripten_glUniform3iv:function(a, b, c) {
|
|
3438
3446
|
if (2 <= T.version) {
|
|
3439
|
-
b && U.uniform3iv(V(a),
|
|
3447
|
+
b && U.uniform3iv(V(a), D, c >> 2, 3 * b);
|
|
3440
3448
|
} else {
|
|
3441
3449
|
if (96 >= b) {
|
|
3442
|
-
for (var d =
|
|
3443
|
-
d[e] =
|
|
3450
|
+
for (var d = ee[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3451
|
+
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2];
|
|
3444
3452
|
}
|
|
3445
3453
|
} else {
|
|
3446
|
-
d =
|
|
3454
|
+
d = D.subarray(c >> 2, c + 12 * b >> 2);
|
|
3447
3455
|
}
|
|
3448
3456
|
U.uniform3iv(V(a), d);
|
|
3449
3457
|
}
|
|
@@ -3451,10 +3459,10 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3451
3459
|
U.uniform4f(V(a), b, c, d, e);
|
|
3452
3460
|
}, emscripten_glUniform4fv:function(a, b, c) {
|
|
3453
3461
|
if (2 <= T.version) {
|
|
3454
|
-
b && U.uniform4fv(V(a),
|
|
3462
|
+
b && U.uniform4fv(V(a), F, c >> 2, 4 * b);
|
|
3455
3463
|
} else {
|
|
3456
3464
|
if (72 >= b) {
|
|
3457
|
-
var d =
|
|
3465
|
+
var d = de[4 * b - 1], e = F;
|
|
3458
3466
|
c >>= 2;
|
|
3459
3467
|
for (var f = 0; f < 4 * b; f += 4) {
|
|
3460
3468
|
var g = c + f;
|
|
@@ -3464,7 +3472,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3464
3472
|
d[f + 3] = e[g + 3];
|
|
3465
3473
|
}
|
|
3466
3474
|
} else {
|
|
3467
|
-
d =
|
|
3475
|
+
d = F.subarray(c >> 2, c + 16 * b >> 2);
|
|
3468
3476
|
}
|
|
3469
3477
|
U.uniform4fv(V(a), d);
|
|
3470
3478
|
}
|
|
@@ -3472,49 +3480,49 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3472
3480
|
U.uniform4i(V(a), b, c, d, e);
|
|
3473
3481
|
}, emscripten_glUniform4iv:function(a, b, c) {
|
|
3474
3482
|
if (2 <= T.version) {
|
|
3475
|
-
b && U.uniform4iv(V(a),
|
|
3483
|
+
b && U.uniform4iv(V(a), D, c >> 2, 4 * b);
|
|
3476
3484
|
} else {
|
|
3477
3485
|
if (72 >= b) {
|
|
3478
|
-
for (var d =
|
|
3479
|
-
d[e] =
|
|
3486
|
+
for (var d = ee[4 * b - 1], e = 0; e < 4 * b; e += 4) {
|
|
3487
|
+
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2], d[e + 3] = D[c + (4 * e + 12) >> 2];
|
|
3480
3488
|
}
|
|
3481
3489
|
} else {
|
|
3482
|
-
d =
|
|
3490
|
+
d = D.subarray(c >> 2, c + 16 * b >> 2);
|
|
3483
3491
|
}
|
|
3484
3492
|
U.uniform4iv(V(a), d);
|
|
3485
3493
|
}
|
|
3486
3494
|
}, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
|
|
3487
3495
|
if (2 <= T.version) {
|
|
3488
|
-
b && U.uniformMatrix2fv(V(a), !!c,
|
|
3496
|
+
b && U.uniformMatrix2fv(V(a), !!c, F, d >> 2, 4 * b);
|
|
3489
3497
|
} else {
|
|
3490
3498
|
if (72 >= b) {
|
|
3491
|
-
for (var e =
|
|
3492
|
-
e[f] =
|
|
3499
|
+
for (var e = de[4 * b - 1], f = 0; f < 4 * b; f += 4) {
|
|
3500
|
+
e[f] = F[d + 4 * f >> 2], e[f + 1] = F[d + (4 * f + 4) >> 2], e[f + 2] = F[d + (4 * f + 8) >> 2], e[f + 3] = F[d + (4 * f + 12) >> 2];
|
|
3493
3501
|
}
|
|
3494
3502
|
} else {
|
|
3495
|
-
e =
|
|
3503
|
+
e = F.subarray(d >> 2, d + 16 * b >> 2);
|
|
3496
3504
|
}
|
|
3497
3505
|
U.uniformMatrix2fv(V(a), !!c, e);
|
|
3498
3506
|
}
|
|
3499
3507
|
}, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
|
|
3500
3508
|
if (2 <= T.version) {
|
|
3501
|
-
b && U.uniformMatrix3fv(V(a), !!c,
|
|
3509
|
+
b && U.uniformMatrix3fv(V(a), !!c, F, d >> 2, 9 * b);
|
|
3502
3510
|
} else {
|
|
3503
3511
|
if (32 >= b) {
|
|
3504
|
-
for (var e =
|
|
3505
|
-
e[f] =
|
|
3512
|
+
for (var e = de[9 * b - 1], f = 0; f < 9 * b; f += 9) {
|
|
3513
|
+
e[f] = F[d + 4 * f >> 2], e[f + 1] = F[d + (4 * f + 4) >> 2], e[f + 2] = F[d + (4 * f + 8) >> 2], e[f + 3] = F[d + (4 * f + 12) >> 2], e[f + 4] = F[d + (4 * f + 16) >> 2], e[f + 5] = F[d + (4 * f + 20) >> 2], e[f + 6] = F[d + (4 * f + 24) >> 2], e[f + 7] = F[d + (4 * f + 28) >> 2], e[f + 8] = F[d + (4 * f + 32) >> 2];
|
|
3506
3514
|
}
|
|
3507
3515
|
} else {
|
|
3508
|
-
e =
|
|
3516
|
+
e = F.subarray(d >> 2, d + 36 * b >> 2);
|
|
3509
3517
|
}
|
|
3510
3518
|
U.uniformMatrix3fv(V(a), !!c, e);
|
|
3511
3519
|
}
|
|
3512
3520
|
}, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
|
|
3513
3521
|
if (2 <= T.version) {
|
|
3514
|
-
b && U.uniformMatrix4fv(V(a), !!c,
|
|
3522
|
+
b && U.uniformMatrix4fv(V(a), !!c, F, d >> 2, 16 * b);
|
|
3515
3523
|
} else {
|
|
3516
3524
|
if (18 >= b) {
|
|
3517
|
-
var e =
|
|
3525
|
+
var e = de[16 * b - 1], f = F;
|
|
3518
3526
|
d >>= 2;
|
|
3519
3527
|
for (var g = 0; g < 16 * b; g += 16) {
|
|
3520
3528
|
var k = d + g;
|
|
@@ -3536,22 +3544,22 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3536
3544
|
e[g + 15] = f[k + 15];
|
|
3537
3545
|
}
|
|
3538
3546
|
} else {
|
|
3539
|
-
e =
|
|
3547
|
+
e = F.subarray(d >> 2, d + 64 * b >> 2);
|
|
3540
3548
|
}
|
|
3541
3549
|
U.uniformMatrix4fv(V(a), !!c, e);
|
|
3542
3550
|
}
|
|
3543
3551
|
}, emscripten_glUseProgram:function(a) {
|
|
3544
|
-
a =
|
|
3552
|
+
a = Ed[a];
|
|
3545
3553
|
U.useProgram(a);
|
|
3546
3554
|
U.Gb = a;
|
|
3547
3555
|
}, emscripten_glVertexAttrib1f:function(a, b) {
|
|
3548
3556
|
U.vertexAttrib1f(a, b);
|
|
3549
3557
|
}, emscripten_glVertexAttrib2fv:function(a, b) {
|
|
3550
|
-
U.vertexAttrib2f(a,
|
|
3558
|
+
U.vertexAttrib2f(a, F[b >> 2], F[b + 4 >> 2]);
|
|
3551
3559
|
}, emscripten_glVertexAttrib3fv:function(a, b) {
|
|
3552
|
-
U.vertexAttrib3f(a,
|
|
3560
|
+
U.vertexAttrib3f(a, F[b >> 2], F[b + 4 >> 2], F[b + 8 >> 2]);
|
|
3553
3561
|
}, emscripten_glVertexAttrib4fv:function(a, b) {
|
|
3554
|
-
U.vertexAttrib4f(a,
|
|
3562
|
+
U.vertexAttrib4f(a, F[b >> 2], F[b + 4 >> 2], F[b + 8 >> 2], F[b + 12 >> 2]);
|
|
3555
3563
|
}, emscripten_glVertexAttribDivisor:function(a, b) {
|
|
3556
3564
|
U.vertexAttribDivisor(a, b);
|
|
3557
3565
|
}, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3561,9 +3569,9 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3561
3569
|
}, emscripten_glViewport:function(a, b, c, d) {
|
|
3562
3570
|
U.viewport(a, b, c, d);
|
|
3563
3571
|
}, emscripten_glWaitSync:function(a, b, c, d) {
|
|
3564
|
-
U.waitSync(
|
|
3565
|
-
}, emscripten_memcpy_big:(a, b, c) =>
|
|
3566
|
-
var b =
|
|
3572
|
+
U.waitSync(Ld[a], b, (c >>> 0) + 4294967296 * d);
|
|
3573
|
+
}, emscripten_memcpy_big:(a, b, c) => x.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
3574
|
+
var b = x.length;
|
|
3567
3575
|
a >>>= 0;
|
|
3568
3576
|
if (2147483648 < a) {
|
|
3569
3577
|
return !1;
|
|
@@ -3595,30 +3603,30 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3595
3603
|
return la(a) ? 0 : -5;
|
|
3596
3604
|
}, environ_get:(a, b) => {
|
|
3597
3605
|
var c = 0;
|
|
3598
|
-
|
|
3606
|
+
he().forEach(function(d, e) {
|
|
3599
3607
|
var f = b + c;
|
|
3600
|
-
e =
|
|
3608
|
+
e = E[a + 4 * e >> 2] = f;
|
|
3601
3609
|
for (f = 0; f < d.length; ++f) {
|
|
3602
|
-
|
|
3610
|
+
v[e++ >> 0] = d.charCodeAt(f);
|
|
3603
3611
|
}
|
|
3604
|
-
|
|
3612
|
+
v[e >> 0] = 0;
|
|
3605
3613
|
c += d.length + 1;
|
|
3606
3614
|
});
|
|
3607
3615
|
return 0;
|
|
3608
3616
|
}, environ_sizes_get:(a, b) => {
|
|
3609
|
-
var c =
|
|
3610
|
-
|
|
3617
|
+
var c = he();
|
|
3618
|
+
E[a >> 2] = c.length;
|
|
3611
3619
|
var d = 0;
|
|
3612
3620
|
c.forEach(function(e) {
|
|
3613
3621
|
d += e.length + 1;
|
|
3614
3622
|
});
|
|
3615
|
-
|
|
3623
|
+
E[b >> 2] = d;
|
|
3616
3624
|
return 0;
|
|
3617
3625
|
}, fd_close:function(a) {
|
|
3618
3626
|
try {
|
|
3619
|
-
var b =
|
|
3627
|
+
var b = Nb(a);
|
|
3620
3628
|
if (null === b.V) {
|
|
3621
|
-
throw new
|
|
3629
|
+
throw new G(8);
|
|
3622
3630
|
}
|
|
3623
3631
|
b.Ma && (b.Ma = null);
|
|
3624
3632
|
try {
|
|
@@ -3626,12 +3634,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3626
3634
|
} catch (c) {
|
|
3627
3635
|
throw c;
|
|
3628
3636
|
} finally {
|
|
3629
|
-
|
|
3637
|
+
zb[b.V] = null;
|
|
3630
3638
|
}
|
|
3631
3639
|
b.V = null;
|
|
3632
3640
|
return 0;
|
|
3633
3641
|
} catch (c) {
|
|
3634
|
-
if ("undefined" == typeof
|
|
3642
|
+
if ("undefined" == typeof ac || "ErrnoError" !== c.name) {
|
|
3635
3643
|
throw c;
|
|
3636
3644
|
}
|
|
3637
3645
|
return c.Z;
|
|
@@ -3639,52 +3647,52 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3639
3647
|
}, fd_read:function(a, b, c, d) {
|
|
3640
3648
|
try {
|
|
3641
3649
|
a: {
|
|
3642
|
-
var e =
|
|
3650
|
+
var e = Nb(a);
|
|
3643
3651
|
a = b;
|
|
3644
3652
|
for (var f, g = b = 0; g < c; g++) {
|
|
3645
|
-
var k =
|
|
3653
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3646
3654
|
a += 8;
|
|
3647
|
-
var n = e, t = k,
|
|
3648
|
-
if (0 >
|
|
3649
|
-
throw new
|
|
3655
|
+
var n = e, t = k, w = p, y = f, q = v;
|
|
3656
|
+
if (0 > w || 0 > y) {
|
|
3657
|
+
throw new G(28);
|
|
3650
3658
|
}
|
|
3651
3659
|
if (null === n.V) {
|
|
3652
|
-
throw new
|
|
3660
|
+
throw new G(8);
|
|
3653
3661
|
}
|
|
3654
3662
|
if (1 === (n.flags & 2097155)) {
|
|
3655
|
-
throw new
|
|
3663
|
+
throw new G(8);
|
|
3656
3664
|
}
|
|
3657
3665
|
if (16384 === (n.node.mode & 61440)) {
|
|
3658
|
-
throw new
|
|
3666
|
+
throw new G(31);
|
|
3659
3667
|
}
|
|
3660
3668
|
if (!n.m.read) {
|
|
3661
|
-
throw new
|
|
3669
|
+
throw new G(28);
|
|
3662
3670
|
}
|
|
3663
3671
|
var r = "undefined" != typeof y;
|
|
3664
3672
|
if (!r) {
|
|
3665
3673
|
y = n.position;
|
|
3666
3674
|
} else if (!n.seekable) {
|
|
3667
|
-
throw new
|
|
3675
|
+
throw new G(70);
|
|
3668
3676
|
}
|
|
3669
|
-
var
|
|
3670
|
-
r || (n.position +=
|
|
3671
|
-
var z =
|
|
3677
|
+
var u = n.m.read(n, q, t, w, y);
|
|
3678
|
+
r || (n.position += u);
|
|
3679
|
+
var z = u;
|
|
3672
3680
|
if (0 > z) {
|
|
3673
|
-
var
|
|
3681
|
+
var B = -1;
|
|
3674
3682
|
break a;
|
|
3675
3683
|
}
|
|
3676
3684
|
b += z;
|
|
3677
|
-
if (z <
|
|
3685
|
+
if (z < p) {
|
|
3678
3686
|
break;
|
|
3679
3687
|
}
|
|
3680
3688
|
"undefined" !== typeof f && (f += z);
|
|
3681
3689
|
}
|
|
3682
|
-
|
|
3690
|
+
B = b;
|
|
3683
3691
|
}
|
|
3684
|
-
|
|
3692
|
+
E[d >> 2] = B;
|
|
3685
3693
|
return 0;
|
|
3686
3694
|
} catch (C) {
|
|
3687
|
-
if ("undefined" == typeof
|
|
3695
|
+
if ("undefined" == typeof ac || "ErrnoError" !== C.name) {
|
|
3688
3696
|
throw C;
|
|
3689
3697
|
}
|
|
3690
3698
|
return C.Z;
|
|
@@ -3695,15 +3703,15 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3695
3703
|
if (isNaN(b)) {
|
|
3696
3704
|
return 61;
|
|
3697
3705
|
}
|
|
3698
|
-
var f =
|
|
3699
|
-
|
|
3706
|
+
var f = Nb(a);
|
|
3707
|
+
Wb(f, b, d);
|
|
3700
3708
|
Sa = [f.position >>> 0, (Ra = f.position, 1.0 <= +Math.abs(Ra) ? 0.0 < Ra ? +Math.floor(Ra / 4294967296.0) >>> 0 : ~~+Math.ceil((Ra - +(~~Ra >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3701
|
-
|
|
3702
|
-
|
|
3709
|
+
D[e >> 2] = Sa[0];
|
|
3710
|
+
D[e + 4 >> 2] = Sa[1];
|
|
3703
3711
|
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3704
3712
|
return 0;
|
|
3705
3713
|
} catch (g) {
|
|
3706
|
-
if ("undefined" == typeof
|
|
3714
|
+
if ("undefined" == typeof ac || "ErrnoError" !== g.name) {
|
|
3707
3715
|
throw g;
|
|
3708
3716
|
}
|
|
3709
3717
|
return g.Z;
|
|
@@ -3711,64 +3719,64 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3711
3719
|
}, fd_write:function(a, b, c, d) {
|
|
3712
3720
|
try {
|
|
3713
3721
|
a: {
|
|
3714
|
-
var e =
|
|
3722
|
+
var e = Nb(a);
|
|
3715
3723
|
a = b;
|
|
3716
3724
|
for (var f, g = b = 0; g < c; g++) {
|
|
3717
|
-
var k =
|
|
3725
|
+
var k = E[a >> 2], p = E[a + 4 >> 2];
|
|
3718
3726
|
a += 8;
|
|
3719
|
-
var n = e, t = k,
|
|
3720
|
-
if (0 >
|
|
3721
|
-
throw new
|
|
3727
|
+
var n = e, t = k, w = p, y = f, q = v;
|
|
3728
|
+
if (0 > w || 0 > y) {
|
|
3729
|
+
throw new G(28);
|
|
3722
3730
|
}
|
|
3723
3731
|
if (null === n.V) {
|
|
3724
|
-
throw new
|
|
3732
|
+
throw new G(8);
|
|
3725
3733
|
}
|
|
3726
3734
|
if (0 === (n.flags & 2097155)) {
|
|
3727
|
-
throw new
|
|
3735
|
+
throw new G(8);
|
|
3728
3736
|
}
|
|
3729
3737
|
if (16384 === (n.node.mode & 61440)) {
|
|
3730
|
-
throw new
|
|
3738
|
+
throw new G(31);
|
|
3731
3739
|
}
|
|
3732
3740
|
if (!n.m.write) {
|
|
3733
|
-
throw new
|
|
3741
|
+
throw new G(28);
|
|
3734
3742
|
}
|
|
3735
|
-
n.seekable && n.flags & 1024 &&
|
|
3743
|
+
n.seekable && n.flags & 1024 && Wb(n, 0, 2);
|
|
3736
3744
|
var r = "undefined" != typeof y;
|
|
3737
3745
|
if (!r) {
|
|
3738
3746
|
y = n.position;
|
|
3739
3747
|
} else if (!n.seekable) {
|
|
3740
|
-
throw new
|
|
3748
|
+
throw new G(70);
|
|
3741
3749
|
}
|
|
3742
|
-
var
|
|
3743
|
-
r || (n.position +=
|
|
3744
|
-
var z =
|
|
3750
|
+
var u = n.m.write(n, q, t, w, y, void 0);
|
|
3751
|
+
r || (n.position += u);
|
|
3752
|
+
var z = u;
|
|
3745
3753
|
if (0 > z) {
|
|
3746
|
-
var
|
|
3754
|
+
var B = -1;
|
|
3747
3755
|
break a;
|
|
3748
3756
|
}
|
|
3749
3757
|
b += z;
|
|
3750
3758
|
"undefined" !== typeof f && (f += z);
|
|
3751
3759
|
}
|
|
3752
|
-
|
|
3760
|
+
B = b;
|
|
3753
3761
|
}
|
|
3754
|
-
|
|
3762
|
+
E[d >> 2] = B;
|
|
3755
3763
|
return 0;
|
|
3756
3764
|
} catch (C) {
|
|
3757
|
-
if ("undefined" == typeof
|
|
3765
|
+
if ("undefined" == typeof ac || "ErrnoError" !== C.name) {
|
|
3758
3766
|
throw C;
|
|
3759
3767
|
}
|
|
3760
3768
|
return C.Z;
|
|
3761
3769
|
}
|
|
3762
|
-
}, glBindFramebuffer:
|
|
3770
|
+
}, glBindFramebuffer:Qd, glGetIntegerv:Yd, invoke_ii:re, invoke_iii:se, invoke_iiii:te, invoke_iiiii:ue, invoke_iiiiii:ve, invoke_iiiiiii:we, invoke_iiiiiiiiii:xe, invoke_v:ye, invoke_vi:ze, invoke_vii:Ae, invoke_viii:Be, invoke_viiii:Ce, invoke_viiiiii:De, invoke_viiiiiii:Ee, invoke_viiiiiiii:Fe, strftime_l:(a, b, c, d) => le(a, b, c, d)};
|
|
3763
3771
|
(function() {
|
|
3764
3772
|
function a(c) {
|
|
3765
|
-
|
|
3766
|
-
xa =
|
|
3773
|
+
m = c = c.exports;
|
|
3774
|
+
xa = m.memory;
|
|
3767
3775
|
Ba();
|
|
3768
|
-
Ca =
|
|
3769
|
-
Ea.unshift(
|
|
3776
|
+
Ca = m.__indirect_function_table;
|
|
3777
|
+
Ea.unshift(m.__wasm_call_ctors);
|
|
3770
3778
|
Ha--;
|
|
3771
|
-
|
|
3779
|
+
l.monitorRunDependencies && l.monitorRunDependencies(Ha);
|
|
3772
3780
|
if (0 == Ha && (null !== Ia && (clearInterval(Ia), Ia = null), Ja)) {
|
|
3773
3781
|
var d = Ja;
|
|
3774
3782
|
Ja = null;
|
|
@@ -3776,12 +3784,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3776
3784
|
}
|
|
3777
3785
|
return c;
|
|
3778
3786
|
}
|
|
3779
|
-
var b = {env:
|
|
3787
|
+
var b = {env:Ge, wasi_snapshot_preview1:Ge,};
|
|
3780
3788
|
Ha++;
|
|
3781
|
-
|
|
3782
|
-
if (
|
|
3789
|
+
l.monitorRunDependencies && l.monitorRunDependencies(Ha);
|
|
3790
|
+
if (l.instantiateWasm) {
|
|
3783
3791
|
try {
|
|
3784
|
-
return
|
|
3792
|
+
return l.instantiateWasm(b, a);
|
|
3785
3793
|
} catch (c) {
|
|
3786
3794
|
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3787
3795
|
}
|
|
@@ -3791,30 +3799,30 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3791
3799
|
}).catch(ba);
|
|
3792
3800
|
return {};
|
|
3793
3801
|
})();
|
|
3794
|
-
var
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
var Ua =
|
|
3798
|
-
|
|
3799
|
-
var
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
function
|
|
3802
|
+
var uc = a => (uc = m.free)(a), Zd = a => (Zd = m.malloc)(a), Ta = l._ma_device__on_notification_unlocked = a => (Ta = l._ma_device__on_notification_unlocked = m.ma_device__on_notification_unlocked)(a);
|
|
3803
|
+
l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = m.ma_malloc_emscripten)(a, b);
|
|
3804
|
+
l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = m.ma_free_emscripten)(a, b);
|
|
3805
|
+
var Ua = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ua = l._ma_device_process_pcm_frames_capture__webaudio = m.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Va = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Va = l._ma_device_process_pcm_frames_playback__webaudio = m.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), qe = () => (qe = m.__errno_location)(), tc = a => (tc = m.__getTypeName)(a);
|
|
3806
|
+
l.__embind_initialize_bindings = () => (l.__embind_initialize_bindings = m._embind_initialize_bindings)();
|
|
3807
|
+
var vb = (a, b) => (vb = m.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = m.setThrew)(a, b), Y = () => (Y = m.stackSave)(), Z = a => (Z = m.stackRestore)(a);
|
|
3808
|
+
l.dynCall_iiiij = (a, b, c, d, e, f) => (l.dynCall_iiiij = m.dynCall_iiiij)(a, b, c, d, e, f);
|
|
3809
|
+
l.dynCall_viiij = (a, b, c, d, e, f) => (l.dynCall_viiij = m.dynCall_viiij)(a, b, c, d, e, f);
|
|
3810
|
+
l.dynCall_iiij = (a, b, c, d, e) => (l.dynCall_iiij = m.dynCall_iiij)(a, b, c, d, e);
|
|
3811
|
+
l.dynCall_viij = (a, b, c, d, e) => (l.dynCall_viij = m.dynCall_viij)(a, b, c, d, e);
|
|
3812
|
+
l.dynCall_iiji = (a, b, c, d, e) => (l.dynCall_iiji = m.dynCall_iiji)(a, b, c, d, e);
|
|
3813
|
+
l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = m.dynCall_jiji)(a, b, c, d, e);
|
|
3814
|
+
l.dynCall_iiiji = (a, b, c, d, e, f) => (l.dynCall_iiiji = m.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3815
|
+
l.dynCall_iij = (a, b, c, d) => (l.dynCall_iij = m.dynCall_iij)(a, b, c, d);
|
|
3816
|
+
l.dynCall_jii = (a, b, c) => (l.dynCall_jii = m.dynCall_jii)(a, b, c);
|
|
3817
|
+
l.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (l.dynCall_viiiiij = m.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
|
|
3818
|
+
l.dynCall_viji = (a, b, c, d, e) => (l.dynCall_viji = m.dynCall_viji)(a, b, c, d, e);
|
|
3819
|
+
l.dynCall_ji = (a, b) => (l.dynCall_ji = m.dynCall_ji)(a, b);
|
|
3820
|
+
l.dynCall_vij = (a, b, c, d) => (l.dynCall_vij = m.dynCall_vij)(a, b, c, d);
|
|
3821
|
+
l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = m.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3822
|
+
l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = m.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3823
|
+
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (l.dynCall_iiiiijj = m.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3824
|
+
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (l.dynCall_iiiiiijj = m.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3825
|
+
function re(a, b) {
|
|
3818
3826
|
var c = Y();
|
|
3819
3827
|
try {
|
|
3820
3828
|
return Q(a)(b);
|
|
@@ -3826,7 +3834,7 @@ function qe(a, b) {
|
|
|
3826
3834
|
X(1, 0);
|
|
3827
3835
|
}
|
|
3828
3836
|
}
|
|
3829
|
-
function
|
|
3837
|
+
function Ae(a, b, c) {
|
|
3830
3838
|
var d = Y();
|
|
3831
3839
|
try {
|
|
3832
3840
|
Q(a)(b, c);
|
|
@@ -3838,7 +3846,7 @@ function ze(a, b, c) {
|
|
|
3838
3846
|
X(1, 0);
|
|
3839
3847
|
}
|
|
3840
3848
|
}
|
|
3841
|
-
function
|
|
3849
|
+
function ze(a, b) {
|
|
3842
3850
|
var c = Y();
|
|
3843
3851
|
try {
|
|
3844
3852
|
Q(a)(b);
|
|
@@ -3850,7 +3858,7 @@ function ye(a, b) {
|
|
|
3850
3858
|
X(1, 0);
|
|
3851
3859
|
}
|
|
3852
3860
|
}
|
|
3853
|
-
function
|
|
3861
|
+
function te(a, b, c, d) {
|
|
3854
3862
|
var e = Y();
|
|
3855
3863
|
try {
|
|
3856
3864
|
return Q(a)(b, c, d);
|
|
@@ -3862,7 +3870,7 @@ function se(a, b, c, d) {
|
|
|
3862
3870
|
X(1, 0);
|
|
3863
3871
|
}
|
|
3864
3872
|
}
|
|
3865
|
-
function
|
|
3873
|
+
function Be(a, b, c, d) {
|
|
3866
3874
|
var e = Y();
|
|
3867
3875
|
try {
|
|
3868
3876
|
Q(a)(b, c, d);
|
|
@@ -3874,7 +3882,7 @@ function Ae(a, b, c, d) {
|
|
|
3874
3882
|
X(1, 0);
|
|
3875
3883
|
}
|
|
3876
3884
|
}
|
|
3877
|
-
function
|
|
3885
|
+
function Ce(a, b, c, d, e) {
|
|
3878
3886
|
var f = Y();
|
|
3879
3887
|
try {
|
|
3880
3888
|
Q(a)(b, c, d, e);
|
|
@@ -3886,7 +3894,7 @@ function Be(a, b, c, d, e) {
|
|
|
3886
3894
|
X(1, 0);
|
|
3887
3895
|
}
|
|
3888
3896
|
}
|
|
3889
|
-
function
|
|
3897
|
+
function ye(a) {
|
|
3890
3898
|
var b = Y();
|
|
3891
3899
|
try {
|
|
3892
3900
|
Q(a)();
|
|
@@ -3898,19 +3906,19 @@ function xe(a) {
|
|
|
3898
3906
|
X(1, 0);
|
|
3899
3907
|
}
|
|
3900
3908
|
}
|
|
3901
|
-
function
|
|
3909
|
+
function we(a, b, c, d, e, f, g) {
|
|
3902
3910
|
var k = Y();
|
|
3903
3911
|
try {
|
|
3904
3912
|
return Q(a)(b, c, d, e, f, g);
|
|
3905
|
-
} catch (
|
|
3913
|
+
} catch (p) {
|
|
3906
3914
|
Z(k);
|
|
3907
|
-
if (
|
|
3908
|
-
throw
|
|
3915
|
+
if (p !== p + 0) {
|
|
3916
|
+
throw p;
|
|
3909
3917
|
}
|
|
3910
3918
|
X(1, 0);
|
|
3911
3919
|
}
|
|
3912
3920
|
}
|
|
3913
|
-
function
|
|
3921
|
+
function se(a, b, c) {
|
|
3914
3922
|
var d = Y();
|
|
3915
3923
|
try {
|
|
3916
3924
|
return Q(a)(b, c);
|
|
@@ -3922,31 +3930,31 @@ function re(a, b, c) {
|
|
|
3922
3930
|
X(1, 0);
|
|
3923
3931
|
}
|
|
3924
3932
|
}
|
|
3925
|
-
function
|
|
3926
|
-
var
|
|
3933
|
+
function Ee(a, b, c, d, e, f, g, k) {
|
|
3934
|
+
var p = Y();
|
|
3927
3935
|
try {
|
|
3928
3936
|
Q(a)(b, c, d, e, f, g, k);
|
|
3929
3937
|
} catch (n) {
|
|
3930
|
-
Z(
|
|
3938
|
+
Z(p);
|
|
3931
3939
|
if (n !== n + 0) {
|
|
3932
3940
|
throw n;
|
|
3933
3941
|
}
|
|
3934
3942
|
X(1, 0);
|
|
3935
3943
|
}
|
|
3936
3944
|
}
|
|
3937
|
-
function
|
|
3945
|
+
function xe(a, b, c, d, e, f, g, k, p, n) {
|
|
3938
3946
|
var t = Y();
|
|
3939
3947
|
try {
|
|
3940
|
-
return Q(a)(b, c, d, e, f, g, k,
|
|
3941
|
-
} catch (
|
|
3948
|
+
return Q(a)(b, c, d, e, f, g, k, p, n);
|
|
3949
|
+
} catch (w) {
|
|
3942
3950
|
Z(t);
|
|
3943
|
-
if (
|
|
3944
|
-
throw
|
|
3951
|
+
if (w !== w + 0) {
|
|
3952
|
+
throw w;
|
|
3945
3953
|
}
|
|
3946
3954
|
X(1, 0);
|
|
3947
3955
|
}
|
|
3948
3956
|
}
|
|
3949
|
-
function
|
|
3957
|
+
function ue(a, b, c, d, e) {
|
|
3950
3958
|
var f = Y();
|
|
3951
3959
|
try {
|
|
3952
3960
|
return Q(a)(b, c, d, e);
|
|
@@ -3958,10 +3966,10 @@ function te(a, b, c, d, e) {
|
|
|
3958
3966
|
X(1, 0);
|
|
3959
3967
|
}
|
|
3960
3968
|
}
|
|
3961
|
-
function
|
|
3969
|
+
function Fe(a, b, c, d, e, f, g, k, p) {
|
|
3962
3970
|
var n = Y();
|
|
3963
3971
|
try {
|
|
3964
|
-
Q(a)(b, c, d, e, f, g, k,
|
|
3972
|
+
Q(a)(b, c, d, e, f, g, k, p);
|
|
3965
3973
|
} catch (t) {
|
|
3966
3974
|
Z(n);
|
|
3967
3975
|
if (t !== t + 0) {
|
|
@@ -3970,7 +3978,7 @@ function Ee(a, b, c, d, e, f, g, k, q) {
|
|
|
3970
3978
|
X(1, 0);
|
|
3971
3979
|
}
|
|
3972
3980
|
}
|
|
3973
|
-
function
|
|
3981
|
+
function ve(a, b, c, d, e, f) {
|
|
3974
3982
|
var g = Y();
|
|
3975
3983
|
try {
|
|
3976
3984
|
return Q(a)(b, c, d, e, f);
|
|
@@ -3982,36 +3990,36 @@ function ue(a, b, c, d, e, f) {
|
|
|
3982
3990
|
X(1, 0);
|
|
3983
3991
|
}
|
|
3984
3992
|
}
|
|
3985
|
-
function
|
|
3993
|
+
function De(a, b, c, d, e, f, g) {
|
|
3986
3994
|
var k = Y();
|
|
3987
3995
|
try {
|
|
3988
3996
|
Q(a)(b, c, d, e, f, g);
|
|
3989
|
-
} catch (
|
|
3997
|
+
} catch (p) {
|
|
3990
3998
|
Z(k);
|
|
3991
|
-
if (
|
|
3992
|
-
throw
|
|
3999
|
+
if (p !== p + 0) {
|
|
4000
|
+
throw p;
|
|
3993
4001
|
}
|
|
3994
4002
|
X(1, 0);
|
|
3995
4003
|
}
|
|
3996
4004
|
}
|
|
3997
|
-
var
|
|
3998
|
-
Ja = function
|
|
3999
|
-
|
|
4000
|
-
|
|
4005
|
+
var He;
|
|
4006
|
+
Ja = function Ie() {
|
|
4007
|
+
He || Je();
|
|
4008
|
+
He || (Ja = Ie);
|
|
4001
4009
|
};
|
|
4002
|
-
function
|
|
4010
|
+
function Je() {
|
|
4003
4011
|
function a() {
|
|
4004
|
-
if (!
|
|
4005
|
-
|
|
4006
|
-
|
|
4012
|
+
if (!He && (He = !0, l.calledRun = !0, !ya)) {
|
|
4013
|
+
l.noFSInit || Yb || (Yb = !0, Xb(), l.stdin = l.stdin, l.stdout = l.stdout, l.stderr = l.stderr, l.stdin ? $b("stdin", l.stdin) : Tb("/dev/tty", "/dev/stdin"), l.stdout ? $b("stdout", null, l.stdout) : Tb("/dev/tty", "/dev/stdout"), l.stderr ? $b("stderr", null, l.stderr) : Tb("/dev/tty1", "/dev/stderr"), Vb("/dev/stdin", 0), Vb("/dev/stdout", 1), Vb("/dev/stderr", 1));
|
|
4014
|
+
Cb = !1;
|
|
4007
4015
|
Xa(Ea);
|
|
4008
|
-
aa(
|
|
4009
|
-
if (
|
|
4010
|
-
|
|
4016
|
+
aa(l);
|
|
4017
|
+
if (l.onRuntimeInitialized) {
|
|
4018
|
+
l.onRuntimeInitialized();
|
|
4011
4019
|
}
|
|
4012
|
-
if (
|
|
4013
|
-
for ("function" == typeof
|
|
4014
|
-
var b =
|
|
4020
|
+
if (l.postRun) {
|
|
4021
|
+
for ("function" == typeof l.postRun && (l.postRun = [l.postRun]); l.postRun.length;) {
|
|
4022
|
+
var b = l.postRun.shift();
|
|
4015
4023
|
Fa.unshift(b);
|
|
4016
4024
|
}
|
|
4017
4025
|
}
|
|
@@ -4019,26 +4027,26 @@ function Ie() {
|
|
|
4019
4027
|
}
|
|
4020
4028
|
}
|
|
4021
4029
|
if (!(0 < Ha)) {
|
|
4022
|
-
if (
|
|
4023
|
-
for ("function" == typeof
|
|
4030
|
+
if (l.preRun) {
|
|
4031
|
+
for ("function" == typeof l.preRun && (l.preRun = [l.preRun]); l.preRun.length;) {
|
|
4024
4032
|
Ga();
|
|
4025
4033
|
}
|
|
4026
4034
|
}
|
|
4027
4035
|
Xa(Da);
|
|
4028
|
-
0 < Ha || (
|
|
4036
|
+
0 < Ha || (l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {
|
|
4029
4037
|
setTimeout(function() {
|
|
4030
|
-
|
|
4038
|
+
l.setStatus("");
|
|
4031
4039
|
}, 1);
|
|
4032
4040
|
a();
|
|
4033
4041
|
}, 1)) : a());
|
|
4034
4042
|
}
|
|
4035
4043
|
}
|
|
4036
|
-
if (
|
|
4037
|
-
for ("function" == typeof
|
|
4038
|
-
|
|
4044
|
+
if (l.preInit) {
|
|
4045
|
+
for ("function" == typeof l.preInit && (l.preInit = [l.preInit]); 0 < l.preInit.length;) {
|
|
4046
|
+
l.preInit.pop()();
|
|
4039
4047
|
}
|
|
4040
4048
|
}
|
|
4041
|
-
|
|
4049
|
+
Je();
|
|
4042
4050
|
|
|
4043
4051
|
|
|
4044
4052
|
|
|
@@ -4053,7 +4061,7 @@ Ie();
|
|
|
4053
4061
|
/* 2 */
|
|
4054
4062
|
/***/ ((module) => {
|
|
4055
4063
|
|
|
4056
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.
|
|
4064
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.22.0","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4057
4065
|
|
|
4058
4066
|
/***/ }),
|
|
4059
4067
|
/* 3 */
|
|
@@ -4597,6 +4605,7 @@ var Fit;
|
|
|
4597
4605
|
Fit["FitHeight"] = "fitHeight";
|
|
4598
4606
|
Fit["None"] = "none";
|
|
4599
4607
|
Fit["ScaleDown"] = "scaleDown";
|
|
4608
|
+
Fit["Layout"] = "layout";
|
|
4600
4609
|
})(Fit || (Fit = {}));
|
|
4601
4610
|
// Alignment options for the canvas
|
|
4602
4611
|
var Alignment;
|
|
@@ -4614,13 +4623,14 @@ var Alignment;
|
|
|
4614
4623
|
// Alignment options for Rive animations in a HTML canvas
|
|
4615
4624
|
var Layout = /** @class */ (function () {
|
|
4616
4625
|
function Layout(params) {
|
|
4617
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4626
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4618
4627
|
this.fit = (_a = params === null || params === void 0 ? void 0 : params.fit) !== null && _a !== void 0 ? _a : Fit.Contain;
|
|
4619
4628
|
this.alignment = (_b = params === null || params === void 0 ? void 0 : params.alignment) !== null && _b !== void 0 ? _b : Alignment.Center;
|
|
4620
|
-
this.
|
|
4621
|
-
this.
|
|
4622
|
-
this.
|
|
4623
|
-
this.
|
|
4629
|
+
this.layoutScaleFactor = (_c = params === null || params === void 0 ? void 0 : params.layoutScaleFactor) !== null && _c !== void 0 ? _c : 1;
|
|
4630
|
+
this.minX = (_d = params === null || params === void 0 ? void 0 : params.minX) !== null && _d !== void 0 ? _d : 0;
|
|
4631
|
+
this.minY = (_e = params === null || params === void 0 ? void 0 : params.minY) !== null && _e !== void 0 ? _e : 0;
|
|
4632
|
+
this.maxX = (_f = params === null || params === void 0 ? void 0 : params.maxX) !== null && _f !== void 0 ? _f : 0;
|
|
4633
|
+
this.maxY = (_g = params === null || params === void 0 ? void 0 : params.maxY) !== null && _g !== void 0 ? _g : 0;
|
|
4624
4634
|
}
|
|
4625
4635
|
// Alternative constructor to build a Layout from an interface/object
|
|
4626
4636
|
Layout.new = function (_a) {
|
|
@@ -4632,10 +4642,11 @@ var Layout = /** @class */ (function () {
|
|
|
4632
4642
|
* Makes a copy of the layout, replacing any specified parameters
|
|
4633
4643
|
*/
|
|
4634
4644
|
Layout.prototype.copyWith = function (_a) {
|
|
4635
|
-
var fit = _a.fit, alignment = _a.alignment, minX = _a.minX, minY = _a.minY, maxX = _a.maxX, maxY = _a.maxY;
|
|
4645
|
+
var fit = _a.fit, alignment = _a.alignment, layoutScaleFactor = _a.layoutScaleFactor, minX = _a.minX, minY = _a.minY, maxX = _a.maxX, maxY = _a.maxY;
|
|
4636
4646
|
return new Layout({
|
|
4637
4647
|
fit: fit !== null && fit !== void 0 ? fit : this.fit,
|
|
4638
4648
|
alignment: alignment !== null && alignment !== void 0 ? alignment : this.alignment,
|
|
4649
|
+
layoutScaleFactor: layoutScaleFactor !== null && layoutScaleFactor !== void 0 ? layoutScaleFactor : this.layoutScaleFactor,
|
|
4639
4650
|
minX: minX !== null && minX !== void 0 ? minX : this.minX,
|
|
4640
4651
|
minY: minY !== null && minY !== void 0 ? minY : this.minY,
|
|
4641
4652
|
maxX: maxX !== null && maxX !== void 0 ? maxX : this.maxX,
|
|
@@ -4659,6 +4670,8 @@ var Layout = /** @class */ (function () {
|
|
|
4659
4670
|
fit = rive.Fit.fitHeight;
|
|
4660
4671
|
else if (this.fit === Fit.ScaleDown)
|
|
4661
4672
|
fit = rive.Fit.scaleDown;
|
|
4673
|
+
else if (this.fit === Fit.Layout)
|
|
4674
|
+
fit = rive.Fit.layout;
|
|
4662
4675
|
else
|
|
4663
4676
|
fit = rive.Fit.none;
|
|
4664
4677
|
this.cachedRuntimeFit = fit;
|
|
@@ -5777,6 +5790,7 @@ var Rive = /** @class */ (function () {
|
|
|
5777
5790
|
this.enableRiveAssetCDN = true;
|
|
5778
5791
|
// Keep a local value of the set volume to update it asynchronously
|
|
5779
5792
|
this._volume = 1;
|
|
5793
|
+
this._devicePixelRatioUsed = 1;
|
|
5780
5794
|
// Whether the canvas element's size is 0
|
|
5781
5795
|
this._hasZeroSize = false;
|
|
5782
5796
|
// Durations to generate a frame for the last second. Used for performance profiling.
|
|
@@ -6203,7 +6217,7 @@ var Rive = /** @class */ (function () {
|
|
|
6203
6217
|
minY: _layout.minY,
|
|
6204
6218
|
maxX: _layout.maxX,
|
|
6205
6219
|
maxY: _layout.maxY,
|
|
6206
|
-
}, artboard.bounds);
|
|
6220
|
+
}, artboard.bounds, this._devicePixelRatioUsed * _layout.layoutScaleFactor);
|
|
6207
6221
|
};
|
|
6208
6222
|
Object.defineProperty(Rive.prototype, "fps", {
|
|
6209
6223
|
get: function () {
|
|
@@ -6456,10 +6470,16 @@ var Rive = /** @class */ (function () {
|
|
|
6456
6470
|
if (this.canvas instanceof HTMLCanvasElement && !!window) {
|
|
6457
6471
|
var _a = this.canvas.getBoundingClientRect(), width = _a.width, height = _a.height;
|
|
6458
6472
|
var dpr = customDevicePixelRatio || window.devicePixelRatio || 1;
|
|
6473
|
+
this._devicePixelRatioUsed = dpr;
|
|
6459
6474
|
this.canvas.width = dpr * width;
|
|
6460
6475
|
this.canvas.height = dpr * height;
|
|
6461
6476
|
this.startRendering();
|
|
6462
6477
|
this.resizeToCanvas();
|
|
6478
|
+
if (this.layout.fit === Fit.Layout) {
|
|
6479
|
+
var scaleFactor = this._layout.layoutScaleFactor;
|
|
6480
|
+
this.artboard.width = width / scaleFactor;
|
|
6481
|
+
this.artboard.height = height / scaleFactor;
|
|
6482
|
+
}
|
|
6463
6483
|
}
|
|
6464
6484
|
};
|
|
6465
6485
|
Object.defineProperty(Rive.prototype, "source", {
|