import { __exports as u } from "../../../../../../../../_virtual/matchesPattern.js";
import "./generated/index.js";
import { __exports as h } from "../../../../../../../../_virtual/index35.js";
Object.defineProperty(u, "__esModule", {
  value: !0
});
u.default = d;
var s = h;
function d(a, l, p) {
  if (!(0, s.isMemberExpression)(a))
    return !1;
  const n = Array.isArray(l) ? l : l.split("."), e = [];
  let r;
  for (r = a; (0, s.isMemberExpression)(r); r = r.object)
    e.push(r.property);
  if (e.push(r), e.length < n.length || !p && e.length > n.length)
    return !1;
  for (let o = 0, f = e.length - 1; o < n.length; o++, f--) {
    const t = e[f];
    let i;
    if ((0, s.isIdentifier)(t))
      i = t.name;
    else if ((0, s.isStringLiteral)(t))
      i = t.value;
    else if ((0, s.isThisExpression)(t))
      i = "this";
    else
      return !1;
    if (n[o] !== i)
      return !1;
  }
  return !0;
}
//# sourceMappingURL=matchesPattern.js.map
