@standardagents/code-web 0.14.3-canary.6cc75f → 0.14.4-branch.9e48e914.ee06ef
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/README.md +9 -1
- package/dist/build.json +1 -1
- package/dist/licenses/jco-transpile.txt +220 -0
- package/dist/manifest.json +1 -1
- package/dist/manifest.sig +1 -1
- package/dist/pkg/standard_web.d.ts +50 -12
- package/dist/pkg/standard_web.js +292 -20
- package/dist/pkg/standard_web_bg.wasm +0 -0
- package/dist/pkg/standard_web_bg.wasm.d.ts +17 -12
- package/dist/plugins/clock-cells/clock_cells.core.wasm +0 -0
- package/dist/plugins/clock-cells/clock_cells.wasm +0 -0
- package/dist/plugins/clock-cells/standard-plugin.json +11 -0
- package/dist/plugins/host/transpile.js +51 -0
- package/dist/plugins/host/ui-jspi.js +14851 -0
- package/dist/plugins/host/ui.core2.wasm +0 -0
- package/dist/plugins/host/ui.core3.wasm +0 -0
- package/dist/plugins/host/ui.js +14675 -0
- package/dist/plugins/host/world.js +172 -0
- package/dist/plugins/jco/cli.js +141 -0
- package/dist/plugins/jco/common.js +16 -0
- package/dist/plugins/jco/config.js +7 -0
- package/dist/plugins/jco/environment.js +24 -0
- package/dist/plugins/jco/filesystem.js +339 -0
- package/dist/plugins/jco/in-memory-filesystem.js +620 -0
- package/dist/plugins/jco/io.js +366 -0
- package/dist/plugins/jco/js-component-bindgen-component.core.wasm +0 -0
- package/dist/plugins/jco/js-component-bindgen-component.core2.wasm +0 -0
- package/dist/plugins/jco/js-component-bindgen-component.js +14272 -0
- package/dist/plugins/jco/opfs-filesystem.js +245 -0
- package/dist/plugins/jco/random.js +51 -0
- package/dist/plugins/plasma-pixels/plasma_pixels.core.wasm +0 -0
- package/dist/plugins/plasma-pixels/plasma_pixels.wasm +0 -0
- package/dist/plugins/plasma-pixels/standard-plugin.json +11 -0
- package/dist/plugins/runtime.js +1044 -0
- package/dist/plugins/samples.json +81 -0
- package/dist/plugins/worker.js +411 -0
- package/package.json +8 -2
package/dist/pkg/standard_web.js
CHANGED
|
@@ -109,6 +109,42 @@ export class Session {
|
|
|
109
109
|
const ret = wasm.session_columns(this.__wbg_ptr);
|
|
110
110
|
return ret;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Drives the demo's fake account: `install` packs sample `id` as a new
|
|
114
|
+
* version and installs it (an update when it runs already; returns
|
|
115
|
+
* the package hash), `uninstall` removes it.
|
|
116
|
+
* @param {string} op
|
|
117
|
+
* @param {string} id
|
|
118
|
+
* @returns {string}
|
|
119
|
+
*/
|
|
120
|
+
fake_account(op, id) {
|
|
121
|
+
let deferred4_0;
|
|
122
|
+
let deferred4_1;
|
|
123
|
+
try {
|
|
124
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
125
|
+
const ptr0 = passStringToWasm0(op, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
126
|
+
const len0 = WASM_VECTOR_LEN;
|
|
127
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
128
|
+
const len1 = WASM_VECTOR_LEN;
|
|
129
|
+
wasm.session_fake_account(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
130
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
131
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
132
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
133
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
134
|
+
var ptr3 = r0;
|
|
135
|
+
var len3 = r1;
|
|
136
|
+
if (r3) {
|
|
137
|
+
ptr3 = 0; len3 = 0;
|
|
138
|
+
throw takeObject(r2);
|
|
139
|
+
}
|
|
140
|
+
deferred4_0 = ptr3;
|
|
141
|
+
deferred4_1 = len3;
|
|
142
|
+
return getStringFromWasm0(ptr3, len3);
|
|
143
|
+
} finally {
|
|
144
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
145
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
112
148
|
/**
|
|
113
149
|
* @param {boolean} focused
|
|
114
150
|
*/
|
|
@@ -233,6 +269,28 @@ export class Session {
|
|
|
233
269
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
234
270
|
}
|
|
235
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* The plugin counters since the last call, as JSON, for measurements:
|
|
274
|
+
* per plugin its commits, dirty area and `frame()` calls and time, and
|
|
275
|
+
* the viewer's sampling count and cost.
|
|
276
|
+
* @returns {string | undefined}
|
|
277
|
+
*/
|
|
278
|
+
plugin_trace() {
|
|
279
|
+
try {
|
|
280
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
+
wasm.session_plugin_trace(retptr, this.__wbg_ptr);
|
|
282
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
283
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
284
|
+
let v1;
|
|
285
|
+
if (r0 !== 0) {
|
|
286
|
+
v1 = getStringFromWasm0(r0, r1);
|
|
287
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
288
|
+
}
|
|
289
|
+
return v1;
|
|
290
|
+
} finally {
|
|
291
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
236
294
|
/**
|
|
237
295
|
* `action` is 0 down, 1 up, 2 move; `x` and `y` are device pixels
|
|
238
296
|
* relative to the canvas.
|
|
@@ -282,6 +340,78 @@ export class Session {
|
|
|
282
340
|
const ret = wasm.session_rows(this.__wbg_ptr);
|
|
283
341
|
return ret;
|
|
284
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* The demo's sample plugins (the site's call before account plugins).
|
|
345
|
+
* @param {string} base
|
|
346
|
+
* @param {string | null} [stage]
|
|
347
|
+
*/
|
|
348
|
+
start_demo_plugins(base, stage) {
|
|
349
|
+
try {
|
|
350
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
351
|
+
const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
353
|
+
var ptr1 = isLikeNone(stage) ? 0 : passStringToWasm0(stage, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
354
|
+
var len1 = WASM_VECTOR_LEN;
|
|
355
|
+
wasm.session_start_demo_plugins(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
356
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
357
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
358
|
+
if (r1) {
|
|
359
|
+
throw takeObject(r0);
|
|
360
|
+
}
|
|
361
|
+
} finally {
|
|
362
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* The demo viewer with a fake account instead of its samples: the
|
|
367
|
+
* installed-plugin path end to end (packages by hash, verification,
|
|
368
|
+
* the in-viewer transpile, sessions, updates) against a stand-in room
|
|
369
|
+
* that installs only packages it packs from this bundle's own samples
|
|
370
|
+
* ([`Self::fake_account`]). A signed-in session refuses.
|
|
371
|
+
* @param {string} base
|
|
372
|
+
*/
|
|
373
|
+
start_fake_account_plugins(base) {
|
|
374
|
+
try {
|
|
375
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
376
|
+
const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
377
|
+
const len0 = WASM_VECTOR_LEN;
|
|
378
|
+
wasm.session_start_fake_account_plugins(retptr, this.__wbg_ptr, ptr0, len0);
|
|
379
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
380
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
381
|
+
if (r1) {
|
|
382
|
+
throw takeObject(r0);
|
|
383
|
+
}
|
|
384
|
+
} finally {
|
|
385
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Runs this session's plugins after the first frame: in the demo the
|
|
390
|
+
* sample plugins this bundle carries, signed in the account's
|
|
391
|
+
* installed plugins. `base` is the bundle root the page loaded this
|
|
392
|
+
* runtime from (the site's verified `/terminal/_web/<version>/`); every
|
|
393
|
+
* Worker, and the reference glue it links through, comes from there.
|
|
394
|
+
* `stage` is a plugin whose stage opens once it is loaded.
|
|
395
|
+
* @param {string} base
|
|
396
|
+
* @param {string | null} [stage]
|
|
397
|
+
*/
|
|
398
|
+
start_plugins(base, stage) {
|
|
399
|
+
try {
|
|
400
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
401
|
+
const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
402
|
+
const len0 = WASM_VECTOR_LEN;
|
|
403
|
+
var ptr1 = isLikeNone(stage) ? 0 : passStringToWasm0(stage, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
404
|
+
var len1 = WASM_VECTOR_LEN;
|
|
405
|
+
wasm.session_start_plugins(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
406
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
407
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
408
|
+
if (r1) {
|
|
409
|
+
throw takeObject(r0);
|
|
410
|
+
}
|
|
411
|
+
} finally {
|
|
412
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
285
415
|
/**
|
|
286
416
|
* Text copied since the last call. The page writes it to the system
|
|
287
417
|
* clipboard from inside the event handler that produced it.
|
|
@@ -384,6 +514,11 @@ export function start() {
|
|
|
384
514
|
function __wbg_get_imports() {
|
|
385
515
|
const import0 = {
|
|
386
516
|
__proto__: null,
|
|
517
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
518
|
+
const v = getObject(arg0);
|
|
519
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
520
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
521
|
+
},
|
|
387
522
|
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
388
523
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
389
524
|
return ret;
|
|
@@ -405,6 +540,12 @@ function __wbg_get_imports() {
|
|
|
405
540
|
const ret = getObject(arg0) === undefined;
|
|
406
541
|
return ret;
|
|
407
542
|
},
|
|
543
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
544
|
+
const obj = getObject(arg1);
|
|
545
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
546
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
547
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
548
|
+
},
|
|
408
549
|
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
409
550
|
const obj = getObject(arg1);
|
|
410
551
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -422,9 +563,17 @@ function __wbg_get_imports() {
|
|
|
422
563
|
__wbg_arcTo_e447860b0ef384fb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
423
564
|
getObject(arg0).arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
424
565
|
}, arguments); },
|
|
566
|
+
__wbg_arrayBuffer_16433f17fbd74397: function() { return handleError(function (arg0) {
|
|
567
|
+
const ret = getObject(arg0).arrayBuffer();
|
|
568
|
+
return addHeapObject(ret);
|
|
569
|
+
}, arguments); },
|
|
425
570
|
__wbg_beginPath_4b87fe7ed5408cac: function(arg0) {
|
|
426
571
|
getObject(arg0).beginPath();
|
|
427
572
|
},
|
|
573
|
+
__wbg_buffer_78291c0e094ccf99: function(arg0) {
|
|
574
|
+
const ret = getObject(arg0).buffer;
|
|
575
|
+
return addHeapObject(ret);
|
|
576
|
+
},
|
|
428
577
|
__wbg_bufferedAmount_8439cda0fbab40f3: function(arg0) {
|
|
429
578
|
const ret = getObject(arg0).bufferedAmount;
|
|
430
579
|
return ret;
|
|
@@ -493,6 +642,9 @@ function __wbg_get_imports() {
|
|
|
493
642
|
__wbg_drawImage_87a05b54f458ec06: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
494
643
|
getObject(arg0).drawImage(getObject(arg1), arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
495
644
|
}, arguments); },
|
|
645
|
+
__wbg_drawImage_c9877592da6891fb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
646
|
+
getObject(arg0).drawImage(getObject(arg1), arg2, arg3, arg4, arg5);
|
|
647
|
+
}, arguments); },
|
|
496
648
|
__wbg_ellipse_8683d7da44c9d648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
497
649
|
getObject(arg0).ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 !== 0);
|
|
498
650
|
}, arguments); },
|
|
@@ -511,6 +663,16 @@ function __wbg_get_imports() {
|
|
|
511
663
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
512
664
|
}
|
|
513
665
|
},
|
|
666
|
+
__wbg_error_afb37ce311f1115d: function(arg0, arg1) {
|
|
667
|
+
console.error(getObject(arg0), getObject(arg1));
|
|
668
|
+
},
|
|
669
|
+
__wbg_error_dd408a7b3cb542dd: function(arg0) {
|
|
670
|
+
console.error(getObject(arg0));
|
|
671
|
+
},
|
|
672
|
+
__wbg_fetch_6500a72da8700672: function(arg0, arg1, arg2) {
|
|
673
|
+
const ret = getObject(arg0).fetch(getStringFromWasm0(arg1, arg2));
|
|
674
|
+
return addHeapObject(ret);
|
|
675
|
+
},
|
|
514
676
|
__wbg_fetch_729fad2e5272298f: function(arg0, arg1) {
|
|
515
677
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
516
678
|
return addHeapObject(ret);
|
|
@@ -532,6 +694,10 @@ function __wbg_get_imports() {
|
|
|
532
694
|
const ret = getObject(arg0).fontBoundingBoxDescent;
|
|
533
695
|
return ret;
|
|
534
696
|
},
|
|
697
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
698
|
+
const ret = Array.from(getObject(arg0));
|
|
699
|
+
return addHeapObject(ret);
|
|
700
|
+
},
|
|
535
701
|
__wbg_generateKey_35e4d6e6942ffefd: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
536
702
|
const ret = getObject(arg0).generateKey(getObject(arg1), arg2 !== 0, getObject(arg3));
|
|
537
703
|
return addHeapObject(ret);
|
|
@@ -565,6 +731,14 @@ function __wbg_get_imports() {
|
|
|
565
731
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
566
732
|
return addHeapObject(ret);
|
|
567
733
|
}, arguments); },
|
|
734
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
735
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
736
|
+
return addHeapObject(ret);
|
|
737
|
+
},
|
|
738
|
+
__wbg_has_b3a6e6d0d28295fa: function() { return handleError(function (arg0, arg1) {
|
|
739
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
740
|
+
return ret;
|
|
741
|
+
}, arguments); },
|
|
568
742
|
__wbg_height_e56f6fb197710e09: function(arg0) {
|
|
569
743
|
const ret = getObject(arg0).height;
|
|
570
744
|
return ret;
|
|
@@ -593,6 +767,16 @@ function __wbg_get_imports() {
|
|
|
593
767
|
const ret = result;
|
|
594
768
|
return ret;
|
|
595
769
|
},
|
|
770
|
+
__wbg_instanceof_ErrorEvent_89b18d7510b76ab4: function(arg0) {
|
|
771
|
+
let result;
|
|
772
|
+
try {
|
|
773
|
+
result = getObject(arg0) instanceof ErrorEvent;
|
|
774
|
+
} catch (_) {
|
|
775
|
+
result = false;
|
|
776
|
+
}
|
|
777
|
+
const ret = result;
|
|
778
|
+
return ret;
|
|
779
|
+
},
|
|
596
780
|
__wbg_instanceof_HtmlCanvasElement_327e7f7530c72bbd: function(arg0) {
|
|
597
781
|
let result;
|
|
598
782
|
try {
|
|
@@ -623,6 +807,16 @@ function __wbg_get_imports() {
|
|
|
623
807
|
const ret = result;
|
|
624
808
|
return ret;
|
|
625
809
|
},
|
|
810
|
+
__wbg_instanceof_Uint8ClampedArray_14449d3c1195a82e: function(arg0) {
|
|
811
|
+
let result;
|
|
812
|
+
try {
|
|
813
|
+
result = getObject(arg0) instanceof Uint8ClampedArray;
|
|
814
|
+
} catch (_) {
|
|
815
|
+
result = false;
|
|
816
|
+
}
|
|
817
|
+
const ret = result;
|
|
818
|
+
return ret;
|
|
819
|
+
},
|
|
626
820
|
__wbg_instanceof_Window_5625ff9937037a38: function(arg0) {
|
|
627
821
|
let result;
|
|
628
822
|
try {
|
|
@@ -633,6 +827,10 @@ function __wbg_get_imports() {
|
|
|
633
827
|
const ret = result;
|
|
634
828
|
return ret;
|
|
635
829
|
},
|
|
830
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
831
|
+
const ret = Array.isArray(getObject(arg0));
|
|
832
|
+
return ret;
|
|
833
|
+
},
|
|
636
834
|
__wbg_isSecureContext_12728809070a29df: function(arg0) {
|
|
637
835
|
const ret = getObject(arg0).isSecureContext;
|
|
638
836
|
return ret;
|
|
@@ -641,9 +839,17 @@ function __wbg_get_imports() {
|
|
|
641
839
|
const ret = getObject(arg0).length;
|
|
642
840
|
return ret;
|
|
643
841
|
},
|
|
842
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
843
|
+
const ret = getObject(arg0).length;
|
|
844
|
+
return ret;
|
|
845
|
+
},
|
|
644
846
|
__wbg_lineTo_9495a068a4f48283: function(arg0, arg1, arg2) {
|
|
645
847
|
getObject(arg0).lineTo(arg1, arg2);
|
|
646
848
|
},
|
|
849
|
+
__wbg_load_c7c58f19755d1352: function() { return handleError(function (arg0, arg1) {
|
|
850
|
+
const ret = Atomics.load(getObject(arg0), arg1 >>> 0);
|
|
851
|
+
return ret;
|
|
852
|
+
}, arguments); },
|
|
647
853
|
__wbg_localStorage_19bddab1e4cb2413: function() { return handleError(function (arg0) {
|
|
648
854
|
const ret = getObject(arg0).localStorage;
|
|
649
855
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -652,6 +858,13 @@ function __wbg_get_imports() {
|
|
|
652
858
|
const ret = getObject(arg0).measureText(getStringFromWasm0(arg1, arg2));
|
|
653
859
|
return addHeapObject(ret);
|
|
654
860
|
}, arguments); },
|
|
861
|
+
__wbg_message_ee1169351138f81d: function(arg0, arg1) {
|
|
862
|
+
const ret = getObject(arg1).message;
|
|
863
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
864
|
+
const len1 = WASM_VECTOR_LEN;
|
|
865
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
866
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
867
|
+
},
|
|
655
868
|
__wbg_moveTo_a5882cdf1a7d39d9: function(arg0, arg1, arg2) {
|
|
656
869
|
getObject(arg0).moveTo(arg1, arg2);
|
|
657
870
|
},
|
|
@@ -675,6 +888,10 @@ function __wbg_get_imports() {
|
|
|
675
888
|
const ret = new Error();
|
|
676
889
|
return addHeapObject(ret);
|
|
677
890
|
},
|
|
891
|
+
__wbg_new_3867db84790e6cb4: function(arg0) {
|
|
892
|
+
const ret = new SharedArrayBuffer(arg0 >>> 0);
|
|
893
|
+
return addHeapObject(ret);
|
|
894
|
+
},
|
|
678
895
|
__wbg_new_418fb92a013d5930: function(arg0, arg1) {
|
|
679
896
|
try {
|
|
680
897
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -682,7 +899,7 @@ function __wbg_get_imports() {
|
|
|
682
899
|
const a = state0.a;
|
|
683
900
|
state0.a = 0;
|
|
684
901
|
try {
|
|
685
|
-
return
|
|
902
|
+
return __wasm_bindgen_func_elem_10348(a, state0.b, arg0, arg1);
|
|
686
903
|
} finally {
|
|
687
904
|
state0.a = a;
|
|
688
905
|
}
|
|
@@ -693,6 +910,10 @@ function __wbg_get_imports() {
|
|
|
693
910
|
state0.a = 0;
|
|
694
911
|
}
|
|
695
912
|
},
|
|
913
|
+
__wbg_new_49808c7d1d72154f: function(arg0) {
|
|
914
|
+
const ret = new ArrayBuffer(arg0 >>> 0);
|
|
915
|
+
return addHeapObject(ret);
|
|
916
|
+
},
|
|
696
917
|
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
697
918
|
const ret = new Uint8Array(getObject(arg0));
|
|
698
919
|
return addHeapObject(ret);
|
|
@@ -720,7 +941,7 @@ function __wbg_get_imports() {
|
|
|
720
941
|
const a = state0.a;
|
|
721
942
|
state0.a = 0;
|
|
722
943
|
try {
|
|
723
|
-
return
|
|
944
|
+
return __wasm_bindgen_func_elem_10348(a, state0.b, arg0, arg1);
|
|
724
945
|
} finally {
|
|
725
946
|
state0.a = a;
|
|
726
947
|
}
|
|
@@ -731,10 +952,22 @@ function __wbg_get_imports() {
|
|
|
731
952
|
state0.a = 0;
|
|
732
953
|
}
|
|
733
954
|
},
|
|
955
|
+
__wbg_new_with_byte_offset_and_length_7fcc1893b668846c: function(arg0, arg1, arg2) {
|
|
956
|
+
const ret = new Int32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
957
|
+
return addHeapObject(ret);
|
|
958
|
+
},
|
|
959
|
+
__wbg_new_with_byte_offset_and_length_ff6e927f8d72f0c3: function(arg0, arg1, arg2) {
|
|
960
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
961
|
+
return addHeapObject(ret);
|
|
962
|
+
},
|
|
734
963
|
__wbg_new_with_length_3ffc1c56427c525c: function(arg0) {
|
|
735
964
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
736
965
|
return addHeapObject(ret);
|
|
737
966
|
},
|
|
967
|
+
__wbg_new_with_options_ceb29d27c7c6cc6f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
968
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
969
|
+
return addHeapObject(ret);
|
|
970
|
+
}, arguments); },
|
|
738
971
|
__wbg_new_with_str_and_init_5a37d576dec75a86: function() { return handleError(function (arg0, arg1, arg2) {
|
|
739
972
|
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
740
973
|
return addHeapObject(ret);
|
|
@@ -743,6 +976,10 @@ function __wbg_get_imports() {
|
|
|
743
976
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
744
977
|
return addHeapObject(ret);
|
|
745
978
|
}, arguments); },
|
|
979
|
+
__wbg_new_with_sw_cced22be0cbff0d3: function() { return handleError(function (arg0, arg1) {
|
|
980
|
+
const ret = new ImageData(arg0 >>> 0, arg1 >>> 0);
|
|
981
|
+
return addHeapObject(ret);
|
|
982
|
+
}, arguments); },
|
|
746
983
|
__wbg_new_with_u8_clamped_array_and_sh_d9a3bf9abac17f51: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
747
984
|
const ret = new ImageData(getClampedArrayU8FromWasm0(arg0, arg1), arg2 >>> 0, arg3 >>> 0);
|
|
748
985
|
return addHeapObject(ret);
|
|
@@ -771,6 +1008,10 @@ function __wbg_get_imports() {
|
|
|
771
1008
|
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
|
772
1009
|
return addHeapObject(ret);
|
|
773
1010
|
}, arguments); },
|
|
1011
|
+
__wbg_open_585729a62dbd7475: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1012
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
|
|
1013
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1014
|
+
}, arguments); },
|
|
774
1015
|
__wbg_open_c5ecda93515ce190: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
775
1016
|
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
776
1017
|
return addHeapObject(ret);
|
|
@@ -779,6 +1020,12 @@ function __wbg_get_imports() {
|
|
|
779
1020
|
const ret = getObject(arg0).performance;
|
|
780
1021
|
return addHeapObject(ret);
|
|
781
1022
|
},
|
|
1023
|
+
__wbg_postMessage_db101a32b7c1dbf8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1024
|
+
getObject(arg0).postMessage(getObject(arg1), getObject(arg2));
|
|
1025
|
+
}, arguments); },
|
|
1026
|
+
__wbg_postMessage_ff0d3fa36478ee89: function() { return handleError(function (arg0, arg1) {
|
|
1027
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
1028
|
+
}, arguments); },
|
|
782
1029
|
__wbg_preventDefault_19878c58b8010668: function(arg0) {
|
|
783
1030
|
getObject(arg0).preventDefault();
|
|
784
1031
|
},
|
|
@@ -796,6 +1043,9 @@ function __wbg_get_imports() {
|
|
|
796
1043
|
__wbg_putImageData_17fd10517d5503a3: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
797
1044
|
getObject(arg0).putImageData(getObject(arg1), arg2, arg3);
|
|
798
1045
|
}, arguments); },
|
|
1046
|
+
__wbg_putImageData_ac2383610a3cfaa5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1047
|
+
getObject(arg0).putImageData(getObject(arg1), arg2, arg3, arg4, arg5, arg6, arg7);
|
|
1048
|
+
}, arguments); },
|
|
799
1049
|
__wbg_put_5e0ae8c80bb952a7: function() { return handleError(function (arg0, arg1, arg2) {
|
|
800
1050
|
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
|
|
801
1051
|
return addHeapObject(ret);
|
|
@@ -858,12 +1108,19 @@ function __wbg_get_imports() {
|
|
|
858
1108
|
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
859
1109
|
return ret;
|
|
860
1110
|
}, arguments); },
|
|
1111
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1112
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1113
|
+
return ret;
|
|
1114
|
+
}, arguments); },
|
|
861
1115
|
__wbg_set_binaryType_b701908a03166a9f: function(arg0, arg1) {
|
|
862
1116
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
863
1117
|
},
|
|
864
1118
|
__wbg_set_body_f301b68bff45f419: function(arg0, arg1) {
|
|
865
1119
|
getObject(arg0).body = getObject(arg1);
|
|
866
1120
|
},
|
|
1121
|
+
__wbg_set_e0a8f22f6940a74f: function(arg0, arg1, arg2) {
|
|
1122
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1123
|
+
},
|
|
867
1124
|
__wbg_set_e92392c4b44c5de1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
868
1125
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
869
1126
|
}, arguments); },
|
|
@@ -906,12 +1163,18 @@ function __wbg_get_imports() {
|
|
|
906
1163
|
__wbg_set_onerror_41278ace6abe3973: function(arg0, arg1) {
|
|
907
1164
|
getObject(arg0).onerror = getObject(arg1);
|
|
908
1165
|
},
|
|
1166
|
+
__wbg_set_onerror_b63034829f16949e: function(arg0, arg1) {
|
|
1167
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
1168
|
+
},
|
|
909
1169
|
__wbg_set_onerror_f1491b13f0fea022: function(arg0, arg1) {
|
|
910
1170
|
getObject(arg0).onerror = getObject(arg1);
|
|
911
1171
|
},
|
|
912
1172
|
__wbg_set_onmessage_065a797dafa9c437: function(arg0, arg1) {
|
|
913
1173
|
getObject(arg0).onmessage = getObject(arg1);
|
|
914
1174
|
},
|
|
1175
|
+
__wbg_set_onmessage_6f838578941fe42d: function(arg0, arg1) {
|
|
1176
|
+
getObject(arg0).onmessage = getObject(arg1);
|
|
1177
|
+
},
|
|
915
1178
|
__wbg_set_onopen_b28699f3431204cf: function(arg0, arg1) {
|
|
916
1179
|
getObject(arg0).onopen = getObject(arg1);
|
|
917
1180
|
},
|
|
@@ -927,6 +1190,9 @@ function __wbg_get_imports() {
|
|
|
927
1190
|
__wbg_set_textBaseline_72fc99fa97c6b6f3: function(arg0, arg1, arg2) {
|
|
928
1191
|
getObject(arg0).textBaseline = getStringFromWasm0(arg1, arg2);
|
|
929
1192
|
},
|
|
1193
|
+
__wbg_set_type_e6de95ea1ca51953: function(arg0, arg1) {
|
|
1194
|
+
getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
|
|
1195
|
+
},
|
|
930
1196
|
__wbg_set_width_36ef6630b22fc519: function(arg0, arg1) {
|
|
931
1197
|
getObject(arg0).width = arg1 >>> 0;
|
|
932
1198
|
},
|
|
@@ -964,6 +1230,9 @@ function __wbg_get_imports() {
|
|
|
964
1230
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
965
1231
|
return addHeapObject(ret);
|
|
966
1232
|
},
|
|
1233
|
+
__wbg_terminate_ce8875dabb0fdeb6: function(arg0) {
|
|
1234
|
+
getObject(arg0).terminate();
|
|
1235
|
+
},
|
|
967
1236
|
__wbg_text_9302f33ea8cfce7b: function() { return handleError(function (arg0) {
|
|
968
1237
|
const ret = getObject(arg0).text();
|
|
969
1238
|
return addHeapObject(ret);
|
|
@@ -1003,23 +1272,23 @@ function __wbg_get_imports() {
|
|
|
1003
1272
|
return ret;
|
|
1004
1273
|
},
|
|
1005
1274
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1006
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1007
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1275
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1270, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1276
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10346);
|
|
1008
1277
|
return addHeapObject(ret);
|
|
1009
1278
|
},
|
|
1010
1279
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1011
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
1012
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1280
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 247, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1281
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_435);
|
|
1013
1282
|
return addHeapObject(ret);
|
|
1014
1283
|
},
|
|
1015
1284
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1016
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1017
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1285
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 247, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1286
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_435_2);
|
|
1018
1287
|
return addHeapObject(ret);
|
|
1019
1288
|
},
|
|
1020
1289
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1021
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
1022
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1290
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 247, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1291
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_435_3);
|
|
1023
1292
|
return addHeapObject(ret);
|
|
1024
1293
|
},
|
|
1025
1294
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
@@ -1046,22 +1315,22 @@ function __wbg_get_imports() {
|
|
|
1046
1315
|
};
|
|
1047
1316
|
}
|
|
1048
1317
|
|
|
1049
|
-
function
|
|
1050
|
-
wasm.
|
|
1318
|
+
function __wasm_bindgen_func_elem_435(arg0, arg1, arg2) {
|
|
1319
|
+
wasm.__wasm_bindgen_func_elem_435(arg0, arg1, addHeapObject(arg2));
|
|
1051
1320
|
}
|
|
1052
1321
|
|
|
1053
|
-
function
|
|
1054
|
-
wasm.
|
|
1322
|
+
function __wasm_bindgen_func_elem_435_2(arg0, arg1, arg2) {
|
|
1323
|
+
wasm.__wasm_bindgen_func_elem_435_2(arg0, arg1, addHeapObject(arg2));
|
|
1055
1324
|
}
|
|
1056
1325
|
|
|
1057
|
-
function
|
|
1058
|
-
wasm.
|
|
1326
|
+
function __wasm_bindgen_func_elem_435_3(arg0, arg1, arg2) {
|
|
1327
|
+
wasm.__wasm_bindgen_func_elem_435_3(arg0, arg1, addHeapObject(arg2));
|
|
1059
1328
|
}
|
|
1060
1329
|
|
|
1061
|
-
function
|
|
1330
|
+
function __wasm_bindgen_func_elem_10346(arg0, arg1, arg2) {
|
|
1062
1331
|
try {
|
|
1063
1332
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1064
|
-
wasm.
|
|
1333
|
+
wasm.__wasm_bindgen_func_elem_10346(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1065
1334
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1066
1335
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1067
1336
|
if (r1) {
|
|
@@ -1072,8 +1341,8 @@ function __wasm_bindgen_func_elem_9869(arg0, arg1, arg2) {
|
|
|
1072
1341
|
}
|
|
1073
1342
|
}
|
|
1074
1343
|
|
|
1075
|
-
function
|
|
1076
|
-
wasm.
|
|
1344
|
+
function __wasm_bindgen_func_elem_10348(arg0, arg1, arg2, arg3) {
|
|
1345
|
+
wasm.__wasm_bindgen_func_elem_10348(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1077
1346
|
}
|
|
1078
1347
|
|
|
1079
1348
|
|
|
@@ -1081,6 +1350,9 @@ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
|
1081
1350
|
|
|
1082
1351
|
|
|
1083
1352
|
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
const __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
1084
1356
|
const DeviceLoginFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1085
1357
|
? { register: () => {}, unregister: () => {} }
|
|
1086
1358
|
: new FinalizationRegistry(ptr => wasm.__wbg_devicelogin_free(ptr, 1));
|
|
Binary file
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const forget_browser: (a: number, b: number, c: number, d: number) => number;
|
|
5
|
+
export const __wbg_devicelogin_free: (a: number, b: number) => void;
|
|
6
|
+
export const devicelogin_code: (a: number, b: number) => void;
|
|
7
|
+
export const devicelogin_intervalMs: (a: number) => number;
|
|
8
|
+
export const devicelogin_poll: (a: number) => number;
|
|
9
|
+
export const devicelogin_start: (a: number, b: number) => number;
|
|
10
|
+
export const devicelogin_verificationUrl: (a: number, b: number) => void;
|
|
4
11
|
export const __wbg_session_free: (a: number, b: number) => void;
|
|
5
12
|
export const link_check: (a: number) => void;
|
|
6
13
|
export const session_columns: (a: number) => number;
|
|
14
|
+
export const session_fake_account: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
7
15
|
export const session_focus: (a: number, b: number, c: number) => void;
|
|
8
16
|
export const session_frame: (a: number, b: number) => void;
|
|
9
17
|
export const session_key: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
10
18
|
export const session_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
11
19
|
export const session_paste: (a: number, b: number, c: number, d: number) => void;
|
|
20
|
+
export const session_plugin_trace: (a: number, b: number) => void;
|
|
12
21
|
export const session_pointer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
13
22
|
export const session_resize: (a: number, b: number, c: number) => void;
|
|
14
23
|
export const session_rows: (a: number) => number;
|
|
24
|
+
export const session_start_demo_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
25
|
+
export const session_start_fake_account_plugins: (a: number, b: number, c: number, d: number) => void;
|
|
26
|
+
export const session_start_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
15
27
|
export const session_take_clipboard: (a: number, b: number) => void;
|
|
16
28
|
export const session_wheel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
17
29
|
export const start: () => void;
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const devicelogin_verificationUrl: (a: number, b: number) => void;
|
|
24
|
-
export const forget_browser: (a: number, b: number, c: number, d: number) => number;
|
|
25
|
-
export const __wasm_bindgen_func_elem_9869: (a: number, b: number, c: number, d: number) => void;
|
|
26
|
-
export const __wasm_bindgen_func_elem_9871: (a: number, b: number, c: number, d: number) => void;
|
|
27
|
-
export const __wasm_bindgen_func_elem_593: (a: number, b: number, c: number) => void;
|
|
28
|
-
export const __wasm_bindgen_func_elem_593_2: (a: number, b: number, c: number) => void;
|
|
29
|
-
export const __wasm_bindgen_func_elem_593_3: (a: number, b: number, c: number) => void;
|
|
30
|
+
export const __wasm_bindgen_func_elem_10346: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
+
export const __wasm_bindgen_func_elem_10348: (a: number, b: number, c: number, d: number) => void;
|
|
32
|
+
export const __wasm_bindgen_func_elem_435: (a: number, b: number, c: number) => void;
|
|
33
|
+
export const __wasm_bindgen_func_elem_435_2: (a: number, b: number, c: number) => void;
|
|
34
|
+
export const __wasm_bindgen_func_elem_435_3: (a: number, b: number, c: number) => void;
|
|
30
35
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
31
36
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
32
37
|
export const __wbindgen_export3: (a: number) => void;
|
|
Binary file
|
|
Binary file
|