'use strict';var _export=require('./export-61511812.js'),normalizeComponent=require('./normalize-component-d9981c57.js'),arrayIteration=require('./array-iteration-f35df2b6.js'),es_array_includes=require('./es.array.includes-3990bfec.js'),objectKeys=require('./object-keys-12f2c5e5.js'),setToStringTag=require('./set-to-string-tag-240bb3b0.js');/* eslint-disable es/no-object-getownpropertynames -- safe */

var $getOwnPropertyNames$1 = _export.o.f;

var toString = {}.toString;

var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  ? Object.getOwnPropertyNames(window) : [];

var getWindowNames = function (it) {
  try {
    return $getOwnPropertyNames$1(it);
  } catch (error) {
    return windowNames.slice();
  }
};

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var f$1 = function getOwnPropertyNames(it) {
  return windowNames && toString.call(it) == '[object Window]'
    ? getWindowNames(it)
    : $getOwnPropertyNames$1(_export.f(it));
};

var objectGetOwnPropertyNamesExternal = {
	f: f$1
};var f = _export.w;

var wellKnownSymbolWrapped = {
	f: f
};var defineProperty$1 = normalizeComponent.o.f;

var defineWellKnownSymbol = function (NAME) {
  var Symbol = _export.p.Symbol || (_export.p.Symbol = {});
  if (!_export.h(Symbol, NAME)) defineProperty$1(Symbol, NAME, {
    value: wellKnownSymbolWrapped.f(NAME)
  });
};var $forEach = arrayIteration.a.forEach;

var HIDDEN = _export.s('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE = 'prototype';
var TO_PRIMITIVE = _export.w('toPrimitive');
var setInternalState = _export.q.set;
var getInternalState = _export.q.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = normalizeComponent.g.Symbol;
var $stringify = _export.g('JSON', 'stringify');
var nativeGetOwnPropertyDescriptor = _export.v.f;
var nativeDefineProperty = normalizeComponent.o.f;
var nativeGetOwnPropertyNames = objectGetOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = _export.z.f;
var AllSymbols = _export.j('symbols');
var ObjectPrototypeSymbols = _export.j('op-symbols');
var StringToSymbolRegistry = _export.j('string-to-symbol-registry');
var SymbolToStringRegistry = _export.j('symbol-to-string-registry');
var WellKnownSymbolsStore = _export.j('wks');
var QObject = normalizeComponent.g.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDescriptor = normalizeComponent.d && normalizeComponent.f(function () {
  return es_array_includes.o(nativeDefineProperty({}, 'a', {
    get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
  })).a != 7;
}) ? function (O, P, Attributes) {
  var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
  if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
  nativeDefineProperty(O, P, Attributes);
  if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
    nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
  }
} : nativeDefineProperty;

var wrap = function (tag, description) {
  var symbol = AllSymbols[tag] = es_array_includes.o($Symbol[PROTOTYPE]);
  setInternalState(symbol, {
    type: SYMBOL,
    tag: tag,
    description: description
  });
  if (!normalizeComponent.d) symbol.description = description;
  return symbol;
};

var isSymbol = _export.x ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  return Object(it) instanceof $Symbol;
};

