fleethub-core 1.11.24 → 1.12.1

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.
@@ -1,15 +1,32 @@
1
+
1
2
  let imports = {};
2
3
  imports['__wbindgen_placeholder__'] = module.exports;
3
4
  let wasm;
4
5
  const { createEquipmentBonuses } = require(`equipment-bonus`);
5
6
  const { TextDecoder, TextEncoder } = require(`util`);
6
7
 
8
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
9
+
10
+ cachedTextDecoder.decode();
11
+
12
+ let cachedUint8ArrayMemory0 = null;
13
+
14
+ function getUint8ArrayMemory0() {
15
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
16
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
17
+ }
18
+ return cachedUint8ArrayMemory0;
19
+ }
20
+
21
+ function getStringFromWasm0(ptr, len) {
22
+ ptr = ptr >>> 0;
23
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ }
25
+
7
26
  const heap = new Array(128).fill(undefined);
8
27
 
9
28
  heap.push(undefined, null, true, false);
10
29
 
11
- function getObject(idx) { return heap[idx]; }
12
-
13
30
  let heap_next = heap.length;
14
31
 
15
32
  function addHeapObject(obj) {
@@ -21,6 +38,8 @@ function addHeapObject(obj) {
21
38
  return idx;
22
39
  }
23
40
 
41
+ function getObject(idx) { return heap[idx]; }
42
+
24
43
  function dropObject(idx) {
25
44
  if (idx < 132) return;
26
45
  heap[idx] = heap_next;
@@ -33,24 +52,6 @@ function takeObject(idx) {
33
52
  return ret;
34
53
  }
35
54
 
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
39
-
40
- let cachedUint8Memory0 = null;
41
-
42
- function getUint8Memory0() {
43
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
- }
46
- return cachedUint8Memory0;
47
- }
48
-
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
- }
53
-
54
55
  let WASM_VECTOR_LEN = 0;
55
56
 
56
57
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -73,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) {
73
74
  if (realloc === undefined) {
74
75
  const buf = cachedTextEncoder.encode(arg);
75
76
  const ptr = malloc(buf.length, 1) >>> 0;
76
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
77
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
77
78
  WASM_VECTOR_LEN = buf.length;
78
79
  return ptr;
79
80
  }
@@ -81,7 +82,7 @@ function passStringToWasm0(arg, malloc, realloc) {
81
82
  let len = arg.length;
82
83
  let ptr = malloc(len, 1) >>> 0;
83
84
 
84
- const mem = getUint8Memory0();
85
+ const mem = getUint8ArrayMemory0();
85
86
 
86
87
  let offset = 0;
87
88
 
@@ -96,10 +97,11 @@ function passStringToWasm0(arg, malloc, realloc) {
96
97
  arg = arg.slice(offset);
97
98
  }
98
99
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
99
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
100
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
100
101
  const ret = encodeString(arg, view);
101
102
 
102
103
  offset += ret.written;
104
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
103
105
  }
104
106
 
105
107
  WASM_VECTOR_LEN = offset;
@@ -110,39 +112,21 @@ function isLikeNone(x) {
110
112
  return x === undefined || x === null;
111
113
  }
112
114
 
113
- let cachedInt32Memory0 = null;
115
+ let cachedDataViewMemory0 = null;
114
116
 
115
- function getInt32Memory0() {
116
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
117
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
117
+ function getDataViewMemory0() {
118
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
119
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
118
120
  }
119
- return cachedInt32Memory0;
120
- }
121
- /**
122
- * @param {ShipConditions} value
123
- * @returns {ShipConditions}
124
- */
125
- module.exports.parse_ship_conditions = function(value) {
126
- const ret = wasm.parse_ship_conditions(addHeapObject(value));
127
- return takeObject(ret);
128
- };
129
-
130
- let cachedUint32Memory0 = null;
131
-
132
- function getUint32Memory0() {
133
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
134
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
135
- }
136
- return cachedUint32Memory0;
121
+ return cachedDataViewMemory0;
137
122
  }
138
123
 
139
124
  function getArrayJsValueFromWasm0(ptr, len) {
140
125
  ptr = ptr >>> 0;
141
- const mem = getUint32Memory0();
142
- const slice = mem.subarray(ptr / 4, ptr / 4 + len);
126
+ const mem = getDataViewMemory0();
143
127
  const result = [];
144
- for (let i = 0; i < slice.length; i++) {
145
- result.push(takeObject(slice[i]));
128
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
129
+ result.push(takeObject(mem.getUint32(i, true)));
146
130
  }
147
131
  return result;
148
132
  }
@@ -153,50 +137,50 @@ function _assertClass(instance, klass) {
153
137
  }
154
138
  return instance.ptr;
155
139
  }
140
+ /**
141
+ * @param {ShipConditions} value
142
+ * @returns {ShipConditions}
143
+ */
144
+ module.exports.parse_ship_conditions = function(value) {
145
+ const ret = wasm.parse_ship_conditions(addHeapObject(value));
146
+ return takeObject(ret);
147
+ };
156
148
 
157
- let cachedFloat64Memory0 = null;
158
-
159
- function getFloat64Memory0() {
160
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
161
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
162
- }
163
- return cachedFloat64Memory0;
164
- }
149
+ /**
150
+ */
151
+ module.exports.set_panic_hook = function() {
152
+ wasm.set_panic_hook();
153
+ };
165
154
 
166
155
  function getArrayU8FromWasm0(ptr, len) {
167
156
  ptr = ptr >>> 0;
168
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
157
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
169
158
  }
170
159
 
171
160
  function passArray8ToWasm0(arg, malloc) {
172
161
  const ptr = malloc(arg.length * 1, 1) >>> 0;
173
- getUint8Memory0().set(arg, ptr / 1);
162
+ getUint8ArrayMemory0().set(arg, ptr / 1);
174
163
  WASM_VECTOR_LEN = arg.length;
175
164
  return ptr;
176
165
  }
177
- /**
178
- */
179
- module.exports.set_panic_hook = function() {
180
- wasm.set_panic_hook();
181
- };
182
166
 
183
- let cachedUint16Memory0 = null;
167
+ let cachedUint16ArrayMemory0 = null;
184
168
 
