@empty-sekai/allium-deck-wasm 0.0.5

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,218 @@
1
+ allium-deck-wasm is available under either license below.
2
+
3
+ ===== MIT =====
4
+
5
+ MIT License
6
+
7
+ Copyright (c) 2025 allium / emptysekai
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ===== Apache-2.0 =====
28
+
29
+ Apache License
30
+ Version 2.0, January 2004
31
+ http://www.apache.org/licenses/
32
+
33
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
34
+
35
+ 1. Definitions.
36
+
37
+ "License" shall mean the terms and conditions for use, reproduction,
38
+ and distribution as defined by Sections 1 through 9 of this document.
39
+
40
+ "Licensor" shall mean the copyright owner or entity authorized by
41
+ the copyright owner that is granting the License.
42
+
43
+ Legal Entity" shall mean the union of the acting entity and all
44
+ other entities that control, are controlled by, or are under common
45
+ control with that entity. For the purposes of this definition,
46
+ "control" means (i) the power, direct or indirect, to cause the
47
+ direction or management of such entity, whether by contract or
48
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
49
+ outstanding shares, or (iii) beneficial ownership of such entity.
50
+
51
+ "You" (or "Your") shall mean an individual or Legal Entity
52
+ exercising permissions granted by this License.
53
+
54
+ "Source" form shall mean the preferred form for making modifications,
55
+ including but not limited to software source code, documentation
56
+ source, and configuration files.
57
+
58
+ "Object" form shall mean any form resulting from mechanical
59
+ transformation or translation of a Source form, including but
60
+ not limited to compiled object code, generated documentation,
61
+ and conversions to other media types.
62
+
63
+ "Work" shall mean the work of authorship, whether in Source or
64
+ Object form, made available under the License, as indicated by a
65
+ copyright notice that is included in or attached to the work
66
+ (an example is provided in the Appendix below).
67
+
68
+ "Derivative Works" shall mean any work, whether in Source or Object
69
+ form, that is based on (or derived from) the Work and for which the
70
+ editorial revisions, annotations, elaborations, or other modifications
71
+ represent, as a whole, an original work of authorship. For the purposes
72
+ of this License, Derivative Works shall not include works that remain
73
+ separable from, or merely link (or bind by name) to the interfaces of,
74
+ the Work and Derivative Works thereof.
75
+
76
+ "Contribution" shall mean any work of authorship, including
77
+ the original version of the Work and any modifications or additions
78
+ to that Work or Derivative Works thereof, that is intentionally
79
+ submitted to Licensor for inclusion in the Work by the copyright owner
80
+ or by an individual or Legal Entity authorized to submit on behalf of
81
+ the copyright owner. For the purposes of this definition, "submitted"
82
+ means any form of electronic, verbal, or written communication sent
83
+ to the Licensor or its representatives, including but not limited to
84
+ communication on electronic mailing lists, source code control systems,
85
+ and issue tracking systems that are managed by, or on behalf of, the
86
+ Licensor for the purpose of discussing and improving the Work, but
87
+ excluding communication that is conspicuously marked or otherwise
88
+ designated in writing by the copyright owner as "Not a Contribution."
89
+
90
+ "Contributor" shall mean Licensor and any individual or Legal Entity
91
+ on behalf of whom a Contribution has been received by Licensor and
92
+ subsequently incorporated within the Work.
93
+
94
+ 2. Grant of Copyright License. Subject to the terms and conditions of
95
+ this License, each Contributor hereby grants to You a perpetual,
96
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
97
+ copyright license to reproduce, prepare Derivative Works of,
98
+ publicly display, publicly perform, sublicense, and distribute the
99
+ Work and such Derivative Works in Source or Object form.
100
+
101
+ 3. Grant of Patent License. Subject to the terms and conditions of
102
+ this License, each Contributor hereby grants to You a perpetual,
103
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ (except as stated in this section) patent license to make, have made,
105
+ use, offer to sell, sell, import, and otherwise transfer the Work,
106
+ where such license applies only to those patent claims licensable
107
+ by such Contributor that are necessarily infringed by their
108
+ Contribution(s) alone or by combination of their Contribution(s)
109
+ with the Work to which such Contribution(s) was submitted. If You
110
+ institute patent litigation against any entity (including a
111
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
112
+ or a Contribution incorporated within the Work constitutes direct
113
+ or contributory patent infringement, then any patent licenses
114
+ granted to You under this License for that Work shall terminate
115
+ as of the date such litigation is filed.
116
+
117
+ 4. Redistribution. You may reproduce and distribute copies of the
118
+ Work or Derivative Works thereof in any medium, with or without
119
+ modifications, and in Source or Object form, provided that You
120
+ meet the following conditions:
121
+
122
+ (a) You must give any other recipients of the Work or
123
+ Derivative Works a copy of this License; and
124
+
125
+ (b) You must cause any modified files to carry prominent notices
126
+ stating that You changed the files; and
127
+
128
+ (c) You must retain, in the Source form of any Derivative Works
129
+ that You distribute, all copyright, patent, trademark, and
130
+ attribution notices from the Source form of the Work,
131
+ excluding those notices that do not pertain to any part of
132
+ the Derivative Works; and
133
+
134
+ (d) If the Work includes a "NOTICE" text file as part of its
135
+ distribution, then any Derivative Works that You distribute must
136
+ include a readable copy of the attribution notices contained
137
+ within such NOTICE file, excluding those notices that do not
138
+ pertain to any part of the Derivative Works, in at least one
139
+ of the following places: within a NOTICE text file distributed
140
+ as part of the Derivative Works; within the Source form or
141
+ documentation, if provided along with the Derivative Works; or,
142
+ within a display generated by the Derivative Works, if and
143
+ wherever such third-party notices normally appear. The contents
144
+ of the NOTICE file are for informational purposes only and
145
+ do not modify the License. You may add Your own attribution
146
+ notices within Derivative Works that You distribute, alongside
147
+ or as an addendum to the NOTICE text from the Work, provided
148
+ that such additional attribution notices cannot be construed
149
+ as modifying the License.
150
+
151
+ You may add Your own copyright statement to Your modifications and
152
+ may provide additional or different license terms and conditions
153
+ for use, reproduction, or distribution of Your modifications, or
154
+ for any such Derivative Works as a whole, provided Your use,
155
+ reproduction, and distribution of the Work otherwise complies with
156
+ the conditions stated in this License.
157
+
158
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
159
+ any Contribution intentionally submitted for inclusion in the Work
160
+ by You to the Licensor shall be under the terms and conditions of
161
+ this License, without any additional terms or conditions.
162
+ Notwithstanding the above, nothing herein shall supersede or modify
163
+ the terms of any separate license agreement you may have executed
164
+ with Licensor regarding such Contributions.
165
+
166
+ 6. Trademarks. This License does not grant permission to use the trade
167
+ names, trademarks, service marks, or product names of the Licensor,
168
+ except as required for reasonable and customary use in describing the
169
+ origin of the Work and reproducing the content of the NOTICE file.
170
+
171
+ 7. Disclaimer of Warranty. Unless required by applicable law or
172
+ agreed to in writing, Licensor provides the Work (and each
173
+ Contributor provides its Contributions) on an "AS IS" BASIS,
174
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
175
+ implied, including, without limitation, any warranties or conditions
176
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
177
+ PARTICULAR PURPOSE. You are solely responsible for determining the
178
+ appropriateness of using or redistributing the Work and assume any
179
+ risks associated with Your exercise of permissions under this License.
180
+
181
+ 8. Limitation of Liability. In no event and under no legal theory,
182
+ whether in tort (including negligence), contract, or otherwise,
183
+ unless required by applicable law (such as deliberate and grossly
184
+ negligent acts) or agreed to in writing, shall any Contributor be
185
+ liable to You for damages, including any direct, indirect, special,
186
+ incidental, or consequential damages of any character arising as a
187
+ result of this License or out of the use or inability to use the
188
+ Work (including but not limited to damages for loss of goodwill,
189
+ work stoppage, computer failure or malfunction, or any and all
190
+ other commercial damages or losses), even if such Contributor
191
+ has been advised of the possibility of such damages.
192
+
193
+ 9. Accepting Warranty or Additional Liability. While redistributing
194
+ the Work or Derivative Works thereof, You may choose to offer,
195
+ and charge a fee for, acceptance of support, warranty, indemnity,
196
+ or other liability obligations and/or rights consistent with this
197
+ License. However, in accepting such obligations, You may act only
198
+ on Your own behalf and on Your sole responsibility, not on behalf
199
+ of any other Contributor, and only if You agree to indemnify,
200
+ defend, and hold each Contributor harmless for any liability
201
+ incurred by, or claims asserted against, such Contributor by reason
202
+ of your accepting any such warranty or additional liability.
203
+
204
+ END OF TERMS AND CONDITIONS
205
+
206
+ Copyright (c) 2025 allium / emptysekai
207
+
208
+ Licensed under the Apache License, Version 2.0 (the "License");
209
+ you may not use this file except in compliance with the License.
210
+ You may obtain a copy of the License at
211
+
212
+ http://www.apache.org/licenses/LICENSE-2.0
213
+
214
+ Unless required by applicable law or agreed to in writing, software
215
+ distributed under the License is distributed on an "AS IS" BASIS,
216
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
217
+ See the License for the specific language governing permissions and
218
+ limitations under the License.
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export function init(): void;
5
+
6
+ /**
7
+ * 浏览器组卡入口。`user_json`/`params_json` 为上传链路 camelCase 格式。
8
+ * 返回 top-5 卡组 JSON(真实游戏卡 ID + 展示指标)。
9
+ */
10
+ export function recommend_embedded(user_json: string, params_json: string): string;
11
+
12
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
13
+
14
+ export interface InitOutput {
15
+ readonly memory: WebAssembly.Memory;
16
+ readonly init: () => void;
17
+ readonly recommend_embedded: (a: number, b: number, c: number, d: number) => [number, number, number, number];
18
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
19
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
20
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
21
+ readonly __wbindgen_externrefs: WebAssembly.Table;
22
+ readonly __externref_table_dealloc: (a: number) => void;
23
+ readonly __wbindgen_start: () => void;
24
+ }
25
+
26
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
27
+
28
+ /**
29
+ * Instantiates the given `module`, which can either be bytes or
30
+ * a precompiled `WebAssembly.Module`.
31
+ *
32
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
33
+ *
34
+ * @returns {InitOutput}
35
+ */
36
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
37
+
38
+ /**
39
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
40
+ * for everything else, calls `WebAssembly.instantiate` directly.
41
+ *
42
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
43
+ *
44
+ * @returns {Promise<InitOutput>}
45
+ */
46
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
package/allium_deck.js ADDED
@@ -0,0 +1,270 @@
1
+ /* @ts-self-types="./allium_deck.d.ts" */
2
+
3
+ export function init() {
4
+ wasm.init();
5
+ }
6
+
7
+ /**
8
+ * 浏览器组卡入口。`user_json`/`params_json` 为上传链路 camelCase 格式。
9
+ * 返回 top-5 卡组 JSON(真实游戏卡 ID + 展示指标)。
10
+ * @param {string} user_json
11
+ * @param {string} params_json
12
+ * @returns {string}
13
+ */
14
+ export function recommend_embedded(user_json, params_json) {
15
+ let deferred4_0;
16
+ let deferred4_1;
17
+ try {
18
+ const ptr0 = passStringToWasm0(user_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
19
+ const len0 = WASM_VECTOR_LEN;
20
+ const ptr1 = passStringToWasm0(params_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
21
+ const len1 = WASM_VECTOR_LEN;
22
+ const ret = wasm.recommend_embedded(ptr0, len0, ptr1, len1);
23
+ var ptr3 = ret[0];
24
+ var len3 = ret[1];
25
+ if (ret[3]) {
26
+ ptr3 = 0; len3 = 0;
27
+ throw takeFromExternrefTable0(ret[2]);
28
+ }
29
+ deferred4_0 = ptr3;
30
+ deferred4_1 = len3;
31
+ return getStringFromWasm0(ptr3, len3);
32
+ } finally {
33
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
34
+ }
35
+ }
36
+ function __wbg_get_imports() {
37
+ const import0 = {
38
+ __proto__: null,
39
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
40
+ let deferred0_0;
41
+ let deferred0_1;
42
+ try {
43
+ deferred0_0 = arg0;
44
+ deferred0_1 = arg1;
45
+ console.error(getStringFromWasm0(arg0, arg1));
46
+ } finally {
47
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
48
+ }
49
+ },
50
+ __wbg_new_227d7c05414eb861: function() {
51
+ const ret = new Error();
52
+ return ret;
53
+ },
54
+ __wbg_now_49bed5c0454e2687: function() {
55
+ const ret = performance.now();
56
+ return ret;
57
+ },
58
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
59
+ const ret = arg1.stack;
60
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
61
+ const len1 = WASM_VECTOR_LEN;
62
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
63
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
64
+ },
65
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
66
+ // Cast intrinsic for `Ref(String) -> Externref`.
67
+ const ret = getStringFromWasm0(arg0, arg1);
68
+ return ret;
69
+ },
70
+ __wbindgen_init_externref_table: function() {
71
+ const table = wasm.__wbindgen_externrefs;
72
+ const offset = table.grow(4);
73
+ table.set(0, undefined);
74
+ table.set(offset + 0, undefined);
75
+ table.set(offset + 1, null);
76
+ table.set(offset + 2, true);
77
+ table.set(offset + 3, false);
78
+ },
79
+ };
80
+ return {
81
+ __proto__: null,
82
+ "./allium_deck_bg.js": import0,
83
+ };
84
+ }
85
+
86
+ let cachedDataViewMemory0 = null;
87
+ function getDataViewMemory0() {
88
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
89
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
90
+ }
91
+ return cachedDataViewMemory0;
92
+ }
93
+
94
+ function getStringFromWasm0(ptr, len) {
95
+ return decodeText(ptr >>> 0, len);
96
+ }
97
+
98
+ let cachedUint8ArrayMemory0 = null;
99
+ function getUint8ArrayMemory0() {
100
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
101
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
102
+ }
103
+ return cachedUint8ArrayMemory0;
104
+ }
105
+
106
+ function passStringToWasm0(arg, malloc, realloc) {
107
+ if (realloc === undefined) {
108
+ const buf = cachedTextEncoder.encode(arg);
109
+ const ptr = malloc(buf.length, 1) >>> 0;
110
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
111
+ WASM_VECTOR_LEN = buf.length;
112
+ return ptr;
113
+ }
114
+
115
+ let len = arg.length;
116
+ let ptr = malloc(len, 1) >>> 0;
117
+
118
+ const mem = getUint8ArrayMemory0();
119
+
120
+ let offset = 0;
121
+
122
+ for (; offset < len; offset++) {
123
+ const code = arg.charCodeAt(offset);
124
+ if (code > 0x7F) break;
125
+ mem[ptr + offset] = code;
126
+ }
127
+ if (offset !== len) {
128
+ if (offset !== 0) {
129
+ arg = arg.slice(offset);
130
+ }
131
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
132
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
133
+ const ret = cachedTextEncoder.encodeInto(arg, view);
134
+
135
+ offset += ret.written;
136
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
137
+ }
138
+
139
+ WASM_VECTOR_LEN = offset;
140
+ return ptr;
141
+ }
142
+
143
+ function takeFromExternrefTable0(idx) {
144
+ const value = wasm.__wbindgen_externrefs.get(idx);
145
+ wasm.__externref_table_dealloc(idx);
146
+ return value;
147
+ }
148
+
149
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
150
+ cachedTextDecoder.decode();
151
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
152
+ let numBytesDecoded = 0;
153
+ function decodeText(ptr, len) {
154
+ numBytesDecoded += len;
155
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
156
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
157
+ cachedTextDecoder.decode();
158
+ numBytesDecoded = len;
159
+ }
160
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
161
+ }
162
+
163
+ const cachedTextEncoder = new TextEncoder();
164
+
165
+ if (!('encodeInto' in cachedTextEncoder)) {
166
+ cachedTextEncoder.encodeInto = function (arg, view) {
167
+ const buf = cachedTextEncoder.encode(arg);
168
+ view.set(buf);
169
+ return {
170
+ read: arg.length,
171
+ written: buf.length
172
+ };
173
+ };
174
+ }
175
+
176
+ let WASM_VECTOR_LEN = 0;
177
+
178
+ let wasmModule, wasmInstance, wasm;
179
+ function __wbg_finalize_init(instance, module) {
180
+ wasmInstance = instance;
181
+ wasm = instance.exports;
182
+ wasmModule = module;
183
+ cachedDataViewMemory0 = null;
184
+ cachedUint8ArrayMemory0 = null;
185
+ wasm.__wbindgen_start();
186
+ return wasm;
187
+ }
188
+
189
+ async function __wbg_load(module, imports) {
190
+ if (typeof Response === 'function' && module instanceof Response) {
191
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
192
+ try {
193
+ return await WebAssembly.instantiateStreaming(module, imports);
194
+ } catch (e) {
195
+ const validResponse = module.ok && expectedResponseType(module.type);
196
+
197
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
198
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
199
+
200
+ } else { throw e; }
201
+ }
202
+ }
203
+
204
+ const bytes = await module.arrayBuffer();
205
+ return await WebAssembly.instantiate(bytes, imports);
206
+ } else {
207
+ const instance = await WebAssembly.instantiate(module, imports);
208
+
209
+ if (instance instanceof WebAssembly.Instance) {
210
+ return { instance, module };
211
+ } else {
212
+ return instance;
213
+ }
214
+ }
215
+
216
+ function expectedResponseType(type) {
217
+ switch (type) {
218
+ case 'basic': case 'cors': case 'default': return true;
219
+ }
220
+ return false;
221
+ }
222
+ }
223
+
224
+ function initSync(module) {
225
+ if (wasm !== undefined) return wasm;
226
+
227
+
228
+ if (module !== undefined) {
229
+ if (Object.getPrototypeOf(module) === Object.prototype) {
230
+ ({module} = module)
231
+ } else {
232
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
233
+ }
234
+ }
235
+
236
+ const imports = __wbg_get_imports();
237
+ if (!(module instanceof WebAssembly.Module)) {
238
+ module = new WebAssembly.Module(module);
239
+ }
240
+ const instance = new WebAssembly.Instance(module, imports);
241
+ return __wbg_finalize_init(instance, module);
242
+ }
243
+
244
+ async function __wbg_init(module_or_path) {
245
+ if (wasm !== undefined) return wasm;
246
+
247
+
248
+ if (module_or_path !== undefined) {
249
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
250
+ ({module_or_path} = module_or_path)
251
+ } else {
252
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
253
+ }
254
+ }
255
+
256
+ if (module_or_path === undefined) {
257
+ module_or_path = new URL('allium_deck_bg.wasm', import.meta.url);
258
+ }
259
+ const imports = __wbg_get_imports();
260
+
261
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
262
+ module_or_path = fetch(module_or_path);
263
+ }
264
+
265
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
266
+
267
+ return __wbg_finalize_init(instance, module);
268
+ }
269
+
270
+ export { initSync, __wbg_init as default };
Binary file
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@empty-sekai/allium-deck-wasm",
3
+ "type": "module",
4
+ "description": "Browser WASM bindings and embedded Project Sekai data for allium-deck",
5
+ "version": "0.0.5",
6
+ "license": "MIT OR Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/empty-sekai/allium-deck"
10
+ },
11
+ "files": [
12
+ "allium_deck_bg.wasm",
13
+ "allium_deck.js",
14
+ "allium_deck.d.ts"
15
+ ],
16
+ "main": "allium_deck.js",
17
+ "types": "allium_deck.d.ts",
18
+ "sideEffects": [
19
+ "./snippets/*"
20
+ ]
21
+ }