ms-toollib 1.4.11-alpha → 1.4.11

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.js CHANGED
@@ -1,4001 +1,5 @@
1
1
 
2
- let imports = {};
3
- imports['__wbindgen_placeholder__'] = module.exports;
4
- let wasm;
5
- const { TextDecoder, TextEncoder, inspect } = require(`util`);
6
-
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
-
29
- cachedTextDecoder.decode();
30
-
31
- let cachedUint8ArrayMemory0 = null;
32
-
33
- function getUint8ArrayMemory0() {
34
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
35
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
36
- }
37
- return cachedUint8ArrayMemory0;
38
- }
39
-
40
- function getStringFromWasm0(ptr, len) {
41
- ptr = ptr >>> 0;
42
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
43
- }
44
-
45
- function addHeapObject(obj) {
46
- if (heap_next === heap.length) heap.push(heap.length + 1);
47
- const idx = heap_next;
48
- heap_next = heap[idx];
49
-
50
- heap[idx] = obj;
51
- return idx;
52
- }
53
-
54
- let WASM_VECTOR_LEN = 0;
55
-
56
- let cachedTextEncoder = new TextEncoder('utf-8');
57
-
58
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
59
- ? function (arg, view) {
60
- return cachedTextEncoder.encodeInto(arg, view);
61
- }
62
- : function (arg, view) {
63
- const buf = cachedTextEncoder.encode(arg);
64
- view.set(buf);
65
- return {
66
- read: arg.length,
67
- written: buf.length
68
- };
69
- });
70
-
71
- function passStringToWasm0(arg, malloc, realloc) {
72
-
73
- if (realloc === undefined) {
74
- const buf = cachedTextEncoder.encode(arg);
75
- const ptr = malloc(buf.length, 1) >>> 0;
76
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
77
- WASM_VECTOR_LEN = buf.length;
78
- return ptr;
79
- }
80
-
81
- let len = arg.length;
82
- let ptr = malloc(len, 1) >>> 0;
83
-
84
- const mem = getUint8ArrayMemory0();
85
-
86
- let offset = 0;
87
-
88
- for (; offset < len; offset++) {
89
- const code = arg.charCodeAt(offset);
90
- if (code > 0x7F) break;
91
- mem[ptr + offset] = code;
92
- }
93
-
94
- if (offset !== len) {
95
- if (offset !== 0) {
96
- arg = arg.slice(offset);
97
- }
98
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
99
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
100
- const ret = encodeString(arg, view);
101
-
102
- offset += ret.written;
103
- ptr = realloc(ptr, len, offset, 1) >>> 0;
104
- }
105
-
106
- WASM_VECTOR_LEN = offset;
107
- return ptr;
108
- }
109
-
110
- let cachedDataViewMemory0 = null;
111
-
112
- function getDataViewMemory0() {
113
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
114
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
115
- }
116
- return cachedDataViewMemory0;
117
- }
118
-
119
- function passArray8ToWasm0(arg, malloc) {
120
- const ptr = malloc(arg.length * 1, 1) >>> 0;
121
- getUint8ArrayMemory0().set(arg, ptr / 1);
122
- WASM_VECTOR_LEN = arg.length;
123
- return ptr;
124
- }
125
-
126
- function getArrayU8FromWasm0(ptr, len) {
127
- ptr = ptr >>> 0;
128
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
129
- }
130
- /**
131
- * @param {string} board_json
132
- * @returns {number}
133
- */
134
- module.exports.cal_bbbv = function(board_json) {
135
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
136
- const len0 = WASM_VECTOR_LEN;
137
- const ret = wasm.cal_bbbv(ptr0, len0);
138
- return ret;
139
- };
140
-
141
- /**
142
- * @param {string} board_json
143
- * @returns {number}
144
- */
145
- module.exports.cal_op = function(board_json) {
146
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
147
- const len0 = WASM_VECTOR_LEN;
148
- const ret = wasm.cal_op(ptr0, len0);
149
- return ret;
150
- };
151
-
152
- /**
153
- * @param {string} board_json
154
- * @param {number} mine_num
155
- * @returns {string}
156
- */
157
- module.exports.cal_possibility_onboard = function(board_json, mine_num) {
158
- let deferred2_0;
159
- let deferred2_1;
160
- try {
161
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
162
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
163
- const len0 = WASM_VECTOR_LEN;
164
- wasm.cal_possibility_onboard(retptr, ptr0, len0, mine_num);
165
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
166
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
167
- deferred2_0 = r0;
168
- deferred2_1 = r1;
169
- return getStringFromWasm0(r0, r1);
170
- } finally {
171
- wasm.__wbindgen_add_to_stack_pointer(16);
172
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
173
- }
174
- };
175
-
176
- /**
177
- * @param {number} row
178
- * @param {number} column
179
- * @param {number} mine_num
180
- * @param {number} x0
181
- * @param {number} y0
182
- * @returns {string}
183
- */
184
- module.exports.laymine_number = function(row, column, mine_num, x0, y0) {
185
- let deferred1_0;
186
- let deferred1_1;
187
- try {
188
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
189
- wasm.laymine_number(retptr, row, column, mine_num, x0, y0);
190
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
191
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
192
- deferred1_0 = r0;
193
- deferred1_1 = r1;
194
- return getStringFromWasm0(r0, r1);
195
- } finally {
196
- wasm.__wbindgen_add_to_stack_pointer(16);
197
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
198
- }
199
- };
200
-
201
- /**
202
- * @param {number} row
203
- * @param {number} column
204
- * @param {number} mine_num
205
- * @param {number} x0
206
- * @param {number} y0
207
- * @returns {string}
208
- */
209
- module.exports.laymine_op_number = function(row, column, mine_num, x0, y0) {
210
- let deferred1_0;
211
- let deferred1_1;
212
- try {
213
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
214
- wasm.laymine_op_number(retptr, row, column, mine_num, x0, y0);
215
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
216
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
217
- deferred1_0 = r0;
218
- deferred1_1 = r1;
219
- return getStringFromWasm0(r0, r1);
220
- } finally {
221
- wasm.__wbindgen_add_to_stack_pointer(16);
222
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
223
- }
224
- };
225
-
226
- /**
227
- * @param {number} row
228
- * @param {number} column
229
- * @param {number} mine_num
230
- * @param {number} x0
231
- * @param {number} y0
232
- * @param {number} max_times
233
- * @returns {string}
234
- */
235
- module.exports.laymine_solvable = function(row, column, mine_num, x0, y0, max_times) {
236
- let deferred1_0;
237
- let deferred1_1;
238
- try {
239
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
- wasm.laymine_solvable(retptr, row, column, mine_num, x0, y0, max_times);
241
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
242
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
243
- deferred1_0 = r0;
244
- deferred1_1 = r1;
245
- return getStringFromWasm0(r0, r1);
246
- } finally {
247
- wasm.__wbindgen_add_to_stack_pointer(16);
248
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
249
- }
250
- };
251
-
252
- /**
253
- * @param {string} software
254
- * @returns {TimePeriod}
255
- */
256
- module.exports.valid_time_period = function(software) {
257
- const ptr0 = passStringToWasm0(software, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
258
- const len0 = WASM_VECTOR_LEN;
259
- const ret = wasm.valid_time_period(ptr0, len0);
260
- return TimePeriod.__wrap(ret);
261
- };
262
-
263
- function handleError(f, args) {
264
- try {
265
- return f.apply(this, args);
266
- } catch (e) {
267
- wasm.__wbindgen_exn_store(addHeapObject(e));
268
- }
269
- }
270
-
271
- const AvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
272
- ? { register: () => {}, unregister: () => {} }
273
- : new FinalizationRegistry(ptr => wasm.__wbg_avfvideo_free(ptr >>> 0, 1));
274
- /**
275
- */
276
- class AvfVideo {
277
-
278
- static __wrap(ptr) {
279
- ptr = ptr >>> 0;
280
- const obj = Object.create(AvfVideo.prototype);
281
- obj.__wbg_ptr = ptr;
282
- AvfVideoFinalization.register(obj, obj.__wbg_ptr, obj);
283
- return obj;
284
- }
285
-
286
- toJSON() {
287
- return {
288
- get_raw_data: this.get_raw_data,
289
- get_software: this.get_software,
290
- get_row: this.get_row,
291
- get_column: this.get_column,
292
- get_level: this.get_level,
293
- get_mode: this.get_mode,
294
- get_is_completed: this.get_is_completed,
295
- get_is_official: this.get_is_official,
296
- get_is_fair: this.get_is_fair,
297
- get_mine_num: this.get_mine_num,
298
- get_player_identifier: this.get_player_identifier,
299
- get_race_identifier: this.get_race_identifier,
300
- get_uniqueness_identifier: this.get_uniqueness_identifier,
301
- get_country: this.get_country,
302
- get_device_uuid: this.get_device_uuid,
303
- get_bbbv: this.get_bbbv,
304
- get_start_time: this.get_start_time,
305
- get_end_time: this.get_end_time,
306
- get_op: this.get_op,
307
- get_isl: this.get_isl,
308
- get_hizi: this.get_hizi,
309
- get_cell0: this.get_cell0,
310
- get_cell1: this.get_cell1,
311
- get_cell2: this.get_cell2,
312
- get_cell3: this.get_cell3,
313
- get_cell4: this.get_cell4,
314
- get_cell5: this.get_cell5,
315
- get_cell6: this.get_cell6,
316
- get_cell7: this.get_cell7,
317
- get_cell8: this.get_cell8,
318
- get_rtime: this.get_rtime,
319
- get_rtime_ms: this.get_rtime_ms,
320
- get_etime: this.get_etime,
321
- get_video_start_time: this.get_video_start_time,
322
- get_video_end_time: this.get_video_end_time,
323
- get_bbbv_s: this.get_bbbv_s,
324
- get_stnb: this.get_stnb,
325
- get_rqp: this.get_rqp,
326
- get_left: this.get_left,
327
- get_right: this.get_right,
328
- get_double: this.get_double,
329
- get_cl: this.get_cl,
330
- get_flag: this.get_flag,
331
- get_bbbv_solved: this.get_bbbv_solved,
332
- get_lce: this.get_lce,
333
- get_rce: this.get_rce,
334
- get_dce: this.get_dce,
335
- get_ce: this.get_ce,
336
- get_left_s: this.get_left_s,
337
- get_right_s: this.get_right_s,
338
- get_double_s: this.get_double_s,
339
- get_cl_s: this.get_cl_s,
340
- get_flag_s: this.get_flag_s,
341
- get_path: this.get_path,
342
- get_ce_s: this.get_ce_s,
343
- get_ioe: this.get_ioe,
344
- get_thrp: this.get_thrp,
345
- get_corr: this.get_corr,
346
- get_events_len: this.get_events_len,
347
- get_current_event_id: this.get_current_event_id,
348
- get_game_board: this.get_game_board,
349
- get_game_board_poss: this.get_game_board_poss,
350
- get_mouse_state: this.get_mouse_state,
351
- get_game_board_state: this.get_game_board_state,
352
- get_x_y: this.get_x_y,
353
- get_checksum: this.get_checksum,
354
- get_pix_size: this.get_pix_size,
355
- };
356
- }
357
-
358
- toString() {
359
- return JSON.stringify(this);
360
- }
361
-
362
- [inspect.custom]() {
363
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
364
- }
365
-
366
- __destroy_into_raw() {
367
- const ptr = this.__wbg_ptr;
368
- this.__wbg_ptr = 0;
369
- AvfVideoFinalization.unregister(this);
370
- return ptr;
371
- }
372
-
373
- free() {
374
- const ptr = this.__destroy_into_raw();
375
- wasm.__wbg_avfvideo_free(ptr, 0);
376
- }
377
- /**
378
- * @param {Uint8Array} data
379
- * @param {string} file_name
380
- * @returns {AvfVideo}
381
- */
382
- static new(data, file_name) {
383
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
384
- const len0 = WASM_VECTOR_LEN;
385
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
- const len1 = WASM_VECTOR_LEN;
387
- const ret = wasm.avfvideo_new(ptr0, len0, ptr1, len1);
388
- return AvfVideo.__wrap(ret);
389
- }
390
- /**
391
- */
392
- parse_video() {
393
- wasm.avfvideo_parse_video(this.__wbg_ptr);
394
- }
395
- /**
396
- */
397
- analyse() {
398
- wasm.avfvideo_analyse(this.__wbg_ptr);
399
- }
400
- /**
401
- * @returns {Uint8Array}
402
- */
403
- get get_raw_data() {
404
- try {
405
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
406
- wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
407
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
408
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
409
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
410
- wasm.__wbindgen_free(r0, r1 * 1, 1);
411
- return v1;
412
- } finally {
413
- wasm.__wbindgen_add_to_stack_pointer(16);
414
- }
415
- }
416
- /**
417
- * @returns {Uint8Array}
418
- */
419
- get get_software() {
420
- try {
421
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
422
- wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
423
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
424
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
425
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
426
- wasm.__wbindgen_free(r0, r1 * 1, 1);
427
- return v1;
428
- } finally {
429
- wasm.__wbindgen_add_to_stack_pointer(16);
430
- }
431
- }
432
- /**
433
- * @returns {number}
434
- */
435
- get get_row() {
436
- const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
437
- return ret >>> 0;
438
- }
439
- /**
440
- * @returns {number}
441
- */
442
- get get_column() {
443
- const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
444
- return ret >>> 0;
445
- }
446
- /**
447
- * @returns {number}
448
- */
449
- get get_level() {
450
- const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
451
- return ret;
452
- }
453
- /**
454
- * @returns {number}
455
- */
456
- get get_mode() {
457
- const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
458
- return ret;
459
- }
460
- /**
461
- * @returns {boolean}
462
- */
463
- get get_is_completed() {
464
- const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
465
- return ret !== 0;
466
- }
467
- /**
468
- * @returns {boolean}
469
- */
470
- get get_is_official() {
471
- const ret = wasm.avfvideo_get_is_official(this.__wbg_ptr);
472
- return ret !== 0;
473
- }
474
- /**
475
- * @returns {boolean}
476
- */
477
- get get_is_fair() {
478
- const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
479
- return ret !== 0;
480
- }
481
- /**
482
- * @returns {number}
483
- */
484
- get get_mine_num() {
485
- const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
486
- return ret >>> 0;
487
- }
488
- /**
489
- * @returns {Uint8Array}
490
- */
491
- get get_player_identifier() {
492
- try {
493
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
494
- wasm.avfvideo_get_player_identifier(retptr, this.__wbg_ptr);
495
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
496
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
497
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
498
- wasm.__wbindgen_free(r0, r1 * 1, 1);
499
- return v1;
500
- } finally {
501
- wasm.__wbindgen_add_to_stack_pointer(16);
502
- }
503
- }
504
- /**
505
- * @returns {Uint8Array}
506
- */
507
- get get_race_identifier() {
508
- try {
509
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
510
- wasm.avfvideo_get_race_identifier(retptr, this.__wbg_ptr);
511
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
512
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
513
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
514
- wasm.__wbindgen_free(r0, r1 * 1, 1);
515
- return v1;
516
- } finally {
517
- wasm.__wbindgen_add_to_stack_pointer(16);
518
- }
519
- }
520
- /**
521
- * @returns {Uint8Array}
522
- */
523
- get get_uniqueness_identifier() {
524
- try {
525
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
526
- wasm.avfvideo_get_uniqueness_identifier(retptr, this.__wbg_ptr);
527
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
528
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
529
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
530
- wasm.__wbindgen_free(r0, r1 * 1, 1);
531
- return v1;
532
- } finally {
533
- wasm.__wbindgen_add_to_stack_pointer(16);
534
- }
535
- }
536
- /**
537
- * @returns {Uint8Array}
538
- */
539
- get get_country() {
540
- try {
541
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
542
- wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
543
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
544
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
545
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
546
- wasm.__wbindgen_free(r0, r1 * 1, 1);
547
- return v1;
548
- } finally {
549
- wasm.__wbindgen_add_to_stack_pointer(16);
550
- }
551
- }
552
- /**
553
- * @returns {Uint8Array}
554
- */
555
- get get_device_uuid() {
556
- try {
557
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
558
- wasm.avfvideo_get_device_uuid(retptr, this.__wbg_ptr);
559
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
560
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
561
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
562
- wasm.__wbindgen_free(r0, r1 * 1, 1);
563
- return v1;
564
- } finally {
565
- wasm.__wbindgen_add_to_stack_pointer(16);
566
- }
567
- }
568
- /**
569
- * @returns {number}
570
- */
571
- get get_bbbv() {
572
- const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
573
- return ret >>> 0;
574
- }
575
- /**
576
- * @returns {Uint8Array}
577
- */
578
- get get_start_time() {
579
- try {
580
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
581
- wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
582
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
583
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
584
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
585
- wasm.__wbindgen_free(r0, r1 * 1, 1);
586
- return v1;
587
- } finally {
588
- wasm.__wbindgen_add_to_stack_pointer(16);
589
- }
590
- }
591
- /**
592
- * @returns {Uint8Array}
593
- */
594
- get get_end_time() {
595
- try {
596
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
597
- wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
598
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
599
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
600
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
601
- wasm.__wbindgen_free(r0, r1 * 1, 1);
602
- return v1;
603
- } finally {
604
- wasm.__wbindgen_add_to_stack_pointer(16);
605
- }
606
- }
607
- /**
608
- * @returns {number}
609
- */
610
- get get_op() {
611
- const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
612
- return ret >>> 0;
613
- }
614
- /**
615
- * @returns {number}
616
- */
617
- get get_isl() {
618
- const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
619
- return ret >>> 0;
620
- }
621
- /**
622
- * @returns {number}
623
- */
624
- get get_hizi() {
625
- const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
626
- return ret >>> 0;
627
- }
628
- /**
629
- * @returns {number}
630
- */
631
- get get_cell0() {
632
- const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
633
- return ret >>> 0;
634
- }
635
- /**
636
- * @returns {number}
637
- */
638
- get get_cell1() {
639
- const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
640
- return ret >>> 0;
641
- }
642
- /**
643
- * @returns {number}
644
- */
645
- get get_cell2() {
646
- const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
647
- return ret >>> 0;
648
- }
649
- /**
650
- * @returns {number}
651
- */
652
- get get_cell3() {
653
- const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
654
- return ret >>> 0;
655
- }
656
- /**
657
- * @returns {number}
658
- */
659
- get get_cell4() {
660
- const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
661
- return ret >>> 0;
662
- }
663
- /**
664
- * @returns {number}
665
- */
666
- get get_cell5() {
667
- const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
668
- return ret >>> 0;
669
- }
670
- /**
671
- * @returns {number}
672
- */
673
- get get_cell6() {
674
- const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
675
- return ret >>> 0;
676
- }
677
- /**
678
- * @returns {number}
679
- */
680
- get get_cell7() {
681
- const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
682
- return ret >>> 0;
683
- }
684
- /**
685
- * @returns {number}
686
- */
687
- get get_cell8() {
688
- const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
689
- return ret >>> 0;
690
- }
691
- /**
692
- * @returns {number}
693
- */
694
- get get_rtime() {
695
- const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
696
- return ret;
697
- }
698
- /**
699
- * @returns {number}
700
- */
701
- get get_rtime_ms() {
702
- const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
703
- return ret >>> 0;
704
- }
705
- /**
706
- * @returns {number}
707
- */
708
- get get_etime() {
709
- const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
710
- return ret;
711
- }
712
- /**
713
- * @returns {number}
714
- */
715
- get get_video_start_time() {
716
- const ret = wasm.avfvideo_get_video_start_time(this.__wbg_ptr);
717
- return ret;
718
- }
719
- /**
720
- * @returns {number}
721
- */
722
- get get_video_end_time() {
723
- const ret = wasm.avfvideo_get_video_end_time(this.__wbg_ptr);
724
- return ret;
725
- }
726
- /**
727
- * @returns {number}
728
- */
729
- get get_bbbv_s() {
730
- const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
731
- return ret;
732
- }
733
- /**
734
- * @returns {number}
735
- */
736
- get get_stnb() {
737
- const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
738
- return ret;
739
- }
740
- /**
741
- * @returns {number}
742
- */
743
- get get_rqp() {
744
- const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
745
- return ret;
746
- }
747
- /**
748
- * @returns {number}
749
- */
750
- get get_left() {
751
- const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
752
- return ret >>> 0;
753
- }
754
- /**
755
- * @returns {number}
756
- */
757
- get get_right() {
758
- const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
759
- return ret >>> 0;
760
- }
761
- /**
762
- * @returns {number}
763
- */
764
- get get_double() {
765
- const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
766
- return ret >>> 0;
767
- }
768
- /**
769
- * @returns {number}
770
- */
771
- get get_cl() {
772
- const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
773
- return ret >>> 0;
774
- }
775
- /**
776
- * @returns {number}
777
- */
778
- get get_flag() {
779
- const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
780
- return ret >>> 0;
781
- }
782
- /**
783
- * @returns {number}
784
- */
785
- get get_bbbv_solved() {
786
- const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
787
- return ret >>> 0;
788
- }
789
- /**
790
- * @returns {number}
791
- */
792
- get get_lce() {
793
- const ret = wasm.avfvideo_get_lce(this.__wbg_ptr);
794
- return ret >>> 0;
795
- }
796
- /**
797
- * @returns {number}
798
- */
799
- get get_rce() {
800
- const ret = wasm.avfvideo_get_rce(this.__wbg_ptr);
801
- return ret >>> 0;
802
- }
803
- /**
804
- * @returns {number}
805
- */
806
- get get_dce() {
807
- const ret = wasm.avfvideo_get_dce(this.__wbg_ptr);
808
- return ret >>> 0;
809
- }
810
- /**
811
- * @returns {number}
812
- */
813
- get get_ce() {
814
- const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
815
- return ret >>> 0;
816
- }
817
- /**
818
- * @returns {number}
819
- */
820
- get get_left_s() {
821
- const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
822
- return ret;
823
- }
824
- /**
825
- * @returns {number}
826
- */
827
- get get_right_s() {
828
- const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
829
- return ret;
830
- }
831
- /**
832
- * @returns {number}
833
- */
834
- get get_double_s() {
835
- const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
836
- return ret;
837
- }
838
- /**
839
- * @returns {number}
840
- */
841
- get get_cl_s() {
842
- const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
843
- return ret;
844
- }
845
- /**
846
- * @returns {number}
847
- */
848
- get get_flag_s() {
849
- const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
850
- return ret;
851
- }
852
- /**
853
- * @returns {number}
854
- */
855
- get get_path() {
856
- const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
857
- return ret;
858
- }
859
- /**
860
- * @returns {number}
861
- */
862
- get get_ce_s() {
863
- const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
864
- return ret;
865
- }
866
- /**
867
- * @returns {number}
868
- */
869
- get get_ioe() {
870
- const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
871
- return ret;
872
- }
873
- /**
874
- * @returns {number}
875
- */
876
- get get_thrp() {
877
- const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
878
- return ret;
879
- }
880
- /**
881
- * @returns {number}
882
- */
883
- get get_corr() {
884
- const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
885
- return ret;
886
- }
887
- /**
888
- * @returns {number}
889
- */
890
- get get_events_len() {
891
- const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
892
- return ret >>> 0;
893
- }
894
- /**
895
- * @param {number} index
896
- * @returns {number}
897
- */
898
- events_time(index) {
899
- const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
900
- return ret;
901
- }
902
- /**
903
- * @param {number} index
904
- * @returns {string}
905
- */
906
- events_mouse(index) {
907
- let deferred1_0;
908
- let deferred1_1;
909
- try {
910
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
911
- wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
912
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
913
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
914
- deferred1_0 = r0;
915
- deferred1_1 = r1;
916
- return getStringFromWasm0(r0, r1);
917
- } finally {
918
- wasm.__wbindgen_add_to_stack_pointer(16);
919
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
920
- }
921
- }
922
- /**
923
- * @param {number} index
924
- * @returns {number}
925
- */
926
- events_x(index) {
927
- const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
928
- return ret;
929
- }
930
- /**
931
- * @param {number} index
932
- * @returns {number}
933
- */
934
- events_y(index) {
935
- const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
936
- return ret;
937
- }
938
- /**
939
- * @param {number} index
940
- * @returns {number}
941
- */
942
- events_useful_level(index) {
943
- const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
944
- return ret;
945
- }
946
- /**
947
- * @param {number} index
948
- * @returns {number}
949
- */
950
- events_mouse_state(index) {
951
- const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
952
- return ret >>> 0;
953
- }
954
- /**
955
- * @returns {number}
956
- */
957
- get get_current_event_id() {
958
- const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
959
- return ret >>> 0;
960
- }
961
- /**
962
- * @param {number} id
963
- */
964
- set current_event_id(id) {
965
- wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
966
- }
967
- /**
968
- * @returns {string}
969
- */
970
- get get_game_board() {
971
- let deferred1_0;
972
- let deferred1_1;
973
- try {
974
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
975
- wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
976
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
977
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
978
- deferred1_0 = r0;
979
- deferred1_1 = r1;
980
- return getStringFromWasm0(r0, r1);
981
- } finally {
982
- wasm.__wbindgen_add_to_stack_pointer(16);
983
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
984
- }
985
- }
986
- /**
987
- * @returns {string}
988
- */
989
- get get_game_board_poss() {
990
- let deferred1_0;
991
- let deferred1_1;
992
- try {
993
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
994
- wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
995
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
996
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
997
- deferred1_0 = r0;
998
- deferred1_1 = r1;
999
- return getStringFromWasm0(r0, r1);
1000
- } finally {
1001
- wasm.__wbindgen_add_to_stack_pointer(16);
1002
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1003
- }
1004
- }
1005
- /**
1006
- * @returns {number}
1007
- */
1008
- get get_mouse_state() {
1009
- const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
1010
- return ret >>> 0;
1011
- }
1012
- /**
1013
- * 局面状态
1014
- * @returns {number}
1015
- */
1016
- get get_game_board_state() {
1017
- const ret = wasm.avfvideo_get_game_board_state(this.__wbg_ptr);
1018
- return ret >>> 0;
1019
- }
1020
- /**
1021
- * 返回当前光标的位置,播放录像用
1022
- * @returns {CursorPos}
1023
- */
1024
- get get_x_y() {
1025
- const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
1026
- return CursorPos.__wrap(ret);
1027
- }
1028
- /**
1029
- * @returns {Uint8Array}
1030
- */
1031
- get get_checksum() {
1032
- try {
1033
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1034
- wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
1035
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1036
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1037
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1038
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1039
- return v1;
1040
- } finally {
1041
- wasm.__wbindgen_add_to_stack_pointer(16);
1042
- }
1043
- }
1044
- /**
1045
- * @returns {number}
1046
- */
1047
- get get_pix_size() {
1048
- const ret = wasm.avfvideo_get_pix_size(this.__wbg_ptr);
1049
- return ret;
1050
- }
1051
- /**
1052
- * @param {number} time
1053
- */
1054
- set current_time(time) {
1055
- wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
1056
- }
1057
- /**
1058
- * @returns {number}
1059
- */
1060
- is_valid() {
1061
- const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
1062
- return ret;
1063
- }
1064
- }
1065
- module.exports.AvfVideo = AvfVideo;
1066
-
1067
- const CursorPosFinalization = (typeof FinalizationRegistry === 'undefined')
1068
- ? { register: () => {}, unregister: () => {} }
1069
- : new FinalizationRegistry(ptr => wasm.__wbg_cursorpos_free(ptr >>> 0, 1));
1070
- /**
1071
- */
1072
- class CursorPos {
1073
-
1074
- static __wrap(ptr) {
1075
- ptr = ptr >>> 0;
1076
- const obj = Object.create(CursorPos.prototype);
1077
- obj.__wbg_ptr = ptr;
1078
- CursorPosFinalization.register(obj, obj.__wbg_ptr, obj);
1079
- return obj;
1080
- }
1081
-
1082
- __destroy_into_raw() {
1083
- const ptr = this.__wbg_ptr;
1084
- this.__wbg_ptr = 0;
1085
- CursorPosFinalization.unregister(this);
1086
- return ptr;
1087
- }
1088
-
1089
- free() {
1090
- const ptr = this.__destroy_into_raw();
1091
- wasm.__wbg_cursorpos_free(ptr, 0);
1092
- }
1093
- /**
1094
- * @returns {number}
1095
- */
1096
- get x() {
1097
- const ret = wasm.__wbg_get_cursorpos_x(this.__wbg_ptr);
1098
- return ret;
1099
- }
1100
- /**
1101
- * @param {number} arg0
1102
- */
1103
- set x(arg0) {
1104
- wasm.__wbg_set_cursorpos_x(this.__wbg_ptr, arg0);
1105
- }
1106
- /**
1107
- * @returns {number}
1108
- */
1109
- get y() {
1110
- const ret = wasm.__wbg_get_cursorpos_y(this.__wbg_ptr);
1111
- return ret;
1112
- }
1113
- /**
1114
- * @param {number} arg0
1115
- */
1116
- set y(arg0) {
1117
- wasm.__wbg_set_cursorpos_y(this.__wbg_ptr, arg0);
1118
- }
1119
- }
1120
- module.exports.CursorPos = CursorPos;
1121
-
1122
- const EvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
1123
- ? { register: () => {}, unregister: () => {} }
1124
- : new FinalizationRegistry(ptr => wasm.__wbg_evfvideo_free(ptr >>> 0, 1));
1125
- /**
1126
- */
1127
- class EvfVideo {
1128
-
1129
- static __wrap(ptr) {
1130
- ptr = ptr >>> 0;
1131
- const obj = Object.create(EvfVideo.prototype);
1132
- obj.__wbg_ptr = ptr;
1133
- EvfVideoFinalization.register(obj, obj.__wbg_ptr, obj);
1134
- return obj;
1135
- }
1136
-
1137
- toJSON() {
1138
- return {
1139
- get_raw_data: this.get_raw_data,
1140
- get_software: this.get_software,
1141
- get_row: this.get_row,
1142
- get_column: this.get_column,
1143
- get_level: this.get_level,
1144
- get_mode: this.get_mode,
1145
- get_is_completed: this.get_is_completed,
1146
- get_is_official: this.get_is_official,
1147
- get_is_fair: this.get_is_fair,
1148
- get_mine_num: this.get_mine_num,
1149
- get_player_identifier: this.get_player_identifier,
1150
- get_race_identifier: this.get_race_identifier,
1151
- get_uniqueness_identifier: this.get_uniqueness_identifier,
1152
- get_country: this.get_country,
1153
- get_device_uuid: this.get_device_uuid,
1154
- get_bbbv: this.get_bbbv,
1155
- get_start_time: this.get_start_time,
1156
- get_end_time: this.get_end_time,
1157
- get_op: this.get_op,
1158
- get_isl: this.get_isl,
1159
- get_hizi: this.get_hizi,
1160
- get_cell0: this.get_cell0,
1161
- get_cell1: this.get_cell1,
1162
- get_cell2: this.get_cell2,
1163
- get_cell3: this.get_cell3,
1164
- get_cell4: this.get_cell4,
1165
- get_cell5: this.get_cell5,
1166
- get_cell6: this.get_cell6,
1167
- get_cell7: this.get_cell7,
1168
- get_cell8: this.get_cell8,
1169
- get_rtime: this.get_rtime,
1170
- get_rtime_ms: this.get_rtime_ms,
1171
- get_etime: this.get_etime,
1172
- get_video_start_time: this.get_video_start_time,
1173
- get_video_end_time: this.get_video_end_time,
1174
- get_bbbv_s: this.get_bbbv_s,
1175
- get_stnb: this.get_stnb,
1176
- get_rqp: this.get_rqp,
1177
- get_left: this.get_left,
1178
- get_right: this.get_right,
1179
- get_double: this.get_double,
1180
- get_cl: this.get_cl,
1181
- get_flag: this.get_flag,
1182
- get_bbbv_solved: this.get_bbbv_solved,
1183
- get_lce: this.get_lce,
1184
- get_rce: this.get_rce,
1185
- get_dce: this.get_dce,
1186
- get_ce: this.get_ce,
1187
- get_left_s: this.get_left_s,
1188
- get_right_s: this.get_right_s,
1189
- get_double_s: this.get_double_s,
1190
- get_cl_s: this.get_cl_s,
1191
- get_flag_s: this.get_flag_s,
1192
- get_path: this.get_path,
1193
- get_ce_s: this.get_ce_s,
1194
- get_ioe: this.get_ioe,
1195
- get_thrp: this.get_thrp,
1196
- get_corr: this.get_corr,
1197
- get_events_len: this.get_events_len,
1198
- get_current_event_id: this.get_current_event_id,
1199
- get_game_board: this.get_game_board,
1200
- get_game_board_poss: this.get_game_board_poss,
1201
- get_mouse_state: this.get_mouse_state,
1202
- get_game_board_state: this.get_game_board_state,
1203
- get_x_y: this.get_x_y,
1204
- get_checksum: this.get_checksum,
1205
- get_pix_size: this.get_pix_size,
1206
- };
1207
- }
1208
-
1209
- toString() {
1210
- return JSON.stringify(this);
1211
- }
1212
-
1213
- [inspect.custom]() {
1214
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
1215
- }
1216
-
1217
- __destroy_into_raw() {
1218
- const ptr = this.__wbg_ptr;
1219
- this.__wbg_ptr = 0;
1220
- EvfVideoFinalization.unregister(this);
1221
- return ptr;
1222
- }
1223
-
1224
- free() {
1225
- const ptr = this.__destroy_into_raw();
1226
- wasm.__wbg_evfvideo_free(ptr, 0);
1227
- }
1228
- /**
1229
- * @param {Uint8Array} data
1230
- * @param {string} file_name
1231
- * @returns {EvfVideo}
1232
- */
1233
- static new(data, file_name) {
1234
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
1235
- const len0 = WASM_VECTOR_LEN;
1236
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1237
- const len1 = WASM_VECTOR_LEN;
1238
- const ret = wasm.evfvideo_new(ptr0, len0, ptr1, len1);
1239
- return EvfVideo.__wrap(ret);
1240
- }
1241
- /**
1242
- */
1243
- parse_video() {
1244
- wasm.evfvideo_parse_video(this.__wbg_ptr);
1245
- }
1246
- /**
1247
- */
1248
- analyse() {
1249
- wasm.evfvideo_analyse(this.__wbg_ptr);
1250
- }
1251
- /**
1252
- * @returns {Uint8Array}
1253
- */
1254
- get get_raw_data() {
1255
- try {
1256
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1257
- wasm.evfvideo_get_raw_data(retptr, this.__wbg_ptr);
1258
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1259
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1260
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1261
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1262
- return v1;
1263
- } finally {
1264
- wasm.__wbindgen_add_to_stack_pointer(16);
1265
- }
1266
- }
1267
- /**
1268
- * @returns {Uint8Array}
1269
- */
1270
- get get_software() {
1271
- try {
1272
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1273
- wasm.evfvideo_get_software(retptr, this.__wbg_ptr);
1274
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1275
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1276
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1277
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1278
- return v1;
1279
- } finally {
1280
- wasm.__wbindgen_add_to_stack_pointer(16);
1281
- }
1282
- }
1283
- /**
1284
- * @returns {number}
1285
- */
1286
- get get_row() {
1287
- const ret = wasm.evfvideo_get_row(this.__wbg_ptr);
1288
- return ret >>> 0;
1289
- }
1290
- /**
1291
- * @returns {number}
1292
- */
1293
- get get_column() {
1294
- const ret = wasm.evfvideo_get_column(this.__wbg_ptr);
1295
- return ret >>> 0;
1296
- }
1297
- /**
1298
- * @returns {number}
1299
- */
1300
- get get_level() {
1301
- const ret = wasm.evfvideo_get_level(this.__wbg_ptr);
1302
- return ret;
1303
- }
1304
- /**
1305
- * @returns {number}
1306
- */
1307
- get get_mode() {
1308
- const ret = wasm.evfvideo_get_mode(this.__wbg_ptr);
1309
- return ret;
1310
- }
1311
- /**
1312
- * @returns {boolean}
1313
- */
1314
- get get_is_completed() {
1315
- const ret = wasm.evfvideo_get_is_completed(this.__wbg_ptr);
1316
- return ret !== 0;
1317
- }
1318
- /**
1319
- * @returns {boolean}
1320
- */
1321
- get get_is_official() {
1322
- const ret = wasm.evfvideo_get_is_official(this.__wbg_ptr);
1323
- return ret !== 0;
1324
- }
1325
- /**
1326
- * @returns {boolean}
1327
- */
1328
- get get_is_fair() {
1329
- const ret = wasm.evfvideo_get_is_fair(this.__wbg_ptr);
1330
- return ret !== 0;
1331
- }
1332
- /**
1333
- * @returns {number}
1334
- */
1335
- get get_mine_num() {
1336
- const ret = wasm.evfvideo_get_mine_num(this.__wbg_ptr);
1337
- return ret >>> 0;
1338
- }
1339
- /**
1340
- * @returns {Uint8Array}
1341
- */
1342
- get get_player_identifier() {
1343
- try {
1344
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1345
- wasm.evfvideo_get_player_identifier(retptr, this.__wbg_ptr);
1346
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1347
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1348
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1349
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1350
- return v1;
1351
- } finally {
1352
- wasm.__wbindgen_add_to_stack_pointer(16);
1353
- }
1354
- }
1355
- /**
1356
- * @returns {Uint8Array}
1357
- */
1358
- get get_race_identifier() {
1359
- try {
1360
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1361
- wasm.evfvideo_get_race_identifier(retptr, this.__wbg_ptr);
1362
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1363
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1364
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1365
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1366
- return v1;
1367
- } finally {
1368
- wasm.__wbindgen_add_to_stack_pointer(16);
1369
- }
1370
- }
1371
- /**
1372
- * @returns {Uint8Array}
1373
- */
1374
- get get_uniqueness_identifier() {
1375
- try {
1376
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1377
- wasm.evfvideo_get_uniqueness_identifier(retptr, this.__wbg_ptr);
1378
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1379
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1380
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1381
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1382
- return v1;
1383
- } finally {
1384
- wasm.__wbindgen_add_to_stack_pointer(16);
1385
- }
1386
- }
1387
- /**
1388
- * @returns {Uint8Array}
1389
- */
1390
- get get_country() {
1391
- try {
1392
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1393
- wasm.evfvideo_get_country(retptr, this.__wbg_ptr);
1394
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1395
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1396
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1397
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1398
- return v1;
1399
- } finally {
1400
- wasm.__wbindgen_add_to_stack_pointer(16);
1401
- }
1402
- }
1403
- /**
1404
- * @returns {Uint8Array}
1405
- */
1406
- get get_device_uuid() {
1407
- try {
1408
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1409
- wasm.evfvideo_get_device_uuid(retptr, this.__wbg_ptr);
1410
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1411
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1412
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1413
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1414
- return v1;
1415
- } finally {
1416
- wasm.__wbindgen_add_to_stack_pointer(16);
1417
- }
1418
- }
1419
- /**
1420
- * @returns {number}
1421
- */
1422
- get get_bbbv() {
1423
- const ret = wasm.evfvideo_get_bbbv(this.__wbg_ptr);
1424
- return ret >>> 0;
1425
- }
1426
- /**
1427
- * @returns {Uint8Array}
1428
- */
1429
- get get_start_time() {
1430
- try {
1431
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1432
- wasm.evfvideo_get_start_time(retptr, this.__wbg_ptr);
1433
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1434
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1435
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1436
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1437
- return v1;
1438
- } finally {
1439
- wasm.__wbindgen_add_to_stack_pointer(16);
1440
- }
1441
- }
1442
- /**
1443
- * @returns {Uint8Array}
1444
- */
1445
- get get_end_time() {
1446
- try {
1447
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1448
- wasm.evfvideo_get_end_time(retptr, this.__wbg_ptr);
1449
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1450
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1451
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1452
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1453
- return v1;
1454
- } finally {
1455
- wasm.__wbindgen_add_to_stack_pointer(16);
1456
- }
1457
- }
1458
- /**
1459
- * @returns {number}
1460
- */
1461
- get get_op() {
1462
- const ret = wasm.evfvideo_get_op(this.__wbg_ptr);
1463
- return ret >>> 0;
1464
- }
1465
- /**
1466
- * @returns {number}
1467
- */
1468
- get get_isl() {
1469
- const ret = wasm.evfvideo_get_isl(this.__wbg_ptr);
1470
- return ret >>> 0;
1471
- }
1472
- /**
1473
- * @returns {number}
1474
- */
1475
- get get_hizi() {
1476
- const ret = wasm.evfvideo_get_hizi(this.__wbg_ptr);
1477
- return ret >>> 0;
1478
- }
1479
- /**
1480
- * @returns {number}
1481
- */
1482
- get get_cell0() {
1483
- const ret = wasm.evfvideo_get_cell0(this.__wbg_ptr);
1484
- return ret >>> 0;
1485
- }
1486
- /**
1487
- * @returns {number}
1488
- */
1489
- get get_cell1() {
1490
- const ret = wasm.evfvideo_get_cell1(this.__wbg_ptr);
1491
- return ret >>> 0;
1492
- }
1493
- /**
1494
- * @returns {number}
1495
- */
1496
- get get_cell2() {
1497
- const ret = wasm.evfvideo_get_cell2(this.__wbg_ptr);
1498
- return ret >>> 0;
1499
- }
1500
- /**
1501
- * @returns {number}
1502
- */
1503
- get get_cell3() {
1504
- const ret = wasm.evfvideo_get_cell3(this.__wbg_ptr);
1505
- return ret >>> 0;
1506
- }
1507
- /**
1508
- * @returns {number}
1509
- */
1510
- get get_cell4() {
1511
- const ret = wasm.evfvideo_get_cell4(this.__wbg_ptr);
1512
- return ret >>> 0;
1513
- }
1514
- /**
1515
- * @returns {number}
1516
- */
1517
- get get_cell5() {
1518
- const ret = wasm.evfvideo_get_cell5(this.__wbg_ptr);
1519
- return ret >>> 0;
1520
- }
1521
- /**
1522
- * @returns {number}
1523
- */
1524
- get get_cell6() {
1525
- const ret = wasm.evfvideo_get_cell6(this.__wbg_ptr);
1526
- return ret >>> 0;
1527
- }
1528
- /**
1529
- * @returns {number}
1530
- */
1531
- get get_cell7() {
1532
- const ret = wasm.evfvideo_get_cell7(this.__wbg_ptr);
1533
- return ret >>> 0;
1534
- }
1535
- /**
1536
- * @returns {number}
1537
- */
1538
- get get_cell8() {
1539
- const ret = wasm.evfvideo_get_cell8(this.__wbg_ptr);
1540
- return ret >>> 0;
1541
- }
1542
- /**
1543
- * @returns {number}
1544
- */
1545
- get get_rtime() {
1546
- const ret = wasm.evfvideo_get_rtime(this.__wbg_ptr);
1547
- return ret;
1548
- }
1549
- /**
1550
- * @returns {number}
1551
- */
1552
- get get_rtime_ms() {
1553
- const ret = wasm.evfvideo_get_rtime_ms(this.__wbg_ptr);
1554
- return ret >>> 0;
1555
- }
1556
- /**
1557
- * @returns {number}
1558
- */
1559
- get get_etime() {
1560
- const ret = wasm.evfvideo_get_etime(this.__wbg_ptr);
1561
- return ret;
1562
- }
1563
- /**
1564
- * @returns {number}
1565
- */
1566
- get get_video_start_time() {
1567
- const ret = wasm.evfvideo_get_video_start_time(this.__wbg_ptr);
1568
- return ret;
1569
- }
1570
- /**
1571
- * @returns {number}
1572
- */
1573
- get get_video_end_time() {
1574
- const ret = wasm.evfvideo_get_video_end_time(this.__wbg_ptr);
1575
- return ret;
1576
- }
1577
- /**
1578
- * @returns {number}
1579
- */
1580
- get get_bbbv_s() {
1581
- const ret = wasm.evfvideo_get_bbbv_s(this.__wbg_ptr);
1582
- return ret;
1583
- }
1584
- /**
1585
- * @returns {number}
1586
- */
1587
- get get_stnb() {
1588
- const ret = wasm.evfvideo_get_stnb(this.__wbg_ptr);
1589
- return ret;
1590
- }
1591
- /**
1592
- * @returns {number}
1593
- */
1594
- get get_rqp() {
1595
- const ret = wasm.evfvideo_get_rqp(this.__wbg_ptr);
1596
- return ret;
1597
- }
1598
- /**
1599
- * @returns {number}
1600
- */
1601
- get get_left() {
1602
- const ret = wasm.evfvideo_get_left(this.__wbg_ptr);
1603
- return ret >>> 0;
1604
- }
1605
- /**
1606
- * @returns {number}
1607
- */
1608
- get get_right() {
1609
- const ret = wasm.evfvideo_get_right(this.__wbg_ptr);
1610
- return ret >>> 0;
1611
- }
1612
- /**
1613
- * @returns {number}
1614
- */
1615
- get get_double() {
1616
- const ret = wasm.evfvideo_get_double(this.__wbg_ptr);
1617
- return ret >>> 0;
1618
- }
1619
- /**
1620
- * @returns {number}
1621
- */
1622
- get get_cl() {
1623
- const ret = wasm.evfvideo_get_cl(this.__wbg_ptr);
1624
- return ret >>> 0;
1625
- }
1626
- /**
1627
- * @returns {number}
1628
- */
1629
- get get_flag() {
1630
- const ret = wasm.evfvideo_get_flag(this.__wbg_ptr);
1631
- return ret >>> 0;
1632
- }
1633
- /**
1634
- * @returns {number}
1635
- */
1636
- get get_bbbv_solved() {
1637
- const ret = wasm.evfvideo_get_bbbv_solved(this.__wbg_ptr);
1638
- return ret >>> 0;
1639
- }
1640
- /**
1641
- * @returns {number}
1642
- */
1643
- get get_lce() {
1644
- const ret = wasm.evfvideo_get_lce(this.__wbg_ptr);
1645
- return ret >>> 0;
1646
- }
1647
- /**
1648
- * @returns {number}
1649
- */
1650
- get get_rce() {
1651
- const ret = wasm.evfvideo_get_rce(this.__wbg_ptr);
1652
- return ret >>> 0;
1653
- }
1654
- /**
1655
- * @returns {number}
1656
- */
1657
- get get_dce() {
1658
- const ret = wasm.evfvideo_get_dce(this.__wbg_ptr);
1659
- return ret >>> 0;
1660
- }
1661
- /**
1662
- * @returns {number}
1663
- */
1664
- get get_ce() {
1665
- const ret = wasm.evfvideo_get_ce(this.__wbg_ptr);
1666
- return ret >>> 0;
1667
- }
1668
- /**
1669
- * @returns {number}
1670
- */
1671
- get get_left_s() {
1672
- const ret = wasm.evfvideo_get_left_s(this.__wbg_ptr);
1673
- return ret;
1674
- }
1675
- /**
1676
- * @returns {number}
1677
- */
1678
- get get_right_s() {
1679
- const ret = wasm.evfvideo_get_right_s(this.__wbg_ptr);
1680
- return ret;
1681
- }
1682
- /**
1683
- * @returns {number}
1684
- */
1685
- get get_double_s() {
1686
- const ret = wasm.evfvideo_get_double_s(this.__wbg_ptr);
1687
- return ret;
1688
- }
1689
- /**
1690
- * @returns {number}
1691
- */
1692
- get get_cl_s() {
1693
- const ret = wasm.evfvideo_get_cl_s(this.__wbg_ptr);
1694
- return ret;
1695
- }
1696
- /**
1697
- * @returns {number}
1698
- */
1699
- get get_flag_s() {
1700
- const ret = wasm.evfvideo_get_flag_s(this.__wbg_ptr);
1701
- return ret;
1702
- }
1703
- /**
1704
- * @returns {number}
1705
- */
1706
- get get_path() {
1707
- const ret = wasm.evfvideo_get_path(this.__wbg_ptr);
1708
- return ret;
1709
- }
1710
- /**
1711
- * @returns {number}
1712
- */
1713
- get get_ce_s() {
1714
- const ret = wasm.evfvideo_get_ce_s(this.__wbg_ptr);
1715
- return ret;
1716
- }
1717
- /**
1718
- * @returns {number}
1719
- */
1720
- get get_ioe() {
1721
- const ret = wasm.evfvideo_get_ioe(this.__wbg_ptr);
1722
- return ret;
1723
- }
1724
- /**
1725
- * @returns {number}
1726
- */
1727
- get get_thrp() {
1728
- const ret = wasm.evfvideo_get_thrp(this.__wbg_ptr);
1729
- return ret;
1730
- }
1731
- /**
1732
- * @returns {number}
1733
- */
1734
- get get_corr() {
1735
- const ret = wasm.evfvideo_get_corr(this.__wbg_ptr);
1736
- return ret;
1737
- }
1738
- /**
1739
- * @returns {number}
1740
- */
1741
- get get_events_len() {
1742
- const ret = wasm.evfvideo_get_events_len(this.__wbg_ptr);
1743
- return ret >>> 0;
1744
- }
1745
- /**
1746
- * @param {number} index
1747
- * @returns {number}
1748
- */
1749
- events_time(index) {
1750
- const ret = wasm.evfvideo_events_time(this.__wbg_ptr, index);
1751
- return ret;
1752
- }
1753
- /**
1754
- * @param {number} index
1755
- * @returns {string}
1756
- */
1757
- events_mouse(index) {
1758
- let deferred1_0;
1759
- let deferred1_1;
1760
- try {
1761
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1762
- wasm.evfvideo_events_mouse(retptr, this.__wbg_ptr, index);
1763
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1764
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1765
- deferred1_0 = r0;
1766
- deferred1_1 = r1;
1767
- return getStringFromWasm0(r0, r1);
1768
- } finally {
1769
- wasm.__wbindgen_add_to_stack_pointer(16);
1770
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1771
- }
1772
- }
1773
- /**
1774
- * @param {number} index
1775
- * @returns {number}
1776
- */
1777
- events_x(index) {
1778
- const ret = wasm.evfvideo_events_x(this.__wbg_ptr, index);
1779
- return ret;
1780
- }
1781
- /**
1782
- * @param {number} index
1783
- * @returns {number}
1784
- */
1785
- events_y(index) {
1786
- const ret = wasm.evfvideo_events_y(this.__wbg_ptr, index);
1787
- return ret;
1788
- }
1789
- /**
1790
- * @param {number} index
1791
- * @returns {number}
1792
- */
1793
- events_useful_level(index) {
1794
- const ret = wasm.evfvideo_events_useful_level(this.__wbg_ptr, index);
1795
- return ret;
1796
- }
1797
- /**
1798
- * @param {number} index
1799
- * @returns {number}
1800
- */
1801
- events_mouse_state(index) {
1802
- const ret = wasm.evfvideo_events_mouse_state(this.__wbg_ptr, index);
1803
- return ret >>> 0;
1804
- }
1805
- /**
1806
- * @returns {number}
1807
- */
1808
- get get_current_event_id() {
1809
- const ret = wasm.evfvideo_get_current_event_id(this.__wbg_ptr);
1810
- return ret >>> 0;
1811
- }
1812
- /**
1813
- * @param {number} id
1814
- */
1815
- set current_event_id(id) {
1816
- wasm.evfvideo_set_current_event_id(this.__wbg_ptr, id);
1817
- }
1818
- /**
1819
- * @returns {string}
1820
- */
1821
- get get_game_board() {
1822
- let deferred1_0;
1823
- let deferred1_1;
1824
- try {
1825
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1826
- wasm.evfvideo_get_game_board(retptr, this.__wbg_ptr);
1827
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1828
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1829
- deferred1_0 = r0;
1830
- deferred1_1 = r1;
1831
- return getStringFromWasm0(r0, r1);
1832
- } finally {
1833
- wasm.__wbindgen_add_to_stack_pointer(16);
1834
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1835
- }
1836
- }
1837
- /**
1838
- * @returns {string}
1839
- */
1840
- get get_game_board_poss() {
1841
- let deferred1_0;
1842
- let deferred1_1;
1843
- try {
1844
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1845
- wasm.evfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
1846
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1847
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1848
- deferred1_0 = r0;
1849
- deferred1_1 = r1;
1850
- return getStringFromWasm0(r0, r1);
1851
- } finally {
1852
- wasm.__wbindgen_add_to_stack_pointer(16);
1853
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1854
- }
1855
- }
1856
- /**
1857
- * @returns {number}
1858
- */
1859
- get get_mouse_state() {
1860
- const ret = wasm.evfvideo_get_mouse_state(this.__wbg_ptr);
1861
- return ret >>> 0;
1862
- }
1863
- /**
1864
- * 局面状态
1865
- * @returns {number}
1866
- */
1867
- get get_game_board_state() {
1868
- const ret = wasm.evfvideo_get_game_board_state(this.__wbg_ptr);
1869
- return ret >>> 0;
1870
- }
1871
- /**
1872
- * 返回当前光标的位置,播放录像用
1873
- * @returns {CursorPos}
1874
- */
1875
- get get_x_y() {
1876
- const ret = wasm.evfvideo_get_x_y(this.__wbg_ptr);
1877
- return CursorPos.__wrap(ret);
1878
- }
1879
- /**
1880
- * @returns {Uint8Array}
1881
- */
1882
- get get_checksum() {
1883
- try {
1884
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1885
- wasm.evfvideo_get_checksum(retptr, this.__wbg_ptr);
1886
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1887
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1888
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1889
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1890
- return v1;
1891
- } finally {
1892
- wasm.__wbindgen_add_to_stack_pointer(16);
1893
- }
1894
- }
1895
- /**
1896
- * @returns {number}
1897
- */
1898
- get get_pix_size() {
1899
- const ret = wasm.evfvideo_get_pix_size(this.__wbg_ptr);
1900
- return ret;
1901
- }
1902
- /**
1903
- * @param {number} time
1904
- */
1905
- set current_time(time) {
1906
- wasm.evfvideo_set_current_time(this.__wbg_ptr, time);
1907
- }
1908
- /**
1909
- * @returns {number}
1910
- */
1911
- is_valid() {
1912
- const ret = wasm.evfvideo_is_valid(this.__wbg_ptr);
1913
- return ret;
1914
- }
1915
- }
1916
- module.exports.EvfVideo = EvfVideo;
1917
-
1918
- const MinesweeperBoardFinalization = (typeof FinalizationRegistry === 'undefined')
1919
- ? { register: () => {}, unregister: () => {} }
1920
- : new FinalizationRegistry(ptr => wasm.__wbg_minesweeperboard_free(ptr >>> 0, 1));
1921
- /**
1922
- */
1923
- class MinesweeperBoard {
1924
-
1925
- static __wrap(ptr) {
1926
- ptr = ptr >>> 0;
1927
- const obj = Object.create(MinesweeperBoard.prototype);
1928
- obj.__wbg_ptr = ptr;
1929
- MinesweeperBoardFinalization.register(obj, obj.__wbg_ptr, obj);
1930
- return obj;
1931
- }
1932
-
1933
- toJSON() {
1934
- return {
1935
- get_board: this.get_board,
1936
- get_game_board: this.get_game_board,
1937
- get_left: this.get_left,
1938
- get_right: this.get_right,
1939
- get_double: this.get_double,
1940
- get_ce: this.get_ce,
1941
- get_lce: this.get_lce,
1942
- get_rce: this.get_rce,
1943
- get_dce: this.get_dce,
1944
- get_flag: this.get_flag,
1945
- get_bbbv_solved: this.get_bbbv_solved,
1946
- get_row: this.get_row,
1947
- get_column: this.get_column,
1948
- get_game_board_state: this.get_game_board_state,
1949
- get_mouse_state: this.get_mouse_state,
1950
- };
1951
- }
1952
-
1953
- toString() {
1954
- return JSON.stringify(this);
1955
- }
1956
-
1957
- [inspect.custom]() {
1958
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
1959
- }
1960
-
1961
- __destroy_into_raw() {
1962
- const ptr = this.__wbg_ptr;
1963
- this.__wbg_ptr = 0;
1964
- MinesweeperBoardFinalization.unregister(this);
1965
- return ptr;
1966
- }
1967
-
1968
- free() {
1969
- const ptr = this.__destroy_into_raw();
1970
- wasm.__wbg_minesweeperboard_free(ptr, 0);
1971
- }
1972
- /**
1973
- * @param {string} board
1974
- * @returns {MinesweeperBoard}
1975
- */
1976
- static new(board) {
1977
- const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1978
- const len0 = WASM_VECTOR_LEN;
1979
- const ret = wasm.minesweeperboard_new(ptr0, len0);
1980
- return MinesweeperBoard.__wrap(ret);
1981
- }
1982
- /**
1983
- * @param {string} e
1984
- * @param {number} x
1985
- * @param {number} y
1986
- */
1987
- step(e, x, y) {
1988
- const ptr0 = passStringToWasm0(e, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1989
- const len0 = WASM_VECTOR_LEN;
1990
- wasm.minesweeperboard_step(this.__wbg_ptr, ptr0, len0, x, y);
1991
- }
1992
- /**
1993
- * @param {string} operation
1994
- */
1995
- step_flow(operation) {
1996
- const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1997
- const len0 = WASM_VECTOR_LEN;
1998
- wasm.minesweeperboard_step_flow(this.__wbg_ptr, ptr0, len0);
1999
- }
2000
- /**
2001
- * @param {string} board
2002
- */
2003
- set board(board) {
2004
- const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2005
- const len0 = WASM_VECTOR_LEN;
2006
- wasm.minesweeperboard_set_board(this.__wbg_ptr, ptr0, len0);
2007
- }
2008
- /**
2009
- * @param {string} game_board
2010
- */
2011
- set game_board(game_board) {
2012
- const ptr0 = passStringToWasm0(game_board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2013
- const len0 = WASM_VECTOR_LEN;
2014
- wasm.minesweeperboard_set_game_board(this.__wbg_ptr, ptr0, len0);
2015
- }
2016
- /**
2017
- * @returns {string}
2018
- */
2019
- get get_board() {
2020
- let deferred1_0;
2021
- let deferred1_1;
2022
- try {
2023
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2024
- wasm.minesweeperboard_get_board(retptr, this.__wbg_ptr);
2025
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2026
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2027
- deferred1_0 = r0;
2028
- deferred1_1 = r1;
2029
- return getStringFromWasm0(r0, r1);
2030
- } finally {
2031
- wasm.__wbindgen_add_to_stack_pointer(16);
2032
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2033
- }
2034
- }
2035
- /**
2036
- * @returns {string}
2037
- */
2038
- get get_game_board() {
2039
- let deferred1_0;
2040
- let deferred1_1;
2041
- try {
2042
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2043
- wasm.minesweeperboard_get_game_board(retptr, this.__wbg_ptr);
2044
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2045
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2046
- deferred1_0 = r0;
2047
- deferred1_1 = r1;
2048
- return getStringFromWasm0(r0, r1);
2049
- } finally {
2050
- wasm.__wbindgen_add_to_stack_pointer(16);
2051
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2052
- }
2053
- }
2054
- /**
2055
- * @returns {number}
2056
- */
2057
- get get_left() {
2058
- const ret = wasm.minesweeperboard_get_left(this.__wbg_ptr);
2059
- return ret >>> 0;
2060
- }
2061
- /**
2062
- * @returns {number}
2063
- */
2064
- get get_right() {
2065
- const ret = wasm.minesweeperboard_get_right(this.__wbg_ptr);
2066
- return ret >>> 0;
2067
- }
2068
- /**
2069
- * @returns {number}
2070
- */
2071
- get get_double() {
2072
- const ret = wasm.minesweeperboard_get_double(this.__wbg_ptr);
2073
- return ret >>> 0;
2074
- }
2075
- /**
2076
- * @returns {number}
2077
- */
2078
- get get_ce() {
2079
- const ret = wasm.minesweeperboard_get_ce(this.__wbg_ptr);
2080
- return ret >>> 0;
2081
- }
2082
- /**
2083
- * @returns {number}
2084
- */
2085
- get get_lce() {
2086
- const ret = wasm.minesweeperboard_get_lce(this.__wbg_ptr);
2087
- return ret >>> 0;
2088
- }
2089
- /**
2090
- * @returns {number}
2091
- */
2092
- get get_rce() {
2093
- const ret = wasm.minesweeperboard_get_rce(this.__wbg_ptr);
2094
- return ret >>> 0;
2095
- }
2096
- /**
2097
- * @returns {number}
2098
- */
2099
- get get_dce() {
2100
- const ret = wasm.minesweeperboard_get_dce(this.__wbg_ptr);
2101
- return ret >>> 0;
2102
- }
2103
- /**
2104
- * @returns {number}
2105
- */
2106
- get get_flag() {
2107
- const ret = wasm.minesweeperboard_get_flag(this.__wbg_ptr);
2108
- return ret >>> 0;
2109
- }
2110
- /**
2111
- * @returns {number}
2112
- */
2113
- get get_bbbv_solved() {
2114
- const ret = wasm.minesweeperboard_get_bbbv_solved(this.__wbg_ptr);
2115
- return ret >>> 0;
2116
- }
2117
- /**
2118
- * @returns {number}
2119
- */
2120
- get get_row() {
2121
- const ret = wasm.minesweeperboard_get_row(this.__wbg_ptr);
2122
- return ret >>> 0;
2123
- }
2124
- /**
2125
- * @returns {number}
2126
- */
2127
- get get_column() {
2128
- const ret = wasm.minesweeperboard_get_column(this.__wbg_ptr);
2129
- return ret >>> 0;
2130
- }
2131
- /**
2132
- * @returns {number}
2133
- */
2134
- get get_game_board_state() {
2135
- const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
2136
- return ret >>> 0;
2137
- }
2138
- /**
2139
- * @returns {number}
2140
- */
2141
- get get_mouse_state() {
2142
- const ret = wasm.minesweeperboard_get_mouse_state(this.__wbg_ptr);
2143
- return ret >>> 0;
2144
- }
2145
- }
2146
- module.exports.MinesweeperBoard = MinesweeperBoard;
2147
-
2148
- const MvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
2149
- ? { register: () => {}, unregister: () => {} }
2150
- : new FinalizationRegistry(ptr => wasm.__wbg_mvfvideo_free(ptr >>> 0, 1));
2151
- /**
2152
- */
2153
- class MvfVideo {
2154
-
2155
- static __wrap(ptr) {
2156
- ptr = ptr >>> 0;
2157
- const obj = Object.create(MvfVideo.prototype);
2158
- obj.__wbg_ptr = ptr;
2159
- MvfVideoFinalization.register(obj, obj.__wbg_ptr, obj);
2160
- return obj;
2161
- }
2162
-
2163
- toJSON() {
2164
- return {
2165
- get_raw_data: this.get_raw_data,
2166
- get_software: this.get_software,
2167
- get_row: this.get_row,
2168
- get_column: this.get_column,
2169
- get_level: this.get_level,
2170
- get_mode: this.get_mode,
2171
- get_is_completed: this.get_is_completed,
2172
- get_is_official: this.get_is_official,
2173
- get_is_fair: this.get_is_fair,
2174
- get_mine_num: this.get_mine_num,
2175
- get_player_identifier: this.get_player_identifier,
2176
- get_race_identifier: this.get_race_identifier,
2177
- get_uniqueness_identifier: this.get_uniqueness_identifier,
2178
- get_country: this.get_country,
2179
- get_device_uuid: this.get_device_uuid,
2180
- get_bbbv: this.get_bbbv,
2181
- get_start_time: this.get_start_time,
2182
- get_end_time: this.get_end_time,
2183
- get_op: this.get_op,
2184
- get_isl: this.get_isl,
2185
- get_hizi: this.get_hizi,
2186
- get_cell0: this.get_cell0,
2187
- get_cell1: this.get_cell1,
2188
- get_cell2: this.get_cell2,
2189
- get_cell3: this.get_cell3,
2190
- get_cell4: this.get_cell4,
2191
- get_cell5: this.get_cell5,
2192
- get_cell6: this.get_cell6,
2193
- get_cell7: this.get_cell7,
2194
- get_cell8: this.get_cell8,
2195
- get_rtime: this.get_rtime,
2196
- get_rtime_ms: this.get_rtime_ms,
2197
- get_etime: this.get_etime,
2198
- get_video_start_time: this.get_video_start_time,
2199
- get_video_end_time: this.get_video_end_time,
2200
- get_bbbv_s: this.get_bbbv_s,
2201
- get_stnb: this.get_stnb,
2202
- get_rqp: this.get_rqp,
2203
- get_left: this.get_left,
2204
- get_right: this.get_right,
2205
- get_double: this.get_double,
2206
- get_cl: this.get_cl,
2207
- get_flag: this.get_flag,
2208
- get_bbbv_solved: this.get_bbbv_solved,
2209
- get_lce: this.get_lce,
2210
- get_rce: this.get_rce,
2211
- get_dce: this.get_dce,
2212
- get_ce: this.get_ce,
2213
- get_left_s: this.get_left_s,
2214
- get_right_s: this.get_right_s,
2215
- get_double_s: this.get_double_s,
2216
- get_cl_s: this.get_cl_s,
2217
- get_flag_s: this.get_flag_s,
2218
- get_path: this.get_path,
2219
- get_ce_s: this.get_ce_s,
2220
- get_ioe: this.get_ioe,
2221
- get_thrp: this.get_thrp,
2222
- get_corr: this.get_corr,
2223
- get_events_len: this.get_events_len,
2224
- get_current_event_id: this.get_current_event_id,
2225
- get_game_board: this.get_game_board,
2226
- get_game_board_poss: this.get_game_board_poss,
2227
- get_mouse_state: this.get_mouse_state,
2228
- get_game_board_state: this.get_game_board_state,
2229
- get_x_y: this.get_x_y,
2230
- get_checksum: this.get_checksum,
2231
- get_pix_size: this.get_pix_size,
2232
- };
2233
- }
2234
-
2235
- toString() {
2236
- return JSON.stringify(this);
2237
- }
2238
-
2239
- [inspect.custom]() {
2240
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
2241
- }
2242
-
2243
- __destroy_into_raw() {
2244
- const ptr = this.__wbg_ptr;
2245
- this.__wbg_ptr = 0;
2246
- MvfVideoFinalization.unregister(this);
2247
- return ptr;
2248
- }
2249
-
2250
- free() {
2251
- const ptr = this.__destroy_into_raw();
2252
- wasm.__wbg_mvfvideo_free(ptr, 0);
2253
- }
2254
- /**
2255
- * @param {Uint8Array} data
2256
- * @param {string} file_name
2257
- * @returns {MvfVideo}
2258
- */
2259
- static new(data, file_name) {
2260
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2261
- const len0 = WASM_VECTOR_LEN;
2262
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2263
- const len1 = WASM_VECTOR_LEN;
2264
- const ret = wasm.mvfvideo_new(ptr0, len0, ptr1, len1);
2265
- return MvfVideo.__wrap(ret);
2266
- }
2267
- /**
2268
- */
2269
- parse_video() {
2270
- wasm.mvfvideo_parse_video(this.__wbg_ptr);
2271
- }
2272
- /**
2273
- */
2274
- analyse() {
2275
- wasm.mvfvideo_analyse(this.__wbg_ptr);
2276
- }
2277
- /**
2278
- * @returns {Uint8Array}
2279
- */
2280
- get get_raw_data() {
2281
- try {
2282
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2283
- wasm.mvfvideo_get_raw_data(retptr, this.__wbg_ptr);
2284
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2285
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2286
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2287
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2288
- return v1;
2289
- } finally {
2290
- wasm.__wbindgen_add_to_stack_pointer(16);
2291
- }
2292
- }
2293
- /**
2294
- * @returns {Uint8Array}
2295
- */
2296
- get get_software() {
2297
- try {
2298
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2299
- wasm.mvfvideo_get_software(retptr, this.__wbg_ptr);
2300
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2301
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2302
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2303
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2304
- return v1;
2305
- } finally {
2306
- wasm.__wbindgen_add_to_stack_pointer(16);
2307
- }
2308
- }
2309
- /**
2310
- * @returns {number}
2311
- */
2312
- get get_row() {
2313
- const ret = wasm.mvfvideo_get_row(this.__wbg_ptr);
2314
- return ret >>> 0;
2315
- }
2316
- /**
2317
- * @returns {number}
2318
- */
2319
- get get_column() {
2320
- const ret = wasm.mvfvideo_get_column(this.__wbg_ptr);
2321
- return ret >>> 0;
2322
- }
2323
- /**
2324
- * @returns {number}
2325
- */
2326
- get get_level() {
2327
- const ret = wasm.mvfvideo_get_level(this.__wbg_ptr);
2328
- return ret;
2329
- }
2330
- /**
2331
- * @returns {number}
2332
- */
2333
- get get_mode() {
2334
- const ret = wasm.mvfvideo_get_mode(this.__wbg_ptr);
2335
- return ret;
2336
- }
2337
- /**
2338
- * @returns {boolean}
2339
- */
2340
- get get_is_completed() {
2341
- const ret = wasm.mvfvideo_get_is_completed(this.__wbg_ptr);
2342
- return ret !== 0;
2343
- }
2344
- /**
2345
- * @returns {boolean}
2346
- */
2347
- get get_is_official() {
2348
- const ret = wasm.mvfvideo_get_is_official(this.__wbg_ptr);
2349
- return ret !== 0;
2350
- }
2351
- /**
2352
- * @returns {boolean}
2353
- */
2354
- get get_is_fair() {
2355
- const ret = wasm.mvfvideo_get_is_fair(this.__wbg_ptr);
2356
- return ret !== 0;
2357
- }
2358
- /**
2359
- * @returns {number}
2360
- */
2361
- get get_mine_num() {
2362
- const ret = wasm.mvfvideo_get_mine_num(this.__wbg_ptr);
2363
- return ret >>> 0;
2364
- }
2365
- /**
2366
- * @returns {Uint8Array}
2367
- */
2368
- get get_player_identifier() {
2369
- try {
2370
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2371
- wasm.mvfvideo_get_player_identifier(retptr, this.__wbg_ptr);
2372
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2373
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2374
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2375
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2376
- return v1;
2377
- } finally {
2378
- wasm.__wbindgen_add_to_stack_pointer(16);
2379
- }
2380
- }
2381
- /**
2382
- * @returns {Uint8Array}
2383
- */
2384
- get get_race_identifier() {
2385
- try {
2386
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2387
- wasm.mvfvideo_get_race_identifier(retptr, this.__wbg_ptr);
2388
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2389
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2390
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2391
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2392
- return v1;
2393
- } finally {
2394
- wasm.__wbindgen_add_to_stack_pointer(16);
2395
- }
2396
- }
2397
- /**
2398
- * @returns {Uint8Array}
2399
- */
2400
- get get_uniqueness_identifier() {
2401
- try {
2402
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2403
- wasm.mvfvideo_get_uniqueness_identifier(retptr, this.__wbg_ptr);
2404
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2405
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2406
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2407
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2408
- return v1;
2409
- } finally {
2410
- wasm.__wbindgen_add_to_stack_pointer(16);
2411
- }
2412
- }
2413
- /**
2414
- * @returns {Uint8Array}
2415
- */
2416
- get get_country() {
2417
- try {
2418
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2419
- wasm.mvfvideo_get_country(retptr, this.__wbg_ptr);
2420
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2421
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2422
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2423
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2424
- return v1;
2425
- } finally {
2426
- wasm.__wbindgen_add_to_stack_pointer(16);
2427
- }
2428
- }
2429
- /**
2430
- * @returns {Uint8Array}
2431
- */
2432
- get get_device_uuid() {
2433
- try {
2434
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2435
- wasm.mvfvideo_get_device_uuid(retptr, this.__wbg_ptr);
2436
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2437
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2438
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2439
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2440
- return v1;
2441
- } finally {
2442
- wasm.__wbindgen_add_to_stack_pointer(16);
2443
- }
2444
- }
2445
- /**
2446
- * @returns {number}
2447
- */
2448
- get get_bbbv() {
2449
- const ret = wasm.mvfvideo_get_bbbv(this.__wbg_ptr);
2450
- return ret >>> 0;
2451
- }
2452
- /**
2453
- * @returns {Uint8Array}
2454
- */
2455
- get get_start_time() {
2456
- try {
2457
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2458
- wasm.mvfvideo_get_start_time(retptr, this.__wbg_ptr);
2459
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2460
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2461
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2462
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2463
- return v1;
2464
- } finally {
2465
- wasm.__wbindgen_add_to_stack_pointer(16);
2466
- }
2467
- }
2468
- /**
2469
- * @returns {Uint8Array}
2470
- */
2471
- get get_end_time() {
2472
- try {
2473
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2474
- wasm.mvfvideo_get_end_time(retptr, this.__wbg_ptr);
2475
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2476
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2477
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2478
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2479
- return v1;
2480
- } finally {
2481
- wasm.__wbindgen_add_to_stack_pointer(16);
2482
- }
2483
- }
2484
- /**
2485
- * @returns {number}
2486
- */
2487
- get get_op() {
2488
- const ret = wasm.mvfvideo_get_op(this.__wbg_ptr);
2489
- return ret >>> 0;
2490
- }
2491
- /**
2492
- * @returns {number}
2493
- */
2494
- get get_isl() {
2495
- const ret = wasm.mvfvideo_get_isl(this.__wbg_ptr);
2496
- return ret >>> 0;
2497
- }
2498
- /**
2499
- * @returns {number}
2500
- */
2501
- get get_hizi() {
2502
- const ret = wasm.mvfvideo_get_hizi(this.__wbg_ptr);
2503
- return ret >>> 0;
2504
- }
2505
- /**
2506
- * @returns {number}
2507
- */
2508
- get get_cell0() {
2509
- const ret = wasm.mvfvideo_get_cell0(this.__wbg_ptr);
2510
- return ret >>> 0;
2511
- }
2512
- /**
2513
- * @returns {number}
2514
- */
2515
- get get_cell1() {
2516
- const ret = wasm.mvfvideo_get_cell1(this.__wbg_ptr);
2517
- return ret >>> 0;
2518
- }
2519
- /**
2520
- * @returns {number}
2521
- */
2522
- get get_cell2() {
2523
- const ret = wasm.mvfvideo_get_cell2(this.__wbg_ptr);
2524
- return ret >>> 0;
2525
- }
2526
- /**
2527
- * @returns {number}
2528
- */
2529
- get get_cell3() {
2530
- const ret = wasm.mvfvideo_get_cell3(this.__wbg_ptr);
2531
- return ret >>> 0;
2532
- }
2533
- /**
2534
- * @returns {number}
2535
- */
2536
- get get_cell4() {
2537
- const ret = wasm.mvfvideo_get_cell4(this.__wbg_ptr);
2538
- return ret >>> 0;
2539
- }
2540
- /**
2541
- * @returns {number}
2542
- */
2543
- get get_cell5() {
2544
- const ret = wasm.mvfvideo_get_cell5(this.__wbg_ptr);
2545
- return ret >>> 0;
2546
- }
2547
- /**
2548
- * @returns {number}
2549
- */
2550
- get get_cell6() {
2551
- const ret = wasm.mvfvideo_get_cell6(this.__wbg_ptr);
2552
- return ret >>> 0;
2553
- }
2554
- /**
2555
- * @returns {number}
2556
- */
2557
- get get_cell7() {
2558
- const ret = wasm.mvfvideo_get_cell7(this.__wbg_ptr);
2559
- return ret >>> 0;
2560
- }
2561
- /**
2562
- * @returns {number}
2563
- */
2564
- get get_cell8() {
2565
- const ret = wasm.mvfvideo_get_cell8(this.__wbg_ptr);
2566
- return ret >>> 0;
2567
- }
2568
- /**
2569
- * @returns {number}
2570
- */
2571
- get get_rtime() {
2572
- const ret = wasm.mvfvideo_get_rtime(this.__wbg_ptr);
2573
- return ret;
2574
- }
2575
- /**
2576
- * @returns {number}
2577
- */
2578
- get get_rtime_ms() {
2579
- const ret = wasm.mvfvideo_get_rtime_ms(this.__wbg_ptr);
2580
- return ret >>> 0;
2581
- }
2582
- /**
2583
- * @returns {number}
2584
- */
2585
- get get_etime() {
2586
- const ret = wasm.mvfvideo_get_etime(this.__wbg_ptr);
2587
- return ret;
2588
- }
2589
- /**
2590
- * @returns {number}
2591
- */
2592
- get get_video_start_time() {
2593
- const ret = wasm.mvfvideo_get_video_start_time(this.__wbg_ptr);
2594
- return ret;
2595
- }
2596
- /**
2597
- * @returns {number}
2598
- */
2599
- get get_video_end_time() {
2600
- const ret = wasm.mvfvideo_get_video_end_time(this.__wbg_ptr);
2601
- return ret;
2602
- }
2603
- /**
2604
- * @returns {number}
2605
- */
2606
- get get_bbbv_s() {
2607
- const ret = wasm.mvfvideo_get_bbbv_s(this.__wbg_ptr);
2608
- return ret;
2609
- }
2610
- /**
2611
- * @returns {number}
2612
- */
2613
- get get_stnb() {
2614
- const ret = wasm.mvfvideo_get_stnb(this.__wbg_ptr);
2615
- return ret;
2616
- }
2617
- /**
2618
- * @returns {number}
2619
- */
2620
- get get_rqp() {
2621
- const ret = wasm.mvfvideo_get_rqp(this.__wbg_ptr);
2622
- return ret;
2623
- }
2624
- /**
2625
- * @returns {number}
2626
- */
2627
- get get_left() {
2628
- const ret = wasm.mvfvideo_get_left(this.__wbg_ptr);
2629
- return ret >>> 0;
2630
- }
2631
- /**
2632
- * @returns {number}
2633
- */
2634
- get get_right() {
2635
- const ret = wasm.mvfvideo_get_right(this.__wbg_ptr);
2636
- return ret >>> 0;
2637
- }
2638
- /**
2639
- * @returns {number}
2640
- */
2641
- get get_double() {
2642
- const ret = wasm.mvfvideo_get_double(this.__wbg_ptr);
2643
- return ret >>> 0;
2644
- }
2645
- /**
2646
- * @returns {number}
2647
- */
2648
- get get_cl() {
2649
- const ret = wasm.mvfvideo_get_cl(this.__wbg_ptr);
2650
- return ret >>> 0;
2651
- }
2652
- /**
2653
- * @returns {number}
2654
- */
2655
- get get_flag() {
2656
- const ret = wasm.mvfvideo_get_flag(this.__wbg_ptr);
2657
- return ret >>> 0;
2658
- }
2659
- /**
2660
- * @returns {number}
2661
- */
2662
- get get_bbbv_solved() {
2663
- const ret = wasm.mvfvideo_get_bbbv_solved(this.__wbg_ptr);
2664
- return ret >>> 0;
2665
- }
2666
- /**
2667
- * @returns {number}
2668
- */
2669
- get get_lce() {
2670
- const ret = wasm.mvfvideo_get_lce(this.__wbg_ptr);
2671
- return ret >>> 0;
2672
- }
2673
- /**
2674
- * @returns {number}
2675
- */
2676
- get get_rce() {
2677
- const ret = wasm.mvfvideo_get_rce(this.__wbg_ptr);
2678
- return ret >>> 0;
2679
- }
2680
- /**
2681
- * @returns {number}
2682
- */
2683
- get get_dce() {
2684
- const ret = wasm.mvfvideo_get_dce(this.__wbg_ptr);
2685
- return ret >>> 0;
2686
- }
2687
- /**
2688
- * @returns {number}
2689
- */
2690
- get get_ce() {
2691
- const ret = wasm.mvfvideo_get_ce(this.__wbg_ptr);
2692
- return ret >>> 0;
2693
- }
2694
- /**
2695
- * @returns {number}
2696
- */
2697
- get get_left_s() {
2698
- const ret = wasm.mvfvideo_get_left_s(this.__wbg_ptr);
2699
- return ret;
2700
- }
2701
- /**
2702
- * @returns {number}
2703
- */
2704
- get get_right_s() {
2705
- const ret = wasm.mvfvideo_get_right_s(this.__wbg_ptr);
2706
- return ret;
2707
- }
2708
- /**
2709
- * @returns {number}
2710
- */
2711
- get get_double_s() {
2712
- const ret = wasm.mvfvideo_get_double_s(this.__wbg_ptr);
2713
- return ret;
2714
- }
2715
- /**
2716
- * @returns {number}
2717
- */
2718
- get get_cl_s() {
2719
- const ret = wasm.mvfvideo_get_cl_s(this.__wbg_ptr);
2720
- return ret;
2721
- }
2722
- /**
2723
- * @returns {number}
2724
- */
2725
- get get_flag_s() {
2726
- const ret = wasm.mvfvideo_get_flag_s(this.__wbg_ptr);
2727
- return ret;
2728
- }
2729
- /**
2730
- * @returns {number}
2731
- */
2732
- get get_path() {
2733
- const ret = wasm.mvfvideo_get_path(this.__wbg_ptr);
2734
- return ret;
2735
- }
2736
- /**
2737
- * @returns {number}
2738
- */
2739
- get get_ce_s() {
2740
- const ret = wasm.mvfvideo_get_ce_s(this.__wbg_ptr);
2741
- return ret;
2742
- }
2743
- /**
2744
- * @returns {number}
2745
- */
2746
- get get_ioe() {
2747
- const ret = wasm.mvfvideo_get_ioe(this.__wbg_ptr);
2748
- return ret;
2749
- }
2750
- /**
2751
- * @returns {number}
2752
- */
2753
- get get_thrp() {
2754
- const ret = wasm.mvfvideo_get_thrp(this.__wbg_ptr);
2755
- return ret;
2756
- }
2757
- /**
2758
- * @returns {number}
2759
- */
2760
- get get_corr() {
2761
- const ret = wasm.mvfvideo_get_corr(this.__wbg_ptr);
2762
- return ret;
2763
- }
2764
- /**
2765
- * @returns {number}
2766
- */
2767
- get get_events_len() {
2768
- const ret = wasm.mvfvideo_get_events_len(this.__wbg_ptr);
2769
- return ret >>> 0;
2770
- }
2771
- /**
2772
- * @param {number} index
2773
- * @returns {number}
2774
- */
2775
- events_time(index) {
2776
- const ret = wasm.mvfvideo_events_time(this.__wbg_ptr, index);
2777
- return ret;
2778
- }
2779
- /**
2780
- * @param {number} index
2781
- * @returns {string}
2782
- */
2783
- events_mouse(index) {
2784
- let deferred1_0;
2785
- let deferred1_1;
2786
- try {
2787
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2788
- wasm.mvfvideo_events_mouse(retptr, this.__wbg_ptr, index);
2789
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2790
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2791
- deferred1_0 = r0;
2792
- deferred1_1 = r1;
2793
- return getStringFromWasm0(r0, r1);
2794
- } finally {
2795
- wasm.__wbindgen_add_to_stack_pointer(16);
2796
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2797
- }
2798
- }
2799
- /**
2800
- * @param {number} index
2801
- * @returns {number}
2802
- */
2803
- events_x(index) {
2804
- const ret = wasm.mvfvideo_events_x(this.__wbg_ptr, index);
2805
- return ret;
2806
- }
2807
- /**
2808
- * @param {number} index
2809
- * @returns {number}
2810
- */
2811
- events_y(index) {
2812
- const ret = wasm.mvfvideo_events_y(this.__wbg_ptr, index);
2813
- return ret;
2814
- }
2815
- /**
2816
- * @param {number} index
2817
- * @returns {number}
2818
- */
2819
- events_useful_level(index) {
2820
- const ret = wasm.mvfvideo_events_useful_level(this.__wbg_ptr, index);
2821
- return ret;
2822
- }
2823
- /**
2824
- * @param {number} index
2825
- * @returns {number}
2826
- */
2827
- events_mouse_state(index) {
2828
- const ret = wasm.mvfvideo_events_mouse_state(this.__wbg_ptr, index);
2829
- return ret >>> 0;
2830
- }
2831
- /**
2832
- * @returns {number}
2833
- */
2834
- get get_current_event_id() {
2835
- const ret = wasm.mvfvideo_get_current_event_id(this.__wbg_ptr);
2836
- return ret >>> 0;
2837
- }
2838
- /**
2839
- * @param {number} id
2840
- */
2841
- set current_event_id(id) {
2842
- wasm.mvfvideo_set_current_event_id(this.__wbg_ptr, id);
2843
- }
2844
- /**
2845
- * @returns {string}
2846
- */
2847
- get get_game_board() {
2848
- let deferred1_0;
2849
- let deferred1_1;
2850
- try {
2851
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2852
- wasm.mvfvideo_get_game_board(retptr, this.__wbg_ptr);
2853
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2854
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2855
- deferred1_0 = r0;
2856
- deferred1_1 = r1;
2857
- return getStringFromWasm0(r0, r1);
2858
- } finally {
2859
- wasm.__wbindgen_add_to_stack_pointer(16);
2860
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2861
- }
2862
- }
2863
- /**
2864
- * @returns {string}
2865
- */
2866
- get get_game_board_poss() {
2867
- let deferred1_0;
2868
- let deferred1_1;
2869
- try {
2870
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2871
- wasm.mvfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
2872
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2873
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2874
- deferred1_0 = r0;
2875
- deferred1_1 = r1;
2876
- return getStringFromWasm0(r0, r1);
2877
- } finally {
2878
- wasm.__wbindgen_add_to_stack_pointer(16);
2879
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2880
- }
2881
- }
2882
- /**
2883
- * @returns {number}
2884
- */
2885
- get get_mouse_state() {
2886
- const ret = wasm.mvfvideo_get_mouse_state(this.__wbg_ptr);
2887
- return ret >>> 0;
2888
- }
2889
- /**
2890
- * 局面状态
2891
- * @returns {number}
2892
- */
2893
- get get_game_board_state() {
2894
- const ret = wasm.mvfvideo_get_game_board_state(this.__wbg_ptr);
2895
- return ret >>> 0;
2896
- }
2897
- /**
2898
- * 返回当前光标的位置,播放录像用
2899
- * @returns {CursorPos}
2900
- */
2901
- get get_x_y() {
2902
- const ret = wasm.mvfvideo_get_x_y(this.__wbg_ptr);
2903
- return CursorPos.__wrap(ret);
2904
- }
2905
- /**
2906
- * @returns {Uint8Array}
2907
- */
2908
- get get_checksum() {
2909
- try {
2910
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2911
- wasm.mvfvideo_get_checksum(retptr, this.__wbg_ptr);
2912
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2913
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2914
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2915
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2916
- return v1;
2917
- } finally {
2918
- wasm.__wbindgen_add_to_stack_pointer(16);
2919
- }
2920
- }
2921
- /**
2922
- * @returns {number}
2923
- */
2924
- get get_pix_size() {
2925
- const ret = wasm.mvfvideo_get_pix_size(this.__wbg_ptr);
2926
- return ret;
2927
- }
2928
- /**
2929
- * @param {number} time
2930
- */
2931
- set current_time(time) {
2932
- wasm.mvfvideo_set_current_time(this.__wbg_ptr, time);
2933
- }
2934
- /**
2935
- * @returns {number}
2936
- */
2937
- is_valid() {
2938
- const ret = wasm.mvfvideo_is_valid(this.__wbg_ptr);
2939
- return ret;
2940
- }
2941
- }
2942
- module.exports.MvfVideo = MvfVideo;
2943
-
2944
- const RmvVideoFinalization = (typeof FinalizationRegistry === 'undefined')
2945
- ? { register: () => {}, unregister: () => {} }
2946
- : new FinalizationRegistry(ptr => wasm.__wbg_rmvvideo_free(ptr >>> 0, 1));
2947
- /**
2948
- */
2949
- class RmvVideo {
2950
-
2951
- static __wrap(ptr) {
2952
- ptr = ptr >>> 0;
2953
- const obj = Object.create(RmvVideo.prototype);
2954
- obj.__wbg_ptr = ptr;
2955
- RmvVideoFinalization.register(obj, obj.__wbg_ptr, obj);
2956
- return obj;
2957
- }
2958
-
2959
- toJSON() {
2960
- return {
2961
- get_raw_data: this.get_raw_data,
2962
- get_software: this.get_software,
2963
- get_row: this.get_row,
2964
- get_column: this.get_column,
2965
- get_level: this.get_level,
2966
- get_mode: this.get_mode,
2967
- get_is_completed: this.get_is_completed,
2968
- get_is_official: this.get_is_official,
2969
- get_is_fair: this.get_is_fair,
2970
- get_mine_num: this.get_mine_num,
2971
- get_player_identifier: this.get_player_identifier,
2972
- get_race_identifier: this.get_race_identifier,
2973
- get_uniqueness_identifier: this.get_uniqueness_identifier,
2974
- get_country: this.get_country,
2975
- get_device_uuid: this.get_device_uuid,
2976
- get_bbbv: this.get_bbbv,
2977
- get_start_time: this.get_start_time,
2978
- get_end_time: this.get_end_time,
2979
- get_op: this.get_op,
2980
- get_isl: this.get_isl,
2981
- get_hizi: this.get_hizi,
2982
- get_cell0: this.get_cell0,
2983
- get_cell1: this.get_cell1,
2984
- get_cell2: this.get_cell2,
2985
- get_cell3: this.get_cell3,
2986
- get_cell4: this.get_cell4,
2987
- get_cell5: this.get_cell5,
2988
- get_cell6: this.get_cell6,
2989
- get_cell7: this.get_cell7,
2990
- get_cell8: this.get_cell8,
2991
- get_rtime: this.get_rtime,
2992
- get_rtime_ms: this.get_rtime_ms,
2993
- get_etime: this.get_etime,
2994
- get_video_start_time: this.get_video_start_time,
2995
- get_video_end_time: this.get_video_end_time,
2996
- get_bbbv_s: this.get_bbbv_s,
2997
- get_stnb: this.get_stnb,
2998
- get_rqp: this.get_rqp,
2999
- get_left: this.get_left,
3000
- get_right: this.get_right,
3001
- get_double: this.get_double,
3002
- get_cl: this.get_cl,
3003
- get_flag: this.get_flag,
3004
- get_bbbv_solved: this.get_bbbv_solved,
3005
- get_lce: this.get_lce,
3006
- get_rce: this.get_rce,
3007
- get_dce: this.get_dce,
3008
- get_ce: this.get_ce,
3009
- get_left_s: this.get_left_s,
3010
- get_right_s: this.get_right_s,
3011
- get_double_s: this.get_double_s,
3012
- get_cl_s: this.get_cl_s,
3013
- get_flag_s: this.get_flag_s,
3014
- get_path: this.get_path,
3015
- get_ce_s: this.get_ce_s,
3016
- get_ioe: this.get_ioe,
3017
- get_thrp: this.get_thrp,
3018
- get_corr: this.get_corr,
3019
- get_events_len: this.get_events_len,
3020
- get_current_event_id: this.get_current_event_id,
3021
- get_game_board: this.get_game_board,
3022
- get_game_board_poss: this.get_game_board_poss,
3023
- get_mouse_state: this.get_mouse_state,
3024
- get_game_board_state: this.get_game_board_state,
3025
- get_x_y: this.get_x_y,
3026
- get_checksum: this.get_checksum,
3027
- get_pix_size: this.get_pix_size,
3028
- };
3029
- }
3030
-
3031
- toString() {
3032
- return JSON.stringify(this);
3033
- }
3034
-
3035
- [inspect.custom]() {
3036
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
3037
- }
3038
-
3039
- __destroy_into_raw() {
3040
- const ptr = this.__wbg_ptr;
3041
- this.__wbg_ptr = 0;
3042
- RmvVideoFinalization.unregister(this);
3043
- return ptr;
3044
- }
3045
-
3046
- free() {
3047
- const ptr = this.__destroy_into_raw();
3048
- wasm.__wbg_rmvvideo_free(ptr, 0);
3049
- }
3050
- /**
3051
- * @param {Uint8Array} data
3052
- * @param {string} file_name
3053
- * @returns {RmvVideo}
3054
- */
3055
- static new(data, file_name) {
3056
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
3057
- const len0 = WASM_VECTOR_LEN;
3058
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3059
- const len1 = WASM_VECTOR_LEN;
3060
- const ret = wasm.rmvvideo_new(ptr0, len0, ptr1, len1);
3061
- return RmvVideo.__wrap(ret);
3062
- }
3063
- /**
3064
- */
3065
- parse_video() {
3066
- wasm.rmvvideo_parse_video(this.__wbg_ptr);
3067
- }
3068
- /**
3069
- */
3070
- analyse() {
3071
- wasm.rmvvideo_analyse(this.__wbg_ptr);
3072
- }
3073
- /**
3074
- * @returns {Uint8Array}
3075
- */
3076
- get get_raw_data() {
3077
- try {
3078
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3079
- wasm.rmvvideo_get_raw_data(retptr, this.__wbg_ptr);
3080
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3081
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3082
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3083
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3084
- return v1;
3085
- } finally {
3086
- wasm.__wbindgen_add_to_stack_pointer(16);
3087
- }
3088
- }
3089
- /**
3090
- * @returns {Uint8Array}
3091
- */
3092
- get get_software() {
3093
- try {
3094
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3095
- wasm.rmvvideo_get_software(retptr, this.__wbg_ptr);
3096
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3097
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3098
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3099
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3100
- return v1;
3101
- } finally {
3102
- wasm.__wbindgen_add_to_stack_pointer(16);
3103
- }
3104
- }
3105
- /**
3106
- * @returns {number}
3107
- */
3108
- get get_row() {
3109
- const ret = wasm.rmvvideo_get_row(this.__wbg_ptr);
3110
- return ret >>> 0;
3111
- }
3112
- /**
3113
- * @returns {number}
3114
- */
3115
- get get_column() {
3116
- const ret = wasm.rmvvideo_get_column(this.__wbg_ptr);
3117
- return ret >>> 0;
3118
- }
3119
- /**
3120
- * @returns {number}
3121
- */
3122
- get get_level() {
3123
- const ret = wasm.rmvvideo_get_level(this.__wbg_ptr);
3124
- return ret;
3125
- }
3126
- /**
3127
- * @returns {number}
3128
- */
3129
- get get_mode() {
3130
- const ret = wasm.rmvvideo_get_mode(this.__wbg_ptr);
3131
- return ret;
3132
- }
3133
- /**
3134
- * @returns {boolean}
3135
- */
3136
- get get_is_completed() {
3137
- const ret = wasm.rmvvideo_get_is_completed(this.__wbg_ptr);
3138
- return ret !== 0;
3139
- }
3140
- /**
3141
- * @returns {boolean}
3142
- */
3143
- get get_is_official() {
3144
- const ret = wasm.rmvvideo_get_is_official(this.__wbg_ptr);
3145
- return ret !== 0;
3146
- }
3147
- /**
3148
- * @returns {boolean}
3149
- */
3150
- get get_is_fair() {
3151
- const ret = wasm.rmvvideo_get_is_fair(this.__wbg_ptr);
3152
- return ret !== 0;
3153
- }
3154
- /**
3155
- * @returns {number}
3156
- */
3157
- get get_mine_num() {
3158
- const ret = wasm.rmvvideo_get_mine_num(this.__wbg_ptr);
3159
- return ret >>> 0;
3160
- }
3161
- /**
3162
- * @returns {Uint8Array}
3163
- */
3164
- get get_player_identifier() {
3165
- try {
3166
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3167
- wasm.rmvvideo_get_player_identifier(retptr, this.__wbg_ptr);
3168
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3169
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3170
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3171
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3172
- return v1;
3173
- } finally {
3174
- wasm.__wbindgen_add_to_stack_pointer(16);
3175
- }
3176
- }
3177
- /**
3178
- * @returns {Uint8Array}
3179
- */
3180
- get get_race_identifier() {
3181
- try {
3182
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3183
- wasm.rmvvideo_get_race_identifier(retptr, this.__wbg_ptr);
3184
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3185
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3186
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3187
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3188
- return v1;
3189
- } finally {
3190
- wasm.__wbindgen_add_to_stack_pointer(16);
3191
- }
3192
- }
3193
- /**
3194
- * @returns {Uint8Array}
3195
- */
3196
- get get_uniqueness_identifier() {
3197
- try {
3198
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3199
- wasm.rmvvideo_get_uniqueness_identifier(retptr, this.__wbg_ptr);
3200
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3201
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3202
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3203
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3204
- return v1;
3205
- } finally {
3206
- wasm.__wbindgen_add_to_stack_pointer(16);
3207
- }
3208
- }
3209
- /**
3210
- * @returns {Uint8Array}
3211
- */
3212
- get get_country() {
3213
- try {
3214
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3215
- wasm.rmvvideo_get_country(retptr, this.__wbg_ptr);
3216
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3217
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3218
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3219
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3220
- return v1;
3221
- } finally {
3222
- wasm.__wbindgen_add_to_stack_pointer(16);
3223
- }
3224
- }
3225
- /**
3226
- * @returns {Uint8Array}
3227
- */
3228
- get get_device_uuid() {
3229
- try {
3230
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3231
- wasm.rmvvideo_get_device_uuid(retptr, this.__wbg_ptr);
3232
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3233
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3234
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3235
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3236
- return v1;
3237
- } finally {
3238
- wasm.__wbindgen_add_to_stack_pointer(16);
3239
- }
3240
- }
3241
- /**
3242
- * @returns {number}
3243
- */
3244
- get get_bbbv() {
3245
- const ret = wasm.rmvvideo_get_bbbv(this.__wbg_ptr);
3246
- return ret >>> 0;
3247
- }
3248
- /**
3249
- * @returns {Uint8Array}
3250
- */
3251
- get get_start_time() {
3252
- try {
3253
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3254
- wasm.rmvvideo_get_start_time(retptr, this.__wbg_ptr);
3255
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3256
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3257
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3258
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3259
- return v1;
3260
- } finally {
3261
- wasm.__wbindgen_add_to_stack_pointer(16);
3262
- }
3263
- }
3264
- /**
3265
- * @returns {Uint8Array}
3266
- */
3267
- get get_end_time() {
3268
- try {
3269
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3270
- wasm.rmvvideo_get_end_time(retptr, this.__wbg_ptr);
3271
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3272
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3273
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3274
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3275
- return v1;
3276
- } finally {
3277
- wasm.__wbindgen_add_to_stack_pointer(16);
3278
- }
3279
- }
3280
- /**
3281
- * @returns {number}
3282
- */
3283
- get get_op() {
3284
- const ret = wasm.rmvvideo_get_op(this.__wbg_ptr);
3285
- return ret >>> 0;
3286
- }
3287
- /**
3288
- * @returns {number}
3289
- */
3290
- get get_isl() {
3291
- const ret = wasm.rmvvideo_get_isl(this.__wbg_ptr);
3292
- return ret >>> 0;
3293
- }
3294
- /**
3295
- * @returns {number}
3296
- */
3297
- get get_hizi() {
3298
- const ret = wasm.rmvvideo_get_hizi(this.__wbg_ptr);
3299
- return ret >>> 0;
3300
- }
3301
- /**
3302
- * @returns {number}
3303
- */
3304
- get get_cell0() {
3305
- const ret = wasm.rmvvideo_get_cell0(this.__wbg_ptr);
3306
- return ret >>> 0;
3307
- }
3308
- /**
3309
- * @returns {number}
3310
- */
3311
- get get_cell1() {
3312
- const ret = wasm.rmvvideo_get_cell1(this.__wbg_ptr);
3313
- return ret >>> 0;
3314
- }
3315
- /**
3316
- * @returns {number}
3317
- */
3318
- get get_cell2() {
3319
- const ret = wasm.rmvvideo_get_cell2(this.__wbg_ptr);
3320
- return ret >>> 0;
3321
- }
3322
- /**
3323
- * @returns {number}
3324
- */
3325
- get get_cell3() {
3326
- const ret = wasm.rmvvideo_get_cell3(this.__wbg_ptr);
3327
- return ret >>> 0;
3328
- }
3329
- /**
3330
- * @returns {number}
3331
- */
3332
- get get_cell4() {
3333
- const ret = wasm.rmvvideo_get_cell4(this.__wbg_ptr);
3334
- return ret >>> 0;
3335
- }
3336
- /**
3337
- * @returns {number}
3338
- */
3339
- get get_cell5() {
3340
- const ret = wasm.rmvvideo_get_cell5(this.__wbg_ptr);
3341
- return ret >>> 0;
3342
- }
3343
- /**
3344
- * @returns {number}
3345
- */
3346
- get get_cell6() {
3347
- const ret = wasm.rmvvideo_get_cell6(this.__wbg_ptr);
3348
- return ret >>> 0;
3349
- }
3350
- /**
3351
- * @returns {number}
3352
- */
3353
- get get_cell7() {
3354
- const ret = wasm.rmvvideo_get_cell7(this.__wbg_ptr);
3355
- return ret >>> 0;
3356
- }
3357
- /**
3358
- * @returns {number}
3359
- */
3360
- get get_cell8() {
3361
- const ret = wasm.rmvvideo_get_cell8(this.__wbg_ptr);
3362
- return ret >>> 0;
3363
- }
3364
- /**
3365
- * @returns {number}
3366
- */
3367
- get get_rtime() {
3368
- const ret = wasm.rmvvideo_get_rtime(this.__wbg_ptr);
3369
- return ret;
3370
- }
3371
- /**
3372
- * @returns {number}
3373
- */
3374
- get get_rtime_ms() {
3375
- const ret = wasm.rmvvideo_get_rtime_ms(this.__wbg_ptr);
3376
- return ret >>> 0;
3377
- }
3378
- /**
3379
- * @returns {number}
3380
- */
3381
- get get_etime() {
3382
- const ret = wasm.rmvvideo_get_etime(this.__wbg_ptr);
3383
- return ret;
3384
- }
3385
- /**
3386
- * @returns {number}
3387
- */
3388
- get get_video_start_time() {
3389
- const ret = wasm.rmvvideo_get_video_start_time(this.__wbg_ptr);
3390
- return ret;
3391
- }
3392
- /**
3393
- * @returns {number}
3394
- */
3395
- get get_video_end_time() {
3396
- const ret = wasm.rmvvideo_get_video_end_time(this.__wbg_ptr);
3397
- return ret;
3398
- }
3399
- /**
3400
- * @returns {number}
3401
- */
3402
- get get_bbbv_s() {
3403
- const ret = wasm.rmvvideo_get_bbbv_s(this.__wbg_ptr);
3404
- return ret;
3405
- }
3406
- /**
3407
- * @returns {number}
3408
- */
3409
- get get_stnb() {
3410
- const ret = wasm.rmvvideo_get_stnb(this.__wbg_ptr);
3411
- return ret;
3412
- }
3413
- /**
3414
- * @returns {number}
3415
- */
3416
- get get_rqp() {
3417
- const ret = wasm.rmvvideo_get_rqp(this.__wbg_ptr);
3418
- return ret;
3419
- }
3420
- /**
3421
- * @returns {number}
3422
- */
3423
- get get_left() {
3424
- const ret = wasm.rmvvideo_get_left(this.__wbg_ptr);
3425
- return ret >>> 0;
3426
- }
3427
- /**
3428
- * @returns {number}
3429
- */
3430
- get get_right() {
3431
- const ret = wasm.rmvvideo_get_right(this.__wbg_ptr);
3432
- return ret >>> 0;
3433
- }
3434
- /**
3435
- * @returns {number}
3436
- */
3437
- get get_double() {
3438
- const ret = wasm.rmvvideo_get_double(this.__wbg_ptr);
3439
- return ret >>> 0;
3440
- }
3441
- /**
3442
- * @returns {number}
3443
- */
3444
- get get_cl() {
3445
- const ret = wasm.rmvvideo_get_cl(this.__wbg_ptr);
3446
- return ret >>> 0;
3447
- }
3448
- /**
3449
- * @returns {number}
3450
- */
3451
- get get_flag() {
3452
- const ret = wasm.rmvvideo_get_flag(this.__wbg_ptr);
3453
- return ret >>> 0;
3454
- }
3455
- /**
3456
- * @returns {number}
3457
- */
3458
- get get_bbbv_solved() {
3459
- const ret = wasm.rmvvideo_get_bbbv_solved(this.__wbg_ptr);
3460
- return ret >>> 0;
3461
- }
3462
- /**
3463
- * @returns {number}
3464
- */
3465
- get get_lce() {
3466
- const ret = wasm.rmvvideo_get_lce(this.__wbg_ptr);
3467
- return ret >>> 0;
3468
- }
3469
- /**
3470
- * @returns {number}
3471
- */
3472
- get get_rce() {
3473
- const ret = wasm.rmvvideo_get_rce(this.__wbg_ptr);
3474
- return ret >>> 0;
3475
- }
3476
- /**
3477
- * @returns {number}
3478
- */
3479
- get get_dce() {
3480
- const ret = wasm.rmvvideo_get_dce(this.__wbg_ptr);
3481
- return ret >>> 0;
3482
- }
3483
- /**
3484
- * @returns {number}
3485
- */
3486
- get get_ce() {
3487
- const ret = wasm.rmvvideo_get_ce(this.__wbg_ptr);
3488
- return ret >>> 0;
3489
- }
3490
- /**
3491
- * @returns {number}
3492
- */
3493
- get get_left_s() {
3494
- const ret = wasm.rmvvideo_get_left_s(this.__wbg_ptr);
3495
- return ret;
3496
- }
3497
- /**
3498
- * @returns {number}
3499
- */
3500
- get get_right_s() {
3501
- const ret = wasm.rmvvideo_get_right_s(this.__wbg_ptr);
3502
- return ret;
3503
- }
3504
- /**
3505
- * @returns {number}
3506
- */
3507
- get get_double_s() {
3508
- const ret = wasm.rmvvideo_get_double_s(this.__wbg_ptr);
3509
- return ret;
3510
- }
3511
- /**
3512
- * @returns {number}
3513
- */
3514
- get get_cl_s() {
3515
- const ret = wasm.rmvvideo_get_cl_s(this.__wbg_ptr);
3516
- return ret;
3517
- }
3518
- /**
3519
- * @returns {number}
3520
- */
3521
- get get_flag_s() {
3522
- const ret = wasm.rmvvideo_get_flag_s(this.__wbg_ptr);
3523
- return ret;
3524
- }
3525
- /**
3526
- * @returns {number}
3527
- */
3528
- get get_path() {
3529
- const ret = wasm.rmvvideo_get_path(this.__wbg_ptr);
3530
- return ret;
3531
- }
3532
- /**
3533
- * @returns {number}
3534
- */
3535
- get get_ce_s() {
3536
- const ret = wasm.rmvvideo_get_ce_s(this.__wbg_ptr);
3537
- return ret;
3538
- }
3539
- /**
3540
- * @returns {number}
3541
- */
3542
- get get_ioe() {
3543
- const ret = wasm.rmvvideo_get_ioe(this.__wbg_ptr);
3544
- return ret;
3545
- }
3546
- /**
3547
- * @returns {number}
3548
- */
3549
- get get_thrp() {
3550
- const ret = wasm.rmvvideo_get_thrp(this.__wbg_ptr);
3551
- return ret;
3552
- }
3553
- /**
3554
- * @returns {number}
3555
- */
3556
- get get_corr() {
3557
- const ret = wasm.rmvvideo_get_corr(this.__wbg_ptr);
3558
- return ret;
3559
- }
3560
- /**
3561
- * @returns {number}
3562
- */
3563
- get get_events_len() {
3564
- const ret = wasm.rmvvideo_get_events_len(this.__wbg_ptr);
3565
- return ret >>> 0;
3566
- }
3567
- /**
3568
- * @param {number} index
3569
- * @returns {number}
3570
- */
3571
- events_time(index) {
3572
- const ret = wasm.rmvvideo_events_time(this.__wbg_ptr, index);
3573
- return ret;
3574
- }
3575
- /**
3576
- * @param {number} index
3577
- * @returns {string}
3578
- */
3579
- events_mouse(index) {
3580
- let deferred1_0;
3581
- let deferred1_1;
3582
- try {
3583
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3584
- wasm.rmvvideo_events_mouse(retptr, this.__wbg_ptr, index);
3585
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3586
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3587
- deferred1_0 = r0;
3588
- deferred1_1 = r1;
3589
- return getStringFromWasm0(r0, r1);
3590
- } finally {
3591
- wasm.__wbindgen_add_to_stack_pointer(16);
3592
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3593
- }
3594
- }
3595
- /**
3596
- * @param {number} index
3597
- * @returns {number}
3598
- */
3599
- events_x(index) {
3600
- const ret = wasm.rmvvideo_events_x(this.__wbg_ptr, index);
3601
- return ret;
3602
- }
3603
- /**
3604
- * @param {number} index
3605
- * @returns {number}
3606
- */
3607
- events_y(index) {
3608
- const ret = wasm.rmvvideo_events_y(this.__wbg_ptr, index);
3609
- return ret;
3610
- }
3611
- /**
3612
- * @param {number} index
3613
- * @returns {number}
3614
- */
3615
- events_useful_level(index) {
3616
- const ret = wasm.rmvvideo_events_useful_level(this.__wbg_ptr, index);
3617
- return ret;
3618
- }
3619
- /**
3620
- * @param {number} index
3621
- * @returns {number}
3622
- */
3623
- events_mouse_state(index) {
3624
- const ret = wasm.rmvvideo_events_mouse_state(this.__wbg_ptr, index);
3625
- return ret >>> 0;
3626
- }
3627
- /**
3628
- * @returns {number}
3629
- */
3630
- get get_current_event_id() {
3631
- const ret = wasm.rmvvideo_get_current_event_id(this.__wbg_ptr);
3632
- return ret >>> 0;
3633
- }
3634
- /**
3635
- * @param {number} id
3636
- */
3637
- set current_event_id(id) {
3638
- wasm.rmvvideo_set_current_event_id(this.__wbg_ptr, id);
3639
- }
3640
- /**
3641
- * @returns {string}
3642
- */
3643
- get get_game_board() {
3644
- let deferred1_0;
3645
- let deferred1_1;
3646
- try {
3647
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3648
- wasm.rmvvideo_get_game_board(retptr, this.__wbg_ptr);
3649
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3650
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3651
- deferred1_0 = r0;
3652
- deferred1_1 = r1;
3653
- return getStringFromWasm0(r0, r1);
3654
- } finally {
3655
- wasm.__wbindgen_add_to_stack_pointer(16);
3656
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3657
- }
3658
- }
3659
- /**
3660
- * @returns {string}
3661
- */
3662
- get get_game_board_poss() {
3663
- let deferred1_0;
3664
- let deferred1_1;
3665
- try {
3666
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3667
- wasm.rmvvideo_get_game_board_poss(retptr, this.__wbg_ptr);
3668
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3669
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3670
- deferred1_0 = r0;
3671
- deferred1_1 = r1;
3672
- return getStringFromWasm0(r0, r1);
3673
- } finally {
3674
- wasm.__wbindgen_add_to_stack_pointer(16);
3675
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3676
- }
3677
- }
3678
- /**
3679
- * @returns {number}
3680
- */
3681
- get get_mouse_state() {
3682
- const ret = wasm.rmvvideo_get_mouse_state(this.__wbg_ptr);
3683
- return ret >>> 0;
3684
- }
3685
- /**
3686
- * 局面状态
3687
- * @returns {number}
3688
- */
3689
- get get_game_board_state() {
3690
- const ret = wasm.rmvvideo_get_game_board_state(this.__wbg_ptr);
3691
- return ret >>> 0;
3692
- }
3693
- /**
3694
- * 返回当前光标的位置,播放录像用
3695
- * @returns {CursorPos}
3696
- */
3697
- get get_x_y() {
3698
- const ret = wasm.rmvvideo_get_x_y(this.__wbg_ptr);
3699
- return CursorPos.__wrap(ret);
3700
- }
3701
- /**
3702
- * @returns {Uint8Array}
3703
- */
3704
- get get_checksum() {
3705
- try {
3706
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3707
- wasm.rmvvideo_get_checksum(retptr, this.__wbg_ptr);
3708
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3709
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3710
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3711
- wasm.__wbindgen_free(r0, r1 * 1, 1);
3712
- return v1;
3713
- } finally {
3714
- wasm.__wbindgen_add_to_stack_pointer(16);
3715
- }
3716
- }
3717
- /**
3718
- * @returns {number}
3719
- */
3720
- get get_pix_size() {
3721
- const ret = wasm.rmvvideo_get_pix_size(this.__wbg_ptr);
3722
- return ret;
3723
- }
3724
- /**
3725
- * @param {number} time
3726
- */
3727
- set current_time(time) {
3728
- wasm.rmvvideo_set_current_time(this.__wbg_ptr, time);
3729
- }
3730
- /**
3731
- * @returns {number}
3732
- */
3733
- is_valid() {
3734
- const ret = wasm.rmvvideo_is_valid(this.__wbg_ptr);
3735
- return ret;
3736
- }
3737
- }
3738
- module.exports.RmvVideo = RmvVideo;
3739
-
3740
- const TimePeriodFinalization = (typeof FinalizationRegistry === 'undefined')
3741
- ? { register: () => {}, unregister: () => {} }
3742
- : new FinalizationRegistry(ptr => wasm.__wbg_timeperiod_free(ptr >>> 0, 1));
3743
- /**
3744
- */
3745
- class TimePeriod {
3746
-
3747
- static __wrap(ptr) {
3748
- ptr = ptr >>> 0;
3749
- const obj = Object.create(TimePeriod.prototype);
3750
- obj.__wbg_ptr = ptr;
3751
- TimePeriodFinalization.register(obj, obj.__wbg_ptr, obj);
3752
- return obj;
3753
- }
3754
-
3755
- __destroy_into_raw() {
3756
- const ptr = this.__wbg_ptr;
3757
- this.__wbg_ptr = 0;
3758
- TimePeriodFinalization.unregister(this);
3759
- return ptr;
3760
- }
3761
-
3762
- free() {
3763
- const ptr = this.__destroy_into_raw();
3764
- wasm.__wbg_timeperiod_free(ptr, 0);
3765
- }
3766
- /**
3767
- * @returns {string}
3768
- */
3769
- get start_time() {
3770
- let deferred1_0;
3771
- let deferred1_1;
3772
- try {
3773
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3774
- wasm.__wbg_get_timeperiod_start_time(retptr, this.__wbg_ptr);
3775
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3776
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3777
- deferred1_0 = r0;
3778
- deferred1_1 = r1;
3779
- return getStringFromWasm0(r0, r1);
3780
- } finally {
3781
- wasm.__wbindgen_add_to_stack_pointer(16);
3782
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3783
- }
3784
- }
3785
- /**
3786
- * @param {string} arg0
3787
- */
3788
- set start_time(arg0) {
3789
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3790
- const len0 = WASM_VECTOR_LEN;
3791
- wasm.__wbg_set_timeperiod_start_time(this.__wbg_ptr, ptr0, len0);
3792
- }
3793
- /**
3794
- * @returns {string}
3795
- */
3796
- get end_time() {
3797
- let deferred1_0;
3798
- let deferred1_1;
3799
- try {
3800
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3801
- wasm.__wbg_get_timeperiod_end_time(retptr, this.__wbg_ptr);
3802
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3803
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3804
- deferred1_0 = r0;
3805
- deferred1_1 = r1;
3806
- return getStringFromWasm0(r0, r1);
3807
- } finally {
3808
- wasm.__wbindgen_add_to_stack_pointer(16);
3809
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3810
- }
3811
- }
3812
- /**
3813
- * @param {string} arg0
3814
- */
3815
- set end_time(arg0) {
3816
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3817
- const len0 = WASM_VECTOR_LEN;
3818
- wasm.__wbg_set_timeperiod_end_time(this.__wbg_ptr, ptr0, len0);
3819
- }
3820
- }
3821
- module.exports.TimePeriod = TimePeriod;
3822
-
3823
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
3824
- const ret = new Error();
3825
- return addHeapObject(ret);
3826
- };
3827
-
3828
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3829
- const ret = getObject(arg1).stack;
3830
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3831
- const len1 = WASM_VECTOR_LEN;
3832
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3833
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3834
- };
3835
-
3836
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3837
- let deferred0_0;
3838
- let deferred0_1;
3839
- try {
3840
- deferred0_0 = arg0;
3841
- deferred0_1 = arg1;
3842
- console.error(getStringFromWasm0(arg0, arg1));
3843
- } finally {
3844
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3845
- }
3846
- };
3847
-
3848
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
3849
- takeObject(arg0);
3850
- };
3851
-
3852
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
3853
- const ret = getObject(arg0).crypto;
3854
- return addHeapObject(ret);
3855
- };
3856
-
3857
- module.exports.__wbindgen_is_object = function(arg0) {
3858
- const val = getObject(arg0);
3859
- const ret = typeof(val) === 'object' && val !== null;
3860
- return ret;
3861
- };
3862
-
3863
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
3864
- const ret = getObject(arg0).process;
3865
- return addHeapObject(ret);
3866
- };
3867
-
3868
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
3869
- const ret = getObject(arg0).versions;
3870
- return addHeapObject(ret);
3871
- };
3872
-
3873
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
3874
- const ret = getObject(arg0).node;
3875
- return addHeapObject(ret);
3876
- };
3877
-
3878
- module.exports.__wbindgen_is_string = function(arg0) {
3879
- const ret = typeof(getObject(arg0)) === 'string';
3880
- return ret;
3881
- };
3882
-
3883
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
3884
- const ret = module.require;
3885
- return addHeapObject(ret);
3886
- }, arguments) };
3887
-
3888
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
3889
- const ret = getStringFromWasm0(arg0, arg1);
3890
- return addHeapObject(ret);
3891
- };
3892
-
3893
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
3894
- const ret = getObject(arg0).msCrypto;
3895
- return addHeapObject(ret);
3896
- };
3897
-
3898
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
3899
- getObject(arg0).randomFillSync(takeObject(arg1));
3900
- }, arguments) };
3901
-
3902
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
3903
- getObject(arg0).getRandomValues(getObject(arg1));
3904
- }, arguments) };
3905
-
3906
- module.exports.__wbindgen_is_function = function(arg0) {
3907
- const ret = typeof(getObject(arg0)) === 'function';
3908
- return ret;
3909
- };
3910
-
3911
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
3912
- const ret = new Function(getStringFromWasm0(arg0, arg1));
3913
- return addHeapObject(ret);
3914
- };
3915
-
3916
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
3917
- const ret = getObject(arg0).call(getObject(arg1));
3918
- return addHeapObject(ret);
3919
- }, arguments) };
3920
-
3921
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
3922
- const ret = self.self;
3923
- return addHeapObject(ret);
3924
- }, arguments) };
3925
-
3926
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
3927
- const ret = window.window;
3928
- return addHeapObject(ret);
3929
- }, arguments) };
3930
-
3931
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
3932
- const ret = globalThis.globalThis;
3933
- return addHeapObject(ret);
3934
- }, arguments) };
3935
-
3936
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
3937
- const ret = global.global;
3938
- return addHeapObject(ret);
3939
- }, arguments) };
3940
-
3941
- module.exports.__wbindgen_is_undefined = function(arg0) {
3942
- const ret = getObject(arg0) === undefined;
3943
- return ret;
3944
- };
3945
-
3946
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
3947
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
3948
- return addHeapObject(ret);
3949
- }, arguments) };
3950
-
3951
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
3952
- const ret = getObject(arg0).buffer;
3953
- return addHeapObject(ret);
3954
- };
3955
-
3956
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
3957
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3958
- return addHeapObject(ret);
3959
- };
3960
-
3961
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
3962
- const ret = new Uint8Array(getObject(arg0));
3963
- return addHeapObject(ret);
3964
- };
3965
-
3966
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
3967
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3968
- };
3969
-
3970
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
3971
- const ret = new Uint8Array(arg0 >>> 0);
3972
- return addHeapObject(ret);
3973
- };
3974
-
3975
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
3976
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
3977
- return addHeapObject(ret);
3978
- };
3979
-
3980
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
3981
- const ret = getObject(arg0);
3982
- return addHeapObject(ret);
3983
- };
3984
-
3985
- module.exports.__wbindgen_throw = function(arg0, arg1) {
3986
- throw new Error(getStringFromWasm0(arg0, arg1));
3987
- };
3988
-
3989
- module.exports.__wbindgen_memory = function() {
3990
- const ret = wasm.memory;
3991
- return addHeapObject(ret);
3992
- };
3993
-
3994
- const path = require('path').join(__dirname, 'ms_toollib_bg.wasm');
3995
- const bytes = require('fs').readFileSync(path);
3996
-
3997
- const wasmModule = new WebAssembly.Module(bytes);
3998
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
3999
- wasm = wasmInstance.exports;
4000
- module.exports.__wasm = wasm;
4001
-
2
+ import * as wasm from "./ms_toollib_bg.wasm";
3
+ import { __wbg_set_wasm } from "./ms_toollib_bg.js";
4
+ __wbg_set_wasm(wasm);
5
+ export * from "./ms_toollib_bg.js";