import{ObservableMap as e}from"./ObservableMap.js";import{map as r}from"./iterable.js";export class CaseInsensitiveObservableMap extends e{_originalKeys=new Map;delete(e){return this._originalKeys.delete(e),super.delete(e?.toLocaleLowerCase())}get(e){return super.get(e?.toLocaleLowerCase())}set(e,r){return this._originalKeys.set(e?.toLocaleLowerCase(),e),super.set(e?.toLocaleLowerCase(),r)}has(e){return super.has(e?.toLocaleLowerCase())}*keys(){for(const e of super.keys())yield this._originalKeys.get(e)}entries(){return r(super.entries(),(([e,r])=>[this._originalKeys.get(e),r]))}[Symbol.iterator](){return this.entries()}}