185
- function getUint16Memory0() {
186
- if (cachedUint16Memory0 === null || cachedUint16Memory0.byteLength === 0) {
187
- cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
169
+ function getUint16ArrayMemory0() {
170
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
171
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
188
172
  }
189
- return cachedUint16Memory0;
173
+ return cachedUint16ArrayMemory0;
190
174
  }
191
175
 
192
176
  function getArrayU16FromWasm0(ptr, len) {
193
177
  ptr = ptr >>> 0;
194
- return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
178
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
195
179
  }
196
180
 
197
181
  function passArray16ToWasm0(arg, malloc) {
198
182
  const ptr = malloc(arg.length * 2, 2) >>> 0;
199
- getUint16Memory0().set(arg, ptr / 2);
183
+ getUint16ArrayMemory0().set(arg, ptr / 2);
200
184
  WASM_VECTOR_LEN = arg.length;
201
185
  return ptr;
202
186
  }
@@ -209,7 +193,9 @@ function handleError(f, args) {
209
193
  }
210
194
  }
211
195
 
212
- const AirSquadronFinalization = new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr >>> 0));
196
+ const AirSquadronFinalization = (typeof FinalizationRegistry === 'undefined')
197
+ ? { register: () => {}, unregister: () => {} }
198
+ : new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr >>> 0, 1));
213
199
  /**
214
200
  */
