ms-toollib 1.2.8 → 1.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/ms_toollib.d.ts +127 -87
- package/ms_toollib.js +3 -1
- package/ms_toollib_bg.js +616 -253
- package/ms_toollib_bg.wasm +0 -0
- package/package.json +5 -2
package/ms_toollib_bg.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
|
|
3
|
-
const heap = new Array(
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
4
8
|
|
|
5
9
|
heap.push(undefined, null, true, false);
|
|
6
10
|
|
|
@@ -9,7 +13,7 @@ function getObject(idx) { return heap[idx]; }
|
|
|
9
13
|
let heap_next = heap.length;
|
|
10
14
|
|
|
11
15
|
function dropObject(idx) {
|
|
12
|
-
if (idx <
|
|
16
|
+
if (idx < 132) return;
|
|
13
17
|
heap[idx] = heap_next;
|
|
14
18
|
heap_next = idx;
|
|
15
19
|
}
|
|
@@ -20,33 +24,35 @@ function takeObject(idx) {
|
|
|
20
24
|
return ret;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
function addHeapObject(obj) {
|
|
24
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
25
|
-
const idx = heap_next;
|
|
26
|
-
heap_next = heap[idx];
|
|
27
|
-
|
|
28
|
-
heap[idx] = obj;
|
|
29
|
-
return idx;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
27
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
33
28
|
|
|
34
29
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
35
30
|
|
|
36
31
|
cachedTextDecoder.decode();
|
|
37
32
|
|
|
38
|
-
let
|
|
33
|
+
let cachedUint8Memory0 = null;
|
|
34
|
+
|
|
39
35
|
function getUint8Memory0() {
|
|
40
|
-
if (
|
|
41
|
-
|
|
36
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
37
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
42
38
|
}
|
|
43
|
-
return
|
|
39
|
+
return cachedUint8Memory0;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
function getStringFromWasm0(ptr, len) {
|
|
43
|
+
ptr = ptr >>> 0;
|
|
47
44
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
48
45
|
}
|
|
49
46
|
|
|
47
|
+
function addHeapObject(obj) {
|
|
48
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
49
|
+
const idx = heap_next;
|
|
50
|
+
heap_next = heap[idx];
|
|
51
|
+
|
|
52
|
+
heap[idx] = obj;
|
|
53
|
+
return idx;
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
let WASM_VECTOR_LEN = 0;
|
|
51
57
|
|
|
52
58
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
@@ -70,14 +76,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
70
76
|
|
|
71
77
|
if (realloc === undefined) {
|
|
72
78
|
const buf = cachedTextEncoder.encode(arg);
|
|
73
|
-
const ptr = malloc(buf.length);
|
|
79
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
74
80
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
75
81
|
WASM_VECTOR_LEN = buf.length;
|
|
76
82
|
return ptr;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
let len = arg.length;
|
|
80
|
-
let ptr = malloc(len);
|
|
86
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
81
87
|
|
|
82
88
|
const mem = getUint8Memory0();
|
|
83
89
|
|
|
@@ -93,7 +99,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
93
99
|
if (offset !== 0) {
|
|
94
100
|
arg = arg.slice(offset);
|
|
95
101
|
}
|
|
96
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
102
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
97
103
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
98
104
|
const ret = encodeString(arg, view);
|
|
99
105
|
|
|
@@ -103,14 +109,35 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
103
109
|
WASM_VECTOR_LEN = offset;
|
|
104
110
|
return ptr;
|
|
105
111
|
}
|
|
112
|
+
|
|
113
|
+
let cachedInt32Memory0 = null;
|
|
114
|
+
|
|
115
|
+
function getInt32Memory0() {
|
|
116
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
117
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
118
|
+
}
|
|
119
|
+
return cachedInt32Memory0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
123
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
124
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
125
|
+
WASM_VECTOR_LEN = arg.length;
|
|
126
|
+
return ptr;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
130
|
+
ptr = ptr >>> 0;
|
|
131
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
132
|
+
}
|
|
106
133
|
/**
|
|
107
134
|
* @param {string} board_json
|
|
108
135
|
* @returns {number}
|
|
109
136
|
*/
|
|
110
137
|
export function cal3BV(board_json) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
138
|
+
const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
139
|
+
const len0 = WASM_VECTOR_LEN;
|
|
140
|
+
const ret = wasm.cal3BV(ptr0, len0);
|
|
114
141
|
return ret;
|
|
115
142
|
}
|
|
116
143
|
|
|
@@ -119,36 +146,33 @@ export function cal3BV(board_json) {
|
|
|
119
146
|
* @returns {number}
|
|
120
147
|
*/
|
|
121
148
|
export function cal_op(board_json) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
149
|
+
const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
150
|
+
const len0 = WASM_VECTOR_LEN;
|
|
151
|
+
const ret = wasm.cal_op(ptr0, len0);
|
|
125
152
|
return ret;
|
|
126
153
|
}
|
|
127
154
|
|
|
128
|
-
let cachegetInt32Memory0 = null;
|
|
129
|
-
function getInt32Memory0() {
|
|
130
|
-
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
131
|
-
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
132
|
-
}
|
|
133
|
-
return cachegetInt32Memory0;
|
|
134
|
-
}
|
|
135
155
|
/**
|
|
136
156
|
* @param {string} board_json
|
|
137
157
|
* @param {number} mine_num
|
|
138
158
|
* @returns {string}
|
|
139
159
|
*/
|
|
140
160
|
export function cal_possibility_onboard(board_json, mine_num) {
|
|
161
|
+
let deferred2_0;
|
|
162
|
+
let deferred2_1;
|
|
141
163
|
try {
|
|
142
164
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
143
|
-
|
|
144
|
-
|
|
165
|
+
const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
166
|
+
const len0 = WASM_VECTOR_LEN;
|
|
145
167
|
wasm.cal_possibility_onboard(retptr, ptr0, len0, mine_num);
|
|
146
168
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
147
169
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
170
|
+
deferred2_0 = r0;
|
|
171
|
+
deferred2_1 = r1;
|
|
148
172
|
return getStringFromWasm0(r0, r1);
|
|
149
173
|
} finally {
|
|
150
174
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
151
|
-
wasm.__wbindgen_free(
|
|
175
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
152
176
|
}
|
|
153
177
|
}
|
|
154
178
|
|
|
@@ -161,15 +185,19 @@ export function cal_possibility_onboard(board_json, mine_num) {
|
|
|
161
185
|
* @returns {string}
|
|
162
186
|
*/
|
|
163
187
|
export function laymine_number(row, column, mine_num, x0, y0) {
|
|
188
|
+
let deferred1_0;
|
|
189
|
+
let deferred1_1;
|
|
164
190
|
try {
|
|
165
191
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
166
192
|
wasm.laymine_number(retptr, row, column, mine_num, x0, y0);
|
|
167
193
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
168
194
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
195
|
+
deferred1_0 = r0;
|
|
196
|
+
deferred1_1 = r1;
|
|
169
197
|
return getStringFromWasm0(r0, r1);
|
|
170
198
|
} finally {
|
|
171
199
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
172
|
-
wasm.__wbindgen_free(
|
|
200
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
173
201
|
}
|
|
174
202
|
}
|
|
175
203
|
|
|
@@ -182,15 +210,19 @@ export function laymine_number(row, column, mine_num, x0, y0) {
|
|
|
182
210
|
* @returns {string}
|
|
183
211
|
*/
|
|
184
212
|
export function laymine_op_number(row, column, mine_num, x0, y0) {
|
|
213
|
+
let deferred1_0;
|
|
214
|
+
let deferred1_1;
|
|
185
215
|
try {
|
|
186
216
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
187
217
|
wasm.laymine_op_number(retptr, row, column, mine_num, x0, y0);
|
|
188
218
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
189
219
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
220
|
+
deferred1_0 = r0;
|
|
221
|
+
deferred1_1 = r1;
|
|
190
222
|
return getStringFromWasm0(r0, r1);
|
|
191
223
|
} finally {
|
|
192
224
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
193
|
-
wasm.__wbindgen_free(
|
|
225
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
194
226
|
}
|
|
195
227
|
}
|
|
196
228
|
|
|
@@ -204,25 +236,22 @@ export function laymine_op_number(row, column, mine_num, x0, y0) {
|
|
|
204
236
|
* @returns {string}
|
|
205
237
|
*/
|
|
206
238
|
export function laymine_solvable(row, column, mine_num, x0, y0, max_times) {
|
|
239
|
+
let deferred1_0;
|
|
240
|
+
let deferred1_1;
|
|
207
241
|
try {
|
|
208
242
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
209
243
|
wasm.laymine_solvable(retptr, row, column, mine_num, x0, y0, max_times);
|
|
210
244
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
211
245
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
246
|
+
deferred1_0 = r0;
|
|
247
|
+
deferred1_1 = r1;
|
|
212
248
|
return getStringFromWasm0(r0, r1);
|
|
213
249
|
} finally {
|
|
214
250
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
215
|
-
wasm.__wbindgen_free(
|
|
251
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
216
252
|
}
|
|
217
253
|
}
|
|
218
254
|
|
|
219
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
220
|
-
const ptr = malloc(arg.length * 1);
|
|
221
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
222
|
-
WASM_VECTOR_LEN = arg.length;
|
|
223
|
-
return ptr;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
255
|
function handleError(f, args) {
|
|
227
256
|
try {
|
|
228
257
|
return f.apply(this, args);
|
|
@@ -230,30 +259,40 @@ function handleError(f, args) {
|
|
|
230
259
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
231
260
|
}
|
|
232
261
|
}
|
|
233
|
-
|
|
234
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
235
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
236
|
-
}
|
|
237
262
|
/**
|
|
238
263
|
*/
|
|
239
264
|
export class AvfVideo {
|
|
240
265
|
|
|
241
266
|
static __wrap(ptr) {
|
|
267
|
+
ptr = ptr >>> 0;
|
|
242
268
|
const obj = Object.create(AvfVideo.prototype);
|
|
243
|
-
obj.
|
|
269
|
+
obj.__wbg_ptr = ptr;
|
|
244
270
|
|
|
245
271
|
return obj;
|
|
246
272
|
}
|
|
247
273
|
|
|
248
274
|
toJSON() {
|
|
249
275
|
return {
|
|
276
|
+
get_raw_data: this.get_raw_data,
|
|
277
|
+
get_time: this.get_time,
|
|
278
|
+
get_software: this.get_software,
|
|
250
279
|
get_row: this.get_row,
|
|
251
280
|
get_column: this.get_column,
|
|
281
|
+
get_level: this.get_level,
|
|
282
|
+
get_mode: this.get_mode,
|
|
283
|
+
get_is_completed: this.get_is_completed,
|
|
284
|
+
get_is_offical: this.get_is_offical,
|
|
285
|
+
get_is_fair: this.get_is_fair,
|
|
252
286
|
get_mine_num: this.get_mine_num,
|
|
287
|
+
get_player_designator: this.get_player_designator,
|
|
288
|
+
get_race_designator: this.get_race_designator,
|
|
289
|
+
get_uniqueness_designator: this.get_uniqueness_designator,
|
|
290
|
+
get_country: this.get_country,
|
|
253
291
|
get_bbbv: this.get_bbbv,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
292
|
+
get_start_time: this.get_start_time,
|
|
293
|
+
get_end_time: this.get_end_time,
|
|
294
|
+
get_op: this.get_op,
|
|
295
|
+
get_isl: this.get_isl,
|
|
257
296
|
get_hizi: this.get_hizi,
|
|
258
297
|
get_cell0: this.get_cell0,
|
|
259
298
|
get_cell1: this.get_cell1,
|
|
@@ -264,27 +303,38 @@ export class AvfVideo {
|
|
|
264
303
|
get_cell6: this.get_cell6,
|
|
265
304
|
get_cell7: this.get_cell7,
|
|
266
305
|
get_cell8: this.get_cell8,
|
|
267
|
-
|
|
306
|
+
get_rtime: this.get_rtime,
|
|
307
|
+
get_rtime_ms: this.get_rtime_ms,
|
|
308
|
+
get_etime: this.get_etime,
|
|
309
|
+
get_video_time: this.get_video_time,
|
|
268
310
|
get_bbbv_s: this.get_bbbv_s,
|
|
269
311
|
get_stnb: this.get_stnb,
|
|
270
312
|
get_rqp: this.get_rqp,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
313
|
+
get_left: this.get_left,
|
|
314
|
+
get_right: this.get_right,
|
|
315
|
+
get_double: this.get_double,
|
|
316
|
+
get_cl: this.get_cl,
|
|
317
|
+
get_flag: this.get_flag,
|
|
318
|
+
get_bbbv_solved: this.get_bbbv_solved,
|
|
319
|
+
get_ce: this.get_ce,
|
|
320
|
+
get_left_s: this.get_left_s,
|
|
321
|
+
get_right_s: this.get_right_s,
|
|
322
|
+
get_double_s: this.get_double_s,
|
|
323
|
+
get_cl_s: this.get_cl_s,
|
|
324
|
+
get_flag_s: this.get_flag_s,
|
|
325
|
+
get_path: this.get_path,
|
|
326
|
+
get_ce_s: this.get_ce_s,
|
|
327
|
+
get_ioe: this.get_ioe,
|
|
328
|
+
get_thrp: this.get_thrp,
|
|
329
|
+
get_corr: this.get_corr,
|
|
282
330
|
get_events_len: this.get_events_len,
|
|
283
331
|
get_current_event_id: this.get_current_event_id,
|
|
284
332
|
get_game_board: this.get_game_board,
|
|
285
333
|
get_game_board_poss: this.get_game_board_poss,
|
|
286
334
|
get_mouse_state: this.get_mouse_state,
|
|
287
335
|
get_game_board_state: this.get_game_board_state,
|
|
336
|
+
get_x_y: this.get_x_y,
|
|
337
|
+
get_checksum: this.get_checksum,
|
|
288
338
|
};
|
|
289
339
|
}
|
|
290
340
|
|
|
@@ -293,8 +343,8 @@ export class AvfVideo {
|
|
|
293
343
|
}
|
|
294
344
|
|
|
295
345
|
__destroy_into_raw() {
|
|
296
|
-
const ptr = this.
|
|
297
|
-
this.
|
|
346
|
+
const ptr = this.__wbg_ptr;
|
|
347
|
+
this.__wbg_ptr = 0;
|
|
298
348
|
|
|
299
349
|
return ptr;
|
|
300
350
|
}
|
|
@@ -305,261 +355,481 @@ export class AvfVideo {
|
|
|
305
355
|
}
|
|
306
356
|
/**
|
|
307
357
|
* @param {Uint8Array} data
|
|
308
|
-
* @
|
|
309
|
-
*/
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
358
|
+
* @param {string} file_name
|
|
359
|
+
*/
|
|
360
|
+
constructor(data, file_name) {
|
|
361
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
362
|
+
const len0 = WASM_VECTOR_LEN;
|
|
363
|
+
const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
364
|
+
const len1 = WASM_VECTOR_LEN;
|
|
365
|
+
const ret = wasm.avfvideo_new(ptr0, len0, ptr1, len1);
|
|
314
366
|
return AvfVideo.__wrap(ret);
|
|
315
367
|
}
|
|
316
368
|
/**
|
|
317
369
|
*/
|
|
318
370
|
parse_video() {
|
|
319
|
-
wasm.avfvideo_parse_video(this.
|
|
371
|
+
wasm.avfvideo_parse_video(this.__wbg_ptr);
|
|
320
372
|
}
|
|
321
373
|
/**
|
|
322
374
|
*/
|
|
323
375
|
analyse() {
|
|
324
|
-
wasm.avfvideo_analyse(this.
|
|
376
|
+
wasm.avfvideo_analyse(this.__wbg_ptr);
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* @returns {Uint8Array}
|
|
380
|
+
*/
|
|
381
|
+
get get_raw_data() {
|
|
382
|
+
try {
|
|
383
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
384
|
+
wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
|
|
385
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
386
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
387
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
388
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
389
|
+
return v1;
|
|
390
|
+
} finally {
|
|
391
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @returns {number}
|
|
396
|
+
*/
|
|
397
|
+
get get_time() {
|
|
398
|
+
const ret = wasm.avfvideo_get_time(this.__wbg_ptr);
|
|
399
|
+
return ret;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @returns {Uint8Array}
|
|
403
|
+
*/
|
|
404
|
+
get get_software() {
|
|
405
|
+
try {
|
|
406
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
407
|
+
wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
|
|
408
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
409
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
410
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
411
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
412
|
+
return v1;
|
|
413
|
+
} finally {
|
|
414
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
415
|
+
}
|
|
325
416
|
}
|
|
326
417
|
/**
|
|
327
418
|
* @returns {number}
|
|
328
419
|
*/
|
|
329
420
|
get get_row() {
|
|
330
|
-
|
|
421
|
+
const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
|
|
331
422
|
return ret >>> 0;
|
|
332
423
|
}
|
|
333
424
|
/**
|
|
334
425
|
* @returns {number}
|
|
335
426
|
*/
|
|
336
427
|
get get_column() {
|
|
337
|
-
|
|
428
|
+
const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
|
|
429
|
+
return ret >>> 0;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @returns {number}
|
|
433
|
+
*/
|
|
434
|
+
get get_level() {
|
|
435
|
+
const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
|
|
338
436
|
return ret >>> 0;
|
|
339
437
|
}
|
|
340
438
|
/**
|
|
341
439
|
* @returns {number}
|
|
342
440
|
*/
|
|
441
|
+
get get_mode() {
|
|
442
|
+
const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
|
|
443
|
+
return ret;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* @returns {boolean}
|
|
447
|
+
*/
|
|
448
|
+
get get_is_completed() {
|
|
449
|
+
const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
|
|
450
|
+
return ret !== 0;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @returns {boolean}
|
|
454
|
+
*/
|
|
455
|
+
get get_is_offical() {
|
|
456
|
+
const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
|
|
457
|
+
return ret !== 0;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* @returns {boolean}
|
|
461
|
+
*/
|
|
462
|
+
get get_is_fair() {
|
|
463
|
+
const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
|
|
464
|
+
return ret !== 0;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* @returns {number}
|
|
468
|
+
*/
|
|
343
469
|
get get_mine_num() {
|
|
344
|
-
|
|
470
|
+
const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
|
|
345
471
|
return ret >>> 0;
|
|
346
472
|
}
|
|
347
473
|
/**
|
|
474
|
+
* @returns {Uint8Array}
|
|
475
|
+
*/
|
|
476
|
+
get get_player_designator() {
|
|
477
|
+
try {
|
|
478
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
479
|
+
wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
|
|
480
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
481
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
482
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
483
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
484
|
+
return v1;
|
|
485
|
+
} finally {
|
|
486
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* @returns {Uint8Array}
|
|
491
|
+
*/
|
|
492
|
+
get get_race_designator() {
|
|
493
|
+
try {
|
|
494
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
495
|
+
wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
|
|
496
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
497
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
498
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
499
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
500
|
+
return v1;
|
|
501
|
+
} finally {
|
|
502
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @returns {Uint8Array}
|
|
507
|
+
*/
|
|
508
|
+
get get_uniqueness_designator() {
|
|
509
|
+
try {
|
|
510
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
511
|
+
wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
|
|
512
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
513
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
514
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
515
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
516
|
+
return v1;
|
|
517
|
+
} finally {
|
|
518
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* @returns {Uint8Array}
|
|
523
|
+
*/
|
|
524
|
+
get get_country() {
|
|
525
|
+
try {
|
|
526
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
527
|
+
wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
|
|
528
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
529
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
530
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
531
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
532
|
+
return v1;
|
|
533
|
+
} finally {
|
|
534
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
348
538
|
* @returns {number}
|
|
349
539
|
*/
|
|
350
540
|
get get_bbbv() {
|
|
351
|
-
|
|
541
|
+
const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
|
|
352
542
|
return ret >>> 0;
|
|
353
543
|
}
|
|
354
544
|
/**
|
|
355
|
-
* @returns {
|
|
545
|
+
* @returns {Uint8Array}
|
|
356
546
|
*/
|
|
357
|
-
get
|
|
547
|
+
get get_start_time() {
|
|
358
548
|
try {
|
|
359
549
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
360
|
-
wasm.
|
|
550
|
+
wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
|
|
361
551
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
362
552
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
363
|
-
|
|
553
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
554
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
555
|
+
return v1;
|
|
556
|
+
} finally {
|
|
557
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @returns {Uint8Array}
|
|
562
|
+
*/
|
|
563
|
+
get get_end_time() {
|
|
564
|
+
try {
|
|
565
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
566
|
+
wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
|
|
567
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
568
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
569
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
570
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
571
|
+
return v1;
|
|
364
572
|
} finally {
|
|
365
573
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
366
|
-
wasm.__wbindgen_free(r0, r1);
|
|
367
574
|
}
|
|
368
575
|
}
|
|
369
576
|
/**
|
|
370
577
|
* @returns {number}
|
|
371
578
|
*/
|
|
372
|
-
get
|
|
373
|
-
|
|
579
|
+
get get_op() {
|
|
580
|
+
const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
|
|
374
581
|
return ret >>> 0;
|
|
375
582
|
}
|
|
376
583
|
/**
|
|
377
584
|
* @returns {number}
|
|
378
585
|
*/
|
|
379
|
-
get
|
|
380
|
-
|
|
586
|
+
get get_isl() {
|
|
587
|
+
const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
|
|
381
588
|
return ret >>> 0;
|
|
382
589
|
}
|
|
383
590
|
/**
|
|
384
591
|
* @returns {number}
|
|
385
592
|
*/
|
|
386
593
|
get get_hizi() {
|
|
387
|
-
|
|
594
|
+
const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
|
|
388
595
|
return ret >>> 0;
|
|
389
596
|
}
|
|
390
597
|
/**
|
|
391
598
|
* @returns {number}
|
|
392
599
|
*/
|
|
393
600
|
get get_cell0() {
|
|
394
|
-
|
|
601
|
+
const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
|
|
395
602
|
return ret >>> 0;
|
|
396
603
|
}
|
|
397
604
|
/**
|
|
398
605
|
* @returns {number}
|
|
399
606
|
*/
|
|
400
607
|
get get_cell1() {
|
|
401
|
-
|
|
608
|
+
const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
|
|
402
609
|
return ret >>> 0;
|
|
403
610
|
}
|
|
404
611
|
/**
|
|
405
612
|
* @returns {number}
|
|
406
613
|
*/
|
|
407
614
|
get get_cell2() {
|
|
408
|
-
|
|
615
|
+
const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
|
|
409
616
|
return ret >>> 0;
|
|
410
617
|
}
|
|
411
618
|
/**
|
|
412
619
|
* @returns {number}
|
|
413
620
|
*/
|
|
414
621
|
get get_cell3() {
|
|
415
|
-
|
|
622
|
+
const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
|
|
416
623
|
return ret >>> 0;
|
|
417
624
|
}
|
|
418
625
|
/**
|
|
419
626
|
* @returns {number}
|
|
420
627
|
*/
|
|
421
628
|
get get_cell4() {
|
|
422
|
-
|
|
629
|
+
const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
|
|
423
630
|
return ret >>> 0;
|
|
424
631
|
}
|
|
425
632
|
/**
|
|
426
633
|
* @returns {number}
|
|
427
634
|
*/
|
|
428
635
|
get get_cell5() {
|
|
429
|
-
|
|
636
|
+
const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
|
|
430
637
|
return ret >>> 0;
|
|
431
638
|
}
|
|
432
639
|
/**
|
|
433
640
|
* @returns {number}
|
|
434
641
|
*/
|
|
435
642
|
get get_cell6() {
|
|
436
|
-
|
|
643
|
+
const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
|
|
437
644
|
return ret >>> 0;
|
|
438
645
|
}
|
|
439
646
|
/**
|
|
440
647
|
* @returns {number}
|
|
441
648
|
*/
|
|
442
649
|
get get_cell7() {
|
|
443
|
-
|
|
650
|
+
const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
|
|
444
651
|
return ret >>> 0;
|
|
445
652
|
}
|
|
446
653
|
/**
|
|
447
654
|
* @returns {number}
|
|
448
655
|
*/
|
|
449
656
|
get get_cell8() {
|
|
450
|
-
|
|
657
|
+
const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
|
|
658
|
+
return ret >>> 0;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @returns {number}
|
|
662
|
+
*/
|
|
663
|
+
get get_rtime() {
|
|
664
|
+
const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
|
|
665
|
+
return ret;
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* @returns {number}
|
|
669
|
+
*/
|
|
670
|
+
get get_rtime_ms() {
|
|
671
|
+
const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
|
|
451
672
|
return ret >>> 0;
|
|
452
673
|
}
|
|
453
674
|
/**
|
|
454
675
|
* @returns {number}
|
|
455
676
|
*/
|
|
456
|
-
get
|
|
457
|
-
|
|
677
|
+
get get_etime() {
|
|
678
|
+
const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
|
|
679
|
+
return ret;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @returns {number}
|
|
683
|
+
*/
|
|
684
|
+
get get_video_time() {
|
|
685
|
+
const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
|
|
458
686
|
return ret;
|
|
459
687
|
}
|
|
460
688
|
/**
|
|
461
689
|
* @returns {number}
|
|
462
690
|
*/
|
|
463
691
|
get get_bbbv_s() {
|
|
464
|
-
|
|
692
|
+
const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
|
|
465
693
|
return ret;
|
|
466
694
|
}
|
|
467
695
|
/**
|
|
468
696
|
* @returns {number}
|
|
469
697
|
*/
|
|
470
698
|
get get_stnb() {
|
|
471
|
-
|
|
699
|
+
const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
|
|
472
700
|
return ret;
|
|
473
701
|
}
|
|
474
702
|
/**
|
|
475
703
|
* @returns {number}
|
|
476
704
|
*/
|
|
477
705
|
get get_rqp() {
|
|
478
|
-
|
|
706
|
+
const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
|
|
479
707
|
return ret;
|
|
480
708
|
}
|
|
481
709
|
/**
|
|
482
710
|
* @returns {number}
|
|
483
711
|
*/
|
|
484
|
-
get
|
|
485
|
-
|
|
712
|
+
get get_left() {
|
|
713
|
+
const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
|
|
714
|
+
return ret >>> 0;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @returns {number}
|
|
718
|
+
*/
|
|
719
|
+
get get_right() {
|
|
720
|
+
const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
|
|
486
721
|
return ret >>> 0;
|
|
487
722
|
}
|
|
488
723
|
/**
|
|
489
724
|
* @returns {number}
|
|
490
725
|
*/
|
|
491
|
-
get
|
|
492
|
-
|
|
726
|
+
get get_double() {
|
|
727
|
+
const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
|
|
493
728
|
return ret >>> 0;
|
|
494
729
|
}
|
|
495
730
|
/**
|
|
496
731
|
* @returns {number}
|
|
497
732
|
*/
|
|
498
|
-
get
|
|
499
|
-
|
|
733
|
+
get get_cl() {
|
|
734
|
+
const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
|
|
500
735
|
return ret >>> 0;
|
|
501
736
|
}
|
|
502
737
|
/**
|
|
503
738
|
* @returns {number}
|
|
504
739
|
*/
|
|
505
|
-
get
|
|
506
|
-
|
|
740
|
+
get get_flag() {
|
|
741
|
+
const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
|
|
507
742
|
return ret >>> 0;
|
|
508
743
|
}
|
|
509
744
|
/**
|
|
510
745
|
* @returns {number}
|
|
511
746
|
*/
|
|
512
|
-
get
|
|
513
|
-
|
|
747
|
+
get get_bbbv_solved() {
|
|
748
|
+
const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
|
|
514
749
|
return ret >>> 0;
|
|
515
750
|
}
|
|
516
751
|
/**
|
|
517
752
|
* @returns {number}
|
|
518
753
|
*/
|
|
519
|
-
get
|
|
520
|
-
|
|
754
|
+
get get_ce() {
|
|
755
|
+
const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
|
|
521
756
|
return ret >>> 0;
|
|
522
757
|
}
|
|
523
758
|
/**
|
|
524
759
|
* @returns {number}
|
|
525
760
|
*/
|
|
526
|
-
get
|
|
527
|
-
|
|
761
|
+
get get_left_s() {
|
|
762
|
+
const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
|
|
763
|
+
return ret;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* @returns {number}
|
|
767
|
+
*/
|
|
768
|
+
get get_right_s() {
|
|
769
|
+
const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
|
|
770
|
+
return ret;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* @returns {number}
|
|
774
|
+
*/
|
|
775
|
+
get get_double_s() {
|
|
776
|
+
const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
|
|
777
|
+
return ret;
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* @returns {number}
|
|
781
|
+
*/
|
|
782
|
+
get get_cl_s() {
|
|
783
|
+
const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
|
|
784
|
+
return ret;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* @returns {number}
|
|
788
|
+
*/
|
|
789
|
+
get get_flag_s() {
|
|
790
|
+
const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
|
|
528
791
|
return ret;
|
|
529
792
|
}
|
|
530
793
|
/**
|
|
531
794
|
* @returns {number}
|
|
532
795
|
*/
|
|
533
|
-
get
|
|
534
|
-
|
|
796
|
+
get get_path() {
|
|
797
|
+
const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
|
|
535
798
|
return ret;
|
|
536
799
|
}
|
|
537
800
|
/**
|
|
538
801
|
* @returns {number}
|
|
539
802
|
*/
|
|
540
|
-
get
|
|
541
|
-
|
|
803
|
+
get get_ce_s() {
|
|
804
|
+
const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
|
|
542
805
|
return ret;
|
|
543
806
|
}
|
|
544
807
|
/**
|
|
545
808
|
* @returns {number}
|
|
546
809
|
*/
|
|
547
|
-
get
|
|
548
|
-
|
|
810
|
+
get get_ioe() {
|
|
811
|
+
const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
|
|
549
812
|
return ret;
|
|
550
813
|
}
|
|
551
814
|
/**
|
|
552
815
|
* @returns {number}
|
|
553
816
|
*/
|
|
554
|
-
get
|
|
555
|
-
|
|
817
|
+
get get_thrp() {
|
|
818
|
+
const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
|
|
819
|
+
return ret;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* @returns {number}
|
|
823
|
+
*/
|
|
824
|
+
get get_corr() {
|
|
825
|
+
const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
|
|
556
826
|
return ret;
|
|
557
827
|
}
|
|
558
828
|
/**
|
|
559
829
|
* @returns {number}
|
|
560
830
|
*/
|
|
561
831
|
get get_events_len() {
|
|
562
|
-
|
|
832
|
+
const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
|
|
563
833
|
return ret >>> 0;
|
|
564
834
|
}
|
|
565
835
|
/**
|
|
@@ -567,7 +837,7 @@ export class AvfVideo {
|
|
|
567
837
|
* @returns {number}
|
|
568
838
|
*/
|
|
569
839
|
events_time(index) {
|
|
570
|
-
|
|
840
|
+
const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
|
|
571
841
|
return ret;
|
|
572
842
|
}
|
|
573
843
|
/**
|
|
@@ -575,15 +845,19 @@ export class AvfVideo {
|
|
|
575
845
|
* @returns {string}
|
|
576
846
|
*/
|
|
577
847
|
events_mouse(index) {
|
|
848
|
+
let deferred1_0;
|
|
849
|
+
let deferred1_1;
|
|
578
850
|
try {
|
|
579
851
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
580
|
-
wasm.avfvideo_events_mouse(retptr, this.
|
|
852
|
+
wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
|
|
581
853
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
582
854
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
855
|
+
deferred1_0 = r0;
|
|
856
|
+
deferred1_1 = r1;
|
|
583
857
|
return getStringFromWasm0(r0, r1);
|
|
584
858
|
} finally {
|
|
585
859
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
586
|
-
wasm.__wbindgen_free(
|
|
860
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
587
861
|
}
|
|
588
862
|
}
|
|
589
863
|
/**
|
|
@@ -591,7 +865,7 @@ export class AvfVideo {
|
|
|
591
865
|
* @returns {number}
|
|
592
866
|
*/
|
|
593
867
|
events_x(index) {
|
|
594
|
-
|
|
868
|
+
const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
|
|
595
869
|
return ret >>> 0;
|
|
596
870
|
}
|
|
597
871
|
/**
|
|
@@ -599,7 +873,7 @@ export class AvfVideo {
|
|
|
599
873
|
* @returns {number}
|
|
600
874
|
*/
|
|
601
875
|
events_y(index) {
|
|
602
|
-
|
|
876
|
+
const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
|
|
603
877
|
return ret >>> 0;
|
|
604
878
|
}
|
|
605
879
|
/**
|
|
@@ -607,97 +881,162 @@ export class AvfVideo {
|
|
|
607
881
|
* @returns {number}
|
|
608
882
|
*/
|
|
609
883
|
events_useful_level(index) {
|
|
610
|
-
|
|
884
|
+
const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
|
|
611
885
|
return ret >>> 0;
|
|
612
886
|
}
|
|
613
887
|
/**
|
|
614
888
|
* @param {number} index
|
|
615
|
-
* @returns {string}
|
|
616
|
-
*/
|
|
617
|
-
events_comments(index) {
|
|
618
|
-
try {
|
|
619
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
620
|
-
wasm.avfvideo_events_comments(retptr, this.ptr, index);
|
|
621
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
622
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
623
|
-
return getStringFromWasm0(r0, r1);
|
|
624
|
-
} finally {
|
|
625
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
626
|
-
wasm.__wbindgen_free(r0, r1);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* @param {number} index
|
|
631
889
|
* @returns {number}
|
|
632
890
|
*/
|
|
633
891
|
events_mouse_state(index) {
|
|
634
|
-
|
|
892
|
+
const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
|
|
635
893
|
return ret >>> 0;
|
|
636
894
|
}
|
|
637
895
|
/**
|
|
638
896
|
* @returns {number}
|
|
639
897
|
*/
|
|
640
898
|
get get_current_event_id() {
|
|
641
|
-
|
|
899
|
+
const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
|
|
642
900
|
return ret >>> 0;
|
|
643
901
|
}
|
|
644
902
|
/**
|
|
645
903
|
* @param {number} id
|
|
646
904
|
*/
|
|
647
905
|
set current_event_id(id) {
|
|
648
|
-
wasm.avfvideo_set_current_event_id(this.
|
|
906
|
+
wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
|
|
649
907
|
}
|
|
650
908
|
/**
|
|
651
909
|
* @returns {string}
|
|
652
910
|
*/
|
|
653
911
|
get get_game_board() {
|
|
912
|
+
let deferred1_0;
|
|
913
|
+
let deferred1_1;
|
|
654
914
|
try {
|
|
655
915
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
656
|
-
wasm.avfvideo_get_game_board(retptr, this.
|
|
916
|
+
wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
|
|
657
917
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
658
918
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
919
|
+
deferred1_0 = r0;
|
|
920
|
+
deferred1_1 = r1;
|
|
659
921
|
return getStringFromWasm0(r0, r1);
|
|
660
922
|
} finally {
|
|
661
923
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
662
|
-
wasm.__wbindgen_free(
|
|
924
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
663
925
|
}
|
|
664
926
|
}
|
|
665
927
|
/**
|
|
666
928
|
* @returns {string}
|
|
667
929
|
*/
|
|
668
930
|
get get_game_board_poss() {
|
|
931
|
+
let deferred1_0;
|
|
932
|
+
let deferred1_1;
|
|
669
933
|
try {
|
|
670
934
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
671
|
-
wasm.avfvideo_get_game_board_poss(retptr, this.
|
|
935
|
+
wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
|
|
672
936
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
673
937
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
938
|
+
deferred1_0 = r0;
|
|
939
|
+
deferred1_1 = r1;
|
|
674
940
|
return getStringFromWasm0(r0, r1);
|
|
675
941
|
} finally {
|
|
676
942
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
677
|
-
wasm.__wbindgen_free(
|
|
943
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
678
944
|
}
|
|
679
945
|
}
|
|
680
946
|
/**
|
|
681
947
|
* @returns {number}
|
|
682
948
|
*/
|
|
683
949
|
get get_mouse_state() {
|
|
684
|
-
|
|
950
|
+
const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
|
|
685
951
|
return ret >>> 0;
|
|
686
952
|
}
|
|
687
953
|
/**
|
|
688
|
-
*
|
|
954
|
+
* 局面状态
|
|
689
955
|
* @returns {number}
|
|
690
956
|
*/
|
|
691
957
|
get get_game_board_state() {
|
|
692
|
-
|
|
958
|
+
const ret = wasm.avfvideo_get_game_board_state(this.__wbg_ptr);
|
|
693
959
|
return ret >>> 0;
|
|
694
960
|
}
|
|
695
961
|
/**
|
|
696
|
-
*
|
|
962
|
+
* 返回当前光标的位置,播放录像用
|
|
963
|
+
* @returns {CursorPos}
|
|
964
|
+
*/
|
|
965
|
+
get get_x_y() {
|
|
966
|
+
const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
|
|
967
|
+
return CursorPos.__wrap(ret);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* @returns {Uint8Array}
|
|
971
|
+
*/
|
|
972
|
+
get get_checksum() {
|
|
973
|
+
try {
|
|
974
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
975
|
+
wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
|
|
976
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
977
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
978
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
979
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
980
|
+
return v1;
|
|
981
|
+
} finally {
|
|
982
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
697
986
|
* @param {number} time
|
|
698
987
|
*/
|
|
699
|
-
set
|
|
700
|
-
wasm.
|
|
988
|
+
set current_time(time) {
|
|
989
|
+
wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
*/
|
|
994
|
+
export class CursorPos {
|
|
995
|
+
|
|
996
|
+
static __wrap(ptr) {
|
|
997
|
+
ptr = ptr >>> 0;
|
|
998
|
+
const obj = Object.create(CursorPos.prototype);
|
|
999
|
+
obj.__wbg_ptr = ptr;
|
|
1000
|
+
|
|
1001
|
+
return obj;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
__destroy_into_raw() {
|
|
1005
|
+
const ptr = this.__wbg_ptr;
|
|
1006
|
+
this.__wbg_ptr = 0;
|
|
1007
|
+
|
|
1008
|
+
return ptr;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
free() {
|
|
1012
|
+
const ptr = this.__destroy_into_raw();
|
|
1013
|
+
wasm.__wbg_cursorpos_free(ptr);
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* @returns {number}
|
|
1017
|
+
*/
|
|
1018
|
+
get 0() {
|
|
1019
|
+
const ret = wasm.__wbg_get_cursorpos_0(this.__wbg_ptr);
|
|
1020
|
+
return ret;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* @param {number} arg0
|
|
1024
|
+
*/
|
|
1025
|
+
set 0(arg0) {
|
|
1026
|
+
wasm.__wbg_set_cursorpos_0(this.__wbg_ptr, arg0);
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* @returns {number}
|
|
1030
|
+
*/
|
|
1031
|
+
get 1() {
|
|
1032
|
+
const ret = wasm.__wbg_get_cursorpos_1(this.__wbg_ptr);
|
|
1033
|
+
return ret;
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* @param {number} arg0
|
|
1037
|
+
*/
|
|
1038
|
+
set 1(arg0) {
|
|
1039
|
+
wasm.__wbg_set_cursorpos_1(this.__wbg_ptr, arg0);
|
|
701
1040
|
}
|
|
702
1041
|
}
|
|
703
1042
|
/**
|
|
@@ -705,8 +1044,9 @@ export class AvfVideo {
|
|
|
705
1044
|
export class MinesweeperBoard {
|
|
706
1045
|
|
|
707
1046
|
static __wrap(ptr) {
|
|
1047
|
+
ptr = ptr >>> 0;
|
|
708
1048
|
const obj = Object.create(MinesweeperBoard.prototype);
|
|
709
|
-
obj.
|
|
1049
|
+
obj.__wbg_ptr = ptr;
|
|
710
1050
|
|
|
711
1051
|
return obj;
|
|
712
1052
|
}
|
|
@@ -717,10 +1057,10 @@ export class MinesweeperBoard {
|
|
|
717
1057
|
get_game_board: this.get_game_board,
|
|
718
1058
|
get_left: this.get_left,
|
|
719
1059
|
get_right: this.get_right,
|
|
720
|
-
|
|
721
|
-
|
|
1060
|
+
get_double: this.get_double,
|
|
1061
|
+
get_ce: this.get_ce,
|
|
722
1062
|
get_flag: this.get_flag,
|
|
723
|
-
|
|
1063
|
+
get_bbbv_solved: this.get_bbbv_solved,
|
|
724
1064
|
get_row: this.get_row,
|
|
725
1065
|
get_column: this.get_column,
|
|
726
1066
|
get_game_board_state: this.get_game_board_state,
|
|
@@ -733,8 +1073,8 @@ export class MinesweeperBoard {
|
|
|
733
1073
|
}
|
|
734
1074
|
|
|
735
1075
|
__destroy_into_raw() {
|
|
736
|
-
const ptr = this.
|
|
737
|
-
this.
|
|
1076
|
+
const ptr = this.__wbg_ptr;
|
|
1077
|
+
this.__wbg_ptr = 0;
|
|
738
1078
|
|
|
739
1079
|
return ptr;
|
|
740
1080
|
}
|
|
@@ -748,9 +1088,9 @@ export class MinesweeperBoard {
|
|
|
748
1088
|
* @returns {MinesweeperBoard}
|
|
749
1089
|
*/
|
|
750
1090
|
static new(board) {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
1091
|
+
const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1092
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1093
|
+
const ret = wasm.minesweeperboard_new(ptr0, len0);
|
|
754
1094
|
return MinesweeperBoard.__wrap(ret);
|
|
755
1095
|
}
|
|
756
1096
|
/**
|
|
@@ -759,255 +1099,278 @@ export class MinesweeperBoard {
|
|
|
759
1099
|
* @param {number} y
|
|
760
1100
|
*/
|
|
761
1101
|
step(e, x, y) {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
wasm.minesweeperboard_step(this.
|
|
1102
|
+
const ptr0 = passStringToWasm0(e, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1103
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1104
|
+
wasm.minesweeperboard_step(this.__wbg_ptr, ptr0, len0, x, y);
|
|
765
1105
|
}
|
|
766
1106
|
/**
|
|
767
1107
|
* @param {string} operation
|
|
768
1108
|
*/
|
|
769
1109
|
step_flow(operation) {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
wasm.minesweeperboard_step_flow(this.
|
|
1110
|
+
const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1111
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1112
|
+
wasm.minesweeperboard_step_flow(this.__wbg_ptr, ptr0, len0);
|
|
773
1113
|
}
|
|
774
1114
|
/**
|
|
775
1115
|
* @param {string} board
|
|
776
1116
|
*/
|
|
777
1117
|
set board(board) {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
wasm.minesweeperboard_set_board(this.
|
|
1118
|
+
const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1119
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1120
|
+
wasm.minesweeperboard_set_board(this.__wbg_ptr, ptr0, len0);
|
|
781
1121
|
}
|
|
782
1122
|
/**
|
|
783
1123
|
* @param {string} game_board
|
|
784
1124
|
*/
|
|
785
1125
|
set game_board(game_board) {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
wasm.minesweeperboard_set_game_board(this.
|
|
1126
|
+
const ptr0 = passStringToWasm0(game_board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1127
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1128
|
+
wasm.minesweeperboard_set_game_board(this.__wbg_ptr, ptr0, len0);
|
|
789
1129
|
}
|
|
790
1130
|
/**
|
|
791
1131
|
* @returns {string}
|
|
792
1132
|
*/
|
|
793
1133
|
get get_board() {
|
|
1134
|
+
let deferred1_0;
|
|
1135
|
+
let deferred1_1;
|
|
794
1136
|
try {
|
|
795
1137
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
796
|
-
wasm.minesweeperboard_get_board(retptr, this.
|
|
1138
|
+
wasm.minesweeperboard_get_board(retptr, this.__wbg_ptr);
|
|
797
1139
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
798
1140
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1141
|
+
deferred1_0 = r0;
|
|
1142
|
+
deferred1_1 = r1;
|
|
799
1143
|
return getStringFromWasm0(r0, r1);
|
|
800
1144
|
} finally {
|
|
801
1145
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
802
|
-
wasm.__wbindgen_free(
|
|
1146
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
803
1147
|
}
|
|
804
1148
|
}
|
|
805
1149
|
/**
|
|
806
1150
|
* @returns {string}
|
|
807
1151
|
*/
|
|
808
1152
|
get get_game_board() {
|
|
1153
|
+
let deferred1_0;
|
|
1154
|
+
let deferred1_1;
|
|
809
1155
|
try {
|
|
810
1156
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
811
|
-
wasm.minesweeperboard_get_game_board(retptr, this.
|
|
1157
|
+
wasm.minesweeperboard_get_game_board(retptr, this.__wbg_ptr);
|
|
812
1158
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
813
1159
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1160
|
+
deferred1_0 = r0;
|
|
1161
|
+
deferred1_1 = r1;
|
|
814
1162
|
return getStringFromWasm0(r0, r1);
|
|
815
1163
|
} finally {
|
|
816
1164
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
817
|
-
wasm.__wbindgen_free(
|
|
1165
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
818
1166
|
}
|
|
819
1167
|
}
|
|
820
1168
|
/**
|
|
821
1169
|
* @returns {number}
|
|
822
1170
|
*/
|
|
823
1171
|
get get_left() {
|
|
824
|
-
|
|
1172
|
+
const ret = wasm.minesweeperboard_get_left(this.__wbg_ptr);
|
|
825
1173
|
return ret >>> 0;
|
|
826
1174
|
}
|
|
827
1175
|
/**
|
|
828
1176
|
* @returns {number}
|
|
829
1177
|
*/
|
|
830
1178
|
get get_right() {
|
|
831
|
-
|
|
1179
|
+
const ret = wasm.minesweeperboard_get_right(this.__wbg_ptr);
|
|
832
1180
|
return ret >>> 0;
|
|
833
1181
|
}
|
|
834
1182
|
/**
|
|
835
1183
|
* @returns {number}
|
|
836
1184
|
*/
|
|
837
|
-
get
|
|
838
|
-
|
|
1185
|
+
get get_double() {
|
|
1186
|
+
const ret = wasm.minesweeperboard_get_double(this.__wbg_ptr);
|
|
839
1187
|
return ret >>> 0;
|
|
840
1188
|
}
|
|
841
1189
|
/**
|
|
842
1190
|
* @returns {number}
|
|
843
1191
|
*/
|
|
844
|
-
get
|
|
845
|
-
|
|
1192
|
+
get get_ce() {
|
|
1193
|
+
const ret = wasm.minesweeperboard_get_ce(this.__wbg_ptr);
|
|
846
1194
|
return ret >>> 0;
|
|
847
1195
|
}
|
|
848
1196
|
/**
|
|
849
1197
|
* @returns {number}
|
|
850
1198
|
*/
|
|
851
1199
|
get get_flag() {
|
|
852
|
-
|
|
1200
|
+
const ret = wasm.minesweeperboard_get_flag(this.__wbg_ptr);
|
|
853
1201
|
return ret >>> 0;
|
|
854
1202
|
}
|
|
855
1203
|
/**
|
|
856
1204
|
* @returns {number}
|
|
857
1205
|
*/
|
|
858
|
-
get
|
|
859
|
-
|
|
1206
|
+
get get_bbbv_solved() {
|
|
1207
|
+
const ret = wasm.minesweeperboard_get_bbbv_solved(this.__wbg_ptr);
|
|
860
1208
|
return ret >>> 0;
|
|
861
1209
|
}
|
|
862
1210
|
/**
|
|
863
1211
|
* @returns {number}
|
|
864
1212
|
*/
|
|
865
1213
|
get get_row() {
|
|
866
|
-
|
|
1214
|
+
const ret = wasm.minesweeperboard_get_row(this.__wbg_ptr);
|
|
867
1215
|
return ret >>> 0;
|
|
868
1216
|
}
|
|
869
1217
|
/**
|
|
870
1218
|
* @returns {number}
|
|
871
1219
|
*/
|
|
872
1220
|
get get_column() {
|
|
873
|
-
|
|
1221
|
+
const ret = wasm.minesweeperboard_get_column(this.__wbg_ptr);
|
|
874
1222
|
return ret >>> 0;
|
|
875
1223
|
}
|
|
876
1224
|
/**
|
|
877
1225
|
* @returns {number}
|
|
878
1226
|
*/
|
|
879
1227
|
get get_game_board_state() {
|
|
880
|
-
|
|
1228
|
+
const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
|
|
881
1229
|
return ret >>> 0;
|
|
882
1230
|
}
|
|
883
1231
|
/**
|
|
884
1232
|
* @returns {number}
|
|
885
1233
|
*/
|
|
886
1234
|
get get_mouse_state() {
|
|
887
|
-
|
|
1235
|
+
const ret = wasm.minesweeperboard_get_mouse_state(this.__wbg_ptr);
|
|
888
1236
|
return ret >>> 0;
|
|
889
1237
|
}
|
|
890
1238
|
}
|
|
891
1239
|
|
|
892
|
-
export function
|
|
893
|
-
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
export function __wbg_getRandomValues_98117e9a7e993920() { return handleError(function (arg0, arg1) {
|
|
897
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
898
|
-
}, arguments) };
|
|
899
|
-
|
|
900
|
-
export function __wbg_randomFillSync_64cc7d048f228ca8() { return handleError(function (arg0, arg1, arg2) {
|
|
901
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
902
|
-
}, arguments) };
|
|
903
|
-
|
|
904
|
-
export function __wbg_process_2f24d6544ea7b200(arg0) {
|
|
905
|
-
var ret = getObject(arg0).process;
|
|
1240
|
+
export function __wbg_crypto_c48a774b022d20ac(arg0) {
|
|
1241
|
+
const ret = getObject(arg0).crypto;
|
|
906
1242
|
return addHeapObject(ret);
|
|
907
1243
|
};
|
|
908
1244
|
|
|
909
1245
|
export function __wbindgen_is_object(arg0) {
|
|
910
1246
|
const val = getObject(arg0);
|
|
911
|
-
|
|
1247
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
912
1248
|
return ret;
|
|
913
1249
|
};
|
|
914
1250
|
|
|
915
|
-
export function
|
|
916
|
-
|
|
1251
|
+
export function __wbg_process_298734cf255a885d(arg0) {
|
|
1252
|
+
const ret = getObject(arg0).process;
|
|
917
1253
|
return addHeapObject(ret);
|
|
918
1254
|
};
|
|
919
1255
|
|
|
920
|
-
export function
|
|
921
|
-
|
|
1256
|
+
export function __wbg_versions_e2e78e134e3e5d01(arg0) {
|
|
1257
|
+
const ret = getObject(arg0).versions;
|
|
1258
|
+
return addHeapObject(ret);
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
1262
|
+
takeObject(arg0);
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
export function __wbg_node_1cd7a5d853dbea79(arg0) {
|
|
1266
|
+
const ret = getObject(arg0).node;
|
|
922
1267
|
return addHeapObject(ret);
|
|
923
1268
|
};
|
|
924
1269
|
|
|
925
1270
|
export function __wbindgen_is_string(arg0) {
|
|
926
|
-
|
|
1271
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
927
1272
|
return ret;
|
|
928
1273
|
};
|
|
929
1274
|
|
|
930
|
-
export function
|
|
931
|
-
|
|
1275
|
+
export function __wbg_require_8f08ceecec0f4fee() { return handleError(function () {
|
|
1276
|
+
const ret = module.require;
|
|
932
1277
|
return addHeapObject(ret);
|
|
933
1278
|
}, arguments) };
|
|
934
1279
|
|
|
935
|
-
export function
|
|
936
|
-
|
|
1280
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1281
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
937
1282
|
return addHeapObject(ret);
|
|
938
1283
|
};
|
|
939
1284
|
|
|
940
|
-
export function
|
|
941
|
-
|
|
1285
|
+
export function __wbg_msCrypto_bcb970640f50a1e8(arg0) {
|
|
1286
|
+
const ret = getObject(arg0).msCrypto;
|
|
942
1287
|
return addHeapObject(ret);
|
|
943
1288
|
};
|
|
944
1289
|
|
|
945
|
-
export function
|
|
946
|
-
|
|
1290
|
+
export function __wbg_randomFillSync_dc1e9a60c158336d() { return handleError(function (arg0, arg1) {
|
|
1291
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
1292
|
+
}, arguments) };
|
|
1293
|
+
|
|
1294
|
+
export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
|
|
1295
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1296
|
+
}, arguments) };
|
|
1297
|
+
|
|
1298
|
+
export function __wbindgen_is_function(arg0) {
|
|
1299
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
1300
|
+
return ret;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
export function __wbg_newnoargs_581967eacc0e2604(arg0, arg1) {
|
|
1304
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
947
1305
|
return addHeapObject(ret);
|
|
948
1306
|
};
|
|
949
1307
|
|
|
950
|
-
export function
|
|
951
|
-
|
|
1308
|
+
export function __wbg_call_cb65541d95d71282() { return handleError(function (arg0, arg1) {
|
|
1309
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
952
1310
|
return addHeapObject(ret);
|
|
953
1311
|
}, arguments) };
|
|
954
1312
|
|
|
955
|
-
export function
|
|
956
|
-
|
|
1313
|
+
export function __wbg_self_1ff1d729e9aae938() { return handleError(function () {
|
|
1314
|
+
const ret = self.self;
|
|
957
1315
|
return addHeapObject(ret);
|
|
958
1316
|
}, arguments) };
|
|
959
1317
|
|
|
960
|
-
export function
|
|
961
|
-
|
|
1318
|
+
export function __wbg_window_5f4faef6c12b79ec() { return handleError(function () {
|
|
1319
|
+
const ret = window.window;
|
|
962
1320
|
return addHeapObject(ret);
|
|
963
1321
|
}, arguments) };
|
|
964
1322
|
|
|
965
|
-
export function
|
|
966
|
-
|
|
1323
|
+
export function __wbg_globalThis_1d39714405582d3c() { return handleError(function () {
|
|
1324
|
+
const ret = globalThis.globalThis;
|
|
967
1325
|
return addHeapObject(ret);
|
|
968
1326
|
}, arguments) };
|
|
969
1327
|
|
|
970
|
-
export function
|
|
971
|
-
|
|
1328
|
+
export function __wbg_global_651f05c6a0944d1c() { return handleError(function () {
|
|
1329
|
+
const ret = global.global;
|
|
972
1330
|
return addHeapObject(ret);
|
|
973
1331
|
}, arguments) };
|
|
974
1332
|
|
|
975
1333
|
export function __wbindgen_is_undefined(arg0) {
|
|
976
|
-
|
|
1334
|
+
const ret = getObject(arg0) === undefined;
|
|
977
1335
|
return ret;
|
|
978
1336
|
};
|
|
979
1337
|
|
|
980
|
-
export function
|
|
981
|
-
|
|
1338
|
+
export function __wbg_call_01734de55d61e11d() { return handleError(function (arg0, arg1, arg2) {
|
|
1339
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1340
|
+
return addHeapObject(ret);
|
|
1341
|
+
}, arguments) };
|
|
1342
|
+
|
|
1343
|
+
export function __wbg_buffer_085ec1f694018c4f(arg0) {
|
|
1344
|
+
const ret = getObject(arg0).buffer;
|
|
982
1345
|
return addHeapObject(ret);
|
|
983
1346
|
};
|
|
984
1347
|
|
|
985
|
-
export function
|
|
986
|
-
|
|
1348
|
+
export function __wbg_newwithbyteoffsetandlength_6da8e527659b86aa(arg0, arg1, arg2) {
|
|
1349
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
987
1350
|
return addHeapObject(ret);
|
|
988
1351
|
};
|
|
989
1352
|
|
|
990
|
-
export function
|
|
991
|
-
getObject(arg0)
|
|
1353
|
+
export function __wbg_new_8125e318e6245eed(arg0) {
|
|
1354
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
1355
|
+
return addHeapObject(ret);
|
|
992
1356
|
};
|
|
993
1357
|
|
|
994
|
-
export function
|
|
995
|
-
|
|
996
|
-
return ret;
|
|
1358
|
+
export function __wbg_set_5cf90238115182c3(arg0, arg1, arg2) {
|
|
1359
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
997
1360
|
};
|
|
998
1361
|
|
|
999
|
-
export function
|
|
1000
|
-
|
|
1362
|
+
export function __wbg_newwithlength_e5d69174d6984cd7(arg0) {
|
|
1363
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1001
1364
|
return addHeapObject(ret);
|
|
1002
1365
|
};
|
|
1003
1366
|
|
|
1004
|
-
export function
|
|
1005
|
-
|
|
1367
|
+
export function __wbg_subarray_13db269f57aa838d(arg0, arg1, arg2) {
|
|
1368
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1006
1369
|
return addHeapObject(ret);
|
|
1007
1370
|
};
|
|
1008
1371
|
|
|
1009
1372
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
1010
|
-
|
|
1373
|
+
const ret = getObject(arg0);
|
|
1011
1374
|
return addHeapObject(ret);
|
|
1012
1375
|
};
|
|
1013
1376
|
|
|
@@ -1016,7 +1379,7 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
1016
1379
|
};
|
|
1017
1380
|
|
|
1018
1381
|
export function __wbindgen_memory() {
|
|
1019
|
-
|
|
1382
|
+
const ret = wasm.memory;
|
|
1020
1383
|
return addHeapObject(ret);
|
|
1021
1384
|
};
|
|
1022
1385
|
|