Expanding on the last experiment, I added the ability to select a country by clicking on the SVG. It fires a click event that includes the country code of the <path>
that was clicked.
Code
https://svelte.dev/repl/632c8ccf36bc4efabc50ab78ee104e10?version=3.36.0