/*! bxs-vue-ui v3.3.0 */
'use strict';

var entryVirtual = require('./entry-virtual.js');
var stringTrim = require('./string-trim.js');

var trim = stringTrim.require$$0.trim;


var nativeParseInt = entryVirtual.global.parseInt;
var hex = /^[+-]?0[Xx]/;
var FORCED = nativeParseInt(stringTrim.whitespaces + '08') !== 8 || nativeParseInt(stringTrim.whitespaces + '0x16') !== 22;

// `parseInt` method
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
var _parseInt = FORCED ? function parseInt(string, radix) {
  var S = trim(String(string));
  return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
} : nativeParseInt;

// `parseInt` method
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
entryVirtual.$({ global: true, forced: parseInt != _parseInt }, {
  parseInt: _parseInt
});

var _parseInt$1 = entryVirtual.path.parseInt;

var _parseInt$2 = _parseInt$1;

var _parseInt$3 = _parseInt$2;

exports._parseInt = _parseInt$3;
