thrust-wasm 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -0
- package/esm/package.json +23 -0
- package/esm/thrust_wasm.d.ts +52 -0
- package/esm/thrust_wasm.js +5 -0
- package/esm/thrust_wasm_bg.js +1019 -0
- package/esm/thrust_wasm_bg.wasm +0 -0
- package/nodejs/package.json +17 -0
- package/nodejs/thrust_wasm.d.ts +52 -0
- package/nodejs/thrust_wasm.js +1022 -0
- package/nodejs/thrust_wasm_bg.wasm +0 -0
- package/package.json +50 -0
- package/web/package.json +21 -0
- package/web/thrust_wasm.d.ts +136 -0
- package/web/thrust_wasm.js +1073 -0
- package/web/thrust_wasm_bg.wasm +0 -0
|
@@ -0,0 +1,1019 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
let cachedUint8ArrayMemory0 = null;
|
|
8
|
+
|
|
9
|
+
function getUint8ArrayMemory0() {
|
|
10
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
11
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
+
}
|
|
13
|
+
return cachedUint8ArrayMemory0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
+
|
|
18
|
+
cachedTextDecoder.decode();
|
|
19
|
+
|
|
20
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
21
|
+
let numBytesDecoded = 0;
|
|
22
|
+
function decodeText(ptr, len) {
|
|
23
|
+
numBytesDecoded += len;
|
|
24
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
25
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
26
|
+
cachedTextDecoder.decode();
|
|
27
|
+
numBytesDecoded = len;
|
|
28
|
+
}
|
|
29
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getStringFromWasm0(ptr, len) {
|
|
33
|
+
ptr = ptr >>> 0;
|
|
34
|
+
return decodeText(ptr, len);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let WASM_VECTOR_LEN = 0;
|
|
38
|
+
|
|
39
|
+
const cachedTextEncoder = new TextEncoder();
|
|
40
|
+
|
|
41
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
42
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
43
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
44
|
+
view.set(buf);
|
|
45
|
+
return {
|
|
46
|
+
read: arg.length,
|
|
47
|
+
written: buf.length
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
53
|
+
|
|
54
|
+
if (realloc === undefined) {
|
|
55
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
57
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
58
|
+
WASM_VECTOR_LEN = buf.length;
|
|
59
|
+
return ptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let len = arg.length;
|
|
63
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
64
|
+
|
|
65
|
+
const mem = getUint8ArrayMemory0();
|
|
66
|
+
|
|
67
|
+
let offset = 0;
|
|
68
|
+
|
|
69
|
+
for (; offset < len; offset++) {
|
|
70
|
+
const code = arg.charCodeAt(offset);
|
|
71
|
+
if (code > 0x7F) break;
|
|
72
|
+
mem[ptr + offset] = code;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (offset !== len) {
|
|
76
|
+
if (offset !== 0) {
|
|
77
|
+
arg = arg.slice(offset);
|
|
78
|
+
}
|
|
79
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
80
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
81
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
82
|
+
|
|
83
|
+
offset += ret.written;
|
|
84
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
WASM_VECTOR_LEN = offset;
|
|
88
|
+
return ptr;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
let cachedDataViewMemory0 = null;
|
|
92
|
+
|
|
93
|
+
function getDataViewMemory0() {
|
|
94
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
95
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
96
|
+
}
|
|
97
|
+
return cachedDataViewMemory0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function isLikeNone(x) {
|
|
101
|
+
return x === undefined || x === null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function debugString(val) {
|
|
105
|
+
// primitive types
|
|
106
|
+
const type = typeof val;
|
|
107
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
108
|
+
return `${val}`;
|
|
109
|
+
}
|
|
110
|
+
if (type == 'string') {
|
|
111
|
+
return `"${val}"`;
|
|
112
|
+
}
|
|
113
|
+
if (type == 'symbol') {
|
|
114
|
+
const description = val.description;
|
|
115
|
+
if (description == null) {
|
|
116
|
+
return 'Symbol';
|
|
117
|
+
} else {
|
|
118
|
+
return `Symbol(${description})`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (type == 'function') {
|
|
122
|
+
const name = val.name;
|
|
123
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
124
|
+
return `Function(${name})`;
|
|
125
|
+
} else {
|
|
126
|
+
return 'Function';
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// objects
|
|
130
|
+
if (Array.isArray(val)) {
|
|
131
|
+
const length = val.length;
|
|
132
|
+
let debug = '[';
|
|
133
|
+
if (length > 0) {
|
|
134
|
+
debug += debugString(val[0]);
|
|
135
|
+
}
|
|
136
|
+
for(let i = 1; i < length; i++) {
|
|
137
|
+
debug += ', ' + debugString(val[i]);
|
|
138
|
+
}
|
|
139
|
+
debug += ']';
|
|
140
|
+
return debug;
|
|
141
|
+
}
|
|
142
|
+
// Test for built-in
|
|
143
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
144
|
+
let className;
|
|
145
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
146
|
+
className = builtInMatches[1];
|
|
147
|
+
} else {
|
|
148
|
+
// Failed to match the standard '[object ClassName]'
|
|
149
|
+
return toString.call(val);
|
|
150
|
+
}
|
|
151
|
+
if (className == 'Object') {
|
|
152
|
+
// we're a user defined class or Object
|
|
153
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
154
|
+
// easier than looping through ownProperties of `val`.
|
|
155
|
+
try {
|
|
156
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
157
|
+
} catch (_) {
|
|
158
|
+
return 'Object';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// errors
|
|
162
|
+
if (val instanceof Error) {
|
|
163
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
164
|
+
}
|
|
165
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
166
|
+
return className;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function addToExternrefTable0(obj) {
|
|
170
|
+
const idx = wasm.__externref_table_alloc();
|
|
171
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
172
|
+
return idx;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function handleError(f, args) {
|
|
176
|
+
try {
|
|
177
|
+
return f.apply(this, args);
|
|
178
|
+
} catch (e) {
|
|
179
|
+
const idx = addToExternrefTable0(e);
|
|
180
|
+
wasm.__wbindgen_exn_store(idx);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
185
|
+
ptr = ptr >>> 0;
|
|
186
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function takeFromExternrefTable0(idx) {
|
|
190
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
191
|
+
wasm.__externref_table_dealloc(idx);
|
|
192
|
+
return value;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
196
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
197
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
198
|
+
WASM_VECTOR_LEN = arg.length;
|
|
199
|
+
return ptr;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @param {string} date
|
|
203
|
+
* @returns {string}
|
|
204
|
+
*/
|
|
205
|
+
export function airac_code_from_date(date) {
|
|
206
|
+
let deferred3_0;
|
|
207
|
+
let deferred3_1;
|
|
208
|
+
try {
|
|
209
|
+
const ptr0 = passStringToWasm0(date, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
210
|
+
const len0 = WASM_VECTOR_LEN;
|
|
211
|
+
const ret = wasm.airac_code_from_date(ptr0, len0);
|
|
212
|
+
var ptr2 = ret[0];
|
|
213
|
+
var len2 = ret[1];
|
|
214
|
+
if (ret[3]) {
|
|
215
|
+
ptr2 = 0; len2 = 0;
|
|
216
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
217
|
+
}
|
|
218
|
+
deferred3_0 = ptr2;
|
|
219
|
+
deferred3_1 = len2;
|
|
220
|
+
return getStringFromWasm0(ptr2, len2);
|
|
221
|
+
} finally {
|
|
222
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @param {string} airac_code
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
export function airac_interval(airac_code) {
|
|
231
|
+
const ptr0 = passStringToWasm0(airac_code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
+
const len0 = WASM_VECTOR_LEN;
|
|
233
|
+
const ret = wasm.airac_interval(ptr0, len0);
|
|
234
|
+
if (ret[2]) {
|
|
235
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
236
|
+
}
|
|
237
|
+
return takeFromExternrefTable0(ret[0]);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @param {string} airac_code
|
|
242
|
+
* @returns {string}
|
|
243
|
+
*/
|
|
244
|
+
export function effective_date_from_airac_code(airac_code) {
|
|
245
|
+
let deferred3_0;
|
|
246
|
+
let deferred3_1;
|
|
247
|
+
try {
|
|
248
|
+
const ptr0 = passStringToWasm0(airac_code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
+
const len0 = WASM_VECTOR_LEN;
|
|
250
|
+
const ret = wasm.effective_date_from_airac_code(ptr0, len0);
|
|
251
|
+
var ptr2 = ret[0];
|
|
252
|
+
var len2 = ret[1];
|
|
253
|
+
if (ret[3]) {
|
|
254
|
+
ptr2 = 0; len2 = 0;
|
|
255
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
256
|
+
}
|
|
257
|
+
deferred3_0 = ptr2;
|
|
258
|
+
deferred3_1 = len2;
|
|
259
|
+
return getStringFromWasm0(ptr2, len2);
|
|
260
|
+
} finally {
|
|
261
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function run() {
|
|
266
|
+
const ret = wasm.run();
|
|
267
|
+
if (ret[1]) {
|
|
268
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @returns {string}
|
|
274
|
+
*/
|
|
275
|
+
export function wasm_build_profile() {
|
|
276
|
+
let deferred1_0;
|
|
277
|
+
let deferred1_1;
|
|
278
|
+
try {
|
|
279
|
+
const ret = wasm.wasm_build_profile();
|
|
280
|
+
deferred1_0 = ret[0];
|
|
281
|
+
deferred1_1 = ret[1];
|
|
282
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
283
|
+
} finally {
|
|
284
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const EurocontrolResolverFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
289
|
+
? { register: () => {}, unregister: () => {} }
|
|
290
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_eurocontrolresolver_free(ptr >>> 0, 1));
|
|
291
|
+
|
|
292
|
+
export class EurocontrolResolver {
|
|
293
|
+
|
|
294
|
+
static __wrap(ptr) {
|
|
295
|
+
ptr = ptr >>> 0;
|
|
296
|
+
const obj = Object.create(EurocontrolResolver.prototype);
|
|
297
|
+
obj.__wbg_ptr = ptr;
|
|
298
|
+
EurocontrolResolverFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
299
|
+
return obj;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
__destroy_into_raw() {
|
|
303
|
+
const ptr = this.__wbg_ptr;
|
|
304
|
+
this.__wbg_ptr = 0;
|
|
305
|
+
EurocontrolResolverFinalization.unregister(this);
|
|
306
|
+
return ptr;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
free() {
|
|
310
|
+
const ptr = this.__destroy_into_raw();
|
|
311
|
+
wasm.__wbg_eurocontrolresolver_free(ptr, 0);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* @param {string} code
|
|
315
|
+
* @returns {any}
|
|
316
|
+
*/
|
|
317
|
+
resolve_fix(code) {
|
|
318
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
|
+
const len0 = WASM_VECTOR_LEN;
|
|
320
|
+
const ret = wasm.eurocontrolresolver_resolve_fix(this.__wbg_ptr, ptr0, len0);
|
|
321
|
+
if (ret[2]) {
|
|
322
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
323
|
+
}
|
|
324
|
+
return takeFromExternrefTable0(ret[0]);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @param {string} name
|
|
328
|
+
* @returns {any}
|
|
329
|
+
*/
|
|
330
|
+
resolve_airway(name) {
|
|
331
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
332
|
+
const len0 = WASM_VECTOR_LEN;
|
|
333
|
+
const ret = wasm.eurocontrolresolver_resolve_airway(this.__wbg_ptr, ptr0, len0);
|
|
334
|
+
if (ret[2]) {
|
|
335
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
336
|
+
}
|
|
337
|
+
return takeFromExternrefTable0(ret[0]);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @param {string} code
|
|
341
|
+
* @returns {any}
|
|
342
|
+
*/
|
|
343
|
+
resolve_navaid(code) {
|
|
344
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
345
|
+
const len0 = WASM_VECTOR_LEN;
|
|
346
|
+
const ret = wasm.eurocontrolresolver_resolve_navaid(this.__wbg_ptr, ptr0, len0);
|
|
347
|
+
if (ret[2]) {
|
|
348
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
349
|
+
}
|
|
350
|
+
return takeFromExternrefTable0(ret[0]);
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @param {any} ddr_folder
|
|
354
|
+
* @returns {EurocontrolResolver}
|
|
355
|
+
*/
|
|
356
|
+
static fromDdrFolder(ddr_folder) {
|
|
357
|
+
const ret = wasm.eurocontrolresolver_fromDdrFolder(ddr_folder);
|
|
358
|
+
if (ret[2]) {
|
|
359
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
360
|
+
}
|
|
361
|
+
return EurocontrolResolver.__wrap(ret[0]);
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @param {string} code
|
|
365
|
+
* @returns {any}
|
|
366
|
+
*/
|
|
367
|
+
resolve_airport(code) {
|
|
368
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
|
+
const len0 = WASM_VECTOR_LEN;
|
|
370
|
+
const ret = wasm.eurocontrolresolver_resolve_airport(this.__wbg_ptr, ptr0, len0);
|
|
371
|
+
if (ret[2]) {
|
|
372
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
373
|
+
}
|
|
374
|
+
return takeFromExternrefTable0(ret[0]);
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @param {Uint8Array} ddr_archive
|
|
378
|
+
* @returns {EurocontrolResolver}
|
|
379
|
+
*/
|
|
380
|
+
static fromDdrArchive(ddr_archive) {
|
|
381
|
+
const ptr0 = passArray8ToWasm0(ddr_archive, wasm.__wbindgen_malloc);
|
|
382
|
+
const len0 = WASM_VECTOR_LEN;
|
|
383
|
+
const ret = wasm.eurocontrolresolver_fromDdrArchive(ptr0, len0);
|
|
384
|
+
if (ret[2]) {
|
|
385
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
386
|
+
}
|
|
387
|
+
return EurocontrolResolver.__wrap(ret[0]);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @param {any} aixm_folder
|
|
391
|
+
*/
|
|
392
|
+
constructor(aixm_folder) {
|
|
393
|
+
const ret = wasm.eurocontrolresolver_new(aixm_folder);
|
|
394
|
+
if (ret[2]) {
|
|
395
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
396
|
+
}
|
|
397
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
398
|
+
EurocontrolResolverFinalization.register(this, this.__wbg_ptr, this);
|
|
399
|
+
return this;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @returns {any}
|
|
403
|
+
*/
|
|
404
|
+
fixes() {
|
|
405
|
+
const ret = wasm.eurocontrolresolver_fixes(this.__wbg_ptr);
|
|
406
|
+
if (ret[2]) {
|
|
407
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
408
|
+
}
|
|
409
|
+
return takeFromExternrefTable0(ret[0]);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @returns {any}
|
|
413
|
+
*/
|
|
414
|
+
airways() {
|
|
415
|
+
const ret = wasm.eurocontrolresolver_airways(this.__wbg_ptr);
|
|
416
|
+
if (ret[2]) {
|
|
417
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
418
|
+
}
|
|
419
|
+
return takeFromExternrefTable0(ret[0]);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* @returns {any}
|
|
423
|
+
*/
|
|
424
|
+
navaids() {
|
|
425
|
+
const ret = wasm.eurocontrolresolver_navaids(this.__wbg_ptr);
|
|
426
|
+
if (ret[2]) {
|
|
427
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
428
|
+
}
|
|
429
|
+
return takeFromExternrefTable0(ret[0]);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @returns {any}
|
|
433
|
+
*/
|
|
434
|
+
airports() {
|
|
435
|
+
const ret = wasm.eurocontrolresolver_airports(this.__wbg_ptr);
|
|
436
|
+
if (ret[2]) {
|
|
437
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
438
|
+
}
|
|
439
|
+
return takeFromExternrefTable0(ret[0]);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (Symbol.dispose) EurocontrolResolver.prototype[Symbol.dispose] = EurocontrolResolver.prototype.free;
|
|
443
|
+
|
|
444
|
+
const FaaArcgisResolverFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
445
|
+
? { register: () => {}, unregister: () => {} }
|
|
446
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_faaarcgisresolver_free(ptr >>> 0, 1));
|
|
447
|
+
|
|
448
|
+
export class FaaArcgisResolver {
|
|
449
|
+
|
|
450
|
+
__destroy_into_raw() {
|
|
451
|
+
const ptr = this.__wbg_ptr;
|
|
452
|
+
this.__wbg_ptr = 0;
|
|
453
|
+
FaaArcgisResolverFinalization.unregister(this);
|
|
454
|
+
return ptr;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
free() {
|
|
458
|
+
const ptr = this.__destroy_into_raw();
|
|
459
|
+
wasm.__wbg_faaarcgisresolver_free(ptr, 0);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @param {string} code
|
|
463
|
+
* @returns {any}
|
|
464
|
+
*/
|
|
465
|
+
resolve_fix(code) {
|
|
466
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
|
+
const len0 = WASM_VECTOR_LEN;
|
|
468
|
+
const ret = wasm.faaarcgisresolver_resolve_fix(this.__wbg_ptr, ptr0, len0);
|
|
469
|
+
if (ret[2]) {
|
|
470
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
471
|
+
}
|
|
472
|
+
return takeFromExternrefTable0(ret[0]);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} name
|
|
476
|
+
* @returns {any}
|
|
477
|
+
*/
|
|
478
|
+
resolve_airway(name) {
|
|
479
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
|
+
const len0 = WASM_VECTOR_LEN;
|
|
481
|
+
const ret = wasm.faaarcgisresolver_resolve_airway(this.__wbg_ptr, ptr0, len0);
|
|
482
|
+
if (ret[2]) {
|
|
483
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
484
|
+
}
|
|
485
|
+
return takeFromExternrefTable0(ret[0]);
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* @param {string} code
|
|
489
|
+
* @returns {any}
|
|
490
|
+
*/
|
|
491
|
+
resolve_navaid(code) {
|
|
492
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
493
|
+
const len0 = WASM_VECTOR_LEN;
|
|
494
|
+
const ret = wasm.faaarcgisresolver_resolve_navaid(this.__wbg_ptr, ptr0, len0);
|
|
495
|
+
if (ret[2]) {
|
|
496
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
497
|
+
}
|
|
498
|
+
return takeFromExternrefTable0(ret[0]);
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* @param {string} code
|
|
502
|
+
* @returns {any}
|
|
503
|
+
*/
|
|
504
|
+
resolve_airport(code) {
|
|
505
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
506
|
+
const len0 = WASM_VECTOR_LEN;
|
|
507
|
+
const ret = wasm.faaarcgisresolver_resolve_airport(this.__wbg_ptr, ptr0, len0);
|
|
508
|
+
if (ret[2]) {
|
|
509
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
510
|
+
}
|
|
511
|
+
return takeFromExternrefTable0(ret[0]);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @param {string} designator
|
|
515
|
+
* @returns {any}
|
|
516
|
+
*/
|
|
517
|
+
resolve_airspace(designator) {
|
|
518
|
+
const ptr0 = passStringToWasm0(designator, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
519
|
+
const len0 = WASM_VECTOR_LEN;
|
|
520
|
+
const ret = wasm.faaarcgisresolver_resolve_airspace(this.__wbg_ptr, ptr0, len0);
|
|
521
|
+
if (ret[2]) {
|
|
522
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
523
|
+
}
|
|
524
|
+
return takeFromExternrefTable0(ret[0]);
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @param {any} feature_collections_json
|
|
528
|
+
*/
|
|
529
|
+
constructor(feature_collections_json) {
|
|
530
|
+
const ret = wasm.faaarcgisresolver_new(feature_collections_json);
|
|
531
|
+
if (ret[2]) {
|
|
532
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
533
|
+
}
|
|
534
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
535
|
+
FaaArcgisResolverFinalization.register(this, this.__wbg_ptr, this);
|
|
536
|
+
return this;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @returns {any}
|
|
540
|
+
*/
|
|
541
|
+
fixes() {
|
|
542
|
+
const ret = wasm.faaarcgisresolver_fixes(this.__wbg_ptr);
|
|
543
|
+
if (ret[2]) {
|
|
544
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
545
|
+
}
|
|
546
|
+
return takeFromExternrefTable0(ret[0]);
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @returns {any}
|
|
550
|
+
*/
|
|
551
|
+
airways() {
|
|
552
|
+
const ret = wasm.faaarcgisresolver_airways(this.__wbg_ptr);
|
|
553
|
+
if (ret[2]) {
|
|
554
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
555
|
+
}
|
|
556
|
+
return takeFromExternrefTable0(ret[0]);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @returns {any}
|
|
560
|
+
*/
|
|
561
|
+
navaids() {
|
|
562
|
+
const ret = wasm.faaarcgisresolver_navaids(this.__wbg_ptr);
|
|
563
|
+
if (ret[2]) {
|
|
564
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
565
|
+
}
|
|
566
|
+
return takeFromExternrefTable0(ret[0]);
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* @returns {any}
|
|
570
|
+
*/
|
|
571
|
+
airports() {
|
|
572
|
+
const ret = wasm.faaarcgisresolver_airports(this.__wbg_ptr);
|
|
573
|
+
if (ret[2]) {
|
|
574
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
575
|
+
}
|
|
576
|
+
return takeFromExternrefTable0(ret[0]);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @returns {any}
|
|
580
|
+
*/
|
|
581
|
+
airspaces() {
|
|
582
|
+
const ret = wasm.faaarcgisresolver_airspaces(this.__wbg_ptr);
|
|
583
|
+
if (ret[2]) {
|
|
584
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
585
|
+
}
|
|
586
|
+
return takeFromExternrefTable0(ret[0]);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
if (Symbol.dispose) FaaArcgisResolver.prototype[Symbol.dispose] = FaaArcgisResolver.prototype.free;
|
|
590
|
+
|
|
591
|
+
const NasrResolverFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
592
|
+
? { register: () => {}, unregister: () => {} }
|
|
593
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nasrresolver_free(ptr >>> 0, 1));
|
|
594
|
+
|
|
595
|
+
export class NasrResolver {
|
|
596
|
+
|
|
597
|
+
__destroy_into_raw() {
|
|
598
|
+
const ptr = this.__wbg_ptr;
|
|
599
|
+
this.__wbg_ptr = 0;
|
|
600
|
+
NasrResolverFinalization.unregister(this);
|
|
601
|
+
return ptr;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
free() {
|
|
605
|
+
const ptr = this.__destroy_into_raw();
|
|
606
|
+
wasm.__wbg_nasrresolver_free(ptr, 0);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @param {string} code
|
|
610
|
+
* @returns {any}
|
|
611
|
+
*/
|
|
612
|
+
resolve_fix(code) {
|
|
613
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
614
|
+
const len0 = WASM_VECTOR_LEN;
|
|
615
|
+
const ret = wasm.nasrresolver_resolve_fix(this.__wbg_ptr, ptr0, len0);
|
|
616
|
+
if (ret[2]) {
|
|
617
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
618
|
+
}
|
|
619
|
+
return takeFromExternrefTable0(ret[0]);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} name
|
|
623
|
+
* @returns {any}
|
|
624
|
+
*/
|
|
625
|
+
resolve_airway(name) {
|
|
626
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
627
|
+
const len0 = WASM_VECTOR_LEN;
|
|
628
|
+
const ret = wasm.nasrresolver_resolve_airway(this.__wbg_ptr, ptr0, len0);
|
|
629
|
+
if (ret[2]) {
|
|
630
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
631
|
+
}
|
|
632
|
+
return takeFromExternrefTable0(ret[0]);
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @param {string} code
|
|
636
|
+
* @returns {any}
|
|
637
|
+
*/
|
|
638
|
+
resolve_navaid(code) {
|
|
639
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
640
|
+
const len0 = WASM_VECTOR_LEN;
|
|
641
|
+
const ret = wasm.nasrresolver_resolve_navaid(this.__wbg_ptr, ptr0, len0);
|
|
642
|
+
if (ret[2]) {
|
|
643
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
644
|
+
}
|
|
645
|
+
return takeFromExternrefTable0(ret[0]);
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @param {string} code
|
|
649
|
+
* @returns {any}
|
|
650
|
+
*/
|
|
651
|
+
resolve_airport(code) {
|
|
652
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
653
|
+
const len0 = WASM_VECTOR_LEN;
|
|
654
|
+
const ret = wasm.nasrresolver_resolve_airport(this.__wbg_ptr, ptr0, len0);
|
|
655
|
+
if (ret[2]) {
|
|
656
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
657
|
+
}
|
|
658
|
+
return takeFromExternrefTable0(ret[0]);
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {string} designator
|
|
662
|
+
* @returns {any}
|
|
663
|
+
*/
|
|
664
|
+
resolve_airspace(designator) {
|
|
665
|
+
const ptr0 = passStringToWasm0(designator, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
+
const len0 = WASM_VECTOR_LEN;
|
|
667
|
+
const ret = wasm.nasrresolver_resolve_airspace(this.__wbg_ptr, ptr0, len0);
|
|
668
|
+
if (ret[2]) {
|
|
669
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
670
|
+
}
|
|
671
|
+
return takeFromExternrefTable0(ret[0]);
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* @param {Uint8Array} zip_bytes
|
|
675
|
+
*/
|
|
676
|
+
constructor(zip_bytes) {
|
|
677
|
+
const ptr0 = passArray8ToWasm0(zip_bytes, wasm.__wbindgen_malloc);
|
|
678
|
+
const len0 = WASM_VECTOR_LEN;
|
|
679
|
+
const ret = wasm.nasrresolver_new(ptr0, len0);
|
|
680
|
+
if (ret[2]) {
|
|
681
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
682
|
+
}
|
|
683
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
684
|
+
NasrResolverFinalization.register(this, this.__wbg_ptr, this);
|
|
685
|
+
return this;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @returns {any}
|
|
689
|
+
*/
|
|
690
|
+
fixes() {
|
|
691
|
+
const ret = wasm.nasrresolver_fixes(this.__wbg_ptr);
|
|
692
|
+
if (ret[2]) {
|
|
693
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
694
|
+
}
|
|
695
|
+
return takeFromExternrefTable0(ret[0]);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* @returns {any}
|
|
699
|
+
*/
|
|
700
|
+
airways() {
|
|
701
|
+
const ret = wasm.nasrresolver_airways(this.__wbg_ptr);
|
|
702
|
+
if (ret[2]) {
|
|
703
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
704
|
+
}
|
|
705
|
+
return takeFromExternrefTable0(ret[0]);
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* @returns {any}
|
|
709
|
+
*/
|
|
710
|
+
navaids() {
|
|
711
|
+
const ret = wasm.nasrresolver_navaids(this.__wbg_ptr);
|
|
712
|
+
if (ret[2]) {
|
|
713
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
714
|
+
}
|
|
715
|
+
return takeFromExternrefTable0(ret[0]);
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* @returns {any}
|
|
719
|
+
*/
|
|
720
|
+
airports() {
|
|
721
|
+
const ret = wasm.nasrresolver_airports(this.__wbg_ptr);
|
|
722
|
+
if (ret[2]) {
|
|
723
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
724
|
+
}
|
|
725
|
+
return takeFromExternrefTable0(ret[0]);
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @returns {any}
|
|
729
|
+
*/
|
|
730
|
+
airspaces() {
|
|
731
|
+
const ret = wasm.nasrresolver_airspaces(this.__wbg_ptr);
|
|
732
|
+
if (ret[2]) {
|
|
733
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
734
|
+
}
|
|
735
|
+
return takeFromExternrefTable0(ret[0]);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
if (Symbol.dispose) NasrResolver.prototype[Symbol.dispose] = NasrResolver.prototype.free;
|
|
739
|
+
|
|
740
|
+
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
741
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
742
|
+
return ret;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
export function __wbg_Number_bb48ca12f395cd08(arg0) {
|
|
746
|
+
const ret = Number(arg0);
|
|
747
|
+
return ret;
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
751
|
+
const ret = String(arg1);
|
|
752
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
+
const len1 = WASM_VECTOR_LEN;
|
|
754
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
755
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
|
|
759
|
+
const v = arg1;
|
|
760
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
761
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
762
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
|
|
766
|
+
const v = arg0;
|
|
767
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
768
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
772
|
+
const ret = debugString(arg1);
|
|
773
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
774
|
+
const len1 = WASM_VECTOR_LEN;
|
|
775
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
776
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
|
|
780
|
+
const ret = arg0 in arg1;
|
|
781
|
+
return ret;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
|
|
785
|
+
const ret = typeof(arg0) === 'bigint';
|
|
786
|
+
return ret;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
790
|
+
const ret = typeof(arg0) === 'function';
|
|
791
|
+
return ret;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
795
|
+
const val = arg0;
|
|
796
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
797
|
+
return ret;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
|
|
801
|
+
const ret = arg0 === arg1;
|
|
802
|
+
return ret;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
|
|
806
|
+
const ret = arg0 == arg1;
|
|
807
|
+
return ret;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
|
|
811
|
+
const obj = arg1;
|
|
812
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
813
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
814
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
818
|
+
const obj = arg1;
|
|
819
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
820
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
821
|
+
var len1 = WASM_VECTOR_LEN;
|
|
822
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
823
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
827
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
|
|
831
|
+
const ret = arg0.call(arg1);
|
|
832
|
+
return ret;
|
|
833
|
+
}, arguments) };
|
|
834
|
+
|
|
835
|
+
export function __wbg_done_2042aa2670fb1db1(arg0) {
|
|
836
|
+
const ret = arg0.done;
|
|
837
|
+
return ret;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
export function __wbg_entries_e171b586f8f6bdbf(arg0) {
|
|
841
|
+
const ret = Object.entries(arg0);
|
|
842
|
+
return ret;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
846
|
+
let deferred0_0;
|
|
847
|
+
let deferred0_1;
|
|
848
|
+
try {
|
|
849
|
+
deferred0_0 = arg0;
|
|
850
|
+
deferred0_1 = arg1;
|
|
851
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
852
|
+
} finally {
|
|
853
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
export function __wbg_from_a4ad7cbddd0d7135(arg0) {
|
|
858
|
+
const ret = Array.from(arg0);
|
|
859
|
+
return ret;
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
863
|
+
const ret = arg0[arg1 >>> 0];
|
|
864
|
+
return ret;
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
868
|
+
const ret = Reflect.get(arg0, arg1);
|
|
869
|
+
return ret;
|
|
870
|
+
}, arguments) };
|
|
871
|
+
|
|
872
|
+
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
873
|
+
let result;
|
|
874
|
+
try {
|
|
875
|
+
result = arg0 instanceof ArrayBuffer;
|
|
876
|
+
} catch (_) {
|
|
877
|
+
result = false;
|
|
878
|
+
}
|
|
879
|
+
const ret = result;
|
|
880
|
+
return ret;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
|
|
884
|
+
let result;
|
|
885
|
+
try {
|
|
886
|
+
result = arg0 instanceof Map;
|
|
887
|
+
} catch (_) {
|
|
888
|
+
result = false;
|
|
889
|
+
}
|
|
890
|
+
const ret = result;
|
|
891
|
+
return ret;
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
895
|
+
let result;
|
|
896
|
+
try {
|
|
897
|
+
result = arg0 instanceof Uint8Array;
|
|
898
|
+
} catch (_) {
|
|
899
|
+
result = false;
|
|
900
|
+
}
|
|
901
|
+
const ret = result;
|
|
902
|
+
return ret;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
export function __wbg_isArray_96e0af9891d0945d(arg0) {
|
|
906
|
+
const ret = Array.isArray(arg0);
|
|
907
|
+
return ret;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
|
|
911
|
+
const ret = Number.isSafeInteger(arg0);
|
|
912
|
+
return ret;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
export function __wbg_iterator_e5822695327a3c39() {
|
|
916
|
+
const ret = Symbol.iterator;
|
|
917
|
+
return ret;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
921
|
+
const ret = arg0.length;
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
926
|
+
const ret = arg0.length;
|
|
927
|
+
return ret;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
export function __wbg_new_1acc0b6eea89d040() {
|
|
931
|
+
const ret = new Object();
|
|
932
|
+
return ret;
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
936
|
+
const ret = new Uint8Array(arg0);
|
|
937
|
+
return ret;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
941
|
+
const ret = new Error();
|
|
942
|
+
return ret;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
export function __wbg_new_e17d9f43105b08be() {
|
|
946
|
+
const ret = new Array();
|
|
947
|
+
return ret;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
|
|
951
|
+
const ret = arg0.next();
|
|
952
|
+
return ret;
|
|
953
|
+
}, arguments) };
|
|
954
|
+
|
|
955
|
+
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
956
|
+
const ret = arg0.next;
|
|
957
|
+
return ret;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
961
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
965
|
+
arg0[arg1] = arg2;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
969
|
+
arg0[arg1 >>> 0] = arg2;
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
973
|
+
const ret = arg1.stack;
|
|
974
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
975
|
+
const len1 = WASM_VECTOR_LEN;
|
|
976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
977
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
export function __wbg_value_692627309814bb8c(arg0) {
|
|
981
|
+
const ret = arg0.value;
|
|
982
|
+
return ret;
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
986
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
987
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
988
|
+
return ret;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
992
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
993
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
994
|
+
return ret;
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
998
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
999
|
+
const ret = arg0;
|
|
1000
|
+
return ret;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1004
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1005
|
+
const ret = arg0;
|
|
1006
|
+
return ret;
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
export function __wbindgen_init_externref_table() {
|
|
1010
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1011
|
+
const offset = table.grow(4);
|
|
1012
|
+
table.set(0, undefined);
|
|
1013
|
+
table.set(offset + 0, undefined);
|
|
1014
|
+
table.set(offset + 1, null);
|
|
1015
|
+
table.set(offset + 2, true);
|
|
1016
|
+
table.set(offset + 3, false);
|
|
1017
|
+
;
|
|
1018
|
+
};
|
|
1019
|
+
|