<!-- GRAPHITE_METADATA {"trueLocation":{"startLine":259,"endLine":356}} --> <i class='graphite__hidden'>[Re: lines 259 to 356]<br/><br/></i>  worth staring at this for a bit and considering how to clean it up for readability - becoming quite a monster 