System.register(["__unresolved_0", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12", "__unresolved_13", "__unresolved_14", "__unresolved_15", "__unresolved_16"], function (_export, _context) {
  "use strict";

  var _req, _req2, _req3, _req4, _req5, _req6, _req7, _req8, _req9, _req10, _req11, _req12, _req13, _req14, _req15, _req16, _loader, _cjsExports, __cjsMetaURL;

  _export("default", void 0);

  return {
    setters: [function (_unresolved_) {
      _req = _unresolved_.__cjsMetaURL;
    }, function (_unresolved_2) {
      _req2 = _unresolved_2.__cjsMetaURL;
    }, function (_unresolved_3) {
      _req3 = _unresolved_3.__cjsMetaURL;
    }, function (_unresolved_4) {
      _req4 = _unresolved_4.__cjsMetaURL;
    }, function (_unresolved_5) {
      _req5 = _unresolved_5.__cjsMetaURL;
    }, function (_unresolved_6) {
      _req6 = _unresolved_6.__cjsMetaURL;
    }, function (_unresolved_7) {
      _req7 = _unresolved_7.__cjsMetaURL;
    }, function (_unresolved_8) {
      _req8 = _unresolved_8.__cjsMetaURL;
    }, function (_unresolved_9) {
      _req9 = _unresolved_9.__cjsMetaURL;
    }, function (_unresolved_10) {
      _req10 = _unresolved_10.__cjsMetaURL;
    }, function (_unresolved_11) {
      _req11 = _unresolved_11.__cjsMetaURL;
    }, function (_unresolved_12) {
      _req12 = _unresolved_12.__cjsMetaURL;
    }, function (_unresolved_13) {
      _req13 = _unresolved_13.__cjsMetaURL;
    }, function (_unresolved_14) {
      _req14 = _unresolved_14.__cjsMetaURL;
    }, function (_unresolved_15) {
      _req15 = _unresolved_15.__cjsMetaURL;
    }, function (_unresolved_16) {
      _req16 = _unresolved_16.__cjsMetaURL;
    }, function (_unresolved_17) {
      _loader = _unresolved_17.default;
    }],
    execute: function () {
      _loader.define(_context.meta.url, function (exports, _require, module, __filename, __dirname) {
        var require = _loader.createRequireWithReqMap({
          "../internals/descriptors": _req,
          "../internals/global": _req2,
          "../internals/function-uncurry-this": _req3,
          "../internals/is-forced": _req4,
          "../internals/redefine": _req5,
          "../internals/has-own-property": _req6,
          "../internals/inherit-if-required": _req7,
          "../internals/object-is-prototype-of": _req8,
          "../internals/is-symbol": _req9,
          "../internals/to-primitive": _req10,
          "../internals/fails": _req11,
          "../internals/object-get-own-property-names": _req12,
          "../internals/object-get-own-property-descriptor": _req13,
          "../internals/object-define-property": _req14,
          "../internals/this-number-value": _req15,
          "../internals/string-trim": _req16
        }, _require);

        (function () {
          var DESCRIPTORS = require('../internals/descriptors');

          var global = require('../internals/global');

          var uncurryThis = require('../internals/function-uncurry-this');

          var isForced = require('../internals/is-forced');

          var redefine = require('../internals/redefine');

          var hasOwn = require('../internals/has-own-property');

          var inheritIfRequired = require('../internals/inherit-if-required');

          var isPrototypeOf = require('../internals/object-is-prototype-of');

          var isSymbol = require('../internals/is-symbol');

          var toPrimitive = require('../internals/to-primitive');

          var fails = require('../internals/fails');

          var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;

          var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;

          var defineProperty = require('../internals/object-define-property').f;

          var thisNumberValue = require('../internals/this-number-value');

          var trim = require('../internals/string-trim').trim;

          var NUMBER = 'Number';
          var NativeNumber = global[NUMBER];
          var NumberPrototype = NativeNumber.prototype;
          var TypeError = global.TypeError;
          var arraySlice = uncurryThis(''.slice);
          var charCodeAt = uncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
          // https://tc39.es/ecma262/#sec-tonumeric

          var toNumeric = function toNumeric(value) {
            var primValue = toPrimitive(value, 'number');
            return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
          }; // `ToNumber` abstract operation
          // https://tc39.es/ecma262/#sec-tonumber


          var toNumber = function toNumber(argument) {
            var it = toPrimitive(argument, 'number');
            var first, third, radix, maxCode, digits, length, index, code;
            if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');

            if (typeof it == 'string' && it.length > 2) {
              it = trim(it);
              first = charCodeAt(it, 0);

              if (first === 43 || first === 45) {
                third = charCodeAt(it, 2);
                if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
              } else if (first === 48) {
                switch (charCodeAt(it, 1)) {
                  case 66:
                  case 98:
                    radix = 2;
                    maxCode = 49;
                    break;
                  // fast equal of /^0b[01]+$/i

                  case 79:
                  case 111:
                    radix = 8;
                    maxCode = 55;
                    break;
                  // fast equal of /^0o[0-7]+$/i

                  default:
                    return +it;
                }

                digits = arraySlice(it, 2);
                length = digits.length;

                for (index = 0; index < length; index++) {
                  code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
                  // but ToNumber should return NaN if a string contains unavailable symbols

                  if (code < 48 || code > maxCode) return NaN;
                }

                return parseInt(digits, radix);
              }
            }

            return +it;
          }; // `Number` constructor
          // https://tc39.es/ecma262/#sec-number-constructor


          if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
            var NumberWrapper = function Number(value) {
              var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
              var dummy = this; // check on 1..constructor(foo) case

              return isPrototypeOf(NumberPrototype, dummy) && fails(function () {
                thisNumberValue(dummy);
              }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
            };

            for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : ( // ES3:
            'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
            'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
            'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
              if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
                defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
              }
            }

            NumberWrapper.prototype = NumberPrototype;
            NumberPrototype.constructor = NumberWrapper;
            redefine(global, NUMBER, NumberWrapper);
          }
        })();

        _export("default", _cjsExports = module.exports);
      });

      _export("__cjsMetaURL", __cjsMetaURL = _context.meta.url);
    }
  };
});
//# sourceMappingURL=es.number.constructor.js.map