How do I trim an open curve with given points?

I’m aware that this is a DUPLICATE THREAD:

As in the previous thread, you didn’t internalize your curves in this GH file either, making the file useless:

Are you aware that List Item has an ‘i’ (Index) input?