@rive-app/webgl2 2.21.7 → 2.23.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/rive.js CHANGED
@@ -92,67 +92,71 @@ const ea = n.onRuntimeInitialized;
92
92
  n.onRuntimeInitialized = function() {
93
93
  ea && ea();
94
94
  let a = n.decodeAudio;
95
- n.decodeAudio = function(d, e) {
96
- d = a(d);
97
- e(d);
95
+ n.decodeAudio = function(e, f) {
96
+ e = a(e);
97
+ f(e);
98
98
  };
99
99
  let b = n.decodeFont;
100
- n.decodeFont = function(d, e) {
101
- d = b(d);
102
- e(d);
100
+ n.decodeFont = function(e, f) {
101
+ e = b(e);
102
+ f(e);
103
103
  };
104
104
  const c = n.FileAssetLoader;
105
- n.ptrToAsset = d => {
106
- let e = n.ptrToFileAsset(d);
107
- return e.isImage ? n.ptrToImageAsset(d) : e.isFont ? n.ptrToFontAsset(d) : e.isAudio ? n.ptrToAudioAsset(d) : e;
105
+ n.ptrToAsset = e => {
106
+ let f = n.ptrToFileAsset(e);
107
+ return f.isImage ? n.ptrToImageAsset(e) : f.isFont ? n.ptrToFontAsset(e) : f.isAudio ? n.ptrToAudioAsset(e) : f;
108
108
  };
109
- n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
109
+ n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
110
110
  this.__parent.__construct.call(this);
111
- this.zb = d;
112
- }, loadContents:function(d, e) {
113
- d = n.ptrToAsset(d);
114
- return this.zb(d, e);
111
+ this.zb = e;
112
+ }, loadContents:function(e, f) {
113
+ e = n.ptrToAsset(e);
114
+ return this.zb(e, f);
115
115
  },});
116
116
  n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
118
- }, loadContents:function(d) {
119
- let e = n.ptrToAsset(d);
120
- d = e.cdnUuid;
121
- if ("" === d) {
118
+ }, loadContents:function(e) {
119
+ let f = n.ptrToAsset(e);
120
+ e = f.cdnUuid;
121
+ if ("" === e) {
122
122
  return !1;
123
123
  }
124
- (function(f, g) {
125
- var m = new XMLHttpRequest();
126
- m.responseType = "arraybuffer";
127
- m.onreadystatechange = function() {
128
- 4 == m.readyState && 200 == m.status && g(m);
124
+ (function(g, m) {
125
+ var p = new XMLHttpRequest();
126
+ p.responseType = "arraybuffer";
127
+ p.onreadystatechange = function() {
128
+ 4 == p.readyState && 200 == p.status && m(p);
129
129
  };
130
- m.open("GET", f, !0);
131
- m.send(null);
132
- })(e.cdnBaseUrl + "/" + d, f => {
133
- e.decode(new Uint8Array(f.response));
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
  n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
138
138
  this.__parent.__construct.call(this);
139
139
  this.eb = [];
140
- }, addLoader:function(d) {
141
- this.eb.push(d);
142
- }, loadContents:function(d, e) {
143
- for (let f of this.eb) {
144
- if (f.loadContents(d, e)) {
140
+ }, addLoader:function(e) {
141
+ this.eb.push(e);
142
+ }, loadContents:function(e, f) {
143
+ for (let g of this.eb) {
144
+ if (g.loadContents(e, f)) {
145
145
  return !0;
146
146
  }
147
147
  }
148
148
  return !1;
149
149
  },});
150
+ let d = n.computeAlignment;
151
+ n.computeAlignment = function(e, f, g, m, p = 1.0) {
152
+ return d.call(this, e, f, g, m, p);
153
+ };
150
154
  };
151
155
  const fa = n.onRuntimeInitialized;
152
156
  n.onRuntimeInitialized = function() {
153
- function a(q) {
154
- this.F = q;
155
- this.xb = q.getContext("2d");
157
+ function a(k) {
158
+ this.F = k;
159
+ this.xb = k.getContext("2d");
156
160
  this.Bb = d;
157
161
  this.S = [];
158
162
  this.la = 0;
@@ -168,11 +172,11 @@ n.onRuntimeInitialized = function() {
168
172
  this.restore = function() {
169
173
  0 < this.la && (this.S.push(d.restore.bind(d)), --this.la);
170
174
  };
171
- this.transform = function(k) {
172
- this.S.push(d.transform.bind(d, k));
175
+ this.transform = function(q) {
176
+ this.S.push(d.transform.bind(d, q));
173
177
  };
174
- this.align = function(k, r, w, y) {
175
- this.S.push(d.align.bind(d, k, r, w, y));
178
+ this.align = function(q, v, y, B, D = 1.0) {
179
+ this.S.push(d.align.bind(d, q, v, y, B, D));
176
180
  };
177
181
  this.flush = function() {
178
182
  console.assert(0 == this.la);
@@ -180,81 +184,81 @@ n.onRuntimeInitialized = function() {
180
184
  d.Ja || c();
181
185
  };
182
186
  }
183
- function b(q, k = !1) {
184
- var r = {alpha:!0, depth:k, stencil:k, antialias:k, premultipliedAlpha:!0, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
185
- k = q.getContext("webgl2", r);
186
- if (!k) {
187
+ function b(k, q = !1) {
188
+ var v = {alpha:!0, depth:q, stencil:q, antialias:q, premultipliedAlpha:!0, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
189
+ q = k.getContext("webgl2", v);
190
+ if (!q) {
187
191
  return null;
188
192
  }
189
- var w = ha(t), y = {handle:w, attributes:r, version:r.Cc, H:k};
190
- k.canvas && (k.canvas.nc = y);
191
- t[w] = y;
192
- ("undefined" == typeof r.Hb || r.Hb) && ia(y);
193
- ja(w);
194
- r = f(q.width, q.height);
195
- r.yb = w;
196
- r.F = q;
197
- r.Ua = q.width;
198
- r.Ta = q.height;
199
- r.ka = k;
200
- return r;
193
+ var y = ha(r), B = {handle:y, attributes:v, version:v.Cc, H:q};
194
+ q.canvas && (q.canvas.nc = B);
195
+ r[y] = B;
196
+ ("undefined" == typeof v.Hb || v.Hb) && ia(B);
197
+ ja(y);
198
+ v = f(k.width, k.height);
199
+ v.yb = y;
200
+ v.F = k;
201
+ v.Ua = k.width;
202
+ v.Ta = k.height;
203
+ v.ka = q;
204
+ return v;
201
205
  }
202
206
  function c() {
203
207
  if (d) {
204
- var q = d.Ab, k = 0, r = 0, w = 0, y = Array(e.size), E = 0;
205
- for (var z of e) {
206
- z.ea = Math.min(z.F.width, q), z.da = Math.min(z.F.height, q), z.Ia = z.da * z.ea, k = Math.max(k, z.ea), r = Math.max(r, z.da), w += z.Ia, y[E++] = z;
208
+ var k = d.Ab, q = 0, v = 0, y = 0, B = Array(e.size), D = 0;
209
+ for (var E of e) {
210
+ E.ea = Math.min(E.F.width, k), E.da = Math.min(E.F.height, k), E.Ia = E.da * E.ea, q = Math.max(q, E.ea), v = Math.max(v, E.da), y += E.Ia, B[D++] = E;
207
211
  }
208
212
  e.clear();
209
- if (!(0 >= w)) {
210
- k = 1 << (0 >= k ? 0 : 32 - Math.clz32(k - 1));
211
- for (r = 1 << (0 >= r ? 0 : 32 - Math.clz32(r - 1)); r * k < w;) {
212
- k <= r ? k *= 2 : r *= 2;
213
- }
214
- k = Math.min(k, q);
215
- k = Math.min(r, q);
216
- y.sort((Y, qb) => qb.Ia - Y.Ia);
217
- w = new n.DynamicRectanizer(q);
218
- for (z = 0; z < y.length;) {
219
- w.reset(k, r);
220
- for (E = z; E < y.length; ++E) {
221
- var F = y[E], D = w.addRect(F.ea, F.da);
222
- if (0 > D) {
223
- console.assert(E > z);
213
+ if (!(0 >= y)) {
214
+ q = 1 << (0 >= q ? 0 : 32 - Math.clz32(q - 1));
215
+ for (v = 1 << (0 >= v ? 0 : 32 - Math.clz32(v - 1)); v * q < y;) {
216
+ q <= v ? q *= 2 : v *= 2;
217
+ }
218
+ q = Math.min(q, k);
219
+ q = Math.min(v, k);
220
+ B.sort((Z, rb) => rb.Ia - Z.Ia);
221
+ y = new n.DynamicRectanizer(k);
222
+ for (E = 0; E < B.length;) {
223
+ y.reset(q, v);
224
+ for (D = E; D < B.length; ++D) {
225
+ var H = B[D], F = y.addRect(H.ea, H.da);
226
+ if (0 > F) {
227
+ console.assert(D > E);
224
228
  break;
225
229
  }
226
- F.ra = D & 65535;
227
- F.sa = D >> 16;
230
+ H.ra = F & 65535;
231
+ H.sa = F >> 16;
228
232
  }
229
- F = m.push(w.drawWidth());
230
- D = p.push(w.drawHeight());
231
- console.assert(F >= w.drawWidth());
232
- console.assert(D >= w.drawHeight());
233
- console.assert(F <= q);
234
- console.assert(D <= q);
235
- d.F.width != F && (d.F.width = F);
236
- d.F.height != D && (d.F.height = D);
233
+ H = m.push(y.drawWidth());
234
+ F = p.push(y.drawHeight());
235
+ console.assert(H >= y.drawWidth());
236
+ console.assert(F >= y.drawHeight());
237
+ console.assert(H <= k);
238
+ console.assert(F <= k);
239
+ d.F.width != H && (d.F.width = H);
240
+ d.F.height != F && (d.F.height = F);
237
241
  d.clear();
238
- for (F = z; F < E; ++F) {
239
- D = y[F];
240
- d.saveClipRect(D.ra, D.sa, D.ra + D.ea, D.sa + D.da);
241
- let Y = new n.Mat2D();
242
- Y.xx = D.ea / D.F.width;
243
- Y.yy = D.da / D.F.height;
244
- Y.xy = Y.yx = 0;
245
- Y.tx = D.ra;
246
- Y.ty = D.sa;
247
- d.transform(Y);
248
- for (const qb of D.S) {
249
- qb();
242
+ for (H = E; H < D; ++H) {
243
+ F = B[H];
244
+ d.saveClipRect(F.ra, F.sa, F.ra + F.ea, F.sa + F.da);
245
+ let Z = new n.Mat2D();
246
+ Z.xx = F.ea / F.F.width;
247
+ Z.yy = F.da / F.F.height;
248
+ Z.xy = Z.yx = 0;
249
+ Z.tx = F.ra;
250
+ Z.ty = F.sa;
251
+ d.transform(Z);
252
+ for (const rb of F.S) {
253
+ rb();
250
254
  }
251
255
  d.restoreClipRect();
252
- D.S = [];
256
+ F.S = [];
253
257
  }
254
- for (d.flush(); z < E; ++z) {
255
- F = y[z], D = F.xb, D.globalCompositeOperation = "copy", D.drawImage(d.F, F.ra, F.sa, F.ea, F.da, 0, 0, F.F.width, F.F.height);
258
+ for (d.flush(); E < D; ++E) {
259
+ H = B[E], F = H.xb, F.globalCompositeOperation = "copy", F.drawImage(d.F, H.ra, H.sa, H.ea, H.da, 0, 0, H.F.width, H.F.height);
256
260
  }
257
- z = E;
261
+ E = D;
258
262
  }
259
263
  }
260
264
  }
@@ -262,25 +266,25 @@ n.onRuntimeInitialized = function() {
262
266
  fa && fa();
263
267
  let d = null;
264
268
  const e = new Set(), f = n.makeRenderer;
265
- n.makeRenderer = function(q, k) {
269
+ n.makeRenderer = function(k, q) {
266
270
  if (!d) {
267
- function r(w) {
268
- const y = document.createElement("canvas");
269
- y.width = 1;
270
- y.height = 1;
271
- d = b(y, w);
271
+ function v(y) {
272
+ const B = document.createElement("canvas");
273
+ B.width = 1;
274
+ B.height = 1;
275
+ d = b(B, y);
272
276
  d.Ja = !!d.ka.getExtension("WEBGL_shader_pixel_local_storage");
273
277
  d.Ab = Math.min(d.ka.getParameter(d.ka.MAX_RENDERBUFFER_SIZE), d.ka.getParameter(d.ka.MAX_TEXTURE_SIZE));
274
278
  return d;
275
279
  }
276
- d = r(!0);
277
- d.Ja && (d = r(!1));
280
+ d = v(!0);
281
+ d.Ja && (d = v(!1));
278
282
  }
279
- return k ? new a(q) : b(q, !d.Ja);
283
+ return q ? new a(k) : b(k, !d.Ja);
280
284
  };
281
285
  const g = n.Artboard.prototype.draw;
282
- n.Artboard.prototype.draw = function(q) {
283
- q.S ? q.S.push(g.bind(this, q.Bb)) : g.call(this, q);
286
+ n.Artboard.prototype.draw = function(k) {
287
+ k.S ? k.S.push(g.bind(this, k.Bb)) : g.call(this, k);
284
288
  };
285
289
  const m = new da(), p = new da(), l = new ca();
286
290
  n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
@@ -288,30 +292,34 @@ n.onRuntimeInitialized = function() {
288
292
  n.enableFPSCounter = l.Ib.bind(l);
289
293
  l.ib = c;
290
294
  n.resolveAnimationFrame = c;
291
- let u = n.load;
292
- n.load = function(q, k, r = !0) {
293
- const w = new n.FallbackFileAssetLoader();
294
- void 0 !== k && w.addLoader(k);
295
- r && (k = new n.CDNFileAssetLoader(), w.addLoader(k));
296
- return Promise.resolve(u(q, w));
295
+ let t = n.load;
296
+ n.load = function(k, q, v = !0) {
297
+ const y = new n.FallbackFileAssetLoader();
298
+ void 0 !== q && y.addLoader(q);
299
+ v && (q = new n.CDNFileAssetLoader(), y.addLoader(q));
300
+ return Promise.resolve(t(k, y));
297
301
  };
298
- const v = n.WebGL2Renderer.prototype.clear;
302
+ const u = n.WebGL2Renderer.prototype.clear;
299
303
  n.WebGL2Renderer.prototype.clear = function() {
300
304
  ja(this.yb);
301
- const q = this.F;
302
- if (this.Ua != q.width || this.Ta != q.height) {
303
- this.resize(q.width, q.height), this.Ua = q.width, this.Ta = q.height;
305
+ const k = this.F;
306
+ if (this.Ua != k.width || this.Ta != k.height) {
307
+ this.resize(k.width, k.height), this.Ua = k.width, this.Ta = k.height;
304
308
  }
305
- v.call(this);
309
+ u.call(this);
310
+ };
311
+ n.decodeImage = function(k, q) {
312
+ k = n.decodeWebGL2Image(k);
313
+ q(k);
306
314
  };
307
- n.decodeImage = function(q, k) {
308
- q = n.decodeWebGL2Image(q);
309
- k(q);
315
+ let x = n.Renderer.prototype.align;
316
+ n.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
317
+ x.call(this, k, q, v, y, B);
310
318
  };
311
319
  };
312
- var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, x = "", oa, pa;
320
+ var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
313
321
  if (ma || na) {
314
- na ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptDir && (x = _scriptDir), 0 !== x.indexOf("blob:") ? x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1) : x = "", na && (pa = a => {
322
+ na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
315
323
  var b = new XMLHttpRequest();
316
324
  b.open("GET", a, !1);
317
325
  b.responseType = "arraybuffer";
@@ -328,70 +336,70 @@ if (ma || na) {
328
336
  d.send(null);
329
337
  };
330
338
  }
331
- var qa = n.print || console.log.bind(console), A = n.printErr || console.error.bind(console);
339
+ var qa = n.print || console.log.bind(console), ra = n.printErr || console.error.bind(console);
332
340
  Object.assign(n, ka);
333
341
  ka = null;
334
342
  n.thisProgram && (la = n.thisProgram);
335
- var ra;
336
- n.wasmBinary && (ra = n.wasmBinary);
343
+ var sa;
344
+ n.wasmBinary && (sa = n.wasmBinary);
337
345
  var noExitRuntime = n.noExitRuntime || !0;
338
- "object" != typeof WebAssembly && sa("no native wasm support detected");
339
- var ta, B, ua = !1, C, G, H, va, I, J, wa, xa;
340
- function ya() {
341
- var a = ta.buffer;
342
- n.HEAP8 = C = new Int8Array(a);
343
- n.HEAP16 = H = new Int16Array(a);
346
+ "object" != typeof WebAssembly && ta("no native wasm support detected");
347
+ var ua, z, va = !1, A, C, G, wa, I, J, xa, ya;
348
+ function za() {
349
+ var a = ua.buffer;
350
+ n.HEAP8 = A = new Int8Array(a);
351
+ n.HEAP16 = G = new Int16Array(a);
344
352
  n.HEAP32 = I = new Int32Array(a);
345
- n.HEAPU8 = G = new Uint8Array(a);
346
- n.HEAPU16 = va = new Uint16Array(a);
353
+ n.HEAPU8 = C = new Uint8Array(a);
354
+ n.HEAPU16 = wa = new Uint16Array(a);
347
355
  n.HEAPU32 = J = new Uint32Array(a);
348
- n.HEAPF32 = wa = new Float32Array(a);
349
- n.HEAPF64 = xa = new Float64Array(a);
356
+ n.HEAPF32 = xa = new Float32Array(a);
357
+ n.HEAPF64 = ya = new Float64Array(a);
350
358
  }
351
- var za, Aa = [], Ba = [], Ca = [];
352
- function Da() {
359
+ var Aa, Ba = [], Ca = [], Da = [];
360
+ function Ea() {
353
361
  var a = n.preRun.shift();
354
- Aa.unshift(a);
362
+ Ba.unshift(a);
355
363
  }
356
- var Ea = 0, Fa = null, Ga = null;
357
- function sa(a) {
364
+ var Fa = 0, Ga = null, Ha = null;
365
+ function ta(a) {
358
366
  if (n.onAbort) {
359
367
  n.onAbort(a);
360
368
  }
361
369
  a = "Aborted(" + a + ")";
362
- A(a);
363
- ua = !0;
370
+ ra(a);
371
+ va = !0;
364
372
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
365
373
  ba(a);
366
374
  throw a;
367
375
  }
368
- function Ha(a) {
376
+ function Ia(a) {
369
377
  return a.startsWith("data:application/octet-stream;base64,");
370
378
  }
371
- var Ia;
372
- Ia = "webgl2_advanced.wasm";
373
- if (!Ha(Ia)) {
374
- var Ja = Ia;
375
- Ia = n.locateFile ? n.locateFile(Ja, x) : x + Ja;
379
+ var Ja;
380
+ Ja = "webgl2_advanced.wasm";
381
+ if (!Ia(Ja)) {
382
+ var Ka = Ja;
383
+ Ja = n.locateFile ? n.locateFile(Ka, w) : w + Ka;
376
384
  }
377
- function Ka(a) {
378
- if (a == Ia && ra) {
379
- return new Uint8Array(ra);
385
+ function La(a) {
386
+ if (a == Ja && sa) {
387
+ return new Uint8Array(sa);
380
388
  }
381
389
  if (pa) {
382
390
  return pa(a);
383
391
  }
384
392
  throw "both async and sync fetching of the wasm failed";
385
393
  }
386
- function La(a) {
387
- if (!ra && (ma || na)) {
394
+ function Ma(a) {
395
+ if (!sa && (ma || na)) {
388
396
  if ("function" == typeof fetch && !a.startsWith("file://")) {
389
397
  return fetch(a, {credentials:"same-origin"}).then(b => {
390
398
  if (!b.ok) {
391
399
  throw "failed to load wasm binary file at '" + a + "'";
392
400
  }
393
401
  return b.arrayBuffer();
394
- }).catch(() => Ka(a));
402
+ }).catch(() => La(a));
395
403
  }
396
404
  if (oa) {
397
405
  return new Promise((b, c) => {
@@ -399,23 +407,23 @@ function La(a) {
399
407
  });
400
408
  }
401
409
  }
402
- return Promise.resolve().then(() => Ka(a));
410
+ return Promise.resolve().then(() => La(a));
403
411
  }
404
- function Ma(a, b, c) {
405
- return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
406
- A("failed to asynchronously prepare wasm: " + d);
407
- sa(d);
412
+ function Na(a, b, c) {
413
+ return Ma(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
414
+ ra("failed to asynchronously prepare wasm: " + d);
415
+ ta(d);
408
416
  });
409
417
  }
410
- function Na(a, b) {
411
- var c = Ia;
412
- return ra || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
413
- A("wasm streaming compile failed: " + e);
414
- A("falling back to ArrayBuffer instantiation");
415
- return Ma(c, a, b);
418
+ function Oa(a, b) {
419
+ var c = Ja;
420
+ return sa || "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || c.startsWith("file://") || "function" != typeof fetch ? Na(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
421
+ ra("wasm streaming compile failed: " + e);
422
+ ra("falling back to ArrayBuffer instantiation");
423
+ return Na(c, a, b);
416
424
  }));
417
425
  }
418
- var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
426
+ var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
419
427
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
420
428
  return 0;
421
429
  }
@@ -463,7 +471,7 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
463
471
  for (var g = 0; g < f.C.length; ++g) {
464
472
  var m = f.C[g];
465
473
  null != m && null != m.J && m.state === f.ha.rb && m.J.resume().then(() => {
466
- Qa(m.jb);
474
+ Ra(m.jb);
467
475
  }, p => {
468
476
  console.error("Failed to resume audiocontext", p);
469
477
  });
@@ -478,9 +486,9 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
478
486
  }
479
487
  window.h.Da += 1;
480
488
  return 1;
481
- }, 486983:() => {
489
+ }, 487399:() => {
482
490
  "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
483
- }, 487147:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 487251:() => {
491
+ }, 487563:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 487667:() => {
484
492
  try {
485
493
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
486
494
  a.close();
@@ -488,7 +496,7 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
488
496
  } catch (c) {
489
497
  return 0;
490
498
  }
491
- }, 487422:(a, b, c, d, e, f) => {
499
+ }, 487838:(a, b, c, d, e, f) => {
492
500
  if ("undefined" === typeof window.h) {
493
501
  return -1;
494
502
  }
@@ -502,20 +510,20 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
502
510
  g.Y = g.J.createScriptProcessor(d, c, b);
503
511
  g.Y.onaudioprocess = function(p) {
504
512
  if (null == g.wa || 0 == g.wa.length) {
505
- g.wa = new Float32Array(wa.buffer, e, d * b);
513
+ g.wa = new Float32Array(xa.buffer, e, d * b);
506
514
  }
507
515
  if (a == window.h.I.capture || a == window.h.I.La) {
508
516
  for (var l = 0; l < b; l += 1) {
509
- for (var u = p.inputBuffer.getChannelData(l), v = g.wa, q = 0; q < d; q += 1) {
510
- v[q * b + l] = u[q];
517
+ for (var t = p.inputBuffer.getChannelData(l), u = g.wa, x = 0; x < d; x += 1) {
518
+ u[x * b + l] = t[x];
511
519
  }
512
520
  }
513
- Ra(f, d, e);
521
+ Sa(f, d, e);
514
522
  }
515
523
  if (a == window.h.I.Ba || a == window.h.I.La) {
516
- for (Sa(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
517
- for (u = p.outputBuffer.getChannelData(l), v = g.wa, q = 0; q < d; q += 1) {
518
- u[q] = v[q * b + l];
524
+ for (Ta(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
525
+ for (t = p.outputBuffer.getChannelData(l), u = g.wa, x = 0; x < d; x += 1) {
526
+ t[x] = u[x * b + l];
519
527
  }
520
528
  }
521
529
  } else {
@@ -534,7 +542,7 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
534
542
  a == window.h.I.Ba && g.Y.connect(g.J.destination);
535
543
  g.jb = f;
536
544
  return window.h.lc(g);
537
- }, 490299:a => window.h.va(a).J.sampleRate, 490372:a => {
545
+ }, 490715:a => window.h.va(a).J.sampleRate, 490788:a => {
538
546
  a = window.h.va(a);
539
547
  void 0 !== a.Y && (a.Y.onaudioprocess = function() {
540
548
  }, a.Y.disconnect(), a.Y = void 0);
@@ -542,21 +550,21 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
542
550
  a.J.close();
543
551
  a.J = void 0;
544
552
  a.jb = void 0;
545
- }, 490772:a => {
553
+ }, 491188:a => {
546
554
  window.h.wb(a);
547
- }, 490822:a => {
555
+ }, 491238:a => {
548
556
  a = window.h.va(a);
549
557
  a.J.resume();
550
558
  a.state = window.h.ha.rb;
551
- }, 490961:a => {
559
+ }, 491377:a => {
552
560
  a = window.h.va(a);
553
561
  a.J.suspend();
554
562
  a.state = window.h.ha.stopped;
555
- }}, Ua = a => {
563
+ }}, Va = a => {
556
564
  for (; 0 < a.length;) {
557
565
  a.shift()(n);
558
566
  }
559
- }, Va = (a, b) => {
567
+ }, Wa = (a, b) => {
560
568
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
561
569
  var e = a[d];
562
570
  "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
@@ -567,12 +575,12 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
567
575
  }
568
576
  }
569
577
  return a;
570
- }, Wa = a => {
578
+ }, Xa = a => {
571
579
  var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
572
- (a = Va(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
580
+ (a = Wa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
573
581
  a && c && (a += "/");
574
582
  return (b ? "/" : "") + a;
575
- }, Xa = a => {
583
+ }, Ya = a => {
576
584
  var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
577
585
  a = b[0];
578
586
  b = b[1];
@@ -581,21 +589,21 @@ var Oa, Pa, Ta = {484805:(a, b, c, d, e) => {
581
589
  }
582
590
  b && (b = b.substr(0, b.length - 1));
583
591
  return a + b;
584
- }, Ya = a => {
592
+ }, Za = a => {
585
593
  if ("/" === a) {
586
594
  return "/";
587
595
  }
588
- a = Wa(a);
596
+ a = Xa(a);
589
597
  a = a.replace(/\/$/, "");
590
598
  var b = a.lastIndexOf("/");
591
599
  return -1 === b ? a : a.substr(b + 1);
592
- }, Za = () => {
600
+ }, $a = () => {
593
601
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
594
602
  return a => crypto.getRandomValues(a);
595
603
  }
596
- sa("initRandomDevice");
597
- }, $a = a => ($a = Za())(a);
598
- function ab() {
604
+ ta("initRandomDevice");
605
+ }, ab = a => (ab = $a())(a);
606
+ function bb() {
599
607
  for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
600
608
  b = 0 <= c ? arguments[c] : "/";
601
609
  if ("string" != typeof b) {
@@ -607,16 +615,16 @@ function ab() {
607
615
  a = b + "/" + a;
608
616
  b = "/" === b.charAt(0);
609
617
  }
610
- a = Va(a.split("/").filter(d => !!d), !b).join("/");
618
+ a = Wa(a.split("/").filter(d => !!d), !b).join("/");
611
619
  return (b ? "/" : "") + a || ".";
612
620
  }
613
- var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K = (a, b, c) => {
621
+ var cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K = (a, b, c) => {
614
622
  var d = b + c;
615
623
  for (c = b; a[c] && !(c >= d);) {
616
624
  ++c;
617
625
  }
618
- if (16 < c - b && a.buffer && bb) {
619
- return bb.decode(a.subarray(b, c));
626
+ if (16 < c - b && a.buffer && cb) {
627
+ return cb.decode(a.subarray(b, c));
620
628
  }
621
629
  for (d = ""; b < c;) {
622
630
  var e = a[b++];
@@ -634,13 +642,13 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
634
642
  }
635
643
  }
636
644
  return d;
637
- }, cb = [], db = a => {
645
+ }, db = [], eb = a => {
638
646
  for (var b = 0, c = 0; c < a.length; ++c) {
639
647
  var d = a.charCodeAt(c);
640
648
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
641
649
  }
642
650
  return b;
643
- }, eb = (a, b, c, d) => {
651
+ }, fb = (a, b, c, d) => {
644
652
  if (!(0 < d)) {
645
653
  return 0;
646
654
  }
@@ -684,19 +692,19 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
684
692
  b[c] = 0;
685
693
  return c - e;
686
694
  };
687
- function fb(a, b) {
688
- var c = Array(db(a) + 1);
689
- a = eb(a, c, 0, c.length);
695
+ function gb(a, b) {
696
+ var c = Array(eb(a) + 1);
697
+ a = fb(a, c, 0, c.length);
690
698
  b && (c.length = a);
691
699
  return c;
692
700
  }
693
- var gb = [];
694
- function hb(a, b) {
695
- gb[a] = {input:[], D:[], U:b};
696
- ib(a, jb);
701
+ var hb = [];
702
+ function ib(a, b) {
703
+ hb[a] = {input:[], D:[], U:b};
704
+ jb(a, kb);
697
705
  }
698
- var jb = {open:function(a) {
699
- var b = gb[a.node.Ca];
706
+ var kb = {open:function(a) {
707
+ var b = hb[a.node.Ca];
700
708
  if (!b) {
701
709
  throw new L(43);
702
710
  }
@@ -740,18 +748,18 @@ var jb = {open:function(a) {
740
748
  }
741
749
  d && (a.node.timestamp = Date.now());
742
750
  return e;
743
- },}, kb = {cb:function() {
751
+ },}, lb = {cb:function() {
744
752
  a: {
745
- if (!cb.length) {
753
+ if (!db.length) {
746
754
  var a = null;
747
755
  "undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
748
756
  if (!a) {
749
757
  a = null;
750
758
  break a;
751
759
  }
752
- cb = fb(a, !0);
760
+ db = gb(a, !0);
753
761
  }
754
- a = cb.shift();
762
+ a = db.shift();
755
763
  }
756
764
  return a;
757
765
  }, Oa:function(a, b) {
@@ -764,12 +772,12 @@ var jb = {open:function(a) {
764
772
  return 0;
765
773
  }, Wb:function() {
766
774
  return [24, 80];
767
- },}, lb = {Oa:function(a, b) {
768
- null === b || 10 === b ? (A(K(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
775
+ },}, mb = {Oa:function(a, b) {
776
+ null === b || 10 === b ? (ra(K(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
769
777
  }, ua:function(a) {
770
- a.D && 0 < a.D.length && (A(K(a.D, 0)), a.D = []);
778
+ a.D && 0 < a.D.length && (ra(K(a.D, 0)), a.D = []);
771
779
  },};
772
- function mb(a, b) {
780
+ function nb(a, b) {
773
781
  var c = a.j ? a.j.length : 0;
774
782
  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));
775
783
  }
@@ -779,8 +787,8 @@ var M = {O:null, T() {
779
787
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
780
788
  throw new L(63);
781
789
  }
782
- M.O || (M.O = {dir:{node:{X:M.l.X, P:M.l.P, ma:M.l.ma, za:M.l.za, pb:M.l.pb, ub:M.l.ub, qb:M.l.qb, nb:M.l.nb, Fa:M.l.Fa}, stream:{aa:M.m.aa}}, file:{node:{X:M.l.X, P:M.l.P}, stream:{aa:M.m.aa, read:M.m.read, write:M.m.write, ta:M.m.ta, fb:M.m.fb, hb:M.m.hb}}, link:{node:{X:M.l.X, P:M.l.P, na:M.l.na}, stream:{}}, Va:{node:{X:M.l.X, P:M.l.P}, stream:nb}});
783
- c = ob(a, b, c, d);
790
+ M.O || (M.O = {dir:{node:{X:M.l.X, P:M.l.P, ma:M.l.ma, za:M.l.za, pb:M.l.pb, ub:M.l.ub, qb:M.l.qb, nb:M.l.nb, Fa:M.l.Fa}, stream:{aa:M.m.aa}}, file:{node:{X:M.l.X, P:M.l.P}, stream:{aa:M.m.aa, read:M.m.read, write:M.m.write, ta:M.m.ta, fb:M.m.fb, hb:M.m.hb}}, link:{node:{X:M.l.X, P:M.l.P, na:M.l.na}, stream:{}}, Va:{node:{X:M.l.X, P:M.l.P}, stream:ob}});
791
+ c = pb(a, b, c, d);
784
792
  16384 === (c.mode & 61440) ? (c.l = M.O.dir.node, c.m = M.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = M.O.file.node, c.m = M.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = M.O.link.node, c.m = M.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = M.O.Va.node, c.m = M.O.Va.stream);
785
793
  c.timestamp = Date.now();
786
794
  a && (a.j[b] = c, a.timestamp = c.timestamp);
@@ -817,13 +825,13 @@ var M = {O:null, T() {
817
825
  }
818
826
  }
819
827
  }, ma() {
820
- throw pb[44];
828
+ throw qb[44];
821
829
  }, za(a, b, c, d) {
822
830
  return M.createNode(a, b, c, d);
823
831
  }, pb(a, b, c) {
824
832
  if (16384 === (a.mode & 61440)) {
825
833
  try {
826
- var d = rb(b, c);
834
+ var d = sb(b, c);
827
835
  } catch (f) {
828
836
  }
829
837
  if (d) {
@@ -842,7 +850,7 @@ var M = {O:null, T() {
842
850
  delete a.j[b];
843
851
  a.timestamp = Date.now();
844
852
  }, qb(a, b) {
845
- var c = rb(a, b), d;
853
+ var c = sb(a, b), d;
846
854
  for (d in c.j) {
847
855
  throw new L(55);
848
856
  }
@@ -878,7 +886,7 @@ var M = {O:null, T() {
878
886
  }
879
887
  return a;
880
888
  }, write(a, b, c, d, e, f) {
881
- b.buffer === C.buffer && (f = !1);
889
+ b.buffer === A.buffer && (f = !1);
882
890
  if (!d) {
883
891
  return 0;
884
892
  }
@@ -895,7 +903,7 @@ var M = {O:null, T() {
895
903
  return a.j.set(b.subarray(c, c + d), e), d;
896
904
  }
897
905
  }
898
- mb(a, e + d);
906
+ nb(a, e + d);
899
907
  if (a.j.subarray && b.subarray) {
900
908
  a.j.set(b.subarray(c, c + d), e);
901
909
  } else {
@@ -912,24 +920,24 @@ var M = {O:null, T() {
912
920
  }
913
921
  return b;
914
922
  }, ta(a, b, c) {
915
- mb(a.node, b + c);
923
+ nb(a.node, b + c);
916
924
  a.node.v = Math.max(a.node.v, b + c);
917
925
  }, fb(a, b, c, d, e) {
918
926
  if (32768 !== (a.node.mode & 61440)) {
919
927
  throw new L(43);
920
928
  }
921
929
  a = a.node.j;
922
- if (e & 2 || a.buffer !== C.buffer) {
930
+ if (e & 2 || a.buffer !== A.buffer) {
923
931
  if (0 < c || c + b < a.length) {
924
932
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
925
933
  }
926
934
  c = !0;
927
- sa();
935
+ ta();
928
936
  b = void 0;
929
937
  if (!b) {
930
938
  throw new L(48);
931
939
  }
932
- C.set(a, b);
940
+ A.set(a, b);
933
941
  } else {
934
942
  c = !1, b = a.byteOffset;
935
943
  }
@@ -938,14 +946,14 @@ var M = {O:null, T() {
938
946
  M.m.write(a, b, 0, d, c, !1);
939
947
  return 0;
940
948
  },},};
941
- function sb(a, b) {
949
+ function tb(a, b) {
942
950
  var c = 0;
943
951
  a && (c |= 365);
944
952
  b && (c |= 146);
945
953
  return c;
946
954
  }
947
- var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {}, Ab = (a, b = {}) => {
948
- a = ab(a);
955
+ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {}, Bb = (a, b = {}) => {
956
+ a = bb(a);
949
957
  if (!a) {
950
958
  return {path:"", node:null};
951
959
  }
@@ -954,24 +962,24 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
954
962
  throw new L(32);
955
963
  }
956
964
  a = a.split("/").filter(g => !!g);
957
- for (var c = tb, d = "/", e = 0; e < a.length; e++) {
965
+ for (var c = ub, d = "/", e = 0; e < a.length; e++) {
958
966
  var f = e === a.length - 1;
959
967
  if (f && b.parent) {
960
968
  break;
961
969
  }
962
- c = rb(c, a[e]);
963
- d = Wa(d + "/" + a[e]);
970
+ c = sb(c, a[e]);
971
+ d = Xa(d + "/" + a[e]);
964
972
  c.Aa && (!f || f && b.ab) && (c = c.Aa.root);
965
973
  if (!f || b.$a) {
966
974
  for (f = 0; 40960 === (c.mode & 61440);) {
967
- if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
975
+ if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
968
976
  throw new L(32);
969
977
  }
970
978
  }
971
979
  }
972
980
  }
973
981
  return {path:d, node:c};
974
- }, Bb = a => {
982
+ }, Cb = a => {
975
983
  for (var b;;) {
976
984
  if (a === a.parent) {
977
985
  return a = a.T.gb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
@@ -979,34 +987,34 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
979
987
  b = b ? `${a.name}/${b}` : a.name;
980
988
  a = a.parent;
981
989
  }
982
- }, Cb = (a, b) => {
990
+ }, Db = (a, b) => {
983
991
  for (var c = 0, d = 0; d < b.length; d++) {
984
992
  c = (c << 5) - c + b.charCodeAt(d) | 0;
985
993
  }
986
- return (a + c >>> 0) % xb.length;
987
- }, rb = (a, b) => {
994
+ return (a + c >>> 0) % yb.length;
995
+ }, sb = (a, b) => {
988
996
  var c;
989
- if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
997
+ if (c = (c = Eb(a, "x")) ? c : a.l.ma ? 0 : 2) {
990
998
  throw new L(c, a);
991
999
  }
992
- for (c = xb[Cb(a.id, b)]; c; c = c.Zb) {
1000
+ for (c = yb[Db(a.id, b)]; c; c = c.Zb) {
993
1001
  var d = c.name;
994
1002
  if (c.parent.id === a.id && d === b) {
995
1003
  return c;
996
1004
  }
997
1005
  }
998
1006
  return a.l.ma(a, b);
999
- }, ob = (a, b, c, d) => {
1000
- a = new Eb(a, b, c, d);
1001
- b = Cb(a.parent.id, a.name);
1002
- a.Zb = xb[b];
1003
- return xb[b] = a;
1004
- }, Fb = a => {
1007
+ }, pb = (a, b, c, d) => {
1008
+ a = new Fb(a, b, c, d);
1009
+ b = Db(a.parent.id, a.name);
1010
+ a.Zb = yb[b];
1011
+ return yb[b] = a;
1012
+ }, Gb = a => {
1005
1013
  var b = ["r", "w", "rw"][a & 3];
1006
1014
  a & 512 && (b += "w");
1007
1015
  return b;
1008
- }, Db = (a, b) => {
1009
- if (yb) {
1016
+ }, Eb = (a, b) => {
1017
+ if (zb) {
1010
1018
  return 0;
1011
1019
  }
1012
1020
  if (!b.includes("r") || a.mode & 292) {
@@ -1017,29 +1025,29 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1017
1025
  return 2;
1018
1026
  }
1019
1027
  return 0;
1020
- }, Gb = (a, b) => {
1028
+ }, Hb = (a, b) => {
1021
1029
  try {
1022
- return rb(a, b), 20;
1030
+ return sb(a, b), 20;
1023
1031
  } catch (c) {
1024
1032
  }
1025
- return Db(a, "wx");
1026
- }, Hb = () => {
1033
+ return Eb(a, "wx");
1034
+ }, Ib = () => {
1027
1035
  for (var a = 0; 4096 >= a; a++) {
1028
- if (!vb[a]) {
1036
+ if (!wb[a]) {
1029
1037
  return a;
1030
1038
  }
1031
1039
  }
1032
1040
  throw new L(33);
1033
- }, Ib = a => {
1034
- a = vb[a];
1041
+ }, Jb = a => {
1042
+ a = wb[a];
1035
1043
  if (!a) {
1036
1044
  throw new L(8);
1037
1045
  }
1038
1046
  return a;
1039
- }, Kb = (a, b = -1) => {
1040
- Jb || (Jb = function() {
1047
+ }, Lb = (a, b = -1) => {
1048
+ Kb || (Kb = function() {
1041
1049
  this.h = {};
1042
- }, Jb.prototype = {}, Object.defineProperties(Jb.prototype, {object:{get() {
1050
+ }, Kb.prototype = {}, Object.defineProperties(Kb.prototype, {object:{get() {
1043
1051
  return this.node;
1044
1052
  }, set(c) {
1045
1053
  this.node = c;
@@ -1052,24 +1060,24 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1052
1060
  }, set(c) {
1053
1061
  this.h.position = c;
1054
1062
  },},}));
1055
- a = Object.assign(new Jb(), a);
1056
- -1 == b && (b = Hb());
1063
+ a = Object.assign(new Kb(), a);
1064
+ -1 == b && (b = Ib());
1057
1065
  a.W = b;
1058
- return vb[b] = a;
1059
- }, nb = {open:a => {
1060
- a.m = ub[a.node.Ca].m;
1066
+ return wb[b] = a;
1067
+ }, ob = {open:a => {
1068
+ a.m = vb[a.node.Ca].m;
1061
1069
  a.m.open && a.m.open(a);
1062
1070
  }, aa:() => {
1063
1071
  throw new L(70);
1064
- },}, ib = (a, b) => {
1065
- ub[a] = {m:b};
1066
- }, Lb = (a, b) => {
1072
+ },}, jb = (a, b) => {
1073
+ vb[a] = {m:b};
1074
+ }, Mb = (a, b) => {
1067
1075
  var c = "/" === b, d = !b;
1068
- if (c && tb) {
1076
+ if (c && ub) {
1069
1077
  throw new L(10);
1070
1078
  }
1071
1079
  if (!c && !d) {
1072
- var e = Ab(b, {ab:!1});
1080
+ var e = Bb(b, {ab:!1});
1073
1081
  b = e.path;
1074
1082
  e = e.node;
1075
1083
  if (e.Aa) {
@@ -1083,14 +1091,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1083
1091
  a = a.T(b);
1084
1092
  a.T = b;
1085
1093
  b.root = a;
1086
- c ? tb = a : e && (e.Aa = b, e.T && e.T.Yb.push(b));
1094
+ c ? ub = a : e && (e.Aa = b, e.T && e.T.Yb.push(b));
1087
1095
  }, N = (a, b, c) => {
1088
- var d = Ab(a, {parent:!0}).node;
1089
- a = Ya(a);
1096
+ var d = Bb(a, {parent:!0}).node;
1097
+ a = Za(a);
1090
1098
  if (!a || "." === a || ".." === a) {
1091
1099
  throw new L(28);
1092
1100
  }
1093
- var e = Gb(d, a);
1101
+ var e = Hb(d, a);
1094
1102
  if (e) {
1095
1103
  throw new L(e);
1096
1104
  }
@@ -1098,19 +1106,19 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1098
1106
  throw new L(63);
1099
1107
  }
1100
1108
  return d.l.za(d, a, b, c);
1101
- }, Mb = (a, b, c) => {
1109
+ }, Nb = (a, b, c) => {
1102
1110
  "undefined" == typeof c && (c = b, b = 438);
1103
1111
  N(a, b | 8192, c);
1104
- }, Nb = (a, b) => {
1105
- if (!ab(a)) {
1112
+ }, Ob = (a, b) => {
1113
+ if (!bb(a)) {
1106
1114
  throw new L(44);
1107
1115
  }
1108
- var c = Ab(b, {parent:!0}).node;
1116
+ var c = Bb(b, {parent:!0}).node;
1109
1117
  if (!c) {
1110
1118
  throw new L(44);
1111
1119
  }
1112
- b = Ya(b);
1113
- var d = Gb(c, b);
1120
+ b = Za(b);
1121
+ var d = Hb(c, b);
1114
1122
  if (d) {
1115
1123
  throw new L(d);
1116
1124
  }
@@ -1118,16 +1126,16 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1118
1126
  throw new L(63);
1119
1127
  }
1120
1128
  c.l.Fa(c, b, a);
1121
- }, zb = a => {
1122
- a = Ab(a).node;
1129
+ }, Ab = a => {
1130
+ a = Bb(a).node;
1123
1131
  if (!a) {
1124
1132
  throw new L(44);
1125
1133
  }
1126
1134
  if (!a.l.na) {
1127
1135
  throw new L(28);
1128
1136
  }
1129
- return ab(Bb(a.parent), a.l.na(a));
1130
- }, Pb = (a, b, c) => {
1137
+ return bb(Cb(a.parent), a.l.na(a));
1138
+ }, Qb = (a, b, c) => {
1131
1139
  if ("" === a) {
1132
1140
  throw new L(44);
1133
1141
  }
@@ -1142,9 +1150,9 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1142
1150
  if ("object" == typeof a) {
1143
1151
  var e = a;
1144
1152
  } else {
1145
- a = Wa(a);
1153
+ a = Xa(a);
1146
1154
  try {
1147
- e = Ab(a, {$a:!(b & 131072)}).node;
1155
+ e = Bb(a, {$a:!(b & 131072)}).node;
1148
1156
  } catch (f) {
1149
1157
  }
1150
1158
  }
@@ -1165,12 +1173,12 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1165
1173
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1166
1174
  throw new L(54);
1167
1175
  }
1168
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Fb(b) || b & 512) ? 31 : Db(e, Fb(b)) : 44)) {
1176
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Gb(b) || b & 512) ? 31 : Eb(e, Gb(b)) : 44)) {
1169
1177
  throw new L(c);
1170
1178
  }
1171
1179
  if (b & 512 && !d) {
1172
1180
  c = e;
1173
- c = "string" == typeof c ? Ab(c, {$a:!0}).node : c;
1181
+ c = "string" == typeof c ? Bb(c, {$a:!0}).node : c;
1174
1182
  if (!c.l.P) {
1175
1183
  throw new L(63);
1176
1184
  }
@@ -1180,17 +1188,17 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1180
1188
  if (32768 !== (c.mode & 61440)) {
1181
1189
  throw new L(28);
1182
1190
  }
1183
- if (d = Db(c, "w")) {
1191
+ if (d = Eb(c, "w")) {
1184
1192
  throw new L(d);
1185
1193
  }
1186
1194
  c.l.P(c, {size:0, timestamp:Date.now()});
1187
1195
  }
1188
1196
  b &= -131713;
1189
- e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, mc:[], error:!1});
1197
+ e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m, mc:[], error:!1});
1190
1198
  e.m.open && e.m.open(e);
1191
- !n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1199
+ !n.logReadFiles || b & 1 || (Pb || (Pb = {}), a in Pb || (Pb[a] = 1));
1192
1200
  return e;
1193
- }, Qb = (a, b, c) => {
1201
+ }, Rb = (a, b, c) => {
1194
1202
  if (null === a.W) {
1195
1203
  throw new L(8);
1196
1204
  }
@@ -1202,7 +1210,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1202
1210
  }
1203
1211
  a.position = a.m.aa(a, b, c);
1204
1212
  a.mc = [];
1205
- }, Rb = () => {
1213
+ }, Sb = () => {
1206
1214
  L || (L = function(a, b) {
1207
1215
  this.name = "ErrnoError";
1208
1216
  this.node = b;
@@ -1212,33 +1220,33 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1212
1220
  this.bc(a);
1213
1221
  this.message = "FS error";
1214
1222
  }, L.prototype = Error(), L.prototype.constructor = L, [44].forEach(a => {
1215
- pb[a] = new L(a);
1216
- pb[a].stack = "<generic error, no stack>";
1223
+ qb[a] = new L(a);
1224
+ qb[a].stack = "<generic error, no stack>";
1217
1225
  }));
1218
- }, Sb, Ub = (a, b, c) => {
1219
- a = Wa("/dev/" + a);
1220
- var d = sb(!!b, !!c);
1221
- Tb || (Tb = 64);
1222
- var e = Tb++ << 8 | 0;
1223
- ib(e, {open:f => {
1226
+ }, Tb, Vb = (a, b, c) => {
1227
+ a = Xa("/dev/" + a);
1228
+ var d = tb(!!b, !!c);
1229
+ Ub || (Ub = 64);
1230
+ var e = Ub++ << 8 | 0;
1231
+ jb(e, {open:f => {
1224
1232
  f.seekable = !1;
1225
1233
  }, close:() => {
1226
1234
  c && c.buffer && c.buffer.length && c(10);
1227
1235
  }, read:(f, g, m, p) => {
1228
- for (var l = 0, u = 0; u < p; u++) {
1236
+ for (var l = 0, t = 0; t < p; t++) {
1229
1237
  try {
1230
- var v = b();
1231
- } catch (q) {
1238
+ var u = b();
1239
+ } catch (x) {
1232
1240
  throw new L(29);
1233
1241
  }
1234
- if (void 0 === v && 0 === l) {
1242
+ if (void 0 === u && 0 === l) {
1235
1243
  throw new L(6);
1236
1244
  }
1237
- if (null === v || void 0 === v) {
1245
+ if (null === u || void 0 === u) {
1238
1246
  break;
1239
1247
  }
1240
1248
  l++;
1241
- g[m + u] = v;
1249
+ g[m + t] = u;
1242
1250
  }
1243
1251
  l && (f.node.timestamp = Date.now());
1244
1252
  return l;
@@ -1246,20 +1254,20 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {},
1246
1254
  for (var l = 0; l < p; l++) {
1247
1255
  try {
1248
1256
  c(g[m + l]);
1249
- } catch (u) {
1257
+ } catch (t) {
1250
1258
  throw new L(29);
1251
1259
  }
1252
1260
  }
1253
1261
  p && (f.node.timestamp = Date.now());
1254
1262
  return l;
1255
1263
  }});
1256
- Mb(a, d, e);
1257
- }, Tb, Vb = {}, Jb, Ob, Wb = void 0;
1258
- function Xb() {
1259
- Wb += 4;
1260
- return I[Wb - 4 >> 2];
1264
+ Nb(a, d, e);
1265
+ }, Ub, Wb = {}, Kb, Pb, Xb = void 0;
1266
+ function Yb() {
1267
+ Xb += 4;
1268
+ return I[Xb - 4 >> 2];
1261
1269
  }
1262
- function Yb(a) {
1270
+ function Zb(a) {
1263
1271
  if (void 0 === a) {
1264
1272
  return "_unknown";
1265
1273
  }
@@ -1267,24 +1275,24 @@ function Yb(a) {
1267
1275
  var b = a.charCodeAt(0);
1268
1276
  return 48 <= b && 57 >= b ? `_${a}` : a;
1269
1277
  }
1270
- function Zb(a, b) {
1271
- a = Yb(a);
1278
+ function $b(a, b) {
1279
+ a = Zb(a);
1272
1280
  return {[a]:function() {
1273
1281
  return b.apply(this, arguments);
1274
1282
  }}[a];
1275
1283
  }
1276
- function $b() {
1284
+ function ac() {
1277
1285
  this.M = [void 0];
1278
1286
  this.bb = [];
1279
1287
  }
1280
- var O = new $b(), ac = void 0;
1288
+ var O = new ac(), bc = void 0;
1281
1289
  function P(a) {
1282
- throw new ac(a);
1290
+ throw new bc(a);
1283
1291
  }
1284
1292
  var Q = a => {
1285
1293
  a || P("Cannot use deleted val. handle = " + a);
1286
1294
  return O.get(a).value;
1287
- }, bc = a => {
1295
+ }, cc = a => {
1288
1296
  switch(a) {
1289
1297
  case void 0:
1290
1298
  return 1;
@@ -1298,8 +1306,8 @@ var Q = a => {
1298
1306
  return O.ta({ob:1, value:a});
1299
1307
  }
1300
1308
  };
1301
- function cc(a) {
1302
- var b = Error, c = Zb(a, function(d) {
1309
+ function dc(a) {
1310
+ var b = Error, c = $b(a, function(d) {
1303
1311
  this.name = a;
1304
1312
  this.message = d;
1305
1313
  d = Error(d).stack;
@@ -1312,122 +1320,122 @@ function cc(a) {
1312
1320
  };
1313
1321
  return c;
1314
1322
  }
1315
- var dc = void 0, ec = void 0;
1323
+ var ec = void 0, fc = void 0;
1316
1324
  function R(a) {
1317
- for (var b = ""; G[a];) {
1318
- b += ec[G[a++]];
1325
+ for (var b = ""; C[a];) {
1326
+ b += fc[C[a++]];
1319
1327
  }
1320
1328
  return b;
1321
1329
  }
1322
- var fc = [];
1323
- function gc() {
1324
- for (; fc.length;) {
1325
- var a = fc.pop();
1330
+ var gc = [];
1331
+ function hc() {
1332
+ for (; gc.length;) {
1333
+ var a = gc.pop();
1326
1334
  a.g.ga = !1;
1327
1335
  a["delete"]();
1328
1336
  }
1329
1337
  }
1330
- var hc = void 0, ic = {};
1331
- function jc(a, b) {
1338
+ var ic = void 0, jc = {};
1339
+ function kc(a, b) {
1332
1340
  for (void 0 === b && P("ptr should not be undefined"); a.A;) {
1333
1341
  b = a.pa(b), a = a.A;
1334
1342
  }
1335
1343
  return b;
1336
1344
  }
1337
- var kc = {};
1338
- function lc(a) {
1339
- a = mc(a);
1345
+ var lc = {};
1346
+ function mc(a) {
1347
+ a = nc(a);
1340
1348
  var b = R(a);
1341
- nc(a);
1349
+ oc(a);
1342
1350
  return b;
1343
1351
  }
1344
- function oc(a, b) {
1345
- var c = kc[a];
1346
- void 0 === c && P(b + " has unknown type " + lc(a));
1352
+ function pc(a, b) {
1353
+ var c = lc[a];
1354
+ void 0 === c && P(b + " has unknown type " + mc(a));
1347
1355
  return c;
1348
1356
  }
1349
- function pc() {
1357
+ function qc() {
1350
1358
  }
1351
- var qc = !1;
1352
- function rc(a) {
1359
+ var rc = !1;
1360
+ function sc(a) {
1353
1361
  --a.count.value;
1354
1362
  0 === a.count.value && (a.G ? a.L.V(a.G) : a.u.i.V(a.o));
1355
1363
  }
1356
- function sc(a, b, c) {
1364
+ function tc(a, b, c) {
1357
1365
  if (b === c) {
1358
1366
  return a;
1359
1367
  }
1360
1368
  if (void 0 === c.A) {
1361
1369
  return null;
1362
1370
  }
1363
- a = sc(a, b, c.A);
1371
+ a = tc(a, b, c.A);
1364
1372
  return null === a ? null : c.Gb(a);
1365
1373
  }
1366
- var tc = {};
1367
- function uc(a, b) {
1368
- b = jc(a, b);
1369
- return ic[b];
1374
+ var uc = {};
1375
+ function vc(a, b) {
1376
+ b = kc(a, b);
1377
+ return jc[b];
1370
1378
  }
1371
- var vc = void 0;
1372
- function wc(a) {
1373
- throw new vc(a);
1379
+ var wc = void 0;
1380
+ function xc(a) {
1381
+ throw new wc(a);
1374
1382
  }
1375
- function xc(a, b) {
1376
- b.u && b.o || wc("makeClassHandle requires ptr and ptrType");
1377
- !!b.L !== !!b.G && wc("Both smartPtrType and smartPtr must be specified");
1383
+ function yc(a, b) {
1384
+ b.u && b.o || xc("makeClassHandle requires ptr and ptrType");
1385
+ !!b.L !== !!b.G && xc("Both smartPtrType and smartPtr must be specified");
1378
1386
  b.count = {value:1};
1379
- return yc(Object.create(a, {g:{value:b,},}));
1387
+ return zc(Object.create(a, {g:{value:b,},}));
1380
1388
  }
1381
- function yc(a) {
1389
+ function zc(a) {
1382
1390
  if ("undefined" === typeof FinalizationRegistry) {
1383
- return yc = b => b, a;
1391
+ return zc = b => b, a;
1384
1392
  }
1385
- qc = new FinalizationRegistry(b => {
1386
- rc(b.g);
1393
+ rc = new FinalizationRegistry(b => {
1394
+ sc(b.g);
1387
1395
  });
1388
- yc = b => {
1396
+ zc = b => {
1389
1397
  var c = b.g;
1390
- c.G && qc.register(b, {g:c}, b);
1398
+ c.G && rc.register(b, {g:c}, b);
1391
1399
  return b;
1392
1400
  };
1393
- pc = b => {
1394
- qc.unregister(b);
1401
+ qc = b => {
1402
+ rc.unregister(b);
1395
1403
  };
1396
- return yc(a);
1404
+ return zc(a);
1397
1405
  }
1398
- var zc = {};
1399
- function Ac(a) {
1406
+ var Ac = {};
1407
+ function Bc(a) {
1400
1408
  for (; a.length;) {
1401
1409
  var b = a.pop();
1402
1410
  a.pop()(b);
1403
1411
  }
1404
1412
  }
1405
- function Bc(a) {
1413
+ function Cc(a) {
1406
1414
  return this.fromWireType(I[a >> 2]);
1407
1415
  }
1408
- var Cc = {}, Dc = {};
1416
+ var Dc = {}, Ec = {};
1409
1417
  function S(a, b, c) {
1410
1418
  function d(m) {
1411
1419
  m = c(m);
1412
- m.length !== a.length && wc("Mismatched type converter count");
1420
+ m.length !== a.length && xc("Mismatched type converter count");
1413
1421
  for (var p = 0; p < a.length; ++p) {
1414
1422
  T(a[p], m[p]);
1415
1423
  }
1416
1424
  }
1417
1425
  a.forEach(function(m) {
1418
- Dc[m] = b;
1426
+ Ec[m] = b;
1419
1427
  });
1420
1428
  var e = Array(b.length), f = [], g = 0;
1421
1429
  b.forEach((m, p) => {
1422
- kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
1423
- e[p] = kc[m];
1430
+ lc.hasOwnProperty(m) ? e[p] = lc[m] : (f.push(m), Dc.hasOwnProperty(m) || (Dc[m] = []), Dc[m].push(() => {
1431
+ e[p] = lc[m];
1424
1432
  ++g;
1425
1433
  g === f.length && d(e);
1426
1434
  }));
1427
1435
  });
1428
1436
  0 === f.length && d(e);
1429
1437
  }
1430
- function Ec(a) {
1438
+ function Fc(a) {
1431
1439
  switch(a) {
1432
1440
  case 1:
1433
1441
  return 0;
@@ -1441,31 +1449,31 @@ function Ec(a) {
1441
1449
  throw new TypeError(`Unknown type size: ${a}`);
1442
1450
  }
1443
1451
  }
1444
- function Fc(a, b, c = {}) {
1452
+ function Gc(a, b, c = {}) {
1445
1453
  var d = b.name;
1446
1454
  a || P(`type "${d}" must have a positive integer typeid pointer`);
1447
- if (kc.hasOwnProperty(a)) {
1455
+ if (lc.hasOwnProperty(a)) {
1448
1456
  if (c.Rb) {
1449
1457
  return;
1450
1458
  }
1451
1459
  P(`Cannot register type '${d}' twice`);
1452
1460
  }
1453
- kc[a] = b;
1454
- delete Dc[a];
1455
- Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
1461
+ lc[a] = b;
1462
+ delete Ec[a];
1463
+ Dc.hasOwnProperty(a) && (b = Dc[a], delete Dc[a], b.forEach(e => e()));
1456
1464
  }
1457
1465
  function T(a, b, c = {}) {
1458
1466
  if (!("argPackAdvance" in b)) {
1459
1467
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
1460
1468
  }
1461
- Fc(a, b, c);
1469
+ Gc(a, b, c);
1462
1470
  }
1463
- function Gc(a) {
1471
+ function Hc(a) {
1464
1472
  P(a.g.u.i.name + " instance already deleted");
1465
1473
  }
1466
- function Hc() {
1474
+ function Ic() {
1467
1475
  }
1468
- function Ic(a, b, c) {
1476
+ function Jc(a, b, c) {
1469
1477
  if (void 0 === a[b].B) {
1470
1478
  var d = a[b];
1471
1479
  a[b] = function() {
@@ -1476,10 +1484,10 @@ function Ic(a, b, c) {
1476
1484
  a[b].B[d.fa] = d;
1477
1485
  }
1478
1486
  }
1479
- function Jc(a, b, c) {
1480
- n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && P(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Kc = c));
1487
+ function Kc(a, b, c) {
1488
+ n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && P(`Cannot register public name '${a}' twice`), Jc(n, a, a), n.hasOwnProperty(c) && P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Kc = c));
1481
1489
  }
1482
- function Kc(a, b, c, d, e, f, g, m) {
1490
+ function Lc(a, b, c, d, e, f, g, m) {
1483
1491
  this.name = a;
1484
1492
  this.constructor = b;
1485
1493
  this.N = c;
@@ -1490,21 +1498,21 @@ function Kc(a, b, c, d, e, f, g, m) {
1490
1498
  this.Gb = m;
1491
1499
  this.kb = [];
1492
1500
  }
1493
- function Lc(a, b, c) {
1501
+ function Mc(a, b, c) {
1494
1502
  for (; b !== c;) {
1495
1503
  b.pa || P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
1496
1504
  }
1497
1505
  return a;
1498
1506
  }
1499
- function Mc(a, b) {
1507
+ function Nc(a, b) {
1500
1508
  if (null === b) {
1501
1509
  return this.Na && P(`null is not a valid ${this.name}`), 0;
1502
1510
  }
1503
- b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1511
+ b.g || P(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1504
1512
  b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1505
- return Lc(b.g.o, b.g.u.i, this.i);
1513
+ return Mc(b.g.o, b.g.u.i, this.i);
1506
1514
  }
1507
- function Oc(a, b) {
1515
+ function Pc(a, b) {
1508
1516
  if (null === b) {
1509
1517
  this.Na && P(`null is not a valid ${this.name}`);
1510
1518
  if (this.ya) {
@@ -1514,10 +1522,10 @@ function Oc(a, b) {
1514
1522
  }
1515
1523
  return 0;
1516
1524
  }
1517
- b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1525
+ b.g || P(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1518
1526
  b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1519
1527
  !this.xa && b.g.u.xa && P(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1520
- c = Lc(b.g.o, b.g.u.i, this.i);
1528
+ c = Mc(b.g.o, b.g.u.i, this.i);
1521
1529
  if (this.ya) {
1522
1530
  switch(void 0 === b.g.G && P("Passing raw pointer to smart pointer is illegal"), this.fc) {
1523
1531
  case 0:
@@ -1531,7 +1539,7 @@ function Oc(a, b) {
1531
1539
  c = b.g.G;
1532
1540
  } else {
1533
1541
  var d = b.clone();
1534
- c = this.ac(c, bc(function() {
1542
+ c = this.ac(c, cc(function() {
1535
1543
  d["delete"]();
1536
1544
  }));
1537
1545
  null !== a && a.push(this.V, c);
@@ -1543,33 +1551,33 @@ function Oc(a, b) {
1543
1551
  }
1544
1552
  return c;
1545
1553
  }
1546
- function Pc(a, b) {
1554
+ function Qc(a, b) {
1547
1555
  if (null === b) {
1548
1556
  return this.Na && P(`null is not a valid ${this.name}`), 0;
1549
1557
  }
1550
- b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1558
+ b.g || P(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1551
1559
  b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1552
1560
  b.g.u.xa && P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1553
- return Lc(b.g.o, b.g.u.i, this.i);
1561
+ return Mc(b.g.o, b.g.u.i, this.i);
1554
1562
  }
1555
- function Qc(a, b, c, d) {
1563
+ function Rc(a, b, c, d) {
1556
1564
  this.name = a;
1557
1565
  this.i = b;
1558
1566
  this.Na = c;
1559
1567
  this.xa = d;
1560
1568
  this.ya = !1;
1561
1569
  this.V = this.ac = this.Pa = this.mb = this.fc = this.$b = void 0;
1562
- void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
1570
+ void 0 !== b.A ? this.toWireType = Pc : (this.toWireType = d ? Nc : Qc, this.K = null);
1563
1571
  }
1564
- function Rc(a, b, c) {
1565
- n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1572
+ function Sc(a, b, c) {
1573
+ n.hasOwnProperty(a) || xc("Replacing nonexistant public symbol");
1566
1574
  void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].fa = c);
1567
1575
  }
1568
- var Sc = [], Tc = a => {
1569
- var b = Sc[a];
1570
- b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = za.get(a));
1576
+ var Tc = [], Uc = a => {
1577
+ var b = Tc[a];
1578
+ b || (a >= Tc.length && (Tc.length = a + 1), Tc[a] = b = Aa.get(a));
1571
1579
  return b;
1572
- }, Uc = (a, b) => {
1580
+ }, Vc = (a, b) => {
1573
1581
  var c = [];
1574
1582
  return function() {
1575
1583
  c.length = 0;
@@ -1578,27 +1586,27 @@ var Sc = [], Tc = a => {
1578
1586
  var d = n["dynCall_" + a];
1579
1587
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1580
1588
  } else {
1581
- d = Tc(b).apply(null, c);
1589
+ d = Uc(b).apply(null, c);
1582
1590
  }
1583
1591
  return d;
1584
1592
  };
1585
1593
  };
1586
1594
  function U(a, b) {
1587
1595
  a = R(a);
1588
- var c = a.includes("j") ? Uc(a, b) : Tc(b);
1596
+ var c = a.includes("j") ? Vc(a, b) : Uc(b);
1589
1597
  "function" != typeof c && P(`unknown function pointer with signature ${a}: ${b}`);
1590
1598
  return c;
1591
1599
  }
1592
- var Vc = void 0;
1593
- function Wc(a, b) {
1600
+ var Wc = void 0;
1601
+ function Xc(a, b) {
1594
1602
  function c(f) {
1595
- e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
1603
+ e[f] || lc[f] || (Ec[f] ? Ec[f].forEach(c) : (d.push(f), e[f] = !0));
1596
1604
  }
1597
1605
  var d = [], e = {};
1598
1606
  b.forEach(c);
1599
- throw new Vc(`${a}: ` + d.map(lc).join([", "]));
1607
+ throw new Wc(`${a}: ` + d.map(mc).join([", "]));
1600
1608
  }
1601
- function Xc(a, b, c, d, e) {
1609
+ function Yc(a, b, c, d, e) {
1602
1610
  var f = b.length;
1603
1611
  2 > f && P("argTypes array size mismatch! Must at least get return value and 'this' types!");
1604
1612
  var g = null !== b[1] && null !== c, m = !1;
@@ -1608,56 +1616,56 @@ function Xc(a, b, c, d, e) {
1608
1616
  break;
1609
1617
  }
1610
1618
  }
1611
- var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], q = [];
1619
+ var p = "void" !== b[0].name, l = f - 2, t = Array(l), u = [], x = [];
1612
1620
  return function() {
1613
1621
  arguments.length !== l && P(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
1614
- q.length = 0;
1615
- v.length = g ? 2 : 1;
1616
- v[0] = e;
1622
+ x.length = 0;
1623
+ u.length = g ? 2 : 1;
1624
+ u[0] = e;
1617
1625
  if (g) {
1618
- var k = b[1].toWireType(q, this);
1619
- v[1] = k;
1626
+ var k = b[1].toWireType(x, this);
1627
+ u[1] = k;
1620
1628
  }
1621
- for (var r = 0; r < l; ++r) {
1622
- u[r] = b[r + 2].toWireType(q, arguments[r]), v.push(u[r]);
1629
+ for (var q = 0; q < l; ++q) {
1630
+ t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
1623
1631
  }
1624
- r = d.apply(null, v);
1632
+ q = d.apply(null, u);
1625
1633
  if (m) {
1626
- Ac(q);
1634
+ Bc(x);
1627
1635
  } else {
1628
- for (var w = g ? 1 : 2; w < b.length; w++) {
1629
- var y = 1 === w ? k : u[w - 2];
1630
- null !== b[w].K && b[w].K(y);
1636
+ for (var v = g ? 1 : 2; v < b.length; v++) {
1637
+ var y = 1 === v ? k : t[v - 2];
1638
+ null !== b[v].K && b[v].K(y);
1631
1639
  }
1632
1640
  }
1633
- k = p ? b[0].fromWireType(r) : void 0;
1641
+ k = p ? b[0].fromWireType(q) : void 0;
1634
1642
  return k;
1635
1643
  };
1636
1644
  }
1637
- function Yc(a, b) {
1645
+ function Zc(a, b) {
1638
1646
  for (var c = [], d = 0; d < a; d++) {
1639
1647
  c.push(J[b + 4 * d >> 2]);
1640
1648
  }
1641
1649
  return c;
1642
1650
  }
1643
- function Zc(a, b, c) {
1651
+ function $c(a, b, c) {
1644
1652
  a instanceof Object || P(`${c} with invalid "this": ${a}`);
1645
1653
  a instanceof b.i.constructor || P(`${c} incompatible with "this" of type ${a.constructor.name}`);
1646
1654
  a.g.o || P(`cannot call emscripten binding method ${c} on deleted object`);
1647
- return Lc(a.g.o, a.g.u.i, b.i);
1655
+ return Mc(a.g.o, a.g.u.i, b.i);
1648
1656
  }
1649
- function $c(a) {
1657
+ function ad(a) {
1650
1658
  a >= O.h && 0 === --O.get(a).ob && O.Qb(a);
1651
1659
  }
1652
- function ad(a, b, c) {
1660
+ function bd(a, b, c) {
1653
1661
  switch(b) {
1654
1662
  case 0:
1655
1663
  return function(d) {
1656
- return this.fromWireType((c ? C : G)[d]);
1664
+ return this.fromWireType((c ? A : C)[d]);
1657
1665
  };
1658
1666
  case 1:
1659
1667
  return function(d) {
1660
- return this.fromWireType((c ? H : va)[d >> 1]);
1668
+ return this.fromWireType((c ? G : wa)[d >> 1]);
1661
1669
  };
1662
1670
  case 2:
1663
1671
  return function(d) {
@@ -1667,40 +1675,40 @@ function ad(a, b, c) {
1667
1675
  throw new TypeError("Unknown integer type: " + a);
1668
1676
  }
1669
1677
  }
1670
- function Nc(a) {
1678
+ function Oc(a) {
1671
1679
  if (null === a) {
1672
1680
  return "null";
1673
1681
  }
1674
1682
  var b = typeof a;
1675
1683
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
1676
1684
  }
1677
- function bd(a, b) {
1685
+ function cd(a, b) {
1678
1686
  switch(b) {
1679
1687
  case 2:
1680
1688
  return function(c) {
1681
- return this.fromWireType(wa[c >> 2]);
1689
+ return this.fromWireType(xa[c >> 2]);
1682
1690
  };
1683
1691
  case 3:
1684
1692
  return function(c) {
1685
- return this.fromWireType(xa[c >> 3]);
1693
+ return this.fromWireType(ya[c >> 3]);
1686
1694
  };
1687
1695
  default:
1688
1696
  throw new TypeError("Unknown float type: " + a);
1689
1697
  }
1690
1698
  }
1691
- function cd(a, b, c) {
1699
+ function dd(a, b, c) {
1692
1700
  switch(b) {
1693
1701
  case 0:
1694
1702
  return c ? function(d) {
1695
- return C[d];
1703
+ return A[d];
1696
1704
  } : function(d) {
1697
- return G[d];
1705
+ return C[d];
1698
1706
  };
1699
1707
  case 1:
1700
1708
  return c ? function(d) {
1701
- return H[d >> 1];
1709
+ return G[d >> 1];
1702
1710
  } : function(d) {
1703
- return va[d >> 1];
1711
+ return wa[d >> 1];
1704
1712
  };
1705
1713
  case 2:
1706
1714
  return c ? function(d) {
@@ -1712,25 +1720,25 @@ function cd(a, b, c) {
1712
1720
  throw new TypeError("Unknown integer type: " + a);
1713
1721
  }
1714
1722
  }
1715
- var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
1723
+ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
1716
1724
  var c = a >> 1;
1717
- for (var d = c + b / 2; !(c >= d) && va[c];) {
1725
+ for (var d = c + b / 2; !(c >= d) && wa[c];) {
1718
1726
  ++c;
1719
1727
  }
1720
1728
  c <<= 1;
1721
- if (32 < c - a && dd) {
1722
- return dd.decode(G.subarray(a, c));
1729
+ if (32 < c - a && ed) {
1730
+ return ed.decode(C.subarray(a, c));
1723
1731
  }
1724
1732
  c = "";
1725
1733
  for (d = 0; !(d >= b / 2); ++d) {
1726
- var e = H[a + 2 * d >> 1];
1734
+ var e = G[a + 2 * d >> 1];
1727
1735
  if (0 == e) {
1728
1736
  break;
1729
1737
  }
1730
1738
  c += String.fromCharCode(e);
1731
1739
  }
1732
1740
  return c;
1733
- }, fd = (a, b, c) => {
1741
+ }, gd = (a, b, c) => {
1734
1742
  void 0 === c && (c = 2147483647);
1735
1743
  if (2 > c) {
1736
1744
  return 0;
@@ -1739,11 +1747,11 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1739
1747
  var d = b;
1740
1748
  c = c < 2 * a.length ? c / 2 : a.length;
1741
1749
  for (var e = 0; e < c; ++e) {
1742
- H[b >> 1] = a.charCodeAt(e), b += 2;
1750
+ G[b >> 1] = a.charCodeAt(e), b += 2;
1743
1751
  }
1744
- H[b >> 1] = 0;
1752
+ G[b >> 1] = 0;
1745
1753
  return b - d;
1746
- }, gd = a => 2 * a.length, hd = (a, b) => {
1754
+ }, hd = a => 2 * a.length, jd = (a, b) => {
1747
1755
  for (var c = 0, d = ""; !(c >= b / 4);) {
1748
1756
  var e = I[a + 4 * c >> 2];
1749
1757
  if (0 == e) {
@@ -1753,7 +1761,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1753
1761
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1754
1762
  }
1755
1763
  return d;
1756
- }, jd = (a, b, c) => {
1764
+ }, kd = (a, b, c) => {
1757
1765
  void 0 === c && (c = 2147483647);
1758
1766
  if (4 > c) {
1759
1767
  return 0;
@@ -1774,95 +1782,95 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1774
1782
  }
1775
1783
  I[b >> 2] = 0;
1776
1784
  return b - d;
1777
- }, kd = a => {
1785
+ }, ld = a => {
1778
1786
  for (var b = 0, c = 0; c < a.length; ++c) {
1779
1787
  var d = a.charCodeAt(c);
1780
1788
  55296 <= d && 57343 >= d && ++c;
1781
1789
  b += 4;
1782
1790
  }
1783
1791
  return b;
1784
- }, ld = {};
1785
- function md(a) {
1786
- var b = ld[a];
1792
+ }, md = {};
1793
+ function nd(a) {
1794
+ var b = md[a];
1787
1795
  return void 0 === b ? R(a) : b;
1788
1796
  }
1789
- var nd = [];
1790
- function od(a) {
1791
- var b = nd.length;
1792
- nd.push(a);
1797
+ var od = [];
1798
+ function pd(a) {
1799
+ var b = od.length;
1800
+ od.push(a);
1793
1801
  return b;
1794
1802
  }
1795
- function pd(a, b) {
1803
+ function qd(a, b) {
1796
1804
  for (var c = Array(a), d = 0; d < a; ++d) {
1797
- c[d] = oc(J[b + 4 * d >> 2], "parameter " + d);
1805
+ c[d] = pc(J[b + 4 * d >> 2], "parameter " + d);
1798
1806
  }
1799
1807
  return c;
1800
1808
  }
1801
- var qd = [], rd = [];
1802
- function sd(a) {
1809
+ var rd = [], sd = [];
1810
+ function td(a) {
1803
1811
  a.yc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1804
1812
  }
1805
- function td(a) {
1813
+ function ud(a) {
1806
1814
  a.Gc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1807
1815
  }
1808
- var ud = 1, vd = [], V = [], wd = [], xd = [], W = [], yd = [], zd = [], t = [], Ad = {};
1816
+ var vd = 1, wd = [], V = [], xd = [], yd = [], W = [], zd = [], Ad = [], r = [], Bd = {};
1809
1817
  function X(a) {
1810
- Bd || (Bd = a);
1818
+ Cd || (Cd = a);
1811
1819
  }
1812
1820
  function ha(a) {
1813
- for (var b = ud++, c = a.length; c < b; c++) {
1821
+ for (var b = vd++, c = a.length; c < b; c++) {
1814
1822
  a[c] = null;
1815
1823
  }
1816
1824
  return b;
1817
1825
  }
1818
1826
  function ja(a) {
1819
- Cd = t[a];
1820
- n.wc = Z = Cd && Cd.H;
1821
- return !(a && !Z);
1827
+ Dd = r[a];
1828
+ n.wc = Y = Dd && Dd.H;
1829
+ return !(a && !Y);
1822
1830
  }
1823
1831
  function ia(a) {
1824
- a || (a = Cd);
1832
+ a || (a = Dd);
1825
1833
  if (!a.Sb) {
1826
1834
  a.Sb = !0;
1827
1835
  var b = a.H;
1828
- sd(b);
1829
1836
  td(b);
1837
+ ud(b);
1830
1838
  2 <= a.version && (b.Ya = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1831
1839
  if (2 > a.version || !b.Ya) {
1832
1840
  b.Ya = b.getExtension("EXT_disjoint_timer_query");
1833
1841
  }
1834
- Dd(b);
1842
+ Ed(b);
1835
1843
  (b.getSupportedExtensions() || []).forEach(function(c) {
1836
1844
  c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
1837
1845
  });
1838
1846
  }
1839
1847
  }
1840
- var Bd, Cd;
1841
- function Dd(a) {
1848
+ var Cd, Dd;
1849
+ function Ed(a) {
1842
1850
  a.Ic = a.getExtension("WEBGL_multi_draw");
1843
1851
  }
1844
- var Ed = {}, Gd = () => {
1845
- if (!Fd) {
1852
+ var Fd = {}, Hd = () => {
1853
+ if (!Gd) {
1846
1854
  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", _:la || "./this.program"}, b;
1847
- for (b in Ed) {
1848
- void 0 === Ed[b] ? delete a[b] : a[b] = Ed[b];
1855
+ for (b in Fd) {
1856
+ void 0 === Fd[b] ? delete a[b] : a[b] = Fd[b];
1849
1857
  }
1850
1858
  var c = [];
1851
1859
  for (b in a) {
1852
1860
  c.push(`${b}=${a[b]}`);
1853
1861
  }
1854
- Fd = c;
1862
+ Gd = c;
1855
1863
  }
1856
- return Fd;
1857
- }, Fd, Hd = [];
1858
- function Id(a, b, c, d) {
1864
+ return Gd;
1865
+ }, Gd, Id = [];
1866
+ function Jd(a, b, c, d) {
1859
1867
  for (var e = 0; e < a; e++) {
1860
- var f = Z[c](), g = f && ha(d);
1868
+ var f = Y[c](), g = f && ha(d);
1861
1869
  f ? (f.name = g, d[g] = f) : X(1282);
1862
1870
  I[b + 4 * e >> 2] = g;
1863
1871
  }
1864
1872
  }
1865
- function Jd(a, b) {
1873
+ function Kd(a, b) {
1866
1874
  if (b) {
1867
1875
  var c = void 0;
1868
1876
  switch(a) {
@@ -1876,26 +1884,26 @@ function Jd(a, b) {
1876
1884
  c = 0;
1877
1885
  break;
1878
1886
  case 34466:
1879
- var d = Z.getParameter(34467);
1887
+ var d = Y.getParameter(34467);
1880
1888
  c = d ? d.length : 0;
1881
1889
  break;
1882
1890
  case 33309:
1883
- if (2 > Cd.version) {
1891
+ if (2 > Dd.version) {
1884
1892
  X(1282);
1885
1893
  return;
1886
1894
  }
1887
- c = 2 * (Z.getSupportedExtensions() || []).length;
1895
+ c = 2 * (Y.getSupportedExtensions() || []).length;
1888
1896
  break;
1889
1897
  case 33307:
1890
1898
  case 33308:
1891
- if (2 > Cd.version) {
1899
+ if (2 > Dd.version) {
1892
1900
  X(1280);
1893
1901
  return;
1894
1902
  }
1895
1903
  c = 33307 == a ? 3 : 0;
1896
1904
  }
1897
1905
  if (void 0 === c) {
1898
- switch(d = Z.getParameter(a), typeof d) {
1906
+ switch(d = Y.getParameter(a), typeof d) {
1899
1907
  case "number":
1900
1908
  c = d;
1901
1909
  break;
@@ -1944,14 +1952,14 @@ function Jd(a, b) {
1944
1952
  c = d.name | 0;
1945
1953
  } catch (e) {
1946
1954
  X(1280);
1947
- A("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
1955
+ ra("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
1948
1956
  return;
1949
1957
  }
1950
1958
  }
1951
1959
  break;
1952
1960
  default:
1953
1961
  X(1280);
1954
- A("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
1962
+ ra("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
1955
1963
  return;
1956
1964
  }
1957
1965
  }
@@ -1960,30 +1968,30 @@ function Jd(a, b) {
1960
1968
  X(1281);
1961
1969
  }
1962
1970
  }
1963
- var Ld = a => {
1964
- var b = db(a) + 1, c = Kd(b);
1965
- c && eb(a, G, c, b);
1971
+ var Md = a => {
1972
+ var b = eb(a) + 1, c = Ld(b);
1973
+ c && fb(a, C, c, b);
1966
1974
  return c;
1967
1975
  };
1968
- function Md(a) {
1976
+ function Nd(a) {
1969
1977
  return "]" == a.slice(-1) && a.lastIndexOf("[");
1970
1978
  }
1971
- var Nd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Od = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Pd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qd = (a, b, c, d) => {
1972
- function e(k, r, w) {
1973
- for (k = "number" == typeof k ? k.toString() : k || ""; k.length < r;) {
1974
- k = w[0] + k;
1979
+ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rd = (a, b, c, d) => {
1980
+ function e(k, q, v) {
1981
+ for (k = "number" == typeof k ? k.toString() : k || ""; k.length < q;) {
1982
+ k = v[0] + k;
1975
1983
  }
1976
1984
  return k;
1977
1985
  }
1978
- function f(k, r) {
1979
- return e(k, r, "0");
1986
+ function f(k, q) {
1987
+ return e(k, q, "0");
1980
1988
  }
1981
- function g(k, r) {
1982
- function w(E) {
1983
- return 0 > E ? -1 : 0 < E ? 1 : 0;
1989
+ function g(k, q) {
1990
+ function v(B) {
1991
+ return 0 > B ? -1 : 0 < B ? 1 : 0;
1984
1992
  }
1985
1993
  var y;
1986
- 0 === (y = w(k.getFullYear() - r.getFullYear())) && 0 === (y = w(k.getMonth() - r.getMonth())) && (y = w(k.getDate() - r.getDate()));
1994
+ 0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
1987
1995
  return y;
1988
1996
  }
1989
1997
  function m(k) {
@@ -2005,79 +2013,79 @@ var Nd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Od = [31, 29, 31,
2005
2013
  }
2006
2014
  }
2007
2015
  function p(k) {
2008
- var r = k.ba;
2009
- for (k = new Date((new Date(k.ca + 1900, 0, 1)).getTime()); 0 < r;) {
2010
- var w = k.getMonth(), y = (Nd(k.getFullYear()) ? Od : Pd)[w];
2011
- if (r > y - k.getDate()) {
2012
- r -= y - k.getDate() + 1, k.setDate(1), 11 > w ? k.setMonth(w + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
2016
+ var q = k.ba;
2017
+ for (k = new Date((new Date(k.ca + 1900, 0, 1)).getTime()); 0 < q;) {
2018
+ var v = k.getMonth(), y = (Od(k.getFullYear()) ? Pd : Qd)[v];
2019
+ if (q > y - k.getDate()) {
2020
+ q -= y - k.getDate() + 1, k.setDate(1), 11 > v ? k.setMonth(v + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
2013
2021
  } else {
2014
- k.setDate(k.getDate() + r);
2022
+ k.setDate(k.getDate() + q);
2015
2023
  break;
2016
2024
  }
2017
2025
  }
2018
- w = new Date(k.getFullYear() + 1, 0, 4);
2019
- r = m(new Date(k.getFullYear(), 0, 4));
2020
- w = m(w);
2021
- return 0 >= g(r, k) ? 0 >= g(w, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2026
+ v = new Date(k.getFullYear() + 1, 0, 4);
2027
+ q = m(new Date(k.getFullYear(), 0, 4));
2028
+ v = m(v);
2029
+ return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2022
2030
  }
2023
2031
  var l = I[d + 40 >> 2];
2024
- d = {jc:I[d >> 2], ic:I[d + 4 >> 2], Ga:I[d + 8 >> 2], Ra:I[d + 12 >> 2], Ha:I[d + 16 >> 2], ca:I[d + 20 >> 2], R:I[d + 24 >> 2], ba:I[d + 28 >> 2], Mc:I[d + 32 >> 2], hc:I[d + 36 >> 2], kc:l ? l ? K(G, l) : "" : ""};
2025
- c = c ? K(G, c) : "";
2032
+ d = {jc:I[d >> 2], ic:I[d + 4 >> 2], Ga:I[d + 8 >> 2], Ra:I[d + 12 >> 2], Ha:I[d + 16 >> 2], ca:I[d + 20 >> 2], R:I[d + 24 >> 2], ba:I[d + 28 >> 2], Mc:I[d + 32 >> 2], hc:I[d + 36 >> 2], kc:l ? l ? K(C, l) : "" : ""};
2033
+ c = c ? K(C, c) : "";
2026
2034
  l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
2027
- for (var u in l) {
2028
- c = c.replace(new RegExp(u, "g"), l[u]);
2035
+ for (var t in l) {
2036
+ c = c.replace(new RegExp(t, "g"), l[t]);
2029
2037
  }
2030
- var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), q = "January February March April May June July August September October November December".split(" ");
2031
- l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k => q[k.Ha].substring(0, 3), "%B":k => q[k.Ha], "%C":k => f((k.ca + 1900) / 100 | 0, 2), "%d":k => f(k.Ra, 2), "%e":k => e(k.Ra, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Ga, 2), "%I":k => {
2038
+ var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
2039
+ l = {"%a":k => u[k.R].substring(0, 3), "%A":k => u[k.R], "%b":k => x[k.Ha].substring(0, 3), "%B":k => x[k.Ha], "%C":k => f((k.ca + 1900) / 100 | 0, 2), "%d":k => f(k.Ra, 2), "%e":k => e(k.Ra, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Ga, 2), "%I":k => {
2032
2040
  k = k.Ga;
2033
2041
  0 == k ? k = 12 : 12 < k && (k -= 12);
2034
2042
  return f(k, 2);
2035
2043
  }, "%j":k => {
2036
- for (var r = 0, w = 0; w <= k.Ha - 1; r += (Nd(k.ca + 1900) ? Od : Pd)[w++]) {
2044
+ for (var q = 0, v = 0; v <= k.Ha - 1; q += (Od(k.ca + 1900) ? Pd : Qd)[v++]) {
2037
2045
  }
2038
- return f(k.Ra + r, 3);
2046
+ return f(k.Ra + q, 3);
2039
2047
  }, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.ic, 2), "%n":() => "\n", "%p":k => 0 <= k.Ga && 12 > k.Ga ? "AM" : "PM", "%S":k => f(k.jc, 2), "%t":() => "\t", "%u":k => k.R || 7, "%U":k => f(Math.floor((k.ba + 7 - k.R) / 7), 2), "%V":k => {
2040
- var r = Math.floor((k.ba + 7 - (k.R + 6) % 7) / 7);
2041
- 2 >= (k.R + 371 - k.ba - 2) % 7 && r++;
2042
- if (r) {
2043
- 53 == r && (w = (k.R + 371 - k.ba) % 7, 4 == w || 3 == w && Nd(k.ca) || (r = 1));
2048
+ var q = Math.floor((k.ba + 7 - (k.R + 6) % 7) / 7);
2049
+ 2 >= (k.R + 371 - k.ba - 2) % 7 && q++;
2050
+ if (q) {
2051
+ 53 == q && (v = (k.R + 371 - k.ba) % 7, 4 == v || 3 == v && Od(k.ca) || (q = 1));
2044
2052
  } else {
2045
- r = 52;
2046
- var w = (k.R + 7 - k.ba - 1) % 7;
2047
- (4 == w || 5 == w && Nd(k.ca % 400 - 1)) && r++;
2053
+ q = 52;
2054
+ var v = (k.R + 7 - k.ba - 1) % 7;
2055
+ (4 == v || 5 == v && Od(k.ca % 400 - 1)) && q++;
2048
2056
  }
2049
- return f(r, 2);
2057
+ return f(q, 2);
2050
2058
  }, "%w":k => k.R, "%W":k => f(Math.floor((k.ba + 7 - (k.R + 6) % 7) / 7), 2), "%y":k => (k.ca + 1900).toString().substring(2), "%Y":k => k.ca + 1900, "%z":k => {
2051
2059
  k = k.hc;
2052
- var r = 0 <= k;
2060
+ var q = 0 <= k;
2053
2061
  k = Math.abs(k) / 60;
2054
- return (r ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
2062
+ return (q ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
2055
2063
  }, "%Z":k => k.kc, "%%":() => "%"};
2056
2064
  c = c.replace(/%%/g, "\x00\x00");
2057
- for (u in l) {
2058
- c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
2065
+ for (t in l) {
2066
+ c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
2059
2067
  }
2060
2068
  c = c.replace(/\0\0/g, "%");
2061
- u = fb(c, !1);
2062
- if (u.length > b) {
2069
+ t = gb(c, !1);
2070
+ if (t.length > b) {
2063
2071
  return 0;
2064
2072
  }
2065
- C.set(u, a);
2066
- return u.length - 1;
2073
+ A.set(t, a);
2074
+ return t.length - 1;
2067
2075
  };
2068
- function Eb(a, b, c, d) {
2076
+ function Fb(a, b, c, d) {
2069
2077
  a || (a = this);
2070
2078
  this.parent = a;
2071
2079
  this.T = a.T;
2072
2080
  this.Aa = null;
2073
- this.id = wb++;
2081
+ this.id = xb++;
2074
2082
  this.name = b;
2075
2083
  this.mode = c;
2076
2084
  this.l = {};
2077
2085
  this.m = {};
2078
2086
  this.Ca = d;
2079
2087
  }
2080
- Object.defineProperties(Eb.prototype, {read:{get:function() {
2088
+ Object.defineProperties(Fb.prototype, {read:{get:function() {
2081
2089
  return 365 === (this.mode & 365);
2082
2090
  }, set:function(a) {
2083
2091
  a ? this.mode |= 365 : this.mode &= -366;
@@ -2086,26 +2094,26 @@ Object.defineProperties(Eb.prototype, {read:{get:function() {
2086
2094
  }, set:function(a) {
2087
2095
  a ? this.mode |= 146 : this.mode &= -147;
2088
2096
  }}});
2089
- Rb();
2090
- xb = Array(4096);
2091
- Lb(M, "/");
2097
+ Sb();
2098
+ yb = Array(4096);
2099
+ Mb(M, "/");
2092
2100
  N("/tmp", 16895, 0);
2093
2101
  N("/home", 16895, 0);
2094
2102
  N("/home/web_user", 16895, 0);
2095
2103
  (() => {
2096
2104
  N("/dev", 16895, 0);
2097
- ib(259, {read:() => 0, write:(d, e, f, g) => g,});
2098
- Mb("/dev/null", 259);
2099
- hb(1280, kb);
2100
- hb(1536, lb);
2101
- Mb("/dev/tty", 1280);
2102
- Mb("/dev/tty1", 1536);
2105
+ jb(259, {read:() => 0, write:(d, e, f, g) => g,});
2106
+ Nb("/dev/null", 259);
2107
+ ib(1280, lb);
2108
+ ib(1536, mb);
2109
+ Nb("/dev/tty", 1280);
2110
+ Nb("/dev/tty1", 1536);
2103
2111
  var a = new Uint8Array(1024), b = 0, c = () => {
2104
- 0 === b && (b = $a(a).byteLength);
2112
+ 0 === b && (b = ab(a).byteLength);
2105
2113
  return a[--b];
2106
2114
  };
2107
- Ub("random", c);
2108
- Ub("urandom", c);
2115
+ Vb("random", c);
2116
+ Vb("urandom", c);
2109
2117
  N("/dev/shm", 16895, 0);
2110
2118
  N("/dev/shm/tmp", 16895, 0);
2111
2119
  })();
@@ -2113,17 +2121,17 @@ N("/home/web_user", 16895, 0);
2113
2121
  N("/proc", 16895, 0);
2114
2122
  var a = N("/proc/self", 16895, 0);
2115
2123
  N("/proc/self/fd", 16895, 0);
2116
- Lb({T:() => {
2117
- var b = ob(a, "fd", 16895, 73);
2124
+ Mb({T:() => {
2125
+ var b = pb(a, "fd", 16895, 73);
2118
2126
  b.l = {ma:(c, d) => {
2119
- var e = Ib(+d);
2127
+ var e = Jb(+d);
2120
2128
  c = {parent:null, T:{gb:"fake"}, l:{na:() => e.path},};
2121
2129
  return c.parent = c;
2122
2130
  }};
2123
2131
  return b;
2124
2132
  }}, "/proc/self/fd");
2125
2133
  })();
2126
- Object.assign($b.prototype, {get(a) {
2134
+ Object.assign(ac.prototype, {get(a) {
2127
2135
  return this.M[a];
2128
2136
  }, has(a) {
2129
2137
  return void 0 !== this.M[a];
@@ -2135,7 +2143,7 @@ Object.assign($b.prototype, {get(a) {
2135
2143
  this.M[a] = void 0;
2136
2144
  this.bb.push(a);
2137
2145
  }});
2138
- ac = n.BindingError = class extends Error {
2146
+ bc = n.BindingError = class extends Error {
2139
2147
  constructor(a) {
2140
2148
  super(a);
2141
2149
  this.name = "BindingError";
@@ -2149,34 +2157,34 @@ n.count_emval_handles = function() {
2149
2157
  }
2150
2158
  return a;
2151
2159
  };
2152
- dc = n.PureVirtualError = cc("PureVirtualError");
2153
- for (var Rd = Array(256), Sd = 0; 256 > Sd; ++Sd) {
2154
- Rd[Sd] = String.fromCharCode(Sd);
2160
+ ec = n.PureVirtualError = dc("PureVirtualError");
2161
+ for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
2162
+ Sd[Td] = String.fromCharCode(Td);
2155
2163
  }
2156
- ec = Rd;
2164
+ fc = Sd;
2157
2165
  n.getInheritedInstanceCount = function() {
2158
- return Object.keys(ic).length;
2166
+ return Object.keys(jc).length;
2159
2167
  };
2160
2168
  n.getLiveInheritedInstances = function() {
2161
2169
  var a = [], b;
2162
- for (b in ic) {
2163
- ic.hasOwnProperty(b) && a.push(ic[b]);
2170
+ for (b in jc) {
2171
+ jc.hasOwnProperty(b) && a.push(jc[b]);
2164
2172
  }
2165
2173
  return a;
2166
2174
  };
2167
- n.flushPendingDeletes = gc;
2175
+ n.flushPendingDeletes = hc;
2168
2176
  n.setDelayFunction = function(a) {
2169
- hc = a;
2170
- fc.length && hc && hc(gc);
2177
+ ic = a;
2178
+ gc.length && ic && ic(hc);
2171
2179
  };
2172
- vc = n.InternalError = class extends Error {
2180
+ wc = n.InternalError = class extends Error {
2173
2181
  constructor(a) {
2174
2182
  super(a);
2175
2183
  this.name = "InternalError";
2176
2184
  }
2177
2185
  };
2178
- Hc.prototype.isAliasOf = function(a) {
2179
- if (!(this instanceof Hc && a instanceof Hc)) {
2186
+ Ic.prototype.isAliasOf = function(a) {
2187
+ if (!(this instanceof Ic && a instanceof Ic)) {
2180
2188
  return !1;
2181
2189
  }
2182
2190
  var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
@@ -2188,58 +2196,58 @@ Hc.prototype.isAliasOf = function(a) {
2188
2196
  }
2189
2197
  return b === d && c === a;
2190
2198
  };
2191
- Hc.prototype.clone = function() {
2192
- this.g.o || Gc(this);
2199
+ Ic.prototype.clone = function() {
2200
+ this.g.o || Hc(this);
2193
2201
  if (this.g.ja) {
2194
2202
  return this.g.count.value += 1, this;
2195
2203
  }
2196
- var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2204
+ var a = zc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2197
2205
  a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
2198
2206
  a.g.count.value += 1;
2199
2207
  a.g.ga = !1;
2200
2208
  return a;
2201
2209
  };
2202
- Hc.prototype["delete"] = function() {
2203
- this.g.o || Gc(this);
2210
+ Ic.prototype["delete"] = function() {
2211
+ this.g.o || Hc(this);
2204
2212
  this.g.ga && !this.g.ja && P("Object already scheduled for deletion");
2205
- pc(this);
2206
- rc(this.g);
2213
+ qc(this);
2214
+ sc(this.g);
2207
2215
  this.g.ja || (this.g.G = void 0, this.g.o = void 0);
2208
2216
  };
2209
- Hc.prototype.isDeleted = function() {
2217
+ Ic.prototype.isDeleted = function() {
2210
2218
  return !this.g.o;
2211
2219
  };
2212
- Hc.prototype.deleteLater = function() {
2213
- this.g.o || Gc(this);
2220
+ Ic.prototype.deleteLater = function() {
2221
+ this.g.o || Hc(this);
2214
2222
  this.g.ga && !this.g.ja && P("Object already scheduled for deletion");
2215
- fc.push(this);
2216
- 1 === fc.length && hc && hc(gc);
2223
+ gc.push(this);
2224
+ 1 === gc.length && ic && ic(hc);
2217
2225
  this.g.ga = !0;
2218
2226
  return this;
2219
2227
  };
2220
- Qc.prototype.Mb = function(a) {
2228
+ Rc.prototype.Mb = function(a) {
2221
2229
  this.mb && (a = this.mb(a));
2222
2230
  return a;
2223
2231
  };
2224
- Qc.prototype.Xa = function(a) {
2232
+ Rc.prototype.Xa = function(a) {
2225
2233
  this.V && this.V(a);
2226
2234
  };
2227
- Qc.prototype.argPackAdvance = 8;
2228
- Qc.prototype.readValueFromPointer = Bc;
2229
- Qc.prototype.deleteObject = function(a) {
2235
+ Rc.prototype.argPackAdvance = 8;
2236
+ Rc.prototype.readValueFromPointer = Cc;
2237
+ Rc.prototype.deleteObject = function(a) {
2230
2238
  if (null !== a) {
2231
2239
  a["delete"]();
2232
2240
  }
2233
2241
  };
2234
- Qc.prototype.fromWireType = function(a) {
2242
+ Rc.prototype.fromWireType = function(a) {
2235
2243
  function b() {
2236
- return this.ya ? xc(this.i.N, {u:this.$b, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
2244
+ return this.ya ? yc(this.i.N, {u:this.$b, o:c, L:this, G:a,}) : yc(this.i.N, {u:this, o:a,});
2237
2245
  }
2238
2246
  var c = this.Mb(a);
2239
2247
  if (!c) {
2240
2248
  return this.Xa(a), null;
2241
2249
  }
2242
- var d = uc(this.i, c);
2250
+ var d = vc(this.i, c);
2243
2251
  if (void 0 !== d) {
2244
2252
  if (0 === d.g.count.value) {
2245
2253
  return d.g.o = c, d.g.G = a, d.clone();
@@ -2249,35 +2257,35 @@ Qc.prototype.fromWireType = function(a) {
2249
2257
  return d;
2250
2258
  }
2251
2259
  d = this.i.Lb(c);
2252
- d = tc[d];
2260
+ d = uc[d];
2253
2261
  if (!d) {
2254
2262
  return b.call(this);
2255
2263
  }
2256
2264
  d = this.xa ? d.Db : d.pointerType;
2257
- var e = sc(c, this.i, d.i);
2258
- return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
2265
+ var e = tc(c, this.i, d.i);
2266
+ return null === e ? b.call(this) : this.ya ? yc(d.i.N, {u:d, o:e, L:this, G:a,}) : yc(d.i.N, {u:d, o:e,});
2259
2267
  };
2260
- Vc = n.UnboundTypeError = cc("UnboundTypeError");
2261
- for (var Z, Td = 0; 32 > Td; ++Td) {
2262
- Hd.push(Array(Td));
2268
+ Wc = n.UnboundTypeError = dc("UnboundTypeError");
2269
+ for (var Y, Ud = 0; 32 > Ud; ++Ud) {
2270
+ Id.push(Array(Ud));
2263
2271
  }
2264
- var Vd = {__syscall_fcntl64:function(a, b, c) {
2265
- Wb = c;
2272
+ var Wd = {__syscall_fcntl64:function(a, b, c) {
2273
+ Xb = c;
2266
2274
  try {
2267
- var d = Ib(a);
2275
+ var d = Jb(a);
2268
2276
  switch(b) {
2269
2277
  case 0:
2270
- var e = Xb();
2271
- return 0 > e ? -28 : Kb(d, e).W;
2278
+ var e = Yb();
2279
+ return 0 > e ? -28 : Lb(d, e).W;
2272
2280
  case 1:
2273
2281
  case 2:
2274
2282
  return 0;
2275
2283
  case 3:
2276
2284
  return d.flags;
2277
2285
  case 4:
2278
- return e = Xb(), d.flags |= e, 0;
2286
+ return e = Yb(), d.flags |= e, 0;
2279
2287
  case 5:
2280
- return e = Xb(), H[e + 0 >> 1] = 2, 0;
2288
+ return e = Yb(), G[e + 0 >> 1] = 2, 0;
2281
2289
  case 6:
2282
2290
  case 7:
2283
2291
  return 0;
@@ -2285,20 +2293,20 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2285
2293
  case 8:
2286
2294
  return -28;
2287
2295
  case 9:
2288
- return I[Ud() >> 2] = 28, -1;
2296
+ return I[Vd() >> 2] = 28, -1;
2289
2297
  default:
2290
2298
  return -28;
2291
2299
  }
2292
2300
  } catch (f) {
2293
- if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
2301
+ if ("undefined" == typeof Wb || "ErrnoError" !== f.name) {
2294
2302
  throw f;
2295
2303
  }
2296
2304
  return -f.$;
2297
2305
  }
2298
2306
  }, __syscall_ioctl:function(a, b, c) {
2299
- Wb = c;
2307
+ Xb = c;
2300
2308
  try {
2301
- var d = Ib(a);
2309
+ var d = Jb(a);
2302
2310
  switch(b) {
2303
2311
  case 21509:
2304
2312
  return d.s ? 0 : -59;
@@ -2308,13 +2316,13 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2308
2316
  }
2309
2317
  if (d.s.U.Ub) {
2310
2318
  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,];
2311
- var e = Xb();
2319
+ var e = Yb();
2312
2320
  I[e >> 2] = 25856;
2313
2321
  I[e + 4 >> 2] = 5;
2314
2322
  I[e + 8 >> 2] = 191;
2315
2323
  I[e + 12 >> 2] = 35387;
2316
2324
  for (var f = 0; 32 > f; f++) {
2317
- C[e + f + 17 >> 0] = b[f] || 0;
2325
+ A[e + f + 17 >> 0] = b[f] || 0;
2318
2326
  }
2319
2327
  }
2320
2328
  return 0;
@@ -2329,8 +2337,8 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2329
2337
  return -59;
2330
2338
  }
2331
2339
  if (d.s.U.Vb) {
2332
- for (e = Xb(), b = [], f = 0; 32 > f; f++) {
2333
- b.push(C[e + f + 17 >> 0]);
2340
+ for (e = Yb(), b = [], f = 0; 32 > f; f++) {
2341
+ b.push(A[e + f + 17 >> 0]);
2334
2342
  }
2335
2343
  }
2336
2344
  return 0;
@@ -2338,12 +2346,12 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2338
2346
  if (!d.s) {
2339
2347
  return -59;
2340
2348
  }
2341
- e = Xb();
2349
+ e = Yb();
2342
2350
  return I[e >> 2] = 0;
2343
2351
  case 21520:
2344
2352
  return d.s ? -28 : -59;
2345
2353
  case 21531:
2346
- e = Xb();
2354
+ e = Yb();
2347
2355
  if (!d.m.Tb) {
2348
2356
  throw new L(59);
2349
2357
  }
@@ -2352,7 +2360,7 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2352
2360
  if (!d.s) {
2353
2361
  return -59;
2354
2362
  }
2355
- d.s.U.Wb && (f = [24, 80], e = Xb(), H[e >> 1] = f[0], H[e + 2 >> 1] = f[1]);
2363
+ d.s.U.Wb && (f = [24, 80], e = Yb(), G[e >> 1] = f[0], G[e + 2 >> 1] = f[1]);
2356
2364
  return 0;
2357
2365
  case 21524:
2358
2366
  return d.s ? 0 : -59;
@@ -2362,42 +2370,42 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2362
2370
  return -28;
2363
2371
  }
2364
2372
  } catch (g) {
2365
- if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
2373
+ if ("undefined" == typeof Wb || "ErrnoError" !== g.name) {
2366
2374
  throw g;
2367
2375
  }
2368
2376
  return -g.$;
2369
2377
  }
2370
2378
  }, __syscall_openat:function(a, b, c, d) {
2371
- Wb = d;
2379
+ Xb = d;
2372
2380
  try {
2373
- b = b ? K(G, b) : "";
2381
+ b = b ? K(C, b) : "";
2374
2382
  var e = b;
2375
2383
  if ("/" === e.charAt(0)) {
2376
2384
  b = e;
2377
2385
  } else {
2378
- var f = -100 === a ? "/" : Ib(a).path;
2386
+ var f = -100 === a ? "/" : Jb(a).path;
2379
2387
  if (0 == e.length) {
2380
2388
  throw new L(44);
2381
2389
  }
2382
- b = Wa(f + "/" + e);
2390
+ b = Xa(f + "/" + e);
2383
2391
  }
2384
- var g = d ? Xb() : 0;
2385
- return Pb(b, c, g).W;
2392
+ var g = d ? Yb() : 0;
2393
+ return Qb(b, c, g).W;
2386
2394
  } catch (m) {
2387
- if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
2395
+ if ("undefined" == typeof Wb || "ErrnoError" !== m.name) {
2388
2396
  throw m;
2389
2397
  }
2390
2398
  return -m.$;
2391
2399
  }
2392
2400
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2393
2401
  a = R(a);
2394
- b = oc(b, "wrapper");
2402
+ b = pc(b, "wrapper");
2395
2403
  c = Q(c);
2396
2404
  var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
2397
- a = Zb(a, function() {
2405
+ a = $b(a, function() {
2398
2406
  e.A.kb.forEach(function(l) {
2399
2407
  if (this[l] === g[l]) {
2400
- throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
2408
+ throw new ec(`Pure virtual function ${l} must be implemented in JavaScript`);
2401
2409
  }
2402
2410
  }.bind(this));
2403
2411
  Object.defineProperty(this, "__parent", {value:f});
@@ -2406,66 +2414,66 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2406
2414
  f.__construct = function() {
2407
2415
  this === f && P("Pass correct 'this' to __construct");
2408
2416
  var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
2409
- pc(l);
2410
- var u = l.g;
2417
+ qc(l);
2418
+ var t = l.g;
2411
2419
  l.notifyOnDestruction();
2412
- u.ja = !0;
2413
- Object.defineProperties(this, {g:{value:u}});
2414
- yc(this);
2415
- l = u.o;
2416
- l = jc(e, l);
2417
- ic.hasOwnProperty(l) ? P(`Tried to register registered instance: ${l}`) : ic[l] = this;
2420
+ t.ja = !0;
2421
+ Object.defineProperties(this, {g:{value:t}});
2422
+ zc(this);
2423
+ l = t.o;
2424
+ l = kc(e, l);
2425
+ jc.hasOwnProperty(l) ? P(`Tried to register registered instance: ${l}`) : jc[l] = this;
2418
2426
  };
2419
2427
  f.__destruct = function() {
2420
2428
  this === f && P("Pass correct 'this' to __destruct");
2421
- pc(this);
2429
+ qc(this);
2422
2430
  var l = this.g.o;
2423
- l = jc(e, l);
2424
- ic.hasOwnProperty(l) ? delete ic[l] : P(`Tried to unregister unregistered instance: ${l}`);
2431
+ l = kc(e, l);
2432
+ jc.hasOwnProperty(l) ? delete jc[l] : P(`Tried to unregister unregistered instance: ${l}`);
2425
2433
  };
2426
2434
  a.prototype = Object.create(f);
2427
2435
  for (var p in c) {
2428
2436
  a.prototype[p] = c[p];
2429
2437
  }
2430
- return bc(a);
2438
+ return cc(a);
2431
2439
  }, _embind_finalize_value_object:function(a) {
2432
- var b = zc[a];
2433
- delete zc[a];
2440
+ var b = Ac[a];
2441
+ delete Ac[a];
2434
2442
  var c = b.Pa, d = b.V, e = b.Za, f = e.map(g => g.Pb).concat(e.map(g => g.dc));
2435
2443
  S([a], f, g => {
2436
2444
  var m = {};
2437
2445
  e.forEach((p, l) => {
2438
- var u = g[l], v = p.Nb, q = p.Ob, k = g[l + e.length], r = p.cc, w = p.ec;
2439
- m[p.Jb] = {read:y => u.fromWireType(v(q, y)), write:(y, E) => {
2440
- var z = [];
2441
- r(w, y, k.toWireType(z, E));
2442
- Ac(z);
2446
+ var t = g[l], u = p.Nb, x = p.Ob, k = g[l + e.length], q = p.cc, v = p.ec;
2447
+ m[p.Jb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
2448
+ var D = [];
2449
+ q(v, y, k.toWireType(D, B));
2450
+ Bc(D);
2443
2451
  }};
2444
2452
  });
2445
2453
  return [{name:b.name, fromWireType:function(p) {
2446
- var l = {}, u;
2447
- for (u in m) {
2448
- l[u] = m[u].read(p);
2454
+ var l = {}, t;
2455
+ for (t in m) {
2456
+ l[t] = m[t].read(p);
2449
2457
  }
2450
2458
  d(p);
2451
2459
  return l;
2452
2460
  }, toWireType:function(p, l) {
2453
- for (var u in m) {
2454
- if (!(u in l)) {
2455
- throw new TypeError(`Missing field: "${u}"`);
2461
+ for (var t in m) {
2462
+ if (!(t in l)) {
2463
+ throw new TypeError(`Missing field: "${t}"`);
2456
2464
  }
2457
2465
  }
2458
- var v = c();
2459
- for (u in m) {
2460
- m[u].write(v, l[u]);
2466
+ var u = c();
2467
+ for (t in m) {
2468
+ m[t].write(u, l[t]);
2461
2469
  }
2462
- null !== p && p.push(d, v);
2463
- return v;
2464
- }, argPackAdvance:8, readValueFromPointer:Bc, K:d,}];
2470
+ null !== p && p.push(d, u);
2471
+ return u;
2472
+ }, argPackAdvance:8, readValueFromPointer:Cc, K:d,}];
2465
2473
  });
2466
2474
  }, _embind_register_bigint:function() {
2467
2475
  }, _embind_register_bool:function(a, b, c, d, e) {
2468
- var f = Ec(c);
2476
+ var f = Fc(c);
2469
2477
  b = R(b);
2470
2478
  T(a, {name:b, fromWireType:function(g) {
2471
2479
  return !!g;
@@ -2473,9 +2481,9 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2473
2481
  return m ? d : e;
2474
2482
  }, argPackAdvance:8, readValueFromPointer:function(g) {
2475
2483
  if (1 === c) {
2476
- var m = C;
2484
+ var m = A;
2477
2485
  } else if (2 === c) {
2478
- m = H;
2486
+ m = G;
2479
2487
  } else if (4 === c) {
2480
2488
  m = I;
2481
2489
  } else {
@@ -2483,67 +2491,67 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2483
2491
  }
2484
2492
  return this.fromWireType(m[g >> f]);
2485
2493
  }, K:null,});
2486
- }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, q) {
2487
- u = R(u);
2494
+ }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
2495
+ t = R(t);
2488
2496
  f = U(e, f);
2489
2497
  m && (m = U(g, m));
2490
2498
  l && (l = U(p, l));
2491
- q = U(v, q);
2492
- var k = Yb(u);
2493
- Jc(k, function() {
2494
- Wc(`Cannot construct ${u} due to unbound types`, [d]);
2499
+ x = U(u, x);
2500
+ var k = Zb(t);
2501
+ Kc(k, function() {
2502
+ Xc(`Cannot construct ${t} due to unbound types`, [d]);
2495
2503
  });
2496
- S([a, b, c], d ? [d] : [], function(r) {
2497
- r = r[0];
2504
+ S([a, b, c], d ? [d] : [], function(q) {
2505
+ q = q[0];
2498
2506
  if (d) {
2499
- var w = r.i;
2500
- var y = w.N;
2507
+ var v = q.i;
2508
+ var y = v.N;
2501
2509
  } else {
2502
- y = Hc.prototype;
2510
+ y = Ic.prototype;
2503
2511
  }
2504
- r = Zb(k, function() {
2505
- if (Object.getPrototypeOf(this) !== E) {
2506
- throw new ac("Use 'new' to construct " + u);
2512
+ q = $b(k, function() {
2513
+ if (Object.getPrototypeOf(this) !== B) {
2514
+ throw new bc("Use 'new' to construct " + t);
2507
2515
  }
2508
- if (void 0 === z.Z) {
2509
- throw new ac(u + " has no accessible constructor");
2516
+ if (void 0 === D.Z) {
2517
+ throw new bc(t + " has no accessible constructor");
2510
2518
  }
2511
- var D = z.Z[arguments.length];
2512
- if (void 0 === D) {
2513
- throw new ac(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(z.Z).toString()}) parameters instead!`);
2519
+ var H = D.Z[arguments.length];
2520
+ if (void 0 === H) {
2521
+ throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D.Z).toString()}) parameters instead!`);
2514
2522
  }
2515
- return D.apply(this, arguments);
2523
+ return H.apply(this, arguments);
2516
2524
  });
2517
- var E = Object.create(y, {constructor:{value:r},});
2518
- r.prototype = E;
2519
- var z = new Kc(u, r, E, q, w, f, m, l);
2520
- z.A && (void 0 === z.A.qa && (z.A.qa = []), z.A.qa.push(z));
2521
- w = new Qc(u, z, !0, !1);
2522
- y = new Qc(u + "*", z, !1, !1);
2523
- var F = new Qc(u + " const*", z, !1, !0);
2524
- tc[a] = {pointerType:y, Db:F};
2525
- Rc(k, r);
2526
- return [w, y, F];
2525
+ var B = Object.create(y, {constructor:{value:q},});
2526
+ q.prototype = B;
2527
+ var D = new Lc(t, q, B, x, v, f, m, l);
2528
+ D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
2529
+ v = new Rc(t, D, !0, !1);
2530
+ y = new Rc(t + "*", D, !1, !1);
2531
+ var E = new Rc(t + " const*", D, !1, !0);
2532
+ uc[a] = {pointerType:y, Db:E};
2533
+ Sc(k, q);
2534
+ return [v, y, E];
2527
2535
  });
2528
2536
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2529
- var m = Yc(c, d);
2537
+ var m = Zc(c, d);
2530
2538
  b = R(b);
2531
2539
  f = U(e, f);
2532
2540
  S([], [a], function(p) {
2533
2541
  function l() {
2534
- Wc(`Cannot call ${u} due to unbound types`, m);
2542
+ Xc(`Cannot call ${t} due to unbound types`, m);
2535
2543
  }
2536
2544
  p = p[0];
2537
- var u = `${p.name}.${b}`;
2545
+ var t = `${p.name}.${b}`;
2538
2546
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2539
- var v = p.i.constructor;
2540
- void 0 === v[b] ? (l.fa = c - 1, v[b] = l) : (Ic(v, b, u), v[b].B[c - 1] = l);
2541
- S([], m, function(q) {
2542
- q = Xc(u, [q[0], null].concat(q.slice(1)), null, f, g);
2543
- void 0 === v[b].B ? (q.fa = c - 1, v[b] = q) : v[b].B[c - 1] = q;
2547
+ var u = p.i.constructor;
2548
+ void 0 === u[b] ? (l.fa = c - 1, u[b] = l) : (Jc(u, b, t), u[b].B[c - 1] = l);
2549
+ S([], m, function(x) {
2550
+ x = Yc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2551
+ void 0 === u[b].B ? (x.fa = c - 1, u[b] = x) : u[b].B[c - 1] = x;
2544
2552
  if (p.i.qa) {
2545
2553
  for (const k of p.i.qa) {
2546
- k.constructor.hasOwnProperty(b) || (k.constructor[b] = q);
2554
+ k.constructor.hasOwnProperty(b) || (k.constructor[b] = x);
2547
2555
  }
2548
2556
  }
2549
2557
  return [];
@@ -2555,67 +2563,67 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2555
2563
  f = U(e, f);
2556
2564
  S([], [a], function(p) {
2557
2565
  p = p[0];
2558
- var l = `${p.name}.${b}`, u = {get() {
2559
- Wc(`Cannot access ${l} due to unbound types`, [c]);
2566
+ var l = `${p.name}.${b}`, t = {get() {
2567
+ Xc(`Cannot access ${l} due to unbound types`, [c]);
2560
2568
  }, enumerable:!0, configurable:!0};
2561
- u.set = m ? () => {
2562
- Wc(`Cannot access ${l} due to unbound types`, [c]);
2569
+ t.set = m ? () => {
2570
+ Xc(`Cannot access ${l} due to unbound types`, [c]);
2563
2571
  } : () => {
2564
2572
  P(`${l} is a read-only property`);
2565
2573
  };
2566
- Object.defineProperty(p.i.constructor, b, u);
2567
- S([], [c], function(v) {
2568
- v = v[0];
2569
- var q = {get() {
2570
- return v.fromWireType(f(d));
2574
+ Object.defineProperty(p.i.constructor, b, t);
2575
+ S([], [c], function(u) {
2576
+ u = u[0];
2577
+ var x = {get() {
2578
+ return u.fromWireType(f(d));
2571
2579
  }, enumerable:!0};
2572
- m && (m = U(g, m), q.set = k => {
2573
- var r = [];
2574
- m(d, v.toWireType(r, k));
2575
- Ac(r);
2580
+ m && (m = U(g, m), x.set = k => {
2581
+ var q = [];
2582
+ m(d, u.toWireType(q, k));
2583
+ Bc(q);
2576
2584
  });
2577
- Object.defineProperty(p.i.constructor, b, q);
2585
+ Object.defineProperty(p.i.constructor, b, x);
2578
2586
  return [];
2579
2587
  });
2580
2588
  return [];
2581
2589
  });
2582
2590
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2583
- var g = Yc(b, c);
2591
+ var g = Zc(b, c);
2584
2592
  e = U(d, e);
2585
2593
  S([], [a], function(m) {
2586
2594
  m = m[0];
2587
2595
  var p = `constructor ${m.name}`;
2588
2596
  void 0 === m.i.Z && (m.i.Z = []);
2589
2597
  if (void 0 !== m.i.Z[b - 1]) {
2590
- throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2598
+ throw new bc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2591
2599
  }
2592
2600
  m.i.Z[b - 1] = () => {
2593
- Wc(`Cannot construct ${m.name} due to unbound types`, g);
2601
+ Xc(`Cannot construct ${m.name} due to unbound types`, g);
2594
2602
  };
2595
2603
  S([], g, function(l) {
2596
2604
  l.splice(1, 0, null);
2597
- m.i.Z[b - 1] = Xc(p, l, null, e, f);
2605
+ m.i.Z[b - 1] = Yc(p, l, null, e, f);
2598
2606
  return [];
2599
2607
  });
2600
2608
  return [];
2601
2609
  });
2602
2610
  }, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
2603
- var p = Yc(c, d);
2611
+ var p = Zc(c, d);
2604
2612
  b = R(b);
2605
2613
  f = U(e, f);
2606
2614
  S([], [a], function(l) {
2607
- function u() {
2608
- Wc(`Cannot call ${v} due to unbound types`, p);
2615
+ function t() {
2616
+ Xc(`Cannot call ${u} due to unbound types`, p);
2609
2617
  }
2610
2618
  l = l[0];
2611
- var v = `${l.name}.${b}`;
2619
+ var u = `${l.name}.${b}`;
2612
2620
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2613
2621
  m && l.i.kb.push(b);
2614
- var q = l.i.N, k = q[b];
2615
- void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (u.fa = c - 2, u.className = l.name, q[b] = u) : (Ic(q, b, v), q[b].B[c - 2] = u);
2616
- S([], p, function(r) {
2617
- r = Xc(v, r, l, f, g);
2618
- void 0 === q[b].B ? (r.fa = c - 2, q[b] = r) : q[b].B[c - 2] = r;
2622
+ var x = l.i.N, k = x[b];
2623
+ void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (t.fa = c - 2, t.className = l.name, x[b] = t) : (Jc(x, b, u), x[b].B[c - 2] = t);
2624
+ S([], p, function(q) {
2625
+ q = Yc(u, q, l, f, g);
2626
+ void 0 === x[b].B ? (q.fa = c - 2, x[b] = q) : x[b].B[c - 2] = q;
2619
2627
  return [];
2620
2628
  });
2621
2629
  return [];
@@ -2623,32 +2631,32 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2623
2631
  }, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
2624
2632
  b = R(b);
2625
2633
  e = U(d, e);
2626
- S([], [a], function(u) {
2627
- u = u[0];
2628
- var v = `${u.name}.${b}`, q = {get() {
2629
- Wc(`Cannot access ${v} due to unbound types`, [c, g]);
2634
+ S([], [a], function(t) {
2635
+ t = t[0];
2636
+ var u = `${t.name}.${b}`, x = {get() {
2637
+ Xc(`Cannot access ${u} due to unbound types`, [c, g]);
2630
2638
  }, enumerable:!0, configurable:!0};
2631
- q.set = p ? () => {
2632
- Wc(`Cannot access ${v} due to unbound types`, [c, g]);
2639
+ x.set = p ? () => {
2640
+ Xc(`Cannot access ${u} due to unbound types`, [c, g]);
2633
2641
  } : () => {
2634
- P(v + " is a read-only property");
2642
+ P(u + " is a read-only property");
2635
2643
  };
2636
- Object.defineProperty(u.i.N, b, q);
2644
+ Object.defineProperty(t.i.N, b, x);
2637
2645
  S([], p ? [c, g] : [c], function(k) {
2638
- var r = k[0], w = {get() {
2639
- var E = Zc(this, u, v + " getter");
2640
- return r.fromWireType(e(f, E));
2646
+ var q = k[0], v = {get() {
2647
+ var B = $c(this, t, u + " getter");
2648
+ return q.fromWireType(e(f, B));
2641
2649
  }, enumerable:!0};
2642
2650
  if (p) {
2643
2651
  p = U(m, p);
2644
2652
  var y = k[1];
2645
- w.set = function(E) {
2646
- var z = Zc(this, u, v + " setter"), F = [];
2647
- p(l, z, y.toWireType(F, E));
2648
- Ac(F);
2653
+ v.set = function(B) {
2654
+ var D = $c(this, t, u + " setter"), E = [];
2655
+ p(l, D, y.toWireType(E, B));
2656
+ Bc(E);
2649
2657
  };
2650
2658
  }
2651
- Object.defineProperty(u.i.N, b, w);
2659
+ Object.defineProperty(t.i.N, b, v);
2652
2660
  return [];
2653
2661
  });
2654
2662
  return [];
@@ -2657,54 +2665,54 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2657
2665
  b = R(b);
2658
2666
  T(a, {name:b, fromWireType:function(c) {
2659
2667
  var d = Q(c);
2660
- $c(c);
2668
+ ad(c);
2661
2669
  return d;
2662
2670
  }, toWireType:function(c, d) {
2663
- return bc(d);
2664
- }, argPackAdvance:8, readValueFromPointer:Bc, K:null,});
2671
+ return cc(d);
2672
+ }, argPackAdvance:8, readValueFromPointer:Cc, K:null,});
2665
2673
  }, _embind_register_enum:function(a, b, c, d) {
2666
2674
  function e() {
2667
2675
  }
2668
- c = Ec(c);
2676
+ c = Fc(c);
2669
2677
  b = R(b);
2670
2678
  e.values = {};
2671
2679
  T(a, {name:b, constructor:e, fromWireType:function(f) {
2672
2680
  return this.constructor.values[f];
2673
2681
  }, toWireType:function(f, g) {
2674
2682
  return g.value;
2675
- }, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
2676
- Jc(b, e);
2683
+ }, argPackAdvance:8, readValueFromPointer:bd(b, c, d), K:null,});
2684
+ Kc(b, e);
2677
2685
  }, _embind_register_enum_value:function(a, b, c) {
2678
- var d = oc(a, "enum");
2686
+ var d = pc(a, "enum");
2679
2687
  b = R(b);
2680
2688
  a = d.constructor;
2681
- d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
2689
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:$b(`${d.name}_${b}`, function() {
2682
2690
  })},});
2683
2691
  a.values[c] = d;
2684
2692
  a[b] = d;
2685
2693
  }, _embind_register_float:function(a, b, c) {
2686
- c = Ec(c);
2694
+ c = Fc(c);
2687
2695
  b = R(b);
2688
2696
  T(a, {name:b, fromWireType:function(d) {
2689
2697
  return d;
2690
2698
  }, toWireType:function(d, e) {
2691
2699
  return e;
2692
- }, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
2700
+ }, argPackAdvance:8, readValueFromPointer:cd(b, c), K:null,});
2693
2701
  }, _embind_register_function:function(a, b, c, d, e, f) {
2694
- var g = Yc(b, c);
2702
+ var g = Zc(b, c);
2695
2703
  a = R(a);
2696
2704
  e = U(d, e);
2697
- Jc(a, function() {
2698
- Wc(`Cannot call ${a} due to unbound types`, g);
2705
+ Kc(a, function() {
2706
+ Xc(`Cannot call ${a} due to unbound types`, g);
2699
2707
  }, b - 1);
2700
2708
  S([], g, function(m) {
2701
- Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2709
+ Sc(a, Yc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2702
2710
  return [];
2703
2711
  });
2704
2712
  }, _embind_register_integer:function(a, b, c, d, e) {
2705
2713
  b = R(b);
2706
2714
  -1 === e && (e = 4294967295);
2707
- e = Ec(c);
2715
+ e = Fc(c);
2708
2716
  var f = m => m;
2709
2717
  if (0 === d) {
2710
2718
  var g = 32 - 8 * c;
@@ -2715,7 +2723,7 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2715
2723
  } : function(m, p) {
2716
2724
  return p;
2717
2725
  };
2718
- T(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
2726
+ T(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), K:null,});
2719
2727
  }, _embind_register_memory_view:function(a, b, c) {
2720
2728
  function d(f) {
2721
2729
  f >>= 2;
@@ -2733,8 +2741,8 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2733
2741
  if (c) {
2734
2742
  for (var g = f, m = 0; m <= e; ++m) {
2735
2743
  var p = f + m;
2736
- if (m == e || 0 == G[p]) {
2737
- g = g ? K(G, g, p - g) : "";
2744
+ if (m == e || 0 == C[p]) {
2745
+ g = g ? K(C, g, p - g) : "";
2738
2746
  if (void 0 === l) {
2739
2747
  var l = g;
2740
2748
  } else {
@@ -2746,73 +2754,73 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2746
2754
  } else {
2747
2755
  l = Array(e);
2748
2756
  for (m = 0; m < e; ++m) {
2749
- l[m] = String.fromCharCode(G[f + m]);
2757
+ l[m] = String.fromCharCode(C[f + m]);
2750
2758
  }
2751
2759
  l = l.join("");
2752
2760
  }
2753
- nc(d);
2761
+ oc(d);
2754
2762
  return l;
2755
2763
  }, toWireType:function(d, e) {
2756
2764
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
2757
2765
  var f = "string" == typeof e;
2758
2766
  f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || P("Cannot pass non-string to std::string");
2759
- var g = c && f ? db(e) : e.length;
2760
- var m = Kd(4 + g + 1), p = m + 4;
2767
+ var g = c && f ? eb(e) : e.length;
2768
+ var m = Ld(4 + g + 1), p = m + 4;
2761
2769
  J[m >> 2] = g;
2762
2770
  if (c && f) {
2763
- eb(e, G, p, g + 1);
2771
+ fb(e, C, p, g + 1);
2764
2772
  } else {
2765
2773
  if (f) {
2766
2774
  for (f = 0; f < g; ++f) {
2767
2775
  var l = e.charCodeAt(f);
2768
- 255 < l && (nc(p), P("String has UTF-16 code units that do not fit in 8 bits"));
2769
- G[p + f] = l;
2776
+ 255 < l && (oc(p), P("String has UTF-16 code units that do not fit in 8 bits"));
2777
+ C[p + f] = l;
2770
2778
  }
2771
2779
  } else {
2772
2780
  for (f = 0; f < g; ++f) {
2773
- G[p + f] = e[f];
2781
+ C[p + f] = e[f];
2774
2782
  }
2775
2783
  }
2776
2784
  }
2777
- null !== d && d.push(nc, m);
2785
+ null !== d && d.push(oc, m);
2778
2786
  return m;
2779
- }, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
2780
- nc(d);
2787
+ }, argPackAdvance:8, readValueFromPointer:Cc, K:function(d) {
2788
+ oc(d);
2781
2789
  },});
2782
2790
  }, _embind_register_std_wstring:function(a, b, c) {
2783
2791
  c = R(c);
2784
2792
  if (2 === b) {
2785
- var d = ed;
2786
- var e = fd;
2787
- var f = gd;
2788
- var g = () => va;
2793
+ var d = fd;
2794
+ var e = gd;
2795
+ var f = hd;
2796
+ var g = () => wa;
2789
2797
  var m = 1;
2790
2798
  } else {
2791
- 4 === b && (d = hd, e = jd, f = kd, g = () => J, m = 2);
2799
+ 4 === b && (d = jd, e = kd, f = ld, g = () => J, m = 2);
2792
2800
  }
2793
2801
  T(a, {name:c, fromWireType:function(p) {
2794
- for (var l = J[p >> 2], u = g(), v, q = p + 4, k = 0; k <= l; ++k) {
2795
- var r = p + 4 + k * b;
2796
- if (k == l || 0 == u[r >> m]) {
2797
- q = d(q, r - q), void 0 === v ? v = q : (v += String.fromCharCode(0), v += q), q = r + b;
2802
+ for (var l = J[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
2803
+ var q = p + 4 + k * b;
2804
+ if (k == l || 0 == t[q >> m]) {
2805
+ x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
2798
2806
  }
2799
2807
  }
2800
- nc(p);
2801
- return v;
2808
+ oc(p);
2809
+ return u;
2802
2810
  }, toWireType:function(p, l) {
2803
2811
  "string" != typeof l && P(`Cannot pass non-string to C++ string type ${c}`);
2804
- var u = f(l), v = Kd(4 + u + b);
2805
- J[v >> 2] = u >> m;
2806
- e(l, v + 4, u + b);
2807
- null !== p && p.push(nc, v);
2808
- return v;
2809
- }, argPackAdvance:8, readValueFromPointer:Bc, K:function(p) {
2810
- nc(p);
2812
+ var t = f(l), u = Ld(4 + t + b);
2813
+ J[u >> 2] = t >> m;
2814
+ e(l, u + 4, t + b);
2815
+ null !== p && p.push(oc, u);
2816
+ return u;
2817
+ }, argPackAdvance:8, readValueFromPointer:Cc, K:function(p) {
2818
+ oc(p);
2811
2819
  },});
2812
2820
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2813
- zc[a] = {name:R(b), Pa:U(c, d), V:U(e, f), Za:[],};
2821
+ Ac[a] = {name:R(b), Pa:U(c, d), V:U(e, f), Za:[],};
2814
2822
  }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
2815
- zc[a].Za.push({Jb:R(b), Pb:c, Nb:U(d, e), Ob:f, dc:g, cc:U(m, p), ec:l,});
2823
+ Ac[a].Za.push({Jb:R(b), Pb:c, Nb:U(d, e), Ob:f, dc:g, cc:U(m, p), ec:l,});
2816
2824
  }, _embind_register_void:function(a, b) {
2817
2825
  b = R(b);
2818
2826
  T(a, {Xb:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -2820,88 +2828,88 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2820
2828
  },});
2821
2829
  }, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
2822
2830
  a = Q(a);
2823
- b = oc(b, "emval::as");
2824
- var d = [], e = bc(d);
2831
+ b = pc(b, "emval::as");
2832
+ var d = [], e = cc(d);
2825
2833
  J[c >> 2] = e;
2826
2834
  return b.toWireType(d, a);
2827
2835
  }, _emval_call_method:function(a, b, c, d, e) {
2828
- a = nd[a];
2836
+ a = od[a];
2829
2837
  b = Q(b);
2830
- c = md(c);
2838
+ c = nd(c);
2831
2839
  var f = [];
2832
- J[d >> 2] = bc(f);
2840
+ J[d >> 2] = cc(f);
2833
2841
  return a(b, c, f, e);
2834
2842
  }, _emval_call_void_method:function(a, b, c, d) {
2835
- a = nd[a];
2843
+ a = od[a];
2836
2844
  b = Q(b);
2837
- c = md(c);
2845
+ c = nd(c);
2838
2846
  a(b, c, null, d);
2839
- }, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
2840
- var c = pd(a, b), d = c[0];
2847
+ }, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
2848
+ var c = qd(a, b), d = c[0];
2841
2849
  b = d.name + "_$" + c.slice(1).map(function(g) {
2842
2850
  return g.name;
2843
2851
  }).join("_") + "$";
2844
- var e = qd[b];
2852
+ var e = rd[b];
2845
2853
  if (void 0 !== e) {
2846
2854
  return e;
2847
2855
  }
2848
2856
  var f = Array(a - 1);
2849
- e = od((g, m, p, l) => {
2850
- for (var u = 0, v = 0; v < a - 1; ++v) {
2851
- f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
2857
+ e = pd((g, m, p, l) => {
2858
+ for (var t = 0, u = 0; u < a - 1; ++u) {
2859
+ f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
2852
2860
  }
2853
2861
  g = g[m].apply(g, f);
2854
- for (v = 0; v < a - 1; ++v) {
2855
- c[v + 1].Fb && c[v + 1].Fb(f[v]);
2862
+ for (u = 0; u < a - 1; ++u) {
2863
+ c[u + 1].Fb && c[u + 1].Fb(f[u]);
2856
2864
  }
2857
2865
  if (!d.Xb) {
2858
2866
  return d.toWireType(p, g);
2859
2867
  }
2860
2868
  });
2861
- return qd[b] = e;
2869
+ return rd[b] = e;
2862
2870
  }, _emval_get_property:function(a, b) {
2863
2871
  a = Q(a);
2864
2872
  b = Q(b);
2865
- return bc(a[b]);
2873
+ return cc(a[b]);
2866
2874
  }, _emval_incref:function(a) {
2867
2875
  4 < a && (O.get(a).ob += 1);
2868
2876
  }, _emval_new_cstring:function(a) {
2869
- return bc(md(a));
2877
+ return cc(nd(a));
2870
2878
  }, _emval_new_object:function() {
2871
- return bc({});
2879
+ return cc({});
2872
2880
  }, _emval_run_destructors:function(a) {
2873
2881
  var b = Q(a);
2874
- Ac(b);
2875
- $c(a);
2882
+ Bc(b);
2883
+ ad(a);
2876
2884
  }, _emval_set_property:function(a, b, c) {
2877
2885
  a = Q(a);
2878
2886
  b = Q(b);
2879
2887
  c = Q(c);
2880
2888
  a[b] = c;
2881
2889
  }, _emval_take_value:function(a, b) {
2882
- a = oc(a, "_emval_take_value");
2890
+ a = pc(a, "_emval_take_value");
2883
2891
  a = a.readValueFromPointer(b);
2884
- return bc(a);
2892
+ return cc(a);
2885
2893
  }, abort:() => {
2886
- sa("");
2894
+ ta("");
2887
2895
  }, beginPixelLocalStorageWEBGL:function(a, b, c) {
2888
- (a = t[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2896
+ (a = r[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2889
2897
  }, begin_texture_image_decode:function(a, b, c) {
2890
2898
  a = W[a];
2891
2899
  a.image = new Image();
2892
2900
  a.image.src = URL.createObjectURL(new Blob([n.HEAP8.subarray(b, b + c)]), {type:"image/png"});
2893
2901
  a.complete = !1;
2894
2902
  }, emscripten_asm_const_int:(a, b, c) => {
2895
- rd.length = 0;
2903
+ sd.length = 0;
2896
2904
  var d;
2897
- for (c >>= 2; d = G[b++];) {
2898
- c += 105 != d & c, rd.push(105 == d ? I[c] : xa[c++ >> 1]), ++c;
2905
+ for (c >>= 2; d = C[b++];) {
2906
+ c += 105 != d & c, sd.push(105 == d ? I[c] : ya[c++ >> 1]), ++c;
2899
2907
  }
2900
- return Ta[a].apply(null, rd);
2908
+ return Ua[a].apply(null, sd);
2901
2909
  }, emscripten_date_now:function() {
2902
2910
  return Date.now();
2903
- }, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => G.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
2904
- var b = G.length;
2911
+ }, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => C.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
2912
+ var b = C.length;
2905
2913
  a >>>= 0;
2906
2914
  if (2147483648 < a) {
2907
2915
  return !1;
@@ -2912,10 +2920,10 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2912
2920
  var e = Math;
2913
2921
  d = Math.max(a, d);
2914
2922
  a: {
2915
- e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535 >>> 16;
2923
+ e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ua.buffer.byteLength + 65535 >>> 16;
2916
2924
  try {
2917
- ta.grow(e);
2918
- ya();
2925
+ ua.grow(e);
2926
+ za();
2919
2927
  var f = 1;
2920
2928
  break a;
2921
2929
  } catch (g) {
@@ -2928,41 +2936,41 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2928
2936
  }
2929
2937
  return !1;
2930
2938
  }, emscripten_webgl_enable_extension:function(a, b) {
2931
- a = t[a];
2932
- b = b ? K(G, b) : "";
2939
+ a = r[a];
2940
+ b = b ? K(C, b) : "";
2933
2941
  b.startsWith("GL_") && (b = b.substr(3));
2934
- "WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
2935
- "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
2936
- "WEBGL_multi_draw" == b && Dd(Z);
2942
+ "WEBGL_draw_instanced_base_vertex_base_instance" == b && td(Y);
2943
+ "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && ud(Y);
2944
+ "WEBGL_multi_draw" == b && Ed(Y);
2937
2945
  return !!a.H.getExtension(b);
2938
2946
  }, emscripten_webgl_get_current_context:function() {
2939
- return Cd ? Cd.handle : 0;
2947
+ return Dd ? Dd.handle : 0;
2940
2948
  }, emscripten_webgl_make_context_current:function(a) {
2941
2949
  return ja(a) ? 0 : -5;
2942
2950
  }, enable_WEBGL_provoking_vertex:function(a) {
2943
- a = t[a].H;
2951
+ a = r[a].H;
2944
2952
  a.lb = a.getExtension("WEBGL_provoking_vertex");
2945
2953
  return !!a.lb;
2946
2954
  }, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
2947
- a = t[a].H;
2955
+ a = r[a].H;
2948
2956
  a.ia = a.getExtension("WEBGL_shader_pixel_local_storage");
2949
2957
  return !(!a.ia || !a.ia.isCoherent());
2950
2958
  }, endPixelLocalStorageWEBGL:function(a, b, c) {
2951
- (a = t[a].H.ia) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2959
+ (a = r[a].H.ia) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2952
2960
  }, environ_get:(a, b) => {
2953
2961
  var c = 0;
2954
- Gd().forEach(function(d, e) {
2962
+ Hd().forEach(function(d, e) {
2955
2963
  var f = b + c;
2956
2964
  e = J[a + 4 * e >> 2] = f;
2957
2965
  for (f = 0; f < d.length; ++f) {
2958
- C[e++ >> 0] = d.charCodeAt(f);
2966
+ A[e++ >> 0] = d.charCodeAt(f);
2959
2967
  }
2960
- C[e >> 0] = 0;
2968
+ A[e >> 0] = 0;
2961
2969
  c += d.length + 1;
2962
2970
  });
2963
2971
  return 0;
2964
2972
  }, environ_sizes_get:(a, b) => {
2965
- var c = Gd();
2973
+ var c = Hd();
2966
2974
  J[a >> 2] = c.length;
2967
2975
  var d = 0;
2968
2976
  c.forEach(function(e) {
@@ -2972,7 +2980,7 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2972
2980
  return 0;
2973
2981
  }, fd_close:function(a) {
2974
2982
  try {
2975
- var b = Ib(a);
2983
+ var b = Jb(a);
2976
2984
  if (null === b.W) {
2977
2985
  throw new L(8);
2978
2986
  }
@@ -2982,12 +2990,12 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2982
2990
  } catch (c) {
2983
2991
  throw c;
2984
2992
  } finally {
2985
- vb[b.W] = null;
2993
+ wb[b.W] = null;
2986
2994
  }
2987
2995
  b.W = null;
2988
2996
  return 0;
2989
2997
  } catch (c) {
2990
- if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
2998
+ if ("undefined" == typeof Wb || "ErrnoError" !== c.name) {
2991
2999
  throw c;
2992
3000
  }
2993
3001
  return c.$;
@@ -2995,13 +3003,13 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
2995
3003
  }, fd_read:function(a, b, c, d) {
2996
3004
  try {
2997
3005
  a: {
2998
- var e = Ib(a);
3006
+ var e = Jb(a);
2999
3007
  a = b;
3000
3008
  for (var f, g = b = 0; g < c; g++) {
3001
3009
  var m = J[a >> 2], p = J[a + 4 >> 2];
3002
3010
  a += 8;
3003
- var l = e, u = m, v = p, q = f, k = C;
3004
- if (0 > v || 0 > q) {
3011
+ var l = e, t = m, u = p, x = f, k = A;
3012
+ if (0 > u || 0 > x) {
3005
3013
  throw new L(28);
3006
3014
  }
3007
3015
  if (null === l.W) {
@@ -3016,17 +3024,17 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3016
3024
  if (!l.m.read) {
3017
3025
  throw new L(28);
3018
3026
  }
3019
- var r = "undefined" != typeof q;
3020
- if (!r) {
3021
- q = l.position;
3027
+ var q = "undefined" != typeof x;
3028
+ if (!q) {
3029
+ x = l.position;
3022
3030
  } else if (!l.seekable) {
3023
3031
  throw new L(70);
3024
3032
  }
3025
- var w = l.m.read(l, k, u, v, q);
3026
- r || (l.position += w);
3027
- var y = w;
3033
+ var v = l.m.read(l, k, t, u, x);
3034
+ q || (l.position += v);
3035
+ var y = v;
3028
3036
  if (0 > y) {
3029
- var E = -1;
3037
+ var B = -1;
3030
3038
  break a;
3031
3039
  }
3032
3040
  b += y;
@@ -3035,15 +3043,15 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3035
3043
  }
3036
3044
  "undefined" !== typeof f && (f += y);
3037
3045
  }
3038
- E = b;
3046
+ B = b;
3039
3047
  }
3040
- J[d >> 2] = E;
3048
+ J[d >> 2] = B;
3041
3049
  return 0;
3042
- } catch (z) {
3043
- if ("undefined" == typeof Vb || "ErrnoError" !== z.name) {
3044
- throw z;
3050
+ } catch (D) {
3051
+ if ("undefined" == typeof Wb || "ErrnoError" !== D.name) {
3052
+ throw D;
3045
3053
  }
3046
- return z.$;
3054
+ return D.$;
3047
3055
  }
3048
3056
  }, fd_seek:function(a, b, c, d, e) {
3049
3057
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3051,15 +3059,15 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3051
3059
  if (isNaN(b)) {
3052
3060
  return 61;
3053
3061
  }
3054
- var f = Ib(a);
3055
- Qb(f, b, d);
3056
- Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3057
- I[e >> 2] = Pa[0];
3058
- I[e + 4 >> 2] = Pa[1];
3062
+ var f = Jb(a);
3063
+ Rb(f, b, d);
3064
+ Qa = [f.position >>> 0, (Pa = f.position, 1.0 <= +Math.abs(Pa) ? 0.0 < Pa ? +Math.floor(Pa / 4294967296.0) >>> 0 : ~~+Math.ceil((Pa - +(~~Pa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3065
+ I[e >> 2] = Qa[0];
3066
+ I[e + 4 >> 2] = Qa[1];
3059
3067
  f.Ma && 0 === b && 0 === d && (f.Ma = null);
3060
3068
  return 0;
3061
3069
  } catch (g) {
3062
- if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
3070
+ if ("undefined" == typeof Wb || "ErrnoError" !== g.name) {
3063
3071
  throw g;
3064
3072
  }
3065
3073
  return g.$;
@@ -3067,13 +3075,13 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3067
3075
  }, fd_write:function(a, b, c, d) {
3068
3076
  try {
3069
3077
  a: {
3070
- var e = Ib(a);
3078
+ var e = Jb(a);
3071
3079
  a = b;
3072
3080
  for (var f, g = b = 0; g < c; g++) {
3073
3081
  var m = J[a >> 2], p = J[a + 4 >> 2];
3074
3082
  a += 8;
3075
- var l = e, u = m, v = p, q = f, k = C;
3076
- if (0 > v || 0 > q) {
3083
+ var l = e, t = m, u = p, x = f, k = A;
3084
+ if (0 > u || 0 > x) {
3077
3085
  throw new L(28);
3078
3086
  }
3079
3087
  if (null === l.W) {
@@ -3088,215 +3096,215 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3088
3096
  if (!l.m.write) {
3089
3097
  throw new L(28);
3090
3098
  }
3091
- l.seekable && l.flags & 1024 && Qb(l, 0, 2);
3092
- var r = "undefined" != typeof q;
3093
- if (!r) {
3094
- q = l.position;
3099
+ l.seekable && l.flags & 1024 && Rb(l, 0, 2);
3100
+ var q = "undefined" != typeof x;
3101
+ if (!q) {
3102
+ x = l.position;
3095
3103
  } else if (!l.seekable) {
3096
3104
  throw new L(70);
3097
3105
  }
3098
- var w = l.m.write(l, k, u, v, q, void 0);
3099
- r || (l.position += w);
3100
- var y = w;
3106
+ var v = l.m.write(l, k, t, u, x, void 0);
3107
+ q || (l.position += v);
3108
+ var y = v;
3101
3109
  if (0 > y) {
3102
- var E = -1;
3110
+ var B = -1;
3103
3111
  break a;
3104
3112
  }
3105
3113
  b += y;
3106
3114
  "undefined" !== typeof f && (f += y);
3107
3115
  }
3108
- E = b;
3116
+ B = b;
3109
3117
  }
3110
- J[d >> 2] = E;
3118
+ J[d >> 2] = B;
3111
3119
  return 0;
3112
- } catch (z) {
3113
- if ("undefined" == typeof Vb || "ErrnoError" !== z.name) {
3114
- throw z;
3120
+ } catch (D) {
3121
+ if ("undefined" == typeof Wb || "ErrnoError" !== D.name) {
3122
+ throw D;
3115
3123
  }
3116
- return z.$;
3124
+ return D.$;
3117
3125
  }
3118
3126
  }, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
3119
- (a = t[a].H.ia) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3127
+ (a = r[a].H.ia) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3120
3128
  }, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
3121
- (a = t[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b, W[c], d, e);
3129
+ (a = r[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b, W[c], d, e);
3122
3130
  }, glActiveTexture:function(a) {
3123
- Z.activeTexture(a);
3131
+ Y.activeTexture(a);
3124
3132
  }, glAttachShader:function(a, b) {
3125
- Z.attachShader(V[a], yd[b]);
3133
+ Y.attachShader(V[a], zd[b]);
3126
3134
  }, glBindBuffer:function(a, b) {
3127
- 35051 == a ? Z.Wa = b : 35052 == a && (Z.Ka = b);
3128
- Z.bindBuffer(a, vd[b]);
3135
+ 35051 == a ? Y.Wa = b : 35052 == a && (Y.Ka = b);
3136
+ Y.bindBuffer(a, wd[b]);
3129
3137
  }, glBindBufferRange:function(a, b, c, d, e) {
3130
- Z.bindBufferRange(a, b, vd[c], d, e);
3138
+ Y.bindBufferRange(a, b, wd[c], d, e);
3131
3139
  }, glBindFramebuffer:function(a, b) {
3132
- Z.bindFramebuffer(a, wd[b]);
3140
+ Y.bindFramebuffer(a, xd[b]);
3133
3141
  }, glBindRenderbuffer:function(a, b) {
3134
- Z.bindRenderbuffer(a, xd[b]);
3142
+ Y.bindRenderbuffer(a, yd[b]);
3135
3143
  }, glBindTexture:function(a, b) {
3136
- Z.bindTexture(a, W[b]);
3144
+ Y.bindTexture(a, W[b]);
3137
3145
  }, glBindVertexArray:function(a) {
3138
- Z.bindVertexArray(zd[a]);
3146
+ Y.bindVertexArray(Ad[a]);
3139
3147
  }, glBlendEquation:function(a) {
3140
- Z.blendEquation(a);
3148
+ Y.blendEquation(a);
3141
3149
  }, glBlendFunc:function(a, b) {
3142
- Z.blendFunc(a, b);
3150
+ Y.blendFunc(a, b);
3143
3151
  }, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
3144
- Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
3152
+ Y.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
3145
3153
  }, glBufferData:function(a, b, c, d) {
3146
- c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
3154
+ c && b ? Y.bufferData(a, C, d, c, b) : Y.bufferData(a, b, d);
3147
3155
  }, glBufferSubData:function(a, b, c, d) {
3148
- c && Z.bufferSubData(a, b, G, d, c);
3156
+ c && Y.bufferSubData(a, b, C, d, c);
3149
3157
  }, glClear:function(a) {
3150
- Z.clear(a);
3158
+ Y.clear(a);
3151
3159
  }, glClearColor:function(a, b, c, d) {
3152
- Z.clearColor(a, b, c, d);
3160
+ Y.clearColor(a, b, c, d);
3153
3161
  }, glClearDepthf:function(a) {
3154
- Z.clearDepth(a);
3162
+ Y.clearDepth(a);
3155
3163
  }, glClearStencil:function(a) {
3156
- Z.clearStencil(a);
3164
+ Y.clearStencil(a);
3157
3165
  }, glColorMask:function(a, b, c, d) {
3158
- Z.colorMask(!!a, !!b, !!c, !!d);
3166
+ Y.colorMask(!!a, !!b, !!c, !!d);
3159
3167
  }, glCompileShader:function(a) {
3160
- Z.compileShader(yd[a]);
3168
+ Y.compileShader(zd[a]);
3161
3169
  }, glCreateProgram:function() {
3162
- var a = ha(V), b = Z.createProgram();
3170
+ var a = ha(V), b = Y.createProgram();
3163
3171
  b.name = a;
3164
3172
  b.Fc = b.Dc = b.Ec = 0;
3165
3173
  b.Sa = 1;
3166
3174
  V[a] = b;
3167
3175
  return a;
3168
3176
  }, glCreateShader:function(a) {
3169
- var b = ha(yd);
3170
- yd[b] = Z.createShader(a);
3177
+ var b = ha(zd);
3178
+ zd[b] = Y.createShader(a);
3171
3179
  return b;
3172
3180
  }, glCullFace:function(a) {
3173
- Z.cullFace(a);
3181
+ Y.cullFace(a);
3174
3182
  }, glDeleteBuffers:function(a, b) {
3175
3183
  for (var c = 0; c < a; c++) {
3176
- var d = I[b + 4 * c >> 2], e = vd[d];
3177
- e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Wa && (Z.Wa = 0), d == Z.Ka && (Z.Ka = 0));
3184
+ var d = I[b + 4 * c >> 2], e = wd[d];
3185
+ e && (Y.deleteBuffer(e), e.name = 0, wd[d] = null, d == Y.Wa && (Y.Wa = 0), d == Y.Ka && (Y.Ka = 0));
3178
3186
  }
3179
3187
  }, glDeleteFramebuffers:function(a, b) {
3180
3188
  for (var c = 0; c < a; ++c) {
3181
- var d = I[b + 4 * c >> 2], e = wd[d];
3182
- e && (Z.deleteFramebuffer(e), e.name = 0, wd[d] = null);
3189
+ var d = I[b + 4 * c >> 2], e = xd[d];
3190
+ e && (Y.deleteFramebuffer(e), e.name = 0, xd[d] = null);
3183
3191
  }
3184
3192
  }, glDeleteProgram:function(a) {
3185
3193
  if (a) {
3186
3194
  var b = V[a];
3187
- b ? (Z.deleteProgram(b), b.name = 0, V[a] = null) : X(1281);
3195
+ b ? (Y.deleteProgram(b), b.name = 0, V[a] = null) : X(1281);
3188
3196
  }
3189
3197
  }, glDeleteRenderbuffers:function(a, b) {
3190
3198
  for (var c = 0; c < a; c++) {
3191
- var d = I[b + 4 * c >> 2], e = xd[d];
3192
- e && (Z.deleteRenderbuffer(e), e.name = 0, xd[d] = null);
3199
+ var d = I[b + 4 * c >> 2], e = yd[d];
3200
+ e && (Y.deleteRenderbuffer(e), e.name = 0, yd[d] = null);
3193
3201
  }
3194
3202
  }, glDeleteShader:function(a) {
3195
3203
  if (a) {
3196
- var b = yd[a];
3197
- b ? (Z.deleteShader(b), yd[a] = null) : X(1281);
3204
+ var b = zd[a];
3205
+ b ? (Y.deleteShader(b), zd[a] = null) : X(1281);
3198
3206
  }
3199
3207
  }, glDeleteTextures:function(a, b) {
3200
3208
  for (var c = 0; c < a; c++) {
3201
3209
  var d = I[b + 4 * c >> 2], e = W[d];
3202
- e && (Z.deleteTexture(e), e.name = 0, W[d] = null);
3210
+ e && (Y.deleteTexture(e), e.name = 0, W[d] = null);
3203
3211
  }
3204
3212
  }, glDeleteVertexArrays:function(a, b) {
3205
3213
  for (var c = 0; c < a; c++) {
3206
3214
  var d = I[b + 4 * c >> 2];
3207
- Z.deleteVertexArray(zd[d]);
3208
- zd[d] = null;
3215
+ Y.deleteVertexArray(Ad[d]);
3216
+ Ad[d] = null;
3209
3217
  }
3210
3218
  }, glDepthFunc:function(a) {
3211
- Z.depthFunc(a);
3219
+ Y.depthFunc(a);
3212
3220
  }, glDepthMask:function(a) {
3213
- Z.depthMask(!!a);
3221
+ Y.depthMask(!!a);
3214
3222
  }, glDepthRangef:function(a, b) {
3215
- Z.depthRange(a, b);
3223
+ Y.depthRange(a, b);
3216
3224
  }, glDisable:function(a) {
3217
- Z.disable(a);
3225
+ Y.disable(a);
3218
3226
  }, glDrawArrays:function(a, b, c) {
3219
- Z.drawArrays(a, b, c);
3227
+ Y.drawArrays(a, b, c);
3220
3228
  }, glDrawArraysInstanced:function(a, b, c, d) {
3221
- Z.drawArraysInstanced(a, b, c, d);
3229
+ Y.drawArraysInstanced(a, b, c, d);
3222
3230
  }, glDrawBuffers:function(a, b) {
3223
- for (var c = Hd[a], d = 0; d < a; d++) {
3231
+ for (var c = Id[a], d = 0; d < a; d++) {
3224
3232
  c[d] = I[b + 4 * d >> 2];
3225
3233
  }
3226
- Z.drawBuffers(c);
3234
+ Y.drawBuffers(c);
3227
3235
  }, glDrawElements:function(a, b, c, d) {
3228
- Z.drawElements(a, b, c, d);
3236
+ Y.drawElements(a, b, c, d);
3229
3237
  }, glDrawElementsInstanced:function(a, b, c, d, e) {
3230
- Z.drawElementsInstanced(a, b, c, d, e);
3238
+ Y.drawElementsInstanced(a, b, c, d, e);
3231
3239
  }, glEnable:function(a) {
3232
- Z.enable(a);
3240
+ Y.enable(a);
3233
3241
  }, glEnableVertexAttribArray:function(a) {
3234
- Z.enableVertexAttribArray(a);
3242
+ Y.enableVertexAttribArray(a);
3235
3243
  }, glFramebufferRenderbuffer:function(a, b, c, d) {
3236
- Z.framebufferRenderbuffer(a, b, c, xd[d]);
3244
+ Y.framebufferRenderbuffer(a, b, c, yd[d]);
3237
3245
  }, glFramebufferTexture2D:function(a, b, c, d, e) {
3238
- Z.framebufferTexture2D(a, b, c, W[d], e);
3246
+ Y.framebufferTexture2D(a, b, c, W[d], e);
3239
3247
  }, glFrontFace:function(a) {
3240
- Z.frontFace(a);
3248
+ Y.frontFace(a);
3241
3249
  }, glGenBuffers:function(a, b) {
3242
- Id(a, b, "createBuffer", vd);
3250
+ Jd(a, b, "createBuffer", wd);
3243
3251
  }, glGenFramebuffers:function(a, b) {
3244
- Id(a, b, "createFramebuffer", wd);
3252
+ Jd(a, b, "createFramebuffer", xd);
3245
3253
  }, glGenRenderbuffers:function(a, b) {
3246
- Id(a, b, "createRenderbuffer", xd);
3254
+ Jd(a, b, "createRenderbuffer", yd);
3247
3255
  }, glGenTextures:function(a, b) {
3248
- Id(a, b, "createTexture", W);
3256
+ Jd(a, b, "createTexture", W);
3249
3257
  }, glGenVertexArrays:function(a, b) {
3250
- Id(a, b, "createVertexArray", zd);
3258
+ Jd(a, b, "createVertexArray", Ad);
3251
3259
  }, glGenerateMipmap:function(a) {
3252
- Z.generateMipmap(a);
3260
+ Y.generateMipmap(a);
3253
3261
  }, glGetIntegerv:function(a, b) {
3254
- Jd(a, b);
3262
+ Kd(a, b);
3255
3263
  }, glGetString:function(a) {
3256
- var b = Ad[a];
3264
+ var b = Bd[a];
3257
3265
  if (!b) {
3258
3266
  switch(a) {
3259
3267
  case 7939:
3260
- b = Z.getSupportedExtensions() || [];
3268
+ b = Y.getSupportedExtensions() || [];
3261
3269
  b = b.concat(b.map(function(d) {
3262
3270
  return "GL_" + d;
3263
3271
  }));
3264
- b = Ld(b.join(" "));
3272
+ b = Md(b.join(" "));
3265
3273
  break;
3266
3274
  case 7936:
3267
3275
  case 7937:
3268
3276
  case 37445:
3269
3277
  case 37446:
3270
- (b = Z.getParameter(a)) || X(1280);
3271
- b = b && Ld(b);
3278
+ (b = Y.getParameter(a)) || X(1280);
3279
+ b = b && Md(b);
3272
3280
  break;
3273
3281
  case 7938:
3274
- b = Ld("OpenGL ES 3.0 (" + Z.getParameter(7938) + ")");
3282
+ b = Md("OpenGL ES 3.0 (" + Y.getParameter(7938) + ")");
3275
3283
  break;
3276
3284
  case 35724:
3277
- b = Z.getParameter(35724);
3285
+ b = Y.getParameter(35724);
3278
3286
  var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
3279
3287
  null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
3280
- b = Ld(b);
3288
+ b = Md(b);
3281
3289
  break;
3282
3290
  default:
3283
3291
  X(1280);
3284
3292
  }
3285
- Ad[a] = b;
3293
+ Bd[a] = b;
3286
3294
  }
3287
3295
  return b;
3288
3296
  }, glGetUniformBlockIndex:function(a, b) {
3289
- return Z.getUniformBlockIndex(V[a], b ? K(G, b) : "");
3297
+ return Y.getUniformBlockIndex(V[a], b ? K(C, b) : "");
3290
3298
  }, glGetUniformLocation:function(a, b) {
3291
- b = b ? K(G, b) : "";
3299
+ b = b ? K(C, b) : "";
3292
3300
  if (a = V[a]) {
3293
3301
  var c = a, d = c.oa, e = c.tb, f;
3294
3302
  if (!d) {
3295
- for (c.oa = d = {}, c.sb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3296
- var g = Z.getActiveUniform(c, f);
3303
+ for (c.oa = d = {}, c.sb = {}, f = 0; f < Y.getProgramParameter(c, 35718); ++f) {
3304
+ var g = Y.getActiveUniform(c, f);
3297
3305
  var m = g.name;
3298
3306
  g = g.size;
3299
- var p = Md(m);
3307
+ var p = Nd(m);
3300
3308
  p = 0 < p ? m.slice(0, p) : m;
3301
3309
  var l = c.Sa;
3302
3310
  c.Sa += g;
@@ -3309,9 +3317,9 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3309
3317
  c = a.oa;
3310
3318
  d = 0;
3311
3319
  e = b;
3312
- f = Md(b);
3320
+ f = Nd(b);
3313
3321
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3314
- if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
3322
+ if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Y.getUniformLocation(a, b))) {
3315
3323
  return d;
3316
3324
  }
3317
3325
  } else {
@@ -3319,58 +3327,58 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3319
3327
  }
3320
3328
  return -1;
3321
3329
  }, glInvalidateFramebuffer:function(a, b, c) {
3322
- for (var d = Hd[b], e = 0; e < b; e++) {
3330
+ for (var d = Id[b], e = 0; e < b; e++) {
3323
3331
  d[e] = I[c + 4 * e >> 2];
3324
3332
  }
3325
- Z.invalidateFramebuffer(a, d);
3333
+ Y.invalidateFramebuffer(a, d);
3326
3334
  }, glLinkProgram:function(a) {
3327
3335
  a = V[a];
3328
- Z.linkProgram(a);
3336
+ Y.linkProgram(a);
3329
3337
  a.oa = 0;
3330
3338
  a.tb = {};
3331
3339
  }, glPixelStorei:function(a, b) {
3332
- Z.pixelStorei(a, b);
3340
+ Y.pixelStorei(a, b);
3333
3341
  }, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
3334
- Z.renderbufferStorageMultisample(a, b, c, d, e);
3342
+ Y.renderbufferStorageMultisample(a, b, c, d, e);
3335
3343
  }, glScissor:function(a, b, c, d) {
3336
- Z.scissor(a, b, c, d);
3344
+ Y.scissor(a, b, c, d);
3337
3345
  }, glShaderSource:function(a, b, c, d) {
3338
3346
  for (var e = "", f = 0; f < b; ++f) {
3339
3347
  var g = d ? I[d + 4 * f >> 2] : -1, m = I[c + 4 * f >> 2];
3340
- g = m ? K(G, m, 0 > g ? void 0 : g) : "";
3348
+ g = m ? K(C, m, 0 > g ? void 0 : g) : "";
3341
3349
  e += g;
3342
3350
  }
3343
- Z.shaderSource(yd[a], e);
3351
+ Y.shaderSource(zd[a], e);
3344
3352
  }, glStencilFunc:function(a, b, c) {
3345
- Z.stencilFunc(a, b, c);
3353
+ Y.stencilFunc(a, b, c);
3346
3354
  }, glStencilFuncSeparate:function(a, b, c, d) {
3347
- Z.stencilFuncSeparate(a, b, c, d);
3355
+ Y.stencilFuncSeparate(a, b, c, d);
3348
3356
  }, glStencilMask:function(a) {
3349
- Z.stencilMask(a);
3357
+ Y.stencilMask(a);
3350
3358
  }, glStencilOp:function(a, b, c) {
3351
- Z.stencilOp(a, b, c);
3359
+ Y.stencilOp(a, b, c);
3352
3360
  }, glStencilOpSeparate:function(a, b, c, d) {
3353
- Z.stencilOpSeparate(a, b, c, d);
3361
+ Y.stencilOpSeparate(a, b, c, d);
3354
3362
  }, glTexParameteri:function(a, b, c) {
3355
- Z.texParameteri(a, b, c);
3363
+ Y.texParameteri(a, b, c);
3356
3364
  }, glTexStorage2D:function(a, b, c, d, e) {
3357
- Z.texStorage2D(a, b, c, d, e);
3365
+ Y.texStorage2D(a, b, c, d, e);
3358
3366
  }, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
3359
- if (Z.Ka) {
3360
- Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
3367
+ if (Y.Ka) {
3368
+ Y.texSubImage2D(a, b, c, d, e, f, g, m, p);
3361
3369
  } else if (p) {
3362
3370
  var l = m - 5120;
3363
- l = 0 == l ? C : 1 == l ? G : 2 == l ? H : 4 == l ? I : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? J : va;
3364
- Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3371
+ l = 0 == l ? A : 1 == l ? C : 2 == l ? G : 4 == l ? I : 6 == l ? xa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? J : wa;
3372
+ Y.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3365
3373
  } else {
3366
- Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
3374
+ Y.texSubImage2D(a, b, c, d, e, f, g, m, null);
3367
3375
  }
3368
3376
  }, glUniform1i:function(a, b) {
3369
- var c = Z, d = c.uniform1i;
3370
- var e = Z.Eb;
3377
+ var c = Y, d = c.uniform1i;
3378
+ var e = Y.Eb;
3371
3379
  if (e) {
3372
3380
  var f = e.oa[a];
3373
- "number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.sb[a] + (0 < f ? "[" + f + "]" : "")));
3381
+ "number" == typeof f && (e.oa[a] = f = Y.getUniformLocation(e, e.sb[a] + (0 < f ? "[" + f + "]" : "")));
3374
3382
  a = f;
3375
3383
  } else {
3376
3384
  X(1282), a = void 0;
@@ -3378,100 +3386,100 @@ var Vd = {__syscall_fcntl64:function(a, b, c) {
3378
3386
  d.call(c, a, b);
3379
3387
  }, glUniformBlockBinding:function(a, b, c) {
3380
3388
  a = V[a];
3381
- Z.uniformBlockBinding(a, b, c);
3389
+ Y.uniformBlockBinding(a, b, c);
3382
3390
  }, glUseProgram:function(a) {
3383
3391
  a = V[a];
3384
- Z.useProgram(a);
3385
- Z.Eb = a;
3392
+ Y.useProgram(a);
3393
+ Y.Eb = a;
3386
3394
  }, glVertexAttribDivisor:function(a, b) {
3387
- Z.vertexAttribDivisor(a, b);
3395
+ Y.vertexAttribDivisor(a, b);
3388
3396
  }, glVertexAttribIPointer:function(a, b, c, d, e) {
3389
- Z.vertexAttribIPointer(a, b, c, d, e);
3397
+ Y.vertexAttribIPointer(a, b, c, d, e);
3390
3398
  }, glVertexAttribPointer:function(a, b, c, d, e, f) {
3391
- Z.vertexAttribPointer(a, b, c, !!d, e, f);
3399
+ Y.vertexAttribPointer(a, b, c, !!d, e, f);
3392
3400
  }, glViewport:function(a, b, c, d) {
3393
- Z.viewport(a, b, c, d);
3401
+ Y.viewport(a, b, c, d);
3394
3402
  }, is_texture_image_done_decoding:function(a) {
3395
3403
  a = W[a];
3396
3404
  return a.complete || a.image.complete;
3397
3405
  }, provokingVertexWEBGL:function(a, b) {
3398
- (a = t[a].H.lb) && a.provokingVertexWEBGL(b);
3406
+ (a = r[a].H.lb) && a.provokingVertexWEBGL(b);
3399
3407
  }, set_decoded_tex_image_2d:function(a, b) {
3400
- a = t[a].H;
3408
+ a = r[a].H;
3401
3409
  b = W[b];
3402
3410
  a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b.image);
3403
3411
  b.imageWidth = b.image.width;
3404
3412
  b.imageHeight = b.image.height;
3405
3413
  b.complete = !0;
3406
3414
  delete b.image;
3407
- }, strftime_l:(a, b, c, d) => Qd(a, b, c, d), texture_image_height:function(a) {
3415
+ }, strftime_l:(a, b, c, d) => Rd(a, b, c, d), texture_image_height:function(a) {
3408
3416
  a = W[a];
3409
3417
  return a.imageHeight;
3410
3418
  }, texture_image_width:function(a) {
3411
3419
  a = W[a];
3412
3420
  return a.imageWidth;
3413
3421
  }, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
3414
- a = t[a].H;
3422
+ a = r[a].H;
3415
3423
  a.texSubImage2D(b, c, d, e, f, g, m, p, l);
3416
3424
  }};
3417
3425
  (function() {
3418
3426
  function a(c) {
3419
- B = c = c.exports;
3420
- ta = B.memory;
3421
- ya();
3422
- za = B.__indirect_function_table;
3423
- Ba.unshift(B.__wasm_call_ctors);
3424
- Ea--;
3425
- n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3426
- if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
3427
- var d = Ga;
3428
- Ga = null;
3427
+ z = c = c.exports;
3428
+ ua = z.memory;
3429
+ za();
3430
+ Aa = z.__indirect_function_table;
3431
+ Ca.unshift(z.__wasm_call_ctors);
3432
+ Fa--;
3433
+ n.monitorRunDependencies && n.monitorRunDependencies(Fa);
3434
+ if (0 == Fa && (null !== Ga && (clearInterval(Ga), Ga = null), Ha)) {
3435
+ var d = Ha;
3436
+ Ha = null;
3429
3437
  d();
3430
3438
  }
3431
3439
  return c;
3432
3440
  }
3433
- var b = {env:Vd, wasi_snapshot_preview1:Vd,};
3434
- Ea++;
3435
- n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3441
+ var b = {env:Wd, wasi_snapshot_preview1:Wd,};
3442
+ Fa++;
3443
+ n.monitorRunDependencies && n.monitorRunDependencies(Fa);
3436
3444
  if (n.instantiateWasm) {
3437
3445
  try {
3438
3446
  return n.instantiateWasm(b, a);
3439
3447
  } catch (c) {
3440
- A("Module.instantiateWasm callback failed with error: " + c), ba(c);
3448
+ ra("Module.instantiateWasm callback failed with error: " + c), ba(c);
3441
3449
  }
3442
3450
  }
3443
- Na(b, function(c) {
3451
+ Oa(b, function(c) {
3444
3452
  a(c.instance);
3445
3453
  }).catch(ba);
3446
3454
  return {};
3447
3455
  })();
3448
- var nc = a => (nc = B.free)(a), Kd = a => (Kd = B.malloc)(a), Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = B.ma_device__on_notification_unlocked)(a);
3449
- n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = B.ma_malloc_emscripten)(a, b);
3450
- n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = B.ma_free_emscripten)(a, b);
3451
- var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = B.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = B.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = B.__errno_location)(), mc = a => (mc = B.__getTypeName)(a);
3452
- n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = B._embind_initialize_bindings)();
3453
- n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = B.dynCall_iiji)(a, b, c, d, e);
3454
- n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = B.dynCall_iiiji)(a, b, c, d, e, f);
3455
- n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = B.dynCall_iij)(a, b, c, d);
3456
- n.dynCall_jii = (a, b, c) => (n.dynCall_jii = B.dynCall_jii)(a, b, c);
3457
- n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = B.dynCall_jiji)(a, b, c, d, e);
3458
- n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = B.dynCall_viijii)(a, b, c, d, e, f, g);
3459
- n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = B.dynCall_iiiiij)(a, b, c, d, e, f, g);
3460
- n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = B.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3461
- n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = B.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3462
- n.___start_em_js = 482180;
3463
- n.___stop_em_js = 484805;
3464
- var Wd;
3465
- Ga = function Xd() {
3466
- Wd || Yd();
3467
- Wd || (Ga = Xd);
3456
+ var oc = a => (oc = z.free)(a), Ld = a => (Ld = z.malloc)(a), Ra = n._ma_device__on_notification_unlocked = a => (Ra = n._ma_device__on_notification_unlocked = z.ma_device__on_notification_unlocked)(a);
3457
+ n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = z.ma_malloc_emscripten)(a, b);
3458
+ n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = z.ma_free_emscripten)(a, b);
3459
+ var Sa = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_capture__webaudio = z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = n._ma_device_process_pcm_frames_playback__webaudio = z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = z.__errno_location)(), nc = a => (nc = z.__getTypeName)(a);
3460
+ n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = z._embind_initialize_bindings)();
3461
+ n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = z.dynCall_iiji)(a, b, c, d, e);
3462
+ n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = z.dynCall_iiiji)(a, b, c, d, e, f);
3463
+ n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = z.dynCall_iij)(a, b, c, d);
3464
+ n.dynCall_jii = (a, b, c) => (n.dynCall_jii = z.dynCall_jii)(a, b, c);
3465
+ n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = z.dynCall_jiji)(a, b, c, d, e);
3466
+ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = z.dynCall_viijii)(a, b, c, d, e, f, g);
3467
+ n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = z.dynCall_iiiiij)(a, b, c, d, e, f, g);
3468
+ n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3469
+ n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3470
+ n.___start_em_js = 482596;
3471
+ n.___stop_em_js = 485221;
3472
+ var Xd;
3473
+ Ha = function Yd() {
3474
+ Xd || Zd();
3475
+ Xd || (Ha = Yd);
3468
3476
  };
3469
- function Yd() {
3477
+ function Zd() {
3470
3478
  function a() {
3471
- if (!Wd && (Wd = !0, n.calledRun = !0, !ua)) {
3472
- n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
3473
- yb = !1;
3474
- Ua(Ba);
3479
+ if (!Xd && (Xd = !0, n.calledRun = !0, !va)) {
3480
+ n.noFSInit || Tb || (Tb = !0, Sb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Vb("stdin", n.stdin) : Ob("/dev/tty", "/dev/stdin"), n.stdout ? Vb("stdout", null, n.stdout) : Ob("/dev/tty", "/dev/stdout"), n.stderr ? Vb("stderr", null, n.stderr) : Ob("/dev/tty1", "/dev/stderr"), Qb("/dev/stdin", 0), Qb("/dev/stdout", 1), Qb("/dev/stderr", 1));
3481
+ zb = !1;
3482
+ Va(Ca);
3475
3483
  aa(n);
3476
3484
  if (n.onRuntimeInitialized) {
3477
3485
  n.onRuntimeInitialized();
@@ -3479,20 +3487,20 @@ function Yd() {
3479
3487
  if (n.postRun) {
3480
3488
  for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
3481
3489
  var b = n.postRun.shift();
3482
- Ca.unshift(b);
3490
+ Da.unshift(b);
3483
3491
  }
3484
3492
  }
3485
- Ua(Ca);
3493
+ Va(Da);
3486
3494
  }
3487
3495
  }
3488
- if (!(0 < Ea)) {
3496
+ if (!(0 < Fa)) {
3489
3497
  if (n.preRun) {
3490
3498
  for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
3491
- Da();
3499
+ Ea();
3492
3500
  }
3493
3501
  }
3494
- Ua(Aa);
3495
- 0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3502
+ Va(Ba);
3503
+ 0 < Fa || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3496
3504
  setTimeout(function() {
3497
3505
  n.setStatus("");
3498
3506
  }, 1);
@@ -3505,7 +3513,7 @@ if (n.preInit) {
3505
3513
  n.preInit.pop()();
3506
3514
  }
3507
3515
  }
3508
- Yd();
3516
+ Zd();
3509
3517
 
3510
3518
 
3511
3519
 
@@ -3520,7 +3528,7 @@ Yd();
3520
3528
  /* 2 */
3521
3529
  /***/ ((module) => {
3522
3530
 
3523
- module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.21.7","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3531
+ module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.0","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3524
3532
 
3525
3533
  /***/ }),
3526
3534
  /* 3 */
@@ -3721,7 +3729,7 @@ var getClientCoordinates = function (event, isTouchScrollEnabled) {
3721
3729
  * the state machine pointer move/up/down functions based on cursor interaction
3722
3730
  */
3723
3731
  var registerTouchInteractions = function (_a) {
3724
- var canvas = _a.canvas, artboard = _a.artboard, _b = _a.stateMachines, stateMachines = _b === void 0 ? [] : _b, renderer = _a.renderer, rive = _a.rive, fit = _a.fit, alignment = _a.alignment, _c = _a.isTouchScrollEnabled, isTouchScrollEnabled = _c === void 0 ? false : _c;
3732
+ var canvas = _a.canvas, artboard = _a.artboard, _b = _a.stateMachines, stateMachines = _b === void 0 ? [] : _b, renderer = _a.renderer, rive = _a.rive, fit = _a.fit, alignment = _a.alignment, _c = _a.isTouchScrollEnabled, isTouchScrollEnabled = _c === void 0 ? false : _c, _d = _a.layoutScaleFactor, layoutScaleFactor = _d === void 0 ? 1.0 : _d;
3725
3733
  if (!canvas ||
3726
3734
  !stateMachines.length ||
3727
3735
  !renderer ||
@@ -3776,7 +3784,7 @@ var registerTouchInteractions = function (_a) {
3776
3784
  minY: 0,
3777
3785
  maxX: boundingRect.width,
3778
3786
  maxY: boundingRect.height,
3779
- }, artboard.bounds);
3787
+ }, artboard.bounds, layoutScaleFactor);
3780
3788
  var invertedMatrix = new rive.Mat2D();
3781
3789
  forwardMatrix.invert(invertedMatrix);
3782
3790
  var canvasCoordinatesVector = new rive.Vec2D(canvasX, canvasY);
@@ -4064,6 +4072,7 @@ var Fit;
4064
4072
  Fit["FitHeight"] = "fitHeight";
4065
4073
  Fit["None"] = "none";
4066
4074
  Fit["ScaleDown"] = "scaleDown";
4075
+ Fit["Layout"] = "layout";
4067
4076
  })(Fit || (Fit = {}));
4068
4077
  // Alignment options for the canvas
4069
4078
  var Alignment;
@@ -4081,13 +4090,14 @@ var Alignment;
4081
4090
  // Alignment options for Rive animations in a HTML canvas
4082
4091
  var Layout = /** @class */ (function () {
4083
4092
  function Layout(params) {
4084
- var _a, _b, _c, _d, _e, _f;
4093
+ var _a, _b, _c, _d, _e, _f, _g;
4085
4094
  this.fit = (_a = params === null || params === void 0 ? void 0 : params.fit) !== null && _a !== void 0 ? _a : Fit.Contain;
4086
4095
  this.alignment = (_b = params === null || params === void 0 ? void 0 : params.alignment) !== null && _b !== void 0 ? _b : Alignment.Center;
4087
- this.minX = (_c = params === null || params === void 0 ? void 0 : params.minX) !== null && _c !== void 0 ? _c : 0;
4088
- this.minY = (_d = params === null || params === void 0 ? void 0 : params.minY) !== null && _d !== void 0 ? _d : 0;
4089
- this.maxX = (_e = params === null || params === void 0 ? void 0 : params.maxX) !== null && _e !== void 0 ? _e : 0;
4090
- this.maxY = (_f = params === null || params === void 0 ? void 0 : params.maxY) !== null && _f !== void 0 ? _f : 0;
4096
+ this.layoutScaleFactor = (_c = params === null || params === void 0 ? void 0 : params.layoutScaleFactor) !== null && _c !== void 0 ? _c : 1;
4097
+ this.minX = (_d = params === null || params === void 0 ? void 0 : params.minX) !== null && _d !== void 0 ? _d : 0;
4098
+ this.minY = (_e = params === null || params === void 0 ? void 0 : params.minY) !== null && _e !== void 0 ? _e : 0;
4099
+ this.maxX = (_f = params === null || params === void 0 ? void 0 : params.maxX) !== null && _f !== void 0 ? _f : 0;
4100
+ this.maxY = (_g = params === null || params === void 0 ? void 0 : params.maxY) !== null && _g !== void 0 ? _g : 0;
4091
4101
  }
4092
4102
  // Alternative constructor to build a Layout from an interface/object
4093
4103
  Layout.new = function (_a) {
@@ -4099,10 +4109,11 @@ var Layout = /** @class */ (function () {
4099
4109
  * Makes a copy of the layout, replacing any specified parameters
4100
4110
  */
4101
4111
  Layout.prototype.copyWith = function (_a) {
4102
- var fit = _a.fit, alignment = _a.alignment, minX = _a.minX, minY = _a.minY, maxX = _a.maxX, maxY = _a.maxY;
4112
+ var fit = _a.fit, alignment = _a.alignment, layoutScaleFactor = _a.layoutScaleFactor, minX = _a.minX, minY = _a.minY, maxX = _a.maxX, maxY = _a.maxY;
4103
4113
  return new Layout({
4104
4114
  fit: fit !== null && fit !== void 0 ? fit : this.fit,
4105
4115
  alignment: alignment !== null && alignment !== void 0 ? alignment : this.alignment,
4116
+ layoutScaleFactor: layoutScaleFactor !== null && layoutScaleFactor !== void 0 ? layoutScaleFactor : this.layoutScaleFactor,
4106
4117
  minX: minX !== null && minX !== void 0 ? minX : this.minX,
4107
4118
  minY: minY !== null && minY !== void 0 ? minY : this.minY,
4108
4119
  maxX: maxX !== null && maxX !== void 0 ? maxX : this.maxX,
@@ -4126,6 +4137,8 @@ var Layout = /** @class */ (function () {
4126
4137
  fit = rive.Fit.fitHeight;
4127
4138
  else if (this.fit === Fit.ScaleDown)
4128
4139
  fit = rive.Fit.scaleDown;
4140
+ else if (this.fit === Fit.Layout)
4141
+ fit = rive.Fit.layout;
4129
4142
  else
4130
4143
  fit = rive.Fit.none;
4131
4144
  this.cachedRuntimeFit = fit;
@@ -5244,6 +5257,12 @@ var Rive = /** @class */ (function () {
5244
5257
  this.enableRiveAssetCDN = true;
5245
5258
  // Keep a local value of the set volume to update it asynchronously
5246
5259
  this._volume = 1;
5260
+ // Keep a local value of the set width to update it asynchronously
5261
+ this._artboardWidth = undefined;
5262
+ // Keep a local value of the set height to update it asynchronously
5263
+ this._artboardHeight = undefined;
5264
+ // Keep a local value of the device pixel ratio used in rendering and canvas/artboard resizing
5265
+ this._devicePixelRatioUsed = 1;
5247
5266
  // Whether the canvas element's size is 0
5248
5267
  this._hasZeroSize = false;
5249
5268
  // Durations to generate a frame for the last second. Used for performance profiling.
@@ -5405,6 +5424,7 @@ var Rive = /** @class */ (function () {
5405
5424
  fit: this._layout.runtimeFit(this.runtime),
5406
5425
  alignment: this._layout.runtimeAlignment(this.runtime),
5407
5426
  isTouchScrollEnabled: touchScrollEnabledOption,
5427
+ layoutScaleFactor: this._layout.layoutScaleFactor,
5408
5428
  });
5409
5429
  }
5410
5430
  };
@@ -5434,6 +5454,15 @@ var Rive = /** @class */ (function () {
5434
5454
  }
5435
5455
  }
5436
5456
  };
5457
+ Rive.prototype.initArtboardSize = function () {
5458
+ if (!this.artboard)
5459
+ return;
5460
+ // Use preset values if they are not undefined
5461
+ this._artboardWidth = this.artboard.width =
5462
+ this._artboardWidth || this.artboard.width;
5463
+ this._artboardHeight = this.artboard.height =
5464
+ this._artboardHeight || this.artboard.height;
5465
+ };
5437
5466
  // Initializes runtime with Rive data and preps for playing
5438
5467
  Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
5439
5468
  var _a;
@@ -5458,6 +5487,8 @@ var Rive = /** @class */ (function () {
5458
5487
  this.file = this.riveFile.getInstance();
5459
5488
  // Initialize and draw frame
5460
5489
  this.initArtboard(artboardName, animationNames, stateMachineNames, autoplay);
5490
+ // Initialize the artboard size
5491
+ this.initArtboardSize();
5461
5492
  // Check for audio
5462
5493
  this.initializeAudio();
5463
5494
  // Everything's set up, emit a load event
@@ -5670,7 +5701,7 @@ var Rive = /** @class */ (function () {
5670
5701
  minY: _layout.minY,
5671
5702
  maxX: _layout.maxX,
5672
5703
  maxY: _layout.maxY,
5673
- }, artboard.bounds);
5704
+ }, artboard.bounds, this._devicePixelRatioUsed * _layout.layoutScaleFactor);
5674
5705
  };
5675
5706
  Object.defineProperty(Rive.prototype, "fps", {
5676
5707
  get: function () {
@@ -5917,16 +5948,27 @@ var Rive = /** @class */ (function () {
5917
5948
  * Accounts for devicePixelRatio as a multiplier to render the size of the canvas drawing surface.
5918
5949
  * Uses the size of the backing canvas to set new width/height attributes. Need to re-render
5919
5950
  * and resize the layout to match the new drawing surface afterwards.
5920
- * Useful function for consumers to include in a window resize listener
5951
+ * Useful function for consumers to include in a window resize listener.
5952
+ *
5953
+ * This method will set the {@link devicePixelRatioUsed} property.
5954
+ *
5955
+ * Optionally, you can provide a {@link customDevicePixelRatio} to provide a
5956
+ * custom value.
5921
5957
  */
5922
5958
  Rive.prototype.resizeDrawingSurfaceToCanvas = function (customDevicePixelRatio) {
5923
5959
  if (this.canvas instanceof HTMLCanvasElement && !!window) {
5924
5960
  var _a = this.canvas.getBoundingClientRect(), width = _a.width, height = _a.height;
5925
5961
  var dpr = customDevicePixelRatio || window.devicePixelRatio || 1;
5962
+ this.devicePixelRatioUsed = dpr;
5926
5963
  this.canvas.width = dpr * width;
5927
5964
  this.canvas.height = dpr * height;
5928
5965
  this.startRendering();
5929
5966
  this.resizeToCanvas();
5967
+ if (this.layout.fit === Fit.Layout) {
5968
+ var scaleFactor = this._layout.layoutScaleFactor;
5969
+ this.artboard.width = width / scaleFactor;
5970
+ this.artboard.height = height / scaleFactor;
5971
+ }
5930
5972
  }
5931
5973
  };
5932
5974
  Object.defineProperty(Rive.prototype, "source", {
@@ -6377,7 +6419,7 @@ var Rive = /** @class */ (function () {
6377
6419
  });
6378
6420
  Object.defineProperty(Rive.prototype, "volume", {
6379
6421
  /**
6380
- * getter and setter for the volume of the artboard
6422
+ * Getter / Setter for the volume of the artboard
6381
6423
  */
6382
6424
  get: function () {
6383
6425
  if (this.artboard && this.artboard.volume !== this._volume) {
@@ -6394,6 +6436,89 @@ var Rive = /** @class */ (function () {
6394
6436
  enumerable: false,
6395
6437
  configurable: true
6396
6438
  });
6439
+ Object.defineProperty(Rive.prototype, "artboardWidth", {
6440
+ /**
6441
+ * The width of the artboard.
6442
+ *
6443
+ * This will return undefined if the artboard is not loaded yet and a custom
6444
+ * width has not been set.
6445
+ *
6446
+ * Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
6447
+ * with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard width is
6448
+ * automatically set.
6449
+ */
6450
+ get: function () {
6451
+ if (this.artboard) {
6452
+ return this.artboard.width;
6453
+ }
6454
+ return this._artboardWidth;
6455
+ },
6456
+ set: function (value) {
6457
+ this._artboardWidth = value;
6458
+ if (this.artboard) {
6459
+ this.artboard.width = value;
6460
+ }
6461
+ },
6462
+ enumerable: false,
6463
+ configurable: true
6464
+ });
6465
+ Object.defineProperty(Rive.prototype, "artboardHeight", {
6466
+ /**
6467
+ * The height of the artboard.
6468
+ *
6469
+ * This will return undefined if the artboard is not loaded yet and a custom
6470
+ * height has not been set.
6471
+ *
6472
+ * Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
6473
+ * with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard height is
6474
+ * automatically set.
6475
+ */
6476
+ get: function () {
6477
+ if (this.artboard) {
6478
+ return this.artboard.height;
6479
+ }
6480
+ return this._artboardHeight;
6481
+ },
6482
+ set: function (value) {
6483
+ this._artboardHeight = value;
6484
+ if (this.artboard) {
6485
+ this.artboard.height = value;
6486
+ }
6487
+ },
6488
+ enumerable: false,
6489
+ configurable: true
6490
+ });
6491
+ /**
6492
+ * Reset the artboard size to its original values.
6493
+ */
6494
+ Rive.prototype.resetArtboardSize = function () {
6495
+ if (this.artboard) {
6496
+ this.artboard.resetArtboardSize();
6497
+ this._artboardWidth = this.artboard.width;
6498
+ this._artboardHeight = this.artboard.height;
6499
+ }
6500
+ else {
6501
+ // If the artboard isn't loaded, we need to reset the custom width and height
6502
+ this._artboardWidth = undefined;
6503
+ this._artboardHeight = undefined;
6504
+ }
6505
+ };
6506
+ Object.defineProperty(Rive.prototype, "devicePixelRatioUsed", {
6507
+ /**
6508
+ * The device pixel ratio used in rendering and canvas/artboard resizing.
6509
+ *
6510
+ * This value will be overidden by the device pixel ratio used in
6511
+ * {@link resizeDrawingSurfaceToCanvas}. If you use that method, do not set this value.
6512
+ */
6513
+ get: function () {
6514
+ return this._devicePixelRatioUsed;
6515
+ },
6516
+ set: function (value) {
6517
+ this._devicePixelRatioUsed = value;
6518
+ },
6519
+ enumerable: false,
6520
+ configurable: true
6521
+ });
6397
6522
  // Error message for missing source or buffer
6398
6523
  Rive.missingErrorMessage = "Rive source file or data buffer required";
6399
6524
  return Rive;