@rive-app/canvas-advanced-lite 2.11.0 → 2.12.0

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