 d]) => d.text)).attr("fill", null).attr("font-weight", null);
    }

    display(svg.node());

    function hierarchy(data, delimiter = ".") {
      let rootData;
      const dataByName = new Map();
      structuredClone(data).forEach(function find(data) {
        const {name} = data;
        if (dataByName.has(name)) return dataByName.get(name);
        const i = name.lastIndexOf(delimiter);
        dataByName.set(name, data);
        if (i >= 0) {
          find({name: name.substring(0, i), children: []}