lebai_sdk 0.2.26 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lebai_sdk_bg.js CHANGED
@@ -4,7 +4,11 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
- let WASM_VECTOR_LEN = 0;
7
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
8
+
9
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
+
11
+ cachedTextDecoder.decode();
8
12
 
9
13
  let cachedUint8ArrayMemory0 = null;
10
14
 
@@ -15,6 +19,28 @@ function getUint8ArrayMemory0() {
15
19
  return cachedUint8ArrayMemory0;
16
20
  }
17
21
 
22
+ function getStringFromWasm0(ptr, len) {
23
+ ptr = ptr >>> 0;
24
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
25
+ }
26
+
27
+ function addToExternrefTable0(obj) {
28
+ const idx = wasm.__externref_table_alloc();
29
+ wasm.__wbindgen_export_2.set(idx, obj);
30
+ return idx;
31
+ }
32
+
33
+ function handleError(f, args) {
34
+ try {
35
+ return f.apply(this, args);
36
+ } catch (e) {
37
+ const idx = addToExternrefTable0(e);
38
+ wasm.__wbindgen_exn_store(idx);
39
+ }
40
+ }
41
+
42
+ let WASM_VECTOR_LEN = 0;
43
+
18
44
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
19
45
 
20
46
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -71,10 +97,6 @@ function passStringToWasm0(arg, malloc, realloc) {
71
97
  return ptr;
72
98
  }
73
99
 
74
- function isLikeNone(x) {
75
- return x === undefined || x === null;
76
- }
77
-
78
100
  let cachedDataViewMemory0 = null;
79
101
 
