@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 CHANGED
@@ -67,9 +67,7 @@ The existing New Game menu offers Solo, Collaborative and Territory. All
67
67
  multiplayer modes require a Kuncat account and use the trusted Rust authority.
68
68
  Collaborative games share reveals and a team score; territory use their
69
69
  respective competitive rules. Invitations join through the same menu and login flow.
70
- Solo stays local and does not require an account. Legacy peer synchronization code
71
- remains in the Rust library, but its relay settings and host/join paths are no longer
72
- exposed by the application.
70
+ Solo stays local and does not require an account. Iroh transport and peer host/join APIs have been removed.
73
71
 
74
72
  See [the implementation plan](docs/multiplayer-plan.md) for rules, identity and
75
73
  architecture diagrams, and [the server guide](server/README.md) for deployment.
@@ -6,6 +6,7 @@
6
6
  import GameHistory from "./GameHistory.svelte";
7
7
  let historyOpen = $state(false);
8
8
  import MultiplayerGame from "./MultiplayerGame.svelte";
9
+ import { parseInvitation } from "../multiplayer/invitations";
9
10
  import type { CompetitiveConfig, MultiplayerSetup } from "../multiplayer/types";
10
11
  import { devicePixelRatio } from "svelte/reactivity/window";
11
12
  import { slide } from "svelte/transition";
@@ -495,8 +496,8 @@
495
496
  }
496
497
  try {
497
498
  const input = ticketInput.trim();
498
- const id = /^https?:\/\//i.test(input) ? new URL(input).searchParams.get("match") : input;
499
- if (!id || !/^[a-f0-9-]{36}$/.test(id)) throw new Error(m.error_invitation_invalid());
499
+ const id = parseInvitation(input);
500
+ if (!id) throw new Error(m.error_invitation_invalid());
500
501
  invitation = id;
501
502
  multiplayerSetup = undefined;
502
503
  competitiveOpen = true;
@@ -81,7 +81,7 @@
81
81
  <p class="text-sm opacity-70">
82
82
  {new Date(match.finishedAt).toLocaleString(getLocale())}
83
83
  </p>
84
- <MatchResults players={match.players} turnBased={match.options.turnBased} />
84
+ <MatchResults players={match.players} />
85
85
  {#if match.replayAvailable}<button
86
86
  class="btn mt-2 btn-sm"
87
87
  disabled={downloading !== null}
@@ -3,7 +3,7 @@
3
3
  import { getLocale } from "../paraglide/runtime";
4
4
  import { formatDuration } from "../multiplayer/duration";
5
5
  import type { MatchSnapshot } from "../multiplayer/types";
6
- let { players, turnBased }: { players: MatchSnapshot["players"]; turnBased: boolean } = $props();
6
+ let { players }: { players: MatchSnapshot["players"] } = $props();
7
7
  </script>
8
8
 
9
9
  <div class="overflow-x-auto">
@@ -25,5 +25,4 @@
25
25
  >{/each}</tbody
26
26
  >
27
27
  </table>
28
- <p class="text-xs opacity-70">{turnBased ? m.help_turn_time() : m.help_participation_time()}</p>
29
28
  </div>
@@ -1,7 +1,6 @@
1
1
  import type { MatchSnapshot } from "../multiplayer/types";
2
2
  type $$ComponentProps = {
3
3
  players: MatchSnapshot["players"];
4
- turnBased: boolean;
5
4
  };
6
5
  declare const MatchResults: import("svelte").Component<$$ComponentProps, {}, "">;
7
6
  type MatchResults = ReturnType<typeof MatchResults>;
@@ -245,6 +245,9 @@
245
245
  savingName = false;
246
246
  },
247
247
  () => playerName,
248
+ (url) => {
249
+ invitationUrl = url;
250
+ },
248
251
  );
249
252
  const url = new SvelteURL(window.location.href);
250
253
  url.search = "";
@@ -389,10 +392,7 @@
389
392
  <button class="btn btn-error" onclick={leave}>{m.action_exit()}</button>
390
393
  </div>
391
394
  </div>
