diff --git a/index.html b/index.html index ef55fe0..dbf22f3 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - -. + +. . @@ -42,4 +42,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/libconfig-validator-6f063f4777bdec4a_bg.wasm b/libconfig-validator-6f063f4777bdec4a_bg.wasm deleted file mode 100644 index dc8f5af..0000000 Binary files a/libconfig-validator-6f063f4777bdec4a_bg.wasm and /dev/null differ diff --git a/libconfig-validator-6f063f4777bdec4a.js b/libconfig-validator-9cc39296222496a8.js similarity index 92% rename from libconfig-validator-6f063f4777bdec4a.js rename to libconfig-validator-9cc39296222496a8.js index 82f0b19..cea7e07 100644 --- a/libconfig-validator-6f063f4777bdec4a.js +++ b/libconfig-validator-9cc39296222496a8.js @@ -183,6 +183,43 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') wasm.__wbindgen_export_2.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_2.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; +} + +let stack_pointer = 128; + +function addBorrowedObject(obj) { + if (stack_pointer == 1) throw new Error('out of js stack'); + heap[--stack_pointer] = obj; + return stack_pointer; +} +function __wbg_adapter_16(arg0, arg1, arg2) { + try { + wasm._dyn_core__ops__function__Fn___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h99628a6bf2f336a2(arg0, arg1, addBorrowedObject(arg2)); + } finally { + heap[stack_pointer++] = undefined; + } +} + function makeMutClosure(arg0, arg1, dtor, f) { const state = { a: arg0, b: arg1, cnt: 1, dtor }; const real = (...args) => { @@ -207,22 +244,6 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } - -let stack_pointer = 128; - -function addBorrowedObject(obj) { - if (stack_pointer == 1) throw new Error('out of js stack'); - heap[--stack_pointer] = obj; - return stack_pointer; -} -function __wbg_adapter_16(arg0, arg1, arg2) { - try { - wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h590834a3b079351a(arg0, arg1, addBorrowedObject(arg2)); - } finally { - heap[stack_pointer++] = undefined; - } -} - function __wbg_adapter_19(arg0, arg1, arg2) { wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2cb17cb1b55dc7c4(arg0, arg1, addHeapObject(arg2)); } @@ -296,14 +317,14 @@ function __wbg_get_imports() { imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; imports.wbg.__wbindgen_is_undefined = function(arg0) { const ret = getObject(arg0) === undefined; return ret; }; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); + }; imports.wbg.__wbg_mark_6045ef1772587264 = function() { return handleError(function (arg0, arg1, arg2) { getObject(arg0).mark(getStringFromWasm0(arg1, arg2)); }, arguments) }; @@ -324,30 +345,30 @@ function __wbg_get_imports() { const ret = getObject(arg0); return addHeapObject(ret); }; - imports.wbg.__wbg_subtreeid_e348577f7ef777e3 = function(arg0, arg1) { + imports.wbg.__wbg_setlistenerid_f2e783343fa0cec1 = function(arg0, arg1) { + getObject(arg0).__yew_listener_id = arg1 >>> 0; + }; + imports.wbg.__wbg_listenerid_6dcf1c62b7b7de58 = function(arg0, arg1) { + const ret = getObject(arg1).__yew_listener_id; + getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; + getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); + }; + imports.wbg.__wbg_subtreeid_e80a1798fee782f9 = function(arg0, arg1) { const ret = getObject(arg1).__yew_subtree_id; getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; - imports.wbg.__wbg_setsubtreeid_d32e6327eef1f7fc = function(arg0, arg1) { + imports.wbg.__wbg_setsubtreeid_e1fab6b578c800cf = function(arg0, arg1) { getObject(arg0).__yew_subtree_id = arg1 >>> 0; }; - imports.wbg.__wbg_cachekey_b61393159c57fd7b = function(arg0, arg1) { + imports.wbg.__wbg_cachekey_b81c1aacc6a0645c = function(arg0, arg1) { const ret = getObject(arg1).__yew_subtree_cache_key; getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; - imports.wbg.__wbg_setcachekey_80183b7cfc421143 = function(arg0, arg1) { + imports.wbg.__wbg_setcachekey_75bcd45312087529 = function(arg0, arg1) { getObject(arg0).__yew_subtree_cache_key = arg1 >>> 0; }; - imports.wbg.__wbg_setlistenerid_3183aae8fa5840fb = function(arg0, arg1) { - getObject(arg0).__yew_listener_id = arg1 >>> 0; - }; - imports.wbg.__wbg_listenerid_12315eee21527820 = function(arg0, arg1) { - const ret = getObject(arg1).__yew_listener_id; - getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret; - getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); - }; imports.wbg.__wbindgen_cb_drop = function(arg0) { const obj = takeObject(arg0).original; if (obj.cnt-- == 1) { @@ -379,7 +400,7 @@ function __wbg_get_imports() { wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); } }; - imports.wbg.__wbg_error_71d6845bf00a930f = function(arg0, arg1) { + imports.wbg.__wbg_error_a526fb08a0205972 = function(arg0, arg1) { var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice(); wasm.__wbindgen_free(arg0, arg1 * 4, 4); console.error(...v0); @@ -441,58 +462,15 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_children_8904f20261f6442c = function(arg0) { - const ret = getObject(arg0).children; - return addHeapObject(ret); - }; imports.wbg.__wbg_removeAttribute_1b10a06ae98ebbd1 = function() { return handleError(function (arg0, arg1, arg2) { getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); }, arguments) }; imports.wbg.__wbg_setAttribute_3c9f6c303b696daa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_value_d7f5bfbd9302c14b = function(arg0, arg1) { - const ret = getObject(arg1).value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; - imports.wbg.__wbg_setvalue_090972231f0a4f6f = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; imports.wbg.__wbg_addEventListener_4283b15b4f039eb5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); }, arguments) }; - imports.wbg.__wbg_checked_749a34774f2df2e3 = function(arg0) { - const ret = getObject(arg0).checked; - return ret; - }; - imports.wbg.__wbg_setchecked_931ff2ed2cd3ebfd = function(arg0, arg1) { - getObject(arg0).checked = arg1 !== 0; - }; - imports.wbg.__wbg_value_47fe6384562f52ab = function(arg0, arg1) { - const ret = getObject(arg1).value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; - imports.wbg.__wbg_setvalue_78cb4f1fef58ae98 = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { - console.debug(getObject(arg0)); - }; - imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { - console.error(getObject(arg0)); - }; - imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { - console.info(getObject(arg0)); - }; - imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { - console.warn(getObject(arg0)); - }; imports.wbg.__wbg_target_2fc177e386c8b7b0 = function(arg0) { const ret = getObject(arg0).target; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -512,6 +490,28 @@ function __wbg_get_imports() { imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { getObject(arg0).preventDefault(); }; + imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { + console.debug(getObject(arg0)); + }; + imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { + console.error(getObject(arg0)); + }; + imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { + console.info(getObject(arg0)); + }; + imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { + console.warn(getObject(arg0)); + }; + imports.wbg.__wbg_value_d7f5bfbd9302c14b = function(arg0, arg1) { + const ret = getObject(arg1).value; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_setvalue_090972231f0a4f6f = function(arg0, arg1, arg2) { + getObject(arg0).value = getStringFromWasm0(arg1, arg2); + }; imports.wbg.__wbg_parentNode_6be3abff20e1a5fb = function(arg0) { const ret = getObject(arg0).parentNode; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -520,6 +520,10 @@ function __wbg_get_imports() { const ret = getObject(arg0).parentElement; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; + imports.wbg.__wbg_childNodes_118168e8b23bcb9b = function(arg0) { + const ret = getObject(arg0).childNodes; + return addHeapObject(ret); + }; imports.wbg.__wbg_lastChild_83efe6d5da370e1f = function(arg0) { const ret = getObject(arg0).lastChild; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -538,8 +542,8 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_appendChild_580ccb11a660db68 = function() { return handleError(function (arg0, arg1) { - const ret = getObject(arg0).appendChild(getObject(arg1)); + imports.wbg.__wbg_cloneNode_e19c313ea20d5d1d = function() { return handleError(function (arg0) { + const ret = getObject(arg0).cloneNode(); return addHeapObject(ret); }, arguments) }; imports.wbg.__wbg_insertBefore_d2a001abf538c1f8 = function() { return handleError(function (arg0, arg1, arg2) { @@ -564,6 +568,23 @@ function __wbg_get_imports() { const ret = getObject(arg0).host; return addHeapObject(ret); }; + imports.wbg.__wbg_checked_749a34774f2df2e3 = function(arg0) { + const ret = getObject(arg0).checked; + return ret; + }; + imports.wbg.__wbg_setchecked_931ff2ed2cd3ebfd = function(arg0, arg1) { + getObject(arg0).checked = arg1 !== 0; + }; + imports.wbg.__wbg_value_47fe6384562f52ab = function(arg0, arg1) { + const ret = getObject(arg1).value; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_setvalue_78cb4f1fef58ae98 = function(arg0, arg1, arg2) { + getObject(arg0).value = getStringFromWasm0(arg1, arg2); + }; imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return addHeapObject(ret); @@ -642,12 +663,12 @@ function __wbg_get_imports() { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; - imports.wbg.__wbindgen_closure_wrapper1232 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_16); + imports.wbg.__wbindgen_closure_wrapper1039 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 374, __wbg_adapter_16); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1340 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 533, __wbg_adapter_19); + imports.wbg.__wbindgen_closure_wrapper1089 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 394, __wbg_adapter_19); return addHeapObject(ret); }; @@ -689,7 +710,7 @@ async function __wbg_init(input) { if (wasm !== undefined) return wasm; if (typeof input === 'undefined') { - input = new URL('libconfig-validator-6f063f4777bdec4a_bg.wasm', import.meta.url); + input = new URL('libconfig-validator-9cc39296222496a8_bg.wasm', import.meta.url); } const imports = __wbg_get_imports(); diff --git a/libconfig-validator-9cc39296222496a8_bg.wasm b/libconfig-validator-9cc39296222496a8_bg.wasm new file mode 100644 index 0000000..ce3f9f2 Binary files /dev/null and b/libconfig-validator-9cc39296222496a8_bg.wasm differ