@mercuryworkshop/epoxy-tls
Advanced tools
Comparing version
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* The `ReadableStreamType` enum. | ||
* | ||
* *This API requires the following crate features to be activated: `ReadableStreamType`* | ||
*/ | ||
type ReadableStreamType = "bytes"; | ||
@@ -24,43 +30,12 @@ type EpoxyIoStream = { | ||
free(): void; | ||
/** | ||
* @param {EpoxyWispTransport} transport | ||
* @param {EpoxyClientOptions} options | ||
*/ | ||
constructor(transport: EpoxyWispTransport, options: EpoxyClientOptions); | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
replace_stream_provider(): Promise<void>; | ||
/** | ||
* @param {EpoxyHandlers} handlers | ||
* @param {EpoxyUrlInput} url | ||
* @param {(string)[]} protocols | ||
* @param {EpoxyWebSocketHeadersInput} headers | ||
* @returns {Promise<EpoxyWebSocket>} | ||
*/ | ||
connect_websocket(handlers: EpoxyHandlers, url: EpoxyUrlInput, protocols: (string)[], headers: EpoxyWebSocketHeadersInput): Promise<EpoxyWebSocket>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_tcp(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_tls(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_udp(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @param {object} options | ||
* @returns {Promise<Response>} | ||
*/ | ||
fetch(url: EpoxyUrlInput, options: object): Promise<Response>; | ||
buffer_size: number; | ||
redirect_limit: number; | ||
user_agent: string; | ||
buffer_size: number; | ||
} | ||
@@ -70,80 +45,47 @@ export class EpoxyClientOptions { | ||
constructor(); | ||
buffer_size: number; | ||
disable_certificate_validation: boolean; | ||
wisp_v2: boolean; | ||
udp_extension_required: boolean; | ||
title_case_headers: boolean; | ||
ws_title_case_headers: boolean; | ||
websocket_protocols: (string)[]; | ||
redirect_limit: number; | ||
header_limit: number; | ||
user_agent: string; | ||
pem_files: (string)[]; | ||
redirect_limit: number; | ||
title_case_headers: boolean; | ||
udp_extension_required: boolean; | ||
user_agent: string; | ||
websocket_protocols: (string)[]; | ||
wisp_v2: boolean; | ||
ws_title_case_headers: boolean; | ||
disable_certificate_validation: boolean; | ||
buffer_size: number; | ||
} | ||
export class EpoxyHandlers { | ||
free(): void; | ||
/** | ||
* @param {Function} onopen | ||
* @param {Function} onclose | ||
* @param {Function} onerror | ||
* @param {Function} onmessage | ||
*/ | ||
constructor(onopen: Function, onclose: Function, onerror: Function, onmessage: Function); | ||
onopen: Function; | ||
onclose: Function; | ||
onerror: Function; | ||
onmessage: Function; | ||
onopen: Function; | ||
} | ||
export class EpoxyWebSocket { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {EpoxyWebSocketInput} payload | ||
* @returns {Promise<void>} | ||
*/ | ||
send(payload: EpoxyWebSocketInput): Promise<void>; | ||
/** | ||
* @param {number} code | ||
* @param {string} reason | ||
* @returns {Promise<void>} | ||
*/ | ||
close(code: number, reason: string): Promise<void>; | ||
} | ||
export class IntoUnderlyingByteSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
*/ | ||
start(controller: ReadableByteStreamController): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableByteStreamController): Promise<any>; | ||
cancel(): void; | ||
readonly type: ReadableStreamType; | ||
readonly autoAllocateChunkSize: number; | ||
readonly type: any; | ||
} | ||
export class IntoUnderlyingSink { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {any} chunk | ||
* @returns {Promise<any>} | ||
*/ | ||
write(chunk: any): Promise<any>; | ||
/** | ||
* @returns {Promise<any>} | ||
*/ | ||
close(): Promise<any>; | ||
/** | ||
* @param {any} reason | ||
* @returns {Promise<any>} | ||
*/ | ||
abort(reason: any): Promise<any>; | ||
} | ||
export class IntoUnderlyingSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableStreamDefaultController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableStreamDefaultController): Promise<any>; | ||
@@ -150,0 +92,0 @@ cancel(): void; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* The `ReadableStreamType` enum. | ||
* | ||
* *This API requires the following crate features to be activated: `ReadableStreamType`* | ||
*/ | ||
type ReadableStreamType = "bytes"; | ||
@@ -24,43 +30,12 @@ type EpoxyIoStream = { | ||
free(): void; | ||
/** | ||
* @param {EpoxyWispTransport} transport | ||
* @param {EpoxyClientOptions} options | ||
*/ | ||
constructor(transport: EpoxyWispTransport, options: EpoxyClientOptions); | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
replace_stream_provider(): Promise<void>; | ||
/** | ||
* @param {EpoxyHandlers} handlers | ||
* @param {EpoxyUrlInput} url | ||
* @param {(string)[]} protocols | ||
* @param {EpoxyWebSocketHeadersInput} headers | ||
* @returns {Promise<EpoxyWebSocket>} | ||
*/ | ||
connect_websocket(handlers: EpoxyHandlers, url: EpoxyUrlInput, protocols: (string)[], headers: EpoxyWebSocketHeadersInput): Promise<EpoxyWebSocket>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_tcp(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_tls(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @returns {Promise<EpoxyIoStream>} | ||
*/ | ||
connect_udp(url: EpoxyUrlInput): Promise<EpoxyIoStream>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @param {object} options | ||
* @returns {Promise<Response>} | ||
*/ | ||
fetch(url: EpoxyUrlInput, options: object): Promise<Response>; | ||
buffer_size: number; | ||
redirect_limit: number; | ||
user_agent: string; | ||
buffer_size: number; | ||
} | ||
@@ -70,80 +45,47 @@ export class EpoxyClientOptions { | ||
constructor(); | ||
buffer_size: number; | ||
disable_certificate_validation: boolean; | ||
wisp_v2: boolean; | ||
udp_extension_required: boolean; | ||
title_case_headers: boolean; | ||
ws_title_case_headers: boolean; | ||
websocket_protocols: (string)[]; | ||
redirect_limit: number; | ||
header_limit: number; | ||
user_agent: string; | ||
pem_files: (string)[]; | ||
redirect_limit: number; | ||
title_case_headers: boolean; | ||
udp_extension_required: boolean; | ||
user_agent: string; | ||
websocket_protocols: (string)[]; | ||
wisp_v2: boolean; | ||
ws_title_case_headers: boolean; | ||
disable_certificate_validation: boolean; | ||
buffer_size: number; | ||
} | ||
export class EpoxyHandlers { | ||
free(): void; | ||
/** | ||
* @param {Function} onopen | ||
* @param {Function} onclose | ||
* @param {Function} onerror | ||
* @param {Function} onmessage | ||
*/ | ||
constructor(onopen: Function, onclose: Function, onerror: Function, onmessage: Function); | ||
onopen: Function; | ||
onclose: Function; | ||
onerror: Function; | ||
onmessage: Function; | ||
onopen: Function; | ||
} | ||
export class EpoxyWebSocket { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {EpoxyWebSocketInput} payload | ||
* @returns {Promise<void>} | ||
*/ | ||
send(payload: EpoxyWebSocketInput): Promise<void>; | ||
/** | ||
* @param {number} code | ||
* @param {string} reason | ||
* @returns {Promise<void>} | ||
*/ | ||
close(code: number, reason: string): Promise<void>; | ||
} | ||
export class IntoUnderlyingByteSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
*/ | ||
start(controller: ReadableByteStreamController): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableByteStreamController): Promise<any>; | ||
cancel(): void; | ||
readonly type: ReadableStreamType; | ||
readonly autoAllocateChunkSize: number; | ||
readonly type: any; | ||
} | ||
export class IntoUnderlyingSink { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {any} chunk | ||
* @returns {Promise<any>} | ||
*/ | ||
write(chunk: any): Promise<any>; | ||
/** | ||
* @returns {Promise<any>} | ||
*/ | ||
close(): Promise<any>; | ||
/** | ||
* @param {any} reason | ||
* @returns {Promise<any>} | ||
*/ | ||
abort(reason: any): Promise<any>; | ||
} | ||
export class IntoUnderlyingSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableStreamDefaultController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableStreamDefaultController): Promise<any>; | ||
@@ -150,0 +92,0 @@ cancel(): void; |
1175
full/epoxy.js
@@ -1,7 +0,50 @@ | ||
import { object_get, object_set, convert_body_inner, convert_streaming_body_inner, entries_of_object_inner, define_property, ws_key, ws_protocol, from_entries } from 'data:text/javascript;base64,CmV4cG9ydCBmdW5jdGlvbiB3c19wcm90b2NvbCgpIHsKCXJldHVybiAoCiAgICAgIFsxZTddKy0xZTMrLTRlMystOGUzKy0xZTExKS5yZXBsYWNlKC9bMDE4XS9nLAogICAgICBjID0+IChjIF4gY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhuZXcgVWludDhBcnJheSgxKSlbMF0gJiAxNSA+PiBjIC8gNCkudG9TdHJpbmcoMTYpCiAgICApOwp9CgpleHBvcnQgZnVuY3Rpb24gb2JqZWN0X2dldChvYmosIGspIHsgCgl0cnkgewoJCXJldHVybiBvYmpba10KCX0gY2F0Y2goeCkgewoJCXJldHVybiB1bmRlZmluZWQKCX0KfTsKZXhwb3J0IGZ1bmN0aW9uIG9iamVjdF9zZXQob2JqLCBrLCB2KSB7Cgl0cnkgeyBvYmpba10gPSB2IH0gY2F0Y2gge30KfTsKCmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjb252ZXJ0X2JvZHlfaW5uZXIoYm9keSkgewoJbGV0IHJlcSA9IG5ldyBSZXF1ZXN0KCIiLCB7IG1ldGhvZDogIlBPU1QiLCBkdXBsZXg6ICJoYWxmIiwgYm9keSB9KTsKCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCXJldHVybiBbbmV3IFVpbnQ4QXJyYXkoYXdhaXQgcmVxLmFycmF5QnVmZmVyKCkpLCB0eXBlXTsKfQoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGNvbnZlcnRfc3RyZWFtaW5nX2JvZHlfaW5uZXIoYm9keSkgewoJdHJ5IHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGJvZHkgfSk7CgkJbGV0IHR5cGUgPSByZXEuaGVhZGVycy5nZXQoImNvbnRlbnQtdHlwZSIpOwoJCXJldHVybiBbZmFsc2UsIG5ldyBVaW50OEFycmF5KGF3YWl0IHJlcS5hcnJheUJ1ZmZlcigpKSwgdHlwZV07Cgl9IGNhdGNoKHgpIHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGR1cGxleDogImhhbGYiLCBib2R5IH0pOwoJCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCQlyZXR1cm4gW3RydWUsIHJlcS5ib2R5LCB0eXBlXTsKCX0KfQoKZXhwb3J0IGZ1bmN0aW9uIGVudHJpZXNfb2Zfb2JqZWN0X2lubmVyKG9iaikgewoJcmV0dXJuIE9iamVjdC5lbnRyaWVzKG9iaikubWFwKHggPT4geC5tYXAoU3RyaW5nKSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiBkZWZpbmVfcHJvcGVydHkob2JqLCBrLCB2KSB7CglPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBrLCB7IHZhbHVlOiB2LCB3cml0YWJsZTogZmFsc2UgfSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiB3c19rZXkoKSB7CglsZXQga2V5ID0gbmV3IFVpbnQ4QXJyYXkoMTYpOwoJY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhrZXkpOwoJcmV0dXJuIGJ0b2EoU3RyaW5nLmZyb21DaGFyQ29kZS5hcHBseShudWxsLCBrZXkpKTsKfQoKZXhwb3J0IGZ1bmN0aW9uIGZyb21fZW50cmllcyhlbnRyaWVzKXsKICAgIHZhciByZXQgPSB7fTsKICAgIGZvcih2YXIgaSA9IDA7IGkgPCBlbnRyaWVzLmxlbmd0aDsgaSsrKSByZXRbZW50cmllc1tpXVswXV0gPSBlbnRyaWVzW2ldWzFdOwogICAgcmV0dXJuIHJldDsKfQo='; | ||
import { convert_body_inner, convert_streaming_body_inner, define_property, entries_of_object_inner, from_entries, object_get, object_set, ws_key, ws_protocol } from 'data:text/javascript;base64,CmV4cG9ydCBmdW5jdGlvbiB3c19wcm90b2NvbCgpIHsKCXJldHVybiAoCiAgICAgIFsxZTddKy0xZTMrLTRlMystOGUzKy0xZTExKS5yZXBsYWNlKC9bMDE4XS9nLAogICAgICBjID0+IChjIF4gY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhuZXcgVWludDhBcnJheSgxKSlbMF0gJiAxNSA+PiBjIC8gNCkudG9TdHJpbmcoMTYpCiAgICApOwp9CgpleHBvcnQgZnVuY3Rpb24gb2JqZWN0X2dldChvYmosIGspIHsgCgl0cnkgewoJCXJldHVybiBvYmpba10KCX0gY2F0Y2goeCkgewoJCXJldHVybiB1bmRlZmluZWQKCX0KfTsKZXhwb3J0IGZ1bmN0aW9uIG9iamVjdF9zZXQob2JqLCBrLCB2KSB7Cgl0cnkgeyBvYmpba10gPSB2IH0gY2F0Y2gge30KfTsKCmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjb252ZXJ0X2JvZHlfaW5uZXIoYm9keSkgewoJbGV0IHJlcSA9IG5ldyBSZXF1ZXN0KCIiLCB7IG1ldGhvZDogIlBPU1QiLCBkdXBsZXg6ICJoYWxmIiwgYm9keSB9KTsKCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCXJldHVybiBbbmV3IFVpbnQ4QXJyYXkoYXdhaXQgcmVxLmFycmF5QnVmZmVyKCkpLCB0eXBlXTsKfQoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGNvbnZlcnRfc3RyZWFtaW5nX2JvZHlfaW5uZXIoYm9keSkgewoJdHJ5IHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGJvZHkgfSk7CgkJbGV0IHR5cGUgPSByZXEuaGVhZGVycy5nZXQoImNvbnRlbnQtdHlwZSIpOwoJCXJldHVybiBbZmFsc2UsIG5ldyBVaW50OEFycmF5KGF3YWl0IHJlcS5hcnJheUJ1ZmZlcigpKSwgdHlwZV07Cgl9IGNhdGNoKHgpIHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGR1cGxleDogImhhbGYiLCBib2R5IH0pOwoJCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCQlyZXR1cm4gW3RydWUsIHJlcS5ib2R5LCB0eXBlXTsKCX0KfQoKZXhwb3J0IGZ1bmN0aW9uIGVudHJpZXNfb2Zfb2JqZWN0X2lubmVyKG9iaikgewoJcmV0dXJuIE9iamVjdC5lbnRyaWVzKG9iaikubWFwKHggPT4geC5tYXAoU3RyaW5nKSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiBkZWZpbmVfcHJvcGVydHkob2JqLCBrLCB2KSB7CglPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBrLCB7IHZhbHVlOiB2LCB3cml0YWJsZTogZmFsc2UgfSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiB3c19rZXkoKSB7CglsZXQga2V5ID0gbmV3IFVpbnQ4QXJyYXkoMTYpOwoJY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhrZXkpOwoJcmV0dXJuIGJ0b2EoU3RyaW5nLmZyb21DaGFyQ29kZS5hcHBseShudWxsLCBrZXkpKTsKfQoKZXhwb3J0IGZ1bmN0aW9uIGZyb21fZW50cmllcyhlbnRyaWVzKXsKICAgIHZhciByZXQgPSB7fTsKICAgIGZvcih2YXIgaSA9IDA7IGkgPCBlbnRyaWVzLmxlbmd0aDsgaSsrKSByZXRbZW50cmllc1tpXVswXV0gPSBlbnRyaWVzW2ldWzFdOwogICAgcmV0dXJuIHJldDsKfQo='; | ||
let wasm; | ||
let WASM_VECTOR_LEN = 0; | ||
const heap = new Array(128).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_exn_store(addHeapObject(e)); | ||
} | ||
} | ||
function dropObject(idx) { | ||
if (idx < 132) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
let cachedUint8ArrayMemory0 = null; | ||
@@ -16,2 +59,28 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
let cachedDataViewMemory0 = null; | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
function passArrayJsValueToWasm0(array, malloc) { | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getDataViewMemory0(); | ||
for (let i = 0; i < array.length; i++) { | ||
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true); | ||
} | ||
WASM_VECTOR_LEN = array.length; | ||
return ptr; | ||
} | ||
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); | ||
@@ -71,22 +140,58 @@ | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
function getArrayU8FromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); | ||
} | ||
let cachedDataViewMemory0 = null; | ||
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b) | ||
}); | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
const a = state.a; | ||
state.a = 0; | ||
try { | ||
return f(a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
} else { | ||
state.a = a; | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
function makeClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
try { | ||
return f(state.a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b); | ||
state.a = 0; | ||
CLOSURE_DTORS.unregister(state); | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
@@ -135,3 +240,3 @@ | ||
let className; | ||
if (builtInMatches.length > 1) { | ||
if (builtInMatches && builtInMatches.length > 1) { | ||
className = builtInMatches[1]; | ||
@@ -160,94 +265,2 @@ } else { | ||
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b) | ||
}); | ||
function makeClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
try { | ||
return f(state.a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b); | ||
state.a = 0; | ||
CLOSURE_DTORS.unregister(state); | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
function __wbg_adapter_34(arg0, arg1, arg2) { | ||
wasm.closure18_externref_shim(arg0, arg1, arg2); | ||
} | ||
function __wbg_adapter_37(arg0, arg1) { | ||
wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc271c5045ba0c963(arg0, arg1); | ||
} | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
const a = state.a; | ||
state.a = 0; | ||
try { | ||
return f(a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
} else { | ||
state.a = a; | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
function __wbg_adapter_42(arg0, arg1, arg2) { | ||
wasm.closure211_externref_shim(arg0, arg1, arg2); | ||
} | ||
function __wbg_adapter_45(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd6ffd7ecb2a97ca0(arg0, arg1); | ||
} | ||
function addToExternrefTable0(obj) { | ||
const idx = wasm.__externref_table_alloc(); | ||
wasm.__wbindgen_export_2.set(idx, obj); | ||
return idx; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
const idx = addToExternrefTable0(e); | ||
wasm.__wbindgen_exn_store(idx); | ||
} | ||
} | ||
function passArrayJsValueToWasm0(array, malloc) { | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getDataViewMemory0(); | ||
for (let i = 0; i < array.length; i++) { | ||
mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); | ||
} | ||
WASM_VECTOR_LEN = array.length; | ||
return ptr; | ||
} | ||
function getArrayJsValueFromWasm0(ptr, len) { | ||
@@ -258,5 +271,4 @@ ptr = ptr >>> 0; | ||
for (let i = ptr; i < ptr + 4 * len; i += 4) { | ||
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); | ||
result.push(takeObject(mem.getUint32(i, true))); | ||
} | ||
wasm.__externref_drop_slice(ptr, len); | ||
return result; | ||
@@ -269,19 +281,21 @@ } | ||
} | ||
return instance.ptr; | ||
} | ||
function __wbg_adapter_32(arg0, arg1) { | ||
wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h213260b354a2d5cf(arg0, arg1); | ||
} | ||
function takeFromExternrefTable0(idx) { | ||
const value = wasm.__wbindgen_export_2.get(idx); | ||
wasm.__externref_table_dealloc(idx); | ||
return value; | ||
function __wbg_adapter_35(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h671c7a2878e8568a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_171(arg0, arg1, arg2, arg3) { | ||
wasm.closure151_externref_shim(arg0, arg1, arg2, arg3); | ||
function __wbg_adapter_40(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h40372f4bf6043a82(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } | ||
function __wbg_adapter_43(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3b3f9ba5ca371250(arg0, arg1); | ||
} | ||
function getArrayU8FromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); | ||
function __wbg_adapter_169(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6d9a02614aa7eb26(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -291,4 +305,2 @@ | ||
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"]; | ||
const __wbindgen_enum_ReadableStreamType = ["bytes"]; | ||
@@ -345,7 +357,11 @@ | ||
try { | ||
const ret = wasm.__wbg_get_epoxyclient_user_agent(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclient_user_agent(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -380,11 +396,19 @@ } | ||
constructor(transport, options) { | ||
_assertClass(options, EpoxyClientOptions); | ||
var ptr0 = options.__destroy_into_raw(); | ||
const ret = wasm.epoxyclient_new(transport, ptr0); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(options, EpoxyClientOptions); | ||
var ptr0 = options.__destroy_into_raw(); | ||
wasm.epoxyclient_new(retptr, addHeapObject(transport), ptr0); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
this.__wbg_ptr = r0 >>> 0; | ||
EpoxyClientFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
this.__wbg_ptr = ret[0] >>> 0; | ||
EpoxyClientFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
} | ||
@@ -396,3 +420,3 @@ /** | ||
const ret = wasm.epoxyclient_replace_stream_provider(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -411,4 +435,4 @@ /** | ||
const len1 = WASM_VECTOR_LEN; | ||
const ret = wasm.epoxyclient_connect_websocket(this.__wbg_ptr, ptr0, url, ptr1, len1, headers); | ||
return ret; | ||
const ret = wasm.epoxyclient_connect_websocket(this.__wbg_ptr, ptr0, addHeapObject(url), ptr1, len1, addHeapObject(headers)); | ||
return takeObject(ret); | ||
} | ||
@@ -420,4 +444,4 @@ /** | ||
connect_tcp(url) { | ||
const ret = wasm.epoxyclient_connect_tcp(this.__wbg_ptr, url); | ||
return ret; | ||
const ret = wasm.epoxyclient_connect_tcp(this.__wbg_ptr, addHeapObject(url)); | ||
return takeObject(ret); | ||
} | ||
@@ -429,4 +453,4 @@ /** | ||
connect_tls(url) { | ||
const ret = wasm.epoxyclient_connect_tls(this.__wbg_ptr, url); | ||
return ret; | ||
const ret = wasm.epoxyclient_connect_tls(this.__wbg_ptr, addHeapObject(url)); | ||
return takeObject(ret); | ||
} | ||
@@ -438,4 +462,4 @@ /** | ||
connect_udp(url) { | ||
const ret = wasm.epoxyclient_connect_udp(this.__wbg_ptr, url); | ||
return ret; | ||
const ret = wasm.epoxyclient_connect_udp(this.__wbg_ptr, addHeapObject(url)); | ||
return takeObject(ret); | ||
} | ||
@@ -448,4 +472,4 @@ /** | ||
fetch(url, options) { | ||
const ret = wasm.epoxyclient_fetch(this.__wbg_ptr, url, options); | ||
return ret; | ||
const ret = wasm.epoxyclient_fetch(this.__wbg_ptr, addHeapObject(url), addHeapObject(options)); | ||
return takeObject(ret); | ||
} | ||
@@ -527,6 +551,13 @@ } | ||
get websocket_protocols() { | ||
const ret = wasm.__wbg_get_epoxyclientoptions_websocket_protocols(this.__wbg_ptr); | ||
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice(); | ||
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4); | ||
return v1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclientoptions_websocket_protocols(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var v1 = getArrayJsValueFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 4, 4); | ||
return v1; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
@@ -574,7 +605,11 @@ /** | ||
try { | ||
const ret = wasm.__wbg_get_epoxyclientoptions_user_agent(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclientoptions_user_agent(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -595,6 +630,13 @@ } | ||
get pem_files() { | ||
const ret = wasm.__wbg_get_epoxyclientoptions_pem_files(this.__wbg_ptr); | ||
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice(); | ||
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4); | ||
return v1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclientoptions_pem_files(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var v1 = getArrayJsValueFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 4, 4); | ||
return v1; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
@@ -665,3 +707,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onopen(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -672,3 +714,3 @@ /** | ||
set onopen(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onopen(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onopen(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -680,3 +722,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onclose(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -687,3 +729,3 @@ /** | ||
set onclose(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onclose(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onclose(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -695,3 +737,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onerror(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -702,3 +744,3 @@ /** | ||
set onerror(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onerror(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onerror(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -710,3 +752,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onmessage(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -717,3 +759,3 @@ /** | ||
set onmessage(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onmessage(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onmessage(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -727,3 +769,3 @@ /** | ||
constructor(onopen, onclose, onerror, onmessage) { | ||
const ret = wasm.epoxyhandlers_new(onopen, onclose, onerror, onmessage); | ||
const ret = wasm.epoxyhandlers_new(addHeapObject(onopen), addHeapObject(onclose), addHeapObject(onerror), addHeapObject(onmessage)); | ||
this.__wbg_ptr = ret >>> 0; | ||
@@ -765,4 +807,4 @@ EpoxyHandlersFinalization.register(this, this.__wbg_ptr, this); | ||
send(payload) { | ||
const ret = wasm.epoxywebsocket_send(this.__wbg_ptr, payload); | ||
return ret; | ||
const ret = wasm.epoxywebsocket_send(this.__wbg_ptr, addHeapObject(payload)); | ||
return takeObject(ret); | ||
} | ||
@@ -778,3 +820,3 @@ /** | ||
const ret = wasm.epoxywebsocket_close(this.__wbg_ptr, code, ptr0, len0); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -801,3 +843,3 @@ } | ||
/** | ||
* @returns {any} | ||
* @returns {ReadableStreamType} | ||
*/ | ||
@@ -819,3 +861,3 @@ get type() { | ||
start(controller) { | ||
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); | ||
wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller)); | ||
} | ||
@@ -827,4 +869,4 @@ /** | ||
pull(controller) { | ||
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); | ||
return ret; | ||
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller)); | ||
return takeObject(ret); | ||
} | ||
@@ -867,4 +909,4 @@ cancel() { | ||
write(chunk) { | ||
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); | ||
return ret; | ||
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk)); | ||
return takeObject(ret); | ||
} | ||
@@ -877,3 +919,3 @@ /** | ||
const ret = wasm.intounderlyingsink_close(ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -886,4 +928,4 @@ /** | ||
const ptr = this.__destroy_into_raw(); | ||
const ret = wasm.intounderlyingsink_abort(ptr, reason); | ||
return ret; | ||
const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason)); | ||
return takeObject(ret); | ||
} | ||
@@ -922,4 +964,4 @@ } | ||
pull(controller) { | ||
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); | ||
return ret; | ||
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller)); | ||
return takeObject(ret); | ||
} | ||
@@ -966,43 +1008,80 @@ cancel() { | ||
imports.wbg = {}; | ||
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) { | ||
const ret = new Uint8Array(arg0); | ||
return ret; | ||
imports.wbg.__wbg_abort_2d215a4bf861d1a2 = function(arg0) { | ||
const ret = getObject(arg0).abort(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_instanceof_Promise_f3fd1bcac3157f0c = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Promise; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
imports.wbg.__wbg_at_479807bfddde3a33 = function(arg0, arg1) { | ||
const ret = getObject(arg0).at(arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_61b7ce01341d7f88 = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_dc5dbfa8d5fb28cf = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byobRequest_1fc36a0c1e98611b = function(arg0) { | ||
const ret = getObject(arg0).byobRequest; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byteLength_1b2d953758afc500 = function(arg0) { | ||
const ret = getObject(arg0).byteLength; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_objectget_6c331054ce8fcca9 = function(arg0, arg1, arg2) { | ||
const ret = object_get(arg0, getStringFromWasm0(arg1, arg2)); | ||
imports.wbg.__wbg_byteOffset_7ef484c6c1d473e9 = function(arg0) { | ||
const ret = getObject(arg0).byteOffset; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getWriter_2fe953e01e7ca9c5 = function() { return handleError(function (arg0) { | ||
const ret = arg0.getWriter(); | ||
return ret; | ||
imports.wbg.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
imports.wbg.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_cancel_ac971f285f1e9ab3 = function(arg0) { | ||
const ret = getObject(arg0).cancel(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_is_falsy = function(arg0) { | ||
const ret = !arg0; | ||
return ret; | ||
imports.wbg.__wbg_catch_d0fc80129c999ab3 = function(arg0, arg1) { | ||
const ret = getObject(arg0).catch(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return ret; | ||
imports.wbg.__wbg_close_4063e1bcbd6d5fe2 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_close_59511bda900d85a8 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_close_65cb23eb0316f916 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_convertbodyinner_a5763c79b8e0c298 = function() { return handleError(function (arg0) { | ||
const ret = convert_body_inner(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_convertstreamingbodyinner_ae0dd15600cb6017 = function() { return handleError(function (arg0) { | ||
const ret = convert_streaming_body_inner(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) { | ||
const ret = getObject(arg0).crypto; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_wskey_284ae2640195cb26 = function(arg0) { | ||
const ret = ws_key(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
imports.wbg.__wbg_data_4ce8a82394d8b110 = function(arg0) { | ||
const ret = getObject(arg0).data; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_defineproperty_f3a9c9842cd39985 = function(arg0, arg1, arg2, arg3) { | ||
define_property(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
}; | ||
imports.wbg.__wbg_enqueue_3997a55771b5212a = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).enqueue(getObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_entriesofobjectinner_ebe380f34b41192d = function(arg0, arg1) { | ||
const ret = entries_of_object_inner(getObject(arg1)); | ||
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
@@ -1014,80 +1093,83 @@ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
const ret = EpoxyWebSocket.__wrap(arg0); | ||
return ret; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_convertstreamingbodyinner_91a7090e8c9c2a1a = function() { return handleError(function (arg0) { | ||
const ret = convert_streaming_body_inner(arg0); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_at_2c39eacdcce73361 = function(arg0, arg1) { | ||
const ret = arg0.at(arg1); | ||
return ret; | ||
imports.wbg.__wbg_error_cd2fb706f303b582 = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_new_034f913e7636e987 = function() { | ||
const ret = new Array(); | ||
return ret; | ||
imports.wbg.__wbg_from_d68eaa96dba25449 = function(arg0) { | ||
const ret = Array.from(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_of_7e03bb557d6a64cc = function(arg0, arg1) { | ||
const ret = Array.of(arg0, arg1); | ||
return ret; | ||
imports.wbg.__wbg_fromentries_bae693d00d903deb = function() { return handleError(function (arg0) { | ||
const ret = from_entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).getRandomValues(getObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).getReader(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getWriter_dd1c7a1972bcd348 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).getWriter(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_get_9aa3dff3f0266054 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) { | ||
const ret = arg0.push(arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() { | ||
const ret = new Object(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setheaders_d48810c9779f36b3 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
}; | ||
imports.wbg.__wbg_setstatus_196540ea958edeed = function(arg0, arg1) { | ||
arg0.status = arg1; | ||
}; | ||
imports.wbg.__wbg_setstatustext_4667131a60e2d571 = function(arg0, arg1, arg2) { | ||
arg0.statusText = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_newwithoptreadablestreamandinit_37705e7046d5e4ff = function() { return handleError(function (arg0, arg1) { | ||
const ret = new Response(arg0, arg1); | ||
return ret; | ||
imports.wbg.__wbg_get_bbccf8970793c087 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_defineproperty_cc1ca3eba7892369 = function(arg0, arg1, arg2, arg3) { | ||
define_property(arg0, getStringFromWasm0(arg1, arg2), arg3); | ||
imports.wbg.__wbg_getdone_c9ef3af0d247e580 = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; | ||
}; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(arg0); | ||
return ret; | ||
imports.wbg.__wbg_getvalue_3597a1222fac0ae0 = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_objectset_127d41af3ca9fa70 = function(arg0, arg1, arg2, arg3) { | ||
object_set(arg0, getStringFromWasm0(arg1, arg2), arg3); | ||
imports.wbg.__wbg_href_e02c8426b1c9033d = function(arg0, arg1) { | ||
const ret = getObject(arg1).href; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_from_91a67a5f04c98a54 = function(arg0) { | ||
const ret = Array.from(arg0); | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof ArrayBuffer; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
const obj = arg0.original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
imports.wbg.__wbg_instanceof_Error_2b29c5b4afac4e22 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Error; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = false; | ||
const ret = result; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_cancel_2a3c2f3c115ac7e0 = function(arg0) { | ||
const ret = arg0.cancel(); | ||
imports.wbg.__wbg_instanceof_Headers_a54ae4b841040dde = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Headers; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_catch_8097da4375a5dd1b = function(arg0, arg1) { | ||
const ret = arg0.catch(arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Url_f00efbf8074b8fcf = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Promise_0aa3a90cfe6672c9 = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof URL; | ||
result = getObject(arg0) instanceof Promise; | ||
} catch (_) { | ||
@@ -1099,42 +1181,6 @@ result = false; | ||
}; | ||
imports.wbg.__wbg_href_07ab8fba72e97d85 = function(arg0, arg1) { | ||
const ret = arg1.href; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_newwithintounderlyingsink_fc711dabac401337 = function(arg0) { | ||
const ret = new WritableStream(IntoUnderlyingSink.__wrap(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_log_3a0e1cfbf87d0053 = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_error_d4df4e5c9ec7c1cb = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_convertbodyinner_14e8d0d8e8eff308 = function() { return handleError(function (arg0) { | ||
const ret = convert_body_inner(arg0); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_entriesofobjectinner_e31ab96d864913e6 = function(arg0, arg1) { | ||
const ret = entries_of_object_inner(arg1); | ||
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_data_134d3a704b9fca32 = function(arg0) { | ||
const ret = arg0.data; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Error_a0af335a62107964 = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Url_e66a981eb3cc407a = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Error; | ||
result = getObject(arg0) instanceof URL; | ||
} catch (_) { | ||
@@ -1146,19 +1192,22 @@ result = false; | ||
}; | ||
imports.wbg.__wbg_toString_4b677455b9167e31 = function(arg0) { | ||
const ret = arg0.toString(); | ||
imports.wbg.__wbg_length_65d1cd11729ced11 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_fromentries_f05f98ee2edb06d8 = function() { return handleError(function (arg0) { | ||
const ret = from_entries(arg0); | ||
imports.wbg.__wbg_length_d65cf0786bfc5739 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_write_8516d1ea4c89b39d = function(arg0, arg1) { | ||
const ret = arg0.write(arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_abort_9e2d9deeb851d8ca = function(arg0) { | ||
const ret = arg0.abort(); | ||
return ret; | ||
imports.wbg.__wbg_log_0a3bbbf3d386796f = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) { | ||
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) { | ||
const ret = getObject(arg0).msCrypto; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_254fa9eac11932ae = function() { | ||
const ret = new Array(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_3d446df9155128ef = function(arg0, arg1) { | ||
try { | ||
@@ -1170,3 +1219,3 @@ var state0 = {a: arg0, b: arg1}; | ||
try { | ||
return __wbg_adapter_171(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_169(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1177,3 +1226,3 @@ state0.a = a; | ||
const ret = new Promise(cb0); | ||
return ret; | ||
return addHeapObject(ret); | ||
} finally { | ||
@@ -1183,172 +1232,204 @@ state0.a = state0.b = 0; | ||
}; | ||
imports.wbg.__wbg_send_fe006eb24f5e2694 = function() { return handleError(function (arg0, arg1, arg2) { | ||
arg0.send(getArrayU8FromWasm0(arg1, arg2)); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
imports.wbg.__wbg_new_3ff5b33b1ce712df = function(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_wsprotocol_da3c44bfdcf4831d = function(arg0) { | ||
const ret = ws_protocol(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
imports.wbg.__wbg_new_6799ef630abee97c = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithstrsequence_e105150b01b32f72 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_new_d550f7a7120dd942 = function() { return handleError(function (arg0, arg1) { | ||
imports.wbg.__wbg_new_688846f374351c92 = function() { | ||
const ret = new Object(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_9b6c38191d7b9512 = function() { return handleError(function (arg0, arg1) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_setbinaryType_2befea8ba88b61e2 = function(arg0, arg1) { | ||
arg0.binaryType = __wbindgen_enum_BinaryType[arg1]; | ||
imports.wbg.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setonmessage_84cd941c1df08da7 = function(arg0, arg1) { | ||
arg0.onmessage = arg1; | ||
imports.wbg.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setonopen_c0e1464e3ea28727 = function(arg0, arg1) { | ||
arg0.onopen = arg1; | ||
imports.wbg.__wbg_newwithintounderlyingsink_08f1a3e40fc70d83 = function(arg0) { | ||
const ret = new WritableStream(IntoUnderlyingSink.__wrap(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setonclose_9a28780f7d46ed03 = function(arg0, arg1) { | ||
arg0.onclose = arg1; | ||
imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) { | ||
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), takeObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setonerror_e16deca7fd15a59c = function(arg0, arg1) { | ||
arg0.onerror = arg1; | ||
imports.wbg.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_readyState_bc0231e8c43b0907 = function(arg0) { | ||
const ret = arg0.readyState; | ||
return ret; | ||
imports.wbg.__wbg_newwithoptreadablestreamandinit_79299cc49f3b9bdd = function() { return handleError(function (arg0, arg1) { | ||
const ret = new Response(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_newwithstrsequence_5b5601fc2c0bff30 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) { | ||
const ret = getObject(arg0).node; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
imports.wbg.__wbg_now_62a101fe35b60230 = function(arg0) { | ||
const ret = getObject(arg0).now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) { | ||
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); | ||
imports.wbg.__wbg_now_64d0bb151e5d3889 = function() { | ||
const ret = Date.now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) { | ||
arg0.getRandomValues(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_memory = function() { | ||
const ret = wasm.memory; | ||
imports.wbg.__wbg_now_71123b9940376874 = function(arg0) { | ||
const ret = getObject(arg0).now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) { | ||
const ret = arg0.buffer; | ||
return ret; | ||
imports.wbg.__wbg_objectget_ec75b26b20ee3dab = function(arg0, arg1, arg2) { | ||
const ret = object_get(getObject(arg0), getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); | ||
return ret; | ||
imports.wbg.__wbg_objectset_46433ffed1f1f2ee = function(arg0, arg1, arg2, arg3) { | ||
object_set(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
}; | ||
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) { | ||
arg0.randomFillSync(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) { | ||
const ret = arg0.crypto; | ||
return ret; | ||
imports.wbg.__wbg_of_437cdae2760f8b94 = function(arg0, arg1) { | ||
const ret = Array.of(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) { | ||
const ret = arg0.process; | ||
return ret; | ||
imports.wbg.__wbg_performance_1a2515c93daf8b0c = function(arg0) { | ||
const ret = getObject(arg0).performance; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) { | ||
const ret = arg0.versions; | ||
return ret; | ||
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) { | ||
const ret = getObject(arg0).process; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) { | ||
const ret = arg0.node; | ||
imports.wbg.__wbg_push_6edad0df4b546b2c = function(arg0, arg1) { | ||
const ret = getObject(arg0).push(getObject(arg1)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
imports.wbg.__wbg_queueMicrotask_2181040e064c0dc8 = function(arg0) { | ||
queueMicrotask(getObject(arg0)); | ||
}; | ||
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () { | ||
const ret = module.require; | ||
return ret; | ||
imports.wbg.__wbg_queueMicrotask_ef9ac43769cbcc4f = function(arg0) { | ||
const ret = getObject(arg0).queueMicrotask; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).randomFillSync(takeObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) { | ||
const ret = arg0.msCrypto; | ||
return ret; | ||
imports.wbg.__wbg_read_4d173e86f707008c = function(arg0) { | ||
const ret = getObject(arg0).read(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
imports.wbg.__wbg_readyState_236b61903e1dbb47 = function(arg0) { | ||
const ret = getObject(arg0).readyState; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(arg0, arg1); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_now_d3cbc9581625f686 = function(arg0) { | ||
const ret = arg0.now(); | ||
return ret; | ||
imports.wbg.__wbg_releaseLock_2d9136d592a32095 = function(arg0) { | ||
getObject(arg0).releaseLock(); | ||
}; | ||
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) { | ||
const ret = arg0.call(arg1); | ||
return ret; | ||
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () { | ||
const ret = module.require; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) { | ||
const ret = arg0[arg1 >>> 0]; | ||
return ret; | ||
imports.wbg.__wbg_resolve_0bf7c44d641804f9 = function(arg0) { | ||
const ret = Promise.resolve(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () { | ||
const ret = self.self; | ||
return ret; | ||
imports.wbg.__wbg_respond_88fe7338392675f2 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).respond(arg1 >>> 0); | ||
}, arguments) }; | ||
imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () { | ||
const ret = window.window; | ||
return ret; | ||
imports.wbg.__wbg_send_c2b76ede40fcced1 = function() { return handleError(function (arg0, arg1, arg2) { | ||
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
imports.wbg.__wbg_setTimeout_efd7c11531df1743 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () { | ||
const ret = global.global; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
const ret = arg0 === undefined; | ||
return ret; | ||
imports.wbg.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
imports.wbg.__wbg_setbinaryType_3fa4a9e8d2cc506f = function(arg0, arg1) { | ||
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1]; | ||
}; | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof ArrayBuffer; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
imports.wbg.__wbg_setheaders_9d4b8241e8063a9f = function(arg0, arg1) { | ||
getObject(arg0).headers = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = arg0.call(arg1, arg2); | ||
return ret; | ||
imports.wbg.__wbg_sethighwatermark_af796d9564f89270 = function(arg0, arg1) { | ||
getObject(arg0).highWaterMark = arg1; | ||
}; | ||
imports.wbg.__wbg_setonclose_f9c609d8c9938fa5 = function(arg0, arg1) { | ||
getObject(arg0).onclose = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setonerror_8ae2b387470ec52e = function(arg0, arg1) { | ||
getObject(arg0).onerror = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setonmessage_5e7ade2af360de9d = function(arg0, arg1) { | ||
getObject(arg0).onmessage = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setonopen_54faa9e83483da1d = function(arg0, arg1) { | ||
getObject(arg0).onopen = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setstatus_9b90889d616b0586 = function(arg0, arg1) { | ||
getObject(arg0).status = arg1; | ||
}; | ||
imports.wbg.__wbg_setstatustext_414bdc4b61159b75 = function(arg0, arg1, arg2) { | ||
getObject(arg0).statusText = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() { | ||
const ret = typeof global === 'undefined' ? null : global; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() { | ||
const ret = typeof globalThis === 'undefined' ? null : globalThis; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_static_accessor_SELF_1dc398a895c82351 = function() { | ||
const ret = typeof self === 'undefined' ? null : self; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() { | ||
const ret = typeof window === 'undefined' ? null : window; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_tee_15d2d039bef462ae = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).tee(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) { | ||
arg0.set(arg1, arg2 >>> 0); | ||
imports.wbg.__wbg_then_0438fad860fe38e1 = function(arg0, arg1) { | ||
const ret = getObject(arg0).then(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
imports.wbg.__wbg_then_0ffafeddf0e182a4 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_now_70af4fe37a792251 = function() { | ||
const ret = Date.now(); | ||
return ret; | ||
imports.wbg.__wbg_toString_cbcf95f260c441ae = function(arg0) { | ||
const ret = getObject(arg0).toString(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_throw = function(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) { | ||
const ret = getObject(arg0).versions; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { | ||
const ret = debugString(arg1); | ||
imports.wbg.__wbg_view_a03cbb1d55c73e57 = function(arg0) { | ||
const ret = getObject(arg0).view; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_write_0aea81ae26043440 = function(arg0, arg1) { | ||
const ret = getObject(arg0).write(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_wskey_8c560de00113f237 = function(arg0) { | ||
const ret = ws_key(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -1359,140 +1440,100 @@ const len1 = WASM_VECTOR_LEN; | ||
}; | ||
imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) { | ||
const ret = arg0.then(arg1); | ||
return ret; | ||
imports.wbg.__wbg_wsprotocol_03990c653034cd45 = function(arg0) { | ||
const ret = ws_protocol(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) { | ||
const ret = arg0.then(arg1, arg2); | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
const ret = false; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper1448 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 212, __wbg_adapter_40); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) { | ||
const ret = Promise.resolve(arg0); | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper4205 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 212, __wbg_adapter_43); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) { | ||
arg0.enqueue(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) { | ||
const ret = arg0.byobRequest; | ||
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); | ||
imports.wbg.__wbindgen_closure_wrapper475 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_32); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) { | ||
const ret = arg0.view; | ||
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); | ||
imports.wbg.__wbindgen_closure_wrapper477 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_35); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) { | ||
const ret = arg0.byteLength; | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper479 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_35); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) { | ||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { | ||
const ret = debugString(getObject(arg1)); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) { | ||
const ret = arg0.buffer; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) { | ||
const ret = arg0.byteOffset; | ||
imports.wbg.__wbindgen_is_falsy = function(arg0) { | ||
const ret = !getObject(arg0); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_sethighwatermark_3e325942406b05aa = function(arg0, arg1) { | ||
arg0.highWaterMark = arg1; | ||
}; | ||
imports.wbg.__wbg_read_08d62388e7870059 = function(arg0) { | ||
const ret = arg0.read(); | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getdone_38a59a1c17131633 = function(arg0) { | ||
const ret = arg0.done; | ||
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; | ||
}; | ||
imports.wbg.__wbg_getvalue_674bb48c8380247b = function(arg0) { | ||
const ret = arg0.value; | ||
imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_tee_fb73f070220f1a8c = function() { return handleError(function (arg0) { | ||
const ret = arg0.tee(); | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_getReader_7a604d2d7b2f6e3e = function() { return handleError(function (arg0) { | ||
const ret = arg0.getReader(); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_newwithintounderlyingsource_5527e309da822cfb = function(arg0, arg1) { | ||
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setTimeout_2cb6c793c4aa44f8 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = arg0.setTimeout(arg1, arg2); | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_performance_ffc4e815dfb3449f = function(arg0) { | ||
const ret = arg0.performance; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_now_8799be02ba81a22e = function(arg0) { | ||
const ret = arg0.now(); | ||
return ret; | ||
imports.wbg.__wbindgen_memory = function() { | ||
const ret = wasm.memory; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_instanceof_Headers_b23ad138f4ce041e = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Headers; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) { | ||
arg0.respond(arg1 >>> 0); | ||
}, arguments) }; | ||
imports.wbg.__wbg_releaseLock_32c310d7be334e1c = function(arg0) { | ||
arg0.releaseLock(); | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbg_close_9e3b743c528a8d31 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_closure_wrapper440 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_34); | ||
return ret; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper442 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_37); | ||
return ret; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper444 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 19, __wbg_adapter_34); | ||
return ret; | ||
imports.wbg.__wbindgen_throw = function(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper1386 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 212, __wbg_adapter_42); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper4138 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 212, __wbg_adapter_45); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_init_externref_table = function() { | ||
const table = wasm.__wbindgen_export_2; | ||
const offset = table.grow(4); | ||
table.set(0, undefined); | ||
table.set(offset + 0, undefined); | ||
table.set(offset + 1, null); | ||
table.set(offset + 2, true); | ||
table.set(offset + 3, false); | ||
; | ||
}; | ||
@@ -1513,3 +1554,3 @@ return imports; | ||
wasm.__wbindgen_start(); | ||
return wasm; | ||
@@ -1572,2 +1613,2 @@ } | ||
export default __wbg_init; | ||
export const info = { version: "2.1.15-2", minimal: 0===1, release: 1===1, commit: "7362d512b9f0580765bdb7d0d875e69f243a5915" }; | ||
export const info = { version: "2.1.16-1", minimal: 0===1, release: 1===1, commit: "5a7917f292166987a8f745f73dc53c219386ed0d" }; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* The `ReadableStreamType` enum. | ||
* | ||
* *This API requires the following crate features to be activated: `ReadableStreamType`* | ||
*/ | ||
type ReadableStreamType = "bytes"; | ||
@@ -24,20 +30,8 @@ type EpoxyIoStream = { | ||
free(): void; | ||
/** | ||
* @param {EpoxyWispTransport} transport | ||
* @param {EpoxyClientOptions} options | ||
*/ | ||
constructor(transport: EpoxyWispTransport, options: EpoxyClientOptions); | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
replace_stream_provider(): Promise<void>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @param {object} options | ||
* @returns {Promise<Response>} | ||
*/ | ||
fetch(url: EpoxyUrlInput, options: object): Promise<Response>; | ||
buffer_size: number; | ||
redirect_limit: number; | ||
user_agent: string; | ||
buffer_size: number; | ||
} | ||
@@ -47,57 +41,39 @@ export class EpoxyClientOptions { | ||
constructor(); | ||
buffer_size: number; | ||
disable_certificate_validation: boolean; | ||
wisp_v2: boolean; | ||
udp_extension_required: boolean; | ||
title_case_headers: boolean; | ||
websocket_protocols: (string)[]; | ||
redirect_limit: number; | ||
header_limit: number; | ||
redirect_limit: number; | ||
title_case_headers: boolean; | ||
udp_extension_required: boolean; | ||
user_agent: string; | ||
websocket_protocols: (string)[]; | ||
wisp_v2: boolean; | ||
disable_certificate_validation: boolean; | ||
buffer_size: number; | ||
} | ||
export class EpoxyHandlers { | ||
private constructor(); | ||
free(): void; | ||
onopen: Function; | ||
onclose: Function; | ||
onerror: Function; | ||
onmessage: Function; | ||
onopen: Function; | ||
} | ||
export class IntoUnderlyingByteSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
*/ | ||
start(controller: ReadableByteStreamController): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableByteStreamController): Promise<any>; | ||
cancel(): void; | ||
readonly type: ReadableStreamType; | ||
readonly autoAllocateChunkSize: number; | ||
readonly type: any; | ||
} | ||
export class IntoUnderlyingSink { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {any} chunk | ||
* @returns {Promise<any>} | ||
*/ | ||
write(chunk: any): Promise<any>; | ||
/** | ||
* @returns {Promise<any>} | ||
*/ | ||
close(): Promise<any>; | ||
/** | ||
* @param {any} reason | ||
* @returns {Promise<any>} | ||
*/ | ||
abort(reason: any): Promise<any>; | ||
} | ||
export class IntoUnderlyingSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableStreamDefaultController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableStreamDefaultController): Promise<any>; | ||
@@ -104,0 +80,0 @@ cancel(): void; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* The `ReadableStreamType` enum. | ||
* | ||
* *This API requires the following crate features to be activated: `ReadableStreamType`* | ||
*/ | ||
type ReadableStreamType = "bytes"; | ||
@@ -24,20 +30,8 @@ type EpoxyIoStream = { | ||
free(): void; | ||
/** | ||
* @param {EpoxyWispTransport} transport | ||
* @param {EpoxyClientOptions} options | ||
*/ | ||
constructor(transport: EpoxyWispTransport, options: EpoxyClientOptions); | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
replace_stream_provider(): Promise<void>; | ||
/** | ||
* @param {EpoxyUrlInput} url | ||
* @param {object} options | ||
* @returns {Promise<Response>} | ||
*/ | ||
fetch(url: EpoxyUrlInput, options: object): Promise<Response>; | ||
buffer_size: number; | ||
redirect_limit: number; | ||
user_agent: string; | ||
buffer_size: number; | ||
} | ||
@@ -47,57 +41,39 @@ export class EpoxyClientOptions { | ||
constructor(); | ||
buffer_size: number; | ||
disable_certificate_validation: boolean; | ||
wisp_v2: boolean; | ||
udp_extension_required: boolean; | ||
title_case_headers: boolean; | ||
websocket_protocols: (string)[]; | ||
redirect_limit: number; | ||
header_limit: number; | ||
redirect_limit: number; | ||
title_case_headers: boolean; | ||
udp_extension_required: boolean; | ||
user_agent: string; | ||
websocket_protocols: (string)[]; | ||
wisp_v2: boolean; | ||
disable_certificate_validation: boolean; | ||
buffer_size: number; | ||
} | ||
export class EpoxyHandlers { | ||
private constructor(); | ||
free(): void; | ||
onopen: Function; | ||
onclose: Function; | ||
onerror: Function; | ||
onmessage: Function; | ||
onopen: Function; | ||
} | ||
export class IntoUnderlyingByteSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
*/ | ||
start(controller: ReadableByteStreamController): void; | ||
/** | ||
* @param {ReadableByteStreamController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableByteStreamController): Promise<any>; | ||
cancel(): void; | ||
readonly type: ReadableStreamType; | ||
readonly autoAllocateChunkSize: number; | ||
readonly type: any; | ||
} | ||
export class IntoUnderlyingSink { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {any} chunk | ||
* @returns {Promise<any>} | ||
*/ | ||
write(chunk: any): Promise<any>; | ||
/** | ||
* @returns {Promise<any>} | ||
*/ | ||
close(): Promise<any>; | ||
/** | ||
* @param {any} reason | ||
* @returns {Promise<any>} | ||
*/ | ||
abort(reason: any): Promise<any>; | ||
} | ||
export class IntoUnderlyingSource { | ||
private constructor(); | ||
free(): void; | ||
/** | ||
* @param {ReadableStreamDefaultController} controller | ||
* @returns {Promise<any>} | ||
*/ | ||
pull(controller: ReadableStreamDefaultController): Promise<any>; | ||
@@ -104,0 +80,0 @@ cancel(): void; |
1114
minimal/epoxy.js
@@ -1,7 +0,50 @@ | ||
import { object_get, object_set, convert_body_inner, convert_streaming_body_inner, entries_of_object_inner, define_property, ws_protocol, from_entries } from 'data:text/javascript;base64,CmV4cG9ydCBmdW5jdGlvbiB3c19wcm90b2NvbCgpIHsKCXJldHVybiAoCiAgICAgIFsxZTddKy0xZTMrLTRlMystOGUzKy0xZTExKS5yZXBsYWNlKC9bMDE4XS9nLAogICAgICBjID0+IChjIF4gY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhuZXcgVWludDhBcnJheSgxKSlbMF0gJiAxNSA+PiBjIC8gNCkudG9TdHJpbmcoMTYpCiAgICApOwp9CgpleHBvcnQgZnVuY3Rpb24gb2JqZWN0X2dldChvYmosIGspIHsgCgl0cnkgewoJCXJldHVybiBvYmpba10KCX0gY2F0Y2goeCkgewoJCXJldHVybiB1bmRlZmluZWQKCX0KfTsKZXhwb3J0IGZ1bmN0aW9uIG9iamVjdF9zZXQob2JqLCBrLCB2KSB7Cgl0cnkgeyBvYmpba10gPSB2IH0gY2F0Y2gge30KfTsKCmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjb252ZXJ0X2JvZHlfaW5uZXIoYm9keSkgewoJbGV0IHJlcSA9IG5ldyBSZXF1ZXN0KCIiLCB7IG1ldGhvZDogIlBPU1QiLCBkdXBsZXg6ICJoYWxmIiwgYm9keSB9KTsKCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCXJldHVybiBbbmV3IFVpbnQ4QXJyYXkoYXdhaXQgcmVxLmFycmF5QnVmZmVyKCkpLCB0eXBlXTsKfQoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGNvbnZlcnRfc3RyZWFtaW5nX2JvZHlfaW5uZXIoYm9keSkgewoJdHJ5IHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGJvZHkgfSk7CgkJbGV0IHR5cGUgPSByZXEuaGVhZGVycy5nZXQoImNvbnRlbnQtdHlwZSIpOwoJCXJldHVybiBbZmFsc2UsIG5ldyBVaW50OEFycmF5KGF3YWl0IHJlcS5hcnJheUJ1ZmZlcigpKSwgdHlwZV07Cgl9IGNhdGNoKHgpIHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGR1cGxleDogImhhbGYiLCBib2R5IH0pOwoJCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCQlyZXR1cm4gW3RydWUsIHJlcS5ib2R5LCB0eXBlXTsKCX0KfQoKZXhwb3J0IGZ1bmN0aW9uIGVudHJpZXNfb2Zfb2JqZWN0X2lubmVyKG9iaikgewoJcmV0dXJuIE9iamVjdC5lbnRyaWVzKG9iaikubWFwKHggPT4geC5tYXAoU3RyaW5nKSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiBkZWZpbmVfcHJvcGVydHkob2JqLCBrLCB2KSB7CglPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBrLCB7IHZhbHVlOiB2LCB3cml0YWJsZTogZmFsc2UgfSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiB3c19rZXkoKSB7CglsZXQga2V5ID0gbmV3IFVpbnQ4QXJyYXkoMTYpOwoJY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhrZXkpOwoJcmV0dXJuIGJ0b2EoU3RyaW5nLmZyb21DaGFyQ29kZS5hcHBseShudWxsLCBrZXkpKTsKfQoKZXhwb3J0IGZ1bmN0aW9uIGZyb21fZW50cmllcyhlbnRyaWVzKXsKICAgIHZhciByZXQgPSB7fTsKICAgIGZvcih2YXIgaSA9IDA7IGkgPCBlbnRyaWVzLmxlbmd0aDsgaSsrKSByZXRbZW50cmllc1tpXVswXV0gPSBlbnRyaWVzW2ldWzFdOwogICAgcmV0dXJuIHJldDsKfQo='; | ||
import { convert_body_inner, convert_streaming_body_inner, define_property, entries_of_object_inner, from_entries, object_get, object_set, ws_protocol } from 'data:text/javascript;base64,CmV4cG9ydCBmdW5jdGlvbiB3c19wcm90b2NvbCgpIHsKCXJldHVybiAoCiAgICAgIFsxZTddKy0xZTMrLTRlMystOGUzKy0xZTExKS5yZXBsYWNlKC9bMDE4XS9nLAogICAgICBjID0+IChjIF4gY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhuZXcgVWludDhBcnJheSgxKSlbMF0gJiAxNSA+PiBjIC8gNCkudG9TdHJpbmcoMTYpCiAgICApOwp9CgpleHBvcnQgZnVuY3Rpb24gb2JqZWN0X2dldChvYmosIGspIHsgCgl0cnkgewoJCXJldHVybiBvYmpba10KCX0gY2F0Y2goeCkgewoJCXJldHVybiB1bmRlZmluZWQKCX0KfTsKZXhwb3J0IGZ1bmN0aW9uIG9iamVjdF9zZXQob2JqLCBrLCB2KSB7Cgl0cnkgeyBvYmpba10gPSB2IH0gY2F0Y2gge30KfTsKCmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjb252ZXJ0X2JvZHlfaW5uZXIoYm9keSkgewoJbGV0IHJlcSA9IG5ldyBSZXF1ZXN0KCIiLCB7IG1ldGhvZDogIlBPU1QiLCBkdXBsZXg6ICJoYWxmIiwgYm9keSB9KTsKCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCXJldHVybiBbbmV3IFVpbnQ4QXJyYXkoYXdhaXQgcmVxLmFycmF5QnVmZmVyKCkpLCB0eXBlXTsKfQoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGNvbnZlcnRfc3RyZWFtaW5nX2JvZHlfaW5uZXIoYm9keSkgewoJdHJ5IHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGJvZHkgfSk7CgkJbGV0IHR5cGUgPSByZXEuaGVhZGVycy5nZXQoImNvbnRlbnQtdHlwZSIpOwoJCXJldHVybiBbZmFsc2UsIG5ldyBVaW50OEFycmF5KGF3YWl0IHJlcS5hcnJheUJ1ZmZlcigpKSwgdHlwZV07Cgl9IGNhdGNoKHgpIHsKCQlsZXQgcmVxID0gbmV3IFJlcXVlc3QoIiIsIHsgbWV0aG9kOiAiUE9TVCIsIGR1cGxleDogImhhbGYiLCBib2R5IH0pOwoJCWxldCB0eXBlID0gcmVxLmhlYWRlcnMuZ2V0KCJjb250ZW50LXR5cGUiKTsKCQlyZXR1cm4gW3RydWUsIHJlcS5ib2R5LCB0eXBlXTsKCX0KfQoKZXhwb3J0IGZ1bmN0aW9uIGVudHJpZXNfb2Zfb2JqZWN0X2lubmVyKG9iaikgewoJcmV0dXJuIE9iamVjdC5lbnRyaWVzKG9iaikubWFwKHggPT4geC5tYXAoU3RyaW5nKSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiBkZWZpbmVfcHJvcGVydHkob2JqLCBrLCB2KSB7CglPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBrLCB7IHZhbHVlOiB2LCB3cml0YWJsZTogZmFsc2UgfSk7Cn0KCmV4cG9ydCBmdW5jdGlvbiB3c19rZXkoKSB7CglsZXQga2V5ID0gbmV3IFVpbnQ4QXJyYXkoMTYpOwoJY3J5cHRvLmdldFJhbmRvbVZhbHVlcyhrZXkpOwoJcmV0dXJuIGJ0b2EoU3RyaW5nLmZyb21DaGFyQ29kZS5hcHBseShudWxsLCBrZXkpKTsKfQoKZXhwb3J0IGZ1bmN0aW9uIGZyb21fZW50cmllcyhlbnRyaWVzKXsKICAgIHZhciByZXQgPSB7fTsKICAgIGZvcih2YXIgaSA9IDA7IGkgPCBlbnRyaWVzLmxlbmd0aDsgaSsrKSByZXRbZW50cmllc1tpXVswXV0gPSBlbnRyaWVzW2ldWzFdOwogICAgcmV0dXJuIHJldDsKfQo='; | ||
let wasm; | ||
let WASM_VECTOR_LEN = 0; | ||
const heap = new Array(128).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_exn_store(addHeapObject(e)); | ||
} | ||
} | ||
function dropObject(idx) { | ||
if (idx < 132) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
let cachedUint8ArrayMemory0 = null; | ||
@@ -16,2 +59,28 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
let cachedDataViewMemory0 = null; | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
function passArrayJsValueToWasm0(array, malloc) { | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getDataViewMemory0(); | ||
for (let i = 0; i < array.length; i++) { | ||
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true); | ||
} | ||
WASM_VECTOR_LEN = array.length; | ||
return ptr; | ||
} | ||
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); | ||
@@ -71,22 +140,58 @@ | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
function getArrayU8FromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); | ||
} | ||
let cachedDataViewMemory0 = null; | ||
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b) | ||
}); | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
function makeClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
try { | ||
return f(state.a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b); | ||
state.a = 0; | ||
CLOSURE_DTORS.unregister(state); | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
const a = state.a; | ||
state.a = 0; | ||
try { | ||
return f(a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
} else { | ||
state.a = a; | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
@@ -135,3 +240,3 @@ | ||
let className; | ||
if (builtInMatches.length > 1) { | ||
if (builtInMatches && builtInMatches.length > 1) { | ||
className = builtInMatches[1]; | ||
@@ -160,94 +265,2 @@ } else { | ||
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b) | ||
}); | ||
function makeClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
try { | ||
return f(state.a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b); | ||
state.a = 0; | ||
CLOSURE_DTORS.unregister(state); | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
function __wbg_adapter_34(arg0, arg1) { | ||
wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5a3a8f2d32b83c6b(arg0, arg1); | ||
} | ||
function __wbg_adapter_37(arg0, arg1, arg2) { | ||
wasm.closure9_externref_shim(arg0, arg1, arg2); | ||
} | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
// First up with a closure we increment the internal reference | ||
// count. This ensures that the Rust closure environment won't | ||
// be deallocated while we're invoking it. | ||
state.cnt++; | ||
const a = state.a; | ||
state.a = 0; | ||
try { | ||
return f(a, state.b, ...args); | ||
} finally { | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
} else { | ||
state.a = a; | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
function __wbg_adapter_42(arg0, arg1, arg2) { | ||
wasm.closure186_externref_shim(arg0, arg1, arg2); | ||
} | ||
function __wbg_adapter_45(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h00d0db79625e8eaa(arg0, arg1); | ||
} | ||
function addToExternrefTable0(obj) { | ||
const idx = wasm.__externref_table_alloc(); | ||
wasm.__wbindgen_export_2.set(idx, obj); | ||
return idx; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
const idx = addToExternrefTable0(e); | ||
wasm.__wbindgen_exn_store(idx); | ||
} | ||
} | ||
function passArrayJsValueToWasm0(array, malloc) { | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getDataViewMemory0(); | ||
for (let i = 0; i < array.length; i++) { | ||
mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); | ||
} | ||
WASM_VECTOR_LEN = array.length; | ||
return ptr; | ||
} | ||
function getArrayJsValueFromWasm0(ptr, len) { | ||
@@ -258,5 +271,4 @@ ptr = ptr >>> 0; | ||
for (let i = ptr; i < ptr + 4 * len; i += 4) { | ||
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); | ||
result.push(takeObject(mem.getUint32(i, true))); | ||
} | ||
wasm.__externref_drop_slice(ptr, len); | ||
return result; | ||
@@ -269,19 +281,21 @@ } | ||
} | ||
return instance.ptr; | ||
} | ||
function __wbg_adapter_32(arg0, arg1) { | ||
wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h51c4b8e39e6a677a(arg0, arg1); | ||
} | ||
function takeFromExternrefTable0(idx) { | ||
const value = wasm.__wbindgen_export_2.get(idx); | ||
wasm.__externref_table_dealloc(idx); | ||
return value; | ||
function __wbg_adapter_35(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0cfced7fd4fc3487(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_154(arg0, arg1, arg2, arg3) { | ||
wasm.closure123_externref_shim(arg0, arg1, arg2, arg3); | ||
function __wbg_adapter_40(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h40372f4bf6043a82(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } | ||
function __wbg_adapter_43(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8a70cba751780d07(arg0, arg1); | ||
} | ||
function getArrayU8FromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); | ||
function __wbg_adapter_152(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6d9a02614aa7eb26(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -291,4 +305,2 @@ | ||
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"]; | ||
const __wbindgen_enum_ReadableStreamType = ["bytes"]; | ||
@@ -345,7 +357,11 @@ | ||
try { | ||
const ret = wasm.__wbg_get_epoxyclient_user_agent(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclient_user_agent(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -380,11 +396,19 @@ } | ||
constructor(transport, options) { | ||
_assertClass(options, EpoxyClientOptions); | ||
var ptr0 = options.__destroy_into_raw(); | ||
const ret = wasm.epoxyclient_new(transport, ptr0); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(options, EpoxyClientOptions); | ||
var ptr0 = options.__destroy_into_raw(); | ||
wasm.epoxyclient_new(retptr, addHeapObject(transport), ptr0); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
this.__wbg_ptr = r0 >>> 0; | ||
EpoxyClientFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
this.__wbg_ptr = ret[0] >>> 0; | ||
EpoxyClientFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
} | ||
@@ -396,3 +420,3 @@ /** | ||
const ret = wasm.epoxyclient_replace_stream_provider(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -405,4 +429,4 @@ /** | ||
fetch(url, options) { | ||
const ret = wasm.epoxyclient_fetch(this.__wbg_ptr, url, options); | ||
return ret; | ||
const ret = wasm.epoxyclient_fetch(this.__wbg_ptr, addHeapObject(url), addHeapObject(options)); | ||
return takeObject(ret); | ||
} | ||
@@ -471,6 +495,13 @@ } | ||
get websocket_protocols() { | ||
const ret = wasm.__wbg_get_epoxyclientoptions_websocket_protocols(this.__wbg_ptr); | ||
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice(); | ||
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4); | ||
return v1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclientoptions_websocket_protocols(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var v1 = getArrayJsValueFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 4, 4); | ||
return v1; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
@@ -518,7 +549,11 @@ /** | ||
try { | ||
const ret = wasm.__wbg_get_epoxyclientoptions_user_agent(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_epoxyclientoptions_user_agent(retptr, this.__wbg_ptr); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -591,3 +626,3 @@ } | ||
const ret = wasm.__wbg_get_epoxyhandlers_onopen(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -598,3 +633,3 @@ /** | ||
set onopen(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onopen(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onopen(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -606,3 +641,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onclose(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -613,3 +648,3 @@ /** | ||
set onclose(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onclose(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onclose(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -621,3 +656,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onerror(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -628,3 +663,3 @@ /** | ||
set onerror(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onerror(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onerror(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -636,3 +671,3 @@ /** | ||
const ret = wasm.__wbg_get_epoxyhandlers_onmessage(this.__wbg_ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -643,3 +678,3 @@ /** | ||
set onmessage(arg0) { | ||
wasm.__wbg_set_epoxyhandlers_onmessage(this.__wbg_ptr, arg0); | ||
wasm.__wbg_set_epoxyhandlers_onmessage(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
@@ -666,3 +701,3 @@ } | ||
/** | ||
* @returns {any} | ||
* @returns {ReadableStreamType} | ||
*/ | ||
@@ -684,3 +719,3 @@ get type() { | ||
start(controller) { | ||
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); | ||
wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller)); | ||
} | ||
@@ -692,4 +727,4 @@ /** | ||
pull(controller) { | ||
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); | ||
return ret; | ||
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller)); | ||
return takeObject(ret); | ||
} | ||
@@ -724,4 +759,4 @@ cancel() { | ||
write(chunk) { | ||
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); | ||
return ret; | ||
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk)); | ||
return takeObject(ret); | ||
} | ||
@@ -734,3 +769,3 @@ /** | ||
const ret = wasm.intounderlyingsink_close(ptr); | ||
return ret; | ||
return takeObject(ret); | ||
} | ||
@@ -743,4 +778,4 @@ /** | ||
const ptr = this.__destroy_into_raw(); | ||
const ret = wasm.intounderlyingsink_abort(ptr, reason); | ||
return ret; | ||
const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason)); | ||
return takeObject(ret); | ||
} | ||
@@ -779,4 +814,4 @@ } | ||
pull(controller) { | ||
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); | ||
return ret; | ||
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller)); | ||
return takeObject(ret); | ||
} | ||
@@ -823,10 +858,129 @@ cancel() { | ||
imports.wbg = {}; | ||
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) { | ||
const ret = new Uint8Array(arg0); | ||
imports.wbg.__wbg_abort_2d215a4bf861d1a2 = function(arg0) { | ||
const ret = getObject(arg0).abort(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_at_479807bfddde3a33 = function(arg0, arg1) { | ||
const ret = getObject(arg0).at(arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_61b7ce01341d7f88 = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_dc5dbfa8d5fb28cf = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byobRequest_1fc36a0c1e98611b = function(arg0) { | ||
const ret = getObject(arg0).byobRequest; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byteLength_1b2d953758afc500 = function(arg0) { | ||
const ret = getObject(arg0).byteLength; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Promise_f3fd1bcac3157f0c = function(arg0) { | ||
imports.wbg.__wbg_byteOffset_7ef484c6c1d473e9 = function(arg0) { | ||
const ret = getObject(arg0).byteOffset; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_cancel_ac971f285f1e9ab3 = function(arg0) { | ||
const ret = getObject(arg0).cancel(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_catch_d0fc80129c999ab3 = function(arg0, arg1) { | ||
const ret = getObject(arg0).catch(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_close_4063e1bcbd6d5fe2 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_close_59511bda900d85a8 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_close_65cb23eb0316f916 = function() { return handleError(function (arg0) { | ||
getObject(arg0).close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_convertbodyinner_a5763c79b8e0c298 = function() { return handleError(function (arg0) { | ||
const ret = convert_body_inner(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_convertstreamingbodyinner_ae0dd15600cb6017 = function() { return handleError(function (arg0) { | ||
const ret = convert_streaming_body_inner(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) { | ||
const ret = getObject(arg0).crypto; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_data_4ce8a82394d8b110 = function(arg0) { | ||
const ret = getObject(arg0).data; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_defineproperty_f3a9c9842cd39985 = function(arg0, arg1, arg2, arg3) { | ||
define_property(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
}; | ||
imports.wbg.__wbg_enqueue_3997a55771b5212a = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).enqueue(getObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_entriesofobjectinner_ebe380f34b41192d = function(arg0, arg1) { | ||
const ret = entries_of_object_inner(getObject(arg1)); | ||
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_error_cd2fb706f303b582 = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_from_d68eaa96dba25449 = function(arg0) { | ||
const ret = Array.from(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_fromentries_bae693d00d903deb = function() { return handleError(function (arg0) { | ||
const ret = from_entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).getRandomValues(getObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).getReader(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_getWriter_dd1c7a1972bcd348 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).getWriter(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_get_9aa3dff3f0266054 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_getdone_c9ef3af0d247e580 = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; | ||
}; | ||
imports.wbg.__wbg_getvalue_3597a1222fac0ae0 = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_href_e02c8426b1c9033d = function(arg0, arg1) { | ||
const ret = getObject(arg1).href; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Promise; | ||
result = getObject(arg0) instanceof ArrayBuffer; | ||
} catch (_) { | ||
@@ -838,22 +992,16 @@ result = false; | ||
}; | ||
imports.wbg.__wbg_objectget_6c331054ce8fcca9 = function(arg0, arg1, arg2) { | ||
const ret = object_get(arg0, getStringFromWasm0(arg1, arg2)); | ||
imports.wbg.__wbg_instanceof_Error_2b29c5b4afac4e22 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Error; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getWriter_2fe953e01e7ca9c5 = function() { return handleError(function (arg0) { | ||
const ret = arg0.getWriter(); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_convertbodyinner_14e8d0d8e8eff308 = function() { return handleError(function (arg0) { | ||
const ret = convert_body_inner(arg0); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_at_2c39eacdcce73361 = function(arg0, arg1) { | ||
const ret = arg0.at(arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Headers_a54ae4b841040dde = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof ArrayBuffer; | ||
result = getObject(arg0) instanceof Headers; | ||
} catch (_) { | ||
@@ -865,18 +1013,6 @@ result = false; | ||
}; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_is_falsy = function(arg0) { | ||
const ret = !arg0; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Url_f00efbf8074b8fcf = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Promise_0aa3a90cfe6672c9 = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof URL; | ||
result = getObject(arg0) instanceof Promise; | ||
} catch (_) { | ||
@@ -888,17 +1024,6 @@ result = false; | ||
}; | ||
imports.wbg.__wbg_href_07ab8fba72e97d85 = function(arg0, arg1) { | ||
const ret = arg1.href; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_convertstreamingbodyinner_91a7090e8c9c2a1a = function() { return handleError(function (arg0) { | ||
const ret = convert_streaming_body_inner(arg0); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_instanceof_Headers_b23ad138f4ce041e = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Url_e66a981eb3cc407a = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Headers; | ||
result = getObject(arg0) instanceof URL; | ||
} catch (_) { | ||
@@ -910,294 +1035,233 @@ result = false; | ||
}; | ||
imports.wbg.__wbg_new_034f913e7636e987 = function() { | ||
const ret = new Array(); | ||
imports.wbg.__wbg_length_65d1cd11729ced11 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
imports.wbg.__wbg_length_d65cf0786bfc5739 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_of_7e03bb557d6a64cc = function(arg0, arg1) { | ||
const ret = Array.of(arg0, arg1); | ||
return ret; | ||
imports.wbg.__wbg_log_0a3bbbf3d386796f = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) { | ||
const ret = arg0.push(arg1); | ||
return ret; | ||
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) { | ||
const ret = getObject(arg0).msCrypto; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() { | ||
const ret = new Object(); | ||
return ret; | ||
imports.wbg.__wbg_new_254fa9eac11932ae = function() { | ||
const ret = new Array(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setheaders_d48810c9779f36b3 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
imports.wbg.__wbg_new_3d446df9155128ef = function(arg0, arg1) { | ||
try { | ||
var state0 = {a: arg0, b: arg1}; | ||
var cb0 = (arg0, arg1) => { | ||
const a = state0.a; | ||
state0.a = 0; | ||
try { | ||
return __wbg_adapter_152(a, state0.b, arg0, arg1); | ||
} finally { | ||
state0.a = a; | ||
} | ||
}; | ||
const ret = new Promise(cb0); | ||
return addHeapObject(ret); | ||
} finally { | ||
state0.a = state0.b = 0; | ||
} | ||
}; | ||
imports.wbg.__wbg_setstatus_196540ea958edeed = function(arg0, arg1) { | ||
arg0.status = arg1; | ||
imports.wbg.__wbg_new_3ff5b33b1ce712df = function(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_setstatustext_4667131a60e2d571 = function(arg0, arg1, arg2) { | ||
arg0.statusText = getStringFromWasm0(arg1, arg2); | ||
imports.wbg.__wbg_new_6799ef630abee97c = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_sethighwatermark_3e325942406b05aa = function(arg0, arg1) { | ||
arg0.highWaterMark = arg1; | ||
imports.wbg.__wbg_new_688846f374351c92 = function() { | ||
const ret = new Object(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithintounderlyingsource_5527e309da822cfb = function(arg0, arg1) { | ||
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_newwithoptreadablestreamandinit_37705e7046d5e4ff = function() { return handleError(function (arg0, arg1) { | ||
const ret = new Response(arg0, arg1); | ||
return ret; | ||
imports.wbg.__wbg_new_9b6c38191d7b9512 = function() { return handleError(function (arg0, arg1) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_defineproperty_cc1ca3eba7892369 = function(arg0, arg1, arg2, arg3) { | ||
define_property(arg0, getStringFromWasm0(arg1, arg2), arg3); | ||
imports.wbg.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(arg0); | ||
return ret; | ||
imports.wbg.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_objectset_127d41af3ca9fa70 = function(arg0, arg1, arg2, arg3) { | ||
object_set(arg0, getStringFromWasm0(arg1, arg2), arg3); | ||
imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) { | ||
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), takeObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_from_91a67a5f04c98a54 = function(arg0) { | ||
const ret = Array.from(arg0); | ||
return ret; | ||
imports.wbg.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
const obj = arg0.original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
const ret = false; | ||
return ret; | ||
imports.wbg.__wbg_newwithoptreadablestreamandinit_79299cc49f3b9bdd = function() { return handleError(function (arg0, arg1) { | ||
const ret = new Response(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_newwithstrsequence_5b5601fc2c0bff30 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) { | ||
const ret = getObject(arg0).node; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_cancel_2a3c2f3c115ac7e0 = function(arg0) { | ||
const ret = arg0.cancel(); | ||
imports.wbg.__wbg_now_64d0bb151e5d3889 = function() { | ||
const ret = Date.now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_catch_8097da4375a5dd1b = function(arg0, arg1) { | ||
const ret = arg0.catch(arg1); | ||
imports.wbg.__wbg_now_71123b9940376874 = function(arg0) { | ||
const ret = getObject(arg0).now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
imports.wbg.__wbg_objectget_ec75b26b20ee3dab = function(arg0, arg1, arg2) { | ||
const ret = object_get(getObject(arg0), getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_log_3a0e1cfbf87d0053 = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_objectset_46433ffed1f1f2ee = function(arg0, arg1, arg2, arg3) { | ||
object_set(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
}; | ||
imports.wbg.__wbg_error_d4df4e5c9ec7c1cb = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_of_437cdae2760f8b94 = function(arg0, arg1) { | ||
const ret = Array.of(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_entriesofobjectinner_e31ab96d864913e6 = function(arg0, arg1) { | ||
const ret = entries_of_object_inner(arg1); | ||
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
imports.wbg.__wbg_performance_1a2515c93daf8b0c = function(arg0) { | ||
const ret = getObject(arg0).performance; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) { | ||
const ret = getObject(arg0).process; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_data_134d3a704b9fca32 = function(arg0) { | ||
const ret = arg0.data; | ||
imports.wbg.__wbg_push_6edad0df4b546b2c = function(arg0, arg1) { | ||
const ret = getObject(arg0).push(getObject(arg1)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Error_a0af335a62107964 = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Error; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
imports.wbg.__wbg_queueMicrotask_2181040e064c0dc8 = function(arg0) { | ||
queueMicrotask(getObject(arg0)); | ||
}; | ||
imports.wbg.__wbg_toString_4b677455b9167e31 = function(arg0) { | ||
const ret = arg0.toString(); | ||
return ret; | ||
imports.wbg.__wbg_queueMicrotask_ef9ac43769cbcc4f = function(arg0) { | ||
const ret = getObject(arg0).queueMicrotask; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_fromentries_f05f98ee2edb06d8 = function() { return handleError(function (arg0) { | ||
const ret = from_entries(arg0); | ||
return ret; | ||
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).randomFillSync(takeObject(arg1)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_write_8516d1ea4c89b39d = function(arg0, arg1) { | ||
const ret = arg0.write(arg1); | ||
return ret; | ||
imports.wbg.__wbg_read_4d173e86f707008c = function(arg0) { | ||
const ret = getObject(arg0).read(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_abort_9e2d9deeb851d8ca = function(arg0) { | ||
const ret = arg0.abort(); | ||
imports.wbg.__wbg_readyState_236b61903e1dbb47 = function(arg0) { | ||
const ret = getObject(arg0).readyState; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_send_fe006eb24f5e2694 = function() { return handleError(function (arg0, arg1, arg2) { | ||
arg0.send(getArrayU8FromWasm0(arg1, arg2)); | ||
imports.wbg.__wbg_releaseLock_2d9136d592a32095 = function(arg0) { | ||
getObject(arg0).releaseLock(); | ||
}; | ||
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () { | ||
const ret = module.require; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
imports.wbg.__wbg_resolve_0bf7c44d641804f9 = function(arg0) { | ||
const ret = Promise.resolve(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_wsprotocol_da3c44bfdcf4831d = function(arg0) { | ||
const ret = ws_protocol(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_newwithstrsequence_e105150b01b32f72 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2); | ||
return ret; | ||
imports.wbg.__wbg_respond_88fe7338392675f2 = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).respond(arg1 >>> 0); | ||
}, arguments) }; | ||
imports.wbg.__wbg_new_d550f7a7120dd942 = function() { return handleError(function (arg0, arg1) { | ||
const ret = new WebSocket(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_send_c2b76ede40fcced1 = function() { return handleError(function (arg0, arg1, arg2) { | ||
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2)); | ||
}, arguments) }; | ||
imports.wbg.__wbg_setTimeout_efd7c11531df1743 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_setbinaryType_2befea8ba88b61e2 = function(arg0, arg1) { | ||
arg0.binaryType = __wbindgen_enum_BinaryType[arg1]; | ||
imports.wbg.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
imports.wbg.__wbg_setonmessage_84cd941c1df08da7 = function(arg0, arg1) { | ||
arg0.onmessage = arg1; | ||
imports.wbg.__wbg_setbinaryType_3fa4a9e8d2cc506f = function(arg0, arg1) { | ||
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1]; | ||
}; | ||
imports.wbg.__wbg_setonopen_c0e1464e3ea28727 = function(arg0, arg1) { | ||
arg0.onopen = arg1; | ||
imports.wbg.__wbg_setheaders_9d4b8241e8063a9f = function(arg0, arg1) { | ||
getObject(arg0).headers = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setonclose_9a28780f7d46ed03 = function(arg0, arg1) { | ||
arg0.onclose = arg1; | ||
imports.wbg.__wbg_sethighwatermark_af796d9564f89270 = function(arg0, arg1) { | ||
getObject(arg0).highWaterMark = arg1; | ||
}; | ||
imports.wbg.__wbg_setonerror_e16deca7fd15a59c = function(arg0, arg1) { | ||
arg0.onerror = arg1; | ||
imports.wbg.__wbg_setonclose_f9c609d8c9938fa5 = function(arg0, arg1) { | ||
getObject(arg0).onclose = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_readyState_bc0231e8c43b0907 = function(arg0) { | ||
const ret = arg0.readyState; | ||
return ret; | ||
imports.wbg.__wbg_setonerror_8ae2b387470ec52e = function(arg0, arg1) { | ||
getObject(arg0).onerror = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) { | ||
try { | ||
var state0 = {a: arg0, b: arg1}; | ||
var cb0 = (arg0, arg1) => { | ||
const a = state0.a; | ||
state0.a = 0; | ||
try { | ||
return __wbg_adapter_154(a, state0.b, arg0, arg1); | ||
} finally { | ||
state0.a = a; | ||
} | ||
}; | ||
const ret = new Promise(cb0); | ||
return ret; | ||
} finally { | ||
state0.a = state0.b = 0; | ||
} | ||
imports.wbg.__wbg_setonmessage_5e7ade2af360de9d = function(arg0, arg1) { | ||
getObject(arg0).onmessage = getObject(arg1); | ||
}; | ||
imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
imports.wbg.__wbg_setonopen_54faa9e83483da1d = function(arg0, arg1) { | ||
getObject(arg0).onopen = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) { | ||
const ret = arg0.crypto; | ||
return ret; | ||
imports.wbg.__wbg_setstatus_9b90889d616b0586 = function(arg0, arg1) { | ||
getObject(arg0).status = arg1; | ||
}; | ||
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) { | ||
const ret = arg0.process; | ||
return ret; | ||
imports.wbg.__wbg_setstatustext_414bdc4b61159b75 = function(arg0, arg1, arg2) { | ||
getObject(arg0).statusText = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) { | ||
const ret = arg0.versions; | ||
return ret; | ||
imports.wbg.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() { | ||
const ret = typeof global === 'undefined' ? null : global; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) { | ||
const ret = arg0.node; | ||
return ret; | ||
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() { | ||
const ret = typeof globalThis === 'undefined' ? null : globalThis; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
imports.wbg.__wbg_static_accessor_SELF_1dc398a895c82351 = function() { | ||
const ret = typeof self === 'undefined' ? null : self; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () { | ||
const ret = module.require; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) { | ||
const ret = arg0.msCrypto; | ||
return ret; | ||
imports.wbg.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() { | ||
const ret = typeof window === 'undefined' ? null : window; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
return ret; | ||
imports.wbg.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) { | ||
const ret = arg0[arg1 >>> 0]; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () { | ||
const ret = self.self; | ||
return ret; | ||
imports.wbg.__wbg_tee_15d2d039bef462ae = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).tee(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () { | ||
const ret = window.window; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () { | ||
const ret = global.global; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
const ret = arg0 === undefined; | ||
return ret; | ||
imports.wbg.__wbg_then_0438fad860fe38e1 = function(arg0, arg1) { | ||
const ret = getObject(arg0).then(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
imports.wbg.__wbg_then_0ffafeddf0e182a4 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) { | ||
const ret = arg0.call(arg1); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = arg0.call(arg1, arg2); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_memory = function() { | ||
const ret = wasm.memory; | ||
return ret; | ||
imports.wbg.__wbg_toString_cbcf95f260c441ae = function(arg0) { | ||
const ret = getObject(arg0).toString(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) { | ||
const ret = arg0.buffer; | ||
return ret; | ||
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) { | ||
const ret = getObject(arg0).versions; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); | ||
return ret; | ||
imports.wbg.__wbg_view_a03cbb1d55c73e57 = function(arg0) { | ||
const ret = getObject(arg0).view; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) { | ||
arg0.set(arg1, arg2 >>> 0); | ||
imports.wbg.__wbg_write_0aea81ae26043440 = function(arg0, arg1) { | ||
const ret = getObject(arg0).write(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) { | ||
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) { | ||
arg0.getRandomValues(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) { | ||
arg0.randomFillSync(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbg_now_70af4fe37a792251 = function() { | ||
const ret = Date.now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_throw = function(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { | ||
const ret = debugString(arg1); | ||
imports.wbg.__wbg_wsprotocol_03990c653034cd45 = function(arg0) { | ||
const ret = ws_protocol(); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -1208,123 +1272,93 @@ const len1 = WASM_VECTOR_LEN; | ||
}; | ||
imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) { | ||
const ret = arg0.then(arg1); | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
const ret = false; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) { | ||
const ret = arg0.then(arg1, arg2); | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper294 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_32); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper296 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_35); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) { | ||
const ret = Promise.resolve(arg0); | ||
return ret; | ||
imports.wbg.__wbindgen_closure_wrapper298 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_35); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) { | ||
arg0.enqueue(arg1); | ||
}, arguments) }; | ||
imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) { | ||
const ret = arg0.byobRequest; | ||
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); | ||
imports.wbg.__wbindgen_closure_wrapper3418 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 187, __wbg_adapter_43); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) { | ||
const ret = arg0.view; | ||
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); | ||
imports.wbg.__wbindgen_closure_wrapper911 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 187, __wbg_adapter_40); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) { | ||
const ret = arg0.byteLength; | ||
return ret; | ||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { | ||
const ret = debugString(getObject(arg1)); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) { | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) { | ||
const ret = arg0.buffer; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) { | ||
const ret = arg0.byteOffset; | ||
imports.wbg.__wbindgen_is_falsy = function(arg0) { | ||
const ret = !getObject(arg0); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_read_08d62388e7870059 = function(arg0) { | ||
const ret = arg0.read(); | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_getdone_38a59a1c17131633 = function(arg0) { | ||
const ret = arg0.done; | ||
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; | ||
}; | ||
imports.wbg.__wbg_getvalue_674bb48c8380247b = function(arg0) { | ||
const ret = arg0.value; | ||
imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_tee_fb73f070220f1a8c = function() { return handleError(function (arg0) { | ||
const ret = arg0.tee(); | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_getReader_7a604d2d7b2f6e3e = function() { return handleError(function (arg0) { | ||
const ret = arg0.getReader(); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_setTimeout_2cb6c793c4aa44f8 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = arg0.setTimeout(arg1, arg2); | ||
return ret; | ||
}, arguments) }; | ||
imports.wbg.__wbg_performance_ffc4e815dfb3449f = function(arg0) { | ||
const ret = arg0.performance; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_now_8799be02ba81a22e = function(arg0) { | ||
const ret = arg0.now(); | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) { | ||
arg0.respond(arg1 >>> 0); | ||
}, arguments) }; | ||
imports.wbg.__wbg_releaseLock_32c310d7be334e1c = function(arg0) { | ||
arg0.releaseLock(); | ||
imports.wbg.__wbindgen_memory = function() { | ||
const ret = wasm.memory; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_close_9e3b743c528a8d31 = function() { return handleError(function (arg0) { | ||
arg0.close(); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_closure_wrapper251 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_34); | ||
return ret; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper253 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_37); | ||
return ret; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper255 = function(arg0, arg1, arg2) { | ||
const ret = makeClosure(arg0, arg1, 6, __wbg_adapter_37); | ||
return ret; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper841 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 187, __wbg_adapter_42); | ||
return ret; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper3352 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 187, __wbg_adapter_45); | ||
return ret; | ||
imports.wbg.__wbindgen_throw = function(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbindgen_init_externref_table = function() { | ||
const table = wasm.__wbindgen_export_2; | ||
const offset = table.grow(4); | ||
table.set(0, undefined); | ||
table.set(offset + 0, undefined); | ||
table.set(offset + 1, null); | ||
table.set(offset + 2, true); | ||
table.set(offset + 3, false); | ||
; | ||
}; | ||
@@ -1345,3 +1379,3 @@ return imports; | ||
wasm.__wbindgen_start(); | ||
return wasm; | ||
@@ -1404,2 +1438,2 @@ } | ||
export default __wbg_init; | ||
export const info = { version: "2.1.15-2", minimal: 1===1, release: 1===1, commit: "7362d512b9f0580765bdb7d0d875e69f243a5915" }; | ||
export const info = { version: "2.1.16-1", minimal: 1===1, release: 1===1, commit: "5a7917f292166987a8f745f73dc53c219386ed0d" }; |
{ | ||
"name": "@mercuryworkshop/epoxy-tls", | ||
"version": "2.1.15-2", | ||
"version": "2.1.16-1", | ||
"description": "A wasm library for using raw encrypted tls/ssl/tcp/udp/https/websocket streams on the browser", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5004854
-0.3%16505
-0.64%