lebai_sdk 0.2.26 → 0.3.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.
- package/lebai_sdk.d.ts +40 -537
- package/lebai_sdk_bg.js +500 -414
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -4,7 +4,11 @@ export function __wbg_set_wasm(val) {
|
|
4
4
|
}
|
5
5
|
|
6
6
|
|
7
|
-
|
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
|
-
|
109
|
+
function getArrayU8FromWasm0(ptr, len) {
|
110
|
+
ptr = ptr >>> 0;
|
111
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
112
|
+
}
|
88
113
|
|
89
|
-
|
114
|
+
function isLikeNone(x) {
|
115
|
+
return x === undefined || x === null;
|
116
|
+
}
|
90
117
|
|
91
|
-
|
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
|
94
|
-
|
95
|
-
|
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
|
299
|
-
|
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) {
|
298
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdb4683eb74f928aa(arg0, arg1);
|
305
299
|
}
|
306
300
|
|
307
|
-
function
|
308
|
-
|
309
|
-
|
301
|
+
function __wbg_adapter_55(arg0, arg1, arg2) {
|
302
|
+
wasm.closure585_externref_shim(arg0, arg1, arg2);
|
303
|
+
}
|
304
|
+
|
305
|
+
function __wbg_adapter_62(arg0, arg1, arg2) {
|
306
|
+
wasm.closure665_externref_shim(arg0, arg1, arg2);
|
310
307
|
}
|
311
308
|
|
312
|
-
function
|
313
|
-
|
314
|
-
|
309
|
+
function __wbg_adapter_65(arg0, arg1) {
|
310
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc52566fad46e0f14(arg0, arg1);
|
311
|
+
}
|
312
|
+
|
313
|
+
function __wbg_adapter_281(arg0, arg1, arg2, arg3) {
|
314
|
+
wasm.closure743_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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
439
|
-
* @param {string |
|
440
|
-
* @param {any |
|
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 |
|
454
|
-
* @param {boolean |
|
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 |
|
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 |
|
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,
|
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 |
|
527
|
-
* @param {number |
|
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 |
|
539
|
-
* @param {number |
|
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 |
|
551
|
-
* @param {number |
|
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 |
|
565
|
-
* @param {number |
|
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 |
|
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 |
|
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 |
|
629
|
-
* @param {any |
|
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 |
|
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 |
|
856
|
-
* @param {string |
|
857
|
-
* @param {boolean |
|
858
|
-
* @param {number |
|
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,
|
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 |
|
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,
|
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 |
|
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,
|
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 |
|
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,
|
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 |
|
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,
|
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 |
|
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,
|
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
|
@@ -986,6 +996,17 @@ export class Robot {
|
|
986
996
|
const ret = wasm.robot_set_modbus_timeout(this.__wbg_ptr, ptr0, len0, timeout);
|
987
997
|
return ret;
|
988
998
|
}
|
999
|
+
/**
|
1000
|
+
* @param {string} device
|
1001
|
+
* @param {number} retry
|
1002
|
+
* @returns {Promise<void>}
|
1003
|
+
*/
|
1004
|
+
set_modbus_retry(device, retry) {
|
1005
|
+
const ptr0 = passStringToWasm0(device, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1006
|
+
const len0 = WASM_VECTOR_LEN;
|
1007
|
+
const ret = wasm.robot_set_modbus_retry(this.__wbg_ptr, ptr0, len0, retry);
|
1008
|
+
return ret;
|
1009
|
+
}
|
989
1010
|
/**
|
990
1011
|
* @param {string} device
|
991
1012
|
* @param {string} pin
|
@@ -1099,7 +1120,7 @@ export class Robot {
|
|
1099
1120
|
return ret;
|
1100
1121
|
}
|
1101
1122
|
/**
|
1102
|
-
* @param {boolean |
|
1123
|
+
* @param {boolean | null} [force]
|
1103
1124
|
* @returns {Promise<void>}
|
1104
1125
|
*/
|
1105
1126
|
init_claw(force) {
|
@@ -1107,8 +1128,8 @@ export class Robot {
|
|
1107
1128
|
return ret;
|
1108
1129
|
}
|
1109
1130
|
/**
|
1110
|
-
* @param {number |
|
1111
|
-
* @param {number |
|
1131
|
+
* @param {number | null} [force]
|
1132
|
+
* @param {number | null} [amplitude]
|
1112
1133
|
* @returns {Promise<void>}
|
1113
1134
|
*/
|
1114
1135
|
set_claw(force, amplitude) {
|
@@ -1122,9 +1143,17 @@ export class Robot {
|
|
1122
1143
|
const ret = wasm.robot_get_claw(this.__wbg_ptr);
|
1123
1144
|
return ret;
|
1124
1145
|
}
|
1146
|
+
/**
|
1147
|
+
* @param {number} baud_rate
|
1148
|
+
* @returns {Promise<void>}
|
1149
|
+
*/
|
1150
|
+
set_flange_baud_rate(baud_rate) {
|
1151
|
+
const ret = wasm.robot_set_flange_baud_rate(this.__wbg_ptr, baud_rate);
|
1152
|
+
return ret;
|
1153
|
+
}
|
1125
1154
|
/**
|
1126
1155
|
* @param {string} name
|
1127
|
-
* @param {string |
|
1156
|
+
* @param {string | null} [dir]
|
1128
1157
|
* @returns {Promise<any>}
|
1129
1158
|
*/
|
1130
1159
|
load_led_style(name, dir) {
|
@@ -1214,6 +1243,42 @@ export class Robot {
|
|
1214
1243
|
const ret = wasm.robot_estop(this.__wbg_ptr);
|
1215
1244
|
return ret;
|
1216
1245
|
}
|
1246
|
+
/**
|
1247
|
+
* @param {number} sensitivity
|
1248
|
+
* @returns {Promise<void>}
|
1249
|
+
*/
|
1250
|
+
set_collision_detector_sensitivity(sensitivity) {
|
1251
|
+
const ret = wasm.robot_set_collision_detector_sensitivity(this.__wbg_ptr, sensitivity);
|
1252
|
+
return ret;
|
1253
|
+
}
|
1254
|
+
/**
|
1255
|
+
* @returns {Promise<void>}
|
1256
|
+
*/
|
1257
|
+
disable_collision_detector() {
|
1258
|
+
const ret = wasm.robot_disable_collision_detector(this.__wbg_ptr);
|
1259
|
+
return ret;
|
1260
|
+
}
|
1261
|
+
/**
|
1262
|
+
* @returns {Promise<void>}
|
1263
|
+
*/
|
1264
|
+
enable_collision_detector() {
|
1265
|
+
const ret = wasm.robot_enable_collision_detector(this.__wbg_ptr);
|
1266
|
+
return ret;
|
1267
|
+
}
|
1268
|
+
/**
|
1269
|
+
* @returns {Promise<void>}
|
1270
|
+
*/
|
1271
|
+
disable_joint_limits() {
|
1272
|
+
const ret = wasm.robot_disable_joint_limits(this.__wbg_ptr);
|
1273
|
+
return ret;
|
1274
|
+
}
|
1275
|
+
/**
|
1276
|
+
* @returns {Promise<void>}
|
1277
|
+
*/
|
1278
|
+
enable_joint_limits() {
|
1279
|
+
const ret = wasm.robot_enable_joint_limits(this.__wbg_ptr);
|
1280
|
+
return ret;
|
1281
|
+
}
|
1217
1282
|
/**
|
1218
1283
|
* @returns {Promise<void>}
|
1219
1284
|
*/
|
@@ -1223,7 +1288,7 @@ export class Robot {
|
|
1223
1288
|
}
|
1224
1289
|
/**
|
1225
1290
|
* @param {string} name
|
1226
|
-
* @param {string |
|
1291
|
+
* @param {string | null} [dir]
|
1227
1292
|
* @returns {Promise<any>}
|
1228
1293
|
*/
|
1229
1294
|
load_tcp(name, dir) {
|
@@ -1294,7 +1359,7 @@ export class Robot {
|
|
1294
1359
|
}
|
1295
1360
|
/**
|
1296
1361
|
* @param {string} name
|
1297
|
-
* @param {string |
|
1362
|
+
* @param {string | null} [dir]
|
1298
1363
|
* @returns {Promise<any>}
|
1299
1364
|
*/
|
1300
1365
|
load_payload(name, dir) {
|
@@ -1306,8 +1371,8 @@ export class Robot {
|
|
1306
1371
|
return ret;
|
1307
1372
|
}
|
1308
1373
|
/**
|
1309
|
-
* @param {number |
|
1310
|
-
* @param {any |
|
1374
|
+
* @param {number | null} [mass]
|
1375
|
+
* @param {any | null} [cog]
|
1311
1376
|
* @returns {Promise<void>}
|
1312
1377
|
*/
|
1313
1378
|
set_payload(mass, cog) {
|
@@ -1336,6 +1401,22 @@ export class Robot {
|
|
1336
1401
|
const ret = wasm.robot_get_gravity(this.__wbg_ptr);
|
1337
1402
|
return ret;
|
1338
1403
|
}
|
1404
|
+
/**
|
1405
|
+
* @param {any} robot_state
|
1406
|
+
* @returns {Promise<boolean>}
|
1407
|
+
*/
|
1408
|
+
can_move(robot_state) {
|
1409
|
+
const ret = wasm.robot_can_move(this.__wbg_ptr, robot_state);
|
1410
|
+
return ret;
|
1411
|
+
}
|
1412
|
+
/**
|
1413
|
+
* @param {any} p
|
1414
|
+
* @returns {Promise<boolean>}
|
1415
|
+
*/
|
1416
|
+
in_pose(p) {
|
1417
|
+
const ret = wasm.robot_in_pose(this.__wbg_ptr, p);
|
1418
|
+
return ret;
|
1419
|
+
}
|
1339
1420
|
}
|
1340
1421
|
|
1341
1422
|
const RobotSubscriptionFinalization = (typeof FinalizationRegistry === 'undefined')
|
@@ -1372,498 +1453,503 @@ export class RobotSubscription {
|
|
1372
1453
|
}
|
1373
1454
|
}
|
1374
1455
|
|
1375
|
-
export function
|
1376
|
-
|
1377
|
-
|
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
|
-
};
|
1456
|
+
export function __wbg_addEventListener_84ae3eac6e15480a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
1457
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
1458
|
+
}, arguments) };
|
1383
1459
|
|
1384
|
-
export function
|
1385
|
-
|
1460
|
+
export function __wbg_addEventListener_90e553fdce254421() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1461
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
1462
|
+
}, arguments) };
|
1463
|
+
|
1464
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
1465
|
+
const ret = arg0.buffer;
|
1386
1466
|
return ret;
|
1387
1467
|
};
|
1388
1468
|
|
1389
|
-
export function
|
1390
|
-
const ret = arg0;
|
1469
|
+
export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
1470
|
+
const ret = arg0.call(arg1);
|
1391
1471
|
return ret;
|
1392
|
-
};
|
1472
|
+
}, arguments) };
|
1393
1473
|
|
1394
|
-
export function
|
1395
|
-
const ret =
|
1474
|
+
export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
|
1475
|
+
const ret = arg0.call(arg1, arg2);
|
1396
1476
|
return ret;
|
1397
|
-
};
|
1477
|
+
}, arguments) };
|
1398
1478
|
|
1399
|
-
export function
|
1400
|
-
const ret =
|
1479
|
+
export function __wbg_clearTimeout_96804de0ab838f26(arg0) {
|
1480
|
+
const ret = clearTimeout(arg0);
|
1401
1481
|
return ret;
|
1402
1482
|
};
|
1403
1483
|
|
1404
|
-
export function
|
1405
|
-
|
1484
|
+
export function __wbg_close_2893b7d056a0627d() { return handleError(function (arg0) {
|
1485
|
+
arg0.close();
|
1486
|
+
}, arguments) };
|
1487
|
+
|
1488
|
+
export function __wbg_code_f4ec1e6e2e1b0417(arg0) {
|
1489
|
+
const ret = arg0.code;
|
1406
1490
|
return ret;
|
1407
1491
|
};
|
1408
1492
|
|
1409
|
-
export function
|
1410
|
-
const
|
1411
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1493
|
+
export function __wbg_data_432d9c3df2630942(arg0) {
|
1494
|
+
const ret = arg0.data;
|
1412
1495
|
return ret;
|
1413
1496
|
};
|
1414
1497
|
|
1415
|
-
export function
|
1416
|
-
const ret =
|
1498
|
+
export function __wbg_dispatchEvent_9e259d7c1d603dfb() { return handleError(function (arg0, arg1) {
|
1499
|
+
const ret = arg0.dispatchEvent(arg1);
|
1417
1500
|
return ret;
|
1418
|
-
};
|
1501
|
+
}, arguments) };
|
1419
1502
|
|
1420
|
-
export function
|
1421
|
-
const
|
1422
|
-
|
1423
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
1424
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1503
|
+
export function __wbg_done_769e5ede4b31c67b(arg0) {
|
1504
|
+
const ret = arg0.done;
|
1505
|
+
return ret;
|
1425
1506
|
};
|
1426
1507
|
|
1427
|
-
export function
|
1428
|
-
const
|
1429
|
-
const ret = typeof(val) === 'object' && val !== null;
|
1508
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
1509
|
+
const ret = Object.entries(arg0);
|
1430
1510
|
return ret;
|
1431
1511
|
};
|
1432
1512
|
|
1433
|
-
export function
|
1434
|
-
const ret = arg0
|
1513
|
+
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
1514
|
+
const ret = Reflect.get(arg0, arg1);
|
1435
1515
|
return ret;
|
1436
|
-
};
|
1516
|
+
}, arguments) };
|
1437
1517
|
|
1438
|
-
export function
|
1439
|
-
const ret = arg0;
|
1518
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
1519
|
+
const ret = arg0[arg1 >>> 0];
|
1440
1520
|
return ret;
|
1441
1521
|
};
|
1442
1522
|
|
1443
|
-
export function
|
1444
|
-
const ret = arg0
|
1523
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
1524
|
+
const ret = arg0[arg1];
|
1445
1525
|
return ret;
|
1446
1526
|
};
|
1447
1527
|
|
1448
|
-
export function
|
1449
|
-
|
1528
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
1529
|
+
let result;
|
1530
|
+
try {
|
1531
|
+
result = arg0 instanceof ArrayBuffer;
|
1532
|
+
} catch (_) {
|
1533
|
+
result = false;
|
1534
|
+
}
|
1535
|
+
const ret = result;
|
1450
1536
|
return ret;
|
1451
1537
|
};
|
1452
1538
|
|
1453
|
-
export function
|
1454
|
-
|
1539
|
+
export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
|
1540
|
+
let result;
|
1541
|
+
try {
|
1542
|
+
result = arg0 instanceof Error;
|
1543
|
+
} catch (_) {
|
1544
|
+
result = false;
|
1545
|
+
}
|
1546
|
+
const ret = result;
|
1455
1547
|
return ret;
|
1456
1548
|
};
|
1457
1549
|
|
1458
|
-
export function
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1550
|
+
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
1551
|
+
let result;
|
1552
|
+
try {
|
1553
|
+
result = arg0 instanceof Map;
|
1554
|
+
} catch (_) {
|
1555
|
+
result = false;
|
1463
1556
|
}
|
1464
|
-
const ret =
|
1557
|
+
const ret = result;
|
1465
1558
|
return ret;
|
1466
1559
|
};
|
1467
1560
|
|
1468
|
-
export function
|
1469
|
-
|
1561
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
1562
|
+
let result;
|
1563
|
+
try {
|
1564
|
+
result = arg0 instanceof Uint8Array;
|
1565
|
+
} catch (_) {
|
1566
|
+
result = false;
|
1567
|
+
}
|
1568
|
+
const ret = result;
|
1470
1569
|
return ret;
|
1471
1570
|
};
|
1472
1571
|
|
1473
|
-
export function
|
1474
|
-
const ret = arg0
|
1572
|
+
export function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
1573
|
+
const ret = Array.isArray(arg0);
|
1475
1574
|
return ret;
|
1476
1575
|
};
|
1477
1576
|
|
1478
|
-
export function
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
export function __wbg_setcode_a0c5900000499842(arg0, arg1) {
|
1483
|
-
arg0.code = arg1;
|
1577
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
1578
|
+
const ret = Number.isSafeInteger(arg0);
|
1579
|
+
return ret;
|
1484
1580
|
};
|
1485
1581
|
|
1486
|
-
export function
|
1487
|
-
|
1582
|
+
export function __wbg_iterator_9a24c88df860dc65() {
|
1583
|
+
const ret = Symbol.iterator;
|
1584
|
+
return ret;
|
1488
1585
|
};
|
1489
1586
|
|
1490
|
-
export function
|
1491
|
-
const ret = arg0.
|
1587
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
1588
|
+
const ret = arg0.length;
|
1492
1589
|
return ret;
|
1493
1590
|
};
|
1494
1591
|
|
1495
|
-
export function
|
1496
|
-
const ret = arg0.
|
1592
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
1593
|
+
const ret = arg0.length;
|
1497
1594
|
return ret;
|
1498
1595
|
};
|
1499
1596
|
|
1500
|
-
export function
|
1501
|
-
const ret =
|
1502
|
-
|
1503
|
-
const len1 = WASM_VECTOR_LEN;
|
1504
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1505
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1597
|
+
export function __wbg_message_97a2af9b89d693a3(arg0) {
|
1598
|
+
const ret = arg0.message;
|
1599
|
+
return ret;
|
1506
1600
|
};
|
1507
1601
|
|
1508
|
-
export function
|
1509
|
-
const ret =
|
1602
|
+
export function __wbg_name_0b327d569f00ebee(arg0) {
|
1603
|
+
const ret = arg0.name;
|
1510
1604
|
return ret;
|
1511
|
-
}
|
1605
|
+
};
|
1512
1606
|
|
1513
|
-
export function
|
1514
|
-
|
1515
|
-
|
1607
|
+
export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
1608
|
+
try {
|
1609
|
+
var state0 = {a: arg0, b: arg1};
|
1610
|
+
var cb0 = (arg0, arg1) => {
|
1611
|
+
const a = state0.a;
|
1612
|
+
state0.a = 0;
|
1613
|
+
try {
|
1614
|
+
return __wbg_adapter_281(a, state0.b, arg0, arg1);
|
1615
|
+
} finally {
|
1616
|
+
state0.a = a;
|
1617
|
+
}
|
1618
|
+
};
|
1619
|
+
const ret = new Promise(cb0);
|
1620
|
+
return ret;
|
1621
|
+
} finally {
|
1622
|
+
state0.a = state0.b = 0;
|
1623
|
+
}
|
1624
|
+
};
|
1516
1625
|
|
1517
|
-
export function
|
1518
|
-
|
1519
|
-
|
1626
|
+
export function __wbg_new_405e22f390576ce2() {
|
1627
|
+
const ret = new Object();
|
1628
|
+
return ret;
|
1629
|
+
};
|
1520
1630
|
|
1521
|
-
export function
|
1522
|
-
const ret =
|
1631
|
+
export function __wbg_new_78feb108b6472713() {
|
1632
|
+
const ret = new Array();
|
1523
1633
|
return ret;
|
1524
|
-
}
|
1634
|
+
};
|
1525
1635
|
|
1526
|
-
export function
|
1527
|
-
|
1636
|
+
export function __wbg_new_92c54fc74574ef55() { return handleError(function (arg0, arg1) {
|
1637
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
1638
|
+
return ret;
|
1528
1639
|
}, arguments) };
|
1529
1640
|
|
1530
|
-
export function
|
1531
|
-
const ret = arg0
|
1641
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
1642
|
+
const ret = new Uint8Array(arg0);
|
1532
1643
|
return ret;
|
1533
1644
|
};
|
1534
1645
|
|
1535
|
-
export function
|
1536
|
-
|
1646
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
1647
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
1648
|
+
return ret;
|
1537
1649
|
};
|
1538
1650
|
|
1539
|
-
export function
|
1540
|
-
const ret = new
|
1651
|
+
export function __wbg_newwitheventinitdict_502dbfa1b3d2fcbc() { return handleError(function (arg0, arg1, arg2) {
|
1652
|
+
const ret = new CloseEvent(getStringFromWasm0(arg0, arg1), arg2);
|
1541
1653
|
return ret;
|
1542
1654
|
}, arguments) };
|
1543
1655
|
|
1544
|
-
export function
|
1545
|
-
arg0.
|
1546
|
-
|
1547
|
-
|
1548
|
-
export function __wbg_send_f308b110e144e90d() { return handleError(function (arg0, arg1, arg2) {
|
1549
|
-
arg0.send(getStringFromWasm0(arg1, arg2));
|
1550
|
-
}, arguments) };
|
1656
|
+
export function __wbg_next_25feadfc0913fea9(arg0) {
|
1657
|
+
const ret = arg0.next;
|
1658
|
+
return ret;
|
1659
|
+
};
|
1551
1660
|
|
1552
|
-
export function
|
1553
|
-
arg0.
|
1661
|
+
export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
1662
|
+
const ret = arg0.next();
|
1663
|
+
return ret;
|
1554
1664
|
}, arguments) };
|
1555
1665
|
|
1556
|
-
export
|
1666
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
1667
|
+
queueMicrotask(arg0);
|
1668
|
+
};
|
1557
1669
|
|
1558
|
-
export function
|
1670
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
1559
1671
|
const ret = arg0.queueMicrotask;
|
1560
1672
|
return ret;
|
1561
1673
|
};
|
1562
1674
|
|
1563
|
-
export function
|
1564
|
-
const ret =
|
1675
|
+
export function __wbg_readyState_7ef6e63c349899ed(arg0) {
|
1676
|
+
const ret = arg0.readyState;
|
1565
1677
|
return ret;
|
1566
1678
|
};
|
1567
1679
|
|
1568
|
-
export
|
1680
|
+
export function __wbg_reason_49f1cede8bcf23dd(arg0, arg1) {
|
1681
|
+
const ret = arg1.reason;
|
1682
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1683
|
+
const len1 = WASM_VECTOR_LEN;
|
1684
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1685
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1686
|
+
};
|
1569
1687
|
|
1570
|
-
export function
|
1571
|
-
|
1572
|
-
return ret;
|
1688
|
+
export function __wbg_removeEventListener_056dfe8c3d6c58f9() { return handleError(function (arg0, arg1, arg2, arg3) {
|
1689
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
1573
1690
|
}, arguments) };
|
1574
1691
|
|
1575
|
-
export function
|
1576
|
-
const ret = arg0
|
1692
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
1693
|
+
const ret = Promise.resolve(arg0);
|
1577
1694
|
return ret;
|
1578
1695
|
};
|
1579
1696
|
|
1580
|
-
export function
|
1581
|
-
const ret =
|
1697
|
+
export function __wbg_robot_new(arg0) {
|
1698
|
+
const ret = Robot.__wrap(arg0);
|
1582
1699
|
return ret;
|
1583
1700
|
};
|
1584
1701
|
|
1585
|
-
export function
|
1586
|
-
const ret = arg0
|
1702
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1703
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1587
1704
|
return ret;
|
1588
1705
|
};
|
1589
1706
|
|
1590
|
-
export function
|
1591
|
-
arg0
|
1592
|
-
};
|
1707
|
+
export function __wbg_send_0293179ba074ffb4() { return handleError(function (arg0, arg1, arg2) {
|
1708
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
1709
|
+
}, arguments) };
|
1593
1710
|
|
1594
|
-
export function
|
1595
|
-
|
1596
|
-
|
1597
|
-
};
|
1711
|
+
export function __wbg_send_fc0c204e8a1757f4() { return handleError(function (arg0, arg1, arg2) {
|
1712
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
1713
|
+
}, arguments) };
|
1598
1714
|
|
1599
|
-
export function
|
1600
|
-
const ret = arg0
|
1715
|
+
export function __wbg_setTimeout_eefe7f4c234b0c6b() { return handleError(function (arg0, arg1) {
|
1716
|
+
const ret = setTimeout(arg0, arg1);
|
1601
1717
|
return ret;
|
1718
|
+
}, arguments) };
|
1719
|
+
|
1720
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
1721
|
+
arg0[arg1 >>> 0] = arg2;
|
1602
1722
|
};
|
1603
1723
|
|
1604
|
-
export function
|
1605
|
-
|
1606
|
-
return ret;
|
1724
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
1725
|
+
arg0[arg1] = arg2;
|
1607
1726
|
};
|
1608
1727
|
|
1609
|
-
export function
|
1610
|
-
|
1611
|
-
return ret;
|
1728
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
1729
|
+
arg0.set(arg1, arg2 >>> 0);
|
1612
1730
|
};
|
1613
1731
|
|
1614
|
-
export function
|
1615
|
-
|
1616
|
-
return ret;
|
1732
|
+
export function __wbg_setbinaryType_92fa1ffd873b327c(arg0, arg1) {
|
1733
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
1617
1734
|
};
|
1618
1735
|
|
1619
|
-
export function
|
1620
|
-
|
1621
|
-
|
1622
|
-
}, arguments) };
|
1736
|
+
export function __wbg_setcode_156060465a2f8f79(arg0, arg1) {
|
1737
|
+
arg0.code = arg1;
|
1738
|
+
};
|
1623
1739
|
|
1624
|
-
export function
|
1625
|
-
|
1626
|
-
return ret;
|
1740
|
+
export function __wbg_setonce_0cb80aea26303a35(arg0, arg1) {
|
1741
|
+
arg0.once = arg1 !== 0;
|
1627
1742
|
};
|
1628
1743
|
|
1629
|
-
export function
|
1630
|
-
|
1631
|
-
return ret;
|
1744
|
+
export function __wbg_setreason_d29ac0402eeeb81a(arg0, arg1, arg2) {
|
1745
|
+
arg0.reason = getStringFromWasm0(arg1, arg2);
|
1632
1746
|
};
|
1633
1747
|
|
1634
|
-
export function
|
1635
|
-
const ret =
|
1636
|
-
return ret;
|
1748
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
1749
|
+
const ret = typeof global === 'undefined' ? null : global;
|
1750
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
1637
1751
|
};
|
1638
1752
|
|
1639
|
-
export function
|
1640
|
-
const ret =
|
1641
|
-
return ret;
|
1642
|
-
}
|
1753
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
1754
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
1755
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
1756
|
+
};
|
1643
1757
|
|
1644
|
-
export function
|
1645
|
-
const ret =
|
1646
|
-
return ret;
|
1647
|
-
}
|
1758
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
1759
|
+
const ret = typeof self === 'undefined' ? null : self;
|
1760
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
1761
|
+
};
|
1648
1762
|
|
1649
|
-
export function
|
1650
|
-
const ret =
|
1651
|
-
return ret;
|
1763
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
1764
|
+
const ret = typeof window === 'undefined' ? null : window;
|
1765
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
1652
1766
|
};
|
1653
1767
|
|
1654
|
-
export function
|
1655
|
-
const ret =
|
1768
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
1769
|
+
const ret = arg0.then(arg1);
|
1656
1770
|
return ret;
|
1657
|
-
}
|
1771
|
+
};
|
1658
1772
|
|
1659
|
-
export function
|
1660
|
-
const ret =
|
1773
|
+
export function __wbg_toString_c813bbd34d063839(arg0) {
|
1774
|
+
const ret = arg0.toString();
|
1661
1775
|
return ret;
|
1662
|
-
}
|
1776
|
+
};
|
1663
1777
|
|
1664
|
-
export function
|
1665
|
-
const ret =
|
1778
|
+
export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
1779
|
+
const ret = arg0.value;
|
1666
1780
|
return ret;
|
1667
|
-
}
|
1781
|
+
};
|
1668
1782
|
|
1669
|
-
export function
|
1670
|
-
const ret =
|
1783
|
+
export function __wbg_wasClean_605b4fd66d44354a(arg0) {
|
1784
|
+
const ret = arg0.wasClean;
|
1671
1785
|
return ret;
|
1672
|
-
}, arguments) };
|
1673
|
-
|
1674
|
-
export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) {
|
1675
|
-
arg0[arg1 >>> 0] = arg2;
|
1676
1786
|
};
|
1677
1787
|
|
1678
|
-
export function
|
1679
|
-
const ret =
|
1788
|
+
export function __wbindgen_as_number(arg0) {
|
1789
|
+
const ret = +arg0;
|
1680
1790
|
return ret;
|
1681
1791
|
};
|
1682
1792
|
|
1683
|
-
export function
|
1684
|
-
|
1685
|
-
try {
|
1686
|
-
result = arg0 instanceof ArrayBuffer;
|
1687
|
-
} catch (_) {
|
1688
|
-
result = false;
|
1689
|
-
}
|
1690
|
-
const ret = result;
|
1793
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
1794
|
+
const ret = arg0;
|
1691
1795
|
return ret;
|
1692
1796
|
};
|
1693
1797
|
|
1694
|
-
export function
|
1695
|
-
|
1696
|
-
try {
|
1697
|
-
result = arg0 instanceof Error;
|
1698
|
-
} catch (_) {
|
1699
|
-
result = false;
|
1700
|
-
}
|
1701
|
-
const ret = result;
|
1798
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
1799
|
+
const ret = BigInt.asUintN(64, arg0);
|
1702
1800
|
return ret;
|
1703
1801
|
};
|
1704
1802
|
|
1705
|
-
export function
|
1706
|
-
const
|
1707
|
-
|
1803
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
1804
|
+
const v = arg1;
|
1805
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
1806
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
1807
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1708
1808
|
};
|
1709
1809
|
|
1710
|
-
export function
|
1711
|
-
const
|
1810
|
+
export function __wbindgen_boolean_get(arg0) {
|
1811
|
+
const v = arg0;
|
1812
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1712
1813
|
return ret;
|
1713
1814
|
};
|
1714
1815
|
|
1715
|
-
export function
|
1716
|
-
const
|
1816
|
+
export function __wbindgen_cb_drop(arg0) {
|
1817
|
+
const obj = arg0.original;
|
1818
|
+
if (obj.cnt-- == 1) {
|
1819
|
+
obj.a = 0;
|
1820
|
+
return true;
|
1821
|
+
}
|
1822
|
+
const ret = false;
|
1717
1823
|
return ret;
|
1718
1824
|
};
|
1719
1825
|
|
1720
|
-
export function
|
1721
|
-
const ret = arg0
|
1826
|
+
export function __wbindgen_closure_wrapper1587(arg0, arg1, arg2) {
|
1827
|
+
const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_52);
|
1722
1828
|
return ret;
|
1723
|
-
}
|
1829
|
+
};
|
1724
1830
|
|
1725
|
-
export function
|
1726
|
-
|
1727
|
-
try {
|
1728
|
-
result = arg0 instanceof Map;
|
1729
|
-
} catch (_) {
|
1730
|
-
result = false;
|
1731
|
-
}
|
1732
|
-
const ret = result;
|
1831
|
+
export function __wbindgen_closure_wrapper1589(arg0, arg1, arg2) {
|
1832
|
+
const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_55);
|
1733
1833
|
return ret;
|
1734
1834
|
};
|
1735
1835
|
|
1736
|
-
export function
|
1737
|
-
const ret =
|
1836
|
+
export function __wbindgen_closure_wrapper1591(arg0, arg1, arg2) {
|
1837
|
+
const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_55);
|
1738
1838
|
return ret;
|
1739
1839
|
};
|
1740
1840
|
|
1741
|
-
export function
|
1742
|
-
const ret =
|
1841
|
+
export function __wbindgen_closure_wrapper1593(arg0, arg1, arg2) {
|
1842
|
+
const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_55);
|
1743
1843
|
return ret;
|
1744
1844
|
};
|
1745
1845
|
|
1746
|
-
export function
|
1747
|
-
|
1748
|
-
|
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
|
-
}
|
1846
|
+
export function __wbindgen_closure_wrapper2233(arg0, arg1, arg2) {
|
1847
|
+
const ret = makeMutClosure(arg0, arg1, 666, __wbg_adapter_62);
|
1848
|
+
return ret;
|
1763
1849
|
};
|
1764
1850
|
|
1765
|
-
export function
|
1766
|
-
const ret =
|
1851
|
+
export function __wbindgen_closure_wrapper2259(arg0, arg1, arg2) {
|
1852
|
+
const ret = makeMutClosure(arg0, arg1, 678, __wbg_adapter_65);
|
1767
1853
|
return ret;
|
1768
1854
|
};
|
1769
1855
|
|
1770
|
-
export function
|
1771
|
-
const ret =
|
1772
|
-
|
1856
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
1857
|
+
const ret = debugString(arg1);
|
1858
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1859
|
+
const len1 = WASM_VECTOR_LEN;
|
1860
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1861
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1773
1862
|
};
|
1774
1863
|
|
1775
|
-
export function
|
1776
|
-
const ret = arg0
|
1864
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
1865
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1777
1866
|
return ret;
|
1778
1867
|
};
|
1779
1868
|
|
1780
|
-
export function
|
1781
|
-
const ret =
|
1869
|
+
export function __wbindgen_in(arg0, arg1) {
|
1870
|
+
const ret = arg0 in arg1;
|
1782
1871
|
return ret;
|
1783
1872
|
};
|
1784
1873
|
|
1785
|
-
export function
|
1786
|
-
|
1874
|
+
export function __wbindgen_init_externref_table() {
|
1875
|
+
const table = wasm.__wbindgen_export_2;
|
1876
|
+
const offset = table.grow(4);
|
1877
|
+
table.set(0, undefined);
|
1878
|
+
table.set(offset + 0, undefined);
|
1879
|
+
table.set(offset + 1, null);
|
1880
|
+
table.set(offset + 2, true);
|
1881
|
+
table.set(offset + 3, false);
|
1882
|
+
;
|
1787
1883
|
};
|
1788
1884
|
|
1789
|
-
export function
|
1790
|
-
const ret = arg0
|
1885
|
+
export function __wbindgen_is_bigint(arg0) {
|
1886
|
+
const ret = typeof(arg0) === 'bigint';
|
1791
1887
|
return ret;
|
1792
1888
|
};
|
1793
1889
|
|
1794
|
-
export function
|
1795
|
-
|
1796
|
-
try {
|
1797
|
-
result = arg0 instanceof Uint8Array;
|
1798
|
-
} catch (_) {
|
1799
|
-
result = false;
|
1800
|
-
}
|
1801
|
-
const ret = result;
|
1890
|
+
export function __wbindgen_is_function(arg0) {
|
1891
|
+
const ret = typeof(arg0) === 'function';
|
1802
1892
|
return ret;
|
1803
1893
|
};
|
1804
1894
|
|
1805
|
-
export function
|
1806
|
-
const
|
1807
|
-
const ret = typeof(
|
1808
|
-
|
1809
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1895
|
+
export function __wbindgen_is_object(arg0) {
|
1896
|
+
const val = arg0;
|
1897
|
+
const ret = typeof(val) === 'object' && val !== null;
|
1898
|
+
return ret;
|
1810
1899
|
};
|
1811
1900
|
|
1812
|
-
export function
|
1813
|
-
const ret =
|
1814
|
-
|
1815
|
-
const len1 = WASM_VECTOR_LEN;
|
1816
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1817
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1901
|
+
export function __wbindgen_is_string(arg0) {
|
1902
|
+
const ret = typeof(arg0) === 'string';
|
1903
|
+
return ret;
|
1818
1904
|
};
|
1819
1905
|
|
1820
|
-
export function
|
1821
|
-
|
1906
|
+
export function __wbindgen_is_undefined(arg0) {
|
1907
|
+
const ret = arg0 === undefined;
|
1908
|
+
return ret;
|
1822
1909
|
};
|
1823
1910
|
|
1824
|
-
export function
|
1825
|
-
const ret =
|
1911
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
1912
|
+
const ret = arg0 === arg1;
|
1826
1913
|
return ret;
|
1827
1914
|
};
|
1828
1915
|
|
1829
|
-
export function
|
1830
|
-
const ret =
|
1916
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
1917
|
+
const ret = arg0 == arg1;
|
1831
1918
|
return ret;
|
1832
1919
|
};
|
1833
1920
|
|
1834
|
-
export function
|
1835
|
-
const ret =
|
1921
|
+
export function __wbindgen_memory() {
|
1922
|
+
const ret = wasm.memory;
|
1836
1923
|
return ret;
|
1837
1924
|
};
|
1838
1925
|
|
1839
|
-
export function
|
1840
|
-
const
|
1841
|
-
|
1926
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1927
|
+
const obj = arg1;
|
1928
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1929
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
1930
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1842
1931
|
};
|
1843
1932
|
|
1844
|
-
export function
|
1845
|
-
const ret =
|
1933
|
+
export function __wbindgen_number_new(arg0) {
|
1934
|
+
const ret = arg0;
|
1846
1935
|
return ret;
|
1847
1936
|
};
|
1848
1937
|
|
1849
|
-
export function
|
1850
|
-
const
|
1851
|
-
|
1938
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
1939
|
+
const obj = arg1;
|
1940
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
1941
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1942
|
+
var len1 = WASM_VECTOR_LEN;
|
1943
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1944
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1852
1945
|
};
|
1853
1946
|
|
1854
|
-
export function
|
1855
|
-
const ret =
|
1947
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1948
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1856
1949
|
return ret;
|
1857
1950
|
};
|
1858
1951
|
|
1859
|
-
export function
|
1860
|
-
|
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
|
-
;
|
1952
|
+
export function __wbindgen_throw(arg0, arg1) {
|
1953
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
1868
1954
|
};
|
1869
1955
|
|