@kuncat/avoidant 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/components/AvoidantGame.svelte +3 -2
- package/dist/components/GameHistory.svelte +1 -1
- package/dist/components/MatchResults.svelte +1 -2
- package/dist/components/MatchResults.svelte.d.ts +0 -1
- package/dist/components/MultiplayerGame.svelte +4 -4
- package/dist/multiplayer/client.d.ts +4 -2
- package/dist/multiplayer/client.js +10 -2
- package/dist/multiplayer/invitations.d.ts +2 -0
- package/dist/multiplayer/invitations.js +23 -0
- package/dist/paraglide/messages/_index.d.ts +0 -1
- package/dist/paraglide/messages/_index.js +0 -1
- package/dist/paraglide/messages/text_waiting_lobby.d.ts +1 -1
- package/dist/paraglide/messages/text_waiting_lobby.js +2 -2
- package/dist/styles/global.css +2 -0
- package/dist/wasm/avoidant_wasm.d.ts +3 -208
- package/dist/wasm/avoidant_wasm.js +20 -1101
- package/dist/wasm/avoidant_wasm_bg.wasm +0 -0
- package/dist/wasm/avoidant_wasm_bg.wasm.d.ts +3 -65
- package/package.json +1 -1
- package/dist/paraglide/messages/field_relay_servers.d.ts +0 -16
- package/dist/paraglide/messages/field_relay_servers.js +0 -29
|
@@ -3,124 +3,6 @@ import * as import1 from "svelte/store"
|
|
|
3
3
|
import * as import2 from "svelte/store"
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
export class Channel {
|
|
7
|
-
static __wrap(ptr) {
|
|
8
|
-
const obj = Object.create(Channel.prototype);
|
|
9
|
-
obj.__wbg_ptr = ptr;
|
|
10
|
-
ChannelFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11
|
-
return obj;
|
|
12
|
-
}
|
|
13
|
-
__destroy_into_raw() {
|
|
14
|
-
const ptr = this.__wbg_ptr;
|
|
15
|
-
this.__wbg_ptr = 0;
|
|
16
|
-
ChannelFinalization.unregister(this);
|
|
17
|
-
return ptr;
|
|
18
|
-
}
|
|
19
|
-
free() {
|
|
20
|
-
const ptr = this.__destroy_into_raw();
|
|
21
|
-
wasm.__wbg_channel_free(ptr, 0);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @returns {string}
|
|
25
|
-
*/
|
|
26
|
-
id() {
|
|
27
|
-
let deferred1_0;
|
|
28
|
-
let deferred1_1;
|
|
29
|
-
try {
|
|
30
|
-
const ret = wasm.channel_id(this.__wbg_ptr);
|
|
31
|
-
deferred1_0 = ret[0];
|
|
32
|
-
deferred1_1 = ret[1];
|
|
33
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
34
|
-
} finally {
|
|
35
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @returns {string[]}
|
|
40
|
-
*/
|
|
41
|
-
neighbors() {
|
|
42
|
-
const ret = wasm.channel_neighbors(this.__wbg_ptr);
|
|
43
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
44
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
45
|
-
return v1;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @returns {ReadableStream}
|
|
49
|
-
*/
|
|
50
|
-
get receiver() {
|
|
51
|
-
const ret = wasm.channel_receiver(this.__wbg_ptr);
|
|
52
|
-
return ret;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @returns {ChannelSender}
|
|
56
|
-
*/
|
|
57
|
-
get sender() {
|
|
58
|
-
const ret = wasm.channel_sender(this.__wbg_ptr);
|
|
59
|
-
return ChannelSender.__wrap(ret);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @param {any} opts
|
|
63
|
-
* @returns {string}
|
|
64
|
-
*/
|
|
65
|
-
ticket(opts) {
|
|
66
|
-
let deferred2_0;
|
|
67
|
-
let deferred2_1;
|
|
68
|
-
try {
|
|
69
|
-
const ret = wasm.channel_ticket(this.__wbg_ptr, opts);
|
|
70
|
-
var ptr1 = ret[0];
|
|
71
|
-
var len1 = ret[1];
|
|
72
|
-
if (ret[3]) {
|
|
73
|
-
ptr1 = 0; len1 = 0;
|
|
74
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
75
|
-
}
|
|
76
|
-
deferred2_0 = ptr1;
|
|
77
|
-
deferred2_1 = len1;
|
|
78
|
-
return getStringFromWasm0(ptr1, len1);
|
|
79
|
-
} finally {
|
|
80
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
|
|
85
|
-
|
|
86
|
-
export class ChannelSender {
|
|
87
|
-
static __wrap(ptr) {
|
|
88
|
-
const obj = Object.create(ChannelSender.prototype);
|
|
89
|
-
obj.__wbg_ptr = ptr;
|
|
90
|
-
ChannelSenderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
91
|
-
return obj;
|
|
92
|
-
}
|
|
93
|
-
__destroy_into_raw() {
|
|
94
|
-
const ptr = this.__wbg_ptr;
|
|
95
|
-
this.__wbg_ptr = 0;
|
|
96
|
-
ChannelSenderFinalization.unregister(this);
|
|
97
|
-
return ptr;
|
|
98
|
-
}
|
|
99
|
-
free() {
|
|
100
|
-
const ptr = this.__destroy_into_raw();
|
|
101
|
-
wasm.__wbg_channelsender_free(ptr, 0);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @param {string} text
|
|
105
|
-
* @returns {Promise<void>}
|
|
106
|
-
*/
|
|
107
|
-
broadcast(text) {
|
|
108
|
-
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
109
|
-
const len0 = WASM_VECTOR_LEN;
|
|
110
|
-
const ret = wasm.channelsender_broadcast(this.__wbg_ptr, ptr0, len0);
|
|
111
|
-
return ret;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @param {string} nickname
|
|
115
|
-
*/
|
|
116
|
-
set_nickame(nickname) {
|
|
117
|
-
const ptr0 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
118
|
-
const len0 = WASM_VECTOR_LEN;
|
|
119
|
-
wasm.channelsender_set_nickame(this.__wbg_ptr, ptr0, len0);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
if (Symbol.dispose) ChannelSender.prototype[Symbol.dispose] = ChannelSender.prototype.free;
|
|
123
|
-
|
|
124
6
|
export class GameState {
|
|
125
7
|
__destroy_into_raw() {
|
|
126
8
|
const ptr = this.__wbg_ptr;
|
|
@@ -174,18 +56,6 @@ export class GameState {
|
|
|
174
56
|
const ret = wasm.gamestate_elevationMin(this.__wbg_ptr);
|
|
175
57
|
return ret;
|
|
176
58
|
}
|
|
177
|
-
/**
|
|
178
|
-
* @returns {string | undefined}
|
|
179
|
-
*/
|
|
180
|
-
get endpointId() {
|
|
181
|
-
const ret = wasm.gamestate_endpointId(this.__wbg_ptr);
|
|
182
|
-
let v1;
|
|
183
|
-
if (ret[0] !== 0) {
|
|
184
|
-
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
185
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
186
|
-
}
|
|
187
|
-
return v1;
|
|
188
|
-
}
|
|
189
59
|
/**
|
|
190
60
|
* @param {number} index
|
|
191
61
|
* @param {number} x
|
|
@@ -198,81 +68,6 @@ export class GameState {
|
|
|
198
68
|
throw takeFromExternrefTable0(ret[0]);
|
|
199
69
|
}
|
|
200
70
|
}
|
|
201
|
-
/**
|
|
202
|
-
* @returns {boolean}
|
|
203
|
-
*/
|
|
204
|
-
get hasNetworkNode() {
|
|
205
|
-
const ret = wasm.gamestate_hasNetworkNode(this.__wbg_ptr);
|
|
206
|
-
return ret !== 0;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* @param {string} nickname
|
|
210
|
-
* @returns {Promise<string>}
|
|
211
|
-
*/
|
|
212
|
-
invite(nickname) {
|
|
213
|
-
const ptr0 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
214
|
-
const len0 = WASM_VECTOR_LEN;
|
|
215
|
-
const ret = wasm.gamestate_invite(this.__wbg_ptr, ptr0, len0);
|
|
216
|
-
return ret;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Spawn a network node and join the gossip topic described by `ticket`.
|
|
220
|
-
*
|
|
221
|
-
* The caller is responsible for having populated the map cells (typically
|
|
222
|
-
* via [`GameState::apply_map_cells`]) before invoking this; the function
|
|
223
|
-
* waits for an authoritative snapshot before allowing gameplay.
|
|
224
|
-
* @param {string} ticket
|
|
225
|
-
* @param {string} nickname
|
|
226
|
-
* @returns {Promise<void>}
|
|
227
|
-
*/
|
|
228
|
-
joinAsPeer(ticket, nickname) {
|
|
229
|
-
const ptr0 = passStringToWasm0(ticket, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
230
|
-
const len0 = WASM_VECTOR_LEN;
|
|
231
|
-
const ptr1 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
-
const len1 = WASM_VECTOR_LEN;
|
|
233
|
-
const ret = wasm.gamestate_joinAsPeer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
234
|
-
return ret;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @returns {number | undefined}
|
|
238
|
-
*/
|
|
239
|
-
get lastInboundMutationMs() {
|
|
240
|
-
const ret = wasm.gamestate_lastInboundMutationMs(this.__wbg_ptr);
|
|
241
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* @returns {number | undefined}
|
|
245
|
-
*/
|
|
246
|
-
get lastOutboundMutationMs() {
|
|
247
|
-
const ret = wasm.gamestate_lastOutboundMutationMs(this.__wbg_ptr);
|
|
248
|
-
return ret[0] === 0 ? undefined : ret[1];
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* @returns {boolean}
|
|
252
|
-
*/
|
|
253
|
-
get networkListenerStarted() {
|
|
254
|
-
const ret = wasm.gamestate_networkListenerStarted(this.__wbg_ptr);
|
|
255
|
-
return ret !== 0;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @returns {NetworkPeerStatus[]}
|
|
259
|
-
*/
|
|
260
|
-
get networkPeers() {
|
|
261
|
-
const ret = wasm.gamestate_networkPeers(this.__wbg_ptr);
|
|
262
|
-
if (ret[3]) {
|
|
263
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
264
|
-
}
|
|
265
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
266
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
267
|
-
return v1;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* @returns {Readable<NetworkSnapshot>}
|
|
271
|
-
*/
|
|
272
|
-
get networkSnapshot() {
|
|
273
|
-
const ret = wasm.gamestate_networkSnapshot(this.__wbg_ptr);
|
|
274
|
-
return ret;
|
|
275
|
-
}
|
|
276
71
|
/**
|
|
277
72
|
* @param {GameOptions} options
|
|
278
73
|
*/
|
|
@@ -285,19 +80,6 @@ export class GameState {
|
|
|
285
80
|
GameStateFinalization.register(this, this.__wbg_ptr, this);
|
|
286
81
|
return this;
|
|
287
82
|
}
|
|
288
|
-
/**
|
|
289
|
-
* @param {string} ticket
|
|
290
|
-
* @returns {GameOptions}
|
|
291
|
-
*/
|
|
292
|
-
static optionsFromTicket(ticket) {
|
|
293
|
-
const ptr0 = passStringToWasm0(ticket, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
294
|
-
const len0 = WASM_VECTOR_LEN;
|
|
295
|
-
const ret = wasm.gamestate_optionsFromTicket(ptr0, len0);
|
|
296
|
-
if (ret[2]) {
|
|
297
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
298
|
-
}
|
|
299
|
-
return takeFromExternrefTable0(ret[0]);
|
|
300
|
-
}
|
|
301
83
|
/**
|
|
302
84
|
* @param {number} index
|
|
303
85
|
* @param {number} x
|
|
@@ -318,18 +100,6 @@ export class GameState {
|
|
|
318
100
|
const ret = wasm.gamestate_score(this.__wbg_ptr);
|
|
319
101
|
return ret;
|
|
320
102
|
}
|
|
321
|
-
/**
|
|
322
|
-
* @returns {string | undefined}
|
|
323
|
-
*/
|
|
324
|
-
get topicId() {
|
|
325
|
-
const ret = wasm.gamestate_topicId(this.__wbg_ptr);
|
|
326
|
-
let v1;
|
|
327
|
-
if (ret[0] !== 0) {
|
|
328
|
-
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
329
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
330
|
-
}
|
|
331
|
-
return v1;
|
|
332
|
-
}
|
|
333
103
|
/**
|
|
334
104
|
* @returns {UiState}
|
|
335
105
|
*/
|
|
@@ -340,301 +110,6 @@ export class GameState {
|
|
|
340
110
|
}
|
|
341
111
|
if (Symbol.dispose) GameState.prototype[Symbol.dispose] = GameState.prototype.free;
|
|
342
112
|
|
|
343
|
-
export class IntoUnderlyingByteSource {
|
|
344
|
-
__destroy_into_raw() {
|
|
345
|
-
const ptr = this.__wbg_ptr;
|
|
346
|
-
this.__wbg_ptr = 0;
|
|
347
|
-
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
348
|
-
return ptr;
|
|
349
|
-
}
|
|
350
|
-
free() {
|
|
351
|
-
const ptr = this.__destroy_into_raw();
|
|
352
|
-
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @returns {number}
|
|
356
|
-
*/
|
|
357
|
-
get autoAllocateChunkSize() {
|
|
358
|
-
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
359
|
-
return ret >>> 0;
|
|
360
|
-
}
|
|
361
|
-
cancel() {
|
|
362
|
-
const ptr = this.__destroy_into_raw();
|
|
363
|
-
wasm.intounderlyingbytesource_cancel(ptr);
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* @param {ReadableByteStreamController} controller
|
|
367
|
-
* @returns {Promise<any>}
|
|
368
|
-
*/
|
|
369
|
-
pull(controller) {
|
|
370
|
-
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
371
|
-
return ret;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* @param {ReadableByteStreamController} controller
|
|
375
|
-
*/
|
|
376
|
-
start(controller) {
|
|
377
|
-
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* @returns {ReadableStreamType}
|
|
381
|
-
*/
|
|
382
|
-
get type() {
|
|
383
|
-
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
384
|
-
return __wbindgen_enum_ReadableStreamType[ret];
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
388
|
-
|
|
389
|
-
class IntoUnderlyingByteSource2 {
|
|
390
|
-
__destroy_into_raw() {
|
|
391
|
-
const ptr = this.__wbg_ptr;
|
|
392
|
-
this.__wbg_ptr = 0;
|
|
393
|
-
IntoUnderlyingByteSource2Finalization.unregister(this);
|
|
394
|
-
return ptr;
|
|
395
|
-
}
|
|
396
|
-
free() {
|
|
397
|
-
const ptr = this.__destroy_into_raw();
|
|
398
|
-
wasm.__wbg_intounderlyingbytesource2_free(ptr, 0);
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* @returns {number}
|
|
402
|
-
*/
|
|
403
|
-
get autoAllocateChunkSize() {
|
|
404
|
-
const ret = wasm.intounderlyingbytesource2_autoAllocateChunkSize(this.__wbg_ptr);
|
|
405
|
-
return ret >>> 0;
|
|
406
|
-
}
|
|
407
|
-
cancel() {
|
|
408
|
-
const ptr = this.__destroy_into_raw();
|
|
409
|
-
wasm.intounderlyingbytesource2_cancel(ptr);
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* @param {ReadableByteStreamController} controller
|
|
413
|
-
* @returns {Promise<any>}
|
|
414
|
-
*/
|
|
415
|
-
pull(controller) {
|
|
416
|
-
const ret = wasm.intounderlyingbytesource2_pull(this.__wbg_ptr, controller);
|
|
417
|
-
return ret;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* @param {ReadableByteStreamController} controller
|
|
421
|
-
*/
|
|
422
|
-
start(controller) {
|
|
423
|
-
wasm.intounderlyingbytesource2_start(this.__wbg_ptr, controller);
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* @returns {ReadableStreamType}
|
|
427
|
-
*/
|
|
428
|
-
get type() {
|
|
429
|
-
const ret = wasm.intounderlyingbytesource2_type(this.__wbg_ptr);
|
|
430
|
-
return __wbindgen_enum_ReadableStreamType[ret];
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
if (Symbol.dispose) IntoUnderlyingByteSource2.prototype[Symbol.dispose] = IntoUnderlyingByteSource2.prototype.free;
|
|
434
|
-
|
|
435
|
-
export class IntoUnderlyingSink {
|
|
436
|
-
__destroy_into_raw() {
|
|
437
|
-
const ptr = this.__wbg_ptr;
|
|
438
|
-
this.__wbg_ptr = 0;
|
|
439
|
-
IntoUnderlyingSinkFinalization.unregister(this);
|
|
440
|
-
return ptr;
|
|
441
|
-
}
|
|
442
|
-
free() {
|
|
443
|
-
const ptr = this.__destroy_into_raw();
|
|
444
|
-
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* @param {any} reason
|
|
448
|
-
* @returns {Promise<any>}
|
|
449
|
-
*/
|
|
450
|
-
abort(reason) {
|
|
451
|
-
const ptr = this.__destroy_into_raw();
|
|
452
|
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
453
|
-
return ret;
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* @returns {Promise<any>}
|
|
457
|
-
*/
|
|
458
|
-
close() {
|
|
459
|
-
const ptr = this.__destroy_into_raw();
|
|
460
|
-
const ret = wasm.intounderlyingsink_close(ptr);
|
|
461
|
-
return ret;
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* @param {any} chunk
|
|
465
|
-
* @returns {Promise<any>}
|
|
466
|
-
*/
|
|
467
|
-
write(chunk) {
|
|
468
|
-
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
469
|
-
return ret;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
473
|
-
|
|
474
|
-
class IntoUnderlyingSink2 {
|
|
475
|
-
__destroy_into_raw() {
|
|
476
|
-
const ptr = this.__wbg_ptr;
|
|
477
|
-
this.__wbg_ptr = 0;
|
|
478
|
-
IntoUnderlyingSink2Finalization.unregister(this);
|
|
479
|
-
return ptr;
|
|
480
|
-
}
|
|
481
|
-
free() {
|
|
482
|
-
const ptr = this.__destroy_into_raw();
|
|
483
|
-
wasm.__wbg_intounderlyingsink2_free(ptr, 0);
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* @param {any} reason
|
|
487
|
-
* @returns {Promise<any>}
|
|
488
|
-
*/
|
|
489
|
-
abort(reason) {
|
|
490
|
-
const ptr = this.__destroy_into_raw();
|
|
491
|
-
const ret = wasm.intounderlyingsink2_abort(ptr, reason);
|
|
492
|
-
return ret;
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* @returns {Promise<any>}
|
|
496
|
-
*/
|
|
497
|
-
close() {
|
|
498
|
-
const ptr = this.__destroy_into_raw();
|
|
499
|
-
const ret = wasm.intounderlyingsink2_close(ptr);
|
|
500
|
-
return ret;
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* @param {any} chunk
|
|
504
|
-
* @returns {Promise<any>}
|
|
505
|
-
*/
|
|
506
|
-
write(chunk) {
|
|
507
|
-
const ret = wasm.intounderlyingsink2_write(this.__wbg_ptr, chunk);
|
|
508
|
-
return ret;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
if (Symbol.dispose) IntoUnderlyingSink2.prototype[Symbol.dispose] = IntoUnderlyingSink2.prototype.free;
|
|
512
|
-
|
|
513
|
-
export class IntoUnderlyingSource {
|
|
514
|
-
__destroy_into_raw() {
|
|
515
|
-
const ptr = this.__wbg_ptr;
|
|
516
|
-
this.__wbg_ptr = 0;
|
|
517
|
-
IntoUnderlyingSourceFinalization.unregister(this);
|
|
518
|
-
return ptr;
|
|
519
|
-
}
|
|
520
|
-
free() {
|
|
521
|
-
const ptr = this.__destroy_into_raw();
|
|
522
|
-
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
523
|
-
}
|
|
524
|
-
cancel() {
|
|
525
|
-
const ptr = this.__destroy_into_raw();
|
|
526
|
-
wasm.intounderlyingsource_cancel(ptr);
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* @param {ReadableStreamDefaultController} controller
|
|
530
|
-
* @returns {Promise<any>}
|
|
531
|
-
*/
|
|
532
|
-
pull(controller) {
|
|
533
|
-
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
534
|
-
return ret;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
538
|
-
|
|
539
|
-
class IntoUnderlyingSource2 {
|
|
540
|
-
static __wrap(ptr) {
|
|
541
|
-
const obj = Object.create(IntoUnderlyingSource2.prototype);
|
|
542
|
-
obj.__wbg_ptr = ptr;
|
|
543
|
-
IntoUnderlyingSource2Finalization.register(obj, obj.__wbg_ptr, obj);
|
|
544
|
-
return obj;
|
|
545
|
-
}
|
|
546
|
-
__destroy_into_raw() {
|
|
547
|
-
const ptr = this.__wbg_ptr;
|
|
548
|
-
this.__wbg_ptr = 0;
|
|
549
|
-
IntoUnderlyingSource2Finalization.unregister(this);
|
|
550
|
-
return ptr;
|
|
551
|
-
}
|
|
552
|
-
free() {
|
|
553
|
-
const ptr = this.__destroy_into_raw();
|
|
554
|
-
wasm.__wbg_intounderlyingsource2_free(ptr, 0);
|
|
555
|
-
}
|
|
556
|
-
cancel() {
|
|
557
|
-
const ptr = this.__destroy_into_raw();
|
|
558
|
-
wasm.intounderlyingsource2_cancel(ptr);
|
|
559
|
-
}
|
|
560
|
-
/**
|
|
561
|
-
* @param {ReadableStreamDefaultController} controller
|
|
562
|
-
* @returns {Promise<any>}
|
|
563
|
-
*/
|
|
564
|
-
pull(controller) {
|
|
565
|
-
const ret = wasm.intounderlyingsource2_pull(this.__wbg_ptr, controller);
|
|
566
|
-
return ret;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
if (Symbol.dispose) IntoUnderlyingSource2.prototype[Symbol.dispose] = IntoUnderlyingSource2.prototype.free;
|
|
570
|
-
|
|
571
|
-
export class NetworkNode {
|
|
572
|
-
static __wrap(ptr) {
|
|
573
|
-
const obj = Object.create(NetworkNode.prototype);
|
|
574
|
-
obj.__wbg_ptr = ptr;
|
|
575
|
-
NetworkNodeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
576
|
-
return obj;
|
|
577
|
-
}
|
|
578
|
-
__destroy_into_raw() {
|
|
579
|
-
const ptr = this.__wbg_ptr;
|
|
580
|
-
this.__wbg_ptr = 0;
|
|
581
|
-
NetworkNodeFinalization.unregister(this);
|
|
582
|
-
return ptr;
|
|
583
|
-
}
|
|
584
|
-
free() {
|
|
585
|
-
const ptr = this.__destroy_into_raw();
|
|
586
|
-
wasm.__wbg_networknode_free(ptr, 0);
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* @param {string} nickname
|
|
590
|
-
* @returns {Promise<Channel>}
|
|
591
|
-
*/
|
|
592
|
-
create(nickname) {
|
|
593
|
-
const ptr0 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
594
|
-
const len0 = WASM_VECTOR_LEN;
|
|
595
|
-
const ret = wasm.networknode_create(this.__wbg_ptr, ptr0, len0);
|
|
596
|
-
return ret;
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Returns the endpoint id of this node.
|
|
600
|
-
* @returns {string}
|
|
601
|
-
*/
|
|
602
|
-
endpointId() {
|
|
603
|
-
let deferred1_0;
|
|
604
|
-
let deferred1_1;
|
|
605
|
-
try {
|
|
606
|
-
const ret = wasm.networknode_endpointId(this.__wbg_ptr);
|
|
607
|
-
deferred1_0 = ret[0];
|
|
608
|
-
deferred1_1 = ret[1];
|
|
609
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
610
|
-
} finally {
|
|
611
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* @param {string} ticket
|
|
616
|
-
* @param {string} nickname
|
|
617
|
-
* @returns {Promise<Channel>}
|
|
618
|
-
*/
|
|
619
|
-
join(ticket, nickname) {
|
|
620
|
-
const ptr0 = passStringToWasm0(ticket, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
621
|
-
const len0 = WASM_VECTOR_LEN;
|
|
622
|
-
const ptr1 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
623
|
-
const len1 = WASM_VECTOR_LEN;
|
|
624
|
-
const ret = wasm.networknode_join(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
625
|
-
return ret;
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Spawns a gossip node.
|
|
629
|
-
* @returns {Promise<NetworkNode>}
|
|
630
|
-
*/
|
|
631
|
-
static spawn() {
|
|
632
|
-
const ret = wasm.networknode_spawn();
|
|
633
|
-
return ret;
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
if (Symbol.dispose) NetworkNode.prototype[Symbol.dispose] = NetworkNode.prototype.free;
|
|
637
|
-
|
|
638
113
|
export class Pulse {
|
|
639
114
|
static __wrap(ptr) {
|
|
640
115
|
const obj = Object.create(Pulse.prototype);
|
|
@@ -752,10 +227,6 @@ export function generateMapData(options) {
|
|
|
752
227
|
}
|
|
753
228
|
return takeFromExternrefTable0(ret[0]);
|
|
754
229
|
}
|
|
755
|
-
|
|
756
|
-
export function start() {
|
|
757
|
-
wasm.start();
|
|
758
|
-
}
|
|
759
230
|
function __wbg_get_imports() {
|
|
760
231
|
const import0 = {
|
|
761
232
|
__proto__: null,
|
|
@@ -813,10 +284,6 @@ function __wbg_get_imports() {
|
|
|
813
284
|
const ret = typeof(val) === 'object' && val !== null;
|
|
814
285
|
return ret;
|
|
815
286
|
},
|
|
816
|
-
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
|
|
817
|
-
const ret = typeof(arg0) === 'string';
|
|
818
|
-
return ret;
|
|
819
|
-
},
|
|
820
287
|
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
821
288
|
const ret = arg0 === undefined;
|
|
822
289
|
return ret;
|
|
@@ -843,125 +310,27 @@ function __wbg_get_imports() {
|
|
|
843
310
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
844
311
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
845
312
|
},
|
|
846
|
-
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
847
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
848
|
-
},
|
|
849
|
-
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
850
|
-
arg0._wbg_cb_unref();
|
|
851
|
-
},
|
|
852
|
-
__wbg_abort_334e7f918b7c5047: function(arg0, arg1) {
|
|
853
|
-
arg0.abort(arg1);
|
|
854
|
-
},
|
|
855
|
-
__wbg_abort_f78b99d80248bacb: function(arg0) {
|
|
856
|
-
arg0.abort();
|
|
857
|
-
},
|
|
858
|
-
__wbg_addEventListener_fea4294909151c06: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
859
|
-
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
860
|
-
}, arguments); },
|
|
861
|
-
__wbg_append_1938ed58fb5613b8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
862
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
863
|
-
}, arguments); },
|
|
864
|
-
__wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
|
|
865
|
-
const ret = arg0.arrayBuffer();
|
|
866
|
-
return ret;
|
|
867
|
-
}, arguments); },
|
|
868
|
-
__wbg_body_4e088733babc630d: function(arg0) {
|
|
869
|
-
const ret = arg0.body;
|
|
870
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
871
|
-
},
|
|
872
|
-
__wbg_buffer_56ec2905a66f58b9: function(arg0) {
|
|
873
|
-
const ret = arg0.buffer;
|
|
874
|
-
return ret;
|
|
875
|
-
},
|
|
876
|
-
__wbg_byobRequest_54f7ce41d584549a: function(arg0) {
|
|
877
|
-
const ret = arg0.byobRequest;
|
|
878
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
879
|
-
},
|
|
880
|
-
__wbg_byteLength_9f985b8373f1f3fe: function(arg0) {
|
|
881
|
-
const ret = arg0.byteLength;
|
|
882
|
-
return ret;
|
|
313
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
314
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
883
315
|
},
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
return ret;
|
|
316
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
317
|
+
arg0._wbg_cb_unref();
|
|
887
318
|
},
|
|
888
|
-
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
889
|
-
const ret = arg0.call(arg1, arg2);
|
|
890
|
-
return ret;
|
|
891
|
-
}, arguments); },
|
|
892
319
|
__wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
|
|
893
320
|
const ret = arg0.call(arg1);
|
|
894
321
|
return ret;
|
|
895
322
|
}, arguments); },
|
|
896
|
-
__wbg_cancel_7c2a08c8db4c73f3: function(arg0) {
|
|
897
|
-
const ret = arg0.cancel();
|
|
898
|
-
return ret;
|
|
899
|
-
},
|
|
900
|
-
__wbg_catch_92594c2d17f55f12: function(arg0, arg1) {
|
|
901
|
-
const ret = arg0.catch(arg1);
|
|
902
|
-
return ret;
|
|
903
|
-
},
|
|
904
|
-
__wbg_channel_new: function(arg0) {
|
|
905
|
-
const ret = Channel.__wrap(arg0);
|
|
906
|
-
return ret;
|
|
907
|
-
},
|
|
908
|
-
__wbg_clearTimeout_1daad5c6ee4fcd3b: function(arg0) {
|
|
909
|
-
const ret = clearTimeout(arg0);
|
|
910
|
-
return ret;
|
|
911
|
-
},
|
|
912
323
|
__wbg_clearTimeout_47a40e3be01ed7a3: function() { return handleError(function (arg0, arg1) {
|
|
913
324
|
arg0.clearTimeout(arg1);
|
|
914
325
|
}, arguments); },
|
|
915
|
-
__wbg_close_185286988f30f252: function() { return handleError(function (arg0) {
|
|
916
|
-
arg0.close();
|
|
917
|
-
}, arguments); },
|
|
918
|
-
__wbg_close_748f26698dabe269: function() { return handleError(function (arg0) {
|
|
919
|
-
arg0.close();
|
|
920
|
-
}, arguments); },
|
|
921
|
-
__wbg_close_d3ed56b5763be5ae: function() { return handleError(function (arg0) {
|
|
922
|
-
arg0.close();
|
|
923
|
-
}, arguments); },
|
|
924
|
-
__wbg_code_10178722c2b239d2: function(arg0) {
|
|
925
|
-
const ret = arg0.code;
|
|
926
|
-
return ret;
|
|
927
|
-
},
|
|
928
|
-
__wbg_code_4cb6dbcfceec1eac: function(arg0) {
|
|
929
|
-
const ret = arg0.code;
|
|
930
|
-
return ret;
|
|
931
|
-
},
|
|
932
|
-
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
933
|
-
const ret = arg0.crypto;
|
|
934
|
-
return ret;
|
|
935
|
-
},
|
|
936
|
-
__wbg_data_522f7abc70721269: function(arg0) {
|
|
937
|
-
const ret = arg0.data;
|
|
938
|
-
return ret;
|
|
939
|
-
},
|
|
940
|
-
__wbg_debug_d3d0e490f96087b4: function(arg0, arg1) {
|
|
941
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
942
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
943
|
-
console.debug(...(v0));
|
|
944
|
-
},
|
|
945
326
|
__wbg_done_b41a1d26cdb37fb6: function(arg0) {
|
|
946
327
|
const ret = arg0.done;
|
|
947
328
|
return ret;
|
|
948
329
|
},
|
|
949
|
-
__wbg_enqueue_4a01c128f9a0de16: function() { return handleError(function (arg0, arg1) {
|
|
950
|
-
arg0.enqueue(arg1);
|
|
951
|
-
}, arguments); },
|
|
952
|
-
__wbg_entries_b55ec7e0dc443355: function(arg0) {
|
|
953
|
-
const ret = arg0.entries();
|
|
954
|
-
return ret;
|
|
955
|
-
},
|
|
956
330
|
__wbg_entries_fb6397112b1de25f: function(arg0) {
|
|
957
331
|
const ret = Object.entries(arg0);
|
|
958
332
|
return ret;
|
|
959
333
|
},
|
|
960
|
-
__wbg_error_2509b4a5fa2a453c: function(arg0, arg1) {
|
|
961
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
962
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
963
|
-
console.error(...(v0));
|
|
964
|
-
},
|
|
965
334
|
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
966
335
|
let deferred0_0;
|
|
967
336
|
let deferred0_1;
|
|
@@ -973,28 +342,6 @@ function __wbg_get_imports() {
|
|
|
973
342
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
974
343
|
}
|
|
975
344
|
},
|
|
976
|
-
__wbg_fetch_7a37768ab67c5bd8: function(arg0) {
|
|
977
|
-
const ret = fetch(arg0);
|
|
978
|
-
return ret;
|
|
979
|
-
},
|
|
980
|
-
__wbg_fetch_efc64baf325b084d: function(arg0, arg1) {
|
|
981
|
-
const ret = arg0.fetch(arg1);
|
|
982
|
-
return ret;
|
|
983
|
-
},
|
|
984
|
-
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
985
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
986
|
-
}, arguments); },
|
|
987
|
-
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
988
|
-
arg0.getRandomValues(arg1);
|
|
989
|
-
}, arguments); },
|
|
990
|
-
__wbg_getReader_9facd4f899beac89: function() { return handleError(function (arg0) {
|
|
991
|
-
const ret = arg0.getReader();
|
|
992
|
-
return ret;
|
|
993
|
-
}, arguments); },
|
|
994
|
-
__wbg_getReader_bf34f92ee19c42b4: function() { return handleError(function (arg0) {
|
|
995
|
-
const ret = arg0.getReader();
|
|
996
|
-
return ret;
|
|
997
|
-
}, arguments); },
|
|
998
345
|
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
999
346
|
const ret = Reflect.get(arg0, arg1);
|
|
1000
347
|
return ret;
|
|
@@ -1007,30 +354,14 @@ function __wbg_get_imports() {
|
|
|
1007
354
|
const ret = arg0[arg1 >>> 0];
|
|
1008
355
|
return ret;
|
|
1009
356
|
},
|
|
1010
|
-
__wbg_get_done_7020b91c987365c7: function(arg0) {
|
|
1011
|
-
const ret = arg0.done;
|
|
1012
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1013
|
-
},
|
|
1014
357
|
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
1015
358
|
const ret = arg0[arg1 >>> 0];
|
|
1016
359
|
return ret;
|
|
1017
360
|
},
|
|
1018
|
-
__wbg_get_value_87fbd6ad1283f2e7: function(arg0) {
|
|
1019
|
-
const ret = arg0.value;
|
|
1020
|
-
return ret;
|
|
1021
|
-
},
|
|
1022
361
|
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
1023
362
|
const ret = arg0[arg1];
|
|
1024
363
|
return ret;
|
|
1025
364
|
},
|
|
1026
|
-
__wbg_has_5d6706e5209576c1: function() { return handleError(function (arg0, arg1) {
|
|
1027
|
-
const ret = Reflect.has(arg0, arg1);
|
|
1028
|
-
return ret;
|
|
1029
|
-
}, arguments); },
|
|
1030
|
-
__wbg_headers_eba93595f8944c2f: function(arg0) {
|
|
1031
|
-
const ret = arg0.headers;
|
|
1032
|
-
return ret;
|
|
1033
|
-
},
|
|
1034
365
|
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
|
|
1035
366
|
let result;
|
|
1036
367
|
try {
|
|
@@ -1041,16 +372,6 @@ function __wbg_get_imports() {
|
|
|
1041
372
|
const ret = result;
|
|
1042
373
|
return ret;
|
|
1043
374
|
},
|
|
1044
|
-
__wbg_instanceof_Blob_7c6191a4cd5834d3: function(arg0) {
|
|
1045
|
-
let result;
|
|
1046
|
-
try {
|
|
1047
|
-
result = arg0 instanceof Blob;
|
|
1048
|
-
} catch (_) {
|
|
1049
|
-
result = false;
|
|
1050
|
-
}
|
|
1051
|
-
const ret = result;
|
|
1052
|
-
return ret;
|
|
1053
|
-
},
|
|
1054
375
|
__wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
|
|
1055
376
|
let result;
|
|
1056
377
|
try {
|
|
@@ -1061,16 +382,6 @@ function __wbg_get_imports() {
|
|
|
1061
382
|
const ret = result;
|
|
1062
383
|
return ret;
|
|
1063
384
|
},
|
|
1064
|
-
__wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
|
|
1065
|
-
let result;
|
|
1066
|
-
try {
|
|
1067
|
-
result = arg0 instanceof Response;
|
|
1068
|
-
} catch (_) {
|
|
1069
|
-
result = false;
|
|
1070
|
-
}
|
|
1071
|
-
const ret = result;
|
|
1072
|
-
return ret;
|
|
1073
|
-
},
|
|
1074
385
|
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
1075
386
|
let result;
|
|
1076
387
|
try {
|
|
@@ -1101,26 +412,6 @@ function __wbg_get_imports() {
|
|
|
1101
412
|
const ret = arg0.length;
|
|
1102
413
|
return ret;
|
|
1103
414
|
},
|
|
1104
|
-
__wbg_log_c62f48ee85b1639e: function(arg0, arg1) {
|
|
1105
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
1106
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1107
|
-
console.log(...(v0));
|
|
1108
|
-
},
|
|
1109
|
-
__wbg_message_d988ea596c5f5c9a: function(arg0, arg1) {
|
|
1110
|
-
const ret = arg1.message;
|
|
1111
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1112
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1113
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1114
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1115
|
-
},
|
|
1116
|
-
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1117
|
-
const ret = arg0.msCrypto;
|
|
1118
|
-
return ret;
|
|
1119
|
-
},
|
|
1120
|
-
__wbg_networknode_new: function(arg0) {
|
|
1121
|
-
const ret = NetworkNode.__wrap(arg0);
|
|
1122
|
-
return ret;
|
|
1123
|
-
},
|
|
1124
415
|
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
1125
416
|
const ret = new Uint8Array(arg0);
|
|
1126
417
|
return ret;
|
|
@@ -1129,72 +420,14 @@ function __wbg_get_imports() {
|
|
|
1129
420
|
const ret = new Error();
|
|
1130
421
|
return ret;
|
|
1131
422
|
},
|
|
1132
|
-
__wbg_new_2e41357094e99294: function() { return handleError(function () {
|
|
1133
|
-
const ret = new AbortController();
|
|
1134
|
-
return ret;
|
|
1135
|
-
}, arguments); },
|
|
1136
|
-
__wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
|
|
1137
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1138
|
-
return ret;
|
|
1139
|
-
},
|
|
1140
|
-
__wbg_new_4059fb0406225e04: function() { return handleError(function (arg0, arg1) {
|
|
1141
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1142
|
-
return ret;
|
|
1143
|
-
}, arguments); },
|
|
1144
423
|
__wbg_new_617a8cdb8bb1130e: function() {
|
|
1145
424
|
const ret = new Object();
|
|
1146
425
|
return ret;
|
|
1147
426
|
},
|
|
1148
|
-
__wbg_new_83ca405eae412a62: function() { return handleError(function () {
|
|
1149
|
-
const ret = new Headers();
|
|
1150
|
-
return ret;
|
|
1151
|
-
}, arguments); },
|
|
1152
427
|
__wbg_new_ee2291f50781bf1d: function() {
|
|
1153
428
|
const ret = new Array();
|
|
1154
429
|
return ret;
|
|
1155
430
|
},
|
|
1156
|
-
__wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
|
|
1157
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1158
|
-
return ret;
|
|
1159
|
-
},
|
|
1160
|
-
__wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
|
|
1161
|
-
try {
|
|
1162
|
-
var state0 = {a: arg0, b: arg1};
|
|
1163
|
-
var cb0 = (arg0, arg1) => {
|
|
1164
|
-
const a = state0.a;
|
|
1165
|
-
state0.a = 0;
|
|
1166
|
-
try {
|
|
1167
|
-
return wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1168
|
-
} finally {
|
|
1169
|
-
state0.a = a;
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
const ret = new Promise(cb0);
|
|
1173
|
-
return ret;
|
|
1174
|
-
} finally {
|
|
1175
|
-
state0.a = 0;
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
__wbg_new_with_byte_offset_and_length_2f5d7fc2a828b74d: function(arg0, arg1, arg2) {
|
|
1179
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1180
|
-
return ret;
|
|
1181
|
-
},
|
|
1182
|
-
__wbg_new_with_into_underlying_source_a57cfcc7c705351c: function(arg0, arg1) {
|
|
1183
|
-
const ret = new ReadableStream(IntoUnderlyingSource2.__wrap(arg0), arg1);
|
|
1184
|
-
return ret;
|
|
1185
|
-
},
|
|
1186
|
-
__wbg_new_with_length_3da0ad195f6f63ba: function(arg0) {
|
|
1187
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1188
|
-
return ret;
|
|
1189
|
-
},
|
|
1190
|
-
__wbg_new_with_str_and_init_4618dee4e950224f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1191
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1192
|
-
return ret;
|
|
1193
|
-
}, arguments); },
|
|
1194
|
-
__wbg_new_with_str_sequence_f79e461d58fdeacc: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1195
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
1196
|
-
return ret;
|
|
1197
|
-
}, arguments); },
|
|
1198
431
|
__wbg_next_33784799010f1bbe: function(arg0) {
|
|
1199
432
|
const ret = arg0.next;
|
|
1200
433
|
return ret;
|
|
@@ -1203,10 +436,6 @@ function __wbg_get_imports() {
|
|
|
1203
436
|
const ret = arg0.next();
|
|
1204
437
|
return ret;
|
|
1205
438
|
}, arguments); },
|
|
1206
|
-
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1207
|
-
const ret = arg0.node;
|
|
1208
|
-
return ret;
|
|
1209
|
-
},
|
|
1210
439
|
__wbg_now_aa4ccb83129e9e55: function() {
|
|
1211
440
|
const ret = Date.now();
|
|
1212
441
|
return ret;
|
|
@@ -1215,25 +444,10 @@ function __wbg_get_imports() {
|
|
|
1215
444
|
const ret = arg0.now();
|
|
1216
445
|
return ret;
|
|
1217
446
|
},
|
|
1218
|
-
__wbg_parse_0fc53dead14b3b42: function() { return handleError(function (arg0, arg1) {
|
|
1219
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1220
|
-
return ret;
|
|
1221
|
-
}, arguments); },
|
|
1222
447
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
1223
448
|
const ret = arg0.performance;
|
|
1224
449
|
return ret;
|
|
1225
450
|
},
|
|
1226
|
-
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1227
|
-
const ret = arg0.process;
|
|
1228
|
-
return ret;
|
|
1229
|
-
},
|
|
1230
|
-
__wbg_protocol_f3c53ad42fd438f8: function(arg0, arg1) {
|
|
1231
|
-
const ret = arg1.protocol;
|
|
1232
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1233
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1234
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1235
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1236
|
-
},
|
|
1237
451
|
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
1238
452
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1239
453
|
},
|
|
@@ -1252,119 +466,23 @@ function __wbg_get_imports() {
|
|
|
1252
466
|
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
1253
467
|
queueMicrotask(arg0);
|
|
1254
468
|
},
|
|
1255
|
-
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1256
|
-
arg0.randomFillSync(arg1);
|
|
1257
|
-
}, arguments); },
|
|
1258
|
-
__wbg_read_2a943774344c9728: function(arg0) {
|
|
1259
|
-
const ret = arg0.read();
|
|
1260
|
-
return ret;
|
|
1261
|
-
},
|
|
1262
|
-
__wbg_readyState_d8514376867e415b: function(arg0) {
|
|
1263
|
-
const ret = arg0.readyState;
|
|
1264
|
-
return ret;
|
|
1265
|
-
},
|
|
1266
|
-
__wbg_reason_832acaf5f4083b7b: function(arg0, arg1) {
|
|
1267
|
-
const ret = arg1.reason;
|
|
1268
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1269
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1270
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1271
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1272
|
-
},
|
|
1273
|
-
__wbg_releaseLock_eb64cd83aa9fcfe4: function(arg0) {
|
|
1274
|
-
arg0.releaseLock();
|
|
1275
|
-
},
|
|
1276
|
-
__wbg_removeEventListener_1e2ca61fc90b3b7a: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1277
|
-
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1278
|
-
}, arguments); },
|
|
1279
|
-
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1280
|
-
const ret = module.require;
|
|
1281
|
-
return ret;
|
|
1282
|
-
}, arguments); },
|
|
1283
469
|
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
1284
470
|
const ret = Promise.resolve(arg0);
|
|
1285
471
|
return ret;
|
|
1286
472
|
},
|
|
1287
|
-
__wbg_respond_c102fabcc79e5ef0: function() { return handleError(function (arg0, arg1) {
|
|
1288
|
-
arg0.respond(arg1 >>> 0);
|
|
1289
|
-
}, arguments); },
|
|
1290
|
-
__wbg_send_b5bdd806efe4baf6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1291
|
-
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
1292
|
-
}, arguments); },
|
|
1293
|
-
__wbg_send_c1dad0ec2e52defb: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1294
|
-
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1295
|
-
}, arguments); },
|
|
1296
473
|
__wbg_setTimeout_6613a51400c1bf9f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1297
474
|
const ret = arg0.setTimeout(arg1, arg2);
|
|
1298
475
|
return ret;
|
|
1299
476
|
}, arguments); },
|
|
1300
|
-
__wbg_setTimeout_b4a9096784635514: function(arg0, arg1) {
|
|
1301
|
-
const ret = setTimeout(arg0, arg1);
|
|
1302
|
-
return ret;
|
|
1303
|
-
},
|
|
1304
|
-
__wbg_set_575d3ddb70fe831d: function(arg0, arg1, arg2) {
|
|
1305
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1306
|
-
},
|
|
1307
477
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1308
478
|
arg0[arg1] = arg2;
|
|
1309
479
|
},
|
|
1310
480
|
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
1311
481
|
arg0[arg1 >>> 0] = arg2;
|
|
1312
482
|
},
|
|
1313
|
-
__wbg_set_binaryType_21835bf0df8f70aa: function(arg0, arg1) {
|
|
1314
|
-
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1315
|
-
},
|
|
1316
|
-
__wbg_set_body_1fb0f1008bfc7df6: function(arg0, arg1) {
|
|
1317
|
-
arg0.body = arg1;
|
|
1318
|
-
},
|
|
1319
|
-
__wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
|
|
1320
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1321
|
-
},
|
|
1322
|
-
__wbg_set_credentials_e0dcce31ca532b7d: function(arg0, arg1) {
|
|
1323
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1324
|
-
},
|
|
1325
483
|
__wbg_set_eca238efa99478e2: function(arg0, arg1) {
|
|
1326
484
|
arg0.set(arg1);
|
|
1327
485
|
},
|
|
1328
|
-
__wbg_set_handle_event_4438a7fea6ac21dc: function(arg0, arg1) {
|
|
1329
|
-
arg0.handleEvent = arg1;
|
|
1330
|
-
},
|
|
1331
|
-
__wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
|
|
1332
|
-
arg0.headers = arg1;
|
|
1333
|
-
},
|
|
1334
|
-
__wbg_set_high_water_mark_3a96edf83df7e06c: function(arg0, arg1) {
|
|
1335
|
-
arg0.highWaterMark = arg1;
|
|
1336
|
-
},
|
|
1337
|
-
__wbg_set_method_dcb32343247ec427: function(arg0, arg1, arg2) {
|
|
1338
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1339
|
-
},
|
|
1340
|
-
__wbg_set_mode_74e772635acb96ec: function(arg0, arg1) {
|
|
1341
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1342
|
-
},
|
|
1343
|
-
__wbg_set_onclose_a84370531f3d2948: function(arg0, arg1) {
|
|
1344
|
-
arg0.onclose = arg1;
|
|
1345
|
-
},
|
|
1346
|
-
__wbg_set_onerror_94ee307653399172: function(arg0, arg1) {
|
|
1347
|
-
arg0.onerror = arg1;
|
|
1348
|
-
},
|
|
1349
|
-
__wbg_set_onmessage_cb6f77d2d8e0402a: function(arg0, arg1) {
|
|
1350
|
-
arg0.onmessage = arg1;
|
|
1351
|
-
},
|
|
1352
|
-
__wbg_set_onopen_c914147e8a2db4b0: function(arg0, arg1) {
|
|
1353
|
-
arg0.onopen = arg1;
|
|
1354
|
-
},
|
|
1355
|
-
__wbg_set_referrer_efd0fb956d6b70b2: function(arg0, arg1, arg2) {
|
|
1356
|
-
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1357
|
-
},
|
|
1358
|
-
__wbg_set_referrer_policy_465382f52c1a03d3: function(arg0, arg1) {
|
|
1359
|
-
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1360
|
-
},
|
|
1361
|
-
__wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
|
|
1362
|
-
arg0.signal = arg1;
|
|
1363
|
-
},
|
|
1364
|
-
__wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
|
|
1365
|
-
const ret = arg0.signal;
|
|
1366
|
-
return ret;
|
|
1367
|
-
},
|
|
1368
486
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1369
487
|
const ret = arg1.stack;
|
|
1370
488
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1388,132 +506,45 @@ function __wbg_get_imports() {
|
|
|
1388
506
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1389
507
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1390
508
|
},
|
|
1391
|
-
__wbg_status_ce0a98d3c57125f3: function(arg0) {
|
|
1392
|
-
const ret = arg0.status;
|
|
1393
|
-
return ret;
|
|
1394
|
-
},
|
|
1395
|
-
__wbg_stringify_52ff602c1cc4fbb6: function() { return handleError(function (arg0) {
|
|
1396
|
-
const ret = JSON.stringify(arg0);
|
|
1397
|
-
return ret;
|
|
1398
|
-
}, arguments); },
|
|
1399
|
-
__wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
|
|
1400
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1401
|
-
return ret;
|
|
1402
|
-
},
|
|
1403
|
-
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1404
|
-
const ret = arg0.then(arg1, arg2);
|
|
1405
|
-
return ret;
|
|
1406
|
-
},
|
|
1407
509
|
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1408
510
|
const ret = arg0.then(arg1);
|
|
1409
511
|
return ret;
|
|
1410
512
|
},
|
|
1411
|
-
__wbg_url_8e28edeab4cd6bed: function(arg0, arg1) {
|
|
1412
|
-
const ret = arg1.url;
|
|
1413
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1414
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1415
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1416
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1417
|
-
},
|
|
1418
|
-
__wbg_url_cb736f1f060f18a1: function(arg0, arg1) {
|
|
1419
|
-
const ret = arg1.url;
|
|
1420
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1421
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1422
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1423
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1424
|
-
},
|
|
1425
513
|
__wbg_value_f3c585ee8f5ba40c: function(arg0) {
|
|
1426
514
|
const ret = arg0.value;
|
|
1427
515
|
return ret;
|
|
1428
516
|
},
|
|
1429
|
-
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
1430
|
-
const ret = arg0.versions;
|
|
1431
|
-
return ret;
|
|
1432
|
-
},
|
|
1433
|
-
__wbg_view_9c570f33e8d6ab96: function(arg0) {
|
|
1434
|
-
const ret = arg0.view;
|
|
1435
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1436
|
-
},
|
|
1437
|
-
__wbg_warn_3d4c70cb13f09ea9: function(arg0, arg1) {
|
|
1438
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
1439
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1440
|
-
console.warn(...(v0));
|
|
1441
|
-
},
|
|
1442
|
-
__wbg_wasClean_b246ecade802c6ff: function(arg0) {
|
|
1443
|
-
const ret = arg0.wasClean;
|
|
1444
|
-
return ret;
|
|
1445
|
-
},
|
|
1446
517
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1447
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1448
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
518
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 158, ret: Externref, inner_ret: Some(Externref) }, mutable: true }) -> Externref`.
|
|
519
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__wasm_bindgen_257733975fcf14ae___JsValue__true_);
|
|
1449
520
|
return ret;
|
|
1450
521
|
},
|
|
1451
522
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1452
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1453
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
523
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 162, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
524
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_257733975fcf14ae___JsError___true_);
|
|
1454
525
|
return ret;
|
|
1455
526
|
},
|
|
1456
527
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1457
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [
|
|
1458
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1459
|
-
return ret;
|
|
1460
|
-
},
|
|
1461
|
-
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1462
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 469, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1463
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_);
|
|
1464
|
-
return ret;
|
|
1465
|
-
},
|
|
1466
|
-
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1467
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1139, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1468
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_);
|
|
1469
|
-
return ret;
|
|
1470
|
-
},
|
|
1471
|
-
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1472
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2767, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1473
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_);
|
|
1474
|
-
return ret;
|
|
1475
|
-
},
|
|
1476
|
-
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1477
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2318, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1478
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_);
|
|
528
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 128, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
529
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_257733975fcf14ae___convert__closures_____invoke_______true_);
|
|
1479
530
|
return ret;
|
|
1480
531
|
},
|
|
1481
|
-
|
|
1482
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2501, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1483
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_);
|
|
1484
|
-
return ret;
|
|
1485
|
-
},
|
|
1486
|
-
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1487
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2503, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1488
|
-
const ret = makeClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_);
|
|
1489
|
-
return ret;
|
|
1490
|
-
},
|
|
1491
|
-
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1492
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3877, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1493
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_);
|
|
1494
|
-
return ret;
|
|
1495
|
-
},
|
|
1496
|
-
__wbindgen_generic_000000000000000b: function(arg0) {
|
|
532
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
1497
533
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1498
534
|
const ret = arg0;
|
|
1499
535
|
return ret;
|
|
1500
536
|
},
|
|
1501
|
-
|
|
537
|
+
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
1502
538
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1503
539
|
const ret = arg0;
|
|
1504
540
|
return ret;
|
|
1505
541
|
},
|
|
1506
|
-
|
|
1507
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1508
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1509
|
-
return ret;
|
|
1510
|
-
},
|
|
1511
|
-
__wbindgen_generic_000000000000000e: function(arg0, arg1) {
|
|
542
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1512
543
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1513
544
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1514
545
|
return ret;
|
|
1515
546
|
},
|
|
1516
|
-
|
|
547
|
+
__wbindgen_generic_0000000000000007: function(arg0) {
|
|
1517
548
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1518
549
|
const ret = BigInt.asUintN(64, arg0);
|
|
1519
550
|
return ret;
|
|
@@ -1536,101 +567,25 @@ function __wbg_get_imports() {
|
|
|
1536
567
|
};
|
|
1537
568
|
}
|
|
1538
569
|
|
|
1539
|
-
function
|
|
1540
|
-
wasm.
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
1544
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_(arg0, arg1) {
|
|
1548
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_(arg0, arg1);
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_(arg0, arg1) {
|
|
1552
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_(arg0, arg1);
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_(arg0, arg1, arg2) {
|
|
1556
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_(arg0, arg1, arg2);
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_(arg0, arg1, arg2) {
|
|
1560
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_(arg0, arg1, arg2);
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
1564
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2) {
|
|
1568
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2);
|
|
570
|
+
function wasm_bindgen_257733975fcf14ae___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
571
|
+
wasm.wasm_bindgen_257733975fcf14ae___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1569
572
|
}
|
|
1570
573
|
|
|
1571
|
-
function
|
|
1572
|
-
const ret = wasm.
|
|
574
|
+
function wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__wasm_bindgen_257733975fcf14ae___JsValue__true_(arg0, arg1, arg2) {
|
|
575
|
+
const ret = wasm.wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__wasm_bindgen_257733975fcf14ae___JsValue__true_(arg0, arg1, arg2);
|
|
1573
576
|
return ret;
|
|
1574
577
|
}
|
|
1575
578
|
|
|
1576
|
-
function
|
|
1577
|
-
const ret = wasm.
|
|
579
|
+
function wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_257733975fcf14ae___JsError___true_(arg0, arg1, arg2) {
|
|
580
|
+
const ret = wasm.wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_257733975fcf14ae___JsError___true_(arg0, arg1, arg2);
|
|
1578
581
|
if (ret[1]) {
|
|
1579
582
|
throw takeFromExternrefTable0(ret[0]);
|
|
1580
583
|
}
|
|
1581
584
|
}
|
|
1582
585
|
|
|
1583
|
-
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1584
|
-
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
1604
|
-
const ChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1605
|
-
? { register: () => {}, unregister: () => {} }
|
|
1606
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_channel_free(ptr, 1));
|
|
1607
|
-
const ChannelSenderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1608
|
-
? { register: () => {}, unregister: () => {} }
|
|
1609
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_channelsender_free(ptr, 1));
|
|
1610
586
|
const GameStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1611
587
|
? { register: () => {}, unregister: () => {} }
|
|
1612
588
|
: new FinalizationRegistry(ptr => wasm.__wbg_gamestate_free(ptr, 1));
|
|
1613
|
-
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1614
|
-
? { register: () => {}, unregister: () => {} }
|
|
1615
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
1616
|
-
const IntoUnderlyingByteSource2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1617
|
-
? { register: () => {}, unregister: () => {} }
|
|
1618
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource2_free(ptr, 1));
|
|
1619
|
-
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1620
|
-
? { register: () => {}, unregister: () => {} }
|
|
1621
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
1622
|
-
const IntoUnderlyingSink2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1623
|
-
? { register: () => {}, unregister: () => {} }
|
|
1624
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink2_free(ptr, 1));
|
|
1625
|
-
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1626
|
-
? { register: () => {}, unregister: () => {} }
|
|
1627
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
1628
|
-
const IntoUnderlyingSource2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1629
|
-
? { register: () => {}, unregister: () => {} }
|
|
1630
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource2_free(ptr, 1));
|
|
1631
|
-
const NetworkNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1632
|
-
? { register: () => {}, unregister: () => {} }
|
|
1633
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_networknode_free(ptr, 1));
|
|
1634
589
|
const PulseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1635
590
|
? { register: () => {}, unregister: () => {} }
|
|
1636
591
|
: new FinalizationRegistry(ptr => wasm.__wbg_pulse_free(ptr, 1));
|
|
@@ -1718,17 +673,6 @@ function getArrayF64FromWasm0(ptr, len) {
|
|
|
1718
673
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
1719
674
|
}
|
|
1720
675
|
|
|
1721
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1722
|
-
ptr = ptr >>> 0;
|
|
1723
|
-
const mem = getDataViewMemory0();
|
|
1724
|
-
const result = [];
|
|
1725
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
1726
|
-
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
1727
|
-
}
|
|
1728
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
1729
|
-
return result;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
676
|
function getArrayU8FromWasm0(ptr, len) {
|
|
1733
677
|
ptr = ptr >>> 0;
|
|
1734
678
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1775,31 +719,6 @@ function isLikeNone(x) {
|
|
|
1775
719
|
return x === undefined || x === null;
|
|
1776
720
|
}
|
|
1777
721
|
|
|
1778
|
-
function makeClosure(arg0, arg1, f) {
|
|
1779
|
-
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1780
|
-
const real = (...args) => {
|
|
1781
|
-
|
|
1782
|
-
// First up with a closure we increment the internal reference
|
|
1783
|
-
// count. This ensures that the Rust closure environment won't
|
|
1784
|
-
// be deallocated while we're invoking it.
|
|
1785
|
-
state.cnt++;
|
|
1786
|
-
try {
|
|
1787
|
-
return f(state.a, state.b, ...args);
|
|
1788
|
-
} finally {
|
|
1789
|
-
real._wbg_cb_unref();
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
real._wbg_cb_unref = () => {
|
|
1793
|
-
if (--state.cnt === 0) {
|
|
1794
|
-
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1795
|
-
state.a = 0;
|
|
1796
|
-
CLOSURE_DTORS.unregister(state);
|
|
1797
|
-
}
|
|
1798
|
-
};
|
|
1799
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
1800
|
-
return real;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
722
|
function makeMutClosure(arg0, arg1, f) {
|
|
1804
723
|
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1805
724
|
const real = (...args) => {
|