varse=Object.defineProperty;varRe=Object.getOwnPropertyDescriptor;varIe=Object.getOwnPropertyNames;varAe=Object.prototype.hasOwnProperty;varFe=(a,r)=>{for(vareinr)se(a,e,{get:r[e],enumerable:!0})},Ve=(a,r,e,t)=>{if(r&&typeofr=="object"||typeofr=="function")for(letoofIe(r))!Ae.call(a,o)&&o!==e&&se(a,o,{get:()=>r[o],enumerable:!(t=Re(r,o))||t.enumerable});returna};varDe=a=>Ve(se({},"__esModule",{value:!0}),a);varKe={};Fe(Ke,{default:()=>ne,leafName:()=>b,splitName:()=>ae});module.exports=De(Ke);varC=require("obsidian");varE=typeofqueueMicrotask=="function"?queueMicrotask:(a=>r=>a.then(r))(Promise.resolve());functionce(a){returna&&typeofa=="object"?JSON.parse(JSON.stringify(a)):a}functionM(a,r,e){lett=a.classList.contains(r);returne=e!=null?e:!t,e!==t&&(e?a.classList.add(r):a.classList.remove(r)),e}varf;(a=>Object.assign(a,require("obsidian")))(f||(f={}));varle="use.me",pe="use.factory",O,j,de=function(){returnObject.defineProperties(a(),{this:{get(){if(O)returnO;thrownewTypeError("No current context")}},me:{value:le},factory:{value:pe}});functiona(o){leti=newMap;i.prev=o;letn=Object.assign(o?c=>{letl=i.get(c);if(!l){for(lety=i.prev;y;y=y.prev)if(l=y.get(c)){l=Object.assign(Object.assign({},l),{s:l.s||1});break}l=l||{s:2,v:e},i.set(c,l)}letu,h,m;for(;;)switch(l.s){case0:returnO===n&&j&&j.push(c),l.v;case1:if(u=l.d,!u||s(()=>u.k.every(y=>n(y)===u.c(y)))){l.s=0;break}l.v=u.f;case2:l.s=4;try{r(i,c,0,s(h=l.v,c,m=[])),m.length&&(l.d={c:n,f:h,k:m});break}catch(y){l.s=3,l.v=y,l.d=null}case3:throwl.v;case4:thrownewError(`Factory ${String(l.v)} didn't resolve ${String(c)}`)}}:c=>de.this(c),{def(c,l){returnr(i,c,2,l),n},set(c,l){returnr(i,c,1,l),n},fork(c){letl=a(i);returnc!=null?l(c):l}});returno?n.use=n:n;functions(c,l,u){leth=O,m=j;try{returnO=n,j=u,c(l)}finally{O=h,j=m}}}functionr(o,i,n,s){if(o.has(i)){letc=o.get(i);if(!c.s)thrownewError(`Already read: ${String(i)}`);c.s=n,c.v=s,c.d=null}elseo.set(i,{s:n,v:s})}functione(o){if(typeofo[le]=="function")returno[le](o);if(t(o))returntypeofo.prototype[pe]=="function"?o.prototype[pe]():newo;thrownewReferenceError(`No config for ${String(o)}`)}functiont(o){returntypeofo=="function"&&o.prototype!==void0&&(Object.getPrototypeOf(o.prototype)!==Object.prototype||Object.getOwnPropertyNames(o.prototype).length>1||o.toString().startsWith("class"))}}();varNe,V=(a=>(a.service=function(r){returna(G).addChild(r),a.this},a.plugin=function(r){if(!F)Ne=r.app,F=a.fork(),F.set(f.Plugin,r),F.set(r.constructor,r),r.addChild(F.use(G));elseif(r!==F.use(f.Plugin))thrownewTypeError("use.plugin() called on multiple plugins");returnF},a.def(f.Plugin,()=>{thrownewError("Plugin not created yet")}),a.def(f.App,()=>a(f.Plugin).app),a))(de),F;vark=classextendsf.Component{constructor(){super(...arguments);this.use=V.service(this)}},G=classextendsf.Component{constructor(){super(...arguments);this.children=newSet([this])}onload(){this.loaded=!0}onunload(){this.loaded=!1,this.children.clear()}addChild(e){returnthis.children.has(e)||(this.children.add(e),this.loaded?E(()=>super.addChild(e)):super.addChild(e)),e}};functionQ(a,r){E(()=>a.removeChild(r))}functionye(a,r){lete=newf.Component;e.onload=()=>{Q(a,e),a=null,r()},a.addChild(e)}functiond(a,r){lete=Object.keys(r).map(t=>Oe(a,t,r[t]));returne.length===1?e[0]:function(){e.forEach(t=>t())}}functionOe(a,r,e){lett=a[r],o=a.hasOwnProperty(r),i=e(t);returnt&&Object.setPrototypeOf(i,t),Object.setPrototypeOf(n,i),a[r]=n,s;functionn(...c){returni===t&&a[r]===n&&s(),i.apply(this,c)}functions(){a[r]===n&&(o?a[r]=t:deletea[r]),i!==t&&(i=t,Object.setPrototypeOf(n,t||Function))}}functionX(a,r,e){returnt[a]=a,t;functiont(...o){return(r[a]===a?r:e).apply(this,o)}}function_(a){letr=app.workspace;switch(a==null?void0:a.getRoot()){caser.rootSplit:caser.floatingSplit:caser.leftSplit:caser.rightSplit:return!0;default:return!1}}functionD(a,r){if(!a)return!1;if(typeofa=="function"&&(r=a,a=app.workspace),r(a))return!0;if(ainstanceoff.Workspace)returnD(a.rootSplit,r)||D(a.float