@ututrust/web-components 1.1.18 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9723,7 +9723,7 @@
9723
9723
 
9724
9724
  var LOCAL_STORAGE_KEY_UTU_IDENTITY_DATA = "utu-identity-data"; // UTT Endorsement
9725
9725
 
9726
- var UTT_CONTRACT_ADDRESS = "0xd3b7c928DD591f329f7013481bdB580595180429";
9726
+ var UTT_CONTRACT_ADDRESS = "0x155A7ec2C100108921855E612e98A50a13118777";
9727
9727
 
9728
9728
  function e$1(e) {
9729
9729
  this.message = e;
@@ -29446,7 +29446,7 @@
29446
29446
  case 8:
29447
29447
  address = _context.sent;
29448
29448
  _context.next = 11;
29449
- return signer.signMessage("utu-trust-api");
29449
+ return signer.signMessage("Sign in at UTU");
29450
29450
 
29451
29451
  case 11:
29452
29452
  signature = _context.sent;
@@ -32520,161 +32520,6 @@
32520
32520
  }
32521
32521
  });
32522
32522
 
32523
- var String$2 = global$1.String;
32524
- var TypeError$2 = global$1.TypeError;
32525
-
32526
- var aPossiblePrototype = function (argument) {
32527
- if (typeof argument == 'object' || isCallable(argument)) return argument;
32528
- throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
32529
- };
32530
-
32531
- /* eslint-disable no-proto -- safe */
32532
-
32533
- // `Object.setPrototypeOf` method
32534
- // https://tc39.es/ecma262/#sec-object.setprototypeof
32535
- // Works with __proto__ only. Old v8 can't work with null proto objects.
32536
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
32537
-
32538
-
32539
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
32540
- var CORRECT_SETTER = false;
32541
- var test = {};
32542
- var setter;
32543
-
32544
- try {
32545
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
32546
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
32547
- setter(test, []);
32548
- CORRECT_SETTER = test instanceof Array;
32549
- } catch (error) {
32550
- /* empty */
32551
- }
32552
-
32553
- return function setPrototypeOf(O, proto) {
32554
- anObject(O);
32555
- aPossiblePrototype(proto);
32556
- if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
32557
- return O;
32558
- };
32559
- }() : undefined);
32560
-
32561
- // makes subclassing work correct for wrapped built-ins
32562
-
32563
-
32564
- var inheritIfRequired = function ($this, dummy, Wrapper) {
32565
- var NewTarget, NewTargetPrototype;
32566
- if ( // it can work only with native `setPrototypeOf`
32567
- objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
32568
- isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
32569
- return $this;
32570
- };
32571
-
32572
- // `thisNumberValue` abstract operation
32573
- // https://tc39.es/ecma262/#sec-thisnumbervalue
32574
-
32575
-
32576
- var thisNumberValue = functionUncurryThis(1.0.valueOf);
32577
-
32578
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
32579
-
32580
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
32581
-
32582
- var defineProperty$1 = objectDefineProperty.f;
32583
-
32584
-
32585
-
32586
- var trim = stringTrim.trim;
32587
-
32588
- var NUMBER = 'Number';
32589
- var NativeNumber = global$1[NUMBER];
32590
- var NumberPrototype = NativeNumber.prototype;
32591
- var TypeError$1 = global$1.TypeError;
32592
- var arraySlice$1 = functionUncurryThis(''.slice);
32593
- var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
32594
- // https://tc39.es/ecma262/#sec-tonumeric
32595
-
32596
- var toNumeric = function (value) {
32597
- var primValue = toPrimitive(value, 'number');
32598
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
32599
- }; // `ToNumber` abstract operation
32600
- // https://tc39.es/ecma262/#sec-tonumber
32601
-
32602
-
32603
- var toNumber = function (argument) {
32604
- var it = toPrimitive(argument, 'number');
32605
- var first, third, radix, maxCode, digits, length, index, code;
32606
- if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
32607
-
32608
- if (typeof it == 'string' && it.length > 2) {
32609
- it = trim(it);
32610
- first = charCodeAt(it, 0);
32611
-
32612
- if (first === 43 || first === 45) {
32613
- third = charCodeAt(it, 2);
32614
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
32615
- } else if (first === 48) {
32616
- switch (charCodeAt(it, 1)) {
32617
- case 66:
32618
- case 98:
32619
- radix = 2;
32620
- maxCode = 49;
32621
- break;
32622
- // fast equal of /^0b[01]+$/i
32623
-
32624
- case 79:
32625
- case 111:
32626
- radix = 8;
32627
- maxCode = 55;
32628
- break;
32629
- // fast equal of /^0o[0-7]+$/i
32630
-
32631
- default:
32632
- return +it;
32633
- }
32634
-
32635
- digits = arraySlice$1(it, 2);
32636
- length = digits.length;
32637
-
32638
- for (index = 0; index < length; index++) {
32639
- code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
32640
- // but ToNumber should return NaN if a string contains unavailable symbols
32641
-
32642
- if (code < 48 || code > maxCode) return NaN;
32643
- }
32644
-
32645
- return parseInt(digits, radix);
32646
- }
32647
- }
32648
-
32649
- return +it;
32650
- }; // `Number` constructor
32651
- // https://tc39.es/ecma262/#sec-number-constructor
32652
-
32653
-
32654
- if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
32655
- var NumberWrapper = function Number(value) {
32656
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
32657
- var dummy = this; // check on 1..constructor(foo) case
32658
-
32659
- return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
32660
- thisNumberValue(dummy);
32661
- }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
32662
- };
32663
-
32664
- for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
32665
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
32666
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
32667
- 'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
32668
- if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
32669
- defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
32670
- }
32671
- }
32672
-
32673
- NumberWrapper.prototype = NumberPrototype;
32674
- NumberPrototype.constructor = NumberWrapper;
32675
- redefine(global$1, NUMBER, NumberWrapper);
32676
- }
32677
-
32678
32523
  var abi = [
32679
32524
  {
32680
32525
  inputs: [
@@ -33592,7 +33437,7 @@
33592
33437
  // @ts-ignore
33593
33438
 
33594
33439
 
33595
- if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || props[ATTR_TRANSACTION_ID]) return null;
33440
+ if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || !props[ATTR_TRANSACTION_ID]) return null;
33596
33441
 
33597
33442
  var switchNetwork = /*#__PURE__*/function () {
33598
33443
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -33644,7 +33489,7 @@
33644
33489
 
33645
33490
  var sendTransaction = /*#__PURE__*/function () {
33646
33491
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount, transactionId) {
33647
- var web3Provider, signer, wei, contract, transaction;
33492
+ var web3Provider, signer, contract, transaction;
33648
33493
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
33649
33494
  while (1) {
33650
33495
  switch (_context2.prev = _context2.next) {
@@ -33658,20 +33503,19 @@
33658
33503
  web3Provider = new Web3Provider(window.ethereum);
33659
33504
  signer = web3Provider.getSigner(); // Accounts now exposed
33660
33505
 
33661
- wei = String(Number(amount) * 10e17);
33662
33506
  contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
33663
- _context2.next = 8;
33664
- return contract.endorse(address, String(wei), transactionId);
33507
+ _context2.next = 7;
33508
+ return contract.endorse(address, String(amount), transactionId);
33665
33509
 
33666
- case 8:
33510
+ case 7:
33667
33511
  transaction = _context2.sent;
33668
- _context2.next = 11;
33512
+ _context2.next = 10;
33669
33513
  return transaction.wait();
33670
33514
 
33671
- case 11:
33515
+ case 10:
33672
33516
  return _context2.abrupt("return", transaction);
33673
33517
 
33674
- case 12:
33518
+ case 11:
33675
33519
  case "end":
33676
33520
  return _context2.stop();
33677
33521
  }
@@ -36204,6 +36048,161 @@
36204
36048
  var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n margin: 5% auto 0;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
36205
36049
  styleInject(css_248z$c);
36206
36050
 
36051
+ var String$2 = global$1.String;
36052
+ var TypeError$2 = global$1.TypeError;
36053
+
36054
+ var aPossiblePrototype = function (argument) {
36055
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
36056
+ throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
36057
+ };
36058
+
36059
+ /* eslint-disable no-proto -- safe */
36060
+
36061
+ // `Object.setPrototypeOf` method
36062
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
36063
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
36064
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
36065
+
36066
+
36067
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
36068
+ var CORRECT_SETTER = false;
36069
+ var test = {};
36070
+ var setter;
36071
+
36072
+ try {
36073
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
36074
+ setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
36075
+ setter(test, []);
36076
+ CORRECT_SETTER = test instanceof Array;
36077
+ } catch (error) {
36078
+ /* empty */
36079
+ }
36080
+
36081
+ return function setPrototypeOf(O, proto) {
36082
+ anObject(O);
36083
+ aPossiblePrototype(proto);
36084
+ if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
36085
+ return O;
36086
+ };
36087
+ }() : undefined);
36088
+
36089
+ // makes subclassing work correct for wrapped built-ins
36090
+
36091
+
36092
+ var inheritIfRequired = function ($this, dummy, Wrapper) {
36093
+ var NewTarget, NewTargetPrototype;
36094
+ if ( // it can work only with native `setPrototypeOf`
36095
+ objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
36096
+ isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
36097
+ return $this;
36098
+ };
36099
+
36100
+ // `thisNumberValue` abstract operation
36101
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
36102
+
36103
+
36104
+ var thisNumberValue = functionUncurryThis(1.0.valueOf);
36105
+
36106
+ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
36107
+
36108
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
36109
+
36110
+ var defineProperty$1 = objectDefineProperty.f;
36111
+
36112
+
36113
+
36114
+ var trim = stringTrim.trim;
36115
+
36116
+ var NUMBER = 'Number';
36117
+ var NativeNumber = global$1[NUMBER];
36118
+ var NumberPrototype = NativeNumber.prototype;
36119
+ var TypeError$1 = global$1.TypeError;
36120
+ var arraySlice$1 = functionUncurryThis(''.slice);
36121
+ var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
36122
+ // https://tc39.es/ecma262/#sec-tonumeric
36123
+
36124
+ var toNumeric = function (value) {
36125
+ var primValue = toPrimitive(value, 'number');
36126
+ return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
36127
+ }; // `ToNumber` abstract operation
36128
+ // https://tc39.es/ecma262/#sec-tonumber
36129
+
36130
+
36131
+ var toNumber = function (argument) {
36132
+ var it = toPrimitive(argument, 'number');
36133
+ var first, third, radix, maxCode, digits, length, index, code;
36134
+ if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
36135
+
36136
+ if (typeof it == 'string' && it.length > 2) {
36137
+ it = trim(it);
36138
+ first = charCodeAt(it, 0);
36139
+
36140
+ if (first === 43 || first === 45) {
36141
+ third = charCodeAt(it, 2);
36142
+ if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
36143
+ } else if (first === 48) {
36144
+ switch (charCodeAt(it, 1)) {
36145
+ case 66:
36146
+ case 98:
36147
+ radix = 2;
36148
+ maxCode = 49;
36149
+ break;
36150
+ // fast equal of /^0b[01]+$/i
36151
+
36152
+ case 79:
36153
+ case 111:
36154
+ radix = 8;
36155
+ maxCode = 55;
36156
+ break;
36157
+ // fast equal of /^0o[0-7]+$/i
36158
+
36159
+ default:
36160
+ return +it;
36161
+ }
36162
+
36163
+ digits = arraySlice$1(it, 2);
36164
+ length = digits.length;
36165
+
36166
+ for (index = 0; index < length; index++) {
36167
+ code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
36168
+ // but ToNumber should return NaN if a string contains unavailable symbols
36169
+
36170
+ if (code < 48 || code > maxCode) return NaN;
36171
+ }
36172
+
36173
+ return parseInt(digits, radix);
36174
+ }
36175
+ }
36176
+
36177
+ return +it;
36178
+ }; // `Number` constructor
36179
+ // https://tc39.es/ecma262/#sec-number-constructor
36180
+
36181
+
36182
+ if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
36183
+ var NumberWrapper = function Number(value) {
36184
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
36185
+ var dummy = this; // check on 1..constructor(foo) case
36186
+
36187
+ return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
36188
+ thisNumberValue(dummy);
36189
+ }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
36190
+ };
36191
+
36192
+ for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
36193
+ 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
36194
+ 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
36195
+ 'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
36196
+ if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
36197
+ defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
36198
+ }
36199
+ }
36200
+
36201
+ NumberWrapper.prototype = NumberPrototype;
36202
+ NumberPrototype.constructor = NumberWrapper;
36203
+ redefine(global$1, NUMBER, NumberWrapper);
36204
+ }
36205
+
36207
36206
  var RangeError$2 = global$1.RangeError; // `String.prototype.repeat` method implementation
36208
36207
  // https://tc39.es/ecma262/#sec-string.prototype.repeat
36209
36208