@yschimke/remote-compose-player-cmp 0.0.1 → 1.18.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.
@@ -0,0 +1,514 @@
1
+
2
+ import * as Li9za2lrby5tanM from './skiko.mjs';
3
+ import * as QGpzLWpvZGEvY29yZQ from '@js-joda/core';
4
+ import * as d2FzbTpqcy1zdHJpbmc from './rcPlayer.js-builtins.mjs';
5
+
6
+ const wasmJsTag = WebAssembly.JSTag;
7
+ const wasmTag = wasmJsTag ?? new WebAssembly.Tag({ parameters: ['externref'] });
8
+
9
+ // Placed here to give access to it from externals (js_code)
10
+ let wasmExports;
11
+ let require;
12
+
13
+ if (typeof process !== 'undefined' && process.release.name === 'node') {
14
+ const module = await import(/* webpackIgnore: true */'node:module');
15
+ const importMeta = import.meta;
16
+ require = module.default.createRequire(importMeta.url);
17
+ }
18
+
19
+ export function setWasmExports(exports) {
20
+ wasmExports = exports;
21
+ }
22
+
23
+ const _ref_Li9za2lrby5tanM_ = Li9za2lrby5tanM;
24
+ const _ref_Li9za2lrby5tanM_c2tpa29BcGk = Li9za2lrby5tanM.skikoApi;
25
+ const _ref_QGpzLWpvZGEvY29yZQ_ = QGpzLWpvZGEvY29yZQ;
26
+
27
+ const cachedJsObjects = new WeakMap();
28
+ function getCachedJsObject(ref, ifNotCached) {
29
+ if (typeof ref !== 'object' && typeof ref !== 'function') return ifNotCached;
30
+ const cached = cachedJsObjects.get(ref);
31
+ if (cached !== void 0) return cached;
32
+ cachedJsObjects.set(ref, ifNotCached);
33
+ return ifNotCached;
34
+ }
35
+
36
+ const js_code = {
37
+ 'kotlin.createJsError' : (message, cause) => new Error(message, { cause }),
38
+ 'kotlin.wasm.internal.jsThrow' : wasmTag === wasmJsTag ? (e) => { throw e; } : () => {},
39
+ 'kotlin.wasm.internal.getJsEmptyString' : () => '',
40
+ 'kotlin.wasm.internal.externrefToInt' : (ref) => Number(ref),
41
+ 'kotlin.wasm.internal.externrefToString' : (ref) => String(ref),
42
+ 'kotlin.wasm.internal.externrefEquals' : (lhs, rhs) => lhs === rhs,
43
+ 'kotlin.wasm.internal.externrefHashCode' :
44
+ (() => {
45
+ const dataView = new DataView(new ArrayBuffer(8));
46
+ function numberHashCode(obj) {
47
+ if ((obj | 0) === obj) {
48
+ return obj | 0;
49
+ } else {
50
+ dataView.setFloat64(0, obj, true);
51
+ return (dataView.getInt32(0, true) * 31 | 0) + dataView.getInt32(4, true) | 0;
52
+ }
53
+ }
54
+
55
+ const hashCodes = new WeakMap();
56
+ function getObjectHashCode(obj) {
57
+ const res = hashCodes.get(obj);
58
+ if (res === undefined) {
59
+ const POW_2_32 = 4294967296;
60
+ const hash = (Math.random() * POW_2_32) | 0;
61
+ hashCodes.set(obj, hash);
62
+ return hash;
63
+ }
64
+ return res;
65
+ }
66
+
67
+ function getStringHashCode(str) {
68
+ var hash = 0;
69
+ for (var i = 0; i < str.length; i++) {
70
+ var code = str.charCodeAt(i);
71
+ hash = (hash * 31 + code) | 0;
72
+ }
73
+ return hash;
74
+ }
75
+
76
+ return (obj) => {
77
+ if (obj == null) {
78
+ return 0;
79
+ }
80
+ switch (typeof obj) {
81
+ case "object":
82
+ case "function":
83
+ return getObjectHashCode(obj);
84
+ case "number":
85
+ return numberHashCode(obj);
86
+ case "boolean":
87
+ return obj ? 1231 : 1237;
88
+ default:
89
+ return getStringHashCode(String(obj));
90
+ }
91
+ }
92
+ })(),
93
+ 'kotlin.wasm.internal.isNullish' : (ref) => ref == null,
94
+ 'kotlin.wasm.internal.getJsTrue' : () => true,
95
+ 'kotlin.wasm.internal.getJsFalse' : () => false,
96
+ 'kotlin.wasm.internal.kotlinUIntToJsNumberUnsafe' : (x) => x >>> 0,
97
+ 'kotlin.wasm.internal.kotlinULongToJsBigIntUnsafe' : (x) => x & 0xFFFFFFFFFFFFFFFFn,
98
+ 'kotlin.wasm.internal.getCachedJsObject_$external_fun' : (p0, p1) => getCachedJsObject(p0, p1),
99
+ 'kotlin.wasm.internal.itoa32_$external_fun' : (p0) => String(p0),
100
+ 'kotlin.wasm.internal.itoa64_$external_fun' : (p0) => String(p0),
101
+ 'kotlin.wasm.internal.utoa64_$external_fun' : (p0) => String(p0),
102
+ 'kotlin.wasm.internal.utoa32_$external_fun' : (p0) => String(p0),
103
+ 'kotlin.io.printlnImpl' : (message) => console.log(message),
104
+ 'kotlin.js.jsArrayGet' : (array, index) => array[index],
105
+ 'kotlin.js.jsArraySet' : (array, index, value) => { array[index] = value },
106
+ 'kotlin.js.JsArray_$external_fun' : () => new Array(),
107
+ 'kotlin.js.length_$external_prop_getter' : (_this) => _this.length,
108
+ 'kotlin.js.stackPlaceHolder_js_code' : () => (''),
109
+ 'kotlin.js.message_$external_prop_getter' : (_this) => _this.message,
110
+ 'kotlin.js.name_$external_prop_setter' : (_this, v) => _this.name = v,
111
+ 'kotlin.js.stack_$external_prop_getter' : (_this) => _this.stack,
112
+ 'kotlin.js.kotlinException_$external_prop_getter' : (_this) => _this.kotlinException,
113
+ 'kotlin.js.kotlinException_$external_prop_setter' : (_this, v) => _this.kotlinException = v,
114
+ 'kotlin.js.JsError_$external_class_instanceof' : (x) => x instanceof Error,
115
+ 'kotlin.js.JsString_$external_class_instanceof' : (x) => typeof x === 'string',
116
+ 'kotlin.js.JsString_$external_class_get' : () => JsString,
117
+ 'kotlin.js.then_$external_fun' : (_this, p0) => _this.then(p0),
118
+ 'kotlin.js.__convertKotlinClosureToJsClosure_((Js?)->Js?)' : (f) => getCachedJsObject(f, (p0) => wasmExports['__callFunction_((Js?)->Js?)'](f, p0)),
119
+ 'kotlin.js.__convertKotlinClosureToJsClosure_((Js)->Js?)' : (f) => getCachedJsObject(f, (p0) => wasmExports['__callFunction_((Js)->Js?)'](f, p0)),
120
+ 'kotlin.js.catch_$external_fun' : (_this, p0) => _this.catch(p0),
121
+ 'kotlin.random.initialSeed' : () => ((Math.random() * Math.pow(2, 32)) | 0),
122
+ 'kotlin.wasm.internal.getJsClassName' : (jsKlass) => jsKlass.name,
123
+ 'kotlin.wasm.internal.instanceOf' : (ref, jsKlass) => ref instanceof jsKlass,
124
+ 'kotlin.wasm.internal.getConstructor' : (obj) => obj.constructor,
125
+ 'kotlin.time.Date_$external_fun' : () => new Date(),
126
+ 'kotlin.time.getTime_$external_fun' : (_this, ) => _this.getTime(),
127
+ 'kotlin.time.tryGetPerformance' : () => typeof globalThis !== 'undefined' && typeof globalThis.performance !== 'undefined' ? globalThis.performance : null,
128
+ 'kotlin.time.getPerformanceNow' : (performance) => performance.now(),
129
+ 'kotlin.time.dateNow' : () => Date.now(),
130
+ 'kotlinx.coroutines.tryGetProcess' : () => (typeof(process) !== 'undefined' && typeof(process.nextTick) === 'function') ? process : null,
131
+ 'kotlinx.coroutines.tryGetWindow' : () => (typeof(window) !== 'undefined' && window != null && typeof(window.addEventListener) === 'function') ? window : null,
132
+ 'kotlinx.coroutines.nextTick_$external_fun' : (_this, p0) => _this.nextTick(p0),
133
+ 'kotlinx.coroutines.__convertKotlinClosureToJsClosure_(()->Unit)' : (f) => getCachedJsObject(f, () => wasmExports['__callFunction_(()->Unit)'](f, )),
134
+ 'kotlinx.coroutines.createScheduleMessagePoster' : (process) => () => Promise.resolve(0).then(process),
135
+ 'kotlinx.coroutines.__callJsClosure_(()->Unit)' : (f, ) => f(),
136
+ 'kotlinx.coroutines.createRescheduleMessagePoster' : (window) => () => window.postMessage('dispatchCoroutine', '*'),
137
+ 'kotlinx.coroutines.subscribeToWindowMessages' : (window, process) => {
138
+ const handler = (event) => {
139
+ if (event.source == window && event.data == 'dispatchCoroutine') {
140
+ event.stopPropagation();
141
+ process();
142
+ }
143
+ }
144
+ window.addEventListener('message', handler, true);
145
+ },
146
+ 'kotlinx.coroutines.setTimeout' : (window, handler, timeout) => window.setTimeout(handler, timeout),
147
+ 'kotlinx.coroutines.clearTimeout' : (handle) => { if (typeof clearTimeout !== 'undefined') clearTimeout(handle); },
148
+ 'kotlinx.coroutines.clearTimeout_$external_fun' : (_this, p0) => _this.clearTimeout(p0),
149
+ 'kotlinx.coroutines.setTimeout_$external_fun' : (p0, p1) => setTimeout(p0, p1),
150
+ 'kotlinx.coroutines.internal.throwAsyncJsError' : (message, className, stack) => {
151
+ var error = new Error();
152
+ error.message = message;
153
+ error.name = className;
154
+ error.stack = stack;
155
+ if (typeof globalThis.reportError === 'function') {
156
+ // Up-to-date browsers and some non-browser JS runtimes (Deno, Bun)
157
+ globalThis.reportError(error);
158
+ } else {
159
+ // Fallback for old browsers (pre-2022), Node.js
160
+ setTimeout(function () { throw error }, 0);
161
+ }
162
+ },
163
+ 'org.w3c.dom.css.cursor_$external_prop_setter' : (_this, v) => _this.cursor = v,
164
+ 'org.w3c.dom.css.height_$external_prop_setter' : (_this, v) => _this.height = v,
165
+ 'org.w3c.dom.css.left_$external_prop_setter' : (_this, v) => _this.left = v,
166
+ 'org.w3c.dom.css.opacity_$external_prop_setter' : (_this, v) => _this.opacity = v,
167
+ 'org.w3c.dom.css.outline_$external_prop_setter' : (_this, v) => _this.outline = v,
168
+ 'org.w3c.dom.css.position_$external_prop_setter' : (_this, v) => _this.position = v,
169
+ 'org.w3c.dom.css.top_$external_prop_setter' : (_this, v) => _this.top = v,
170
+ 'org.w3c.dom.css.whiteSpace_$external_prop_setter' : (_this, v) => _this.whiteSpace = v,
171
+ 'org.w3c.dom.css.width_$external_prop_setter' : (_this, v) => _this.width = v,
172
+ 'org.w3c.dom.css.setProperty_$external_fun' : (_this, p0, p1, p2, isDefault0) => _this.setProperty(p0, p1, isDefault0 ? undefined : p2, ),
173
+ 'org.w3c.dom.css.style_$external_prop_getter' : (_this) => _this.style,
174
+ 'org.w3c.dom.events.addEventListener_$external_fun' : (_this, p0, p1, p2) => _this.addEventListener(p0, p1, p2),
175
+ 'org.w3c.dom.events.__convertKotlinClosureToJsClosure_((Js)->Unit)' : (f) => getCachedJsObject(f, (p0) => wasmExports['__callFunction_((Js)->Unit)'](f, p0)),
176
+ 'org.w3c.dom.events.addEventListener_$external_fun_1' : (_this, p0, p1) => _this.addEventListener(p0, p1),
177
+ 'org.w3c.dom.events.type_$external_prop_getter' : (_this) => _this.type,
178
+ 'org.w3c.dom.events.target_$external_prop_getter' : (_this) => _this.target,
179
+ 'org.w3c.dom.events.cancelable_$external_prop_getter' : (_this) => _this.cancelable,
180
+ 'org.w3c.dom.events.timeStamp_$external_prop_getter' : (_this) => _this.timeStamp,
181
+ 'org.w3c.dom.events.preventDefault_$external_fun' : (_this, ) => _this.preventDefault(),
182
+ 'org.w3c.dom.events.Event_$external_class_instanceof' : (x) => x instanceof Event,
183
+ 'org.w3c.dom.events.Event_$external_class_get' : () => Event,
184
+ 'org.w3c.dom.events.FocusEvent_$external_class_instanceof' : (x) => x instanceof FocusEvent,
185
+ 'org.w3c.dom.events.FocusEvent_$external_class_get' : () => FocusEvent,
186
+ 'org.w3c.dom.events.clientX_$external_prop_getter' : (_this) => _this.clientX,
187
+ 'org.w3c.dom.events.clientY_$external_prop_getter' : (_this) => _this.clientY,
188
+ 'org.w3c.dom.events.ctrlKey_$external_prop_getter' : (_this) => _this.ctrlKey,
189
+ 'org.w3c.dom.events.shiftKey_$external_prop_getter' : (_this) => _this.shiftKey,
190
+ 'org.w3c.dom.events.altKey_$external_prop_getter' : (_this) => _this.altKey,
191
+ 'org.w3c.dom.events.metaKey_$external_prop_getter' : (_this) => _this.metaKey,
192
+ 'org.w3c.dom.events.button_$external_prop_getter' : (_this) => _this.button,
193
+ 'org.w3c.dom.events.buttons_$external_prop_getter' : (_this) => _this.buttons,
194
+ 'org.w3c.dom.events.offsetX_$external_prop_getter' : (_this) => _this.offsetX,
195
+ 'org.w3c.dom.events.offsetY_$external_prop_getter' : (_this) => _this.offsetY,
196
+ 'org.w3c.dom.events.key_$external_prop_getter' : (_this) => _this.key,
197
+ 'org.w3c.dom.events.code_$external_prop_getter' : (_this) => _this.code,
198
+ 'org.w3c.dom.events.ctrlKey_$external_prop_getter_1' : (_this) => _this.ctrlKey,
199
+ 'org.w3c.dom.events.shiftKey_$external_prop_getter_1' : (_this) => _this.shiftKey,
200
+ 'org.w3c.dom.events.altKey_$external_prop_getter_1' : (_this) => _this.altKey,
201
+ 'org.w3c.dom.events.metaKey_$external_prop_getter_1' : (_this) => _this.metaKey,
202
+ 'org.w3c.dom.events.KeyboardEvent_$external_class_instanceof' : (x) => x instanceof KeyboardEvent,
203
+ 'org.w3c.dom.events.KeyboardEvent_$external_class_get' : () => KeyboardEvent,
204
+ 'org.w3c.dom.events.deltaX_$external_prop_getter' : (_this) => _this.deltaX,
205
+ 'org.w3c.dom.events.deltaY_$external_prop_getter' : (_this) => _this.deltaY,
206
+ 'org.w3c.dom.events.WheelEvent_$external_class_instanceof' : (x) => x instanceof WheelEvent,
207
+ 'org.w3c.dom.events.WheelEvent_$external_class_get' : () => WheelEvent,
208
+ 'org.w3c.dom.ShadowRootInit' : (mode) => ({ mode: mode }),
209
+ 'org.w3c.dom.AddEventListenerOptions_js_code' : (passive, once, capture) => ({ passive: passive, once: once, capture: capture }),
210
+ 'org.w3c.dom.navigator_$external_prop_getter' : (_this) => _this.navigator,
211
+ 'org.w3c.dom.devicePixelRatio_$external_prop_getter' : (_this) => _this.devicePixelRatio,
212
+ 'org.w3c.dom.requestAnimationFrame_$external_fun' : (_this, p0) => _this.requestAnimationFrame(p0),
213
+ 'org.w3c.dom.__convertKotlinClosureToJsClosure_((Double)->Unit)' : (f) => getCachedJsObject(f, (p0) => wasmExports['__callFunction_((Double)->Unit)'](f, p0)),
214
+ 'org.w3c.dom.matchMedia_$external_fun' : (_this, p0) => _this.matchMedia(p0),
215
+ 'org.w3c.dom.dropEffect_$external_prop_setter' : (_this, v) => _this.dropEffect = v,
216
+ 'org.w3c.dom.setDragImage_$external_fun' : (_this, p0, p1, p2) => _this.setDragImage(p0, p1, p2),
217
+ 'org.w3c.dom.setData_$external_fun' : (_this, p0, p1) => _this.setData(p0, p1),
218
+ 'org.w3c.dom.tabIndex_$external_prop_setter' : (_this, v) => _this.tabIndex = v,
219
+ 'org.w3c.dom.innerText_$external_prop_setter' : (_this, v) => _this.innerText = v,
220
+ 'org.w3c.dom.click_$external_fun' : (_this, ) => _this.click(),
221
+ 'org.w3c.dom.HTMLElement_$external_class_instanceof' : (x) => x instanceof HTMLElement,
222
+ 'org.w3c.dom.HTMLElement_$external_class_get' : () => HTMLElement,
223
+ 'org.w3c.dom.readyState_$external_prop_getter' : (_this) => _this.readyState,
224
+ 'org.w3c.dom.body_$external_prop_getter' : (_this) => _this.body,
225
+ 'org.w3c.dom.activeElement_$external_prop_getter' : (_this) => _this.activeElement,
226
+ 'org.w3c.dom.createElement_$external_fun' : (_this, p0, p1, isDefault0) => _this.createElement(p0, isDefault0 ? undefined : p1, ),
227
+ 'org.w3c.dom.hasFocus_$external_fun' : (_this, ) => _this.hasFocus(),
228
+ 'org.w3c.dom.getElementById_$external_fun' : (_this, p0) => _this.getElementById(p0),
229
+ 'org.w3c.dom.id_$external_prop_setter' : (_this, v) => _this.id = v,
230
+ 'org.w3c.dom.shadowRoot_$external_prop_getter' : (_this) => _this.shadowRoot,
231
+ 'org.w3c.dom.clientWidth_$external_prop_getter' : (_this) => _this.clientWidth,
232
+ 'org.w3c.dom.clientHeight_$external_prop_getter' : (_this) => _this.clientHeight,
233
+ 'org.w3c.dom.setAttribute_$external_fun' : (_this, p0, p1) => _this.setAttribute(p0, p1),
234
+ 'org.w3c.dom.attachShadow_$external_fun' : (_this, p0) => _this.attachShadow(p0),
235
+ 'org.w3c.dom.getBoundingClientRect_$external_fun' : (_this, ) => _this.getBoundingClientRect(),
236
+ 'org.w3c.dom.matches_$external_prop_getter' : (_this) => _this.matches,
237
+ 'org.w3c.dom.addListener_$external_fun' : (_this, p0) => _this.addListener(p0),
238
+ 'org.w3c.dom.MediaQueryList_$external_class_instanceof' : (x) => x instanceof MediaQueryList,
239
+ 'org.w3c.dom.MediaQueryList_$external_class_get' : () => MediaQueryList,
240
+ 'org.w3c.dom.userAgent_$external_prop_getter' : (_this) => _this.userAgent,
241
+ 'org.w3c.dom.language_$external_prop_getter' : (_this) => _this.language,
242
+ 'org.w3c.dom.dataTransfer_$external_prop_getter' : (_this) => _this.dataTransfer,
243
+ 'org.w3c.dom.DragEvent_$external_class_instanceof' : (x) => x instanceof DragEvent,
244
+ 'org.w3c.dom.DragEvent_$external_class_get' : () => DragEvent,
245
+ 'org.w3c.dom.isConnected_$external_prop_getter' : (_this) => _this.isConnected,
246
+ 'org.w3c.dom.firstChild_$external_prop_getter' : (_this) => _this.firstChild,
247
+ 'org.w3c.dom.textContent_$external_prop_setter' : (_this, v) => _this.textContent = v,
248
+ 'org.w3c.dom.hasChildNodes_$external_fun' : (_this, ) => _this.hasChildNodes(),
249
+ 'org.w3c.dom.appendChild_$external_fun' : (_this, p0) => _this.appendChild(p0),
250
+ 'org.w3c.dom.removeChild_$external_fun' : (_this, p0) => _this.removeChild(p0),
251
+ 'org.w3c.dom.Companion_$external_object_getInstance' : () => ({}),
252
+ 'org.w3c.dom.top_$external_prop_getter' : (_this) => _this.top,
253
+ 'org.w3c.dom.left_$external_prop_getter' : (_this) => _this.left,
254
+ 'org.w3c.dom.remove_$external_fun' : (_this, ) => _this.remove(),
255
+ 'org.w3c.dom.Companion_$external_object_getInstance_1' : () => ({}),
256
+ 'org.w3c.dom.HTMLDivElement_$external_class_instanceof' : (x) => x instanceof HTMLDivElement,
257
+ 'org.w3c.dom.HTMLDivElement_$external_class_get' : () => HTMLDivElement,
258
+ 'org.w3c.dom.width_$external_prop_getter' : (_this) => _this.width,
259
+ 'org.w3c.dom.width_$external_prop_setter' : (_this, v) => _this.width = v,
260
+ 'org.w3c.dom.height_$external_prop_getter' : (_this) => _this.height,
261
+ 'org.w3c.dom.height_$external_prop_setter' : (_this, v) => _this.height = v,
262
+ 'org.w3c.dom.HTMLCanvasElement_$external_class_instanceof' : (x) => x instanceof HTMLCanvasElement,
263
+ 'org.w3c.dom.HTMLCanvasElement_$external_class_get' : () => HTMLCanvasElement,
264
+ 'org.w3c.dom.HTMLTextAreaElement_$external_class_instanceof' : (x) => x instanceof HTMLTextAreaElement,
265
+ 'org.w3c.dom.HTMLTextAreaElement_$external_class_get' : () => HTMLTextAreaElement,
266
+ 'org.w3c.dom.TouchEvent_$external_class_instanceof' : (x) => x instanceof TouchEvent,
267
+ 'org.w3c.dom.TouchEvent_$external_class_get' : () => TouchEvent,
268
+ 'org.w3c.dom.matches_$external_prop_getter_1' : (_this) => _this.matches,
269
+ 'org.w3c.dom.MediaQueryListEvent_$external_class_instanceof' : (x) => x instanceof MediaQueryListEvent,
270
+ 'org.w3c.dom.MediaQueryListEvent_$external_class_get' : () => MediaQueryListEvent,
271
+ 'org.w3c.dom.pointerevents.pointerId_$external_prop_getter' : (_this) => _this.pointerId,
272
+ 'org.w3c.dom.pointerevents.pressure_$external_prop_getter' : (_this) => _this.pressure,
273
+ 'org.w3c.dom.pointerevents.PointerEvent_$external_class_instanceof' : (x) => x instanceof PointerEvent,
274
+ 'org.w3c.dom.pointerevents.PointerEvent_$external_class_get' : () => PointerEvent,
275
+ 'org.w3c.performance.now_$external_fun' : (_this, ) => _this.now(),
276
+ 'org.w3c.performance.performance_$external_prop_getter' : (_this) => _this.performance,
277
+ 'kotlinx.browser.window_$external_prop_getter' : () => window,
278
+ 'kotlinx.browser.document_$external_prop_getter' : () => document,
279
+ 'androidx.compose.runtime.internal.weakMap_js_code' : () => (new WeakMap()),
280
+ 'androidx.compose.runtime.internal.set_$external_fun' : (_this, p0, p1) => _this.set(p0, p1),
281
+ 'androidx.compose.runtime.internal.get_$external_fun' : (_this, p0) => _this.get(p0),
282
+ 'androidx.compose.runtime.internal.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
283
+ 'androidx.compose.runtime.internal.deref_$external_fun' : (_this, ) => _this.deref(),
284
+ 'org.jetbrains.skiko.GL_$external_prop_getter' : () => _ref_Li9za2lrby5tanM_.GL,
285
+ 'org.jetbrains.skia.impl.FinalizationRegistry_$external_fun' : (p0) => new FinalizationRegistry(p0),
286
+ 'org.jetbrains.skia.impl.register_$external_fun' : (_this, p0, p1, p2) => _this.register(p0, p1, p2),
287
+ 'org.jetbrains.skia.impl.unregister_$external_fun' : (_this, p0) => _this.unregister(p0),
288
+ 'org.jetbrains.skia.impl._releaseLocalCallbackScope_$external_fun' : () => _ref_Li9za2lrby5tanM_c2tpa29BcGk._releaseLocalCallbackScope(),
289
+ 'org.jetbrains.skiko.wasm.createDefaultContextAttributes' : () => {
290
+ return {
291
+ alpha: 1,
292
+ depth: 1,
293
+ stencil: 8,
294
+ antialias: 0,
295
+ premultipliedAlpha: 1,
296
+ preserveDrawingBuffer: 0,
297
+ preferLowPowerToHighPerformance: 0,
298
+ failIfMajorPerformanceCaveat: 0,
299
+ enableExtensionsByDefault: 1,
300
+ explicitSwapControl: 0,
301
+ renderViaOffscreenBackBuffer: 0,
302
+ majorVersion: 2,
303
+ }
304
+ }
305
+ ,
306
+ 'org.jetbrains.skiko.wasm.awaitSkiko_$external_prop_getter' : () => _ref_Li9za2lrby5tanM_.awaitSkiko,
307
+ 'org.jetbrains.skiko.createContext_$external_fun' : (_this, p0, p1) => _this.createContext(p0, p1),
308
+ 'org.jetbrains.skiko.makeContextCurrent_$external_fun' : (_this, p0) => _this.makeContextCurrent(p0),
309
+ 'org.jetbrains.skiko.getNavigatorInfo' : () => navigator.userAgentData ? navigator.userAgentData.platform : navigator.platform,
310
+ 'androidx.compose.ui.text.intl.getUserPreferredLanguagesAsArray' : () => window.navigator.languages,
311
+ 'androidx.compose.ui.text.FinalizationRegistry_$external_fun' : (p0) => new FinalizationRegistry(p0),
312
+ 'androidx.compose.ui.text.register_$external_fun' : (_this, p0, p1) => _this.register(p0, p1),
313
+ 'androidx.compose.ui.text.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
314
+ 'androidx.compose.ui.text.deref_$external_fun' : (_this, ) => _this.deref(),
315
+ 'androidx.compose.ui.text.intl.parseLanguageTagToIntlLocale' : (languageTag) => new Intl.Locale(languageTag),
316
+ 'androidx.compose.ui.text.intl._language_$external_prop_getter' : (_this) => _this.language,
317
+ 'androidx.compose.ui.text.intl._baseName_$external_prop_getter' : (_this) => _this.baseName,
318
+ 'androidx.compose.ui.internal.weakMap_js_code' : () => (new WeakMap()),
319
+ 'androidx.compose.ui.internal.set_$external_fun' : (_this, p0, p1) => _this.set(p0, p1),
320
+ 'androidx.compose.ui.internal.get_$external_fun' : (_this, p0) => _this.get(p0),
321
+ 'androidx.compose.ui.platform.warn' : (text) => { console.warn(text) },
322
+ 'androidx.compose.ui.events.withSignal' : (signal) => ({signal: signal}),
323
+ 'androidx.compose.ui.events.withSignalAndPassive' : (signal, passive) => ({signal: signal, passive: passive}),
324
+ 'androidx.compose.ui.events.AbortController_$external_fun' : () => new AbortController(),
325
+ 'androidx.compose.ui.events.signal_$external_prop_getter' : (_this) => _this.signal,
326
+ 'androidx.compose.ui.internal.focusExt' : (element, _preventScroll) => element.focus({ preventScroll: _preventScroll }),
327
+ 'androidx.compose.ui.node.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
328
+ 'androidx.compose.ui.node.deref_$external_fun' : (_this, ) => _this.deref(),
329
+ 'androidx.compose.ui.platform.getW3CClipboard' : () => window.navigator.clipboard,
330
+ 'androidx.compose.ui.platform.isSecureContext' : () => window.isSecureContext === true,
331
+ 'androidx.compose.ui.platform.isFullClipboardApiSupported' : () => Boolean(
332
+ window.navigator.clipboard &&
333
+ window.navigator.clipboard.write &&
334
+ window.navigator.clipboard.read &&
335
+ typeof(ClipboardItem) !== 'undefined'
336
+ )
337
+ ,
338
+ 'androidx.compose.ui.platform.isFallbackWriteTextApiAvailable' : () => Boolean(window.navigator.clipboard && window.navigator.clipboard.writeText),
339
+ 'androidx.compose.ui.platform.W3CTemporaryClipboard_$external_class_instanceof' : (x) => x instanceof Clipboard,
340
+ 'androidx.compose.ui.platform.W3CTemporaryClipboard_$external_class_get' : () => Clipboard,
341
+ 'androidx.compose.ui.platform.accessibility.removeAllChildrenOf' : (element) => { element.replaceChildren() },
342
+ 'androidx.compose.ui.platform.accessibility.setA11YAriaRole' : (element, ariaRoleId) => {
343
+ var roleValue = "";
344
+ switch (ariaRoleId) {
345
+ case 0: // Role.Button
346
+ roleValue = "button";
347
+ break;
348
+ case 1: // Role.Checkbox
349
+ roleValue = "checkbox";
350
+ break;
351
+ case 2: // Role.Switch
352
+ roleValue = "switch";
353
+ break;
354
+ case 3: // Role.RadioButton
355
+ roleValue = "radio";
356
+ break;
357
+ case 4: // Role.Tab
358
+ roleValue = "tab";
359
+ break;
360
+ case 5: // Role.Image
361
+ roleValue = "img";
362
+ break;
363
+ case 6: // Role.DropdownList
364
+ roleValue = "menu";
365
+ break;
366
+ case 7: // heading https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/heading_role
367
+ roleValue = "heading";
368
+ break;
369
+ case 8: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/textbox_role
370
+ roleValue = "textbox";
371
+ break;
372
+ case 9: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/list_role
373
+ roleValue = "list";
374
+ break;
375
+ case 10: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/grid_role
376
+ roleValue = "grid";
377
+ break;
378
+ default:
379
+ break;
380
+ }
381
+ if (roleValue.length > 0) {
382
+ element.setAttribute("role", roleValue);
383
+ } else {
384
+ element.removeAttribute("role");
385
+ }
386
+ },
387
+ 'androidx.compose.ui.platform.accessibility.setSizeAndPosition' : (element, left, top, width, height) => {
388
+ element.style.left = "" + left + "px";
389
+ element.style.top = "" + top + "px";
390
+ element.style.width = "" + width + "px";
391
+ element.style.height = "" + height + "px";
392
+ },
393
+ 'androidx.compose.ui.window.documentIsVisible' : () => document.visibilityState === 'visible',
394
+ 'androidx.compose.ui.window.isMouseEvent' : (event) => event.pointerType === 'mouse',
395
+ 'androidx.compose.ui.window.setPointerCapture' : (target, pointerId) => { try { target.setPointerCapture(pointerId) } catch (e) {} },
396
+ 'androidx.compose.ui.window.getCoalescedEvents' : (pointerEvent) => pointerEvent.getCoalescedEvents ? pointerEvent.getCoalescedEvents() : [],
397
+ 'androidx.compose.ui.window.getPointerEventCode' : (event) => {
398
+ switch (event.type) {
399
+ case 'pointerdown':
400
+ return 1; // PointerEventType.Press
401
+ case 'pointerup':
402
+ case 'pointercancel':
403
+ return 2; // PointerEventType.Release
404
+ case 'pointermove':
405
+ return 3; // PointerEventType.Move
406
+ case 'pointerenter':
407
+ return 4; //PointerEventType.Enter
408
+ case 'pointerleave':
409
+ return 5; //PointerEventType.Exit
410
+ default:
411
+ return 0; // PointerEventType.Unknown
412
+ }
413
+ },
414
+ 'androidx.compose.ui.window.activeElement_$external_prop_getter' : (_this) => _this.activeElement,
415
+ 'androidx.compose.ui.window.isMatchMediaSupported' : () => window.matchMedia != undefined,
416
+ 'ee.schimke.composeai.rcplayer.trace.performanceMark' : (name) => { try { performance.mark(name); } catch (e) {} },
417
+ 'ee.schimke.composeai.rcplayer.trace.performanceMeasure' : (name, startMark) => { try { performance.measure(name, startMark); } catch (e) {} },
418
+ 'ee.schimke.composeai.rcplayer.trace.performanceClearMarks' : (name) => { try { performance.clearMarks(name); } catch (e) {} },
419
+ 'kotlinx.datetime.internal.Date_$external_fun' : (p0) => new Date(p0),
420
+ 'kotlinx.datetime.internal.getTimezoneOffset_$external_fun' : (_this, ) => _this.getTimezoneOffset(),
421
+ 'kotlinx.datetime.internal.JSJoda.ZoneRulesProvider_$external_object_getInstance' : () => _ref_QGpzLWpvZGEvY29yZQ_.ZoneRulesProvider,
422
+ 'kotlinx.datetime.internal.JSJoda.id_$external_fun' : (_this, ) => _this.id(),
423
+ 'kotlinx.datetime.internal.JSJoda.systemDefault_$external_fun' : (_this, ) => _this.systemDefault(),
424
+ 'kotlinx.datetime.internal.JSJoda.Companion_$external_object_getInstance' : () => _ref_QGpzLWpvZGEvY29yZQ_.ZoneId,
425
+ 'kotlinx.datetime.internal.withCaughtJsException' : (body) => {
426
+ try {
427
+ body();
428
+ return null;
429
+ } catch(e) {
430
+ return e;
431
+ }
432
+ },
433
+ 'kotlinx.datetime.internal.getExceptionMessage' : (jsException) => jsException.message,
434
+ 'kotlinx.datetime.internal.getZones' : (rulesProvider) => rulesProvider.getTzdbData().zones,
435
+ 'kotlinx.datetime.internal.getLinks' : (rulesProvider) => rulesProvider.getTzdbData().links,
436
+ 'ee.schimke.composeai.rcplayer.wasm.fetchAsBase64' : (url) => fetch(url).then(function (response) {
437
+ if (!response.ok) throw new Error('HTTP ' + response.status);
438
+ return response.arrayBuffer();
439
+ }).then(function (buffer) {
440
+ var bytes = new Uint8Array(buffer), chunks = [], chunkSize = 0x8000;
441
+ for (var i = 0; i < bytes.length; i += chunkSize) {
442
+ chunks.push(String.fromCharCode.apply(null, bytes.subarray(i, i + chunkSize)));
443
+ }
444
+ return btoa(chunks.join(''));
445
+ }),
446
+ 'ee.schimke.composeai.rcplayer.wasm.installDocumentSwap' : () => {
447
+ window.__rcPlayerSwap = { pending: null, resolve: null };
448
+ window.rcPlayerLoad = function (source) {
449
+ var request = String(source);
450
+ var root = document.documentElement;
451
+ root.dataset.rcPlayerState = 'loading';
452
+ delete root.dataset.rcPlayerError;
453
+ var swap = window.__rcPlayerSwap;
454
+ if (swap.resolve) {
455
+ var resolve = swap.resolve;
456
+ swap.resolve = null;
457
+ resolve(request);
458
+ } else {
459
+ swap.pending = request;
460
+ }
461
+ };
462
+ },
463
+ 'ee.schimke.composeai.rcplayer.wasm.nextDocumentSwap' : () => new Promise(function (resolve) {
464
+ var swap = window.__rcPlayerSwap;
465
+ if (swap.pending !== null) {
466
+ var pending = swap.pending;
467
+ swap.pending = null;
468
+ resolve(pending);
469
+ } else {
470
+ swap.resolve = resolve;
471
+ }
472
+ }),
473
+ 'ee.schimke.composeai.rcplayer.wasm.queryParameterFromLocation' : (name) => new URL(window.location.href).searchParams.get(name),
474
+ 'ee.schimke.composeai.rcplayer.wasm.flattenNamedValuesFromLocation' : () => (function () {
475
+ try {
476
+ var raw = new URL(window.location.href).searchParams.get('namedValues') || '[]';
477
+ var values = JSON.parse(raw);
478
+ if (!Array.isArray(values)) return null;
479
+ return values.map(function (value) {
480
+ return [String(value.kind || ''), encodeURIComponent(String(value.name || '')),
481
+ encodeURIComponent(String(value.value == null ? '' : value.value))].join('\u0000');
482
+ }).join('\u0001');
483
+ } catch (error) { return null; }
484
+ })(),
485
+ 'ee.schimke.composeai.rcplayer.wasm.decodeUriComponentJs' : (value) => decodeURIComponent(value),
486
+ 'ee.schimke.composeai.rcplayer.wasm.publishContractVersion' : (version) => (window.rcPlayerContractVersion = version, document.documentElement.dataset.rcPlayerContract = String(version)),
487
+ 'ee.schimke.composeai.rcplayer.wasm.postReady' : () => (document.documentElement.dataset.rcPlayerState = 'ready', window.parent.postMessage('cp-rc-wasm-ready', window.location.origin)),
488
+ 'ee.schimke.composeai.rcplayer.wasm.reportFailure' : (message) => (document.documentElement.dataset.rcPlayerState = 'error', document.documentElement.dataset.rcPlayerError = message, console.error('[rc-player-wasm] ' + message), window.parent.postMessage('cp-rc-wasm-error:' + message, window.location.origin)),
489
+ 'ee.schimke.composeai.rcplayer.wasm.postDebugMessage' : (message, value, flags) => (document.documentElement.dataset.rcPlayerDebugMessage = message, document.documentElement.dataset.rcPlayerDebugValue = String(value), document.documentElement.dataset.rcPlayerDebugFlags = String(flags), console.debug('[rc-player-wasm] ' + message + ' ' + String(value)), window.parent.postMessage({ type: 'cp-rc-debug-message', message: message, value: value, flags: flags }, window.location.origin)),
490
+ 'ee.schimke.composeai.rcplayer.wasm.postHostAction' : (actionId) => (document.documentElement.dataset.rcPlayerAction = String(actionId), document.documentElement.dataset.rcPlayerActionTrace = (document.documentElement.dataset.rcPlayerActionTrace ? document.documentElement.dataset.rcPlayerActionTrace + ',' : '') + String(actionId), window.parent.postMessage({ type: 'cp-rc-host-action', actionId: actionId }, window.location.origin)),
491
+ 'ee.schimke.composeai.rcplayer.wasm.postHostMetadataAction' : (actionId, metadata) => (document.documentElement.dataset.rcPlayerAction = String(actionId), document.documentElement.dataset.rcPlayerActionTrace = (document.documentElement.dataset.rcPlayerActionTrace ? document.documentElement.dataset.rcPlayerActionTrace + ',' : '') + String(actionId), document.documentElement.dataset.rcPlayerMetadata = metadata, window.parent.postMessage({ type: 'cp-rc-host-action', actionId: actionId, metadata: metadata }, window.location.origin)),
492
+ 'ee.schimke.composeai.rcplayer.wasm.postHostNamedActionNone' : (name) => (document.documentElement.dataset.rcPlayerNamedAction = name, document.documentElement.dataset.rcPlayerNamedActionValue = 'none', window.parent.postMessage({ type: 'cp-rc-host-named-action', name: name, valueType: 'none', value: null }, window.location.origin)),
493
+ 'ee.schimke.composeai.rcplayer.wasm.postHostNamedActionFloat' : (name, value) => (document.documentElement.dataset.rcPlayerNamedAction = name, document.documentElement.dataset.rcPlayerNamedActionValue = 'float:' + String(value), window.parent.postMessage({ type: 'cp-rc-host-named-action', name: name, valueType: 'float', value: value }, window.location.origin)),
494
+ 'ee.schimke.composeai.rcplayer.wasm.postHostNamedActionInt' : (name, value) => (document.documentElement.dataset.rcPlayerNamedAction = name, document.documentElement.dataset.rcPlayerNamedActionValue = 'int:' + String(value), window.parent.postMessage({ type: 'cp-rc-host-named-action', name: name, valueType: 'int', value: value }, window.location.origin)),
495
+ 'ee.schimke.composeai.rcplayer.wasm.postHostNamedActionText' : (name, value) => (document.documentElement.dataset.rcPlayerNamedAction = name, document.documentElement.dataset.rcPlayerNamedActionValue = 'string:' + value, window.parent.postMessage({ type: 'cp-rc-host-named-action', name: name, valueType: 'string', value: value }, window.location.origin)),
496
+ 'ee.schimke.composeai.rcplayer.wasm.postHostNamedActionFloatList' : (name, encoded) => (document.documentElement.dataset.rcPlayerNamedAction = name, document.documentElement.dataset.rcPlayerNamedActionValue = 'float-array:' + encoded, window.parent.postMessage({ type: 'cp-rc-host-named-action', name: name, valueType: 'float-array', value: encoded === '' ? [] : encoded.split(',').map(Number) }, window.location.origin))
497
+ }
498
+
499
+ const StringConstantsProxy = new Proxy({}, {
500
+ get(_, prop) { return prop; }
501
+ });
502
+
503
+ export { wasmTag as __TAG };
504
+
505
+ export const importObject = {
506
+ js_code,
507
+ intrinsics: {
508
+ tag: wasmTag
509
+ },
510
+ "'": StringConstantsProxy,
511
+ 'wasm:js-string': d2FzbTpqcy1zdHJpbmc,
512
+ './skiko.mjs': Li9za2lrby5tanM,
513
+ };
514
+
@@ -0,0 +1,52 @@
1
+ export const length = (s) => s.length
2
+ export const concat = (a, b) => a + b
3
+ export const charCodeAt = (s, i) => s.charCodeAt(i >>> 0)
4
+ export const substring = (s, start, end) => {
5
+ start >>>= 0;
6
+ end >>>= 0;
7
+ return s.substring(start, end);
8
+ }
9
+
10
+ export const compare = (a, b) => {
11
+ return a === b ? 0 : a < b ? -1 : 1;
12
+ }
13
+
14
+ export const equals = (a, b) => a === b ? 1 : 0
15
+ const moduleFromCharCodeArray = new WebAssembly.Module(new Uint8Array([
16
+ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x0b, 0x02, 0x5e,
17
+ 0x77, 0x01, 0x60, 0x02, 0x64, 0x00, 0x7f, 0x01, 0x7f, 0x03, 0x02, 0x01,
18
+ 0x01, 0x07, 0x0b, 0x01, 0x07, 0x61, 0x31, 0x36, 0x5f, 0x67, 0x65, 0x74,
19
+ 0x00, 0x00, 0x0a, 0x0b, 0x01, 0x09, 0x00, 0x20, 0x00, 0x20, 0x01, 0xfb,
20
+ 0x0d, 0x00, 0x0b, 0x00, 0x13, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x04, 0x0c,
21
+ 0x01, 0x00, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69, 0x31, 0x36
22
+ ]));
23
+ const helpersFromCharCodeArray = new WebAssembly.Instance(moduleFromCharCodeArray).exports;
24
+
25
+ export const fromCharCodeArray = (array, start, end) => {
26
+ start >>>= 0;
27
+ end >>>= 0;
28
+ let result = [];
29
+ for (let i = start; i < end; i++) {
30
+ result.push(String.fromCharCode(helpersFromCharCodeArray.a16_get(array, i)));
31
+ }
32
+ return result.join("");
33
+ }
34
+
35
+ const moduleIntoCharCode = new WebAssembly.Module(new Uint8Array([
36
+ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x0b, 0x02, 0x5e,
37
+ 0x77, 0x01, 0x60, 0x03, 0x64, 0x00, 0x7f, 0x7f, 0x00, 0x03, 0x02, 0x01,
38
+ 0x01, 0x07, 0x0b, 0x01, 0x07, 0x61, 0x31, 0x36, 0x5f, 0x73, 0x65, 0x74,
39
+ 0x00, 0x00, 0x0a, 0x0d, 0x01, 0x0b, 0x00, 0x20, 0x00, 0x20, 0x01, 0x20,
40
+ 0x02, 0xfb, 0x0e, 0x00, 0x0b, 0x00, 0x13, 0x04, 0x6e, 0x61, 0x6d, 0x65,
41
+ 0x04, 0x0c, 0x01, 0x00, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69,
42
+ 0x31, 0x36
43
+ ]));
44
+ const helpersIntoCharCode = new WebAssembly.Instance(moduleIntoCharCode).exports;
45
+
46
+ export const intoCharCodeArray = (s, array, start) => {
47
+ start >>>= 0;
48
+ for (let i = 0; i < s.length; i++) {
49
+ helpersIntoCharCode.a16_set(array, start + i, s.charCodeAt(i));
50
+ }
51
+ return s.length;
52
+ }
@@ -0,0 +1,81 @@
1
+
2
+
3
+ import { importObject, setWasmExports } from './rcPlayer.import-object.mjs'
4
+
5
+ let wasmInstance;
6
+
7
+ const isNodeJs = (typeof process !== 'undefined') && (process.release.name === 'node');
8
+ const isDeno = !isNodeJs && (typeof Deno !== 'undefined')
9
+ const isStandaloneJsVM =
10
+ !isDeno && !isNodeJs && (
11
+ typeof d8 !== 'undefined' // V8
12
+ || typeof inIon !== 'undefined' // SpiderMonkey
13
+ || typeof jscOptions !== 'undefined' // JavaScriptCore
14
+ );
15
+ const isBrowser = !isNodeJs && !isDeno && !isStandaloneJsVM && (typeof window !== 'undefined' || typeof self !== 'undefined');
16
+
17
+ if (!isNodeJs && !isDeno && !isStandaloneJsVM && !isBrowser) {
18
+ throw "Supported JS engine not detected";
19
+ }
20
+
21
+ const wasmFilePath = './rcPlayer.wasm';
22
+ const wasmOptions = { builtins: ['js-string'], importedStringConstants: "'" }
23
+
24
+ try {
25
+ if (isNodeJs) {
26
+ const module = await import(/* webpackIgnore: true */'node:module');
27
+ const importMeta = import.meta;
28
+ const require = module.default.createRequire(importMeta.url);
29
+ const fs = require('fs');
30
+ const url = require('url');
31
+ const filepath = import.meta.resolve(wasmFilePath);
32
+ const wasmBuffer = fs.readFileSync(url.fileURLToPath(filepath));
33
+ const wasmModule = new WebAssembly.Module(wasmBuffer, wasmOptions);
34
+ wasmInstance = new WebAssembly.Instance(wasmModule, importObject);
35
+ }
36
+
37
+ if (isDeno) {
38
+ const path = await import(/* webpackIgnore: true */'https://deno.land/std/path/mod.ts');
39
+ const binary = Deno.readFileSync(path.fromFileUrl(import.meta.resolve(wasmFilePath)));
40
+ const module = await WebAssembly.compile(binary, wasmOptions);
41
+ wasmInstance = await WebAssembly.instantiate(module, importObject);
42
+ }
43
+
44
+ if (isStandaloneJsVM) {
45
+ const importMeta = import.meta;
46
+ const filepath = importMeta.url.replace(/\.mjs$/, '.wasm');
47
+ const wasmBuffer = read(filepath, 'binary');
48
+ const wasmModule = new WebAssembly.Module(wasmBuffer, wasmOptions);
49
+ wasmInstance = new WebAssembly.Instance(wasmModule, importObject);
50
+ }
51
+
52
+ if (isBrowser) {
53
+ wasmInstance = (await WebAssembly.instantiateStreaming(fetch(new URL('./rcPlayer.wasm',import.meta.url).href), importObject, wasmOptions)).instance;
54
+ }
55
+ } catch (e) {
56
+ if (e instanceof WebAssembly.CompileError) {
57
+ let text = `Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
58
+ For more information, see https://kotl.in/wasm-help
59
+ `;
60
+ if (isBrowser) {
61
+ console.error(text);
62
+ } else {
63
+ const t = "\n" + text;
64
+ if (typeof console !== "undefined" && console.log !== void 0)
65
+ console.log(t);
66
+ else
67
+ print(t);
68
+ }
69
+ }
70
+ throw e;
71
+ }
72
+
73
+ const exports = wasmInstance.exports
74
+ setWasmExports(exports);
75
+ exports._start();
76
+
77
+ export const {
78
+ memory,
79
+ _start
80
+ } = exports
81
+
Binary file