KiteDataUrl
The content of a data: URL (RFC 2397): its media type and its bytes. A document carries a small resource inside itself this way, an image or a font as Base64, or an SVG percent-encoded:
val url = KiteDataUrl.decode("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E")
url?.mediaType // "image/svg+xml"
url?.bytes // the SVG's UTF-8 bytesContent copied to clipboard
decode follows the data URL processor of the WHATWG Fetch standard: the body is percent-decoded, then Base64-decoded when the header ends in ;base64, forgiving white space and missing padding.