How do I remap curve length to isocurve density?

Thank you for reading this advice to “attach all the relevant files” when starting a thread so no one has to ask you for it:

3. Attach minimal versions of all the relevant files