'use strict';var wellKnownSymbol=require('./well-known-symbol-d17f132e.js'),isRegexp=require('./is-regexp-3bdf4eae.js');var notARegexp = function (it) {
  if (isRegexp.i(it)) {
    throw TypeError("The method doesn't accept regular expressions");
  } return it;
};var MATCH = wellKnownSymbol.w('match');

var correctIsRegexpLogic = function (METHOD_NAME) {
  var regexp = /./;
  try {
    '/./'[METHOD_NAME](regexp);
  } catch (error1) {
    try {
      regexp[MATCH] = false;
      return '/./'[METHOD_NAME](regexp);
    } catch (error2) { /* empty */ }
  } return false;
};// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
wellKnownSymbol._({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~String(wellKnownSymbol.r(this))
      .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  }
});