def passport_attributes_from_chunk(chunk: list[str]) -> dict:
    """
    Creates a dictionary of passport attributes from the input chunk
    which is a list of lines (each line is the string content of such line).
    """
    attributes = {}
    for line in chunk:
        for pair in line.split():
            key, value = pair.split(':')
            attributes[key] = value
    return attributes