That is strange light, does it have replaceable bulb? Take off rear cover and you may find H4 bulb that factory plug will connect to directly.
Male H4 connector at back of light is best solution. You can connect snd disconnect just one connector quickly without worrying about which wire goes where. This is high-power connection. You’ll want to solder AND heat-shrink wrap male H4 connector onto that light with butt-splic. This then plugs directly into factory connector. Generally gets you +10-25% more lumens out of bulb and ensures same performance for decades when done this way.
https://www.ebay.com/itm/174013713829
Cut off any connectors from back of light and butt-splice male H4 pigtail from ebay sbove on. Be sure to slide section of heat-shrink tubing on before joining wire-ends. You want joint with:
1. Mechanical strength, hence using lineman splice
2. Highly conductive, requires soldering
3. Durable and long-lasting, thus corrosion resistant heat-shrink tubing over joint.
It’s done this way in pro-motorsports like F1, military and aerospace applicstions for performance, reliability and longevity.
Link to original page on YouTube.