@flywheel-io/fw-file-rs 0.4.0 → 0.5.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/dcm/dcm.d.ts +25 -12
- package/dcm/dcm.js +299 -276
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +9 -7
- package/package.json +1 -1
package/dcm/dcm.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export function read_until_pixels(file: File, stop_tags: any, max_size?: number | null): Promise<Uint8Array>;
|
|
5
|
-
export function group_series(path_meta_pairs: any, group_by_tags: any, split_localizer: boolean): any;
|
|
6
|
-
export function get_fw_meta(path_meta_pairs: any, arg1: any): any;
|
|
7
|
-
export function parse_header(bytes: Uint8Array, include_tags?: string[] | null): any;
|
|
3
|
+
|
|
8
4
|
export class Context {
|
|
9
5
|
free(): void;
|
|
10
6
|
[Symbol.dispose](): void;
|
|
11
7
|
deid_header(bytes: Uint8Array): Uint8Array;
|
|
12
8
|
get_fw_meta(header: any): any;
|
|
9
|
+
rename_file(filename: string, bytes: Uint8Array): any;
|
|
13
10
|
deid_profile(yaml: string): Context;
|
|
14
11
|
group_series(path_header_pairs: any): any;
|
|
15
12
|
include_tags(tags: any): Context;
|
|
@@ -20,11 +17,13 @@ export class Context {
|
|
|
20
17
|
split_localizer(flag: boolean): Context;
|
|
21
18
|
get_deid_profile(): DeidProfile | undefined;
|
|
22
19
|
read_until_pixels(file: File): Promise<Uint8Array>;
|
|
20
|
+
matches_file_filter(filename: string): boolean;
|
|
23
21
|
constructor();
|
|
24
22
|
static default(): Context;
|
|
25
23
|
mappings(mappings: any): Context;
|
|
26
24
|
max_size(size: number): Context;
|
|
27
25
|
}
|
|
26
|
+
|
|
28
27
|
export class DeidProfile {
|
|
29
28
|
private constructor();
|
|
30
29
|
free(): void;
|
|
@@ -32,12 +31,23 @@ export class DeidProfile {
|
|
|
32
31
|
deid_dcm(dcm_bytes: Uint8Array): Uint8Array;
|
|
33
32
|
static from_yaml(yaml: string): DeidProfile;
|
|
34
33
|
}
|
|
34
|
+
|
|
35
35
|
export class WasmDCMGroup {
|
|
36
36
|
private constructor();
|
|
37
37
|
free(): void;
|
|
38
38
|
[Symbol.dispose](): void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export function create_dcm_as_bytes(tags_js: any): Uint8Array;
|
|
42
|
+
|
|
43
|
+
export function get_fw_meta(path_meta_pairs: any, arg1: any): any;
|
|
44
|
+
|
|
45
|
+
export function group_series(path_meta_pairs: any, group_by_tags: any, split_localizer: boolean): any;
|
|
46
|
+
|
|
47
|
+
export function parse_header(bytes: Uint8Array, include_tags?: string[] | null): any;
|
|
48
|
+
|
|
49
|
+
export function read_until_pixels(file: File, stop_tags: any, max_size?: number | null): Promise<Uint8Array>;
|
|
50
|
+
|
|
41
51
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
42
52
|
|
|
43
53
|
export interface InitOutput {
|
|
@@ -53,24 +63,26 @@ export interface InitOutput {
|
|
|
53
63
|
readonly context_include_tags: (a: number, b: any) => [number, number, number];
|
|
54
64
|
readonly context_is_dcm_filename: (a: number, b: number) => number;
|
|
55
65
|
readonly context_mappings: (a: number, b: any) => [number, number, number];
|
|
66
|
+
readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
|
|
56
67
|
readonly context_max_size: (a: number, b: number) => number;
|
|
57
68
|
readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
|
|
58
69
|
readonly context_read_until_pixels: (a: number, b: any) => any;
|
|
70
|
+
readonly context_rename_file: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
59
71
|
readonly context_split_localizer: (a: number, b: number) => number;
|
|
60
72
|
readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
61
73
|
readonly context_new: () => number;
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
74
|
+
readonly get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
75
|
+
readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
64
76
|
readonly __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
65
77
|
readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
66
78
|
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
67
79
|
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
68
80
|
readonly group_series: (a: any, b: any, c: number) => any;
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
81
|
+
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
82
|
+
readonly read_until_pixels: (a: any, b: any, c: number) => any;
|
|
83
|
+
readonly wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9: (a: number, b: number, c: any) => void;
|
|
84
|
+
readonly wasm_bindgen__closure__destroy__h24f1c33a4f08db65: (a: number, b: number) => void;
|
|
85
|
+
readonly wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9: (a: number, b: number, c: any, d: any) => void;
|
|
74
86
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
75
87
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
76
88
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -82,6 +94,7 @@ export interface InitOutput {
|
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
97
|
+
|
|
85
98
|
/**
|
|
86
99
|
* Instantiates the given `module`, which can either be bytes or
|
|
87
100
|
* a precompiled `WebAssembly.Module`.
|
package/dcm/dcm.js
CHANGED
|
@@ -1,101 +1,14 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
-
}
|
|
9
|
-
return cachedUint8ArrayMemory0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
-
|
|
14
|
-
cachedTextDecoder.decode();
|
|
15
|
-
|
|
16
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
-
let numBytesDecoded = 0;
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
numBytesDecoded += len;
|
|
20
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
numBytesDecoded = len;
|
|
24
|
-
}
|
|
25
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function getStringFromWasm0(ptr, len) {
|
|
29
|
-
ptr = ptr >>> 0;
|
|
30
|
-
return decodeText(ptr, len);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let WASM_VECTOR_LEN = 0;
|
|
34
|
-
|
|
35
|
-
const cachedTextEncoder = new TextEncoder();
|
|
36
|
-
|
|
37
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
38
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
39
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
40
|
-
view.set(buf);
|
|
41
|
-
return {
|
|
42
|
-
read: arg.length,
|
|
43
|
-
written: buf.length
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
49
|
-
|
|
50
|
-
if (realloc === undefined) {
|
|
51
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
52
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
53
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
54
|
-
WASM_VECTOR_LEN = buf.length;
|
|
55
|
-
return ptr;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
let len = arg.length;
|
|
59
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
60
|
-
|
|
61
|
-
const mem = getUint8ArrayMemory0();
|
|
62
|
-
|
|
63
|
-
let offset = 0;
|
|
64
|
-
|
|
65
|
-
for (; offset < len; offset++) {
|
|
66
|
-
const code = arg.charCodeAt(offset);
|
|
67
|
-
if (code > 0x7F) break;
|
|
68
|
-
mem[ptr + offset] = code;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (offset !== len) {
|
|
72
|
-
if (offset !== 0) {
|
|
73
|
-
arg = arg.slice(offset);
|
|
74
|
-
}
|
|
75
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
76
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
77
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
78
|
-
|
|
79
|
-
offset += ret.written;
|
|
80
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
WASM_VECTOR_LEN = offset;
|
|
84
|
-
return ptr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let cachedDataViewMemory0 = null;
|
|
88
|
-
|
|
89
|
-
function getDataViewMemory0() {
|
|
90
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
91
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
92
|
-
}
|
|
93
|
-
return cachedDataViewMemory0;
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
94
7
|
}
|
|
95
8
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
9
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
10
|
+
? { register: () => {}, unregister: () => {} }
|
|
11
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
99
12
|
|
|
100
13
|
function debugString(val) {
|
|
101
14
|
// primitive types
|
|
@@ -162,10 +75,30 @@ function debugString(val) {
|
|
|
162
75
|
return className;
|
|
163
76
|
}
|
|
164
77
|
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
78
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
79
|
+
ptr = ptr >>> 0;
|
|
80
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let cachedDataViewMemory0 = null;
|
|
84
|
+
function getDataViewMemory0() {
|
|
85
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
86
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
87
|
+
}
|
|
88
|
+
return cachedDataViewMemory0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getStringFromWasm0(ptr, len) {
|
|
92
|
+
ptr = ptr >>> 0;
|
|
93
|
+
return decodeText(ptr, len);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let cachedUint8ArrayMemory0 = null;
|
|
97
|
+
function getUint8ArrayMemory0() {
|
|
98
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
99
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
100
|
+
}
|
|
101
|
+
return cachedUint8ArrayMemory0;
|
|
169
102
|
}
|
|
170
103
|
|
|
171
104
|
function handleError(f, args) {
|
|
@@ -177,15 +110,10 @@ function handleError(f, args) {
|
|
|
177
110
|
}
|
|
178
111
|
}
|
|
179
112
|
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
113
|
+
function isLikeNone(x) {
|
|
114
|
+
return x === undefined || x === null;
|
|
183
115
|
}
|
|
184
116
|
|
|
185
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
186
|
-
? { register: () => {}, unregister: () => {} }
|
|
187
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
188
|
-
|
|
189
117
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
190
118
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
191
119
|
const real = (...args) => {
|
|
@@ -221,100 +149,109 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
221
149
|
return ptr;
|
|
222
150
|
}
|
|
223
151
|
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* @param {any} tags_js
|
|
231
|
-
* @returns {Uint8Array}
|
|
232
|
-
*/
|
|
233
|
-
export function create_dcm_as_bytes(tags_js) {
|
|
234
|
-
const ret = wasm.create_dcm_as_bytes(tags_js);
|
|
235
|
-
if (ret[3]) {
|
|
236
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
152
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
153
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
154
|
+
for (let i = 0; i < array.length; i++) {
|
|
155
|
+
const add = addToExternrefTable0(array[i]);
|
|
156
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
237
157
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
return v1;
|
|
158
|
+
WASM_VECTOR_LEN = array.length;
|
|
159
|
+
return ptr;
|
|
241
160
|
}
|
|
242
161
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
return ret;
|
|
252
|
-
}
|
|
162
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
163
|
+
if (realloc === undefined) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
+
WASM_VECTOR_LEN = buf.length;
|
|
168
|
+
return ptr;
|
|
169
|
+
}
|
|
253
170
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
* @param {any} group_by_tags
|
|
257
|
-
* @param {boolean} split_localizer
|
|
258
|
-
* @returns {any}
|
|
259
|
-
*/
|
|
260
|
-
export function group_series(path_meta_pairs, group_by_tags, split_localizer) {
|
|
261
|
-
const ret = wasm.group_series(path_meta_pairs, group_by_tags, split_localizer);
|
|
262
|
-
return ret;
|
|
263
|
-
}
|
|
171
|
+
let len = arg.length;
|
|
172
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
264
173
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
174
|
+
const mem = getUint8ArrayMemory0();
|
|
175
|
+
|
|
176
|
+
let offset = 0;
|
|
177
|
+
|
|
178
|
+
for (; offset < len; offset++) {
|
|
179
|
+
const code = arg.charCodeAt(offset);
|
|
180
|
+
if (code > 0x7F) break;
|
|
181
|
+
mem[ptr + offset] = code;
|
|
274
182
|
}
|
|
275
|
-
|
|
276
|
-
|
|
183
|
+
if (offset !== len) {
|
|
184
|
+
if (offset !== 0) {
|
|
185
|
+
arg = arg.slice(offset);
|
|
186
|
+
}
|
|
187
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
188
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
189
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
277
190
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
for (let i = 0; i < array.length; i++) {
|
|
281
|
-
const add = addToExternrefTable0(array[i]);
|
|
282
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
191
|
+
offset += ret.written;
|
|
192
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
283
193
|
}
|
|
284
|
-
|
|
194
|
+
|
|
195
|
+
WASM_VECTOR_LEN = offset;
|
|
285
196
|
return ptr;
|
|
286
197
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
198
|
+
|
|
199
|
+
function takeFromExternrefTable0(idx) {
|
|
200
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
201
|
+
wasm.__externref_table_dealloc(idx);
|
|
202
|
+
return value;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
206
|
+
cachedTextDecoder.decode();
|
|
207
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
208
|
+
let numBytesDecoded = 0;
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
numBytesDecoded += len;
|
|
211
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
212
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
213
|
+
cachedTextDecoder.decode();
|
|
214
|
+
numBytesDecoded = len;
|
|
215
|
+
}
|
|
216
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const cachedTextEncoder = new TextEncoder();
|
|
220
|
+
|
|
221
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
222
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
223
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
224
|
+
view.set(buf);
|
|
225
|
+
return {
|
|
226
|
+
read: arg.length,
|
|
227
|
+
written: buf.length
|
|
228
|
+
};
|
|
300
229
|
}
|
|
301
|
-
return takeFromExternrefTable0(ret[0]);
|
|
302
230
|
}
|
|
303
231
|
|
|
304
|
-
|
|
305
|
-
|
|
232
|
+
let WASM_VECTOR_LEN = 0;
|
|
233
|
+
|
|
234
|
+
function wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9(arg0, arg1, arg2) {
|
|
235
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9(arg0, arg1, arg2);
|
|
306
236
|
}
|
|
307
237
|
|
|
308
|
-
function
|
|
309
|
-
wasm.
|
|
238
|
+
function wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(arg0, arg1, arg2, arg3) {
|
|
239
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(arg0, arg1, arg2, arg3);
|
|
310
240
|
}
|
|
311
241
|
|
|
312
242
|
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
313
243
|
? { register: () => {}, unregister: () => {} }
|
|
314
244
|
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
|
|
315
245
|
|
|
316
|
-
|
|
246
|
+
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
247
|
+
? { register: () => {}, unregister: () => {} }
|
|
248
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
|
|
317
249
|
|
|
250
|
+
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
251
|
+
? { register: () => {}, unregister: () => {} }
|
|
252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
|
|
253
|
+
|
|
254
|
+
export class Context {
|
|
318
255
|
static __wrap(ptr) {
|
|
319
256
|
ptr = ptr >>> 0;
|
|
320
257
|
const obj = Object.create(Context.prototype);
|
|
@@ -322,14 +259,12 @@ export class Context {
|
|
|
322
259
|
ContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
323
260
|
return obj;
|
|
324
261
|
}
|
|
325
|
-
|
|
326
262
|
__destroy_into_raw() {
|
|
327
263
|
const ptr = this.__wbg_ptr;
|
|
328
264
|
this.__wbg_ptr = 0;
|
|
329
265
|
ContextFinalization.unregister(this);
|
|
330
266
|
return ptr;
|
|
331
267
|
}
|
|
332
|
-
|
|
333
268
|
free() {
|
|
334
269
|
const ptr = this.__destroy_into_raw();
|
|
335
270
|
wasm.__wbg_context_free(ptr, 0);
|
|
@@ -360,6 +295,22 @@ export class Context {
|
|
|
360
295
|
}
|
|
361
296
|
return takeFromExternrefTable0(ret[0]);
|
|
362
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* @param {string} filename
|
|
300
|
+
* @param {Uint8Array} bytes
|
|
301
|
+
* @returns {any}
|
|
302
|
+
*/
|
|
303
|
+
rename_file(filename, bytes) {
|
|
304
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
const len0 = WASM_VECTOR_LEN;
|
|
306
|
+
const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
307
|
+
const len1 = WASM_VECTOR_LEN;
|
|
308
|
+
const ret = wasm.context_rename_file(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
309
|
+
if (ret[2]) {
|
|
310
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
311
|
+
}
|
|
312
|
+
return takeFromExternrefTable0(ret[0]);
|
|
313
|
+
}
|
|
363
314
|
/**
|
|
364
315
|
* @param {string} yaml
|
|
365
316
|
* @returns {Context}
|
|
@@ -468,6 +419,16 @@ export class Context {
|
|
|
468
419
|
const ret = wasm.context_read_until_pixels(this.__wbg_ptr, file);
|
|
469
420
|
return ret;
|
|
470
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* @param {string} filename
|
|
424
|
+
* @returns {boolean}
|
|
425
|
+
*/
|
|
426
|
+
matches_file_filter(filename) {
|
|
427
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
428
|
+
const len0 = WASM_VECTOR_LEN;
|
|
429
|
+
const ret = wasm.context_matches_file_filter(this.__wbg_ptr, ptr0, len0);
|
|
430
|
+
return ret !== 0;
|
|
431
|
+
}
|
|
471
432
|
constructor() {
|
|
472
433
|
const ret = wasm.context_default();
|
|
473
434
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -505,12 +466,7 @@ export class Context {
|
|
|
505
466
|
}
|
|
506
467
|
if (Symbol.dispose) Context.prototype[Symbol.dispose] = Context.prototype.free;
|
|
507
468
|
|
|
508
|
-
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
509
|
-
? { register: () => {}, unregister: () => {} }
|
|
510
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
|
|
511
|
-
|
|
512
469
|
export class DeidProfile {
|
|
513
|
-
|
|
514
470
|
static __wrap(ptr) {
|
|
515
471
|
ptr = ptr >>> 0;
|
|
516
472
|
const obj = Object.create(DeidProfile.prototype);
|
|
@@ -518,14 +474,12 @@ export class DeidProfile {
|
|
|
518
474
|
DeidProfileFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
519
475
|
return obj;
|
|
520
476
|
}
|
|
521
|
-
|
|
522
477
|
__destroy_into_raw() {
|
|
523
478
|
const ptr = this.__wbg_ptr;
|
|
524
479
|
this.__wbg_ptr = 0;
|
|
525
480
|
DeidProfileFinalization.unregister(this);
|
|
526
481
|
return ptr;
|
|
527
482
|
}
|
|
528
|
-
|
|
529
483
|
free() {
|
|
530
484
|
const ptr = this.__destroy_into_raw();
|
|
531
485
|
wasm.__wbg_deidprofile_free(ptr, 0);
|
|
@@ -561,19 +515,13 @@ export class DeidProfile {
|
|
|
561
515
|
}
|
|
562
516
|
if (Symbol.dispose) DeidProfile.prototype[Symbol.dispose] = DeidProfile.prototype.free;
|
|
563
517
|
|
|
564
|
-
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
565
|
-
? { register: () => {}, unregister: () => {} }
|
|
566
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
|
|
567
|
-
|
|
568
518
|
export class WasmDCMGroup {
|
|
569
|
-
|
|
570
519
|
__destroy_into_raw() {
|
|
571
520
|
const ptr = this.__wbg_ptr;
|
|
572
521
|
this.__wbg_ptr = 0;
|
|
573
522
|
WasmDCMGroupFinalization.unregister(this);
|
|
574
523
|
return ptr;
|
|
575
524
|
}
|
|
576
|
-
|
|
577
525
|
free() {
|
|
578
526
|
const ptr = this.__destroy_into_raw();
|
|
579
527
|
wasm.__wbg_wasmdcmgroup_free(ptr, 0);
|
|
@@ -581,6 +529,72 @@ export class WasmDCMGroup {
|
|
|
581
529
|
}
|
|
582
530
|
if (Symbol.dispose) WasmDCMGroup.prototype[Symbol.dispose] = WasmDCMGroup.prototype.free;
|
|
583
531
|
|
|
532
|
+
/**
|
|
533
|
+
* @param {any} tags_js
|
|
534
|
+
* @returns {Uint8Array}
|
|
535
|
+
*/
|
|
536
|
+
export function create_dcm_as_bytes(tags_js) {
|
|
537
|
+
const ret = wasm.create_dcm_as_bytes(tags_js);
|
|
538
|
+
if (ret[3]) {
|
|
539
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
540
|
+
}
|
|
541
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
542
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
543
|
+
return v1;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @param {any} path_meta_pairs
|
|
548
|
+
* @param {any} arg1
|
|
549
|
+
* @returns {any}
|
|
550
|
+
*/
|
|
551
|
+
export function get_fw_meta(path_meta_pairs, arg1) {
|
|
552
|
+
const ret = wasm.get_fw_meta(path_meta_pairs, arg1);
|
|
553
|
+
if (ret[2]) {
|
|
554
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
555
|
+
}
|
|
556
|
+
return takeFromExternrefTable0(ret[0]);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @param {any} path_meta_pairs
|
|
561
|
+
* @param {any} group_by_tags
|
|
562
|
+
* @param {boolean} split_localizer
|
|
563
|
+
* @returns {any}
|
|
564
|
+
*/
|
|
565
|
+
export function group_series(path_meta_pairs, group_by_tags, split_localizer) {
|
|
566
|
+
const ret = wasm.group_series(path_meta_pairs, group_by_tags, split_localizer);
|
|
567
|
+
return ret;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {Uint8Array} bytes
|
|
572
|
+
* @param {string[] | null} [include_tags]
|
|
573
|
+
* @returns {any}
|
|
574
|
+
*/
|
|
575
|
+
export function parse_header(bytes, include_tags) {
|
|
576
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
577
|
+
const len0 = WASM_VECTOR_LEN;
|
|
578
|
+
var ptr1 = isLikeNone(include_tags) ? 0 : passArrayJsValueToWasm0(include_tags, wasm.__wbindgen_malloc);
|
|
579
|
+
var len1 = WASM_VECTOR_LEN;
|
|
580
|
+
const ret = wasm.parse_header(ptr0, len0, ptr1, len1);
|
|
581
|
+
if (ret[2]) {
|
|
582
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
583
|
+
}
|
|
584
|
+
return takeFromExternrefTable0(ret[0]);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @param {File} file
|
|
589
|
+
* @param {any} stop_tags
|
|
590
|
+
* @param {number | null} [max_size]
|
|
591
|
+
* @returns {Promise<Uint8Array>}
|
|
592
|
+
*/
|
|
593
|
+
export function read_until_pixels(file, stop_tags, max_size) {
|
|
594
|
+
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? 0x100000001 : (max_size) >>> 0);
|
|
595
|
+
return ret;
|
|
596
|
+
}
|
|
597
|
+
|
|
584
598
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
585
599
|
|
|
586
600
|
async function __wbg_load(module, imports) {
|
|
@@ -588,7 +602,6 @@ async function __wbg_load(module, imports) {
|
|
|
588
602
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
589
603
|
try {
|
|
590
604
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
591
|
-
|
|
592
605
|
} catch (e) {
|
|
593
606
|
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
594
607
|
|
|
@@ -603,13 +616,11 @@ async function __wbg_load(module, imports) {
|
|
|
603
616
|
|
|
604
617
|
const bytes = await module.arrayBuffer();
|
|
605
618
|
return await WebAssembly.instantiate(bytes, imports);
|
|
606
|
-
|
|
607
619
|
} else {
|
|
608
620
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
609
621
|
|
|
610
622
|
if (instance instanceof WebAssembly.Instance) {
|
|
611
623
|
return { instance, module };
|
|
612
|
-
|
|
613
624
|
} else {
|
|
614
625
|
return instance;
|
|
615
626
|
}
|
|
@@ -619,11 +630,11 @@ async function __wbg_load(module, imports) {
|
|
|
619
630
|
function __wbg_get_imports() {
|
|
620
631
|
const imports = {};
|
|
621
632
|
imports.wbg = {};
|
|
622
|
-
imports.wbg.
|
|
633
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
623
634
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
624
635
|
return ret;
|
|
625
636
|
};
|
|
626
|
-
imports.wbg.
|
|
637
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
627
638
|
const ret = Number(arg0);
|
|
628
639
|
return ret;
|
|
629
640
|
};
|
|
@@ -634,68 +645,68 @@ function __wbg_get_imports() {
|
|
|
634
645
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
635
646
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
636
647
|
};
|
|
637
|
-
imports.wbg.
|
|
648
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
638
649
|
const v = arg1;
|
|
639
650
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
640
651
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
641
652
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
642
653
|
};
|
|
643
|
-
imports.wbg.
|
|
654
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
644
655
|
const v = arg0;
|
|
645
656
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
646
657
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
647
658
|
};
|
|
648
|
-
imports.wbg.
|
|
659
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
649
660
|
const ret = debugString(arg1);
|
|
650
661
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
651
662
|
const len1 = WASM_VECTOR_LEN;
|
|
652
663
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
653
664
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
654
665
|
};
|
|
655
|
-
imports.wbg.
|
|
666
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
656
667
|
const ret = arg0 in arg1;
|
|
657
668
|
return ret;
|
|
658
669
|
};
|
|
659
|
-
imports.wbg.
|
|
670
|
+
imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
660
671
|
const ret = typeof(arg0) === 'bigint';
|
|
661
672
|
return ret;
|
|
662
673
|
};
|
|
663
|
-
imports.wbg.
|
|
674
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
664
675
|
const ret = typeof(arg0) === 'function';
|
|
665
676
|
return ret;
|
|
666
677
|
};
|
|
667
|
-
imports.wbg.
|
|
678
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
668
679
|
const ret = arg0 === null;
|
|
669
680
|
return ret;
|
|
670
681
|
};
|
|
671
|
-
imports.wbg.
|
|
682
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
672
683
|
const val = arg0;
|
|
673
684
|
const ret = typeof(val) === 'object' && val !== null;
|
|
674
685
|
return ret;
|
|
675
686
|
};
|
|
676
|
-
imports.wbg.
|
|
687
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
677
688
|
const ret = typeof(arg0) === 'string';
|
|
678
689
|
return ret;
|
|
679
690
|
};
|
|
680
|
-
imports.wbg.
|
|
691
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
681
692
|
const ret = arg0 === undefined;
|
|
682
693
|
return ret;
|
|
683
694
|
};
|
|
684
|
-
imports.wbg.
|
|
695
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
685
696
|
const ret = arg0 === arg1;
|
|
686
697
|
return ret;
|
|
687
698
|
};
|
|
688
|
-
imports.wbg.
|
|
699
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
689
700
|
const ret = arg0 == arg1;
|
|
690
701
|
return ret;
|
|
691
702
|
};
|
|
692
|
-
imports.wbg.
|
|
703
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
693
704
|
const obj = arg1;
|
|
694
705
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
695
706
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
696
707
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
697
708
|
};
|
|
698
|
-
imports.wbg.
|
|
709
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
699
710
|
const obj = arg1;
|
|
700
711
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
701
712
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -703,44 +714,52 @@ function __wbg_get_imports() {
|
|
|
703
714
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
704
715
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
705
716
|
};
|
|
706
|
-
imports.wbg.
|
|
717
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
707
718
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
708
719
|
};
|
|
709
|
-
imports.wbg.
|
|
720
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
710
721
|
arg0._wbg_cb_unref();
|
|
711
722
|
};
|
|
712
|
-
imports.wbg.
|
|
723
|
+
imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function(arg0) {
|
|
713
724
|
const ret = arg0.arrayBuffer();
|
|
714
725
|
return ret;
|
|
715
726
|
};
|
|
716
|
-
imports.wbg.
|
|
727
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
717
728
|
const ret = arg0.call(arg1, arg2);
|
|
718
729
|
return ret;
|
|
719
730
|
}, arguments) };
|
|
720
|
-
imports.wbg.
|
|
731
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
721
732
|
const ret = arg0.call(arg1);
|
|
722
733
|
return ret;
|
|
723
734
|
}, arguments) };
|
|
724
|
-
imports.wbg.
|
|
735
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
725
736
|
const ret = arg0.done;
|
|
726
737
|
return ret;
|
|
727
738
|
};
|
|
728
|
-
imports.wbg.
|
|
739
|
+
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
729
740
|
const ret = Object.entries(arg0);
|
|
730
741
|
return ret;
|
|
731
742
|
};
|
|
732
743
|
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
733
744
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
734
745
|
}, arguments) };
|
|
735
|
-
imports.wbg.
|
|
746
|
+
imports.wbg.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
747
|
+
const ret = arg0.getTime();
|
|
748
|
+
return ret;
|
|
749
|
+
};
|
|
750
|
+
imports.wbg.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
751
|
+
const ret = arg0.getTimezoneOffset();
|
|
752
|
+
return ret;
|
|
753
|
+
};
|
|
754
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
736
755
|
const ret = arg0[arg1 >>> 0];
|
|
737
756
|
return ret;
|
|
738
757
|
};
|
|
739
|
-
imports.wbg.
|
|
758
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
740
759
|
const ret = Reflect.get(arg0, arg1);
|
|
741
760
|
return ret;
|
|
742
761
|
}, arguments) };
|
|
743
|
-
imports.wbg.
|
|
762
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
744
763
|
let result;
|
|
745
764
|
try {
|
|
746
765
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -750,7 +769,7 @@ function __wbg_get_imports() {
|
|
|
750
769
|
const ret = result;
|
|
751
770
|
return ret;
|
|
752
771
|
};
|
|
753
|
-
imports.wbg.
|
|
772
|
+
imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
754
773
|
let result;
|
|
755
774
|
try {
|
|
756
775
|
result = arg0 instanceof Map;
|
|
@@ -760,7 +779,7 @@ function __wbg_get_imports() {
|
|
|
760
779
|
const ret = result;
|
|
761
780
|
return ret;
|
|
762
781
|
};
|
|
763
|
-
imports.wbg.
|
|
782
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
764
783
|
let result;
|
|
765
784
|
try {
|
|
766
785
|
result = arg0 instanceof Uint8Array;
|
|
@@ -770,38 +789,58 @@ function __wbg_get_imports() {
|
|
|
770
789
|
const ret = result;
|
|
771
790
|
return ret;
|
|
772
791
|
};
|
|
773
|
-
imports.wbg.
|
|
792
|
+
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
774
793
|
const ret = Array.isArray(arg0);
|
|
775
794
|
return ret;
|
|
776
795
|
};
|
|
777
|
-
imports.wbg.
|
|
796
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
778
797
|
const ret = Number.isSafeInteger(arg0);
|
|
779
798
|
return ret;
|
|
780
799
|
};
|
|
781
|
-
imports.wbg.
|
|
800
|
+
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
782
801
|
const ret = Symbol.iterator;
|
|
783
802
|
return ret;
|
|
784
803
|
};
|
|
785
|
-
imports.wbg.
|
|
804
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
786
805
|
const ret = arg0.length;
|
|
787
806
|
return ret;
|
|
788
807
|
};
|
|
789
|
-
imports.wbg.
|
|
808
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
790
809
|
const ret = arg0.length;
|
|
791
810
|
return ret;
|
|
792
811
|
};
|
|
793
|
-
imports.wbg.
|
|
812
|
+
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
813
|
+
const ret = new Date();
|
|
814
|
+
return ret;
|
|
815
|
+
};
|
|
816
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
794
817
|
const ret = new Object();
|
|
795
818
|
return ret;
|
|
796
819
|
};
|
|
797
|
-
imports.wbg.
|
|
820
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
821
|
+
const ret = new Array();
|
|
822
|
+
return ret;
|
|
823
|
+
};
|
|
824
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
825
|
+
const ret = new Uint8Array(arg0);
|
|
826
|
+
return ret;
|
|
827
|
+
};
|
|
828
|
+
imports.wbg.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
829
|
+
const ret = new Date(arg0);
|
|
830
|
+
return ret;
|
|
831
|
+
};
|
|
832
|
+
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
833
|
+
const ret = new Map();
|
|
834
|
+
return ret;
|
|
835
|
+
};
|
|
836
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
798
837
|
try {
|
|
799
838
|
var state0 = {a: arg0, b: arg1};
|
|
800
839
|
var cb0 = (arg0, arg1) => {
|
|
801
840
|
const a = state0.a;
|
|
802
841
|
state0.a = 0;
|
|
803
842
|
try {
|
|
804
|
-
return
|
|
843
|
+
return wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(a, state0.b, arg0, arg1);
|
|
805
844
|
} finally {
|
|
806
845
|
state0.a = a;
|
|
807
846
|
}
|
|
@@ -812,91 +851,79 @@ function __wbg_get_imports() {
|
|
|
812
851
|
state0.a = state0.b = 0;
|
|
813
852
|
}
|
|
814
853
|
};
|
|
815
|
-
imports.wbg.
|
|
816
|
-
const ret = new Uint8Array(arg0);
|
|
817
|
-
return ret;
|
|
818
|
-
};
|
|
819
|
-
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
820
|
-
const ret = new Map();
|
|
821
|
-
return ret;
|
|
822
|
-
};
|
|
823
|
-
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
824
|
-
const ret = new Array();
|
|
825
|
-
return ret;
|
|
826
|
-
};
|
|
827
|
-
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
854
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
828
855
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
829
856
|
return ret;
|
|
830
857
|
};
|
|
831
|
-
imports.wbg.
|
|
858
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
832
859
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
833
860
|
return ret;
|
|
834
861
|
};
|
|
835
|
-
imports.wbg.
|
|
836
|
-
const ret = arg0.next();
|
|
837
|
-
return ret;
|
|
838
|
-
}, arguments) };
|
|
839
|
-
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
862
|
+
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
840
863
|
const ret = arg0.next;
|
|
841
864
|
return ret;
|
|
842
865
|
};
|
|
843
|
-
imports.wbg.
|
|
866
|
+
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
867
|
+
const ret = arg0.next();
|
|
868
|
+
return ret;
|
|
869
|
+
}, arguments) };
|
|
870
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
844
871
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
845
872
|
};
|
|
846
|
-
imports.wbg.
|
|
873
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
847
874
|
const ret = arg0.queueMicrotask;
|
|
848
875
|
return ret;
|
|
849
876
|
};
|
|
850
|
-
imports.wbg.
|
|
877
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
851
878
|
queueMicrotask(arg0);
|
|
852
879
|
};
|
|
853
|
-
imports.wbg.
|
|
880
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
854
881
|
const ret = Promise.resolve(arg0);
|
|
855
882
|
return ret;
|
|
856
883
|
};
|
|
857
884
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
858
885
|
arg0[arg1] = arg2;
|
|
859
886
|
};
|
|
860
|
-
imports.wbg.
|
|
887
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
888
|
+
arg0[arg1 >>> 0] = arg2;
|
|
889
|
+
};
|
|
890
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
861
891
|
const ret = arg0.set(arg1, arg2);
|
|
862
892
|
return ret;
|
|
863
893
|
};
|
|
864
|
-
imports.wbg.
|
|
865
|
-
arg0[arg1 >>> 0] = arg2;
|
|
866
|
-
};
|
|
867
|
-
imports.wbg.__wbg_size_0a5a003dbf5dfee8 = function(arg0) {
|
|
894
|
+
imports.wbg.__wbg_size_82fbdb656de23326 = function(arg0) {
|
|
868
895
|
const ret = arg0.size;
|
|
869
896
|
return ret;
|
|
870
897
|
};
|
|
871
|
-
imports.wbg.
|
|
898
|
+
imports.wbg.__wbg_slice_3518c924243cda3a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
872
899
|
const ret = arg0.slice(arg1, arg2);
|
|
873
900
|
return ret;
|
|
874
901
|
}, arguments) };
|
|
875
|
-
imports.wbg.
|
|
902
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
876
903
|
const ret = typeof global === 'undefined' ? null : global;
|
|
877
904
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
878
905
|
};
|
|
879
|
-
imports.wbg.
|
|
906
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
880
907
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
881
908
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
882
909
|
};
|
|
883
|
-
imports.wbg.
|
|
910
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
884
911
|
const ret = typeof self === 'undefined' ? null : self;
|
|
885
912
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
886
913
|
};
|
|
887
|
-
imports.wbg.
|
|
914
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
888
915
|
const ret = typeof window === 'undefined' ? null : window;
|
|
889
916
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
890
917
|
};
|
|
891
|
-
imports.wbg.
|
|
892
|
-
const ret = arg0.then(arg1);
|
|
918
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
919
|
+
const ret = arg0.then(arg1, arg2);
|
|
893
920
|
return ret;
|
|
894
921
|
};
|
|
895
|
-
imports.wbg.
|
|
896
|
-
const ret = arg0.then(arg1
|
|
922
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
923
|
+
const ret = arg0.then(arg1);
|
|
897
924
|
return ret;
|
|
898
925
|
};
|
|
899
|
-
imports.wbg.
|
|
926
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
900
927
|
const ret = arg0.value;
|
|
901
928
|
return ret;
|
|
902
929
|
};
|
|
@@ -920,9 +947,9 @@ function __wbg_get_imports() {
|
|
|
920
947
|
const ret = arg0;
|
|
921
948
|
return ret;
|
|
922
949
|
};
|
|
923
|
-
imports.wbg.
|
|
924
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
925
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
950
|
+
imports.wbg.__wbindgen_cast_f59528fc2c089a81 = function(arg0, arg1) {
|
|
951
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
952
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h24f1c33a4f08db65, wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9);
|
|
926
953
|
return ret;
|
|
927
954
|
};
|
|
928
955
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
@@ -933,7 +960,6 @@ function __wbg_get_imports() {
|
|
|
933
960
|
table.set(offset + 1, null);
|
|
934
961
|
table.set(offset + 2, true);
|
|
935
962
|
table.set(offset + 3, false);
|
|
936
|
-
;
|
|
937
963
|
};
|
|
938
964
|
|
|
939
965
|
return imports;
|
|
@@ -963,13 +989,10 @@ function initSync(module) {
|
|
|
963
989
|
}
|
|
964
990
|
|
|
965
991
|
const imports = __wbg_get_imports();
|
|
966
|
-
|
|
967
992
|
if (!(module instanceof WebAssembly.Module)) {
|
|
968
993
|
module = new WebAssembly.Module(module);
|
|
969
994
|
}
|
|
970
|
-
|
|
971
995
|
const instance = new WebAssembly.Instance(module, imports);
|
|
972
|
-
|
|
973
996
|
return __wbg_finalize_init(instance, module);
|
|
974
997
|
}
|
|
975
998
|
|
package/dcm/dcm_bg.wasm
CHANGED
|
Binary file
|
package/dcm/dcm_bg.wasm.d.ts
CHANGED
|
@@ -12,24 +12,26 @@ export const context_group_series: (a: number, b: any) => [number, number, numbe
|
|
|
12
12
|
export const context_include_tags: (a: number, b: any) => [number, number, number];
|
|
13
13
|
export const context_is_dcm_filename: (a: number, b: number) => number;
|
|
14
14
|
export const context_mappings: (a: number, b: any) => [number, number, number];
|
|
15
|
+
export const context_matches_file_filter: (a: number, b: number, c: number) => number;
|
|
15
16
|
export const context_max_size: (a: number, b: number) => number;
|
|
16
17
|
export const context_parse_header: (a: number, b: number, c: number) => [number, number, number];
|
|
17
18
|
export const context_read_until_pixels: (a: number, b: any) => any;
|
|
19
|
+
export const context_rename_file: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
18
20
|
export const context_split_localizer: (a: number, b: number) => number;
|
|
19
21
|
export const context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
20
22
|
export const context_new: () => number;
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
+
export const get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
24
|
+
export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
23
25
|
export const __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
24
26
|
export const __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
25
27
|
export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
26
28
|
export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
27
29
|
export const group_series: (a: any, b: any, c: number) => any;
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
30
|
+
export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
31
|
+
export const read_until_pixels: (a: any, b: any, c: number) => any;
|
|
32
|
+
export const wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9: (a: number, b: number, c: any) => void;
|
|
33
|
+
export const wasm_bindgen__closure__destroy__h24f1c33a4f08db65: (a: number, b: number) => void;
|
|
34
|
+
export const wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9: (a: number, b: number, c: any, d: any) => void;
|
|
33
35
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
34
36
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
35
37
|
export const __wbindgen_exn_store: (a: number) => void;
|