392
- {#if snapshot?.finished}<MatchResults
393
- players={snapshot.players}
394
- turnBased={snapshot.options.turnBased}
395
- />{/if}
395
+ {#if snapshot?.finished}<MatchResults players={snapshot.players} />{/if}
396
396
  {#if message}
397
397
  <div class="mt-2 flex flex-wrap items-center gap-2 text-sm">
398
398
  <p role="status" class="text-amber-300">{message}</p>
@@ -2,17 +2,19 @@ import type { CompetitiveConfig, MatchSnapshot } from "./types";
2
2
  /** One pending action at a time; retries reuse the sequence after reconnection. */
3
3
  export declare class MatchClient {
4
4
  private config;
5
- readonly id: string;
5
+ id: string;
6
6
  private actor;
7
7
  private receive;
8
8
  private report;
9
9
  private playerName;
10
+ private invitationReceived?;
10
11
  private socket?;
11
12
  private pending?;
12
13
  private stopped;
14
+ private finished;
13
15
  private retry?;
14
16
  private retryCount;
15
- constructor(config: CompetitiveConfig, id: string, actor: string, receive: (s: MatchSnapshot, map: string, neighbors: number[][]) => void, report: (s: string, reconnect?: boolean) => void, playerName: () => string);
17
+ constructor(config: CompetitiveConfig, id: string, actor: string, receive: (s: MatchSnapshot, map: string, neighbors: number[][]) => void, report: (s: string, reconnect?: boolean) => void, playerName: () => string, invitationReceived?: ((url: string) => void) | undefined);
16
18
  connect(): Promise<void>;
17
19
  start(): void;
18
20
  move(sequence: number, action: unknown): void;
@@ -7,18 +7,21 @@ export class MatchClient {
7
7
  receive;
8
8
  report;
9
9
  playerName;
10
+ invitationReceived;
10
11
  socket;
11
12
  pending;
12
13
  stopped = false;
14
+ finished = false;
13
15
  retry;
14
16
  retryCount = 0;
15
- constructor(config, id, actor, receive, report, playerName) {
17
+ constructor(config, id, actor, receive, report, playerName, invitationReceived) {
16
18
  this.config = config;
17
19
  this.id = id;
18
20
  this.actor = actor;
19
21
  this.receive = receive;
20
22
  this.report = report;
21
23
  this.playerName = playerName;
24
+ this.invitationReceived = invitationReceived;
22
25
  }
23
26
  async connect() {
24
27
  clearTimeout(this.retry);
@@ -42,6 +45,10 @@ export class MatchClient {
42
45
  : (data.error ?? m.error_match_join()));
43
46
  if (this.stopped)
44
47
  return;
48
+ if (data.id)
49
+ this.id = data.id;
50
+ if (data.invitationUrl)
51
+ this.invitationReceived?.(data.invitationUrl);
45
52
  const url = new URL(`${this.config.serverUrl}/matches/${this.id}/socket`);
46
53
  url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
47
54
  url.searchParams.set("ticket", data.ticket);
@@ -65,13 +72,14 @@ export class MatchClient {
65
72
  const player = s.players.find((p) => p.id === this.actor);
66
73
  if (this.pending && player && player.sequence >= this.pending.sequence)
67
74
  this.pending = undefined;
75
+ this.finished = s.finished;
68
76
  this.retryCount = 0;
69
77
  this.receive(s, message.map, message.neighbors);
70
78
  if (this.pending)
71
79
  this.socket?.send(JSON.stringify(this.pending));
72
80
  };
73
81
  this.socket.onclose = (event) => {
74
- if (this.stopped)
82
+ if (this.stopped || this.finished)
75
83
  return;
76
84
  if (event.code === 1000) {
77
85
  this.report(m.status_match_expired());
@@ -0,0 +1,2 @@
1
+ /** Accept existing UUID invitations, share codes, and exact kuga.run links. */
2
+ export declare function parseInvitation(input: string): string | null;
@@ -0,0 +1,23 @@
1
+ /** Accept existing UUID invitations, share codes, and exact kuga.run links. */
2
+ export function parseInvitation(input) {
3
+ let value = input.trim();
4
+ try {
5
+ if (/^(?:https?:\/\/)?kuga\.run\//i.test(value)) {
6
+ const url = new URL(/^https?:/i.test(value) ? value : `https://${value}`);
7
+ if (url.hostname !== "kuga.run" || url.username || url.password || url.port)
8
+ return null;
9
+ value = url.pathname.slice(1);
10
+ }
11
+ else if (/^https?:\/\//i.test(value)) {
12
+ value = new URL(value).searchParams.get("match") ?? "";
13
+ }
14
+ }
15
+ catch {
16
+ return null;
17
+ }
18
+ if (/^[A-Za-z]{4,32}$/.test(value))
19
+ return value.toUpperCase();
20
+ return /^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/.test(value)
21
+ ? value
22
+ : null;
23
+ }
@@ -65,7 +65,6 @@ export * from "./field_radius.js";
65
65
  export * from "./field_radius_x.js";
66
66
  export * from "./field_radius_y.js";
67
67
  export * from "./field_radius_z.js";
68
- export * from "./field_relay_servers.js";
69
68
  export * from "./field_seed.js";
70
69
  export * from "./field_size.js";
71
70
  export * from "./field_spikiness.js";
@@ -67,7 +67,6 @@ export * from './field_radius.js'
67
67
  export * from './field_radius_x.js'
68
68
  export * from './field_radius_y.js'
69
69
  export * from './field_radius_z.js'
70
- export * from './field_relay_servers.js'
71
70
  export * from './field_seed.js'
72
71
  export * from './field_size.js'
73
72
  export * from './field_spikiness.js'
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * | output |
3
3
  * | --- |
4
- * | "Waiting in lobby. Share the invitation link; the creator starts once everyone has joined." |
4
+ * | "Waiting in lobby. Share the invitation link; the host starts once everyone has joined." |
5
5
  *
6
6
  * @param {Text_Waiting_LobbyInputs} inputs
7
7
  * @param {{ locale?: "en" | "bn" }} options
@@ -6,7 +6,7 @@ import { getLocale, experimentalStaticLocale } from '../runtime.js';
6
6
  /** @typedef {{}} Text_Waiting_LobbyInputs */
7
7
 
8
8
  const en_text_waiting_lobby = /** @type {(inputs: Text_Waiting_LobbyInputs) => LocalizedString} */ () => {
9
- return /** @type {LocalizedString} */ (`Waiting in lobby. Share the invitation link; the creator starts once everyone has joined.`)
9
+ return /** @type {LocalizedString} */ (`Waiting in lobby. Share the invitation link; the host starts once everyone has joined.`)
10
10
  };
11
11
 
12
12
  const bn_text_waiting_lobby = /** @type {(inputs: Text_Waiting_LobbyInputs) => LocalizedString} */ () => {
@@ -16,7 +16,7 @@ const bn_text_waiting_lobby = /** @type {(inputs: Text_Waiting_LobbyInputs) => L
16
16
  /**
17
17
  * | output |
18
18
  * | --- |
19
- * | "Waiting in lobby. Share the invitation link; the creator starts once everyone has joined." |
19
+ * | "Waiting in lobby. Share the invitation link; the host starts once everyone has joined." |
20
20
  *
21
21
  * @param {Text_Waiting_LobbyInputs} inputs
22
22
  * @param {{ locale?: "en" | "bn" }} options
@@ -37,6 +37,8 @@ h1 {
37
37
 
38
38
  /* Keep the original Avoidant palette while using DaisyUI components. */
39
39
  .panel-wrapper {
40
+ --color-error: var(--color-rose-500);
41
+ --color-error-content: color-mix(in oklab, white 90%, transparent);
40
42
  --color-primary: var(--color-sky-600);
41
43
  --color-primary-content: color-mix(in oklab, white 90%, transparent);
42
44
  --color-secondary: var(--color-slate-200);
@@ -1,12 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * The `ReadableStreamType` enum.
5
- *
6
- * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
- */
8
-
9
- export type ReadableStreamType = "bytes";
10
3
 
11
4
  import type { Readable } from "svelte/store";
12
5
 
@@ -61,10 +54,6 @@ export interface CellMetadataEntry {
61
54
  export interface GameOptions {
62
55
  numCells: number;
63
56
  rngSeed: number;
64
- /**
65
- * Iroh relay server URLs to use for peer discovery and transport.
66
- */
67
- relayUrls?: string[];
68
57
  /**
69
58
  * Map surface shape. Defaults to Icosahedron { radius: 50.0 }.
70
59
  */
@@ -115,24 +104,6 @@ export interface MapCell {
115
104
  normal: [number, number, number];
116
105
  }
117
106
 
118
- export interface NetworkPeerStatus {
119
- endpointId: string;
120
- nickname?: string;
121
- lastSeenMs?: number;
122
- isConnected: boolean;
123
- }
124
-
125
- export interface NetworkSnapshot {
126
- hasNode: boolean;
127
- listenerStarted: boolean;
128
- endpointId?: string;
129
- topicId?: string;
130
- peers: NetworkPeerStatus[];
131
- lastInboundMutationMs?: number;
132
- lastOutboundMutationMs?: number;
133
- sampledAtMs: number;
134
- }
135
-
136
107
  export interface ScoreState {
137
108
  /**
138
109
  * Risk-balanced point total. May be negative.
@@ -177,25 +148,6 @@ export interface ScoreState {
177
148
  }
178
149
 
179
150
 
180
- export class Channel {
181
- private constructor();
182
- free(): void;
183
- [Symbol.dispose](): void;
184
- id(): string;
185
- neighbors(): string[];
186
- ticket(opts: any): string;
187
- readonly receiver: ReadableStream;
188
- readonly sender: ChannelSender;
189
- }
190
-
191
- export class ChannelSender {
192
- private constructor();
193
- free(): void;
194
- [Symbol.dispose](): void;
195
- broadcast(text: string): Promise<void>;
196
- set_nickame(nickname: string): void;
197
- }
198
-
199
151
  export class GameState {
200
152
  free(): void;
201
153
  [Symbol.dispose](): void;
@@ -206,112 +158,19 @@ export class GameState {
206
158
  */
207
159
  applyMapCells(cells: MapCell[]): MapCell[];
208
160
  exploreCell(index: number, x: number, y: number, z: number): void;
209
- invite(nickname: string): Promise<string>;
210
- /**
211
- * Spawn a network node and join the gossip topic described by `ticket`.
212
- *
213
- * The caller is responsible for having populated the map cells (typically
214
- * via [`GameState::apply_map_cells`]) before invoking this; the function
215
- * waits for an authoritative snapshot before allowing gameplay.
216
- */
217
- joinAsPeer(ticket: string, nickname: string): Promise<void>;
218
161
  constructor(options: GameOptions);
219
- static optionsFromTicket(ticket: string): GameOptions;
220
162
  queueExplorePulse(index: number, x: number, y: number, z: number): void;
221
163
  readonly cellMetadata: Readable<Array<CellMetadataEntry>>;
222
164
  readonly cells: Readable<Array<MapCell>>;
223
165
  readonly elevationMax: number;
224
166
  readonly elevationMin: number;
225
- readonly endpointId: string | undefined;
226
- readonly hasNetworkNode: boolean;
227
- readonly lastInboundMutationMs: number | undefined;
228
- readonly lastOutboundMutationMs: number | undefined;
229
- readonly networkListenerStarted: boolean;
230
- readonly networkPeers: NetworkPeerStatus[];
231
- readonly networkSnapshot: Readable<NetworkSnapshot>;
232
167
  /**
233
168
  * Canonical score, synchronized from the host independently of reveal animations.
234
169
  */
235
170
  readonly score: Readable<ScoreState>;
236
- readonly topicId: string | undefined;
237
171
  readonly uiState: UiState;
238
172
  }
239
173
 
240
- export class IntoUnderlyingByteSource {
241
- private constructor();
242
- free(): void;
243
- [Symbol.dispose](): void;
244
- cancel(): void;
245
- pull(controller: ReadableByteStreamController): Promise<any>;
246
- start(controller: ReadableByteStreamController): void;
247
- readonly autoAllocateChunkSize: number;
248
- readonly type: ReadableStreamType;
249
- }
250
-
251
- declare class IntoUnderlyingByteSource2 {
252
- private constructor();
253
- free(): void;
254
- [Symbol.dispose](): void;
255
- cancel(): void;
256
- pull(controller: ReadableByteStreamController): Promise<any>;
257
- start(controller: ReadableByteStreamController): void;
258
- readonly autoAllocateChunkSize: number;
259
- readonly type: ReadableStreamType;
260
- }
261
- export type { IntoUnderlyingByteSource2 };
262
-
263
- export class IntoUnderlyingSink {
264
- private constructor();
265
- free(): void;
266
- [Symbol.dispose](): void;
267
- abort(reason: any): Promise<any>;
268
- close(): Promise<any>;
269
- write(chunk: any): Promise<any>;
270
- }
271
-
272
- declare class IntoUnderlyingSink2 {
273
- private constructor();
274
- free(): void;
275
- [Symbol.dispose](): void;
276
- abort(reason: any): Promise<any>;
277
- close(): Promise<any>;
278
- write(chunk: any): Promise<any>;
279
- }
280
- export type { IntoUnderlyingSink2 };
281
-
282
- export class IntoUnderlyingSource {
283
- private constructor();
284
- free(): void;
285
- [Symbol.dispose](): void;
286
- cancel(): void;
287
- pull(controller: ReadableStreamDefaultController): Promise<any>;
288
- }
289
-
290
- declare class IntoUnderlyingSource2 {
291
- private constructor();
292
- free(): void;
293
- [Symbol.dispose](): void;
294
- cancel(): void;
295
- pull(controller: ReadableStreamDefaultController): Promise<any>;
296
- }
297
- export type { IntoUnderlyingSource2 };
298
-
299
- export class NetworkNode {
300
- private constructor();
301
- free(): void;
302
- [Symbol.dispose](): void;
303
- create(nickname: string): Promise<Channel>;
304
- /**
305
- * Returns the endpoint id of this node.
306
- */
307
- endpointId(): string;
308
- join(ticket: string, nickname: string): Promise<Channel>;
309
- /**
310
- * Spawns a gossip node.
311
- */
312
- static spawn(): Promise<NetworkNode>;
313
- }
314
-
315
174
  export class Pulse {
316
175
  private constructor();
317
176
  free(): void;
@@ -338,77 +197,24 @@ export class UiState {
338
197
  */
339
198
  export function generateMapData(options: GameOptions): MapData;
340
199
 
341
- export function start(): void;
342
-
343
200
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
344
201
 
345
202
  export interface InitOutput {
346
203
  readonly memory: WebAssembly.Memory;
347
- readonly __wbg_channel_free: (a: number, b: number) => void;
348
- readonly __wbg_channelsender_free: (a: number, b: number) => void;
349
204
  readonly __wbg_gamestate_free: (a: number, b: number) => void;
350
- readonly __wbg_intounderlyingbytesource2_free: (a: number, b: number) => void;
351
- readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
352
- readonly __wbg_intounderlyingsink2_free: (a: number, b: number) => void;
353
- readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
354
- readonly __wbg_intounderlyingsource2_free: (a: number, b: number) => void;
355
- readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
356
- readonly __wbg_networknode_free: (a: number, b: number) => void;
357
205
  readonly __wbg_pulse_free: (a: number, b: number) => void;
358
206
  readonly __wbg_uistate_free: (a: number, b: number) => void;
359
- readonly channel_id: (a: number) => [number, number];
360
- readonly channel_neighbors: (a: number) => [number, number];
361
- readonly channel_receiver: (a: number) => any;
362
- readonly channel_sender: (a: number) => number;
363
- readonly channel_ticket: (a: number, b: any) => [number, number, number, number];
364
- readonly channelsender_broadcast: (a: number, b: number, c: number) => any;
365
- readonly channelsender_set_nickame: (a: number, b: number, c: number) => void;
366
207
  readonly gamestate_applyMapCells: (a: number, b: any) => [number, number, number];
367
208
  readonly gamestate_cellMetadata: (a: number) => any;
368
209
  readonly gamestate_cells: (a: number) => any;
369
210
  readonly gamestate_elevationMax: (a: number) => number;
370
211
  readonly gamestate_elevationMin: (a: number) => number;
371
- readonly gamestate_endpointId: (a: number) => [number, number];
372
212
  readonly gamestate_exploreCell: (a: number, b: number, c: number, d: number, e: number) => [number, number];
373
- readonly gamestate_hasNetworkNode: (a: number) => number;
374
- readonly gamestate_invite: (a: number, b: number, c: number) => any;
375
- readonly gamestate_joinAsPeer: (a: number, b: number, c: number, d: number, e: number) => any;
376
- readonly gamestate_lastInboundMutationMs: (a: number) => [number, number];
377
- readonly gamestate_lastOutboundMutationMs: (a: number) => [number, number];
378
- readonly gamestate_networkListenerStarted: (a: number) => number;
379
- readonly gamestate_networkPeers: (a: number) => [number, number, number, number];
380
- readonly gamestate_networkSnapshot: (a: number) => any;
381
213
  readonly gamestate_new: (a: any) => [number, number, number];
382
- readonly gamestate_optionsFromTicket: (a: number, b: number) => [number, number, number];
383
214
  readonly gamestate_queueExplorePulse: (a: number, b: number, c: number, d: number, e: number) => [number, number];
384
215
  readonly gamestate_score: (a: number) => any;
385
- readonly gamestate_topicId: (a: number) => [number, number];
386
216
  readonly gamestate_uiState: (a: number) => number;
387
217
  readonly generateMapData: (a: any) => [number, number, number];
388
- readonly intounderlyingbytesource2_autoAllocateChunkSize: (a: number) => number;
389
- readonly intounderlyingbytesource2_cancel: (a: number) => void;
390
- readonly intounderlyingbytesource2_pull: (a: number, b: any) => any;
391
- readonly intounderlyingbytesource2_start: (a: number, b: any) => void;
392
- readonly intounderlyingbytesource2_type: (a: number) => number;
393
- readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
394
- readonly intounderlyingbytesource_cancel: (a: number) => void;
395
- readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
396
- readonly intounderlyingbytesource_start: (a: number, b: any) => void;
397
- readonly intounderlyingbytesource_type: (a: number) => number;
398
- readonly intounderlyingsink2_abort: (a: number, b: any) => any;
399
- readonly intounderlyingsink2_close: (a: number) => any;
400
- readonly intounderlyingsink2_write: (a: number, b: any) => any;
401
- readonly intounderlyingsink_abort: (a: number, b: any) => any;
402
- readonly intounderlyingsink_close: (a: number) => any;
403
- readonly intounderlyingsink_write: (a: number, b: any) => any;
404
- readonly intounderlyingsource2_cancel: (a: number) => void;
405
- readonly intounderlyingsource2_pull: (a: number, b: any) => any;
406
- readonly intounderlyingsource_cancel: (a: number) => void;
407
- readonly intounderlyingsource_pull: (a: number, b: any) => any;
408
- readonly networknode_create: (a: number, b: number, c: number) => any;
409
- readonly networknode_endpointId: (a: number) => [number, number];
410
- readonly networknode_join: (a: number, b: number, c: number, d: number, e: number) => any;
411
- readonly networknode_spawn: () => any;
412
218
  readonly pulse_createdAtMs: (a: number) => number;
413
219
  readonly pulse_durationMs: (a: number) => number;
414
220
  readonly pulse_id: (a: number) => number;
@@ -417,26 +223,15 @@ export interface InitOutput {
417
223
  readonly pulse_nullPulse: () => number;
418
224
  readonly pulse_originCell: (a: number) => number;
419
225
  readonly pulse_position: (a: number) => [number, number];
420
- readonly start: () => void;
421
226
  readonly uistate_pulses: (a: number) => any;
422
- readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
423
- readonly 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: number, b: number, c: any, d: any) => void;
424
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_9272b6ef9ea7104a___JsError___true_: (a: number, b: number, c: any) => [number, number];
425
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__wasm_bindgen_9272b6ef9ea7104a___JsValue__true_: (a: number, b: number, c: any) => any;
426
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_: (a: number, b: number, c: any) => void;
427
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_: (a: number, b: number, c: any) => void;
428
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
429
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_: (a: number, b: number, c: any) => void;
430
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_: (a: number, b: number) => void;
431
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
432
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_: (a: number, b: number) => void;
433
- readonly wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_: (a: number, b: number) => void;
227
+ readonly wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_257733975fcf14ae___JsError___true_: (a: number, b: number, c: any) => [number, number];
228
+ readonly wasm_bindgen_257733975fcf14ae___convert__closures_____invoke___wasm_bindgen_257733975fcf14ae___JsValue__wasm_bindgen_257733975fcf14ae___JsValue__true_: (a: number, b: number, c: any) => any;
229
+ readonly wasm_bindgen_257733975fcf14ae___convert__closures_____invoke_______true_: (a: number, b: number) => void;
434
230
  readonly __wbindgen_malloc: (a: number, b: number) => number;
435
231
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
436
232
  readonly __wbindgen_exn_store: (a: number) => void;
437
233
  readonly __externref_table_alloc: () => number;
438
234
  readonly __wbindgen_externrefs: WebAssembly.Table;
439
- readonly __externref_drop_slice: (a: number, b: number) => void;
440
235
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
441
236
  readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
442
237
  readonly __externref_table_dealloc: (a: number) => void;