trying to make a prompt selector or simplifier for comfyUI.

so I have only been playing with comfyUI for about a month. most people say small prompts are better, and use wildcards.
well I'm pretty weird and like to do things the hard way I guess.
I have a very complex prompt but uses a ton of nested random pools.
I am working on a webapp to allow me to select which options will be selected into a simplifies and cleaned up prompt. I have it kind of working but not super effectively, and it doesn't work great on my super messy prompt that I will not be sharing because very NSFW.
I will attach the test prompt I have been playing with.
right now you can copy and paste to and from the master prompt section, save and reload from prompt.txt and generate simplifies prompts using checkboxes.
I don't know if anyone other than me will really have a use for this, but I'll share it anyways.
please note, I do not no how to program anything, I am just very patient with chatGPT, at least until I'm not.
oh and it also makes sure all your pools are closed properly. {...|...|...} is what i've been calling a pools btw. subpool, a pool in a pool.
I'll attach it as a .py.
you will need Gradio to run it, but its free and not super large.
and I assume if you have comfyUi you have python installed.
I am running it with PyCharm, because I don't know what I'm doing and it's decent at helping me out.
tried making sure nothing in here is NSFW but let me know if I goofed and that bothers you I guess.
i was trying to get the webapp to only load CBs for subpools if the pool it is attached to is selected, but that was not working at all.
uploaded a new version, it works much better. still working on it.