function t(t,o){const c=function(t){const o=t.length;let c="",e=0;for(;e<o;){const l=t.charAt(e),s=e<o-1?t.charAt(e+1):null;"\\"===l&&r.includes(s)?(c+=`${l}${s}`,e++):n.includes(l)?c+=`\\${l}`:c+="*"===l?".*":"?"===l?".":l,e++}return new RegExp(`^${c}$`)}(t);return null!=o.match(c)}const r="?*[]",n="^$.+=!:|\\/(){},";class o{constructor(){this.abortCtrl=null}abort(){this.abortCtrl?.abort()}run(t){return this.abort(),this.abortCtrl=new AbortController,new Promise(((r,n)=>{t(this.abortCtrl.signal).then(r).catch((t=>{t instanceof DOMException&&"AbortError"===t.name||n(t)}))}))}}export{o as Abortable,t as matchKvPattern};
//# sourceMappingURL=kv-utils.js.map
