var a=Object.defineProperty;var h=(s,e,t)=>e in s?a(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{t as l}from"./createLucideIcon-w-Qo9n0R.js";import{t as u}from"./Deferred-D2igisxY.js";import{t as c}from"./uuid-ImXS-885.js";var n=l("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const q={create(){return c()}};var p=class{constructor(s,e,t={}){i(this,"requests",new Map);this.operation=s,this.makeRequest=e,this.opts=t}async request(s){if(this.opts.resolveExistingRequests){let r=this.opts.resolveExistingRequests();for(let o of this.requests.values())o.resolve(r);this.requests.clear()}let e=q.create(),t=new u;return this.requests.set(e,t),await this.makeRequest(e,s).catch(r=>{t.reject(r),this.requests.delete(e)}),t.promise}resolve(s,e){let t=this.requests.get(s);t!==void 0&&(t.resolve(e),this.requests.delete(s))}reject(s,e){let t=this.requests.get(s);t!==void 0&&(t.reject(e),this.requests.delete(s))}};export{n,p as t};
