"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _default = exports["default"] = function _default(node) {
  var ancestors = [];
  node = node.parentNode;
  while (node) {
    ancestors.push(node);
    node = node.parentNode;
  }
  return ancestors;
};