Creates a validated IRI from a string.
For non-absolute variants, normalizes paths by removing . segments and resolving .. segments.
.
..
The string to convert to an IRI
The identifier variant to validate against (default: "absolute")
"absolute"
The validated and normalized IRI
RangeError If the value is not a valid IRI for the specified variant, or if .. segments would climb above the root
Creates a validated IRI from a string.
For non-absolute variants, normalizes paths by removing
.segments and resolving..segments.