fn balanced_g_end(svg: &str, start: usize) -> Option<usize>
返回从 start(指向某个 <g 开标签)起、与之配对的 </g> 结束位置(不含)。
start
<g
</g>