You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
2.9 MiB

3 years ago
var nj=Object.create;var oA=Object.defineProperty;var ij=Object.getOwnPropertyDescriptor;var Bj=Object.getOwnPropertyNames;var sj=Object.getPrototypeOf,lj=Object.prototype.hasOwnProperty;var TA=A=>oA(A,"__esModule",{value:!0});var GA=(A,j)=>()=>(j||A((j={exports:{}}).exports,j),j.exports),NA=(A,j)=>{TA(A);for(var $ in j)oA(A,$,{get:j[$],enumerable:!0})},cj=(A,j,$)=>{if(j&&typeof j=="object"||typeof j=="function")for(let h of Bj(j))!lj.call(A,h)&&h!=="default"&&oA(A,h,{get:()=>j[h],enumerable:!($=ij(j,h))||$.enumerable});return A},QA=A=>cj(TA(oA(A!=null?nj(sj(A)):{},"default",A&&A.__esModule&&"default"in A?{get:()=>A.default,enumerable:!0}:{value:A,enumerable:!0})),A);var HA=GA((Tj,nA)=>{(function(){var A={};function j(){}function $(e){return e}function h(e){return!!e}function r(e){return!e}var o,B=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||this;B!=null&&(o=B.async),A.noConflict=function(){return B.async=o,A};function E(e){return function(){if(e===null)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}function g(e){return function(){e!==null&&(e.apply(this,arguments),e=null)}}var _=Object.prototype.toString,D=Array.isArray||function(e){return _.call(e)==="[object Array]"},N=function(e){var t=typeof e;return t==="function"||t==="object"&&!!e};function X(e){return D(e)||typeof e.length=="number"&&e.length>=0&&e.length%1==0}function y(e,t){for(var a=-1,n=e.length;++a<n;)t(e[a],a,e)}function M(e,t){for(var a=-1,n=e.length,i=Array(n);++a<n;)i[a]=t(e[a],a,e);return i}function Z(e){return M(Array(e),function(t,a){return a})}function ej(e,t,a){return y(e,function(n,i,s){a=t(a,n,i,s)}),a}function tj(e,t){y(uA(e),function(a){t(e[a],a)})}function PA(e,t){for(var a=0;a<e.length;a++)if(e[a]===t)return a;return-1}var uA=Object.keys||function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(a);return t};function kA(e){var t=-1,a,n;return X(e)?(a=e.length,function(){return t++,t<a?t:null}):(n=uA(e),a=n.length,function(){return t++,t<a?n[t]:null})}function Q(e,t){return t=t==null?e.length-1:+t,function(){for(var a=Math.max(arguments.length-t,0),n=Array(a),i=0;i<a;i++)n[i]=arguments[i+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n)}}}function pA(e){return function(t,a,n){return e(t,n)}}var qA=typeof setImmediate=="function"&&setImmediate,xA=qA?function(e){qA(e)}:function(e){setTimeout(e,0)};typeof process=="object"&&typeof process.nextTick=="function"?A.nextTick=process.nextTick:A.nextTick=xA,A.setImmediate=qA?xA:A.nextTick,A.forEach=A.each=function(e,t,a){return A.eachOf(e,pA(t),a)},A.forEachSeries=A.eachSeries=function(e,t,a){return A.eachOfSeries(e,pA(t),a)},A.forEachLimit=A.eachLimit=function(e,t,a,n){return AA(t)(e,pA(a),n)},A.forEachOf=A.eachOf=function(e,t,a){a=g(a||j),e=e||[];for(var n=kA(e),i,s=0;(i=n())!=null;)s+=1,t(e[i],i,E(l));s===0&&a(null);function l(c){s--,c?a(c):i===null&&s<=0&&a(null)}},A.forEachOfSeries=A.eachOfSeries=function(e,t,a){a=g(a||j),e=e||[];var n=kA(e),i=n();function s(){var l=!0;if(i===null)return a(null);t(e[i],i,E(function(c){if(c)a(c);else{if(i=n(),i===null)return a(null);l?A.setImmediate(s):s()}})),l=!1}s()},A.forEachOfLimit=A.eachOfLimit=function(e,t,a,n){AA(t)(e,a,n)};function AA(e){return function(t,a,n){n=g(n||j),t=t||[];var i=kA(t);if(e<=0)return n(null);var s=!1,l=0,c=!1;(function p(){if(s&&l<=0)return n(null);for(;l<e&&!c;){var q=i();if(q===null){s=!0,l<=0&&n(null);return}l+=1,a(t[q],q,E(function(f){l-=1,f?(n(f),c=!0):p()}))}})()}}function jA(e){return function(t,a,n){return e(A.eachOf,t,a,n)}}function dA(e){return function(t,a,n,i){return e(AA(a),t,n,i)}}function rA(e){return function(t,a,n){return e(A.eachOfSeries,t,a,n)}}function hA(e,t,a,n){n=g(n||j),t=t||[];var i=X(t)?[]:{};e(t,function(s,l,c){a(s,function(p,q){i[l]=q,c(p)})},function(s){n(s,i)})}A.map=jA(hA),A.mapSeries=rA(hA),A.mapLimit=dA(hA),A.inject=A.foldl=A.reduce=function(e,t,a,n){A.eachOfSeries(e,function(i,s,l){a(t,i,function(c,p){t=p,l(c)})},function(i){n(i,t)})},A.foldr=A.reduceRight=function(e,t,a,n
${A.stack}`:h}function Ij(A,j,$,h){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;try{return h(r.a,r.b,...B)}finally{--r.cnt==0&&(d.__wbindgen_export_2.get(r.dtor)(r.a,r.b),r.a=0)}};return o.original=r,o}function vj(A,j,$){let h=P($,d.__wbindgen_malloc,d.__wbindgen_realloc),r=w;d._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h927f6478d88dcd5c(A,j,h,r)}function WA(A,j,$,h){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;let E=r.a;r.a=0;try{return h(E,r.b,...B)}finally{--r.cnt==0?d.__wbindgen_export_2.get(r.dtor)(E,r.b):r.a=E}};return o.original=r,o}function wj(A,j,$,h,r){let o=P(h,d.__wbindgen_malloc,d.__wbindgen_realloc),B=w,E=P(r,d.__wbindgen_malloc,d.__wbindgen_realloc),g=w;d._dyn_core__ops__function__FnMut__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h69a75fd0d8dcc6d3(A,j,U($)?0:k($),o,B,E,g)}function _j(A,j,$){d._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7c3321bf6780a26(A,j,k($))}function ZA(A){let j=d.onload(k(A));return v(j)}function Dj(A){let j=d.settings(k(A));return v(j)}function L(A,j){try{return A.apply(this,j)}catch($){d.__wbindgen_exn_store(k($))}}function Pj(A,j,$,h){d.wasm_bindgen__convert__closures__invoke2_mut__hec91c3f17a5bbfea(A,j,k($),k(h))}function xj(A,j,$){d.wasm_bindgen__convert__closures__invoke1__h181f783e5529fa34(A,j,k($))}var z=class{static __wrap(j){let $=Object.create(z.prototype);return $.ptr=j,$}__destroy_into_raw(){let j=this.ptr;return this.ptr=0,j}free(){let j=this.__destroy_into_raw();d.__wbg_archivecommand_free(j)}get id(){let j=d.archivecommand_id(this.ptr);return v(j)}set id(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.archivecommand_set_id(this.ptr,$,h)}get name(){let j=d.archivecommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.archivecommand_set_name(this.ptr,$,h)}callback(){let j=d.archivecommand_callback(this.ptr);return v(j)}},W=class{static __wrap(j){let $=Object.create(W.prototype);return $.ptr=j,$}__destroy_into_raw(){let j=this.ptr;return this.ptr=0,j}free(){let j=this.__destroy_into_raw();d.__wbg_extractcommand_free(j)}get id(){let j=d.extractcommand_id(this.ptr);return v(j)}set id(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.extractcommand_set_id(this.ptr,$,h)}get name(){let j=d.extractcommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.extractcommand_set_name(this.ptr,$,h)}callback(){let j=d.extractcommand_callback(this.ptr);return v(j)}};async function Oj(A,j){if(typeof Response=="function"&&A instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(A,j)}catch(h){if(A.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",h);else throw h}let $=await A.arrayBuffer();return await WebAssembly.instantiate($,j)}else{let $=await WebAssembly.instantiate(A,j);return $ instanceof WebAssembly.Instance?{instance:$,module:A}:$}}async function Aj(A){typeof A=="undefined"&&(A=new URL("obsidian_rust_plugin_bg.wasm",yj.url));let j={};j.wbg={},j.wbg.__wbindgen_object_drop_ref=function(r){v(r)},j.wbg.__wbg_setPlaceholder_0d4c6931970d6b8c=function(r,o,B){let E=u(r).setPlaceholder(m(o,B));return k(E)},j.wbg.__wbg_setValue_3035c93aaf89ec27=function(r,o,B){let E=u(r).setValue(m(o,B));return k(E)},j.wbg.__wbg_onChange_57f355586266016e=function(r,o){let B=u(r).onChange(v(o));return k(B)},j.wbg.__wbindgen_string_get=function(r,o){let B=u(o),E=typeof B=="string"?B:void 0;var g=U(E)?0:P(E,d.__wbindgen_malloc,d.__wbindgen_realloc),_=w;O()[r/4+1]=_,O()[r/4+0]=g},j.wbg.__wbg_loadData_216184d2c1296582=function(r){let o=u(r).loadData();return k(o)},j.wbg.__wbindgen_json_serialize=function(r,o){let B=u(o),E=JSON.stringify(B===void 0?null:B),g=
/*!
* async
* https://github.com/caolan/async
*
* Copyright 2010-2014 Caolan McMahon
* Released under the MIT license
*/