Sort and merge the given set of ranges, creating a valid selection.
Create a cursor selection range at the given position.
Create a selection from a JSON representation.
Create a selection range.
Create a selection holding a single range.