{
  "version": 3,
  "sources": ["../src/text.ts"],
  "sourcesContent": ["/**\n * Decode bytes to text\n * @param bytes - Bytes to decode\n * @param encoding - Text encoding\n * @returns The decoded text\n */\nexport function decode (bytes:Uint8Array, encoding = 'utf8'):string {\n    const decoder = new TextDecoder(encoding)\n    return decoder.decode(bytes)\n}\n\nconst encoder = new TextEncoder()\n\n/**\n * Encode text to utf8\n * @param str - Text to encode\n * @returns The encoded bytes\n */\nexport function encode (str:string):Uint8Array {\n    return encoder.encode(str)\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,SAAS,OAAQ,OAAkB,WAAW,QAAe;AAChE,QAAM,UAAU,IAAI,YAAY,QAAQ;AACxC,SAAO,QAAQ,OAAO,KAAK;AAC/B;AAHgB;AAKhB,MAAM,UAAU,IAAI,YAAY;AAOzB,SAAS,OAAQ,KAAuB;AAC3C,SAAO,QAAQ,OAAO,GAAG;AAC7B;AAFgB;",
  "names": []
}
