Implement exports.parseCsv(text) in solution.cjs. Return an array of row arrays of string fields. Handle comma-separated unquoted fields, double-quoted fields containing commas or newlines, doubled quotes inside quoted fields, and LF or CRLF row endings outside quotes. Preserve whitespace and newlines inside fields exactly. Empty input returns []. Empty fields and interior blank rows are retained. A final row-ending terminator must not create an extra row. A trailing comma creates an empty last field. Throw an Error for an unterminated quoted field. Input is otherwise well-formed CSV. No external libraries.
