xoev-xwasser 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Unternehmensberatung H & D GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # xwasser-rs
2
+
3
+ TBD.
4
+
5
+ ## Legal
6
+
7
+ Licensed under `MIT` license.
8
+
9
+ ## Features
10
+
11
+ TBD.
12
+
13
+ ## Usage
14
+
15
+ TBD.
16
+
17
+ ## Development
18
+
19
+ wasm-pack watcher:
20
+
21
+ ```sh
22
+ cargo watch --watch src -s "wasm-pack build --release --target nodejs --reference-types --weak-refs"
23
+ ```
24
+
25
+ vitest:
26
+
27
+ ```sh
28
+ pnpm i
29
+ pnpm test
30
+ ```
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "xoev-xwasser",
3
+ "collaborators": [
4
+ "H & D GmbH Open Source <contact-oss@h-d-gmbh.de>"
5
+ ],
6
+ "description": "XOEV XWasser XML Standard",
7
+ "version": "0.1.0",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/hd-gmbh-dev/xoev-xwasser-rs.git"
12
+ },
13
+ "files": [
14
+ "xoev_xwasser_bg.wasm",
15
+ "xoev_xwasser.js",
16
+ "xoev_xwasser.d.ts"
17
+ ],
18
+ "main": "xoev_xwasser.js",
19
+ "types": "xoev_xwasser.d.ts"
20
+ }
@@ -0,0 +1,125 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * @param {QualityReport} data
5
+ * @returns {string}
6
+ */
7
+ export function create_quality_report_xml(data: QualityReport): string;
8
+ /**
9
+ * @param {string} xml
10
+ * @returns {QualityReport}
11
+ */
12
+ export function parse_quality_report_xml(xml: string): QualityReport;
13
+ export interface Code {
14
+ list_uri?: string | undefined;
15
+ list_version_id?: string | undefined;
16
+ code: string;
17
+ }
18
+
19
+ export interface NachrichtenTyp {
20
+ code: Code;
21
+ }
22
+
23
+ export interface IdentifikationNachricht {
24
+ nachrichten_uuid: string;
25
+ nachrichten_typ: NachrichtenTyp;
26
+ erstellungszeitpunkt: string;
27
+ }
28
+
29
+ export interface Verzeichnisdienst {
30
+ code: Code;
31
+ }
32
+
33
+ export interface Leser {
34
+ verzeichnisdienst: Verzeichnisdienst;
35
+ kennung: string;
36
+ name: string;
37
+ }
38
+
39
+ export interface Autor {
40
+ verzeichnisdienst: Verzeichnisdienst;
41
+ kennung: string;
42
+ name: string;
43
+ }
44
+
45
+ export interface NachrichtenkopfG2g {
46
+ identifikation_nachricht: IdentifikationNachricht;
47
+ leser: Leser;
48
+ autor: Autor;
49
+ }
50
+
51
+ export interface IdentifikationVorgang {
52
+ vorgangs_id: string;
53
+ }
54
+
55
+ export interface Untersuchungsverfahren {
56
+ code: Code;
57
+ }
58
+
59
+ export interface UntersuchterParameter {
60
+ code: Code;
61
+ }
62
+
63
+ export interface BewertungUntersuchungswert {
64
+ code: Code;
65
+ }
66
+
67
+ export interface AnalyseergebnisParameter {
68
+ analyseergebnis_parameter_id: string;
69
+ zugelassene_untersuchungsstelle_id: string;
70
+ anschrift_id: string;
71
+ analyse_im_rahmen_der_akkreditierung: boolean;
72
+ untersuchungsverfahren: Untersuchungsverfahren;
73
+ untersuchterParameter: UntersuchterParameter;
74
+ bewertungUntersuchungswert: BewertungUntersuchungswert;
75
+ }
76
+
77
+ export interface Probe {
78
+ probe_id: string;
79
+ probennahmestelle_id: string;
80
+ analyseergebnis_parameter: AnalyseergebnisParameter;
81
+ }
82
+
83
+ export interface Probennahmestelle {
84
+ probennahmestelle_id: string;
85
+ objekt_id: string;
86
+ probe: Probe[];
87
+ name_probennahmestelle: string;
88
+ art_probennahmestelle: string;
89
+ medium_an_der_probennahmestelle: string;
90
+ }
91
+
92
+ export interface Pruefbericht {
93
+ pruefbericht_id: string;
94
+ probennahmestelle: Probennahmestelle[];
95
+ name_beauftragte_untersuchungsstelle: string;
96
+ pruefgericht_gem_vorgaben_akkredition: string;
97
+ titel: string;
98
+ gesamtbewertung: string;
99
+ auffaelligkeiten: string;
100
+ zeitpunkt_validierung_pruefbericht: string;
101
+ fuer_validierung_verantwortliche_person: string;
102
+ pruefbericht_id_labor: string;
103
+ sw_version: string;
104
+ sprache_pruefbericht: string;
105
+ rechtlicher_disclaimer: string;
106
+ zeitpunkt_uebermittlung_an_shapth: string;
107
+ auftraggeber_rel: string;
108
+ }
109
+
110
+ export interface VorgangType {
111
+ pruefbericht: Pruefbericht;
112
+ }
113
+
114
+ export interface Vorgang {
115
+ identifikation_vorgang: IdentifikationVorgang;
116
+ vorgang_type: VorgangType;
117
+ }
118
+
119
+ export interface QualityReport {
120
+ produkt: string;
121
+ test?: boolean;
122
+ nachrichtenkopf_g2g: NachrichtenkopfG2g;
123
+ vorgang: Vorgang;
124
+ }
125
+
@@ -0,0 +1,455 @@
1
+ let imports = {};
2
+ imports['__wbindgen_placeholder__'] = module.exports;
3
+ let wasm;
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
+
6
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
7
+
8
+ cachedTextDecoder.decode();
9
+
10
+ let cachedUint8Memory0 = null;
11
+
12
+ function getUint8Memory0() {
13
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
14
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
15
+ }
16
+ return cachedUint8Memory0;
17
+ }
18
+
19
+ function getStringFromWasm0(ptr, len) {
20
+ ptr = ptr >>> 0;
21
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
22
+ }
23
+
24
+ let WASM_VECTOR_LEN = 0;
25
+
26
+ let cachedTextEncoder = new TextEncoder('utf-8');
27
+
28
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
29
+ ? function (arg, view) {
30
+ return cachedTextEncoder.encodeInto(arg, view);
31
+ }
32
+ : function (arg, view) {
33
+ const buf = cachedTextEncoder.encode(arg);
34
+ view.set(buf);
35
+ return {
36
+ read: arg.length,
37
+ written: buf.length
38
+ };
39
+ });
40
+
41
+ function passStringToWasm0(arg, malloc, realloc) {
42
+
43
+ if (realloc === undefined) {
44
+ const buf = cachedTextEncoder.encode(arg);
45
+ const ptr = malloc(buf.length, 1) >>> 0;
46
+ getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
47
+ WASM_VECTOR_LEN = buf.length;
48
+ return ptr;
49
+ }
50
+
51
+ let len = arg.length;
52
+ let ptr = malloc(len, 1) >>> 0;
53
+
54
+ const mem = getUint8Memory0();
55
+
56
+ let offset = 0;
57
+
58
+ for (; offset < len; offset++) {
59
+ const code = arg.charCodeAt(offset);
60
+ if (code > 0x7F) break;
61
+ mem[ptr + offset] = code;
62
+ }
63
+
64
+ if (offset !== len) {
65
+ if (offset !== 0) {
66
+ arg = arg.slice(offset);
67
+ }
68
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
69
+ const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
70
+ const ret = encodeString(arg, view);
71
+
72
+ offset += ret.written;
73
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
74
+ }
75
+
76
+ WASM_VECTOR_LEN = offset;
77
+ return ptr;
78
+ }
79
+
80
+ function isLikeNone(x) {
81
+ return x === undefined || x === null;
82
+ }
83
+
84
+ let cachedInt32Memory0 = null;
85
+
86
+ function getInt32Memory0() {
87
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
88
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
89
+ }
90
+ return cachedInt32Memory0;
91
+ }
92
+
93
+ let cachedFloat64Memory0 = null;
94
+
95
+ function getFloat64Memory0() {
96
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
97
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
98
+ }
99
+ return cachedFloat64Memory0;
100
+ }
101
+
102
+ function debugString(val) {
103
+ // primitive types
104
+ const type = typeof val;
105
+ if (type == 'number' || type == 'boolean' || val == null) {
106
+ return `${val}`;
107
+ }
108
+ if (type == 'string') {
109
+ return `"${val}"`;
110
+ }
111
+ if (type == 'symbol') {
112
+ const description = val.description;
113
+ if (description == null) {
114
+ return 'Symbol';
115
+ } else {
116
+ return `Symbol(${description})`;
117
+ }
118
+ }
119
+ if (type == 'function') {
120
+ const name = val.name;
121
+ if (typeof name == 'string' && name.length > 0) {
122
+ return `Function(${name})`;
123
+ } else {
124
+ return 'Function';
125
+ }
126
+ }
127
+ // objects
128
+ if (Array.isArray(val)) {
129
+ const length = val.length;
130
+ let debug = '[';
131
+ if (length > 0) {
132
+ debug += debugString(val[0]);
133
+ }
134
+ for(let i = 1; i < length; i++) {
135
+ debug += ', ' + debugString(val[i]);
136
+ }
137
+ debug += ']';
138
+ return debug;
139
+ }
140
+ // Test for built-in
141
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
142
+ let className;
143
+ if (builtInMatches.length > 1) {
144
+ className = builtInMatches[1];
145
+ } else {
146
+ // Failed to match the standard '[object ClassName]'
147
+ return toString.call(val);
148
+ }
149
+ if (className == 'Object') {
150
+ // we're a user defined class or Object
151
+ // JSON.stringify avoids problems with cycles, and is generally much
152
+ // easier than looping through ownProperties of `val`.
153
+ try {
154
+ return 'Object(' + JSON.stringify(val) + ')';
155
+ } catch (_) {
156
+ return 'Object';
157
+ }
158
+ }
159
+ // errors
160
+ if (val instanceof Error) {
161
+ return `${val.name}: ${val.message}\n${val.stack}`;
162
+ }
163
+ // TODO we could test for more things here, like `Set`s and `Map`s.
164
+ return className;
165
+ }
166
+
167
+ function takeFromExternrefTable0(idx) {
168
+ const value = wasm.__wbindgen_export_2.get(idx);
169
+ wasm.__externref_table_dealloc(idx);
170
+ return value;
171
+ }
172
+ /**
173
+ * @param {QualityReport} data
174
+ * @returns {string}
175
+ */
176
+ module.exports.create_quality_report_xml = function(data) {
177
+ let deferred2_0;
178
+ let deferred2_1;
179
+ try {
180
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
181
+ wasm.create_quality_report_xml(retptr, data);
182
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
183
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
184
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
185
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
186
+ var ptr1 = r0;
187
+ var len1 = r1;
188
+ if (r3) {
189
+ ptr1 = 0; len1 = 0;
190
+ throw takeFromExternrefTable0(r2);
191
+ }
192
+ deferred2_0 = ptr1;
193
+ deferred2_1 = len1;
194
+ return getStringFromWasm0(ptr1, len1);
195
+ } finally {
196
+ wasm.__wbindgen_add_to_stack_pointer(16);
197
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
198
+ }
199
+ };
200
+
201
+ /**
202
+ * @param {string} xml
203
+ * @returns {QualityReport}
204
+ */
205
+ module.exports.parse_quality_report_xml = function(xml) {
206
+ try {
207
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
208
+ const ptr0 = passStringToWasm0(xml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
209
+ const len0 = WASM_VECTOR_LEN;
210
+ wasm.parse_quality_report_xml(retptr, ptr0, len0);
211
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
212
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
213
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
214
+ if (r2) {
215
+ throw takeFromExternrefTable0(r1);
216
+ }
217
+ return takeFromExternrefTable0(r0);
218
+ } finally {
219
+ wasm.__wbindgen_add_to_stack_pointer(16);
220
+ }
221
+ };
222
+
223
+ function addToExternrefTable0(obj) {
224
+ const idx = wasm.__externref_table_alloc();
225
+ wasm.__wbindgen_export_2.set(idx, obj);
226
+ return idx;
227
+ }
228
+
229
+ function handleError(f, args) {
230
+ try {
231
+ return f.apply(this, args);
232
+ } catch (e) {
233
+ const idx = addToExternrefTable0(e);
234
+ wasm.__wbindgen_exn_store(idx);
235
+ }
236
+ }
237
+
238
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
239
+ const ret = getStringFromWasm0(arg0, arg1);
240
+ return ret;
241
+ };
242
+
243
+ module.exports.__wbindgen_is_undefined = function(arg0) {
244
+ const ret = arg0 === undefined;
245
+ return ret;
246
+ };
247
+
248
+ module.exports.__wbindgen_in = function(arg0, arg1) {
249
+ const ret = arg0 in arg1;
250
+ return ret;
251
+ };
252
+
253
+ module.exports.__wbindgen_boolean_get = function(arg0) {
254
+ const v = arg0;
255
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
256
+ return ret;
257
+ };
258
+
259
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
260
+ const obj = arg1;
261
+ const ret = typeof(obj) === 'string' ? obj : undefined;
262
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
263
+ var len1 = WASM_VECTOR_LEN;
264
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
265
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
266
+ };
267
+
268
+ module.exports.__wbindgen_is_object = function(arg0) {
269
+ const val = arg0;
270
+ const ret = typeof(val) === 'object' && val !== null;
271
+ return ret;
272
+ };
273
+
274
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
275
+ const ret = arg0 == arg1;
276
+ return ret;
277
+ };
278
+
279
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
280
+ const obj = arg1;
281
+ const ret = typeof(obj) === 'number' ? obj : undefined;
282
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
283
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
284
+ };
285
+
286
+ module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
287
+ const ret = String(arg1);
288
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
289
+ const len1 = WASM_VECTOR_LEN;
290
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
291
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
292
+ };
293
+
294
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
295
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
296
+ return ret;
297
+ };
298
+
299
+ module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
300
+ const ret = arg0[arg1];
301
+ return ret;
302
+ };
303
+
304
+ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
305
+ arg0[arg1] = arg2;
306
+ };
307
+
308
+ module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
309
+ const ret = arg0[arg1 >>> 0];
310
+ return ret;
311
+ };
312
+
313
+ module.exports.__wbg_length_cd7af8117672b8b8 = function(arg0) {
314
+ const ret = arg0.length;
315
+ return ret;
316
+ };
317
+
318
+ module.exports.__wbg_new_16b304a2cfa7ff4a = function() {
319
+ const ret = new Array();
320
+ return ret;
321
+ };
322
+
323
+ module.exports.__wbindgen_is_function = function(arg0) {
324
+ const ret = typeof(arg0) === 'function';
325
+ return ret;
326
+ };
327
+
328
+ module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
329
+ const ret = arg0.next;
330
+ return ret;
331
+ };
332
+
333
+ module.exports.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
334
+ const ret = arg0.next();
335
+ return ret;
336
+ }, arguments) };
337
+
338
+ module.exports.__wbg_done_298b57d23c0fc80c = function(arg0) {
339
+ const ret = arg0.done;
340
+ return ret;
341
+ };
342
+
343
+ module.exports.__wbg_value_d93c65011f51a456 = function(arg0) {
344
+ const ret = arg0.value;
345
+ return ret;
346
+ };
347
+
348
+ module.exports.__wbg_iterator_2cee6dadfd956dfa = function() {
349
+ const ret = Symbol.iterator;
350
+ return ret;
351
+ };
352
+
353
+ module.exports.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
354
+ const ret = Reflect.get(arg0, arg1);
355
+ return ret;
356
+ }, arguments) };
357
+
358
+ module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
359
+ const ret = arg0.call(arg1);
360
+ return ret;
361
+ }, arguments) };
362
+
363
+ module.exports.__wbg_new_72fb9a18b5ae2624 = function() {
364
+ const ret = new Object();
365
+ return ret;
366
+ };
367
+
368
+ module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
369
+ arg0[arg1 >>> 0] = arg2;
370
+ };
371
+
372
+ module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
373
+ const ret = Array.isArray(arg0);
374
+ return ret;
375
+ };
376
+
377
+ module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
378
+ let result;
379
+ try {
380
+ result = arg0 instanceof ArrayBuffer;
381
+ } catch (_) {
382
+ result = false;
383
+ }
384
+ const ret = result;
385
+ return ret;
386
+ };
387
+
388
+ module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
389
+ const ret = arg0.buffer;
390
+ return ret;
391
+ };
392
+
393
+ module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
394
+ const ret = new Uint8Array(arg0);
395
+ return ret;
396
+ };
397
+
398
+ module.exports.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
399
+ arg0.set(arg1, arg2 >>> 0);
400
+ };
401
+
402
+ module.exports.__wbg_length_c20a40f15020d68a = function(arg0) {
403
+ const ret = arg0.length;
404
+ return ret;
405
+ };
406
+
407
+ module.exports.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
408
+ let result;
409
+ try {
410
+ result = arg0 instanceof Uint8Array;
411
+ } catch (_) {
412
+ result = false;
413
+ }
414
+ const ret = result;
415
+ return ret;
416
+ };
417
+
418
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
419
+ const ret = debugString(arg1);
420
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
421
+ const len1 = WASM_VECTOR_LEN;
422
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
423
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
424
+ };
425
+
426
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
427
+ throw new Error(getStringFromWasm0(arg0, arg1));
428
+ };
429
+
430
+ module.exports.__wbindgen_memory = function() {
431
+ const ret = wasm.memory;
432
+ return ret;
433
+ };
434
+
435
+ module.exports.__wbindgen_init_externref_table = function() {
436
+ const table = wasm.__wbindgen_export_2;
437
+ const offset = table.grow(4);
438
+ table.set(0, undefined);
439
+ table.set(offset + 0, undefined);
440
+ table.set(offset + 1, null);
441
+ table.set(offset + 2, true);
442
+ table.set(offset + 3, false);
443
+ ;
444
+ };
445
+
446
+ const path = require('path').join(__dirname, 'xoev_xwasser_bg.wasm');
447
+ const bytes = require('fs').readFileSync(path);
448
+
449
+ const wasmModule = new WebAssembly.Module(bytes);
450
+ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
451
+ wasm = wasmInstance.exports;
452
+ module.exports.__wasm = wasm;
453
+
454
+ wasm.__wbindgen_start();
455
+
Binary file