asciidoc-editor 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +134 -0
- package/asciidoc_editor.d.ts +160 -0
- package/asciidoc_editor.js +1428 -0
- package/asciidoc_editor_bg.wasm +0 -0
- package/asciidoc_editor_bg.wasm.d.ts +42 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1428 @@
|
|
|
1
|
+
/* @ts-self-types="./asciidoc_editor.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A mounted editor.
|
|
5
|
+
*
|
|
6
|
+
* Hold on to it: letting it go takes the editor off the page, which is what
|
|
7
|
+
* [`Editor::destroy`] does deliberately.
|
|
8
|
+
*/
|
|
9
|
+
export class Editor {
|
|
10
|
+
static __wrap(ptr) {
|
|
11
|
+
const obj = Object.create(Editor.prototype);
|
|
12
|
+
obj.__wbg_ptr = ptr;
|
|
13
|
+
EditorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
__destroy_into_raw() {
|
|
17
|
+
const ptr = this.__wbg_ptr;
|
|
18
|
+
this.__wbg_ptr = 0;
|
|
19
|
+
EditorFinalization.unregister(this);
|
|
20
|
+
return ptr;
|
|
21
|
+
}
|
|
22
|
+
free() {
|
|
23
|
+
const ptr = this.__destroy_into_raw();
|
|
24
|
+
wasm.__wbg_editor_free(ptr, 0);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Takes the editor off the page, leaving the element as it was found.
|
|
28
|
+
*/
|
|
29
|
+
destroy() {
|
|
30
|
+
wasm.editor_destroy(this.__wbg_ptr);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Calls `callback` with the document whenever it changes.
|
|
34
|
+
* @param {ChangeCallback} callback
|
|
35
|
+
*/
|
|
36
|
+
onChange(callback) {
|
|
37
|
+
wasm.editor_onChange(this.__wbg_ptr, callback);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Replaces the document.
|
|
41
|
+
* @param {string} source
|
|
42
|
+
*/
|
|
43
|
+
setValue(source) {
|
|
44
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
45
|
+
const len0 = WASM_VECTOR_LEN;
|
|
46
|
+
wasm.editor_setValue(this.__wbg_ptr, ptr0, len0);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The document, as AsciiDoc.
|
|
50
|
+
* @returns {string}
|
|
51
|
+
*/
|
|
52
|
+
value() {
|
|
53
|
+
let deferred1_0;
|
|
54
|
+
let deferred1_1;
|
|
55
|
+
try {
|
|
56
|
+
const ret = wasm.editor_value(this.__wbg_ptr);
|
|
57
|
+
deferred1_0 = ret[0];
|
|
58
|
+
deferred1_1 = ret[1];
|
|
59
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
60
|
+
} finally {
|
|
61
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (Symbol.dispose) Editor.prototype[Symbol.dispose] = Editor.prototype.free;
|
|
66
|
+
|
|
67
|
+
export class IntoUnderlyingByteSource {
|
|
68
|
+
__destroy_into_raw() {
|
|
69
|
+
const ptr = this.__wbg_ptr;
|
|
70
|
+
this.__wbg_ptr = 0;
|
|
71
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
72
|
+
return ptr;
|
|
73
|
+
}
|
|
74
|
+
free() {
|
|
75
|
+
const ptr = this.__destroy_into_raw();
|
|
76
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @returns {number}
|
|
80
|
+
*/
|
|
81
|
+
get autoAllocateChunkSize() {
|
|
82
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
83
|
+
return ret >>> 0;
|
|
84
|
+
}
|
|
85
|
+
cancel() {
|
|
86
|
+
const ptr = this.__destroy_into_raw();
|
|
87
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @param {ReadableByteStreamController} controller
|
|
91
|
+
* @returns {Promise<any>}
|
|
92
|
+
*/
|
|
93
|
+
pull(controller) {
|
|
94
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
95
|
+
return ret;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @param {ReadableByteStreamController} controller
|
|
99
|
+
*/
|
|
100
|
+
start(controller) {
|
|
101
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @returns {ReadableStreamType}
|
|
105
|
+
*/
|
|
106
|
+
get type() {
|
|
107
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
108
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
112
|
+
|
|
113
|
+
export class IntoUnderlyingSink {
|
|
114
|
+
__destroy_into_raw() {
|
|
115
|
+
const ptr = this.__wbg_ptr;
|
|
116
|
+
this.__wbg_ptr = 0;
|
|
117
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
118
|
+
return ptr;
|
|
119
|
+
}
|
|
120
|
+
free() {
|
|
121
|
+
const ptr = this.__destroy_into_raw();
|
|
122
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @param {any} reason
|
|
126
|
+
* @returns {Promise<any>}
|
|
127
|
+
*/
|
|
128
|
+
abort(reason) {
|
|
129
|
+
const ptr = this.__destroy_into_raw();
|
|
130
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
131
|
+
return ret;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @returns {Promise<any>}
|
|
135
|
+
*/
|
|
136
|
+
close() {
|
|
137
|
+
const ptr = this.__destroy_into_raw();
|
|
138
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
139
|
+
return ret;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @param {any} chunk
|
|
143
|
+
* @returns {Promise<any>}
|
|
144
|
+
*/
|
|
145
|
+
write(chunk) {
|
|
146
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
147
|
+
return ret;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
151
|
+
|
|
152
|
+
export class IntoUnderlyingSource {
|
|
153
|
+
__destroy_into_raw() {
|
|
154
|
+
const ptr = this.__wbg_ptr;
|
|
155
|
+
this.__wbg_ptr = 0;
|
|
156
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
157
|
+
return ptr;
|
|
158
|
+
}
|
|
159
|
+
free() {
|
|
160
|
+
const ptr = this.__destroy_into_raw();
|
|
161
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
162
|
+
}
|
|
163
|
+
cancel() {
|
|
164
|
+
const ptr = this.__destroy_into_raw();
|
|
165
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @param {ReadableStreamDefaultController} controller
|
|
169
|
+
* @returns {Promise<any>}
|
|
170
|
+
*/
|
|
171
|
+
pull(controller) {
|
|
172
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
173
|
+
return ret;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Puts an editor inside the element named by `target`, a CSS selector or the
|
|
180
|
+
* element itself.
|
|
181
|
+
*
|
|
182
|
+
* Options, all of them optional: `value` to open with, `autosave` naming a
|
|
183
|
+
* `localStorage` key to keep the document under, and `richText` to start in
|
|
184
|
+
* rich text rather than source (the default).
|
|
185
|
+
* @param {MountTarget} target
|
|
186
|
+
* @param {MountOptions | null} [options]
|
|
187
|
+
* @returns {Editor}
|
|
188
|
+
*/
|
|
189
|
+
export function mount(target, options) {
|
|
190
|
+
const ret = wasm.mount(target, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
191
|
+
if (ret[2]) {
|
|
192
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
193
|
+
}
|
|
194
|
+
return Editor.__wrap(ret[0]);
|
|
195
|
+
}
|
|
196
|
+
function __wbg_get_imports() {
|
|
197
|
+
const import0 = {
|
|
198
|
+
__proto__: null,
|
|
199
|
+
__wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
|
|
200
|
+
const v = arg0;
|
|
201
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
202
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
203
|
+
},
|
|
204
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
205
|
+
const ret = debugString(arg1);
|
|
206
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
207
|
+
const len1 = WASM_VECTOR_LEN;
|
|
208
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
209
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
210
|
+
},
|
|
211
|
+
__wbg___wbindgen_is_falsy_4502df4d571fca70: function(arg0) {
|
|
212
|
+
const ret = !arg0;
|
|
213
|
+
return ret;
|
|
214
|
+
},
|
|
215
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
216
|
+
const ret = typeof(arg0) === 'function';
|
|
217
|
+
return ret;
|
|
218
|
+
},
|
|
219
|
+
__wbg___wbindgen_is_null_5160b3e381865372: function(arg0) {
|
|
220
|
+
const ret = arg0 === null;
|
|
221
|
+
return ret;
|
|
222
|
+
},
|
|
223
|
+
__wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
|
|
224
|
+
const ret = arg0 === undefined;
|
|
225
|
+
return ret;
|
|
226
|
+
},
|
|
227
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
228
|
+
const obj = arg1;
|
|
229
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
230
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
+
var len1 = WASM_VECTOR_LEN;
|
|
232
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
233
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
234
|
+
},
|
|
235
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
236
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
237
|
+
},
|
|
238
|
+
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
239
|
+
arg0._wbg_cb_unref();
|
|
240
|
+
},
|
|
241
|
+
__wbg_activeElement_a40cd04e4e5cfaff: function(arg0) {
|
|
242
|
+
const ret = arg0.activeElement;
|
|
243
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
244
|
+
},
|
|
245
|
+
__wbg_addEventListener_9534e2dc12044ee4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
246
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
247
|
+
}, arguments); },
|
|
248
|
+
__wbg_addRange_6a48fe41e98f1d98: function() { return handleError(function (arg0, arg1) {
|
|
249
|
+
arg0.addRange(arg1);
|
|
250
|
+
}, arguments); },
|
|
251
|
+
__wbg_add_8ead3105ef6d0bda: function() { return handleError(function (arg0, arg1, arg2) {
|
|
252
|
+
arg0.add(getStringFromWasm0(arg1, arg2));
|
|
253
|
+
}, arguments); },
|
|
254
|
+
__wbg_appendChild_0a61ee9a9da4556f: function() { return handleError(function (arg0, arg1) {
|
|
255
|
+
const ret = arg0.appendChild(arg1);
|
|
256
|
+
return ret;
|
|
257
|
+
}, arguments); },
|
|
258
|
+
__wbg_body_7d83a19bffb260db: function(arg0) {
|
|
259
|
+
const ret = arg0.body;
|
|
260
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
261
|
+
},
|
|
262
|
+
__wbg_bottom_89fa307d0439be2c: function(arg0) {
|
|
263
|
+
const ret = arg0.bottom;
|
|
264
|
+
return ret;
|
|
265
|
+
},
|
|
266
|
+
__wbg_buffer_4a989bded7035f57: function(arg0) {
|
|
267
|
+
const ret = arg0.buffer;
|
|
268
|
+
return ret;
|
|
269
|
+
},
|
|
270
|
+
__wbg_button_f6aa74c65b739064: function(arg0) {
|
|
271
|
+
const ret = arg0.button;
|
|
272
|
+
return ret;
|
|
273
|
+
},
|
|
274
|
+
__wbg_byobRequest_f161fc37241dd3d4: function(arg0) {
|
|
275
|
+
const ret = arg0.byobRequest;
|
|
276
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
277
|
+
},
|
|
278
|
+
__wbg_byteLength_0ddb1795e2c7e689: function(arg0) {
|
|
279
|
+
const ret = arg0.byteLength;
|
|
280
|
+
return ret;
|
|
281
|
+
},
|
|
282
|
+
__wbg_byteOffset_46eb015f52b6ad7d: function(arg0) {
|
|
283
|
+
const ret = arg0.byteOffset;
|
|
284
|
+
return ret;
|
|
285
|
+
},
|
|
286
|
+
__wbg_call_6bcf8d3e20937e46: function() { return handleError(function (arg0, arg1, arg2) {
|
|
287
|
+
const ret = arg0.call(arg1, arg2);
|
|
288
|
+
return ret;
|
|
289
|
+
}, arguments); },
|
|
290
|
+
__wbg_cancelBubble_946b05eecc8e3059: function(arg0) {
|
|
291
|
+
const ret = arg0.cancelBubble;
|
|
292
|
+
return ret;
|
|
293
|
+
},
|
|
294
|
+
__wbg_childNodes_111861efe001fa18: function(arg0) {
|
|
295
|
+
const ret = arg0.childNodes;
|
|
296
|
+
return ret;
|
|
297
|
+
},
|
|
298
|
+
__wbg_classList_1501fdb96a8c296c: function(arg0) {
|
|
299
|
+
const ret = arg0.classList;
|
|
300
|
+
return ret;
|
|
301
|
+
},
|
|
302
|
+
__wbg_clearTimeout_dc6554a9312cb919: function(arg0, arg1) {
|
|
303
|
+
arg0.clearTimeout(arg1);
|
|
304
|
+
},
|
|
305
|
+
__wbg_click_842edec52299234d: function(arg0) {
|
|
306
|
+
arg0.click();
|
|
307
|
+
},
|
|
308
|
+
__wbg_clientHeight_8669994caeda015c: function(arg0) {
|
|
309
|
+
const ret = arg0.clientHeight;
|
|
310
|
+
return ret;
|
|
311
|
+
},
|
|
312
|
+
__wbg_clientY_52b1b3958eb93e2d: function(arg0) {
|
|
313
|
+
const ret = arg0.clientY;
|
|
314
|
+
return ret;
|
|
315
|
+
},
|
|
316
|
+
__wbg_clipboardData_21dbd4d02fe62f91: function(arg0) {
|
|
317
|
+
const ret = arg0.clipboardData;
|
|
318
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
319
|
+
},
|
|
320
|
+
__wbg_cloneContents_ff1753640a1f0ff5: function() { return handleError(function (arg0) {
|
|
321
|
+
const ret = arg0.cloneContents();
|
|
322
|
+
return ret;
|
|
323
|
+
}, arguments); },
|
|
324
|
+
__wbg_cloneNode_780b5626b746de33: function() { return handleError(function (arg0) {
|
|
325
|
+
const ret = arg0.cloneNode();
|
|
326
|
+
return ret;
|
|
327
|
+
}, arguments); },
|
|
328
|
+
__wbg_cloneNode_e4d149ec7cda3b2b: function() { return handleError(function (arg0, arg1) {
|
|
329
|
+
const ret = arg0.cloneNode(arg1 !== 0);
|
|
330
|
+
return ret;
|
|
331
|
+
}, arguments); },
|
|
332
|
+
__wbg_cloneRange_2476cf7c42adb4dd: function(arg0) {
|
|
333
|
+
const ret = arg0.cloneRange();
|
|
334
|
+
return ret;
|
|
335
|
+
},
|
|
336
|
+
__wbg_close_22882088c136df25: function() { return handleError(function (arg0) {
|
|
337
|
+
arg0.close();
|
|
338
|
+
}, arguments); },
|
|
339
|
+
__wbg_close_8b609460dd26e367: function() { return handleError(function (arg0) {
|
|
340
|
+
arg0.close();
|
|
341
|
+
}, arguments); },
|
|
342
|
+
__wbg_closest_c70e5aadd2078e50: function() { return handleError(function (arg0, arg1, arg2) {
|
|
343
|
+
const ret = arg0.closest(getStringFromWasm0(arg1, arg2));
|
|
344
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
345
|
+
}, arguments); },
|
|
346
|
+
__wbg_collapse_c1f8db07ec82c3c9: function(arg0, arg1) {
|
|
347
|
+
arg0.collapse(arg1 !== 0);
|
|
348
|
+
},
|
|
349
|
+
__wbg_commonAncestorContainer_5fb74f2b3f5dc733: function() { return handleError(function (arg0) {
|
|
350
|
+
const ret = arg0.commonAncestorContainer;
|
|
351
|
+
return ret;
|
|
352
|
+
}, arguments); },
|
|
353
|
+
__wbg_compareBoundaryPoints_b1210e64d79e1ba0: function() { return handleError(function (arg0, arg1, arg2) {
|
|
354
|
+
const ret = arg0.compareBoundaryPoints(arg1, arg2);
|
|
355
|
+
return ret;
|
|
356
|
+
}, arguments); },
|
|
357
|
+
__wbg_composedPath_b2dae8cc5065d452: function(arg0) {
|
|
358
|
+
const ret = arg0.composedPath();
|
|
359
|
+
return ret;
|
|
360
|
+
},
|
|
361
|
+
__wbg_contains_b69b8d1014996a18: function(arg0, arg1, arg2) {
|
|
362
|
+
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
363
|
+
return ret;
|
|
364
|
+
},
|
|
365
|
+
__wbg_contentDocument_1b917fe07c86afc3: function(arg0) {
|
|
366
|
+
const ret = arg0.contentDocument;
|
|
367
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
368
|
+
},
|
|
369
|
+
__wbg_content_405aafcafb81b239: function(arg0) {
|
|
370
|
+
const ret = arg0.content;
|
|
371
|
+
return ret;
|
|
372
|
+
},
|
|
373
|
+
__wbg_createComment_2f844d723b100a86: function(arg0, arg1, arg2) {
|
|
374
|
+
const ret = arg0.createComment(getStringFromWasm0(arg1, arg2));
|
|
375
|
+
return ret;
|
|
376
|
+
},
|
|
377
|
+
__wbg_createElementNS_a45335f2f24f9ec5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
378
|
+
const ret = arg0.createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
379
|
+
return ret;
|
|
380
|
+
}, arguments); },
|
|
381
|
+
__wbg_createElement_b9024dc5ba95ac27: function() { return handleError(function (arg0, arg1, arg2) {
|
|
382
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
383
|
+
return ret;
|
|
384
|
+
}, arguments); },
|
|
385
|
+
__wbg_createObjectURL_7dadebfd232e594a: function() { return handleError(function (arg0, arg1) {
|
|
386
|
+
const ret = URL.createObjectURL(arg1);
|
|
387
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
const len1 = WASM_VECTOR_LEN;
|
|
389
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
390
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
391
|
+
}, arguments); },
|
|
392
|
+
__wbg_createRange_b018c82ba7997cf4: function() { return handleError(function (arg0) {
|
|
393
|
+
const ret = arg0.createRange();
|
|
394
|
+
return ret;
|
|
395
|
+
}, arguments); },
|
|
396
|
+
__wbg_createTextNode_6d2db3073c3d6df6: function(arg0, arg1, arg2) {
|
|
397
|
+
const ret = arg0.createTextNode(getStringFromWasm0(arg1, arg2));
|
|
398
|
+
return ret;
|
|
399
|
+
},
|
|
400
|
+
__wbg_ctrlKey_785e802b8798af13: function(arg0) {
|
|
401
|
+
const ret = arg0.ctrlKey;
|
|
402
|
+
return ret;
|
|
403
|
+
},
|
|
404
|
+
__wbg_dataTransfer_9d0a7bfb637e95b6: function(arg0) {
|
|
405
|
+
const ret = arg0.dataTransfer;
|
|
406
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
407
|
+
},
|
|
408
|
+
__wbg_deleteContents_7cbb046f3a401f2b: function() { return handleError(function (arg0) {
|
|
409
|
+
arg0.deleteContents();
|
|
410
|
+
}, arguments); },
|
|
411
|
+
__wbg_deleteProperty_a40aedf449952ca0: function() { return handleError(function (arg0, arg1) {
|
|
412
|
+
const ret = Reflect.deleteProperty(arg0, arg1);
|
|
413
|
+
return ret;
|
|
414
|
+
}, arguments); },
|
|
415
|
+
__wbg_document_c7f486c52d63d24e: function(arg0) {
|
|
416
|
+
const ret = arg0.document;
|
|
417
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
418
|
+
},
|
|
419
|
+
__wbg_enqueue_6cb545d22db14f33: function() { return handleError(function (arg0, arg1) {
|
|
420
|
+
arg0.enqueue(arg1);
|
|
421
|
+
}, arguments); },
|
|
422
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
423
|
+
let deferred0_0;
|
|
424
|
+
let deferred0_1;
|
|
425
|
+
try {
|
|
426
|
+
deferred0_0 = arg0;
|
|
427
|
+
deferred0_1 = arg1;
|
|
428
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
429
|
+
} finally {
|
|
430
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
__wbg_execCommand_96cc8b68b6180964: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
434
|
+
const ret = arg0.execCommand(getStringFromWasm0(arg1, arg2), arg3 !== 0, getStringFromWasm0(arg4, arg5));
|
|
435
|
+
return ret;
|
|
436
|
+
}, arguments); },
|
|
437
|
+
__wbg_files_054ebec12ea09826: function(arg0) {
|
|
438
|
+
const ret = arg0.files;
|
|
439
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
440
|
+
},
|
|
441
|
+
__wbg_files_06af76c704b59946: function(arg0) {
|
|
442
|
+
const ret = arg0.files;
|
|
443
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
444
|
+
},
|
|
445
|
+
__wbg_firstElementChild_c4359d5571e95230: function(arg0) {
|
|
446
|
+
const ret = arg0.firstElementChild;
|
|
447
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
448
|
+
},
|
|
449
|
+
__wbg_focusNode_e4fcfb873a6a6456: function(arg0) {
|
|
450
|
+
const ret = arg0.focusNode;
|
|
451
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
452
|
+
},
|
|
453
|
+
__wbg_focusOffset_2f04a937d07622cf: function(arg0) {
|
|
454
|
+
const ret = arg0.focusOffset;
|
|
455
|
+
return ret;
|
|
456
|
+
},
|
|
457
|
+
__wbg_focus_c1b2d4962209010b: function() { return handleError(function (arg0) {
|
|
458
|
+
arg0.focus();
|
|
459
|
+
}, arguments); },
|
|
460
|
+
__wbg_getAttribute_b12f8535a2cb5368: function(arg0, arg1, arg2, arg3) {
|
|
461
|
+
const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3));
|
|
462
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
463
|
+
var len1 = WASM_VECTOR_LEN;
|
|
464
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
465
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
466
|
+
},
|
|
467
|
+
__wbg_getBoundingClientRect_299f40f8641457e6: function(arg0) {
|
|
468
|
+
const ret = arg0.getBoundingClientRect();
|
|
469
|
+
return ret;
|
|
470
|
+
},
|
|
471
|
+
__wbg_getBoundingClientRect_9226ec0ba5382c35: function(arg0) {
|
|
472
|
+
const ret = arg0.getBoundingClientRect();
|
|
473
|
+
return ret;
|
|
474
|
+
},
|
|
475
|
+
__wbg_getData_b19c87e3887bc0cb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
476
|
+
const ret = arg1.getData(getStringFromWasm0(arg2, arg3));
|
|
477
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
478
|
+
const len1 = WASM_VECTOR_LEN;
|
|
479
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
480
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
481
|
+
}, arguments); },
|
|
482
|
+
__wbg_getDate_8e7807f062ade36a: function(arg0) {
|
|
483
|
+
const ret = arg0.getDate();
|
|
484
|
+
return ret;
|
|
485
|
+
},
|
|
486
|
+
__wbg_getElementById_ccc92d66acf76819: function(arg0, arg1, arg2) {
|
|
487
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
488
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
489
|
+
},
|
|
490
|
+
__wbg_getFullYear_0cfd5a75cf3d5856: function(arg0) {
|
|
491
|
+
const ret = arg0.getFullYear();
|
|
492
|
+
return ret;
|
|
493
|
+
},
|
|
494
|
+
__wbg_getHours_a9938d9b8972574f: function(arg0) {
|
|
495
|
+
const ret = arg0.getHours();
|
|
496
|
+
return ret;
|
|
497
|
+
},
|
|
498
|
+
__wbg_getItem_5d579ac5f70ace34: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
499
|
+
const ret = arg1.getItem(getStringFromWasm0(arg2, arg3));
|
|
500
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
501
|
+
var len1 = WASM_VECTOR_LEN;
|
|
502
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
503
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
504
|
+
}, arguments); },
|
|
505
|
+
__wbg_getMinutes_1fabf71af7d9c8e2: function(arg0) {
|
|
506
|
+
const ret = arg0.getMinutes();
|
|
507
|
+
return ret;
|
|
508
|
+
},
|
|
509
|
+
__wbg_getMonth_01ce17d889ed7e5e: function(arg0) {
|
|
510
|
+
const ret = arg0.getMonth();
|
|
511
|
+
return ret;
|
|
512
|
+
},
|
|
513
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
514
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
515
|
+
}, arguments); },
|
|
516
|
+
__wbg_getRangeAt_e8214a265df0e8a1: function() { return handleError(function (arg0, arg1) {
|
|
517
|
+
const ret = arg0.getRangeAt(arg1 >>> 0);
|
|
518
|
+
return ret;
|
|
519
|
+
}, arguments); },
|
|
520
|
+
__wbg_getSeconds_44cc4c4b366119da: function(arg0) {
|
|
521
|
+
const ret = arg0.getSeconds();
|
|
522
|
+
return ret;
|
|
523
|
+
},
|
|
524
|
+
__wbg_getSelection_2ba8001410fa1223: function() { return handleError(function (arg0) {
|
|
525
|
+
const ret = arg0.getSelection();
|
|
526
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
527
|
+
}, arguments); },
|
|
528
|
+
__wbg_getTimezoneOffset_6e4850ad528ac37d: function(arg0) {
|
|
529
|
+
const ret = arg0.getTimezoneOffset();
|
|
530
|
+
return ret;
|
|
531
|
+
},
|
|
532
|
+
__wbg_get_66aa90c49c0d309f: function(arg0, arg1) {
|
|
533
|
+
const ret = arg0[arg1 >>> 0];
|
|
534
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
535
|
+
},
|
|
536
|
+
__wbg_get_989d0a1309644f2b: function() { return handleError(function (arg0, arg1) {
|
|
537
|
+
const ret = Reflect.get(arg0, arg1);
|
|
538
|
+
return ret;
|
|
539
|
+
}, arguments); },
|
|
540
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
541
|
+
const ret = arg0[arg1 >>> 0];
|
|
542
|
+
return ret;
|
|
543
|
+
},
|
|
544
|
+
__wbg_hasAttribute_847347996c609fca: function(arg0, arg1, arg2) {
|
|
545
|
+
const ret = arg0.hasAttribute(getStringFromWasm0(arg1, arg2));
|
|
546
|
+
return ret;
|
|
547
|
+
},
|
|
548
|
+
__wbg_head_1dae591341fbaa2b: function(arg0) {
|
|
549
|
+
const ret = arg0.head;
|
|
550
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
551
|
+
},
|
|
552
|
+
__wbg_height_24586a23e4789d28: function(arg0) {
|
|
553
|
+
const ret = arg0.height;
|
|
554
|
+
return ret;
|
|
555
|
+
},
|
|
556
|
+
__wbg_host_8c713ce042f34258: function(arg0) {
|
|
557
|
+
const ret = arg0.host;
|
|
558
|
+
return ret;
|
|
559
|
+
},
|
|
560
|
+
__wbg_innerText_7bbef759c499c301: function(arg0, arg1) {
|
|
561
|
+
const ret = arg1.innerText;
|
|
562
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
563
|
+
const len1 = WASM_VECTOR_LEN;
|
|
564
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
565
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
566
|
+
},
|
|
567
|
+
__wbg_insertBefore_5b6fe047589f01ee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
568
|
+
const ret = arg0.insertBefore(arg1, arg2);
|
|
569
|
+
return ret;
|
|
570
|
+
}, arguments); },
|
|
571
|
+
__wbg_insertNode_627c4b153b5de631: function() { return handleError(function (arg0, arg1) {
|
|
572
|
+
arg0.insertNode(arg1);
|
|
573
|
+
}, arguments); },
|
|
574
|
+
__wbg_instanceof_Element_c95c45635d03047e: function(arg0) {
|
|
575
|
+
let result;
|
|
576
|
+
try {
|
|
577
|
+
result = arg0 instanceof Element;
|
|
578
|
+
} catch (_) {
|
|
579
|
+
result = false;
|
|
580
|
+
}
|
|
581
|
+
const ret = result;
|
|
582
|
+
return ret;
|
|
583
|
+
},
|
|
584
|
+
__wbg_instanceof_HtmlAnchorElement_282a8e09d28260d3: function(arg0) {
|
|
585
|
+
let result;
|
|
586
|
+
try {
|
|
587
|
+
result = arg0 instanceof HTMLAnchorElement;
|
|
588
|
+
} catch (_) {
|
|
589
|
+
result = false;
|
|
590
|
+
}
|
|
591
|
+
const ret = result;
|
|
592
|
+
return ret;
|
|
593
|
+
},
|
|
594
|
+
__wbg_instanceof_HtmlElement_bd89ce6abf9dad44: function(arg0) {
|
|
595
|
+
let result;
|
|
596
|
+
try {
|
|
597
|
+
result = arg0 instanceof HTMLElement;
|
|
598
|
+
} catch (_) {
|
|
599
|
+
result = false;
|
|
600
|
+
}
|
|
601
|
+
const ret = result;
|
|
602
|
+
return ret;
|
|
603
|
+
},
|
|
604
|
+
__wbg_instanceof_ShadowRoot_909fd69aa6c757e6: function(arg0) {
|
|
605
|
+
let result;
|
|
606
|
+
try {
|
|
607
|
+
result = arg0 instanceof ShadowRoot;
|
|
608
|
+
} catch (_) {
|
|
609
|
+
result = false;
|
|
610
|
+
}
|
|
611
|
+
const ret = result;
|
|
612
|
+
return ret;
|
|
613
|
+
},
|
|
614
|
+
__wbg_instanceof_Window_a3b8566f0a9c5d1a: function(arg0) {
|
|
615
|
+
let result;
|
|
616
|
+
try {
|
|
617
|
+
result = arg0 instanceof Window;
|
|
618
|
+
} catch (_) {
|
|
619
|
+
result = false;
|
|
620
|
+
}
|
|
621
|
+
const ret = result;
|
|
622
|
+
return ret;
|
|
623
|
+
},
|
|
624
|
+
__wbg_isSameNode_0e4c961abd450e1b: function(arg0, arg1) {
|
|
625
|
+
const ret = arg0.isSameNode(arg1);
|
|
626
|
+
return ret;
|
|
627
|
+
},
|
|
628
|
+
__wbg_is_61443cc073056436: function(arg0, arg1) {
|
|
629
|
+
const ret = Object.is(arg0, arg1);
|
|
630
|
+
return ret;
|
|
631
|
+
},
|
|
632
|
+
__wbg_item_adf6c9a98cc42542: function(arg0, arg1) {
|
|
633
|
+
const ret = arg0.item(arg1 >>> 0);
|
|
634
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
635
|
+
},
|
|
636
|
+
__wbg_key_d29d670923b81510: function(arg0, arg1) {
|
|
637
|
+
const ret = arg1.key;
|
|
638
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
639
|
+
const len1 = WASM_VECTOR_LEN;
|
|
640
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
641
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
642
|
+
},
|
|
643
|
+
__wbg_lastElementChild_e4cceddd829fe003: function(arg0) {
|
|
644
|
+
const ret = arg0.lastElementChild;
|
|
645
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
646
|
+
},
|
|
647
|
+
__wbg_length_2a004c1681a133a1: function(arg0) {
|
|
648
|
+
const ret = arg0.length;
|
|
649
|
+
return ret;
|
|
650
|
+
},
|
|
651
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
652
|
+
const ret = arg0.length;
|
|
653
|
+
return ret;
|
|
654
|
+
},
|
|
655
|
+
__wbg_length_c0ad739f2efc455b: function(arg0) {
|
|
656
|
+
const ret = arg0.length;
|
|
657
|
+
return ret;
|
|
658
|
+
},
|
|
659
|
+
__wbg_localStorage_72d815b9c2adaaad: function() { return handleError(function (arg0) {
|
|
660
|
+
const ret = arg0.localStorage;
|
|
661
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
662
|
+
}, arguments); },
|
|
663
|
+
__wbg_metaKey_3f9183dfd5e1b726: function(arg0) {
|
|
664
|
+
const ret = arg0.metaKey;
|
|
665
|
+
return ret;
|
|
666
|
+
},
|
|
667
|
+
__wbg_name_9240af9c79ef35aa: function(arg0, arg1) {
|
|
668
|
+
const ret = arg1.name;
|
|
669
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
670
|
+
const len1 = WASM_VECTOR_LEN;
|
|
671
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
672
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
673
|
+
},
|
|
674
|
+
__wbg_new_0_35540e542ba689d2: function() {
|
|
675
|
+
const ret = new Date();
|
|
676
|
+
return ret;
|
|
677
|
+
},
|
|
678
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
679
|
+
const ret = new Error();
|
|
680
|
+
return ret;
|
|
681
|
+
},
|
|
682
|
+
__wbg_new_a32a1ab6c6655abe: function(arg0, arg1) {
|
|
683
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
684
|
+
return ret;
|
|
685
|
+
},
|
|
686
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
687
|
+
const ret = new Object();
|
|
688
|
+
return ret;
|
|
689
|
+
},
|
|
690
|
+
__wbg_new_e9fffa3c467d7786: function() { return handleError(function () {
|
|
691
|
+
const ret = new FileReader();
|
|
692
|
+
return ret;
|
|
693
|
+
}, arguments); },
|
|
694
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
695
|
+
const ret = new Array();
|
|
696
|
+
return ret;
|
|
697
|
+
},
|
|
698
|
+
__wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
|
|
699
|
+
try {
|
|
700
|
+
var state0 = {a: arg0, b: arg1};
|
|
701
|
+
var cb0 = (arg0, arg1) => {
|
|
702
|
+
const a = state0.a;
|
|
703
|
+
state0.a = 0;
|
|
704
|
+
try {
|
|
705
|
+
return wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
706
|
+
} finally {
|
|
707
|
+
state0.a = a;
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
const ret = new Promise(cb0);
|
|
711
|
+
return ret;
|
|
712
|
+
} finally {
|
|
713
|
+
state0.a = 0;
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
__wbg_new_with_byte_offset_and_length_492c969e8b5da8a4: function(arg0, arg1, arg2) {
|
|
717
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
718
|
+
return ret;
|
|
719
|
+
},
|
|
720
|
+
__wbg_new_with_str_sequence_and_options_01ed9e0eee2dee62: function() { return handleError(function (arg0, arg1) {
|
|
721
|
+
const ret = new Blob(arg0, arg1);
|
|
722
|
+
return ret;
|
|
723
|
+
}, arguments); },
|
|
724
|
+
__wbg_nextElementSibling_c94ea03c7c9a6810: function(arg0) {
|
|
725
|
+
const ret = arg0.nextElementSibling;
|
|
726
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
727
|
+
},
|
|
728
|
+
__wbg_nextSibling_e03804658fe4755b: function(arg0) {
|
|
729
|
+
const ret = arg0.nextSibling;
|
|
730
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
731
|
+
},
|
|
732
|
+
__wbg_nodeType_990e240be0fa4488: function(arg0) {
|
|
733
|
+
const ret = arg0.nodeType;
|
|
734
|
+
return ret;
|
|
735
|
+
},
|
|
736
|
+
__wbg_ownerDocument_5e91fd7a8aefc7cc: function(arg0) {
|
|
737
|
+
const ret = arg0.ownerDocument;
|
|
738
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
739
|
+
},
|
|
740
|
+
__wbg_parentElement_c0b090e8023d3df2: function(arg0) {
|
|
741
|
+
const ret = arg0.parentElement;
|
|
742
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
743
|
+
},
|
|
744
|
+
__wbg_parentNode_bf0725ead93471cf: function(arg0) {
|
|
745
|
+
const ret = arg0.parentNode;
|
|
746
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
747
|
+
},
|
|
748
|
+
__wbg_preventDefault_4235a4ccf8540533: function(arg0) {
|
|
749
|
+
arg0.preventDefault();
|
|
750
|
+
},
|
|
751
|
+
__wbg_previousElementSibling_0d88a8d44505fe25: function(arg0) {
|
|
752
|
+
const ret = arg0.previousElementSibling;
|
|
753
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
754
|
+
},
|
|
755
|
+
__wbg_push_bfdf956ba476f65b: function(arg0, arg1) {
|
|
756
|
+
const ret = arg0.push(arg1);
|
|
757
|
+
return ret;
|
|
758
|
+
},
|
|
759
|
+
__wbg_querySelectorAll_7be5421ca213afe3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
760
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
761
|
+
return ret;
|
|
762
|
+
}, arguments); },
|
|
763
|
+
__wbg_querySelectorAll_fdbf93e11103921d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
764
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
765
|
+
return ret;
|
|
766
|
+
}, arguments); },
|
|
767
|
+
__wbg_querySelector_5b1d9ebad373dc9d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
768
|
+
const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
|
|
769
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
770
|
+
}, arguments); },
|
|
771
|
+
__wbg_querySelector_e621a716a5ee2aa9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
772
|
+
const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
|
|
773
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
774
|
+
}, arguments); },
|
|
775
|
+
__wbg_queueMicrotask_85c90f6987555d65: function(arg0) {
|
|
776
|
+
const ret = arg0.queueMicrotask;
|
|
777
|
+
return ret;
|
|
778
|
+
},
|
|
779
|
+
__wbg_queueMicrotask_f6a1fa10b81d1fc0: function(arg0) {
|
|
780
|
+
queueMicrotask(arg0);
|
|
781
|
+
},
|
|
782
|
+
__wbg_readAsDataURL_1b5abc1a0061c32c: function() { return handleError(function (arg0, arg1) {
|
|
783
|
+
arg0.readAsDataURL(arg1);
|
|
784
|
+
}, arguments); },
|
|
785
|
+
__wbg_readAsText_6aee528cd111ea76: function() { return handleError(function (arg0, arg1) {
|
|
786
|
+
arg0.readAsText(arg1);
|
|
787
|
+
}, arguments); },
|
|
788
|
+
__wbg_removeAllRanges_c662e8bd4099f2cd: function() { return handleError(function (arg0) {
|
|
789
|
+
arg0.removeAllRanges();
|
|
790
|
+
}, arguments); },
|
|
791
|
+
__wbg_removeAttribute_8ce0ab2fa42b383d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
792
|
+
arg0.removeAttribute(getStringFromWasm0(arg1, arg2));
|
|
793
|
+
}, arguments); },
|
|
794
|
+
__wbg_removeEventListener_4c9706814dcfaf79: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
795
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
796
|
+
}, arguments); },
|
|
797
|
+
__wbg_remove_10865d1ab6497abe: function() { return handleError(function (arg0, arg1, arg2) {
|
|
798
|
+
arg0.remove(getStringFromWasm0(arg1, arg2));
|
|
799
|
+
}, arguments); },
|
|
800
|
+
__wbg_remove_2d9ed324f8c6126a: function(arg0) {
|
|
801
|
+
arg0.remove();
|
|
802
|
+
},
|
|
803
|
+
__wbg_remove_b5cc270e088074bd: function(arg0) {
|
|
804
|
+
arg0.remove();
|
|
805
|
+
},
|
|
806
|
+
__wbg_resolve_35ec7e0c6af4c82c: function(arg0) {
|
|
807
|
+
const ret = Promise.resolve(arg0);
|
|
808
|
+
return ret;
|
|
809
|
+
},
|
|
810
|
+
__wbg_respond_83a71686e927ca32: function() { return handleError(function (arg0, arg1) {
|
|
811
|
+
arg0.respond(arg1 >>> 0);
|
|
812
|
+
}, arguments); },
|
|
813
|
+
__wbg_result_6a6fab012d5f9cc1: function() { return handleError(function (arg0) {
|
|
814
|
+
const ret = arg0.result;
|
|
815
|
+
return ret;
|
|
816
|
+
}, arguments); },
|
|
817
|
+
__wbg_revokeObjectURL_a970dba2663e007c: function() { return handleError(function (arg0, arg1) {
|
|
818
|
+
URL.revokeObjectURL(getStringFromWasm0(arg0, arg1));
|
|
819
|
+
}, arguments); },
|
|
820
|
+
__wbg_scrollHeight_8bdbf1cf581a2105: function(arg0) {
|
|
821
|
+
const ret = arg0.scrollHeight;
|
|
822
|
+
return ret;
|
|
823
|
+
},
|
|
824
|
+
__wbg_scrollIntoView_326d8d17701e2108: function(arg0, arg1) {
|
|
825
|
+
arg0.scrollIntoView(arg1);
|
|
826
|
+
},
|
|
827
|
+
__wbg_scrollLeft_5bebc8ba042c2371: function(arg0) {
|
|
828
|
+
const ret = arg0.scrollLeft;
|
|
829
|
+
return ret;
|
|
830
|
+
},
|
|
831
|
+
__wbg_scrollTop_daa6298435db442a: function(arg0) {
|
|
832
|
+
const ret = arg0.scrollTop;
|
|
833
|
+
return ret;
|
|
834
|
+
},
|
|
835
|
+
__wbg_selectNodeContents_b247cae11d9bf050: function() { return handleError(function (arg0, arg1) {
|
|
836
|
+
arg0.selectNodeContents(arg1);
|
|
837
|
+
}, arguments); },
|
|
838
|
+
__wbg_selectionStart_41fde58c23be3c21: function() { return handleError(function (arg0) {
|
|
839
|
+
const ret = arg0.selectionStart;
|
|
840
|
+
return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0;
|
|
841
|
+
}, arguments); },
|
|
842
|
+
__wbg_setAttribute_8c84e9351986b1f6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
843
|
+
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
844
|
+
}, arguments); },
|
|
845
|
+
__wbg_setEnd_1f042b8136e860d3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
846
|
+
arg0.setEnd(arg1, arg2 >>> 0);
|
|
847
|
+
}, arguments); },
|
|
848
|
+
__wbg_setItem_51f02f76b24c5d18: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
849
|
+
arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
850
|
+
}, arguments); },
|
|
851
|
+
__wbg_setStart_3df252ceba2676c3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
852
|
+
arg0.setStart(arg1, arg2 >>> 0);
|
|
853
|
+
}, arguments); },
|
|
854
|
+
__wbg_setTimeout_7b1dfbeaccbf9bb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
855
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
856
|
+
return ret;
|
|
857
|
+
}, arguments); },
|
|
858
|
+
__wbg_set_5f2ad37e5e02dc7b: function(arg0, arg1, arg2) {
|
|
859
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
860
|
+
},
|
|
861
|
+
__wbg_set_a377297433dfea63: function() { return handleError(function (arg0, arg1, arg2) {
|
|
862
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
863
|
+
return ret;
|
|
864
|
+
}, arguments); },
|
|
865
|
+
__wbg_set_block_6882e6bcd1f9b921: function(arg0, arg1) {
|
|
866
|
+
arg0.block = __wbindgen_enum_ScrollLogicalPosition[arg1];
|
|
867
|
+
},
|
|
868
|
+
__wbg_set_download_d283890e2bcca821: function(arg0, arg1, arg2) {
|
|
869
|
+
arg0.download = getStringFromWasm0(arg1, arg2);
|
|
870
|
+
},
|
|
871
|
+
__wbg_set_href_b71c45f5af21e641: function(arg0, arg1, arg2) {
|
|
872
|
+
arg0.href = getStringFromWasm0(arg1, arg2);
|
|
873
|
+
},
|
|
874
|
+
__wbg_set_id_dc5bd387fca63e7d: function(arg0, arg1, arg2) {
|
|
875
|
+
arg0.id = getStringFromWasm0(arg1, arg2);
|
|
876
|
+
},
|
|
877
|
+
__wbg_set_innerHTML_ffa3d7ec0128d447: function(arg0, arg1, arg2) {
|
|
878
|
+
arg0.innerHTML = getStringFromWasm0(arg1, arg2);
|
|
879
|
+
},
|
|
880
|
+
__wbg_set_nodeValue_f17ed62bccdf2d9d: function(arg0, arg1, arg2) {
|
|
881
|
+
arg0.nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
882
|
+
},
|
|
883
|
+
__wbg_set_onload_b3d8ff8ccbd7017c: function(arg0, arg1) {
|
|
884
|
+
arg0.onload = arg1;
|
|
885
|
+
},
|
|
886
|
+
__wbg_set_scrollLeft_1d85c1e84f01de73: function(arg0, arg1) {
|
|
887
|
+
arg0.scrollLeft = arg1;
|
|
888
|
+
},
|
|
889
|
+
__wbg_set_scrollTop_52f1d15e516eaa28: function(arg0, arg1) {
|
|
890
|
+
arg0.scrollTop = arg1;
|
|
891
|
+
},
|
|
892
|
+
__wbg_set_selectionEnd_a50a558c99891880: function() { return handleError(function (arg0, arg1) {
|
|
893
|
+
arg0.selectionEnd = arg1 === Number.MAX_SAFE_INTEGER ? undefined : arg1;
|
|
894
|
+
}, arguments); },
|
|
895
|
+
__wbg_set_selectionStart_f9ecc78a0737f9de: function() { return handleError(function (arg0, arg1) {
|
|
896
|
+
arg0.selectionStart = arg1 === Number.MAX_SAFE_INTEGER ? undefined : arg1;
|
|
897
|
+
}, arguments); },
|
|
898
|
+
__wbg_set_textContent_729c78ca859aa5a5: function(arg0, arg1, arg2) {
|
|
899
|
+
arg0.textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
900
|
+
},
|
|
901
|
+
__wbg_set_type_69954a3c7c11a724: function(arg0, arg1, arg2) {
|
|
902
|
+
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
903
|
+
},
|
|
904
|
+
__wbg_shiftKey_2b651c3e5a9c07f5: function(arg0) {
|
|
905
|
+
const ret = arg0.shiftKey;
|
|
906
|
+
return ret;
|
|
907
|
+
},
|
|
908
|
+
__wbg_size_338f1717fbf84c4e: function(arg0) {
|
|
909
|
+
const ret = arg0.size;
|
|
910
|
+
return ret;
|
|
911
|
+
},
|
|
912
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
913
|
+
const ret = arg1.stack;
|
|
914
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
915
|
+
const len1 = WASM_VECTOR_LEN;
|
|
916
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
917
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
918
|
+
},
|
|
919
|
+
__wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
|
|
920
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
921
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
922
|
+
},
|
|
923
|
+
__wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db: function() {
|
|
924
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
925
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
926
|
+
},
|
|
927
|
+
__wbg_static_accessor_SELF_d8b50611246a6d92: function() {
|
|
928
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
929
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
930
|
+
},
|
|
931
|
+
__wbg_static_accessor_WINDOW_fd0bc376bf0f8b42: function() {
|
|
932
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
933
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
934
|
+
},
|
|
935
|
+
__wbg_tagName_f764922f7d763584: function(arg0, arg1) {
|
|
936
|
+
const ret = arg1.tagName;
|
|
937
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
938
|
+
const len1 = WASM_VECTOR_LEN;
|
|
939
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
940
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
941
|
+
},
|
|
942
|
+
__wbg_target_3e80dc66a5936e87: function(arg0) {
|
|
943
|
+
const ret = arg0.target;
|
|
944
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
945
|
+
},
|
|
946
|
+
__wbg_textContent_d7e4a707af82657f: function(arg0, arg1) {
|
|
947
|
+
const ret = arg1.textContent;
|
|
948
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
949
|
+
var len1 = WASM_VECTOR_LEN;
|
|
950
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
951
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
952
|
+
},
|
|
953
|
+
__wbg_then_b830475380919203: function(arg0, arg1) {
|
|
954
|
+
const ret = arg0.then(arg1);
|
|
955
|
+
return ret;
|
|
956
|
+
},
|
|
957
|
+
__wbg_toString_794a30e85c994f2a: function(arg0) {
|
|
958
|
+
const ret = arg0.toString();
|
|
959
|
+
return ret;
|
|
960
|
+
},
|
|
961
|
+
__wbg_top_319e8c7a40daacf1: function(arg0) {
|
|
962
|
+
const ret = arg0.top;
|
|
963
|
+
return ret;
|
|
964
|
+
},
|
|
965
|
+
__wbg_type_de0ef83ccf892533: function(arg0, arg1) {
|
|
966
|
+
const ret = arg1.type;
|
|
967
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
968
|
+
const len1 = WASM_VECTOR_LEN;
|
|
969
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
970
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
971
|
+
},
|
|
972
|
+
__wbg_value_8215ae6d5fec3d34: function(arg0, arg1) {
|
|
973
|
+
const ret = arg1.value;
|
|
974
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
975
|
+
const len1 = WASM_VECTOR_LEN;
|
|
976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
977
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
978
|
+
},
|
|
979
|
+
__wbg_view_d8c7b26e4d4650f1: function(arg0) {
|
|
980
|
+
const ret = arg0.view;
|
|
981
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
982
|
+
},
|
|
983
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
984
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1382, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
985
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true_);
|
|
986
|
+
return ret;
|
|
987
|
+
},
|
|
988
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
989
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1443, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
990
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue__core_dcdb5b26ee14507c___result__Result_____wasm_bindgen_56bfa123189e575a___JsError___true_);
|
|
991
|
+
return ret;
|
|
992
|
+
},
|
|
993
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
994
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ClipboardEvent")], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
995
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true_);
|
|
996
|
+
return ret;
|
|
997
|
+
},
|
|
998
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
999
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("DragEvent")], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1000
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__19);
|
|
1001
|
+
return ret;
|
|
1002
|
+
},
|
|
1003
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1004
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1382, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1005
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true__20);
|
|
1006
|
+
return ret;
|
|
1007
|
+
},
|
|
1008
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1009
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 799, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1010
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_CloseEvent__CloseEvent______true_);
|
|
1011
|
+
return ret;
|
|
1012
|
+
},
|
|
1013
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1014
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1015
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__22);
|
|
1016
|
+
return ret;
|
|
1017
|
+
},
|
|
1018
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1019
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1020
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__23);
|
|
1021
|
+
return ret;
|
|
1022
|
+
},
|
|
1023
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1024
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1381, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1025
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true__1_);
|
|
1026
|
+
return ret;
|
|
1027
|
+
},
|
|
1028
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1029
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 798, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1030
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true_);
|
|
1031
|
+
return ret;
|
|
1032
|
+
},
|
|
1033
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
1034
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1035
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1036
|
+
return ret;
|
|
1037
|
+
},
|
|
1038
|
+
__wbindgen_init_externref_table: function() {
|
|
1039
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1040
|
+
const offset = table.grow(4);
|
|
1041
|
+
table.set(0, undefined);
|
|
1042
|
+
table.set(offset + 0, undefined);
|
|
1043
|
+
table.set(offset + 1, null);
|
|
1044
|
+
table.set(offset + 2, true);
|
|
1045
|
+
table.set(offset + 3, false);
|
|
1046
|
+
},
|
|
1047
|
+
};
|
|
1048
|
+
return {
|
|
1049
|
+
__proto__: null,
|
|
1050
|
+
"./asciidoc_editor_bg.js": import0,
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
1055
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1059
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true_(arg0, arg1, arg2) {
|
|
1063
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true_(arg0, arg1, arg2);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true_(arg0, arg1, arg2) {
|
|
1067
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true_(arg0, arg1, arg2);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__19(arg0, arg1, arg2) {
|
|
1071
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__19(arg0, arg1, arg2);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true__20(arg0, arg1, arg2) {
|
|
1075
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue______true__20(arg0, arg1, arg2);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
1079
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__22(arg0, arg1, arg2) {
|
|
1083
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__22(arg0, arg1, arg2);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__23(arg0, arg1, arg2) {
|
|
1087
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___web_sys_7d5907b0b8adcf95___features__gen_DragEvent__DragEvent______true__23(arg0, arg1, arg2);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue__core_dcdb5b26ee14507c___result__Result_____wasm_bindgen_56bfa123189e575a___JsError___true_(arg0, arg1, arg2) {
|
|
1091
|
+
const ret = wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___wasm_bindgen_56bfa123189e575a___JsValue__core_dcdb5b26ee14507c___result__Result_____wasm_bindgen_56bfa123189e575a___JsError___true_(arg0, arg1, arg2);
|
|
1092
|
+
if (ret[1]) {
|
|
1093
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
function wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1098
|
+
wasm.wasm_bindgen_56bfa123189e575a___convert__closures_____invoke___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined___js_sys_b5492ab1ec297925___Function_fn_wasm_bindgen_56bfa123189e575a___JsValue_____wasm_bindgen_56bfa123189e575a___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
const __wbindgen_enum_ScrollLogicalPosition = ["start", "center", "end", "nearest"];
|
|
1106
|
+
const EditorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1107
|
+
? { register: () => {}, unregister: () => {} }
|
|
1108
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_editor_free(ptr, 1));
|
|
1109
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1110
|
+
? { register: () => {}, unregister: () => {} }
|
|
1111
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
1112
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1113
|
+
? { register: () => {}, unregister: () => {} }
|
|
1114
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
1115
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1116
|
+
? { register: () => {}, unregister: () => {} }
|
|
1117
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
1118
|
+
|
|
1119
|
+
function addToExternrefTable0(obj) {
|
|
1120
|
+
const idx = wasm.__externref_table_alloc();
|
|
1121
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1122
|
+
return idx;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1126
|
+
? { register: () => {}, unregister: () => {} }
|
|
1127
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1128
|
+
|
|
1129
|
+
function debugString(val) {
|
|
1130
|
+
// primitive types
|
|
1131
|
+
const type = typeof val;
|
|
1132
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1133
|
+
return `${val}`;
|
|
1134
|
+
}
|
|
1135
|
+
if (type == 'string') {
|
|
1136
|
+
return `"${val}"`;
|
|
1137
|
+
}
|
|
1138
|
+
if (type == 'symbol') {
|
|
1139
|
+
const description = val.description;
|
|
1140
|
+
if (description == null) {
|
|
1141
|
+
return 'Symbol';
|
|
1142
|
+
} else {
|
|
1143
|
+
return `Symbol(${description})`;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (type == 'function') {
|
|
1147
|
+
const name = val.name;
|
|
1148
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1149
|
+
return `Function(${name})`;
|
|
1150
|
+
} else {
|
|
1151
|
+
return 'Function';
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
// objects
|
|
1155
|
+
if (Array.isArray(val)) {
|
|
1156
|
+
const length = val.length;
|
|
1157
|
+
let debug = '[';
|
|
1158
|
+
if (length > 0) {
|
|
1159
|
+
debug += debugString(val[0]);
|
|
1160
|
+
}
|
|
1161
|
+
for(let i = 1; i < length; i++) {
|
|
1162
|
+
debug += ', ' + debugString(val[i]);
|
|
1163
|
+
}
|
|
1164
|
+
debug += ']';
|
|
1165
|
+
return debug;
|
|
1166
|
+
}
|
|
1167
|
+
// Test for built-in
|
|
1168
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1169
|
+
let className;
|
|
1170
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1171
|
+
className = builtInMatches[1];
|
|
1172
|
+
} else {
|
|
1173
|
+
// Failed to match the standard '[object ClassName]'
|
|
1174
|
+
return toString.call(val);
|
|
1175
|
+
}
|
|
1176
|
+
if (className == 'Object') {
|
|
1177
|
+
// we're a user defined class or Object
|
|
1178
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1179
|
+
// easier than looping through ownProperties of `val`.
|
|
1180
|
+
try {
|
|
1181
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1182
|
+
} catch (_) {
|
|
1183
|
+
return 'Object';
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
// errors
|
|
1187
|
+
if (val instanceof Error) {
|
|
1188
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1189
|
+
}
|
|
1190
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1191
|
+
return className;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1195
|
+
ptr = ptr >>> 0;
|
|
1196
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
let cachedDataViewMemory0 = null;
|
|
1200
|
+
function getDataViewMemory0() {
|
|
1201
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1202
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1203
|
+
}
|
|
1204
|
+
return cachedDataViewMemory0;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
function getStringFromWasm0(ptr, len) {
|
|
1208
|
+
return decodeText(ptr >>> 0, len);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1212
|
+
function getUint8ArrayMemory0() {
|
|
1213
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1214
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1215
|
+
}
|
|
1216
|
+
return cachedUint8ArrayMemory0;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
function handleError(f, args) {
|
|
1220
|
+
try {
|
|
1221
|
+
return f.apply(this, args);
|
|
1222
|
+
} catch (e) {
|
|
1223
|
+
const idx = addToExternrefTable0(e);
|
|
1224
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
function isLikeNone(x) {
|
|
1229
|
+
return x === undefined || x === null;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1233
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1234
|
+
const real = (...args) => {
|
|
1235
|
+
|
|
1236
|
+
// First up with a closure we increment the internal reference
|
|
1237
|
+
// count. This ensures that the Rust closure environment won't
|
|
1238
|
+
// be deallocated while we're invoking it.
|
|
1239
|
+
state.cnt++;
|
|
1240
|
+
const a = state.a;
|
|
1241
|
+
state.a = 0;
|
|
1242
|
+
try {
|
|
1243
|
+
return f(a, state.b, ...args);
|
|
1244
|
+
} finally {
|
|
1245
|
+
state.a = a;
|
|
1246
|
+
real._wbg_cb_unref();
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
real._wbg_cb_unref = () => {
|
|
1250
|
+
if (--state.cnt === 0) {
|
|
1251
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1252
|
+
state.a = 0;
|
|
1253
|
+
CLOSURE_DTORS.unregister(state);
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1257
|
+
return real;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1261
|
+
if (realloc === undefined) {
|
|
1262
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1263
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1264
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1265
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1266
|
+
return ptr;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
let len = arg.length;
|
|
1270
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1271
|
+
|
|
1272
|
+
const mem = getUint8ArrayMemory0();
|
|
1273
|
+
|
|
1274
|
+
let offset = 0;
|
|
1275
|
+
|
|
1276
|
+
for (; offset < len; offset++) {
|
|
1277
|
+
const code = arg.charCodeAt(offset);
|
|
1278
|
+
if (code > 0x7F) break;
|
|
1279
|
+
mem[ptr + offset] = code;
|
|
1280
|
+
}
|
|
1281
|
+
if (offset !== len) {
|
|
1282
|
+
if (offset !== 0) {
|
|
1283
|
+
arg = arg.slice(offset);
|
|
1284
|
+
}
|
|
1285
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1286
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1287
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1288
|
+
|
|
1289
|
+
offset += ret.written;
|
|
1290
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
WASM_VECTOR_LEN = offset;
|
|
1294
|
+
return ptr;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function takeFromExternrefTable0(idx) {
|
|
1298
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1299
|
+
wasm.__externref_table_dealloc(idx);
|
|
1300
|
+
return value;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1304
|
+
cachedTextDecoder.decode();
|
|
1305
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1306
|
+
let numBytesDecoded = 0;
|
|
1307
|
+
function decodeText(ptr, len) {
|
|
1308
|
+
numBytesDecoded += len;
|
|
1309
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1310
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1311
|
+
cachedTextDecoder.decode();
|
|
1312
|
+
numBytesDecoded = len;
|
|
1313
|
+
}
|
|
1314
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1318
|
+
|
|
1319
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1320
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1321
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1322
|
+
view.set(buf);
|
|
1323
|
+
return {
|
|
1324
|
+
read: arg.length,
|
|
1325
|
+
written: buf.length
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
let WASM_VECTOR_LEN = 0;
|
|
1331
|
+
|
|
1332
|
+
let wasmModule, wasmInstance, wasm;
|
|
1333
|
+
function __wbg_finalize_init(instance, module) {
|
|
1334
|
+
wasmInstance = instance;
|
|
1335
|
+
wasm = instance.exports;
|
|
1336
|
+
wasmModule = module;
|
|
1337
|
+
cachedDataViewMemory0 = null;
|
|
1338
|
+
cachedUint8ArrayMemory0 = null;
|
|
1339
|
+
wasm.__wbindgen_start();
|
|
1340
|
+
return wasm;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
async function __wbg_load(module, imports) {
|
|
1344
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1345
|
+
if (!module.ok) {
|
|
1346
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1350
|
+
try {
|
|
1351
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1352
|
+
} catch (e) {
|
|
1353
|
+
const validResponse = expectedResponseType(module.type);
|
|
1354
|
+
|
|
1355
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1356
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1357
|
+
|
|
1358
|
+
} else { throw e; }
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
const bytes = await module.arrayBuffer();
|
|
1363
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1364
|
+
} else {
|
|
1365
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1366
|
+
|
|
1367
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1368
|
+
return { instance, module };
|
|
1369
|
+
} else {
|
|
1370
|
+
return instance;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function expectedResponseType(type) {
|
|
1375
|
+
switch (type) {
|
|
1376
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1377
|
+
}
|
|
1378
|
+
return false;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
function initSync(module) {
|
|
1383
|
+
if (wasm !== undefined) return wasm;
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
if (module !== undefined) {
|
|
1387
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1388
|
+
({module} = module)
|
|
1389
|
+
} else {
|
|
1390
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
const imports = __wbg_get_imports();
|
|
1395
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1396
|
+
module = new WebAssembly.Module(module);
|
|
1397
|
+
}
|
|
1398
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1399
|
+
return __wbg_finalize_init(instance, module);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
async function __wbg_init(module_or_path) {
|
|
1403
|
+
if (wasm !== undefined) return wasm;
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
if (module_or_path !== undefined) {
|
|
1407
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1408
|
+
({module_or_path} = module_or_path)
|
|
1409
|
+
} else {
|
|
1410
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
if (module_or_path === undefined) {
|
|
1415
|
+
module_or_path = new URL('asciidoc_editor_bg.wasm', import.meta.url);
|
|
1416
|
+
}
|
|
1417
|
+
const imports = __wbg_get_imports();
|
|
1418
|
+
|
|
1419
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1420
|
+
module_or_path = fetch(module_or_path);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1424
|
+
|
|
1425
|
+
return __wbg_finalize_init(instance, module);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
export { initSync, __wbg_init as default };
|