"use strict";

Liferay.Loader.define("segments-experiment-web$dom-helpers@5.2.0/cjs/matches", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    exports.__esModule = true;
    exports.default = matches;
    var matchesImpl;

    function matches(node, selector) {
      if (!matchesImpl) {
        var body = document.body;
        var nativeMatch = body.matches || body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector;

        matchesImpl = function matchesImpl(n, s) {
          return nativeMatch.call(n, s);
        };
      }

      return matchesImpl(node, selector);
    }

    module.exports = exports["default"];
  }
});
//# sourceMappingURL=matches.js.map