80
102
  function getDataViewMemory0() {
@@ -84,15 +106,44 @@ function getDataViewMemory0() {
84
106
  return cachedDataViewMemory0;
85
107
  }
86
108
 
87
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
109
+ function getArrayU8FromWasm0(ptr, len) {
110
+ ptr = ptr >>> 0;
111
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
112
+ }
88
113
 
89
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
114
+ function isLikeNone(x) {
115
+ return x === undefined || x === null;
116
+ }
90
117
 
91
- cachedTextDecoder.decode();
118
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
119
+ ? { register: () => {}, unregister: () => {} }
120
+ : new FinalizationRegistry(state => {
121
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
122
+ });
92
123
 
93
- function getStringFromWasm0(ptr, len) {
94
- ptr = ptr >>> 0;
95
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
124
+ function makeMutClosure(arg0, arg1, dtor, f) {
125
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
126
+ const real = (...args) => {
127
+ // First up with a closure we increment the internal reference
128
+ // count. This ensures that the Rust closure environment won't
129
+ // be deallocated while we're invoking it.
130
+ state.cnt++;
131
+ const a = state.a;
132
+ state.a = 0;
133
+ try {
134
+ return f(a, state.b, ...args);
135
+ } finally {
136
+ if (--state.cnt === 0) {
137
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
138
+ CLOSURE_DTORS.unregister(state);
139
+ } else {
140
+ state.a = a;
141
+ }
142
+ }
143
+ };
144
+ real.original = state;
145
+ CLOSURE_DTORS.register(real, state, state);
146
+ return real;
96
147
  }
97
148
 
98
149
  function debugString(val) {
@@ -136,7 +187,7 @@ function debugString(val) {
136
187
  // Test for built-in
137
188
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
138
189
  let className;
139
- if (builtInMatches.length > 1) {
190
+ if (builtInMatches && builtInMatches.length > 1) {
140
191
  className = builtInMatches[1];
141
192
  } else {
142
193
  // Failed to match the standard '[object ClassName]'
@@ -160,58 +211,6 @@ function debugString(val) {
160
211
  return className;
161
212
  }
162
213
 
163
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
164
- ? { register: () => {}, unregister: () => {} }
165
- : new FinalizationRegistry(state => {
166
- wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
167
- });
168
-
169
- function makeMutClosure(arg0, arg1, dtor, f) {
170
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
171
- const real = (...args) => {
172
- // First up with a closure we increment the internal reference
173
- // count. This ensures that the Rust closure environment won't
174
- // be deallocated while we're invoking it.
175
- state.cnt++;
176
- const a = state.a;
177
- state.a = 0;
178
- try {
179
- return f(a, state.b, ...args);
180
- } finally {
181
- if (--state.cnt === 0) {
182
- wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
183
- CLOSURE_DTORS.unregister(state);
184
- } else {
185
- state.a = a;
186
- }
187
- }
188
- };
189
- real.original = state;
190
- CLOSURE_DTORS.register(real, state, state);
191
- return real;
192
- }
193
- function __wbg_adapter_52(arg0, arg1, arg2) {
194
- wasm.closure734_externref_shim(arg0, arg1, arg2);
195
- }
196
-
197
- function __wbg_adapter_55(arg0, arg1) {
198
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7afab51d8ce0309d(arg0, arg1);
199
- }
200
-
201
- function __wbg_adapter_62(arg0, arg1, arg2) {
202
- wasm.closure818_externref_shim(arg0, arg1, arg2);
203
- }
204
-
205
- function __wbg_adapter_65(arg0, arg1) {
206
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h396a5b79f834dadc(arg0, arg1);
207
- }
208
-
209
- function addToExternrefTable0(obj) {
210
- const idx = wasm.__externref_table_alloc();
211
- wasm.__wbindgen_export_2.set(idx, obj);
212
- return idx;
213
- }
214
-
215
214
  let cachedUint32ArrayMemory0 = null;
216
215
 
217
216
  function getUint32ArrayMemory0() {
@@ -295,23 +294,24 @@ export function version() {
295
294
  }
296
295
  }
297
296
 
298
- function handleError(f, args) {
299
- try {
300
- return f.apply(this, args);
301
- } catch (e) {
302
- const idx = addToExternrefTable0(e);
303
- wasm.__wbindgen_exn_store(idx);
304
- }
297
+ function __wbg_adapter_52(arg0, arg1, arg2) {
298
+ wasm.closure573_externref_shim(arg0, arg1, arg2);
305
299
  }
306
300
 
307
- function getArrayU8FromWasm0(ptr, len) {
308
- ptr = ptr >>> 0;
309
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
301
+ function __wbg_adapter_59(arg0, arg1) {
302
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h11255f0b8bf7d182(arg0, arg1);
303
+ }
304
+
305
+ function __wbg_adapter_62(arg0, arg1, arg2) {
306
+ wasm.closure657_externref_shim(arg0, arg1, arg2);
307
+ }
308
+
309
+ function __wbg_adapter_65(arg0, arg1) {
310
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0218551a9a7b9720(arg0, arg1);
310
311
  }
311
312
 
312
- function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
313
- function __wbg_adapter_271(arg0, arg1, arg2, arg3) {
314
- wasm.closure899_externref_shim(arg0, arg1, arg2, arg3);
313
+ function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
314
+ wasm.closure737_externref_shim(arg0, arg1, arg2, arg3);
315
315
  }
316
316
 
317
317
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -357,7 +357,7 @@ export class Robot {
357
357
  }
358
358
  /**
359
359
  * @param {string} method
360
- * @param {string | undefined} [param]
360
+ * @param {string | null} [param]
361
361
  * @returns {Promise<string>}
362
362
  */
363
363
  call(method, param) {
@@ -370,7 +370,7 @@ export class Robot {
370
370
  }
371
371
  /**
372
372
  * @param {string} method
373
- * @param {string | undefined} [param]
373
+ * @param {string | null} [param]
374
374
  * @returns {Promise<RobotSubscription>}
375
375
  */
376
376
  subscribe(method, param) {
@@ -399,7 +399,7 @@ export class Robot {
399
399
  }
400
400
  /**
401
401
  * @param {any} p
402
- * @param {any | undefined} [refer]
402
+ * @param {any | null} [refer]
403
403
  * @returns {Promise<any>}
404
404
  */
405
405
  kinematics_inverse(p, refer) {
@@ -418,7 +418,7 @@ export class Robot {
418
418
  /**
419
419
  * @param {any} pose
420
420
  * @param {any} delta
421
- * @param {any | undefined} [frame]
421
+ * @param {any | null} [frame]
422
422
  * @returns {Promise<any>}
423
423
  */
424
424
  pose_add(pose, delta, frame) {
@@ -435,9 +435,9 @@ export class Robot {
435
435
  }
436
436
  /**
437
437
  * @param {string} name
438
- * @param {any | undefined} [pose]
439
- * @param {string | undefined} [dir]
440
- * @param {any | undefined} [refer]
438
+ * @param {any | null} [pose]
439
+ * @param {string | null} [dir]
440
+ * @param {any | null} [refer]
441
441
  * @returns {Promise<void>}
442
442
  */
443
443
  save_pose(name, pose, dir, refer) {
@@ -450,8 +450,8 @@ export class Robot {
450
450
  }
451
451
  /**
452
452
  * @param {string} name
453
- * @param {string | undefined} [dir]
454
- * @param {boolean | undefined} [raw_pose]
453
+ * @param {string | null} [dir]
454
+ * @param {boolean | null} [raw_pose]
455
455
  * @returns {Promise<any>}
456
456
  */
457
457
  load_pose(name, dir, raw_pose) {
@@ -464,7 +464,7 @@ export class Robot {
464
464
  }
465
465
  /**
466
466
  * @param {string} name
467
- * @param {string | undefined} [dir]
467
+ * @param {string | null} [dir]
468
468
  * @returns {Promise<any>}
469
469
  */
470
470
  load_frame(name, dir) {
@@ -497,11 +497,11 @@ export class Robot {
497
497
  return ret;
498
498
  }
499
499
  /**
500
- * @param {number | undefined} [id]
500
+ * @param {number | null} [id]
501
501
  * @returns {Promise<void>}
502
502
  */
503
503
  wait_move(id) {
504
- const ret = wasm.robot_wait_move(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
504
+ const ret = wasm.robot_wait_move(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
505
505
  return ret;
506
506
  }
507
507
  /**
@@ -523,8 +523,8 @@ export class Robot {
523
523
  * @param {any} p
524
524
  * @param {number} a
525
525
  * @param {number} v
526
- * @param {number | undefined} [t]
527
- * @param {number | undefined} [r]
526
+ * @param {number | null} [t]
527
+ * @param {number | null} [r]
528
528
  * @returns {Promise<number>}
529
529
  */
530
530
  towardj(p, a, v, t, r) {
@@ -535,8 +535,8 @@ export class Robot {
535
535
  * @param {any} p
536
536
  * @param {number} a
537
537
  * @param {number} v
538
- * @param {number | undefined} [t]
539
- * @param {number | undefined} [r]
538
+ * @param {number | null} [t]
539
+ * @param {number | null} [r]
540
540
  * @returns {Promise<number>}
541
541
  */
542
542
  movej(p, a, v, t, r) {
@@ -547,8 +547,8 @@ export class Robot {
547
547
  * @param {any} p
548
548
  * @param {number} a
549
549
  * @param {number} v
550
- * @param {number | undefined} [t]
551
- * @param {number | undefined} [r]
550
+ * @param {number | null} [t]
551
+ * @param {number | null} [r]
552
552
  * @returns {Promise<number>}
553
553
  */
554
554
  movel(p, a, v, t, r) {
@@ -561,8 +561,8 @@ export class Robot {
561
561
  * @param {number} rad
562
562
  * @param {number} a
563
563
  * @param {number} v
564
- * @param {number | undefined} [t]
565
- * @param {number | undefined} [r]
564
+ * @param {number | null} [t]
565
+ * @param {number | null} [r]
566
566
  * @returns {Promise<number>}
567
567
  */
568
568
  movec(via, p, rad, a, v, t, r) {
@@ -601,7 +601,7 @@ export class Robot {
601
601
  }
602
602
  /**
603
603
  * @param {string} name
604
- * @param {string | undefined} [dir]
604
+ * @param {string | null} [dir]
605
605
  * @returns {Promise<number>}
606
606
  */
607
607
  move_trajectory(name, dir) {
@@ -615,7 +615,7 @@ export class Robot {
615
615
  /**
616
616
  * @param {number} a
617
617
  * @param {any} v
618
- * @param {number | undefined} [t]
618
+ * @param {number | null} [t]
619
619
  * @returns {Promise<number>}
620
620
  */
621
621
  speedj(a, v, t) {
@@ -625,8 +625,8 @@ export class Robot {
625
625
  /**
626
626
  * @param {number} a
627
627
  * @param {any} v
628
- * @param {number | undefined} [t]
629
- * @param {any | undefined} [frame]
628
+ * @param {number | null} [t]
629
+ * @param {any | null} [frame]
630
630
  * @returns {Promise<number>}
631
631
  */
632
632
  speedl(a, v, t, frame) {
@@ -841,7 +841,7 @@ export class Robot {
841
841
  }
842
842
  /**
843
843
  * @param {string} name
844
- * @param {any | undefined} [params]
844
+ * @param {any | null} [params]
845
845
  * @returns {Promise<any>}
846
846
  */
847
847
  run_plugin_cmd(name, params) {
@@ -852,10 +852,10 @@ export class Robot {
852
852
  }
853
853
  /**
854
854
  * @param {string} scene
855
- * @param {any | undefined} [params]
856
- * @param {string | undefined} [dir]
857
- * @param {boolean | undefined} [is_parallel]
858
- * @param {number | undefined} [loop_to]
855
+ * @param {any | null} [params]
856
+ * @param {string | null} [dir]
857
+ * @param {boolean | null} [is_parallel]
858
+ * @param {number | null} [loop_to]
859
859
  * @returns {Promise<number>}
860
860
  */
861
861
  start_task(scene, params, dir, is_parallel, loop_to) {
@@ -863,7 +863,7 @@ export class Robot {
863
863
  const len0 = WASM_VECTOR_LEN;
864
864
  var ptr1 = isLikeNone(dir) ? 0 : passStringToWasm0(dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
865
865
  var len1 = WASM_VECTOR_LEN;
866
- const ret = wasm.robot_start_task(this.__wbg_ptr, ptr0, len0, isLikeNone(params) ? 0 : addToExternrefTable0(params), ptr1, len1, isLikeNone(is_parallel) ? 0xFFFFFF : is_parallel ? 1 : 0, !isLikeNone(loop_to), isLikeNone(loop_to) ? 0 : loop_to);
866
+ const ret = wasm.robot_start_task(this.__wbg_ptr, ptr0, len0, isLikeNone(params) ? 0 : addToExternrefTable0(params), ptr1, len1, isLikeNone(is_parallel) ? 0xFFFFFF : is_parallel ? 1 : 0, isLikeNone(loop_to) ? 0x100000001 : (loop_to) >>> 0);
867
867
  return ret;
868
868
  }
869
869
  /**
@@ -881,43 +881,43 @@ export class Robot {
881
881
  return ret;
882
882
  }
883
883
  /**
884
- * @param {number | undefined} [id]
884
+ * @param {number | null} [id]
885
885
  * @returns {Promise<string>}
886
886
  */
887
887
  wait_task(id) {
888
- const ret = wasm.robot_wait_task(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
888
+ const ret = wasm.robot_wait_task(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
889
889
  return ret;
890
890
  }
891
891
  /**
892
- * @param {number | undefined} [id]
892
+ * @param {number | null} [id]
893
893
  * @returns {Promise<string>}
894
894
  */
895
895
  get_task_state(id) {
896
- const ret = wasm.robot_get_task_state(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
896
+ const ret = wasm.robot_get_task_state(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
897
897
  return ret;
898
898
  }
899
899
  /**
900
- * @param {number | undefined} [id]
900
+ * @param {number | null} [id]
901
901
  * @returns {Promise<void>}
902
902
  */
903
903
  cancel_task(id) {
904
- const ret = wasm.robot_cancel_task(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
904
+ const ret = wasm.robot_cancel_task(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
905
905
  return ret;
906
906
  }
907
907
  /**
908
- * @param {number | undefined} [id]
908
+ * @param {number | null} [id]
909
909
  * @returns {Promise<void>}
910
910
  */
911
911
  pause_task(id) {
912
- const ret = wasm.robot_pause_task(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
912
+ const ret = wasm.robot_pause_task(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
913
913
  return ret;
914
914
  }
915
915
  /**
916
- * @param {number | undefined} [id]
916
+ * @param {number | null} [id]
917
917
  * @returns {Promise<void>}
918
918
  */
919
919
  resume_task(id) {
920
- const ret = wasm.robot_resume_task(this.__wbg_ptr, !isLikeNone(id), isLikeNone(id) ? 0 : id);
920
+ const ret = wasm.robot_resume_task(this.__wbg_ptr, isLikeNone(id) ? 0x100000001 : (id) >>> 0);
921
921
  return ret;
922
922
  }
923
923
  /**
@@ -975,6 +975,16 @@ export class Robot {
975
975
  const ret = wasm.robot_read_serial(this.__wbg_ptr, ptr0, len0, len);
976
976
  return ret;
977
977
  }
978
+ /**
979
+ * @param {string} device
980
+ * @returns {Promise<void>}
981
+ */
982
+ disconnect_modbus(device) {
983
+ const ptr0 = passStringToWasm0(device, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
984
+ const len0 = WASM_VECTOR_LEN;
985
+ const ret = wasm.robot_disconnect_modbus(this.__wbg_ptr, ptr0, len0);
986
+ return ret;
987
+ }
978
988
  /**
979
989
  * @param {string} device
980
990
  * @param {number} timeout
@@ -1099,7 +1109,7 @@ export class Robot {
1099
1109
  return ret;
1100
1110
  }
1101
1111
  /**
1102
- * @param {boolean | undefined} [force]
1112
+ * @param {boolean | null} [force]
1103
1113
  * @returns {Promise<void>}
1104
1114
  */
1105
1115
  init_claw(force) {
@@ -1107,8 +1117,8 @@ export class Robot {
1107
1117
  return ret;
1108
1118
  }
1109
1119
  /**
1110
- * @param {number | undefined} [force]
1111
- * @param {number | undefined} [amplitude]
1120
+ * @param {number | null} [force]
1121
+ * @param {number | null} [amplitude]
1112
1122
  * @returns {Promise<void>}
1113
1123
  */
1114
1124
  set_claw(force, amplitude) {
@@ -1122,9 +1132,17 @@ export class Robot {
1122
1132
  const ret = wasm.robot_get_claw(this.__wbg_ptr);
1123
1133
  return ret;
1124
1134
  }
1135
+ /**
1136
+ * @param {number} baud_rate
1137
+ * @returns {Promise<void>}
1138
+ */
1139
+ set_flange_baud_rate(baud_rate) {
1140
+ const ret = wasm.robot_set_flange_baud_rate(this.__wbg_ptr, baud_rate);
1141
+ return ret;
1142
+ }
1125
1143
  /**
1126
1144
  * @param {string} name
1127
- * @param {string | undefined} [dir]
1145
+ * @param {string | null} [dir]
1128
1146
  * @returns {Promise<any>}
1129
1147
  */
1130
1148
  load_led_style(name, dir) {
@@ -1214,6 +1232,42 @@ export class Robot {
1214
1232
  const ret = wasm.robot_estop(this.__wbg_ptr);
1215
1233
  return ret;
1216
1234
  }
1235
+ /**
1236
+ * @param {number} sensitivity
1237
+ * @returns {Promise<void>}
1238
+ */
1239
+ set_collision_detector_sensitivity(sensitivity) {
1240
+ const ret = wasm.robot_set_collision_detector_sensitivity(this.__wbg_ptr, sensitivity);
1241
+ return ret;
1242
+ }
1243
+ /**
1244
+ * @returns {Promise<void>}
1245
+ */
1246
+ disable_collision_detector() {
1247
+ const ret = wasm.robot_disable_collision_detector(this.__wbg_ptr);
1248
+ return ret;
1249
+ }
1250
+ /**
1251
+ * @returns {Promise<void>}
1252
+ */
1253
+ enable_collision_detector() {
1254
+ const ret = wasm.robot_enable_collision_detector(this.__wbg_ptr);
1255
+ return ret;
1256
+ }
1257
+ /**
1258
+ * @returns {Promise<void>}
1259
+ */
1260
+ disable_joint_limits() {
1261
+ const ret = wasm.robot_disable_joint_limits(this.__wbg_ptr);
1262
+ return ret;
1263
+ }
1264
+ /**
1265
+ * @returns {Promise<void>}
1266
+ */
1267
+ enable_joint_limits() {
1268
+ const ret = wasm.robot_enable_joint_limits(this.__wbg_ptr);
1269
+ return ret;
1270
+ }
1217
1271
  /**
1218
1272
  * @returns {Promise<void>}
1219
1273
  */
@@ -1223,7 +1277,7 @@ export class Robot {
1223
1277
  }
1224
1278
  /**
1225
1279
  * @param {string} name
1226
- * @param {string | undefined} [dir]
1280
+ * @param {string | null} [dir]
1227
1281
  * @returns {Promise<any>}
1228
1282
  */
1229
1283
  load_tcp(name, dir) {
@@ -1294,7 +1348,7 @@ export class Robot {
1294
1348
  }
1295
1349
  /**
1296
1350
  * @param {string} name
1297
- * @param {string | undefined} [dir]
1351
+ * @param {string | null} [dir]
1298
1352
  * @returns {Promise<any>}
1299
1353
  */
1300
1354
  load_payload(name, dir) {
@@ -1306,8 +1360,8 @@ export class Robot {
1306
1360
  return ret;
1307
1361
  }
1308
1362
  /**
1309
- * @param {number | undefined} [mass]
1310
- * @param {any | undefined} [cog]
1363
+ * @param {number | null} [mass]
1364
+ * @param {any | null} [cog]
1311
1365
  * @returns {Promise<void>}
1312
1366
  */
1313
1367
  set_payload(mass, cog) {
@@ -1336,6 +1390,22 @@ export class Robot {
1336
1390
  const ret = wasm.robot_get_gravity(this.__wbg_ptr);
1337
1391
  return ret;
1338
1392
  }
1393
+ /**
1394
+ * @param {any} robot_state
1395
+ * @returns {Promise<boolean>}
1396
+ */
1397
+ can_move(robot_state) {
1398
+ const ret = wasm.robot_can_move(this.__wbg_ptr, robot_state);
1399
+ return ret;
1400
+ }
1401
+ /**
1402
+ * @param {any} p
1403
+ * @returns {Promise<boolean>}
1404
+ */
1405
+ in_pose(p) {
1406
+ const ret = wasm.robot_in_pose(this.__wbg_ptr, p);
1407
+ return ret;
1408
+ }
1339
1409
  }
1340
1410
 
1341
1411
  const RobotSubscriptionFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1372,498 +1442,503 @@ export class RobotSubscription {
1372
1442
  }
1373
1443
  }
1374
1444
 
1375
- export function __wbindgen_string_get(arg0, arg1) {
1376
- const obj = arg1;
1377
- const ret = typeof(obj) === 'string' ? obj : undefined;
1378
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1379
- var len1 = WASM_VECTOR_LEN;
1380
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1381
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1382
- };
1445
+ export function __wbg_addEventListener_84ae3eac6e15480a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1446
+ arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
1447
+ }, arguments) };
1383
1448
 
1384
- export function __wbg_robot_new(arg0) {
1385
- const ret = Robot.__wrap(arg0);
1386
- return ret;
1387
- };
1449
+ export function __wbg_addEventListener_90e553fdce254421() { return handleError(function (arg0, arg1, arg2, arg3) {
1450
+ arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
1451
+ }, arguments) };
1388
1452
 
1389
- export function __wbindgen_number_new(arg0) {
1390
- const ret = arg0;
1453
+ export function __wbg_buffer_609cc3eee51ed158(arg0) {
1454
+ const ret = arg0.buffer;
1391
1455
  return ret;
1392
1456
  };
1393
1457
 
1394
- export function __wbindgen_string_new(arg0, arg1) {
1395
- const ret = getStringFromWasm0(arg0, arg1);
1458
+ export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
1459
+ const ret = arg0.call(arg1);
1396
1460
  return ret;
1397
- };
1461
+ }, arguments) };
1398
1462
 
1399
- export function __wbg_robotsubscription_new(arg0) {
1400
- const ret = RobotSubscription.__wrap(arg0);
1463
+ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
1464
+ const ret = arg0.call(arg1, arg2);
1401
1465
  return ret;
1402
- };
1466
+ }, arguments) };
1403
1467
 
1404
- export function __wbindgen_error_new(arg0, arg1) {
1405
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1468
+ export function __wbg_clearTimeout_96804de0ab838f26(arg0) {
1469
+ const ret = clearTimeout(arg0);
1406
1470
  return ret;
1407
1471
  };
1408
1472
 
1409
- export function __wbindgen_boolean_get(arg0) {
1410
- const v = arg0;
1411
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1412
- return ret;
1413
- };
1473
+ export function __wbg_close_2893b7d056a0627d() { return handleError(function (arg0) {
1474
+ arg0.close();
1475
+ }, arguments) };
1414
1476
 
1415
- export function __wbindgen_is_bigint(arg0) {
1416
- const ret = typeof(arg0) === 'bigint';
1477
+ export function __wbg_code_f4ec1e6e2e1b0417(arg0) {
1478
+ const ret = arg0.code;
1417
1479
  return ret;
1418
1480
  };
1419
1481
 
1420
- export function __wbindgen_number_get(arg0, arg1) {
1421
- const obj = arg1;
1422
- const ret = typeof(obj) === 'number' ? obj : undefined;
1423
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1424
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1482
+ export function __wbg_data_432d9c3df2630942(arg0) {
1483
+ const ret = arg0.data;
1484
+ return ret;
1425
1485
  };
1426
1486
 
1427
- export function __wbindgen_is_object(arg0) {
1428
- const val = arg0;
1429
- const ret = typeof(val) === 'object' && val !== null;
1487
+ export function __wbg_dispatchEvent_9e259d7c1d603dfb() { return handleError(function (arg0, arg1) {
1488
+ const ret = arg0.dispatchEvent(arg1);
1430
1489
  return ret;
1431
- };
1490
+ }, arguments) };
1432
1491
 
1433
- export function __wbindgen_in(arg0, arg1) {
1434
- const ret = arg0 in arg1;
1492
+ export function __wbg_done_769e5ede4b31c67b(arg0) {
1493
+ const ret = arg0.done;
1435
1494
  return ret;
1436
1495
  };
1437
1496
 
1438
- export function __wbindgen_bigint_from_i64(arg0) {
1439
- const ret = arg0;
1497
+ export function __wbg_entries_3265d4158b33e5dc(arg0) {
1498
+ const ret = Object.entries(arg0);
1440
1499
  return ret;
1441
1500
  };
1442
1501
 
1443
- export function __wbindgen_jsval_eq(arg0, arg1) {
1444
- const ret = arg0 === arg1;
1502
+ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
1503
+ const ret = Reflect.get(arg0, arg1);
1445
1504
  return ret;
1446
- };
1505
+ }, arguments) };
1447
1506
 
1448
- export function __wbindgen_bigint_from_u64(arg0) {
1449
- const ret = BigInt.asUintN(64, arg0);
1507
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
1508
+ const ret = arg0[arg1 >>> 0];
1450
1509
  return ret;
1451
1510
  };
1452
1511
 
1453
- export function __wbindgen_is_undefined(arg0) {
1454
- const ret = arg0 === undefined;
1512
+ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1513
+ const ret = arg0[arg1];
1455
1514
  return ret;
1456
1515
  };
1457
1516
 
1458
- export function __wbindgen_cb_drop(arg0) {
1459
- const obj = arg0.original;
1460
- if (obj.cnt-- == 1) {
1461
- obj.a = 0;
1462
- return true;
1517
+ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
1518
+ let result;
1519
+ try {
1520
+ result = arg0 instanceof ArrayBuffer;
1521
+ } catch (_) {
1522
+ result = false;
1463
1523
  }
1464
- const ret = false;
1524
+ const ret = result;
1465
1525
  return ret;
1466
1526
  };
1467
1527
 
1468
- export function __wbindgen_is_string(arg0) {
1469
- const ret = typeof(arg0) === 'string';
1528
+ export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
1529
+ let result;
1530
+ try {
1531
+ result = arg0 instanceof Error;
1532
+ } catch (_) {
1533
+ result = false;
1534
+ }
1535
+ const ret = result;
1470
1536
  return ret;
1471
1537
  };
1472
1538
 
1473
- export function __wbg_data_134d3a704b9fca32(arg0) {
1474
- const ret = arg0.data;
1539
+ export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
1540
+ let result;
1541
+ try {
1542
+ result = arg0 instanceof Map;
1543
+ } catch (_) {
1544
+ result = false;
1545
+ }
1546
+ const ret = result;
1475
1547
  return ret;
1476
1548
  };
1477
1549
 
1478
- export function __wbg_setonce_9f2ce9d61cf01425(arg0, arg1) {
1479
- arg0.once = arg1 !== 0;
1550
+ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
1551
+ let result;
1552
+ try {
1553
+ result = arg0 instanceof Uint8Array;
1554
+ } catch (_) {
1555
+ result = false;
1556
+ }
1557
+ const ret = result;
1558
+ return ret;
1480
1559
  };
1481
1560
 
1482
- export function __wbg_setcode_a0c5900000499842(arg0, arg1) {
1483
- arg0.code = arg1;
1561
+ export function __wbg_isArray_a1eab7e0d067391b(arg0) {
1562
+ const ret = Array.isArray(arg0);
1563
+ return ret;
1484
1564
  };
1485
1565
 
1486
- export function __wbg_setreason_7efb82dfa8a2f404(arg0, arg1, arg2) {
1487
- arg0.reason = getStringFromWasm0(arg1, arg2);
1566
+ export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1567
+ const ret = Number.isSafeInteger(arg0);
1568
+ return ret;
1488
1569
  };
1489
1570
 
1490
- export function __wbg_wasClean_cf2135191288f963(arg0) {
1491
- const ret = arg0.wasClean;
1571
+ export function __wbg_iterator_9a24c88df860dc65() {
1572
+ const ret = Symbol.iterator;
1492
1573
  return ret;
1493
1574
  };
1494
1575
 
1495
- export function __wbg_code_9d4413f8b44b70c2(arg0) {
1496
- const ret = arg0.code;
1576
+ export function __wbg_length_a446193dc22c12f8(arg0) {
1577
+ const ret = arg0.length;
1497
1578
  return ret;
1498
1579
  };
1499
1580
 
1500
- export function __wbg_reason_ae1d72dfda13e899(arg0, arg1) {
1501
- const ret = arg1.reason;
1502
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1503
- const len1 = WASM_VECTOR_LEN;
1504
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1505
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1581
+ export function __wbg_length_e2d2a49132c1b256(arg0) {
1582
+ const ret = arg0.length;
1583
+ return ret;
1506
1584
  };
1507
1585
 
1508
- export function __wbg_newwitheventinitdict_e04d4cf36ab15962() { return handleError(function (arg0, arg1, arg2) {
1509
- const ret = new CloseEvent(getStringFromWasm0(arg0, arg1), arg2);
1586
+ export function __wbg_message_97a2af9b89d693a3(arg0) {
1587
+ const ret = arg0.message;
1510
1588
  return ret;
1511
- }, arguments) };
1512
-
1513
- export function __wbg_addEventListener_4357f9b7b3826784() { return handleError(function (arg0, arg1, arg2, arg3) {
1514
- arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
1515
- }, arguments) };
1516
-
1517
- export function __wbg_addEventListener_0ac72681badaf1aa() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1518
- arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
1519
- }, arguments) };
1589
+ };
1520
1590
 
1521
- export function __wbg_dispatchEvent_d3978479884f576d() { return handleError(function (arg0, arg1) {
1522
- const ret = arg0.dispatchEvent(arg1);
1591
+ export function __wbg_name_0b327d569f00ebee(arg0) {
1592
+ const ret = arg0.name;
1523
1593
  return ret;
1524
- }, arguments) };
1594
+ };
1525
1595
 
1526
- export function __wbg_removeEventListener_4c13d11156153514() { return handleError(function (arg0, arg1, arg2, arg3) {
1527
- arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
1528
- }, arguments) };
1596
+ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1597
+ try {
1598
+ var state0 = {a: arg0, b: arg1};
1599
+ var cb0 = (arg0, arg1) => {
1600
+ const a = state0.a;
1601
+ state0.a = 0;
1602
+ try {
1603
+ return __wbg_adapter_280(a, state0.b, arg0, arg1);
1604
+ } finally {
1605
+ state0.a = a;
1606
+ }
1607
+ };
1608
+ const ret = new Promise(cb0);
1609
+ return ret;
1610
+ } finally {
1611
+ state0.a = state0.b = 0;
1612
+ }
1613
+ };
1529
1614
 
1530
- export function __wbg_readyState_bc0231e8c43b0907(arg0) {
1531
- const ret = arg0.readyState;
1615
+ export function __wbg_new_405e22f390576ce2() {
1616
+ const ret = new Object();
1532
1617
  return ret;
1533
1618
  };
1534
1619
 
1535
- export function __wbg_setbinaryType_2befea8ba88b61e2(arg0, arg1) {
1536
- arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
1620
+ export function __wbg_new_78feb108b6472713() {
1621
+ const ret = new Array();
1622
+ return ret;
1537
1623
  };
1538
1624
 
1539
- export function __wbg_new_d550f7a7120dd942() { return handleError(function (arg0, arg1) {
1625
+ export function __wbg_new_92c54fc74574ef55() { return handleError(function (arg0, arg1) {
1540
1626
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
1541
1627
  return ret;
1542
1628
  }, arguments) };
1543
1629
 
1544
- export function __wbg_close_9e3b743c528a8d31() { return handleError(function (arg0) {
1545
- arg0.close();
1546
- }, arguments) };
1630
+ export function __wbg_new_a12002a7f91c75be(arg0) {
1631
+ const ret = new Uint8Array(arg0);
1632
+ return ret;
1633
+ };
1547
1634
 
1548
- export function __wbg_send_f308b110e144e90d() { return handleError(function (arg0, arg1, arg2) {
1549
- arg0.send(getStringFromWasm0(arg1, arg2));
1635
+ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
1636
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1637
+ return ret;
1638
+ };
1639
+
1640
+ export function __wbg_newwitheventinitdict_502dbfa1b3d2fcbc() { return handleError(function (arg0, arg1, arg2) {
1641
+ const ret = new CloseEvent(getStringFromWasm0(arg0, arg1), arg2);
1642
+ return ret;
1550
1643
  }, arguments) };
1551
1644
 
1552
- export function __wbg_send_fe006eb24f5e2694() { return handleError(function (arg0, arg1, arg2) {
1553
- arg0.send(getArrayU8FromWasm0(arg1, arg2));
1645
+ export function __wbg_next_25feadfc0913fea9(arg0) {
1646
+ const ret = arg0.next;
1647
+ return ret;
1648
+ };
1649
+
1650
+ export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
1651
+ const ret = arg0.next();
1652
+ return ret;
1554
1653
  }, arguments) };
1555
1654
 
1556
- export const __wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
1655
+ export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
1656
+ queueMicrotask(arg0);
1657
+ };
1557
1658
 
1558
- export function __wbg_queueMicrotask_848aa4969108a57e(arg0) {
1659
+ export function __wbg_queueMicrotask_d3219def82552485(arg0) {
1559
1660
  const ret = arg0.queueMicrotask;
1560
1661
  return ret;
1561
1662
  };
1562
1663
 
1563
- export function __wbindgen_is_function(arg0) {
1564
- const ret = typeof(arg0) === 'function';
1664
+ export function __wbg_readyState_7ef6e63c349899ed(arg0) {
1665
+ const ret = arg0.readyState;
1565
1666
  return ret;
1566
1667
  };
1567
1668
 
1568
- export const __wbg_clearTimeout_76877dbc010e786d = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
1669
+ export function __wbg_reason_49f1cede8bcf23dd(arg0, arg1) {
1670
+ const ret = arg1.reason;
1671
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1672
+ const len1 = WASM_VECTOR_LEN;
1673
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1674
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1675
+ };
1569
1676
 
1570
- export function __wbg_setTimeout_75cb9b6991a4031d() { return handleError(function (arg0, arg1) {
1571
- const ret = setTimeout(arg0, arg1);
1572
- return ret;
1677
+ export function __wbg_removeEventListener_056dfe8c3d6c58f9() { return handleError(function (arg0, arg1, arg2, arg3) {
1678
+ arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
1573
1679
  }, arguments) };
1574
1680
 
1575
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1576
- const ret = arg0 == arg1;
1681
+ export function __wbg_resolve_4851785c9c5f573d(arg0) {
1682
+ const ret = Promise.resolve(arg0);
1577
1683
  return ret;
1578
1684
  };
1579
1685
 
1580
- export function __wbindgen_as_number(arg0) {
1581
- const ret = +arg0;
1686
+ export function __wbg_robot_new(arg0) {
1687
+ const ret = Robot.__wrap(arg0);
1582
1688
  return ret;
1583
1689
  };
1584
1690
 
1585
- export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
1586
- const ret = arg0[arg1];
1691
+ export function __wbg_robotsubscription_new(arg0) {
1692
+ const ret = RobotSubscription.__wrap(arg0);
1587
1693
  return ret;
1588
1694
  };
1589
1695
 
1590
- export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
1591
- arg0[arg1] = arg2;
1592
- };
1696
+ export function __wbg_send_0293179ba074ffb4() { return handleError(function (arg0, arg1, arg2) {
1697
+ arg0.send(getStringFromWasm0(arg1, arg2));
1698
+ }, arguments) };
1593
1699
 
1594
- export function __wbg_get_5419cf6b954aa11d(arg0, arg1) {
1595
- const ret = arg0[arg1 >>> 0];
1596
- return ret;
1597
- };
1700
+ export function __wbg_send_fc0c204e8a1757f4() { return handleError(function (arg0, arg1, arg2) {
1701
+ arg0.send(getArrayU8FromWasm0(arg1, arg2));
1702
+ }, arguments) };
1598
1703
 
1599
- export function __wbg_length_f217bbbf7e8e4df4(arg0) {
1600
- const ret = arg0.length;
1704
+ export function __wbg_setTimeout_eefe7f4c234b0c6b() { return handleError(function (arg0, arg1) {
1705
+ const ret = setTimeout(arg0, arg1);
1601
1706
  return ret;
1707
+ }, arguments) };
1708
+
1709
+ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
1710
+ arg0[arg1 >>> 0] = arg2;
1602
1711
  };
1603
1712
 
1604
- export function __wbg_new_034f913e7636e987() {
1605
- const ret = new Array();
1606
- return ret;
1713
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
1714
+ arg0[arg1] = arg2;
1607
1715
  };
1608
1716
 
1609
- export function __wbg_newnoargs_1ede4bf2ebbaaf43(arg0, arg1) {
1610
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1611
- return ret;
1717
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
1718
+ arg0.set(arg1, arg2 >>> 0);
1612
1719
  };
1613
1720
 
1614
- export function __wbg_next_13b477da1eaa3897(arg0) {
1615
- const ret = arg0.next;
1616
- return ret;
1721
+ export function __wbg_setbinaryType_92fa1ffd873b327c(arg0, arg1) {
1722
+ arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
1617
1723
  };
1618
1724
 
1619
- export function __wbg_next_b06e115d1b01e10b() { return handleError(function (arg0) {
1620
- const ret = arg0.next();
1621
- return ret;
1622
- }, arguments) };
1725
+ export function __wbg_setcode_156060465a2f8f79(arg0, arg1) {
1726
+ arg0.code = arg1;
1727
+ };
1623
1728
 
1624
- export function __wbg_done_983b5ffcaec8c583(arg0) {
1625
- const ret = arg0.done;
1626
- return ret;
1729
+ export function __wbg_setonce_0cb80aea26303a35(arg0, arg1) {
1730
+ arg0.once = arg1 !== 0;
1627
1731
  };
1628
1732
 
1629
- export function __wbg_value_2ab8a198c834c26a(arg0) {
1630
- const ret = arg0.value;
1631
- return ret;
1733
+ export function __wbg_setreason_d29ac0402eeeb81a(arg0, arg1, arg2) {
1734
+ arg0.reason = getStringFromWasm0(arg1, arg2);
1632
1735
  };
1633
1736
 
1634
- export function __wbg_iterator_695d699a44d6234c() {
1635
- const ret = Symbol.iterator;
1636
- return ret;
1737
+ export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
1738
+ const ret = typeof global === 'undefined' ? null : global;
1739
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1637
1740
  };
1638
1741
 
1639
- export function __wbg_get_ef828680c64da212() { return handleError(function (arg0, arg1) {
1640
- const ret = Reflect.get(arg0, arg1);
1641
- return ret;
1642
- }, arguments) };
1742
+ export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
1743
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1744
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1745
+ };
1643
1746
 
1644
- export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) {
1645
- const ret = arg0.call(arg1);
1646
- return ret;
1647
- }, arguments) };
1747
+ export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
1748
+ const ret = typeof self === 'undefined' ? null : self;
1749
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1750
+ };
1648
1751
 
1649
- export function __wbg_new_e69b5f66fda8f13c() {
1650
- const ret = new Object();
1651
- return ret;
1752
+ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
1753
+ const ret = typeof window === 'undefined' ? null : window;
1754
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1652
1755
  };
1653
1756
 
1654
- export function __wbg_self_bf91bf94d9e04084() { return handleError(function () {
1655
- const ret = self.self;
1757
+ export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
1758
+ const ret = arg0.then(arg1);
1656
1759
  return ret;
1657
- }, arguments) };
1760
+ };
1658
1761
 
1659
- export function __wbg_window_52dd9f07d03fd5f8() { return handleError(function () {
1660
- const ret = window.window;
1762
+ export function __wbg_toString_c813bbd34d063839(arg0) {
1763
+ const ret = arg0.toString();
1661
1764
  return ret;
1662
- }, arguments) };
1765
+ };
1663
1766
 
1664
- export function __wbg_globalThis_05c129bf37fcf1be() { return handleError(function () {
1665
- const ret = globalThis.globalThis;
1767
+ export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
1768
+ const ret = arg0.value;
1666
1769
  return ret;
1667
- }, arguments) };
1770
+ };
1668
1771
 
1669
- export function __wbg_global_3eca19bb09e9c484() { return handleError(function () {
1670
- const ret = global.global;
1772
+ export function __wbg_wasClean_605b4fd66d44354a(arg0) {
1773
+ const ret = arg0.wasClean;
1671
1774
  return ret;
1672
- }, arguments) };
1673
-
1674
- export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) {
1675
- arg0[arg1 >>> 0] = arg2;
1676
1775
  };
1677
1776
 
1678
- export function __wbg_isArray_6f3b47f09adb61b5(arg0) {
1679
- const ret = Array.isArray(arg0);
1777
+ export function __wbindgen_as_number(arg0) {
1778
+ const ret = +arg0;
1680
1779
  return ret;
1681
1780
  };
1682
1781
 
1683
- export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) {
1684
- let result;
1685
- try {
1686
- result = arg0 instanceof ArrayBuffer;
1687
- } catch (_) {
1688
- result = false;
1689
- }
1690
- const ret = result;
1782
+ export function __wbindgen_bigint_from_i64(arg0) {
1783
+ const ret = arg0;
1691
1784
  return ret;
1692
1785
  };
1693
1786
 
1694
- export function __wbg_instanceof_Error_a0af335a62107964(arg0) {
1695
- let result;
1696
- try {
1697
- result = arg0 instanceof Error;
1698
- } catch (_) {
1699
- result = false;
1700
- }
1701
- const ret = result;
1787
+ export function __wbindgen_bigint_from_u64(arg0) {
1788
+ const ret = BigInt.asUintN(64, arg0);
1702
1789
  return ret;
1703
1790
  };
1704
1791
 
1705
- export function __wbg_message_00eebca8fa4dd7db(arg0) {
1706
- const ret = arg0.message;
1707
- return ret;
1792
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
1793
+ const v = arg1;
1794
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1795
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1796
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1708
1797
  };
1709
1798
 
1710
- export function __wbg_name_aa32a0ae51232604(arg0) {
1711
- const ret = arg0.name;
1799
+ export function __wbindgen_boolean_get(arg0) {
1800
+ const v = arg0;
1801
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1712
1802
  return ret;
1713
1803
  };
1714
1804
 
1715
- export function __wbg_toString_4b677455b9167e31(arg0) {
1716
- const ret = arg0.toString();
1805
+ export function __wbindgen_cb_drop(arg0) {
1806
+ const obj = arg0.original;
1807
+ if (obj.cnt-- == 1) {
1808
+ obj.a = 0;
1809
+ return true;
1810
+ }
1811
+ const ret = false;
1717
1812
  return ret;
1718
1813
  };
1719
1814
 
1720
- export function __wbg_call_3bfa248576352471() { return handleError(function (arg0, arg1, arg2) {
1721
- const ret = arg0.call(arg1, arg2);
1815
+ export function __wbindgen_closure_wrapper1588(arg0, arg1, arg2) {
1816
+ const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_52);
1722
1817
  return ret;
1723
- }, arguments) };
1818
+ };
1724
1819
 
1725
- export function __wbg_instanceof_Map_f96986929e7e89ed(arg0) {
1726
- let result;
1727
- try {
1728
- result = arg0 instanceof Map;
1729
- } catch (_) {
1730
- result = false;
1731
- }
1732
- const ret = result;
1820
+ export function __wbindgen_closure_wrapper1590(arg0, arg1, arg2) {
1821
+ const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_52);
1733
1822
  return ret;
1734
1823
  };
1735
1824
 
1736
- export function __wbg_isSafeInteger_b9dff570f01a9100(arg0) {
1737
- const ret = Number.isSafeInteger(arg0);
1825
+ export function __wbindgen_closure_wrapper1592(arg0, arg1, arg2) {
1826
+ const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_52);
1738
1827
  return ret;
1739
1828
  };
1740
1829
 
1741
- export function __wbg_entries_c02034de337d3ee2(arg0) {
1742
- const ret = Object.entries(arg0);
1830
+ export function __wbindgen_closure_wrapper1594(arg0, arg1, arg2) {
1831
+ const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_59);
1743
1832
  return ret;
1744
1833
  };
1745
1834
 
1746
- export function __wbg_new_1073970097e5a420(arg0, arg1) {
1747
- try {
1748
- var state0 = {a: arg0, b: arg1};
1749
- var cb0 = (arg0, arg1) => {
1750
- const a = state0.a;
1751
- state0.a = 0;
1752
- try {
1753
- return __wbg_adapter_271(a, state0.b, arg0, arg1);
1754
- } finally {
1755
- state0.a = a;
1756
- }
1757
- };
1758
- const ret = new Promise(cb0);
1759
- return ret;
1760
- } finally {
1761
- state0.a = state0.b = 0;
1762
- }
1835
+ export function __wbindgen_closure_wrapper2224(arg0, arg1, arg2) {
1836
+ const ret = makeMutClosure(arg0, arg1, 658, __wbg_adapter_62);
1837
+ return ret;
1763
1838
  };
1764
1839
 
1765
- export function __wbg_resolve_0aad7c1484731c99(arg0) {
1766
- const ret = Promise.resolve(arg0);
1840
+ export function __wbindgen_closure_wrapper2250(arg0, arg1, arg2) {
1841
+ const ret = makeMutClosure(arg0, arg1, 670, __wbg_adapter_65);
1767
1842
  return ret;
1768
1843
  };
1769
1844
 
1770
- export function __wbg_then_748f75edfb032440(arg0, arg1) {
1771
- const ret = arg0.then(arg1);
1772
- return ret;
1845
+ export function __wbindgen_debug_string(arg0, arg1) {
1846
+ const ret = debugString(arg1);
1847
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1848
+ const len1 = WASM_VECTOR_LEN;
1849
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1850
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1773
1851
  };
1774
1852
 
1775
- export function __wbg_buffer_ccaed51a635d8a2d(arg0) {
1776
- const ret = arg0.buffer;
1853
+ export function __wbindgen_error_new(arg0, arg1) {
1854
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1777
1855
  return ret;
1778
1856
  };
1779
1857
 
1780
- export function __wbg_new_fec2611eb9180f95(arg0) {
1781
- const ret = new Uint8Array(arg0);
1858
+ export function __wbindgen_in(arg0, arg1) {
1859
+ const ret = arg0 in arg1;
1782
1860
  return ret;
1783
1861
  };
1784
1862
 
1785
- export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) {
1786
- arg0.set(arg1, arg2 >>> 0);
1863
+ export function __wbindgen_init_externref_table() {
1864
+ const table = wasm.__wbindgen_export_2;
1865
+ const offset = table.grow(4);
1866
+ table.set(0, undefined);
1867
+ table.set(offset + 0, undefined);
1868
+ table.set(offset + 1, null);
1869
+ table.set(offset + 2, true);
1870
+ table.set(offset + 3, false);
1871
+ ;
1787
1872
  };
1788
1873
 
1789
- export function __wbg_length_9254c4bd3b9f23c4(arg0) {
1790
- const ret = arg0.length;
1874
+ export function __wbindgen_is_bigint(arg0) {
1875
+ const ret = typeof(arg0) === 'bigint';
1791
1876
  return ret;
1792
1877
  };
1793
1878
 
1794
- export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) {
1795
- let result;
1796
- try {
1797
- result = arg0 instanceof Uint8Array;
1798
- } catch (_) {
1799
- result = false;
1800
- }
1801
- const ret = result;
1879
+ export function __wbindgen_is_function(arg0) {
1880
+ const ret = typeof(arg0) === 'function';
1802
1881
  return ret;
1803
1882
  };
1804
1883
 
1805
- export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
1806
- const v = arg1;
1807
- const ret = typeof(v) === 'bigint' ? v : undefined;
1808
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1809
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1884
+ export function __wbindgen_is_object(arg0) {
1885
+ const val = arg0;
1886
+ const ret = typeof(val) === 'object' && val !== null;
1887
+ return ret;
1810
1888
  };
1811
1889
 
1812
- export function __wbindgen_debug_string(arg0, arg1) {
1813
- const ret = debugString(arg1);
1814
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1815
- const len1 = WASM_VECTOR_LEN;
1816
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1817
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1890
+ export function __wbindgen_is_string(arg0) {
1891
+ const ret = typeof(arg0) === 'string';
1892
+ return ret;
1818
1893
  };
1819
1894
 
1820
- export function __wbindgen_throw(arg0, arg1) {
1821
- throw new Error(getStringFromWasm0(arg0, arg1));
1895
+ export function __wbindgen_is_undefined(arg0) {
1896
+ const ret = arg0 === undefined;
1897
+ return ret;
1822
1898
  };
1823
1899
 
1824
- export function __wbindgen_memory() {
1825
- const ret = wasm.memory;
1900
+ export function __wbindgen_jsval_eq(arg0, arg1) {
1901
+ const ret = arg0 === arg1;
1826
1902
  return ret;
1827
1903
  };
1828
1904
 
1829
- export function __wbindgen_closure_wrapper1794(arg0, arg1, arg2) {
1830
- const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_52);
1905
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1906
+ const ret = arg0 == arg1;
1831
1907
  return ret;
1832
1908
  };
1833
1909
 
1834
- export function __wbindgen_closure_wrapper1796(arg0, arg1, arg2) {
1835
- const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_55);
1910
+ export function __wbindgen_memory() {
1911
+ const ret = wasm.memory;
1836
1912
  return ret;
1837
1913
  };
1838
1914
 
1839
- export function __wbindgen_closure_wrapper1798(arg0, arg1, arg2) {
1840
- const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_52);
1841
- return ret;
1915
+ export function __wbindgen_number_get(arg0, arg1) {
1916
+ const obj = arg1;
1917
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1918
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1919
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1842
1920
  };
1843
1921
 
1844
- export function __wbindgen_closure_wrapper1800(arg0, arg1, arg2) {
1845
- const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_52);
1922
+ export function __wbindgen_number_new(arg0) {
1923
+ const ret = arg0;
1846
1924
  return ret;
1847
1925
  };
1848
1926
 
1849
- export function __wbindgen_closure_wrapper2477(arg0, arg1, arg2) {
1850
- const ret = makeMutClosure(arg0, arg1, 819, __wbg_adapter_62);
1851
- return ret;
1927
+ export function __wbindgen_string_get(arg0, arg1) {
1928
+ const obj = arg1;
1929
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1930
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1931
+ var len1 = WASM_VECTOR_LEN;
1932
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1933
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1852
1934
  };
1853
1935
 
1854
- export function __wbindgen_closure_wrapper2503(arg0, arg1, arg2) {
1855
- const ret = makeMutClosure(arg0, arg1, 830, __wbg_adapter_65);
1936
+ export function __wbindgen_string_new(arg0, arg1) {
1937
+ const ret = getStringFromWasm0(arg0, arg1);
1856
1938
  return ret;
1857
1939
  };
1858
1940
 
1859
- export function __wbindgen_init_externref_table() {
1860
- const table = wasm.__wbindgen_export_2;
1861
- const offset = table.grow(4);
1862
- table.set(0, undefined);
1863
- table.set(offset + 0, undefined);
1864
- table.set(offset + 1, null);
1865
- table.set(offset + 2, true);
1866
- table.set(offset + 3, false);
1867
- ;
1941
+ export function __wbindgen_throw(arg0, arg1) {
1942
+ throw new Error(getStringFromWasm0(arg0, arg1));
1868
1943
  };
1869
1944