varnj=Object.create;varoA=Object.defineProperty;varij=Object.getOwnPropertyDescriptor;varBj=Object.getOwnPropertyNames;varlj=Object.getPrototypeOf,sj=Object.prototype.hasOwnProperty;varNA=A=>oA(A,"__esModule",{value:!0});varGA=(A,j)=>()=>(j||A((j={exports:{}}).exports,j),j.exports),TA=(A,j)=>{NA(A);for(var$inj)oA(A,$,{get:j[$],enumerable:!0})},cj=(A,j,$)=>{if(j&&typeofj=="object"||typeofj=="function")for(letgofBj(j))!sj.call(A,g)&&g!=="default"&&oA(A,g,{get:()=>j[g],enumerable:!($=ij(j,g))||$.enumerable});returnA},QA=A=>cj(NA(oA(A!=null?nj(lj(A)):{},"default",A&&A.__esModule&&"default"inA?{get:()=>A.default,enumerable:!0}:{value:A,enumerable:!0})),A);varSA=GA((Nj,nA)=>{(function(){varA={};functionj(){}function$(e){returne}functiong(e){return!!e}functionr(e){return!e}varo,B=typeofself=="object"&&self.self===self&&self||typeofglobal=="object"&&global.global===global&&global||this;B!=null&&(o=B.async),A.noConflict=function(){returnB.async=o,A};functionE(e){returnfunction(){if(e===null)thrownewError("Callback was already called.");e.apply(this,arguments),e=null}}functionh(e){returnfunction(){e!==null&&(e.apply(this,arguments),e=null)}}var_=Object.prototype.toString,D=Array.isArray||function(e){return_.call(e)==="[object Array]"},T=function(e){vart=typeofe;returnt==="function"||t==="object"&&!!e};functionX(e){returnD(e)||typeofe.length=="number"&&e.length>=0&&e.length%1==0}functiony(e,t){for(vara=-1,n=e.length;++a<n;)t(e[a],a,e)}functionM(e,t){for(vara=-1,n=e.length,i=Array(n);++a<n;)i[a]=t(e[a],a,e);returni}functionZ(e){returnM(Array(e),function(t,a){returna})}functionej(e,t,a){returny(e,function(n,i,l){a=t(a,n,i,l)}),a}functiontj(e,t){y(uA(e),function(a){t(e[a],a)})}functionPA(e,t){for(vara=0;a<e.length;a++)if(e[a]===t)returna;return-1}varuA=Object.keys||function(e){vart=[];for(varaine)e.hasOwnProperty(a)&&t.push(a);returnt};functionkA(e){vart=-1,a,n;returnX(e)?(a=e.length,function(){returnt++,t<a?t:null}):(n=uA(e),a=n.length,function(){returnt++,t<a?n[t]:null})}functionQ(e,t){returnt=t==null?e.length-1:+t,function(){for(vara=Math.max(arguments.length-t,0),n=Array(a),i=0;i<a;i++)n[i]=arguments[i+t];switch(t){case0:returne.call(this,n);case1:returne.call(this,arguments[0],n)}}}functionpA(e){returnfunction(t,a,n){returne(t,n)}}varqA=typeofsetImmediate=="function"&&setImmediate,xA=qA?function(e){qA(e)}:function(e){setTimeout(e,0)};typeofprocess=="object"&&typeofprocess.nextTick=="function"?A.nextTick=process.nextTick:A.nextTick=xA,A.setImmediate=qA?xA:A.nextTick,A.forEach=A.each=function(e,t,a){returnA.eachOf(e,pA(t),a)},A.forEachSeries=A.eachSeries=function(e,t,a){returnA.eachOfSeries(e,pA(t),a)},A.forEachLimit=A.eachLimit=function(e,t,a,n){returnAA(t)(e,pA(a),n)},A.forEachOf=A.eachOf=function(e,t,a){a=h(a||j),e=e||[];for(varn=kA(e),i,l=0;(i=n())!=null;)l+=1,t(e[i],i,E(s));l===0&&a(null);functions(c){l--,c?a(c):i===null&&l<=0&&a(null)}},A.forEachOfSeries=A.eachOfSeries=function(e,t,a){a=h(a||j),e=e||[];varn=kA(e),i=n();functionl(){vars=!0;if(i===null)returna(null);t(e[i],i,E(function(c){if(c)a(c);else{if(i=n(),i===null)returna(null);s?A.setImmediate(l):l()}})),s=!1}l()},A.forEachOfLimit=A.eachOfLimit=function(e,t,a,n){AA(t)(e,a,n)};functionAA(e){returnfunction(t,a,n){n=h(n||j),t=t||[];vari=kA(t);if(e<=0)returnn(null);varl=!1,s=0,c=!1;(functionp(){if(l&&s<=0)returnn(null);for(;s<e&&!c;){varq=i();if(q===null){l=!0,s<=0&&n(null);return}s+=1,a(t[q],q,E(function(f){s-=1,f?(n(f),c=!0):p()}))}})()}}functionjA(e){returnfunction(t,a,n){returne(A.eachOf,t,a,n)}}functiondA(e){returnfunction(t,a,n,i){returne(AA(a),t,n,i)}}functionrA(e){returnfunction(t,a,n){returne(A.eachOfSeries,t,a,n)}}functiongA(e,t,a,n){n=h(n||j),t=t||[];vari=X(t)?[]:{};e(t,function(l,s,c){a(l,function(p,q){i[s]=q,c(p)})},function(l){n(l,i)})}A.map=jA(gA),A.mapSeries=rA(gA),A.mapLimit=dA(gA),A.inject=A.foldl=A.reduce=function(e,t,a,n){A.eachOfSeries(e,function(i,l,s){a(t,i,function(c,p){t=p,s(c)})},function(i){n(i,t)})},A.foldr=A.reduceRight=function(e,t,a,n
${A.stack}`:g}function Ij(A,j,$,g){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;try{return g(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 g=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,g,r)}function WA(A,j,$,g){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;let E=r.a;r.a=0;try{return g(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,$,g,r){let o=P(g,d.__wbindgen_malloc,d.__wbindgen_realloc),B=w,E=P(r,d.__wbindgen_malloc,d.__wbindgen_realloc),h=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,h)}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,$,g){d.wasm_bindgen__convert__closures__invoke2_mut__hec91c3f17a5bbfea(A,j,k($),k(g))}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),g=w;d.archivecommand_set_id(this.ptr,$,g)}get name(){let j=d.archivecommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),g=w;d.archivecommand_set_name(this.ptr,$,g)}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),g=w;d.extractcommand_set_id(this.ptr,$,g)}get name(){let j=d.extractcommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),g=w;d.extractcommand_set_name(this.ptr,$,g)}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(g){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",g);else throw g}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 h=U(E)?0:P(E,d.__wbindgen_malloc,d.__wbindgen_realloc),_=w;O()[r/4+1]=_,O()[r/4+0]=h},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),h=