Where do Pokemon GO in their pokeballs?

Pokeballs work to capture Pokemon by converting them into energy and storing them. If the Pokemon struggles to break out, or is released by its trainer, it is converted back into matter as it emerges.