@oloy-tests/sdk 0.0.0-stage → 0.1.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.
@@ -0,0 +1,593 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __esm = (fn, res, err) => function __init() {
4
+ if (err) throw err[0];
5
+ try {
6
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
7
+ } catch (e) {
8
+ throw err = [e], e;
9
+ }
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+
16
+ // node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
17
+ var ffi_exports = {};
18
+ __export(ffi_exports, {
19
+ QuickJSFFI: () => QuickJSFFI
20
+ });
21
+ var QuickJSFFI;
22
+ var init_ffi = __esm({
23
+ "node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
24
+ QuickJSFFI = class {
25
+ constructor(module) {
26
+ this.module = module;
27
+ this.DEBUG = false;
28
+ this.QTS_Throw = this.module.cwrap("QTS_Throw", "number", ["number", "number"]);
29
+ this.QTS_NewError = this.module.cwrap("QTS_NewError", "number", ["number"]);
30
+ this.QTS_RuntimeSetMemoryLimit = this.module.cwrap("QTS_RuntimeSetMemoryLimit", null, ["number", "number"]);
31
+ this.QTS_RuntimeComputeMemoryUsage = this.module.cwrap("QTS_RuntimeComputeMemoryUsage", "number", ["number", "number"]);
32
+ this.QTS_RuntimeDumpMemoryUsage = this.module.cwrap("QTS_RuntimeDumpMemoryUsage", "number", ["number"]);
33
+ this.QTS_RecoverableLeakCheck = this.module.cwrap("QTS_RecoverableLeakCheck", "number", []);
34
+ this.QTS_BuildIsSanitizeLeak = this.module.cwrap("QTS_BuildIsSanitizeLeak", "number", []);
35
+ this.QTS_RuntimeSetMaxStackSize = this.module.cwrap("QTS_RuntimeSetMaxStackSize", null, ["number", "number"]);
36
+ this.QTS_GetUndefined = this.module.cwrap("QTS_GetUndefined", "number", []);
37
+ this.QTS_GetNull = this.module.cwrap("QTS_GetNull", "number", []);
38
+ this.QTS_GetFalse = this.module.cwrap("QTS_GetFalse", "number", []);
39
+ this.QTS_GetTrue = this.module.cwrap("QTS_GetTrue", "number", []);
40
+ this.QTS_NewHostRef = this.module.cwrap("QTS_NewHostRef", "number", ["number", "number"]);
41
+ this.QTS_GetHostRefId = this.module.cwrap("QTS_GetHostRefId", "number", ["number"]);
42
+ this.QTS_NewRuntime = this.module.cwrap("QTS_NewRuntime", "number", []);
43
+ this.QTS_FreeRuntime = this.module.cwrap("QTS_FreeRuntime", null, ["number"]);
44
+ this.QTS_NewContext = this.module.cwrap("QTS_NewContext", "number", ["number", "number"]);
45
+ this.QTS_FreeContext = this.module.cwrap("QTS_FreeContext", null, ["number"]);
46
+ this.QTS_FreeValuePointer = this.module.cwrap("QTS_FreeValuePointer", null, ["number", "number"]);
47
+ this.QTS_FreeValuePointerRuntime = this.module.cwrap("QTS_FreeValuePointerRuntime", null, ["number", "number"]);
48
+ this.QTS_FreeVoidPointer = this.module.cwrap("QTS_FreeVoidPointer", null, ["number", "number"]);
49
+ this.QTS_FreeCString = this.module.cwrap("QTS_FreeCString", null, ["number", "number"]);
50
+ this.QTS_DupValuePointer = this.module.cwrap("QTS_DupValuePointer", "number", ["number", "number"]);
51
+ this.QTS_NewObject = this.module.cwrap("QTS_NewObject", "number", ["number"]);
52
+ this.QTS_NewObjectProto = this.module.cwrap("QTS_NewObjectProto", "number", ["number", "number"]);
53
+ this.QTS_NewArray = this.module.cwrap("QTS_NewArray", "number", ["number"]);
54
+ this.QTS_NewArrayBuffer = this.module.cwrap("QTS_NewArrayBuffer", "number", ["number", "number", "number"]);
55
+ this.QTS_NewFloat64 = this.module.cwrap("QTS_NewFloat64", "number", ["number", "number"]);
56
+ this.QTS_GetFloat64 = this.module.cwrap("QTS_GetFloat64", "number", ["number", "number"]);
57
+ this.QTS_NewString = this.module.cwrap("QTS_NewString", "number", ["number", "number"]);
58
+ this.QTS_GetString = this.module.cwrap("QTS_GetString", "number", ["number", "number"]);
59
+ this.QTS_GetArrayBuffer = this.module.cwrap("QTS_GetArrayBuffer", "number", ["number", "number"]);
60
+ this.QTS_GetArrayBufferLength = this.module.cwrap("QTS_GetArrayBufferLength", "number", ["number", "number"]);
61
+ this.QTS_NewSymbol = this.module.cwrap("QTS_NewSymbol", "number", ["number", "number", "number"]);
62
+ this.QTS_GetSymbolDescriptionOrKey = this.module.cwrap("QTS_GetSymbolDescriptionOrKey", "number", ["number", "number"]);
63
+ this.QTS_IsGlobalSymbol = this.module.cwrap("QTS_IsGlobalSymbol", "number", ["number", "number"]);
64
+ this.QTS_IsJobPending = this.module.cwrap("QTS_IsJobPending", "number", ["number"]);
65
+ this.QTS_ExecutePendingJob = this.module.cwrap("QTS_ExecutePendingJob", "number", ["number", "number", "number"]);
66
+ this.QTS_GetProp = this.module.cwrap("QTS_GetProp", "number", ["number", "number", "number"]);
67
+ this.QTS_GetPropNumber = this.module.cwrap("QTS_GetPropNumber", "number", ["number", "number", "number"]);
68
+ this.QTS_SetProp = this.module.cwrap("QTS_SetProp", null, ["number", "number", "number", "number"]);
69
+ this.QTS_DefineProp = this.module.cwrap("QTS_DefineProp", null, ["number", "number", "number", "number", "number", "number", "boolean", "boolean", "boolean"]);
70
+ this.QTS_GetOwnPropertyNames = this.module.cwrap("QTS_GetOwnPropertyNames", "number", ["number", "number", "number", "number", "number"]);
71
+ this.QTS_Call = this.module.cwrap("QTS_Call", "number", ["number", "number", "number", "number", "number"]);
72
+ this.QTS_ResolveException = this.module.cwrap("QTS_ResolveException", "number", ["number", "number"]);
73
+ this.QTS_Dump = this.module.cwrap("QTS_Dump", "number", ["number", "number"]);
74
+ this.QTS_Eval = this.module.cwrap("QTS_Eval", "number", ["number", "number", "number", "string", "number", "number"]);
75
+ this.QTS_GetModuleNamespace = this.module.cwrap("QTS_GetModuleNamespace", "number", ["number", "number"]);
76
+ this.QTS_Typeof = this.module.cwrap("QTS_Typeof", "number", ["number", "number"]);
77
+ this.QTS_GetLength = this.module.cwrap("QTS_GetLength", "number", ["number", "number", "number"]);
78
+ this.QTS_IsEqual = this.module.cwrap("QTS_IsEqual", "number", ["number", "number", "number", "number"]);
79
+ this.QTS_GetGlobalObject = this.module.cwrap("QTS_GetGlobalObject", "number", ["number"]);
80
+ this.QTS_NewPromiseCapability = this.module.cwrap("QTS_NewPromiseCapability", "number", ["number", "number"]);
81
+ this.QTS_PromiseState = this.module.cwrap("QTS_PromiseState", "number", ["number", "number"]);
82
+ this.QTS_PromiseResult = this.module.cwrap("QTS_PromiseResult", "number", ["number", "number"]);
83
+ this.QTS_TestStringArg = this.module.cwrap("QTS_TestStringArg", null, ["string"]);
84
+ this.QTS_GetDebugLogEnabled = this.module.cwrap("QTS_GetDebugLogEnabled", "number", ["number"]);
85
+ this.QTS_SetDebugLogEnabled = this.module.cwrap("QTS_SetDebugLogEnabled", null, ["number", "number"]);
86
+ this.QTS_BuildIsDebug = this.module.cwrap("QTS_BuildIsDebug", "number", []);
87
+ this.QTS_BuildIsAsyncify = this.module.cwrap("QTS_BuildIsAsyncify", "number", []);
88
+ this.QTS_NewFunction = this.module.cwrap("QTS_NewFunction", "number", ["number", "string", "number", "boolean", "number"]);
89
+ this.QTS_ArgvGetJSValueConstPointer = this.module.cwrap("QTS_ArgvGetJSValueConstPointer", "number", ["number", "number"]);
90
+ this.QTS_RuntimeEnableInterruptHandler = this.module.cwrap("QTS_RuntimeEnableInterruptHandler", null, ["number"]);
91
+ this.QTS_RuntimeDisableInterruptHandler = this.module.cwrap("QTS_RuntimeDisableInterruptHandler", null, ["number"]);
92
+ this.QTS_RuntimeEnableModuleLoader = this.module.cwrap("QTS_RuntimeEnableModuleLoader", null, ["number", "number"]);
93
+ this.QTS_RuntimeDisableModuleLoader = this.module.cwrap("QTS_RuntimeDisableModuleLoader", null, ["number"]);
94
+ this.QTS_bjson_encode = this.module.cwrap("QTS_bjson_encode", "number", ["number", "number"]);
95
+ this.QTS_bjson_decode = this.module.cwrap("QTS_bjson_decode", "number", ["number", "number"]);
96
+ }
97
+ };
98
+ }
99
+ });
100
+
101
+ // node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs
102
+ var emscripten_module_exports = {};
103
+ __export(emscripten_module_exports, {
104
+ default: () => emscripten_module_default
105
+ });
106
+ async function QuickJSRaw(moduleArg = {}) {
107
+ var moduleRtn;
108
+ var d = moduleArg, aa = !!globalThis.window, n = !!globalThis.WorkerGlobalScope, q = false;
109
+ if (q) {
110
+ const { createRequire: a } = await import("node:module");
111
+ var require2 = a(import.meta.url);
112
+ }
113
+ function r(a) {
114
+ a = { log: a || function() {
115
+ } };
116
+ for (const c of r.Pa) c(a);
117
+ return d.quickJSEmscriptenExtensions = a;
118
+ }
119
+ r.Pa = [];
120
+ d.quickjsEmscriptenInit = r;
121
+ r.Pa.push((a) => {
122
+ a.getWasmMemory = function() {
123
+ return t;
124
+ };
125
+ });
126
+ var u = "./this.program", v = (a, c) => {
127
+ throw c;
128
+ }, w = import.meta.url, y = "", z, A;
129
+ if (q) {
130
+ var fs = require2("node:fs");
131
+ w.startsWith("file:") && (y = require2("node:path").dirname(require2("node:url").fileURLToPath(w)) + "/");
132
+ A = (a) => {
133
+ a = B(a) ? new URL(a) : a;
134
+ return fs.readFileSync(a);
135
+ };
136
+ z = async (a) => {
137
+ a = B(a) ? new URL(a) : a;
138
+ return fs.readFileSync(a, void 0);
139
+ };
140
+ 1 < process.argv.length && (u = process.argv[1].replace(/\\/g, "/"));
141
+ process.argv.slice(2);
142
+ v = (a, c) => {
143
+ process.exitCode = a;
144
+ throw c;
145
+ };
146
+ } else if (aa || n) {
147
+ try {
148
+ y = new URL(".", w).href;
149
+ } catch {
150
+ }
151
+ n && (A = (a) => {
152
+ var c = new XMLHttpRequest();
153
+ c.open("GET", a, false);
154
+ c.responseType = "arraybuffer";
155
+ c.send(null);
156
+ return new Uint8Array(c.response);
157
+ });
158
+ z = async (a) => {
159
+ if (B(a)) return new Promise((b, e) => {
160
+ var f = new XMLHttpRequest();
161
+ f.open("GET", a, true);
162
+ f.responseType = "arraybuffer";
163
+ f.onload = () => {
164
+ 200 == f.status || 0 == f.status && f.response ? b(f.response) : e(f.status);
165
+ };
166
+ f.onerror = e;
167
+ f.send(null);
168
+ });
169
+ var c = await fetch(a, { credentials: "same-origin" });
170
+ if (c.ok) return c.arrayBuffer();
171
+ throw Error(c.status + " : " + c.url);
172
+ };
173
+ }
174
+ var C = console.log.bind(console), D = console.error.bind(console), E, F = false, G, B = (a) => a.startsWith("file://"), H, I, J, K, L, M, ba = false;
175
+ function ca() {
176
+ var a = t.buffer;
177
+ d.HEAP8 = J = new Int8Array(a);
178
+ new Int16Array(a);
179
+ d.HEAPU8 = K = new Uint8Array(a);
180
+ new Uint16Array(a);
181
+ L = new Int32Array(a);
182
+ M = new Uint32Array(a);
183
+ new Float32Array(a);
184
+ new Float64Array(a);
185
+ new BigInt64Array(a);
186
+ new BigUint64Array(a);
187
+ }
188
+ function N(a) {
189
+ d.onAbort?.(a);
190
+ a = "Aborted(" + a + ")";
191
+ D(a);
192
+ F = true;
193
+ a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
194
+ I?.(a);
195
+ throw a;
196
+ }
197
+ var O;
198
+ async function da(a) {
199
+ if (!E) try {
200
+ var c = await z(a);
201
+ return new Uint8Array(c);
202
+ } catch {
203
+ }
204
+ if (a == O && E) a = new Uint8Array(E);
205
+ else if (A) a = A(a);
206
+ else throw "both async and sync fetching of the wasm failed";
207
+ return a;
208
+ }
209
+ async function ea(a, c) {
210
+ try {
211
+ var b = await da(a);
212
+ return await WebAssembly.instantiate(b, c);
213
+ } catch (e) {
214
+ D(`failed to asynchronously prepare wasm: ${e}`), N(e);
215
+ }
216
+ }
217
+ async function fa(a) {
218
+ var c = O;
219
+ if (!E && !B(c) && !q) try {
220
+ var b = fetch(c, { credentials: "same-origin" });
221
+ return await WebAssembly.instantiateStreaming(b, a);
222
+ } catch (e) {
223
+ D(`wasm streaming compile failed: ${e}`), D("falling back to ArrayBuffer instantiation");
224
+ }
225
+ return ea(c, a);
226
+ }
227
+ class P {
228
+ name = "ExitStatus";
229
+ constructor(a) {
230
+ this.message = `Program terminated with exit(${a})`;
231
+ this.status = a;
232
+ }
233
+ }
234
+ var ha = (a) => {
235
+ for (; 0 < a.length; ) a.shift()(d);
236
+ }, ia = [], ja = [], ka = () => {
237
+ var a = d.preRun.shift();
238
+ ja.push(a);
239
+ }, Q = true, t, la = new TextDecoder(), ma = (a, c, b, e) => {
240
+ b = c + b;
241
+ if (e) return b;
242
+ for (; a[c] && !(c >= b); ) ++c;
243
+ return c;
244
+ }, R = (a, c, b) => a ? la.decode(K.subarray(a, ma(K, a, c, b))) : "", S = 0, na = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], oa = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], T = {}, pa = (a) => {
245
+ G = a;
246
+ Q || 0 < S || (d.onExit?.(a), F = true);
247
+ v(a, new P(a));
248
+ }, qa = (a) => {
249
+ if (!F) try {
250
+ a();
251
+ } catch (c) {
252
+ c instanceof P || "unwind" == c || v(1, c);
253
+ } finally {
254
+ if (!(Q || 0 < S)) try {
255
+ G = a = G, pa(a);
256
+ } catch (c) {
257
+ c instanceof P || "unwind" == c || v(1, c);
258
+ }
259
+ }
260
+ }, U = (a, c, b) => {
261
+ var e = K;
262
+ if (!(0 < b)) return 0;
263
+ var f = c;
264
+ b = c + b - 1;
265
+ for (var g = 0; g < a.length; ++g) {
266
+ var h = a.codePointAt(g);
267
+ if (127 >= h) {
268
+ if (c >= b) break;
269
+ e[c++] = h;
270
+ } else if (2047 >= h) {
271
+ if (c + 1 >= b) break;
272
+ e[c++] = 192 | h >> 6;
273
+ e[c++] = 128 | h & 63;
274
+ } else if (65535 >= h) {
275
+ if (c + 2 >= b) break;
276
+ e[c++] = 224 | h >> 12;
277
+ e[c++] = 128 | h >> 6 & 63;
278
+ e[c++] = 128 | h & 63;
279
+ } else {
280
+ if (c + 3 >= b) break;
281
+ e[c++] = 240 | h >> 18;
282
+ e[c++] = 128 | h >> 12 & 63;
283
+ e[c++] = 128 | h >> 6 & 63;
284
+ e[c++] = 128 | h & 63;
285
+ g++;
286
+ }
287
+ }
288
+ e[c] = 0;
289
+ return c - f;
290
+ }, V = {}, ra = () => {
291
+ if (!W) {
292
+ var a = {
293
+ USER: "web_user",
294
+ LOGNAME: "web_user",
295
+ PATH: "/",
296
+ PWD: "/",
297
+ HOME: "/home/web_user",
298
+ LANG: (globalThis.navigator?.language ?? "C").replace("-", "_") + ".UTF-8",
299
+ _: u || "./this.program"
300
+ }, c;
301
+ for (c in V) void 0 === V[c] ? delete a[c] : a[c] = V[c];
302
+ var b = [];
303
+ for (c in a) b.push(`${c}=${a[c]}`);
304
+ W = b;
305
+ }
306
+ return W;
307
+ }, W, X = (a) => {
308
+ for (var c = 0, b = 0; b < a.length; ++b) {
309
+ var e = a.charCodeAt(b);
310
+ 127 >= e ? c++ : 2047 >= e ? c += 2 : 55296 <= e && 57343 >= e ? (c += 4, ++b) : c += 3;
311
+ }
312
+ return c;
313
+ }, sa = [null, [], []], va = (a, c, b, e) => {
314
+ var f = { string: (k) => {
315
+ var l = 0;
316
+ if (null !== k && void 0 !== k && 0 !== k) {
317
+ l = X(k) + 1;
318
+ var p = Y(l);
319
+ U(
320
+ k,
321
+ p,
322
+ l
323
+ );
324
+ l = p;
325
+ }
326
+ return l;
327
+ }, array: (k) => {
328
+ var l = Y(k.length);
329
+ J.set(k, l);
330
+ return l;
331
+ } };
332
+ a = d["_" + a];
333
+ var g = [], h = 0;
334
+ if (e) for (var m = 0; m < e.length; m++) {
335
+ var x = f[b[m]];
336
+ x ? (0 === h && (h = ta()), g[m] = x(e[m])) : g[m] = e[m];
337
+ }
338
+ b = a(...g);
339
+ return b = (function(k) {
340
+ 0 !== h && ua(h);
341
+ return "string" === c ? R(k) : "boolean" === c ? !!k : k;
342
+ })(b);
343
+ };
344
+ d.wasmMemory ? t = d.wasmMemory : t = new WebAssembly.Memory({ initial: (d.INITIAL_MEMORY || 16777216) / 65536, maximum: 32768 });
345
+ ca();
346
+ d.noExitRuntime && (Q = d.noExitRuntime);
347
+ d.print && (C = d.print);
348
+ d.printErr && (D = d.printErr);
349
+ d.wasmBinary && (E = d.wasmBinary);
350
+ d.thisProgram && (u = d.thisProgram);
351
+ if (d.preInit) for ("function" == typeof d.preInit && (d.preInit = [d.preInit]); 0 < d.preInit.length; ) d.preInit.shift()();
352
+ d.cwrap = (a, c, b, e) => {
353
+ var f = !b || b.every((g) => "number" === g || "boolean" === g);
354
+ return "string" !== c && f && !e ? d["_" + a] : (...g) => va(a, c, b, g);
355
+ };
356
+ d.UTF8ToString = R;
357
+ d.stringToUTF8 = (a, c, b) => U(a, c, b);
358
+ d.lengthBytesUTF8 = X;
359
+ var wa, ua, Y, ta, xa = { b: (a, c, b, e) => N(`Assertion failed: ${R(a)}, at: ` + [c ? R(c) : "unknown filename", b, e ? R(e) : "unknown function"]), q: () => N(""), l: () => {
360
+ Q = false;
361
+ S = 0;
362
+ }, m: function(a, c) {
363
+ a = -9007199254740992 > a || 9007199254740992 < a ? NaN : Number(a);
364
+ a = new Date(1e3 * a);
365
+ L[c >> 2] = a.getSeconds();
366
+ L[c + 4 >> 2] = a.getMinutes();
367
+ L[c + 8 >> 2] = a.getHours();
368
+ L[c + 12 >> 2] = a.getDate();
369
+ L[c + 16 >> 2] = a.getMonth();
370
+ L[c + 20 >> 2] = a.getFullYear() - 1900;
371
+ L[c + 24 >> 2] = a.getDay();
372
+ var b = a.getFullYear();
373
+ L[c + 28 >> 2] = (0 !== b % 4 || 0 === b % 100 && 0 !== b % 400 ? oa : na)[a.getMonth()] + a.getDate() - 1 | 0;
374
+ L[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
375
+ b = new Date(a.getFullYear(), 6, 1).getTimezoneOffset();
376
+ var e = new Date(a.getFullYear(), 0, 1).getTimezoneOffset();
377
+ L[c + 32 >> 2] = (b != e && a.getTimezoneOffset() == Math.min(e, b)) | 0;
378
+ }, j: (a, c) => {
379
+ T[a] && (clearTimeout(T[a].id), delete T[a]);
380
+ if (!c) return 0;
381
+ var b = setTimeout(() => {
382
+ delete T[a];
383
+ qa(() => wa(a, performance.now()));
384
+ }, c);
385
+ T[a] = { id: b, Qa: c };
386
+ return 0;
387
+ }, n: (a, c, b, e) => {
388
+ var f = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(f, 0, 1).getTimezoneOffset();
389
+ f = new Date(f, 6, 1).getTimezoneOffset();
390
+ M[a >> 2] = 60 * Math.max(g, f);
391
+ L[c >> 2] = Number(g != f);
392
+ c = (h) => {
393
+ var m = Math.abs(h);
394
+ return `UTC${0 <= h ? "-" : "+"}${String(Math.floor(m / 60)).padStart(2, "0")}${String(m % 60).padStart(2, "0")}`;
395
+ };
396
+ a = c(g);
397
+ c = c(f);
398
+ f < g ? (U(a, b, 17), U(c, e, 17)) : (U(a, e, 17), U(c, b, 17));
399
+ }, p: () => Date.now(), k: (a) => {
400
+ var c = K.length;
401
+ a >>>= 0;
402
+ if (2147483648 < a) return false;
403
+ for (var b = 1; 4 >= b; b *= 2) {
404
+ var e = c * (1 + 0.2 / b);
405
+ e = Math.min(e, a + 100663296);
406
+ a: {
407
+ e = (Math.min(2147483648, 65536 * Math.ceil(Math.max(a, e) / 65536)) - t.buffer.byteLength + 65535) / 65536 | 0;
408
+ try {
409
+ t.grow(e);
410
+ ca();
411
+ var f = 1;
412
+ break a;
413
+ } catch (g) {
414
+ }
415
+ f = void 0;
416
+ }
417
+ if (f) return true;
418
+ }
419
+ return false;
420
+ }, e: (a, c) => {
421
+ var b = 0, e = 0, f;
422
+ for (f of ra()) {
423
+ var g = c + b;
424
+ M[a + e >> 2] = g;
425
+ b += U(f, g, Infinity) + 1;
426
+ e += 4;
427
+ }
428
+ return 0;
429
+ }, f: (a, c) => {
430
+ var b = ra();
431
+ M[a >> 2] = b.length;
432
+ a = 0;
433
+ for (var e of b) a += X(e) + 1;
434
+ M[c >> 2] = a;
435
+ return 0;
436
+ }, d: () => 52, o: function() {
437
+ return 70;
438
+ }, c: (a, c, b, e) => {
439
+ for (var f = 0, g = 0; g < b; g++) {
440
+ var h = M[c >> 2], m = M[c + 4 >> 2];
441
+ c += 8;
442
+ for (var x = 0; x < m; x++) {
443
+ var k = a, l = K[h + x], p = sa[k];
444
+ 0 === l || 10 === l ? (k = 1 === k ? C : D, l = ma(p, 0), l = la.decode(p.buffer ? p.subarray(0, l) : new Uint8Array(p.slice(0, l))), k(l), p.length = 0) : p.push(l);
445
+ }
446
+ f += m;
447
+ }
448
+ M[e >> 2] = f;
449
+ return 0;
450
+ }, a: t, r: pa, s: function(a, c, b, e, f) {
451
+ return d.callbacks.callFunction(void 0, a, c, b, e, f);
452
+ }, i: function(a) {
453
+ return d.callbacks.shouldInterrupt(void 0, a);
454
+ }, h: function(a, c, b) {
455
+ b = R(b);
456
+ return d.callbacks.loadModuleSource(void 0, a, c, b);
457
+ }, g: function(a, c, b, e) {
458
+ b = R(b);
459
+ e = R(e);
460
+ return d.callbacks.normalizeModule(void 0, a, c, b, e);
461
+ }, t: function(a, c) {
462
+ d.callbacks.freeHostRef(void 0, a, c);
463
+ } }, Z;
464
+ Z = await (async function() {
465
+ function a(b) {
466
+ b = Z = b.exports;
467
+ d._malloc = b.v;
468
+ d._QTS_Throw = b.w;
469
+ d._QTS_NewError = b.x;
470
+ d._QTS_RuntimeSetMemoryLimit = b.y;
471
+ d._QTS_RuntimeComputeMemoryUsage = b.z;
472
+ d._QTS_RuntimeDumpMemoryUsage = b.A;
473
+ d._QTS_RecoverableLeakCheck = b.B;
474
+ d._QTS_BuildIsSanitizeLeak = b.C;
475
+ d._QTS_RuntimeSetMaxStackSize = b.D;
476
+ d._QTS_GetUndefined = b.E;
477
+ d._QTS_GetNull = b.F;
478
+ d._QTS_GetFalse = b.G;
479
+ d._QTS_GetTrue = b.H;
480
+ d._QTS_NewHostRef = b.I;
481
+ d._QTS_GetHostRefId = b.J;
482
+ d._QTS_NewRuntime = b.K;
483
+ d._QTS_FreeRuntime = b.L;
484
+ d._free = b.M;
485
+ d._QTS_NewContext = b.N;
486
+ d._QTS_FreeContext = b.O;
487
+ d._QTS_FreeValuePointer = b.P;
488
+ d._QTS_FreeValuePointerRuntime = b.Q;
489
+ d._QTS_FreeVoidPointer = b.R;
490
+ d._QTS_FreeCString = b.S;
491
+ d._QTS_DupValuePointer = b.T;
492
+ d._QTS_NewObject = b.U;
493
+ d._QTS_NewObjectProto = b.V;
494
+ d._QTS_NewArray = b.W;
495
+ d._QTS_NewArrayBuffer = b.X;
496
+ d._QTS_NewFloat64 = b.Y;
497
+ d._QTS_GetFloat64 = b.Z;
498
+ d._QTS_NewString = b._;
499
+ d._QTS_GetString = b.$;
500
+ d._QTS_GetArrayBuffer = b.aa;
501
+ d._QTS_GetArrayBufferLength = b.ba;
502
+ d._QTS_NewSymbol = b.ca;
503
+ d._QTS_GetSymbolDescriptionOrKey = b.da;
504
+ d._QTS_IsGlobalSymbol = b.ea;
505
+ d._QTS_IsJobPending = b.fa;
506
+ d._QTS_ExecutePendingJob = b.ga;
507
+ d._QTS_GetProp = b.ha;
508
+ d._QTS_GetPropNumber = b.ia;
509
+ d._QTS_SetProp = b.ja;
510
+ d._QTS_DefineProp = b.ka;
511
+ d._QTS_GetOwnPropertyNames = b.la;
512
+ d._QTS_Call = b.ma;
513
+ d._QTS_ResolveException = b.na;
514
+ d._QTS_Dump = b.oa;
515
+ d._QTS_Eval = b.pa;
516
+ d._QTS_GetModuleNamespace = b.qa;
517
+ d._QTS_Typeof = b.ra;
518
+ d._QTS_GetLength = b.sa;
519
+ d._QTS_IsEqual = b.ta;
520
+ d._QTS_GetGlobalObject = b.ua;
521
+ d._QTS_NewPromiseCapability = b.va;
522
+ d._QTS_PromiseState = b.wa;
523
+ d._QTS_PromiseResult = b.xa;
524
+ d._QTS_TestStringArg = b.ya;
525
+ d._QTS_GetDebugLogEnabled = b.za;
526
+ d._QTS_SetDebugLogEnabled = b.Aa;
527
+ d._QTS_BuildIsDebug = b.Ba;
528
+ d._QTS_BuildIsAsyncify = b.Ca;
529
+ d._QTS_NewFunction = b.Da;
530
+ d._QTS_ArgvGetJSValueConstPointer = b.Ea;
531
+ d._QTS_RuntimeEnableInterruptHandler = b.Fa;
532
+ d._QTS_RuntimeDisableInterruptHandler = b.Ga;
533
+ d._QTS_RuntimeEnableModuleLoader = b.Ha;
534
+ d._QTS_RuntimeDisableModuleLoader = b.Ia;
535
+ d._QTS_bjson_encode = b.Ja;
536
+ d._QTS_bjson_decode = b.Ka;
537
+ wa = b.La;
538
+ ua = b.Ma;
539
+ Y = b.Na;
540
+ ta = b.Oa;
541
+ return Z;
542
+ }
543
+ var c = { a: xa };
544
+ if (d.instantiateWasm) return new Promise((b) => {
545
+ d.instantiateWasm(c, (e, f) => {
546
+ b(a(e, f));
547
+ });
548
+ });
549
+ O ??= d.locateFile ? d.locateFile ? d.locateFile("emscripten-module.wasm", y) : y + "emscripten-module.wasm" : new URL("emscripten-module.wasm", import.meta.url).href;
550
+ return a((await fa(c)).instance);
551
+ })();
552
+ (function() {
553
+ function a() {
554
+ d.calledRun = true;
555
+ if (!F) {
556
+ ba = true;
557
+ Z.u();
558
+ H?.(d);
559
+ d.onRuntimeInitialized?.();
560
+ if (d.postRun) for ("function" == typeof d.postRun && (d.postRun = [d.postRun]); d.postRun.length; ) {
561
+ var c = d.postRun.shift();
562
+ ia.push(c);
563
+ }
564
+ ha(ia);
565
+ }
566
+ }
567
+ if (d.preRun) for ("function" == typeof d.preRun && (d.preRun = [d.preRun]); d.preRun.length; ) ka();
568
+ ha(ja);
569
+ d.setStatus ? (d.setStatus("Running..."), setTimeout(() => {
570
+ setTimeout(() => d.setStatus(""), 1);
571
+ a();
572
+ }, 1)) : a();
573
+ })();
574
+ ba ? moduleRtn = d : moduleRtn = new Promise((a, c) => {
575
+ H = a;
576
+ I = c;
577
+ });
578
+ ;
579
+ return moduleRtn;
580
+ }
581
+ var emscripten_module_default;
582
+ var init_emscripten_module = __esm({
583
+ "node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs"() {
584
+ emscripten_module_default = QuickJSRaw;
585
+ }
586
+ });
587
+
588
+ // node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
589
+ var variant = { type: "sync", importFFI: () => Promise.resolve().then(() => (init_ffi(), ffi_exports)).then((mod) => mod.QuickJSFFI), importModuleLoader: () => Promise.resolve().then(() => (init_emscripten_module(), emscripten_module_exports)).then((mod) => mod.default) };
590
+ var src_default = variant;
591
+ export {
592
+ src_default as default
593
+ };