Split curve at intersection point

Hi all, I’m trying to split a curve at the intersection point with a line and select one of the two segments. How can I do it. Thank you for the help

split curve with line.gh (8.4 KB)

1 of many possibilities

thank you very much