 );
          document.removeEventListener(
            "scroll",
            this._handleWindowResizeOrScroll,
            true
          );
          if (this._repositionFrameId) {
            cancelAnimationFrame(this._repositionFrameId);
            this._repositionFrameId = null;
          }
        }

        _handleWindowResizeOrScroll() {
          if (!this.matches(":popover-open") || !this.trigger) {
            return;
          }

          if (this._repositionFrameId) {
            cancelAnimat