entY
          );

          if (realTarget) {
            // each word has a data attribute with its index.
            const data = realTarget.getAttribute("data-highlighter-item-index");
            if (data) {
              return parseInt(data, 10);
            }
          }

          console.log("longpress idx not found for", loc.clientX, loc.clientY);
          return null;
        }
      });

      class SelectElement extends HTMLElement {
        static observedAttributes = ["data-trigger-id", "v