Holy shit
Now I know why buying items for all quests takes 20 minutes. Honestly, when I run it myself I just press "All" and go afk. I'll add some code to add the quantities properly.
Mirror mode though, is quite unpredictable, as it's still just a beta version, I'm not sure what errors it might throw nowadays.