215
201
  class AirSquadron {
@@ -231,7 +217,7 @@ class AirSquadron {
231
217
 
232
218
  free() {
233
219
  const ptr = this.__destroy_into_raw();
234
- wasm.__wbg_airsquadron_free(ptr);
220
+ wasm.__wbg_airsquadron_free(ptr, 0);
235
221
  }
236
222
  /**
237
223
  * @returns {string}
@@ -242,8 +228,8 @@ class AirSquadron {
242
228
  try {
243
229
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
244
230
  wasm.__wbg_get_airsquadron_id(retptr, this.__wbg_ptr);
245
- var r0 = getInt32Memory0()[retptr / 4 + 0];
246
- var r1 = getInt32Memory0()[retptr / 4 + 1];
231
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
232
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
247
233
  deferred1_0 = r0;
248
234
  deferred1_1 = r1;
249
235
  return getStringFromWasm0(r0, r1);
@@ -304,9 +290,9 @@ class AirSquadron {
304
290
  try {
305
291
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
306
292
  wasm.airsquadron_get_slot_size(retptr, this.__wbg_ptr, index);
307
- var r0 = getInt32Memory0()[retptr / 4 + 0];
308
- var r1 = getInt32Memory0()[retptr / 4 + 1];
309
- var r2 = getInt32Memory0()[retptr / 4 + 2];
293
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
294
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
295
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
310
296
  if (r2) {
311
297
  throw takeObject(r1);
312
298
  }
@@ -323,9 +309,9 @@ class AirSquadron {
323
309
  try {
324
310
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
325
311
  wasm.airsquadron_get_max_slot_size(retptr, this.__wbg_ptr, index);
326
- var r0 = getInt32Memory0()[retptr / 4 + 0];
327
- var r1 = getInt32Memory0()[retptr / 4 + 1];
328
- var r2 = getInt32Memory0()[retptr / 4 + 2];
312
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
313
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
314
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
329
315
  if (r2) {
330
316
  throw takeObject(r1);
331
317
  }
@@ -359,7 +345,9 @@ class AirSquadron {
359
345
  }
360
346
  module.exports.AirSquadron = AirSquadron;
361
347
 
362
- const AnalyzerFinalization = new FinalizationRegistry(ptr => wasm.__wbg_analyzer_free(ptr >>> 0));
348
+ const AnalyzerFinalization = (typeof FinalizationRegistry === 'undefined')
349
+ ? { register: () => {}, unregister: () => {} }
350
+ : new FinalizationRegistry(ptr => wasm.__wbg_analyzer_free(ptr >>> 0, 1));
363
351
  /**
364
352
  */
365
353
  class Analyzer {
@@ -381,7 +369,7 @@ class Analyzer {
381
369
 
382
370
  free() {
383
371
  const ptr = this.__destroy_into_raw();
384
- wasm.__wbg_analyzer_free(ptr);
372
+ wasm.__wbg_analyzer_free(ptr, 0);
385
373
  }
386
374
  /**
387
375
  * @param {ShipAnalyzerConfig} config
@@ -435,9 +423,9 @@ class Analyzer {
435
423
  _assertClass(player_comp, Comp);
436
424
  _assertClass(enemy_comp, Comp);
437
425
  wasm.analyzer_simulate_support_shelling(retptr, this.__wbg_ptr, player_comp.__wbg_ptr, enemy_comp.__wbg_ptr, addHeapObject(config), times);
438
- var r0 = getInt32Memory0()[retptr / 4 + 0];
439
- var r1 = getInt32Memory0()[retptr / 4 + 1];
440
- var r2 = getInt32Memory0()[retptr / 4 + 2];
426
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
427
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
428
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
441
429
  if (r2) {
442
430
  throw takeObject(r1);
443
431
  }
@@ -449,7 +437,9 @@ class Analyzer {
449
437
  }
450
438
  module.exports.Analyzer = Analyzer;
451
439
 
452
- const CompFinalization = new FinalizationRegistry(ptr => wasm.__wbg_comp_free(ptr >>> 0));
440
+ const CompFinalization = (typeof FinalizationRegistry === 'undefined')
441
+ ? { register: () => {}, unregister: () => {} }
442
+ : new FinalizationRegistry(ptr => wasm.__wbg_comp_free(ptr >>> 0, 1));
453
443
  /**
454
444
  */
455
445
  class Comp {
@@ -471,7 +461,7 @@ class Comp {
471
461
 
472
462
  free() {
473
463
  const ptr = this.__destroy_into_raw();
474
- wasm.__wbg_comp_free(ptr);
464
+ wasm.__wbg_comp_free(ptr, 0);
475
465
  }
476
466
  /**
477
467
  * @returns {OrgType}
@@ -510,7 +500,7 @@ class Comp {
510
500
  return ret === 0 ? undefined : Fleet.__wrap(ret);
511
501
  }
512
502
  /**
513
- * @param {Fleet | undefined} arg0
503
+ * @param {Fleet | undefined} [arg0]
514
504
  */
515
505
  set escort(arg0) {
516
506
  let ptr0 = 0;
@@ -528,7 +518,7 @@ class Comp {
528
518
  return ret === 0 ? undefined : Fleet.__wrap(ret);
529
519
  }
530
520
  /**
531
- * @param {Fleet | undefined} arg0
521
+ * @param {Fleet | undefined} [arg0]
532
522
  */
533
523
  set route_sup(arg0) {
534
524
  let ptr0 = 0;
@@ -546,7 +536,7 @@ class Comp {
546
536
  return ret === 0 ? undefined : Fleet.__wrap(ret);
547
537
  }
548
538
  /**
549
- * @param {Fleet | undefined} arg0
539
+ * @param {Fleet | undefined} [arg0]
550
540
  */
551
541
  set boss_sup(arg0) {
552
542
  let ptr0 = 0;
@@ -601,12 +591,12 @@ class Comp {
601
591
  try {
602
592
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
603
593
  wasm.comp_first_ship_id(retptr, this.__wbg_ptr);
604
- var r0 = getInt32Memory0()[retptr / 4 + 0];
605
- var r1 = getInt32Memory0()[retptr / 4 + 1];
594
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
595
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
606
596
  let v1;
607
597
  if (r0 !== 0) {
608
598
  v1 = getStringFromWasm0(r0, r1).slice();
609
- wasm.__wbindgen_free(r0, r1 * 1);
599
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
610
600
  }
611
601
  return v1;
612
602
  } finally {
@@ -635,12 +625,12 @@ class Comp {
635
625
  try {
636
626
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
637
627
  wasm.comp_get_fleet_id(retptr, this.__wbg_ptr, addHeapObject(ft));
638
- var r0 = getInt32Memory0()[retptr / 4 + 0];
639
- var r1 = getInt32Memory0()[retptr / 4 + 1];
628
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
629
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
640
630
  let v1;
641
631
  if (r0 !== 0) {
642
632
  v1 = getStringFromWasm0(r0, r1).slice();
643
- wasm.__wbindgen_free(r0, r1 * 1);
633
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
644
634
  }
645
635
  return v1;
646
636
  } finally {
@@ -665,12 +655,12 @@ class Comp {
665
655
  try {
666
656
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
667
657
  wasm.comp_get_ship_entity_id(retptr, this.__wbg_ptr, addHeapObject(ft), addHeapObject(key));
668
- var r0 = getInt32Memory0()[retptr / 4 + 0];
669
- var r1 = getInt32Memory0()[retptr / 4 + 1];
658
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
659
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
670
660
  let v1;
671
661
  if (r0 !== 0) {
672
662
  v1 = getStringFromWasm0(r0, r1).slice();
673
- wasm.__wbindgen_free(r0, r1 * 1);
663
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
674
664
  }
675
665
  return v1;
676
666
  } finally {
@@ -713,8 +703,8 @@ class Comp {
713
703
  try {
714
704
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
715
705
  wasm.comp_fighter_power(retptr, this.__wbg_ptr, escort_participates, addHeapObject(air_type));
716
- var r0 = getInt32Memory0()[retptr / 4 + 0];
717
- var r1 = getInt32Memory0()[retptr / 4 + 1];
706
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
707
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
718
708
  return r0 === 0 ? undefined : r1;
719
709
  } finally {
720
710
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -729,8 +719,8 @@ class Comp {
729
719
  try {
730
720
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
731
721
  wasm.comp_elos(retptr, this.__wbg_ptr, node_divaricated_factor);
732
- var r0 = getInt32Memory0()[retptr / 4 + 0];
733
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
722
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
723
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
734
724
  return r0 === 0 ? undefined : r2;
735
725
  } finally {
736
726
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -746,7 +736,7 @@ class Comp {
746
736
  }
747
737
  /**
748
738
  * @param {Ship} ship
749
- * @param {Formation | undefined} formation
739
+ * @param {Formation | undefined} [formation]
750
740
  * @returns {ShipConditions}
751
741
  */
752
742
  get_ship_conditions(ship, formation) {
@@ -762,8 +752,8 @@ class Comp {
762
752
  try {
763
753
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
764
754
  wasm.comp_fleet_los_mod(retptr, this.__wbg_ptr, addHeapObject(fleet_type));
765
- var r0 = getInt32Memory0()[retptr / 4 + 0];
766
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
755
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
756
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
767
757
  return r0 === 0 ? undefined : r2;
768
758
  } finally {
769
759
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -779,19 +769,13 @@ class Comp {
779
769
  }
780
770
  module.exports.Comp = Comp;
781
771
 
782
- const FhCoreFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr >>> 0));
772
+ const FhCoreFinalization = (typeof FinalizationRegistry === 'undefined')
773
+ ? { register: () => {}, unregister: () => {} }
774
+ : new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr >>> 0, 1));
783
775
  /**
784
776
  */
785
777
  class FhCore {
786
778
 
787
- static __wrap(ptr) {
788
- ptr = ptr >>> 0;
789
- const obj = Object.create(FhCore.prototype);
790
- obj.__wbg_ptr = ptr;
791
- FhCoreFinalization.register(obj, obj.__wbg_ptr, obj);
792
- return obj;
793
- }
794
-
795
779
  __destroy_into_raw() {
796
780
  const ptr = this.__wbg_ptr;
797
781
  this.__wbg_ptr = 0;
@@ -801,7 +785,7 @@ class FhCore {
801
785
 
802
786
  free() {
803
787
  const ptr = this.__destroy_into_raw();
804
- wasm.__wbg_fhcore_free(ptr);
788
+ wasm.__wbg_fhcore_free(ptr, 0);
805
789
  }
806
790
  /**
807
791
  * @param {MasterData} js_master
@@ -810,19 +794,21 @@ class FhCore {
810
794
  try {
811
795
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
812
796
  wasm.fhcore_new(retptr, addHeapObject(js_master));
813
- var r0 = getInt32Memory0()[retptr / 4 + 0];
814
- var r1 = getInt32Memory0()[retptr / 4 + 1];
815
- var r2 = getInt32Memory0()[retptr / 4 + 2];
797
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
798
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
799
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
816
800
  if (r2) {
817
801
  throw takeObject(r1);
818
802
  }
819
- return FhCore.__wrap(r0);
803
+ this.__wbg_ptr = r0 >>> 0;
804
+ FhCoreFinalization.register(this, this.__wbg_ptr, this);
805
+ return this;
820
806
  } finally {
821
807
  wasm.__wbindgen_add_to_stack_pointer(16);
822
808
  }
823
809
  }
824
810
  /**
825
- * @param {GearState | undefined} input
811
+ * @param {GearState | undefined} [input]
826
812
  * @returns {Gear | undefined}
827
813
  */
828
814
  create_gear(input) {
@@ -830,7 +816,7 @@ class FhCore {
830
816
  return ret === 0 ? undefined : Gear.__wrap(ret);
831
817
  }
832
818
  /**
833
- * @param {ShipState | undefined} input
819
+ * @param {ShipState | undefined} [input]
834
820
  * @returns {Ship | undefined}
835
821
  */
836
822
  create_ship(input) {
@@ -838,7 +824,7 @@ class FhCore {
838
824
  return ret === 0 ? undefined : Ship.__wrap(ret);
839
825
  }
840
826
  /**
841
- * @param {AirSquadronState | undefined} input
827
+ * @param {AirSquadronState | undefined} [input]
842
828
  * @returns {AirSquadron}
843
829
  */
844
830
  create_air_squadron(input) {
@@ -846,7 +832,7 @@ class FhCore {
846
832
  return AirSquadron.__wrap(ret);
847
833
  }
848
834
  /**
849
- * @param {FleetState | undefined} input
835
+ * @param {FleetState | undefined} [input]
850
836
  * @returns {Fleet}
851
837
  */
852
838
  create_fleet(input) {
@@ -854,7 +840,7 @@ class FhCore {
854
840
  return Fleet.__wrap(ret);
855
841
  }
856
842
  /**
857
- * @param {OrgState | undefined} input
843
+ * @param {OrgState | undefined} [input]
858
844
  * @returns {Org | undefined}
859
845
  */
860
846
  create_org(input) {
@@ -886,7 +872,7 @@ class FhCore {
886
872
  }
887
873
  /**
888
874
  * @param {Uint16Array} main
889
- * @param {Uint16Array | undefined} escort
875
+ * @param {Uint16Array | undefined} [escort]
890
876
  * @returns {Comp}
891
877
  */
892
878
  create_comp_by_map_enemy(main, escort) {
@@ -914,7 +900,9 @@ class FhCore {
914
900
  }
915
901
  module.exports.FhCore = FhCore;
916
902
 
917
- const FleetFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fleet_free(ptr >>> 0));
903
+ const FleetFinalization = (typeof FinalizationRegistry === 'undefined')
904
+ ? { register: () => {}, unregister: () => {} }
905
+ : new FinalizationRegistry(ptr => wasm.__wbg_fleet_free(ptr >>> 0, 1));
918
906
  /**
919
907
  */
920
908
  class Fleet {
@@ -936,7 +924,7 @@ class Fleet {
936
924
 
937
925
  free() {
938
926
  const ptr = this.__destroy_into_raw();
939
- wasm.__wbg_fleet_free(ptr);
927
+ wasm.__wbg_fleet_free(ptr, 0);
940
928
  }
941
929
  /**
942
930
  * @returns {string}
@@ -947,8 +935,8 @@ class Fleet {
947
935
  try {
948
936
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
949
937
  wasm.__wbg_get_fleet_id(retptr, this.__wbg_ptr);
950
- var r0 = getInt32Memory0()[retptr / 4 + 0];
951
- var r1 = getInt32Memory0()[retptr / 4 + 1];
938
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
939
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
952
940
  deferred1_0 = r0;
953
941
  deferred1_1 = r1;
954
942
  return getStringFromWasm0(r0, r1);
@@ -993,10 +981,10 @@ class Fleet {
993
981
  try {
994
982
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
995
983
  wasm.fleet_ship_keys(retptr, this.__wbg_ptr);
996
- var r0 = getInt32Memory0()[retptr / 4 + 0];
997
- var r1 = getInt32Memory0()[retptr / 4 + 1];
984
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
985
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
998
986
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
999
- wasm.__wbindgen_free(r0, r1 * 4);
987
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1000
988
  return v1;
1001
989
  } finally {
1002
990
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1009,10 +997,10 @@ class Fleet {
1009
997
  try {
1010
998
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1011
999
  wasm.fleet_ship_ids(retptr, this.__wbg_ptr);
1012
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1013
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1000
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1001
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1014
1002
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1015
- wasm.__wbindgen_free(r0, r1 * 4);
1003
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1016
1004
  return v1;
1017
1005
  } finally {
1018
1006
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1025,10 +1013,10 @@ class Fleet {
1025
1013
  try {
1026
1014
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1027
1015
  wasm.fleet_get_gear_ids_by_improvable(retptr, this.__wbg_ptr);
1028
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1029
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1016
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1017
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1030
1018
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1031
- wasm.__wbindgen_free(r0, r1 * 4);
1019
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1032
1020
  return v1;
1033
1021
  } finally {
1034
1022
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1041,10 +1029,10 @@ class Fleet {
1041
1029
  try {
1042
1030
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1043
1031
  wasm.fleet_get_gear_ids_by_proficiency(retptr, this.__wbg_ptr);
1044
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1045
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1032
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1033
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1046
1034
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1047
- wasm.__wbindgen_free(r0, r1 * 4);
1035
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1048
1036
  return v1;
1049
1037
  } finally {
1050
1038
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1107,8 +1095,8 @@ class Fleet {
1107
1095
  try {
1108
1096
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1109
1097
  wasm.fleet_fleet_los_mod(retptr, this.__wbg_ptr);
1110
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1111
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1098
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1099
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1112
1100
  return r0 === 0 ? undefined : r2;
1113
1101
  } finally {
1114
1102
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1122,8 +1110,8 @@ class Fleet {
1122
1110
  try {
1123
1111
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1124
1112
  wasm.fleet_fighter_power(retptr, this.__wbg_ptr, addHeapObject(air_type));
1125
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1126
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1113
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1114
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1127
1115
  return r0 === 0 ? undefined : r1;
1128
1116
  } finally {
1129
1117
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1139,8 +1127,8 @@ class Fleet {
1139
1127
  try {
1140
1128
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1141
1129
  wasm.fleet_elos(retptr, this.__wbg_ptr, hq_level, node_divaricated_factor);
1142
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1143
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1130
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1131
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1144
1132
  return r0 === 0 ? undefined : r2;
1145
1133
  } finally {
1146
1134
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1154,8 +1142,8 @@ class Fleet {
1154
1142
  try {
1155
1143
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1156
1144
  wasm.fleet_aviation_detection_score(retptr, this.__wbg_ptr);
1157
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1158
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1145
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1146
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1159
1147
  return r0 === 0 ? undefined : r2;
1160
1148
  } finally {
1161
1149
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1179,8 +1167,8 @@ class Fleet {
1179
1167
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1180
1168
  const len0 = WASM_VECTOR_LEN;
1181
1169
  wasm.fleet_sum_ship_stat_by(retptr, this.__wbg_ptr, ptr0, len0);
1182
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1183
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1170
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1171
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1184
1172
  return r0 === 0 ? undefined : r2;
1185
1173
  } finally {
1186
1174
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1194,7 +1182,9 @@ class Fleet {
1194
1182
  }
1195
1183
  module.exports.Fleet = Fleet;
1196
1184
 
1197
- const GearFinalization = new FinalizationRegistry(ptr => wasm.__wbg_gear_free(ptr >>> 0));
1185
+ const GearFinalization = (typeof FinalizationRegistry === 'undefined')
1186
+ ? { register: () => {}, unregister: () => {} }
1187
+ : new FinalizationRegistry(ptr => wasm.__wbg_gear_free(ptr >>> 0, 1));
1198
1188
  /**
1199
1189
  */
1200
1190
  class Gear {
@@ -1216,7 +1206,7 @@ class Gear {
1216
1206
 
1217
1207
  free() {
1218
1208
  const ptr = this.__destroy_into_raw();
1219
- wasm.__wbg_gear_free(ptr);
1209
+ wasm.__wbg_gear_free(ptr, 0);
1220
1210
  }
1221
1211
  /**
1222
1212
  * @returns {string}
@@ -1227,8 +1217,8 @@ class Gear {
1227
1217
  try {
1228
1218
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1229
1219
  wasm.__wbg_get_gear_id(retptr, this.__wbg_ptr);
1230
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1231
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1220
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1221
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1232
1222
  deferred1_0 = r0;
1233
1223
  deferred1_1 = r1;
1234
1224
  return getStringFromWasm0(r0, r1);
@@ -1289,8 +1279,8 @@ class Gear {
1289
1279
  try {
1290
1280
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1291
1281
  wasm.__wbg_get_gear_name(retptr, this.__wbg_ptr);
1292
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1293
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1282
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1283
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1294
1284
  deferred1_0 = r0;
1295
1285
  deferred1_1 = r1;
1296
1286
  return getStringFromWasm0(r0, r1);
@@ -1314,10 +1304,10 @@ class Gear {
1314
1304
  try {
1315
1305
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1316
1306
  wasm.__wbg_get_gear_types(retptr, this.__wbg_ptr);
1317
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1318
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1307
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1308
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1319
1309
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1320
- wasm.__wbindgen_free(r0, r1 * 1);
1310
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1321
1311
  return v1;
1322
1312
  } finally {
1323
1313
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1553,7 +1543,7 @@ class Gear {
1553
1543
  * @returns {boolean}
1554
1544
  */
1555
1545
  has_proficiency() {
1556
- const ret = wasm.gear_can_be_deployed_to_land_base(this.__wbg_ptr);
1546
+ const ret = wasm.gear_has_proficiency(this.__wbg_ptr);
1557
1547
  return ret !== 0;
1558
1548
  }
1559
1549
  /**
@@ -1699,7 +1689,9 @@ class Gear {
1699
1689
  }
1700
1690
  module.exports.Gear = Gear;
1701
1691
 
1702
- const OrgFinalization = new FinalizationRegistry(ptr => wasm.__wbg_org_free(ptr >>> 0));
1692
+ const OrgFinalization = (typeof FinalizationRegistry === 'undefined')
1693
+ ? { register: () => {}, unregister: () => {} }
1694
+ : new FinalizationRegistry(ptr => wasm.__wbg_org_free(ptr >>> 0, 1));
1703
1695
  /**
1704
1696
  */
1705
1697
  class Org {
@@ -1721,7 +1713,7 @@ class Org {
1721
1713
 
1722
1714
  free() {
1723
1715
  const ptr = this.__destroy_into_raw();
1724
- wasm.__wbg_org_free(ptr);
1716
+ wasm.__wbg_org_free(ptr, 0);
1725
1717
  }
1726
1718
  /**
1727
1719
  * @returns {string}
@@ -1732,8 +1724,8 @@ class Org {
1732
1724
  try {
1733
1725
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1734
1726
  wasm.__wbg_get_org_id(retptr, this.__wbg_ptr);
1735
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1736
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1727
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1728
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1737
1729
  deferred1_0 = r0;
1738
1730
  deferred1_1 = r1;
1739
1731
  return getStringFromWasm0(r0, r1);
@@ -1754,7 +1746,7 @@ class Org {
1754
1746
  * @returns {bigint}
1755
1747
  */
1756
1748
  get hash() {
1757
- const ret = wasm.__wbg_get_org_hash(this.__wbg_ptr);
1749
+ const ret = wasm.__wbg_get_gear_hash(this.__wbg_ptr);
1758
1750
  return BigInt.asUintN(64, ret);
1759
1751
  }
1760
1752
  /**
@@ -1799,12 +1791,12 @@ class Org {
1799
1791
  try {
1800
1792
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1801
1793
  wasm.org_first_ship_id(retptr, this.__wbg_ptr);
1802
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1803
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1794
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1795
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1804
1796
  let v1;
1805
1797
  if (r0 !== 0) {
1806
1798
  v1 = getStringFromWasm0(r0, r1).slice();
1807
- wasm.__wbindgen_free(r0, r1 * 1);
1799
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1808
1800
  }
1809
1801
  return v1;
1810
1802
  } finally {
@@ -1829,12 +1821,12 @@ class Org {
1829
1821
  try {
1830
1822
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1831
1823
  wasm.org_get_ship_eid(retptr, this.__wbg_ptr, addHeapObject(fleet_key), addHeapObject(ship_key));
1832
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1833
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1824
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1825
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1834
1826
  let v1;
1835
1827
  if (r0 !== 0) {
1836
1828
  v1 = getStringFromWasm0(r0, r1).slice();
1837
- wasm.__wbindgen_free(r0, r1 * 1);
1829
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1838
1830
  }
1839
1831
  return v1;
1840
1832
  } finally {
@@ -1851,8 +1843,8 @@ class Org {
1851
1843
  try {
1852
1844
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1853
1845
  wasm.org_get_fleet_id(retptr, this.__wbg_ptr, addHeapObject(key));
1854
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1855
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1846
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1847
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1856
1848
  deferred1_0 = r0;
1857
1849
  deferred1_1 = r1;
1858
1850
  return getStringFromWasm0(r0, r1);
@@ -1868,10 +1860,10 @@ class Org {
1868
1860
  try {
1869
1861
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1870
1862
  wasm.org_air_squadron_ids(retptr, this.__wbg_ptr);
1871
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1872
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1863
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1864
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1873
1865
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1874
- wasm.__wbindgen_free(r0, r1 * 4);
1866
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1875
1867
  return v1;
1876
1868
  } finally {
1877
1869
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1884,10 +1876,10 @@ class Org {
1884
1876
  try {
1885
1877
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1886
1878
  wasm.org_main_ship_ids(retptr, this.__wbg_ptr);
1887
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1888
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1879
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1880
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1889
1881
  var v1 = getArrayU16FromWasm0(r0, r1).slice();
1890
- wasm.__wbindgen_free(r0, r1 * 2);
1882
+ wasm.__wbindgen_free(r0, r1 * 2, 2);
1891
1883
  return v1;
1892
1884
  } finally {
1893
1885
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1900,10 +1892,10 @@ class Org {
1900
1892
  try {
1901
1893
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1902
1894
  wasm.org_escort_ship_ids(retptr, this.__wbg_ptr);
1903
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1904
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1895
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1896
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1905
1897
  var v1 = getArrayU16FromWasm0(r0, r1).slice();
1906
- wasm.__wbindgen_free(r0, r1 * 2);
1898
+ wasm.__wbindgen_free(r0, r1 * 2, 2);
1907
1899
  return v1;
1908
1900
  } finally {
1909
1901
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1944,10 +1936,10 @@ class Org {
1944
1936
  try {
1945
1937
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1946
1938
  wasm.org_ship_keys(retptr, this.__wbg_ptr, addHeapObject(key));
1947
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1948
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1939
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1940
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1949
1941
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1950
- wasm.__wbindgen_free(r0, r1 * 4);
1942
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1951
1943
  return v1;
1952
1944
  } finally {
1953
1945
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1978,9 +1970,9 @@ class Org {
1978
1970
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1979
1971
  const len0 = WASM_VECTOR_LEN;
1980
1972
  wasm.org_get_air_squadron(retptr, this.__wbg_ptr, ptr0, len0);
1981
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1982
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1983
- var r2 = getInt32Memory0()[retptr / 4 + 2];
1973
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1974
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1975
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1984
1976
  if (r2) {
1985
1977
  throw takeObject(r1);
1986
1978
  }
@@ -1996,10 +1988,10 @@ class Org {
1996
1988
  try {
1997
1989
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1998
1990
  wasm.org_get_air_squadron_gear_ids_by_improvable(retptr, this.__wbg_ptr);
1999
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2000
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1991
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1992
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2001
1993
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2002
- wasm.__wbindgen_free(r0, r1 * 4);
1994
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2003
1995
  return v1;
2004
1996
  } finally {
2005
1997
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2012,10 +2004,10 @@ class Org {
2012
2004
  try {
2013
2005
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2014
2006
  wasm.org_get_air_squadron_gear_ids_by_proficiency(retptr, this.__wbg_ptr);
2015
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2016
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2007
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2008
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2017
2009
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2018
- wasm.__wbindgen_free(r0, r1 * 4);
2010
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2019
2011
  return v1;
2020
2012
  } finally {
2021
2013
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2095,7 +2087,9 @@ class Org {
2095
2087
  }
2096
2088
  module.exports.Org = Org;
2097
2089
 
2098
- const ShipFinalization = new FinalizationRegistry(ptr => wasm.__wbg_ship_free(ptr >>> 0));
2090
+ const ShipFinalization = (typeof FinalizationRegistry === 'undefined')
2091
+ ? { register: () => {}, unregister: () => {} }
2092
+ : new FinalizationRegistry(ptr => wasm.__wbg_ship_free(ptr >>> 0, 1));
2099
2093
  /**
2100
2094
  */
2101
2095
  class Ship {
@@ -2117,7 +2111,7 @@ class Ship {
2117
2111
 
2118
2112
  free() {
2119
2113
  const ptr = this.__destroy_into_raw();
2120
- wasm.__wbg_ship_free(ptr);
2114
+ wasm.__wbg_ship_free(ptr, 0);
2121
2115
  }
2122
2116
  /**
2123
2117
  * @returns {string}
@@ -2128,8 +2122,8 @@ class Ship {
2128
2122
  try {
2129
2123
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2130
2124
  wasm.__wbg_get_ship_id(retptr, this.__wbg_ptr);
2131
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2132
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2125
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2126
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2133
2127
  deferred1_0 = r0;
2134
2128
  deferred1_1 = r1;
2135
2129
  return getStringFromWasm0(r0, r1);
@@ -2367,8 +2361,8 @@ class Ship {
2367
2361
  try {
2368
2362
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2369
2363
  wasm.ship_name(retptr, this.__wbg_ptr);
2370
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2371
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2364
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2365
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2372
2366
  deferred1_0 = r0;
2373
2367
  deferred1_1 = r1;
2374
2368
  return getStringFromWasm0(r0, r1);
@@ -2386,8 +2380,8 @@ class Ship {
2386
2380
  try {
2387
2381
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2388
2382
  wasm.ship_yomi(retptr, this.__wbg_ptr);
2389
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2390
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2383
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2384
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2391
2385
  deferred1_0 = r0;
2392
2386
  deferred1_1 = r1;
2393
2387
  return getStringFromWasm0(r0, r1);
@@ -2474,10 +2468,10 @@ class Ship {
2474
2468
  try {
2475
2469
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2476
2470
  wasm.ship_gear_keys(retptr, this.__wbg_ptr);
2477
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2478
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2471
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2472
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2479
2473
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2480
- wasm.__wbindgen_free(r0, r1 * 4);
2474
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2481
2475
  return v1;
2482
2476
  } finally {
2483
2477
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2758,8 +2752,8 @@ class Ship {
2758
2752
  try {
2759
2753
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2760
2754
  wasm.ship_fighter_power(retptr, this.__wbg_ptr, addHeapObject(air_type));
2761
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2762
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2755
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2756
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2763
2757
  return r0 === 0 ? undefined : r1;
2764
2758
  } finally {
2765
2759
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2772,8 +2766,8 @@ class Ship {
2772
2766
  try {
2773
2767
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2774
2768
  wasm.ship_fleet_los_factor(retptr, this.__wbg_ptr);
2775
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2776
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2769
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2770
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2777
2771
  return r0 === 0 ? undefined : r2;
2778
2772
  } finally {
2779
2773
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2788,8 +2782,8 @@ class Ship {
2788
2782
  try {
2789
2783
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2790
2784
  wasm.ship_ship_adjusted_anti_air(retptr, this.__wbg_ptr, addHeapObject(side));
2791
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2792
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2785
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2786
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2793
2787
  return r0 === 0 ? undefined : r2;
2794
2788
  } finally {
2795
2789
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2817,8 +2811,8 @@ class Ship {
2817
2811
  try {
2818
2812
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2819
2813
  wasm.ship_basic_accuracy_term(retptr, this.__wbg_ptr);
2820
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2821
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2814
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2815
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2822
2816
  return r0 === 0 ? undefined : r2;
2823
2817
  } finally {
2824
2818
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2831,8 +2825,8 @@ class Ship {
2831
2825
  try {
2832
2826
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2833
2827
  wasm.ship_basic_evasion_term(retptr, this.__wbg_ptr);
2834
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2835
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2828
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2829
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2836
2830
  return r0 === 0 ? undefined : r2;
2837
2831
  } finally {
2838
2832
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2848,8 +2842,8 @@ class Ship {
2848
2842
  try {
2849
2843
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2850
2844
  wasm.ship_evasion_term(retptr, this.__wbg_ptr, formation_mod, postcap_additive, postcap_multiplicative);
2851
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2852
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2845
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2846
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2853
2847
  return r0 === 0 ? undefined : r2;
2854
2848
  } finally {
2855
2849
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2863,8 +2857,8 @@ class Ship {
2863
2857
  try {
2864
2858
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2865
2859
  wasm.ship_basic_defense_power(retptr, this.__wbg_ptr, armor_penetration);
2866
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2867
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2860
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2861
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2868
2862
  return r0 === 0 ? undefined : r2;
2869
2863
  } finally {
2870
2864
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2885,8 +2879,8 @@ class Ship {
2885
2879
  try {
2886
2880
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2887
2881
  wasm.ship_elos(retptr, this.__wbg_ptr, node_divaricated_factor);
2888
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2889
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2882
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2883
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2890
2884
  return r0 === 0 ? undefined : r2;
2891
2885
  } finally {
2892
2886
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2900,8 +2894,8 @@ class Ship {
2900
2894
  try {
2901
2895
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2902
2896
  wasm.ship_ohko_power(retptr, this.__wbg_ptr);
2903
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2904
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2897
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2898
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2905
2899
  return r0 === 0 ? undefined : r2;
2906
2900
  } finally {
2907
2901
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2914,8 +2908,8 @@ class Ship {
2914
2908
  try {
2915
2909
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2916
2910
  wasm.ship_state_day_gunfit_accuracy(retptr, this.__wbg_ptr);
2917
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2918
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2911
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2912
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2919
2913
  return r0 === 0 ? undefined : r2;
2920
2914
  } finally {
2921
2915
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2928,8 +2922,8 @@ class Ship {
2928
2922
  try {
2929
2923
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2930
2924
  wasm.ship_state_night_gunfit_accuracy(retptr, this.__wbg_ptr);
2931
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2932
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2925
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2926
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2933
2927
  return r0 === 0 ? undefined : r2;
2934
2928
  } finally {
2935
2929
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2947,8 +2941,8 @@ class Ship {
2947
2941
  }
2948
2942
  module.exports.Ship = Ship;
2949
2943
 
2950
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2951
- const ret = getObject(arg0);
2944
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2945
+ const ret = getStringFromWasm0(arg0, arg1);
2952
2946
  return addHeapObject(ret);
2953
2947
  };
2954
2948
 
@@ -2956,26 +2950,26 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2956
2950
  takeObject(arg0);
2957
2951
  };
2958
2952
 
2959
- module.exports.__wbindgen_is_undefined = function(arg0) {
2960
- const ret = getObject(arg0) === undefined;
2961
- return ret;
2962
- };
2963
-
2964
2953
  module.exports.__wbg_ship_new = function(arg0) {
2965
2954
  const ret = Ship.__wrap(arg0);
2966
2955
  return addHeapObject(ret);
2967
2956
  };
2968
2957
 
2969
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2970
- const ret = getStringFromWasm0(arg0, arg1);
2958
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2959
+ const ret = getObject(arg0);
2971
2960
  return addHeapObject(ret);
2972
2961
  };
2973
2962
 
2974
- module.exports.__wbg_createEquipmentBonuses_0cb8c743513e51b4 = function(arg0, arg1) {
2963
+ module.exports.__wbg_createEquipmentBonuses_81fa4ec4b925ed16 = function(arg0, arg1) {
2975
2964
  const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
2976
2965
  return addHeapObject(ret);
2977
2966
  };
2978
2967
 
2968
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2969
+ const ret = getObject(arg0) === undefined;
2970
+ return ret;
2971
+ };
2972
+
2979
2973
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
2980
2974
  const ret = new Error();
2981
2975
  return addHeapObject(ret);
@@ -2985,8 +2979,8 @@ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
2985
2979
  const ret = getObject(arg1).stack;
2986
2980
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2987
2981
  const len1 = WASM_VECTOR_LEN;
2988
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2989
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2982
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2983
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2990
2984
  };
2991
2985
 
2992
2986
  module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
@@ -3001,7 +2995,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3001
2995
  }
3002
2996
  };
3003
2997
 
3004
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
2998
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3005
2999
  const ret = getObject(arg0).crypto;
3006
3000
  return addHeapObject(ret);
3007
3001
  };
@@ -3012,17 +3006,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
3012
3006
  return ret;
3013
3007
  };
3014
3008
 
3015
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
3009
+ module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
3016
3010
  const ret = getObject(arg0).process;
3017
3011
  return addHeapObject(ret);
3018
3012
  };
3019
3013
 
3020
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
3014
+ module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
3021
3015
  const ret = getObject(arg0).versions;
3022
3016
  return addHeapObject(ret);
3023
3017
  };
3024
3018
 
3025
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
3019
+ module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3026
3020
  const ret = getObject(arg0).node;
3027
3021
  return addHeapObject(ret);
3028
3022
  };
@@ -3032,12 +3026,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
3032
3026
  return ret;
3033
3027
  };
3034
3028
 
3035
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
3036
- const ret = getObject(arg0).msCrypto;
3037
- return addHeapObject(ret);
3038
- };
3039
-
3040
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
3029
+ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3041
3030
  const ret = module.require;
3042
3031
  return addHeapObject(ret);
3043
3032
  }, arguments) };
@@ -3047,25 +3036,30 @@ module.exports.__wbindgen_is_function = function(arg0) {
3047
3036
  return ret;
3048
3037
  };
3049
3038
 
3050
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
3051
- getObject(arg0).getRandomValues(getObject(arg1));
3052
- }, arguments) };
3039
+ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3040
+ const ret = getObject(arg0).msCrypto;
3041
+ return addHeapObject(ret);
3042
+ };
3053
3043
 
3054
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
3044
+ module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3055
3045
  getObject(arg0).randomFillSync(takeObject(arg1));
3056
3046
  }, arguments) };
3057
3047
 
3058
- module.exports.__wbg_new_898a68150f225f2e = function() {
3048
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3049
+ getObject(arg0).getRandomValues(getObject(arg1));
3050
+ }, arguments) };
3051
+
3052
+ module.exports.__wbg_new_a220cf903aa02ca2 = function() {
3059
3053
  const ret = new Array();
3060
3054
  return addHeapObject(ret);
3061
3055
  };
3062
3056
 
3063
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
3057
+ module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
3064
3058
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3065
3059
  return addHeapObject(ret);
3066
3060
  };
3067
3061
 
3068
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
3062
+ module.exports.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
3069
3063
  const ret = getObject(arg0).call(getObject(arg1));
3070
3064
  return addHeapObject(ret);
3071
3065
  }, arguments) };
@@ -3075,75 +3069,75 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
3075
3069
  const ret = typeof(obj) === 'string' ? obj : undefined;
3076
3070
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3077
3071
  var len1 = WASM_VECTOR_LEN;
3078
- getInt32Memory0()[arg0 / 4 + 1] = len1;
3079
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3072
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3073
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3080
3074
  };
3081
3075
 
3082
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
3076
+ module.exports.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
3083
3077
  const ret = self.self;
3084
3078
  return addHeapObject(ret);
3085
3079
  }, arguments) };
3086
3080
 
3087
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
3081
+ module.exports.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
3088
3082
  const ret = window.window;
3089
3083
  return addHeapObject(ret);
3090
3084
  }, arguments) };
3091
3085
 
3092
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
3086
+ module.exports.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
3093
3087
  const ret = globalThis.globalThis;
3094
3088
  return addHeapObject(ret);
3095
3089
  }, arguments) };
3096
3090
 
3097
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
3091
+ module.exports.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
3098
3092
  const ret = global.global;
3099
3093
  return addHeapObject(ret);
3100
3094
  }, arguments) };
3101
3095
 
3102
- module.exports.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) {
3096
+ module.exports.__wbg_push_37c89022f34c01ca = function(arg0, arg1) {
3103
3097
  const ret = getObject(arg0).push(getObject(arg1));
3104
3098
  return ret;
3105
3099
  };
3106
3100
 
3107
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
3101
+ module.exports.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
3108
3102
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
3109
3103
  return addHeapObject(ret);
3110
3104
  }, arguments) };
3111
3105
 
3112
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
3106
+ module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
3113
3107
  const ret = getObject(arg0).buffer;
3114
3108
  return addHeapObject(ret);
3115
3109
  };
3116
3110
 
3117
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
3111
+ module.exports.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
3118
3112
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3119
3113
  return addHeapObject(ret);
3120
3114
  };
3121
3115
 
3122
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
3116
+ module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
3123
3117
  const ret = new Uint8Array(getObject(arg0));
3124
3118
  return addHeapObject(ret);
3125
3119
  };
3126
3120
 
3127
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
3121
+ module.exports.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
3128
3122
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3129
3123
  };
3130
3124
 
3131
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
3125
+ module.exports.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
3132
3126
  const ret = new Uint8Array(arg0 >>> 0);
3133
3127
  return addHeapObject(ret);
3134
3128
  };
3135
3129
 
3136
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
3130
+ module.exports.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
3137
3131
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
3138
3132
  return addHeapObject(ret);
3139
3133
  };
3140
3134
 
3141
- module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
3135
+ module.exports.__wbg_parse_52202f117ec9ecfa = function() { return handleError(function (arg0, arg1) {
3142
3136
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
3143
3137
  return addHeapObject(ret);
3144
3138
  }, arguments) };
3145
3139
 
3146
- module.exports.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) {
3140
+ module.exports.__wbg_stringify_bbf45426c92a6bf5 = function() { return handleError(function (arg0) {
3147
3141
  const ret = JSON.stringify(getObject(arg0));
3148
3142
  return addHeapObject(ret);
3149
3143
  }, arguments) };