import { i as implementation$1 } from "./implementation.js";
import { d as defineProperties_1 } from "../define-properties/index.js";
var implementation = implementation$1;
var supportsDescriptors = defineProperties_1.supportsDescriptors;
var $gOPD = Object.getOwnPropertyDescriptor;
var polyfill = function getPolyfill() {
  if (supportsDescriptors && /a/mig.flags === "gim") {
    var descriptor = $gOPD(RegExp.prototype, "flags");
    if (descriptor && typeof descriptor.get === "function" && "dotAll" in RegExp.prototype && "hasIndices" in RegExp.prototype) {
      var calls = "";
      var o = {};
      Object.defineProperty(o, "hasIndices", {
        get: function() {
          calls += "d";
        }
      });
      Object.defineProperty(o, "sticky", {
        get: function() {
          calls += "y";
        }
      });
      descriptor.get.call(o);
      if (calls === "dy") {
        return descriptor.get;
      }
    }
  }
  return implementation;
};
export {
  polyfill as p
};
//# sourceMappingURL=polyfill.js.map
