//!src/shared/dedupe-by-key.tsfunctionindexFirstByKey(e,t){const n=/* @__PURE__ */newMap;for(const r of e){const e=t(r);if(!n.has(e))n.set(e,r)}return n}functiondedupeByKey(e,t){return[...indexFirstByKey(e,t).values()]}export{indexFirstByKey as n,dedupeByKey as t};