var $defineProperty = function defineProperty(O, P, Attributes) {
  if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
  normalizeComponent.b(O);
  var key = normalizeComponent.t(P, true);
  normalizeComponent.b(Attributes);
  if (_export.h(AllSymbols, key)) {
    if (!Attributes.enumerable) {
      if (!_export.h(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, _export.y(1, {}));
      O[HIDDEN][key] = true;
    } else {
      if (_export.h(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
      Attributes = es_array_includes.o(Attributes, { enumerable: _export.y(0, false) });
    } return setSymbolDescriptor(O, key, Attributes);
  } return nativeDefineProperty(O, key, Attributes);
};

var $defineProperties = function defineProperties(O, Properties) {
  normalizeComponent.b(O);
  var properties = _export.f(Properties);
  var keys = objectKeys.o(properties).concat($getOwnPropertySymbols(properties));
  $forEach(keys, function (key) {
    if (!normalizeComponent.d || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
  });
  return O;
};

var $create = function create(O, Properties) {
  return Properties === undefined ? es_array_includes.o(O) : $defineProperties(es_array_includes.o(O), Properties);
};

var $propertyIsEnumerable = function propertyIsEnumerable(V) {
  var P = normalizeComponent.t(V, true);
  var enumerable = nativePropertyIsEnumerable.call(this, P);
  if (this === ObjectPrototype && _export.h(AllSymbols, P) && !_export.h(ObjectPrototypeSymbols, P)) return false;
  return enumerable || !_export.h(this, P) || !_export.h(AllSymbols, P) || _export.h(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
};

var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
  var it = _export.f(O);
  var key = normalizeComponent.t(P, true);
  if (it === ObjectPrototype && _export.h(AllSymbols, key) && !_export.h(ObjectPrototypeSymbols, key)) return;
  var descriptor = nativeGetOwnPropertyDescriptor(it, key);
  if (descriptor && _export.h(AllSymbols, key) && !(_export.h(it, HIDDEN) && it[HIDDEN][key])) {
    descriptor.enumerable = true;
  }
  return descriptor;
};

var $getOwnPropertyNames = function getOwnPropertyNames(O) {
  var names = nativeGetOwnPropertyNames(_export.f(O));
  var result = [];
  $forEach(names, function (key) {
    if (!_export.h(AllSymbols, key) && !_export.h(_export.m, key)) result.push(key);
  });
  return result;
};

var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
  var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
  var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : _export.f(O));
  var result = [];
  $forEach(names, function (key) {
    if (_export.h(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || _export.h(ObjectPrototype, key))) {
      result.push(AllSymbols[key]);
    }
  });
  return result;
};

// `Symbol` constructor
// https://tc39.es/ecma262/#sec-symbol-constructor
if (!_export.n) {
  $Symbol = function Symbol() {
    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
    var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
    var tag = _export.u(description);
    var setter = function (value) {
      if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
      if (_export.h(this, HIDDEN) && _export.h(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
      setSymbolDescriptor(this, tag, _export.y(1, value));
    };
    if (normalizeComponent.d && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
    return wrap(tag, description);
  };

  _export.r($Symbol[PROTOTYPE], 'toString', function toString() {
    return getInternalState(this).tag;
  });

  _export.r($Symbol, 'withoutSetter', function (description) {
    return wrap(_export.u(description), description);
  });

  _export.z.f = $propertyIsEnumerable;
  normalizeComponent.o.f = $defineProperty;
  _export.v.f = $getOwnPropertyDescriptor;
  _export.o.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  _export.k.f = $getOwnPropertySymbols;

  wellKnownSymbolWrapped.f = function (name) {
    return wrap(_export.w(name), name);
  };

  if (normalizeComponent.d) {
    // https://github.com/tc39/proposal-Symbol-description
    nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
      configurable: true,
      get: function description() {
        return getInternalState(this).description;
      }
    });
    {
      _export.r(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
    }
  }
}

_export._({ global: true, wrap: true, forced: !_export.n, sham: !_export.n }, {
  Symbol: $Symbol
});

$forEach(objectKeys.o(WellKnownSymbolsStore), function (name) {
  defineWellKnownSymbol(name);
});

_export._({ target: SYMBOL, stat: true, forced: !_export.n }, {
  // `Symbol.for` method
  // https://tc39.es/ecma262/#sec-symbol.for
  'for': function (key) {
    var string = String(key);
    if (_export.h(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
    var symbol = $Symbol(string);
    StringToSymbolRegistry[string] = symbol;
    SymbolToStringRegistry[symbol] = string;
    return symbol;
  },
  // `Symbol.keyFor` method
  // https://tc39.es/ecma262/#sec-symbol.keyfor
  keyFor: function keyFor(sym) {
    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
    if (_export.h(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
  },
  useSetter: function () { USE_SETTER = true; },
  useSimple: function () { USE_SETTER = false; }
});

_export._({ target: 'Object', stat: true, forced: !_export.n, sham: !normalizeComponent.d }, {
  // `Object.create` method
  // https://tc39.es/ecma262/#sec-object.create
  create: $create,
  // `Object.defineProperty` method
  // https://tc39.es/ecma262/#sec-object.defineproperty
  defineProperty: $defineProperty,
  // `Object.defineProperties` method
  // https://tc39.es/ecma262/#sec-object.defineproperties
  defineProperties: $defineProperties,
  // `Object.getOwnPropertyDescriptor` method
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});

_export._({ target: 'Object', stat: true, forced: !_export.n }, {
  // `Object.getOwnPropertyNames` method
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
  getOwnPropertyNames: $getOwnPropertyNames,
  // `Object.getOwnPropertySymbols` method
  // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
  getOwnPropertySymbols: $getOwnPropertySymbols
});

// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
_export._({ target: 'Object', stat: true, forced: normalizeComponent.f(function () { _export.k.f(1); }) }, {
  getOwnPropertySymbols: function getOwnPropertySymbols(it) {
    return _export.k.f(_export.b(it));
  }
});

// `JSON.stringify` method behavior with symbols
// https://tc39.es/ecma262/#sec-json.stringify
if ($stringify) {
  var FORCED_JSON_STRINGIFY = !_export.n || normalizeComponent.f(function () {
    var symbol = $Symbol();
    // MS Edge converts symbol values to JSON as {}
    return $stringify([symbol]) != '[null]'
      // WebKit converts symbol values to JSON as null
      || $stringify({ a: symbol }) != '{}'
      // V8 throws on boxed symbols
      || $stringify(Object(symbol)) != '{}';
  });

  _export._({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
    // eslint-disable-next-line no-unused-vars -- required for `.length`
    stringify: function stringify(it, replacer, space) {
      var args = [it];
      var index = 1;
      var $replacer;
      while (arguments.length > index) args.push(arguments[index++]);
      $replacer = replacer;
      if (!normalizeComponent.i(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
      if (!arrayIteration.i(replacer)) replacer = function (key, value) {
        if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
        if (!isSymbol(value)) return value;
      };
      args[1] = replacer;
      return $stringify.apply(null, args);
    }
  });
}

// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
  _export.l($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
}
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
setToStringTag.s($Symbol, SYMBOL);

_export.m[HIDDEN] = true;var defineProperty = normalizeComponent.o.f;


var NativeSymbol = normalizeComponent.g.Symbol;

if (normalizeComponent.d && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
  // Safari 12 bug
  NativeSymbol().description !== undefined
)) {
  var EmptyStringDescriptionStore = {};
  // wrap Symbol constructor for correct work with undefined description
  var SymbolWrapper = function Symbol() {
    var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
    var result = this instanceof SymbolWrapper
      ? new NativeSymbol(description)
      // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
      : description === undefined ? NativeSymbol() : NativeSymbol(description);
    if (description === '') EmptyStringDescriptionStore[result] = true;
    return result;
  };
  _export.A(SymbolWrapper, NativeSymbol);
  var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
  symbolPrototype.constructor = SymbolWrapper;

  var symbolToString = symbolPrototype.toString;
  var native = String(NativeSymbol('test')) == 'Symbol(test)';
  var regexp = /^Symbol\((.*)\)[^)]+$/;
  defineProperty(symbolPrototype, 'description', {
    configurable: true,
    get: function description() {
      var symbol = normalizeComponent.i(this) ? this.valueOf() : this;
      var string = symbolToString.call(symbol);
      if (_export.h(EmptyStringDescriptionStore, symbol)) return '';
      var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
      return desc === '' ? undefined : desc;
    }
  });

  _export._({ global: true, forced: true }, {
    Symbol: SymbolWrapper
  });
}exports.o=objectGetOwnPropertyNamesExternal;