{"version":3,"file":"records.mjs","sources":["../../../../../src/libs/records/records.ts"],"sourcesContent":["export namespace Records {\n\n  export function resolveOrThrow<K extends PropertyKey, T>(record: Record<K, T>, key: K) {\n    const value = record[key]\n\n    if (value != null)\n      return value\n\n    throw new Error(`Could not resolve ${String(key)}`)\n  }\n\n}"],"names":[],"mappings":"AAAM,IAAW;AAAjB,CAAA,UAAiB,OAAO,EAAA;AAEtB,IAAA,SAAgB,cAAc,CAA2B,MAAoB,EAAE,GAAM,EAAA;AACnF,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC;QAEzB,IAAI,KAAK,IAAI,IAAI;AACf,YAAA,OAAO,KAAK;QAEd,MAAM,IAAI,KAAK,CAAC,CAAqB,kBAAA,EAAA,MAAM,CAAC,GAAG,CAAC,CAAE,CAAA,CAAC;;AANrC,IAAA,OAAA,CAAA,cAAc,iBAO7B;AAEH,CAAC,EAXgB,OAAO,KAAP,OAAO,GAWvB,EAAA,CAAA,CAAA;;;;"}