@audius/sdk 0.0.3 → 0.0.4

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/browser.js CHANGED
@@ -7,30 +7,32 @@ var bs58 = require('bs58');
7
7
  var Hashids = require('hashids');
8
8
  var lodash = require('lodash');
9
9
  var ipfsUnixfsImporter = require('ipfs-unixfs-importer');
10
- var require$$0$7 = require('stream-browserify');
10
+ var require$$0$6 = require('stream-browserify');
11
11
  require('form-data');
12
- var require$$0$8 = require('secp256k1');
13
- var require$$1$1w = require('safe-buffer');
12
+ var require$$0$7 = require('secp256k1');
13
+ var require$$1$1v = require('safe-buffer');
14
14
  require('@ethersproject/solidity');
15
15
  var semver = require('semver');
16
16
  var urlJoin = require('proper-url-join');
17
- var require$$1$1x = require('elliptic');
17
+ var require$$1$1w = require('elliptic');
18
18
  var retry = require('async-retry');
19
19
  var abiDecoder = require('abi-decoder');
20
+ var require$$0$8 = require('xmlhttprequest');
20
21
 
21
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
23
 
23
24
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
24
25
  var bs58__default = /*#__PURE__*/_interopDefaultLegacy(bs58);
25
26
  var Hashids__default = /*#__PURE__*/_interopDefaultLegacy(Hashids);
26
- var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$7);
27
- var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$8);
28
- var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1$1w);
27
+ var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$6);
28
+ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$7);
29
+ var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1$1v);
29
30
  var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
30
31
  var urlJoin__default = /*#__PURE__*/_interopDefaultLegacy(urlJoin);
31
- var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1x);
32
+ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1w);
32
33
  var retry__default = /*#__PURE__*/_interopDefaultLegacy(retry);
33
34
  var abiDecoder__default = /*#__PURE__*/_interopDefaultLegacy(abiDecoder);
35
+ var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$8);
34
36
 
35
37
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
36
38
 
@@ -375,14 +377,14 @@ var abi$1s = [
375
377
  type: "event"
376
378
  }
377
379
  ];
378
- var require$$1$1v = {
380
+ var require$$1$1u = {
379
381
  contractName: contractName$1s,
380
382
  abi: abi$1s
381
383
  };
382
384
 
383
385
  const commonjsRegister$1s = commonjsRegister$1t;
384
386
  commonjsRegister$1s("/$$rollup_base$$/data-contracts/ABIs/AdminUpgradeabilityProxy.json", function (module, exports) {
385
- module.exports = require$$1$1v;
387
+ module.exports = require$$1$1u;
386
388
  });
387
389
 
388
390
  var contractName$1r = "BaseAdminUpgradeabilityProxy";
@@ -501,14 +503,14 @@ var abi$1r = [
501
503
  type: "function"
502
504
  }
503
505
  ];
504
- var require$$1$1u = {
506
+ var require$$1$1t = {
505
507
  contractName: contractName$1r,
506
508
  abi: abi$1r
507
509
  };
508
510
 
509
511
  const commonjsRegister$1r = commonjsRegister$1t;
510
512
  commonjsRegister$1r("/$$rollup_base$$/data-contracts/ABIs/BaseAdminUpgradeabilityProxy.json", function (module, exports) {
511
- module.exports = require$$1$1u;
513
+ module.exports = require$$1$1t;
512
514
  });
513
515
 
514
516
  var contractName$1q = "BaseUpgradeabilityProxy";
@@ -531,14 +533,14 @@ var abi$1q = [
531
533
  type: "event"
532
534
  }
533
535
  ];
534
- var require$$1$1t = {
536
+ var require$$1$1s = {
535
537
  contractName: contractName$1q,
536
538
  abi: abi$1q
537
539
  };
538
540
 
539
541
  const commonjsRegister$1q = commonjsRegister$1t;
540
542
  commonjsRegister$1q("/$$rollup_base$$/data-contracts/ABIs/BaseUpgradeabilityProxy.json", function (module, exports) {
541
- module.exports = require$$1$1t;
543
+ module.exports = require$$1$1s;
542
544
  });
543
545
 
544
546
  var contractName$1p = "DiscoveryProviderFactory";
@@ -737,14 +739,14 @@ var abi$1p = [
737
739
  type: "function"
738
740
  }
739
741
  ];
740
- var require$$1$1s = {
742
+ var require$$1$1r = {
741
743
  contractName: contractName$1p,
742
744
  abi: abi$1p
743
745
  };
744
746
 
745
747
  const commonjsRegister$1p = commonjsRegister$1t;
746
748
  commonjsRegister$1p("/$$rollup_base$$/data-contracts/ABIs/DiscoveryProviderFactory.json", function (module, exports) {
747
- module.exports = require$$1$1s;
749
+ module.exports = require$$1$1r;
748
750
  });
749
751
 
750
752
  var contractName$1o = "DiscoveryProviderFactoryInterface";
@@ -807,14 +809,14 @@ var abi$1o = [
807
809
  type: "function"
808
810
  }
809
811
  ];
810
- var require$$1$1r = {
812
+ var require$$1$1q = {
811
813
  contractName: contractName$1o,
812
814
  abi: abi$1o
813
815
  };
814
816
 
815
817
  const commonjsRegister$1o = commonjsRegister$1t;
816
818
  commonjsRegister$1o("/$$rollup_base$$/data-contracts/ABIs/DiscoveryProviderFactoryInterface.json", function (module, exports) {
817
- module.exports = require$$1$1r;
819
+ module.exports = require$$1$1q;
818
820
  });
819
821
 
820
822
  var contractName$1n = "DiscoveryProviderStorage";
@@ -1029,14 +1031,14 @@ var abi$1n = [
1029
1031
  type: "function"
1030
1032
  }
1031
1033
  ];
1032
- var require$$1$1q = {
1034
+ var require$$1$1p = {
1033
1035
  contractName: contractName$1n,
1034
1036
  abi: abi$1n
1035
1037
  };
1036
1038
 
1037
1039
  const commonjsRegister$1n = commonjsRegister$1t;
1038
1040
  commonjsRegister$1n("/$$rollup_base$$/data-contracts/ABIs/DiscoveryProviderStorage.json", function (module, exports) {
1039
- module.exports = require$$1$1q;
1041
+ module.exports = require$$1$1p;
1040
1042
  });
1041
1043
 
1042
1044
  var contractName$1m = "DiscoveryProviderStorageInterface";
@@ -1103,40 +1105,40 @@ var abi$1m = [
1103
1105
  type: "function"
1104
1106
  }
1105
1107
  ];
1106
- var require$$1$1p = {
1108
+ var require$$1$1o = {
1107
1109
  contractName: contractName$1m,
1108
1110
  abi: abi$1m
1109
1111
  };
1110
1112
 
1111
1113
  const commonjsRegister$1m = commonjsRegister$1t;
1112
1114
  commonjsRegister$1m("/$$rollup_base$$/data-contracts/ABIs/DiscoveryProviderStorageInterface.json", function (module, exports) {
1113
- module.exports = require$$1$1p;
1115
+ module.exports = require$$1$1o;
1114
1116
  });
1115
1117
 
1116
1118
  var contractName$1l = "ECDSA";
1117
1119
  var abi$1l = [
1118
1120
  ];
1119
- var require$$1$1o = {
1121
+ var require$$1$1n = {
1120
1122
  contractName: contractName$1l,
1121
1123
  abi: abi$1l
1122
1124
  };
1123
1125
 
1124
1126
  const commonjsRegister$1l = commonjsRegister$1t;
1125
1127
  commonjsRegister$1l("/$$rollup_base$$/data-contracts/ABIs/ECDSA.json", function (module, exports) {
1126
- module.exports = require$$1$1o;
1128
+ module.exports = require$$1$1n;
1127
1129
  });
1128
1130
 
1129
1131
  var contractName$1k = "Initializable";
1130
1132
  var abi$1k = [
1131
1133
  ];
1132
- var require$$1$1n = {
1134
+ var require$$1$1m = {
1133
1135
  contractName: contractName$1k,
1134
1136
  abi: abi$1k
1135
1137
  };
1136
1138
 
1137
1139
  const commonjsRegister$1k = commonjsRegister$1t;
1138
1140
  commonjsRegister$1k("/$$rollup_base$$/data-contracts/ABIs/Initializable.json", function (module, exports) {
1139
- module.exports = require$$1$1n;
1141
+ module.exports = require$$1$1m;
1140
1142
  });
1141
1143
 
1142
1144
  var contractName$1j = "IPLDBlacklistFactory";
@@ -1314,14 +1316,14 @@ var abi$1j = [
1314
1316
  type: "function"
1315
1317
  }
1316
1318
  ];
1317
- var require$$1$1m = {
1319
+ var require$$1$1l = {
1318
1320
  contractName: contractName$1j,
1319
1321
  abi: abi$1j
1320
1322
  };
1321
1323
 
1322
1324
  const commonjsRegister$1j = commonjsRegister$1t;
1323
1325
  commonjsRegister$1j("/$$rollup_base$$/data-contracts/ABIs/IPLDBlacklistFactory.json", function (module, exports) {
1324
- module.exports = require$$1$1m;
1326
+ module.exports = require$$1$1l;
1325
1327
  });
1326
1328
 
1327
1329
  var contractName$1i = "Migrations";
@@ -1394,27 +1396,27 @@ var abi$1i = [
1394
1396
  type: "function"
1395
1397
  }
1396
1398
  ];
1397
- var require$$1$1l = {
1399
+ var require$$1$1k = {
1398
1400
  contractName: contractName$1i,
1399
1401
  abi: abi$1i
1400
1402
  };
1401
1403
 
1402
1404
  const commonjsRegister$1i = commonjsRegister$1t;
1403
1405
  commonjsRegister$1i("/$$rollup_base$$/data-contracts/ABIs/Migrations.json", function (module, exports) {
1404
- module.exports = require$$1$1l;
1406
+ module.exports = require$$1$1k;
1405
1407
  });
1406
1408
 
1407
1409
  var contractName$1h = "OpenZeppelinUpgradesAddress";
1408
1410
  var abi$1h = [
1409
1411
  ];
1410
- var require$$1$1k = {
1412
+ var require$$1$1j = {
1411
1413
  contractName: contractName$1h,
1412
1414
  abi: abi$1h
1413
1415
  };
1414
1416
 
1415
1417
  const commonjsRegister$1h = commonjsRegister$1t;
1416
1418
  commonjsRegister$1h("/$$rollup_base$$/data-contracts/ABIs/OpenZeppelinUpgradesAddress.json", function (module, exports) {
1417
- module.exports = require$$1$1k;
1419
+ module.exports = require$$1$1j;
1418
1420
  });
1419
1421
 
1420
1422
  var contractName$1g = "Ownable";
@@ -1500,14 +1502,14 @@ var abi$1g = [
1500
1502
  type: "function"
1501
1503
  }
1502
1504
  ];
1503
- var require$$1$1j = {
1505
+ var require$$1$1i = {
1504
1506
  contractName: contractName$1g,
1505
1507
  abi: abi$1g
1506
1508
  };
1507
1509
 
1508
1510
  const commonjsRegister$1g = commonjsRegister$1t;
1509
1511
  commonjsRegister$1g("/$$rollup_base$$/data-contracts/ABIs/Ownable.json", function (module, exports) {
1510
- module.exports = require$$1$1j;
1512
+ module.exports = require$$1$1i;
1511
1513
  });
1512
1514
 
1513
1515
  var contractName$1f = "PlaylistFactory";
@@ -2194,14 +2196,14 @@ var abi$1f = [
2194
2196
  type: "function"
2195
2197
  }
2196
2198
  ];
2197
- var require$$1$1i = {
2199
+ var require$$1$1h = {
2198
2200
  contractName: contractName$1f,
2199
2201
  abi: abi$1f
2200
2202
  };
2201
2203
 
2202
2204
  const commonjsRegister$1f = commonjsRegister$1t;
2203
2205
  commonjsRegister$1f("/$$rollup_base$$/data-contracts/ABIs/PlaylistFactory.json", function (module, exports) {
2204
- module.exports = require$$1$1i;
2206
+ module.exports = require$$1$1h;
2205
2207
  });
2206
2208
 
2207
2209
  var contractName$1e = "PlaylistFactoryInterface";
@@ -2245,14 +2247,14 @@ var abi$1e = [
2245
2247
  type: "function"
2246
2248
  }
2247
2249
  ];
2248
- var require$$1$1h = {
2250
+ var require$$1$1g = {
2249
2251
  contractName: contractName$1e,
2250
2252
  abi: abi$1e
2251
2253
  };
2252
2254
 
2253
2255
  const commonjsRegister$1e = commonjsRegister$1t;
2254
2256
  commonjsRegister$1e("/$$rollup_base$$/data-contracts/ABIs/PlaylistFactoryInterface.json", function (module, exports) {
2255
- module.exports = require$$1$1h;
2257
+ module.exports = require$$1$1g;
2256
2258
  });
2257
2259
 
2258
2260
  var contractName$1d = "PlaylistStorage";
@@ -2513,14 +2515,14 @@ var abi$1d = [
2513
2515
  type: "function"
2514
2516
  }
2515
2517
  ];
2516
- var require$$1$1g = {
2518
+ var require$$1$1f = {
2517
2519
  contractName: contractName$1d,
2518
2520
  abi: abi$1d
2519
2521
  };
2520
2522
 
2521
2523
  const commonjsRegister$1d = commonjsRegister$1t;
2522
2524
  commonjsRegister$1d("/$$rollup_base$$/data-contracts/ABIs/PlaylistStorage.json", function (module, exports) {
2523
- module.exports = require$$1$1g;
2525
+ module.exports = require$$1$1f;
2524
2526
  });
2525
2527
 
2526
2528
  var contractName$1c = "PlaylistStorageInterface";
@@ -2652,14 +2654,14 @@ var abi$1c = [
2652
2654
  type: "function"
2653
2655
  }
2654
2656
  ];
2655
- var require$$1$1f = {
2657
+ var require$$1$1e = {
2656
2658
  contractName: contractName$1c,
2657
2659
  abi: abi$1c
2658
2660
  };
2659
2661
 
2660
2662
  const commonjsRegister$1c = commonjsRegister$1t;
2661
2663
  commonjsRegister$1c("/$$rollup_base$$/data-contracts/ABIs/PlaylistStorageInterface.json", function (module, exports) {
2662
- module.exports = require$$1$1f;
2664
+ module.exports = require$$1$1e;
2663
2665
  });
2664
2666
 
2665
2667
  var contractName$1b = "Proxy";
@@ -2670,14 +2672,14 @@ var abi$1b = [
2670
2672
  type: "fallback"
2671
2673
  }
2672
2674
  ];
2673
- var require$$1$1e = {
2675
+ var require$$1$1d = {
2674
2676
  contractName: contractName$1b,
2675
2677
  abi: abi$1b
2676
2678
  };
2677
2679
 
2678
2680
  const commonjsRegister$1b = commonjsRegister$1t;
2679
2681
  commonjsRegister$1b("/$$rollup_base$$/data-contracts/ABIs/Proxy.json", function (module, exports) {
2680
- module.exports = require$$1$1e;
2682
+ module.exports = require$$1$1d;
2681
2683
  });
2682
2684
 
2683
2685
  var contractName$1a = "Registry";
@@ -2926,14 +2928,14 @@ var abi$1a = [
2926
2928
  type: "function"
2927
2929
  }
2928
2930
  ];
2929
- var require$$1$1d = {
2931
+ var require$$1$1c = {
2930
2932
  contractName: contractName$1a,
2931
2933
  abi: abi$1a
2932
2934
  };
2933
2935
 
2934
2936
  const commonjsRegister$1a = commonjsRegister$1t;
2935
2937
  commonjsRegister$1a("/$$rollup_base$$/data-contracts/ABIs/Registry.json", function (module, exports) {
2936
- module.exports = require$$1$1d;
2938
+ module.exports = require$$1$1c;
2937
2939
  });
2938
2940
 
2939
2941
  var contractName$19 = "RegistryContract";
@@ -3045,14 +3047,14 @@ var abi$19 = [
3045
3047
  type: "function"
3046
3048
  }
3047
3049
  ];
3048
- var require$$1$1c = {
3050
+ var require$$1$1b = {
3049
3051
  contractName: contractName$19,
3050
3052
  abi: abi$19
3051
3053
  };
3052
3054
 
3053
3055
  const commonjsRegister$19 = commonjsRegister$1t;
3054
3056
  commonjsRegister$19("/$$rollup_base$$/data-contracts/ABIs/RegistryContract.json", function (module, exports) {
3055
- module.exports = require$$1$1c;
3057
+ module.exports = require$$1$1b;
3056
3058
  });
3057
3059
 
3058
3060
  var contractName$18 = "RegistryContractInterface";
@@ -3084,14 +3086,14 @@ var abi$18 = [
3084
3086
  type: "function"
3085
3087
  }
3086
3088
  ];
3087
- var require$$1$1b = {
3089
+ var require$$1$1a = {
3088
3090
  contractName: contractName$18,
3089
3091
  abi: abi$18
3090
3092
  };
3091
3093
 
3092
3094
  const commonjsRegister$18 = commonjsRegister$1t;
3093
3095
  commonjsRegister$18("/$$rollup_base$$/data-contracts/ABIs/RegistryContractInterface.json", function (module, exports) {
3094
- module.exports = require$$1$1b;
3096
+ module.exports = require$$1$1a;
3095
3097
  });
3096
3098
 
3097
3099
  var contractName$17 = "RegistryInterface";
@@ -3158,14 +3160,14 @@ var abi$17 = [
3158
3160
  type: "function"
3159
3161
  }
3160
3162
  ];
3161
- var require$$1$1a = {
3163
+ var require$$1$19 = {
3162
3164
  contractName: contractName$17,
3163
3165
  abi: abi$17
3164
3166
  };
3165
3167
 
3166
3168
  const commonjsRegister$17 = commonjsRegister$1t;
3167
3169
  commonjsRegister$17("/$$rollup_base$$/data-contracts/ABIs/RegistryInterface.json", function (module, exports) {
3168
- module.exports = require$$1$1a;
3170
+ module.exports = require$$1$19;
3169
3171
  });
3170
3172
 
3171
3173
  var contractName$16 = "SigningLogic";
@@ -3209,14 +3211,14 @@ var abi$16 = [
3209
3211
  type: "constructor"
3210
3212
  }
3211
3213
  ];
3212
- var require$$1$19 = {
3214
+ var require$$1$18 = {
3213
3215
  contractName: contractName$16,
3214
3216
  abi: abi$16
3215
3217
  };
3216
3218
 
3217
3219
  const commonjsRegister$16 = commonjsRegister$1t;
3218
3220
  commonjsRegister$16("/$$rollup_base$$/data-contracts/ABIs/SigningLogic.json", function (module, exports) {
3219
- module.exports = require$$1$19;
3221
+ module.exports = require$$1$18;
3220
3222
  });
3221
3223
 
3222
3224
  var contractName$15 = "SigningLogicInitializable";
@@ -3264,14 +3266,14 @@ var abi$15 = [
3264
3266
  type: "function"
3265
3267
  }
3266
3268
  ];
3267
- var require$$1$18 = {
3269
+ var require$$1$17 = {
3268
3270
  contractName: contractName$15,
3269
3271
  abi: abi$15
3270
3272
  };
3271
3273
 
3272
3274
  const commonjsRegister$15 = commonjsRegister$1t;
3273
3275
  commonjsRegister$15("/$$rollup_base$$/data-contracts/ABIs/SigningLogicInitializable.json", function (module, exports) {
3274
- module.exports = require$$1$18;
3276
+ module.exports = require$$1$17;
3275
3277
  });
3276
3278
 
3277
3279
  var contractName$14 = "SocialFeatureFactory";
@@ -3744,14 +3746,14 @@ var abi$14 = [
3744
3746
  type: "function"
3745
3747
  }
3746
3748
  ];
3747
- var require$$1$17 = {
3749
+ var require$$1$16 = {
3748
3750
  contractName: contractName$14,
3749
3751
  abi: abi$14
3750
3752
  };
3751
3753
 
3752
3754
  const commonjsRegister$14 = commonjsRegister$1t;
3753
3755
  commonjsRegister$14("/$$rollup_base$$/data-contracts/ABIs/SocialFeatureFactory.json", function (module, exports) {
3754
- module.exports = require$$1$17;
3756
+ module.exports = require$$1$16;
3755
3757
  });
3756
3758
 
3757
3759
  var contractName$13 = "SocialFeatureStorage";
@@ -3989,14 +3991,14 @@ var abi$13 = [
3989
3991
  type: "function"
3990
3992
  }
3991
3993
  ];
3992
- var require$$1$16 = {
3994
+ var require$$1$15 = {
3993
3995
  contractName: contractName$13,
3994
3996
  abi: abi$13
3995
3997
  };
3996
3998
 
3997
3999
  const commonjsRegister$13 = commonjsRegister$1t;
3998
4000
  commonjsRegister$13("/$$rollup_base$$/data-contracts/ABIs/SocialFeatureStorage.json", function (module, exports) {
3999
- module.exports = require$$1$16;
4001
+ module.exports = require$$1$15;
4000
4002
  });
4001
4003
 
4002
4004
  var contractName$12 = "SocialFeatureStorageInterface";
@@ -4124,14 +4126,14 @@ var abi$12 = [
4124
4126
  type: "function"
4125
4127
  }
4126
4128
  ];
4127
- var require$$1$15 = {
4129
+ var require$$1$14 = {
4128
4130
  contractName: contractName$12,
4129
4131
  abi: abi$12
4130
4132
  };
4131
4133
 
4132
4134
  const commonjsRegister$12 = commonjsRegister$1t;
4133
4135
  commonjsRegister$12("/$$rollup_base$$/data-contracts/ABIs/SocialFeatureStorageInterface.json", function (module, exports) {
4134
- module.exports = require$$1$15;
4136
+ module.exports = require$$1$14;
4135
4137
  });
4136
4138
 
4137
4139
  var contractName$11 = "TestContract";
@@ -4277,14 +4279,14 @@ var abi$11 = [
4277
4279
  type: "function"
4278
4280
  }
4279
4281
  ];
4280
- var require$$1$14 = {
4282
+ var require$$1$13 = {
4281
4283
  contractName: contractName$11,
4282
4284
  abi: abi$11
4283
4285
  };
4284
4286
 
4285
4287
  const commonjsRegister$11 = commonjsRegister$1t;
4286
4288
  commonjsRegister$11("/$$rollup_base$$/data-contracts/ABIs/TestContract.json", function (module, exports) {
4287
- module.exports = require$$1$14;
4289
+ module.exports = require$$1$13;
4288
4290
  });
4289
4291
 
4290
4292
  var contractName$10 = "TestContractInterface";
@@ -4305,14 +4307,14 @@ var abi$10 = [
4305
4307
  type: "function"
4306
4308
  }
4307
4309
  ];
4308
- var require$$1$13 = {
4310
+ var require$$1$12 = {
4309
4311
  contractName: contractName$10,
4310
4312
  abi: abi$10
4311
4313
  };
4312
4314
 
4313
4315
  const commonjsRegister$10 = commonjsRegister$1t;
4314
4316
  commonjsRegister$10("/$$rollup_base$$/data-contracts/ABIs/TestContractInterface.json", function (module, exports) {
4315
- module.exports = require$$1$13;
4317
+ module.exports = require$$1$12;
4316
4318
  });
4317
4319
 
4318
4320
  var contractName$$ = "TestContractWithStorage";
@@ -4487,14 +4489,14 @@ var abi$$ = [
4487
4489
  type: "function"
4488
4490
  }
4489
4491
  ];
4490
- var require$$1$12 = {
4492
+ var require$$1$11 = {
4491
4493
  contractName: contractName$$,
4492
4494
  abi: abi$$
4493
4495
  };
4494
4496
 
4495
4497
  const commonjsRegister$$ = commonjsRegister$1t;
4496
4498
  commonjsRegister$$("/$$rollup_base$$/data-contracts/ABIs/TestContractWithStorage.json", function (module, exports) {
4497
- module.exports = require$$1$12;
4499
+ module.exports = require$$1$11;
4498
4500
  });
4499
4501
 
4500
4502
  var contractName$_ = "TestContractWithStorageInterface";
@@ -4519,14 +4521,14 @@ var abi$_ = [
4519
4521
  type: "function"
4520
4522
  }
4521
4523
  ];
4522
- var require$$1$11 = {
4524
+ var require$$1$10 = {
4523
4525
  contractName: contractName$_,
4524
4526
  abi: abi$_
4525
4527
  };
4526
4528
 
4527
4529
  const commonjsRegister$_ = commonjsRegister$1t;
4528
4530
  commonjsRegister$_("/$$rollup_base$$/data-contracts/ABIs/TestContractWithStorageInterface.json", function (module, exports) {
4529
- module.exports = require$$1$11;
4531
+ module.exports = require$$1$10;
4530
4532
  });
4531
4533
 
4532
4534
  var contractName$Z = "TestStorage";
@@ -4680,14 +4682,14 @@ var abi$Z = [
4680
4682
  type: "function"
4681
4683
  }
4682
4684
  ];
4683
- var require$$1$10 = {
4685
+ var require$$1$$ = {
4684
4686
  contractName: contractName$Z,
4685
4687
  abi: abi$Z
4686
4688
  };
4687
4689
 
4688
4690
  const commonjsRegister$Z = commonjsRegister$1t;
4689
4691
  commonjsRegister$Z("/$$rollup_base$$/data-contracts/ABIs/TestStorage.json", function (module, exports) {
4690
- module.exports = require$$1$10;
4692
+ module.exports = require$$1$$;
4691
4693
  });
4692
4694
 
4693
4695
  var contractName$Y = "TestStorageInterface";
@@ -4731,14 +4733,14 @@ var abi$Y = [
4731
4733
  type: "function"
4732
4734
  }
4733
4735
  ];
4734
- var require$$1$$ = {
4736
+ var require$$1$_ = {
4735
4737
  contractName: contractName$Y,
4736
4738
  abi: abi$Y
4737
4739
  };
4738
4740
 
4739
4741
  const commonjsRegister$Y = commonjsRegister$1t;
4740
4742
  commonjsRegister$Y("/$$rollup_base$$/data-contracts/ABIs/TestStorageInterface.json", function (module, exports) {
4741
- module.exports = require$$1$$;
4743
+ module.exports = require$$1$_;
4742
4744
  });
4743
4745
 
4744
4746
  var contractName$X = "TestUserReplicaSetManager";
@@ -5188,14 +5190,14 @@ var abi$X = [
5188
5190
  type: "function"
5189
5191
  }
5190
5192
  ];
5191
- var require$$1$_ = {
5193
+ var require$$1$Z = {
5192
5194
  contractName: contractName$X,
5193
5195
  abi: abi$X
5194
5196
  };
5195
5197
 
5196
5198
  const commonjsRegister$X = commonjsRegister$1t;
5197
5199
  commonjsRegister$X("/$$rollup_base$$/data-contracts/ABIs/TestUserReplicaSetManager.json", function (module, exports) {
5198
- module.exports = require$$1$_;
5200
+ module.exports = require$$1$Z;
5199
5201
  });
5200
5202
 
5201
5203
  var contractName$W = "TrackFactory";
@@ -5596,14 +5598,14 @@ var abi$W = [
5596
5598
  type: "function"
5597
5599
  }
5598
5600
  ];
5599
- var require$$1$Z = {
5601
+ var require$$1$Y = {
5600
5602
  contractName: contractName$W,
5601
5603
  abi: abi$W
5602
5604
  };
5603
5605
 
5604
5606
  const commonjsRegister$W = commonjsRegister$1t;
5605
5607
  commonjsRegister$W("/$$rollup_base$$/data-contracts/ABIs/TrackFactory.json", function (module, exports) {
5606
- module.exports = require$$1$Z;
5608
+ module.exports = require$$1$Y;
5607
5609
  });
5608
5610
 
5609
5611
  var contractName$V = "TrackFactoryInterface";
@@ -5678,14 +5680,14 @@ var abi$V = [
5678
5680
  type: "function"
5679
5681
  }
5680
5682
  ];
5681
- var require$$1$Y = {
5683
+ var require$$1$X = {
5682
5684
  contractName: contractName$V,
5683
5685
  abi: abi$V
5684
5686
  };
5685
5687
 
5686
5688
  const commonjsRegister$V = commonjsRegister$1t;
5687
5689
  commonjsRegister$V("/$$rollup_base$$/data-contracts/ABIs/TrackFactoryInterface.json", function (module, exports) {
5688
- module.exports = require$$1$Y;
5690
+ module.exports = require$$1$X;
5689
5691
  });
5690
5692
 
5691
5693
  var contractName$U = "TrackStorage";
@@ -5917,14 +5919,14 @@ var abi$U = [
5917
5919
  type: "function"
5918
5920
  }
5919
5921
  ];
5920
- var require$$1$X = {
5922
+ var require$$1$W = {
5921
5923
  contractName: contractName$U,
5922
5924
  abi: abi$U
5923
5925
  };
5924
5926
 
5925
5927
  const commonjsRegister$U = commonjsRegister$1t;
5926
5928
  commonjsRegister$U("/$$rollup_base$$/data-contracts/ABIs/TrackStorage.json", function (module, exports) {
5927
- module.exports = require$$1$X;
5929
+ module.exports = require$$1$W;
5928
5930
  });
5929
5931
 
5930
5932
  var contractName$T = "TrackStorageInterface";
@@ -6046,14 +6048,14 @@ var abi$T = [
6046
6048
  type: "function"
6047
6049
  }
6048
6050
  ];
6049
- var require$$1$W = {
6051
+ var require$$1$V = {
6050
6052
  contractName: contractName$T,
6051
6053
  abi: abi$T
6052
6054
  };
6053
6055
 
6054
6056
  const commonjsRegister$T = commonjsRegister$1t;
6055
6057
  commonjsRegister$T("/$$rollup_base$$/data-contracts/ABIs/TrackStorageInterface.json", function (module, exports) {
6056
- module.exports = require$$1$W;
6058
+ module.exports = require$$1$V;
6057
6059
  });
6058
6060
 
6059
6061
  var contractName$S = "UpgradeabilityProxy";
@@ -6091,14 +6093,14 @@ var abi$S = [
6091
6093
  type: "event"
6092
6094
  }
6093
6095
  ];
6094
- var require$$1$V = {
6096
+ var require$$1$U = {
6095
6097
  contractName: contractName$S,
6096
6098
  abi: abi$S
6097
6099
  };
6098
6100
 
6099
6101
  const commonjsRegister$S = commonjsRegister$1t;
6100
6102
  commonjsRegister$S("/$$rollup_base$$/data-contracts/ABIs/UpgradeabilityProxy.json", function (module, exports) {
6101
- module.exports = require$$1$V;
6103
+ module.exports = require$$1$U;
6102
6104
  });
6103
6105
 
6104
6106
  var contractName$R = "UserFactory";
@@ -6774,14 +6776,14 @@ var abi$R = [
6774
6776
  type: "function"
6775
6777
  }
6776
6778
  ];
6777
- var require$$1$U = {
6779
+ var require$$1$T = {
6778
6780
  contractName: contractName$R,
6779
6781
  abi: abi$R
6780
6782
  };
6781
6783
 
6782
6784
  const commonjsRegister$R = commonjsRegister$1t;
6783
6785
  commonjsRegister$R("/$$rollup_base$$/data-contracts/ABIs/UserFactory.json", function (module, exports) {
6784
- module.exports = require$$1$U;
6786
+ module.exports = require$$1$T;
6785
6787
  });
6786
6788
 
6787
6789
  var contractName$Q = "UserFactoryInterface";
@@ -6848,14 +6850,14 @@ var abi$Q = [
6848
6850
  type: "function"
6849
6851
  }
6850
6852
  ];
6851
- var require$$1$T = {
6853
+ var require$$1$S = {
6852
6854
  contractName: contractName$Q,
6853
6855
  abi: abi$Q
6854
6856
  };
6855
6857
 
6856
6858
  const commonjsRegister$Q = commonjsRegister$1t;
6857
6859
  commonjsRegister$Q("/$$rollup_base$$/data-contracts/ABIs/UserFactoryInterface.json", function (module, exports) {
6858
- module.exports = require$$1$T;
6860
+ module.exports = require$$1$S;
6859
6861
  });
6860
6862
 
6861
6863
  var contractName$P = "UserLibraryFactory";
@@ -7198,14 +7200,14 @@ var abi$P = [
7198
7200
  type: "function"
7199
7201
  }
7200
7202
  ];
7201
- var require$$1$S = {
7203
+ var require$$1$R = {
7202
7204
  contractName: contractName$P,
7203
7205
  abi: abi$P
7204
7206
  };
7205
7207
 
7206
7208
  const commonjsRegister$P = commonjsRegister$1t;
7207
7209
  commonjsRegister$P("/$$rollup_base$$/data-contracts/ABIs/UserLibraryFactory.json", function (module, exports) {
7208
- module.exports = require$$1$S;
7210
+ module.exports = require$$1$R;
7209
7211
  });
7210
7212
 
7211
7213
  var contractName$O = "UserReplicaSetManager";
@@ -7640,14 +7642,14 @@ var abi$O = [
7640
7642
  type: "function"
7641
7643
  }
7642
7644
  ];
7643
- var require$$1$R = {
7645
+ var require$$1$Q = {
7644
7646
  contractName: contractName$O,
7645
7647
  abi: abi$O
7646
7648
  };
7647
7649
 
7648
7650
  const commonjsRegister$O = commonjsRegister$1t;
7649
7651
  commonjsRegister$O("/$$rollup_base$$/data-contracts/ABIs/UserReplicaSetManager.json", function (module, exports) {
7650
- module.exports = require$$1$R;
7652
+ module.exports = require$$1$Q;
7651
7653
  });
7652
7654
 
7653
7655
  var contractName$N = "UserStorage";
@@ -7889,14 +7891,14 @@ var abi$N = [
7889
7891
  type: "function"
7890
7892
  }
7891
7893
  ];
7892
- var require$$1$Q = {
7894
+ var require$$1$P = {
7893
7895
  contractName: contractName$N,
7894
7896
  abi: abi$N
7895
7897
  };
7896
7898
 
7897
7899
  const commonjsRegister$N = commonjsRegister$1t;
7898
7900
  commonjsRegister$N("/$$rollup_base$$/data-contracts/ABIs/UserStorage.json", function (module, exports) {
7899
- module.exports = require$$1$Q;
7901
+ module.exports = require$$1$P;
7900
7902
  });
7901
7903
 
7902
7904
  var contractName$M = "UserStorageInterface";
@@ -7990,27 +7992,27 @@ var abi$M = [
7990
7992
  type: "function"
7991
7993
  }
7992
7994
  ];
7993
- var require$$1$P = {
7995
+ var require$$1$O = {
7994
7996
  contractName: contractName$M,
7995
7997
  abi: abi$M
7996
7998
  };
7997
7999
 
7998
8000
  const commonjsRegister$M = commonjsRegister$1t;
7999
8001
  commonjsRegister$M("/$$rollup_base$$/data-contracts/ABIs/UserStorageInterface.json", function (module, exports) {
8000
- module.exports = require$$1$P;
8002
+ module.exports = require$$1$O;
8001
8003
  });
8002
8004
 
8003
8005
  var contractName$L = "Address";
8004
8006
  var abi$L = [
8005
8007
  ];
8006
- var require$$1$O = {
8008
+ var require$$1$N = {
8007
8009
  contractName: contractName$L,
8008
8010
  abi: abi$L
8009
8011
  };
8010
8012
 
8011
8013
  const commonjsRegister$L = commonjsRegister$1t;
8012
8014
  commonjsRegister$L("/$$rollup_base$$/eth-contracts/ABIs/Address.json", function (module, exports) {
8013
- module.exports = require$$1$O;
8015
+ module.exports = require$$1$N;
8014
8016
  });
8015
8017
 
8016
8018
  var contractName$K = "AudiusAdminUpgradeabilityProxy";
@@ -8120,14 +8122,14 @@ var abi$K = [
8120
8122
  type: "function"
8121
8123
  }
8122
8124
  ];
8123
- var require$$1$N = {
8125
+ var require$$1$M = {
8124
8126
  contractName: contractName$K,
8125
8127
  abi: abi$K
8126
8128
  };
8127
8129
 
8128
8130
  const commonjsRegister$K = commonjsRegister$1t;
8129
8131
  commonjsRegister$K("/$$rollup_base$$/eth-contracts/ABIs/AudiusAdminUpgradeabilityProxy.json", function (module, exports) {
8130
- module.exports = require$$1$N;
8132
+ module.exports = require$$1$M;
8131
8133
  });
8132
8134
 
8133
8135
  var contractName$J = "AudiusClaimDistributor";
@@ -13226,7 +13228,7 @@ var userdoc = {
13226
13228
  },
13227
13229
  notice: "Replicated from (No changes made): https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol"
13228
13230
  };
13229
- var require$$1$M = {
13231
+ var require$$1$L = {
13230
13232
  contractName: contractName$J,
13231
13233
  abi: abi$J,
13232
13234
  metadata: metadata,
@@ -13250,7 +13252,7 @@ var require$$1$M = {
13250
13252
 
13251
13253
  const commonjsRegister$J = commonjsRegister$1t;
13252
13254
  commonjsRegister$J("/$$rollup_base$$/eth-contracts/ABIs/AudiusClaimDistributor.json", function (module, exports) {
13253
- module.exports = require$$1$M;
13255
+ module.exports = require$$1$L;
13254
13256
  });
13255
13257
 
13256
13258
  var contractName$I = "AudiusToken";
@@ -14000,14 +14002,14 @@ var abi$I = [
14000
14002
  type: "function"
14001
14003
  }
14002
14004
  ];
14003
- var require$$1$L = {
14005
+ var require$$1$K = {
14004
14006
  contractName: contractName$I,
14005
14007
  abi: abi$I
14006
14008
  };
14007
14009
 
14008
14010
  const commonjsRegister$I = commonjsRegister$1t;
14009
14011
  commonjsRegister$I("/$$rollup_base$$/eth-contracts/ABIs/AudiusToken.json", function (module, exports) {
14010
- module.exports = require$$1$L;
14012
+ module.exports = require$$1$K;
14011
14013
  });
14012
14014
 
14013
14015
  var contractName$H = "BaseUpgradeabilityProxy";
@@ -14031,27 +14033,27 @@ var abi$H = [
14031
14033
  type: "fallback"
14032
14034
  }
14033
14035
  ];
14034
- var require$$1$K = {
14036
+ var require$$1$J = {
14035
14037
  contractName: contractName$H,
14036
14038
  abi: abi$H
14037
14039
  };
14038
14040
 
14039
14041
  const commonjsRegister$H = commonjsRegister$1t;
14040
14042
  commonjsRegister$H("/$$rollup_base$$/eth-contracts/ABIs/BaseUpgradeabilityProxy.json", function (module, exports) {
14041
- module.exports = require$$1$K;
14043
+ module.exports = require$$1$J;
14042
14044
  });
14043
14045
 
14044
14046
  var contractName$G = "Checkpointing";
14045
14047
  var abi$G = [
14046
14048
  ];
14047
- var require$$1$J = {
14049
+ var require$$1$I = {
14048
14050
  contractName: contractName$G,
14049
14051
  abi: abi$G
14050
14052
  };
14051
14053
 
14052
14054
  const commonjsRegister$G = commonjsRegister$1t;
14053
14055
  commonjsRegister$G("/$$rollup_base$$/eth-contracts/ABIs/Checkpointing.json", function (module, exports) {
14054
- module.exports = require$$1$J;
14056
+ module.exports = require$$1$I;
14055
14057
  });
14056
14058
 
14057
14059
  var contractName$F = "ClaimsManager";
@@ -14614,14 +14616,14 @@ var abi$F = [
14614
14616
  type: "function"
14615
14617
  }
14616
14618
  ];
14617
- var require$$1$I = {
14619
+ var require$$1$H = {
14618
14620
  contractName: contractName$F,
14619
14621
  abi: abi$F
14620
14622
  };
14621
14623
 
14622
14624
  const commonjsRegister$F = commonjsRegister$1t;
14623
14625
  commonjsRegister$F("/$$rollup_base$$/eth-contracts/ABIs/ClaimsManager.json", function (module, exports) {
14624
- module.exports = require$$1$I;
14626
+ module.exports = require$$1$H;
14625
14627
  });
14626
14628
 
14627
14629
  var contractName$E = "Context";
@@ -14634,14 +14636,14 @@ var abi$E = [
14634
14636
  type: "constructor"
14635
14637
  }
14636
14638
  ];
14637
- var require$$1$H = {
14639
+ var require$$1$G = {
14638
14640
  contractName: contractName$E,
14639
14641
  abi: abi$E
14640
14642
  };
14641
14643
 
14642
14644
  const commonjsRegister$E = commonjsRegister$1t;
14643
14645
  commonjsRegister$E("/$$rollup_base$$/eth-contracts/ABIs/Context.json", function (module, exports) {
14644
- module.exports = require$$1$H;
14646
+ module.exports = require$$1$G;
14645
14647
  });
14646
14648
 
14647
14649
  var contractName$D = "DelegateManager";
@@ -15660,14 +15662,14 @@ var abi$D = [
15660
15662
  type: "function"
15661
15663
  }
15662
15664
  ];
15663
- var require$$1$G = {
15665
+ var require$$1$F = {
15664
15666
  contractName: contractName$D,
15665
15667
  abi: abi$D
15666
15668
  };
15667
15669
 
15668
15670
  const commonjsRegister$D = commonjsRegister$1t;
15669
15671
  commonjsRegister$D("/$$rollup_base$$/eth-contracts/ABIs/DelegateManager.json", function (module, exports) {
15670
- module.exports = require$$1$G;
15672
+ module.exports = require$$1$F;
15671
15673
  });
15672
15674
 
15673
15675
  var contractName$C = "DelegateManagerV2";
@@ -16747,14 +16749,14 @@ var abi$C = [
16747
16749
  type: "function"
16748
16750
  }
16749
16751
  ];
16750
- var require$$1$F = {
16752
+ var require$$1$E = {
16751
16753
  contractName: contractName$C,
16752
16754
  abi: abi$C
16753
16755
  };
16754
16756
 
16755
16757
  const commonjsRegister$C = commonjsRegister$1t;
16756
16758
  commonjsRegister$C("/$$rollup_base$$/eth-contracts/ABIs/DelegateManagerV2.json", function (module, exports) {
16757
- module.exports = require$$1$F;
16759
+ module.exports = require$$1$E;
16758
16760
  });
16759
16761
 
16760
16762
  var contractName$B = "DelegateManagerV2Bad";
@@ -17834,14 +17836,14 @@ var abi$B = [
17834
17836
  type: "function"
17835
17837
  }
17836
17838
  ];
17837
- var require$$1$E = {
17839
+ var require$$1$D = {
17838
17840
  contractName: contractName$B,
17839
17841
  abi: abi$B
17840
17842
  };
17841
17843
 
17842
17844
  const commonjsRegister$B = commonjsRegister$1t;
17843
17845
  commonjsRegister$B("/$$rollup_base$$/eth-contracts/ABIs/DelegateManagerV2Bad.json", function (module, exports) {
17844
- module.exports = require$$1$E;
17846
+ module.exports = require$$1$D;
17845
17847
  });
17846
17848
 
17847
17849
  var contractName$A = "ERC20";
@@ -18095,14 +18097,14 @@ var abi$A = [
18095
18097
  type: "function"
18096
18098
  }
18097
18099
  ];
18098
- var require$$1$D = {
18100
+ var require$$1$C = {
18099
18101
  contractName: contractName$A,
18100
18102
  abi: abi$A
18101
18103
  };
18102
18104
 
18103
18105
  const commonjsRegister$A = commonjsRegister$1t;
18104
18106
  commonjsRegister$A("/$$rollup_base$$/eth-contracts/ABIs/ERC20.json", function (module, exports) {
18105
- module.exports = require$$1$D;
18107
+ module.exports = require$$1$C;
18106
18108
  });
18107
18109
 
18108
18110
  var contractName$z = "ERC20Burnable";
@@ -18393,14 +18395,14 @@ var abi$z = [
18393
18395
  type: "function"
18394
18396
  }
18395
18397
  ];
18396
- var require$$1$C = {
18398
+ var require$$1$B = {
18397
18399
  contractName: contractName$z,
18398
18400
  abi: abi$z
18399
18401
  };
18400
18402
 
18401
18403
  const commonjsRegister$z = commonjsRegister$1t;
18402
18404
  commonjsRegister$z("/$$rollup_base$$/eth-contracts/ABIs/ERC20Burnable.json", function (module, exports) {
18403
- module.exports = require$$1$C;
18405
+ module.exports = require$$1$B;
18404
18406
  });
18405
18407
 
18406
18408
  var contractName$y = "ERC20Detailed";
@@ -18676,14 +18678,14 @@ var abi$y = [
18676
18678
  type: "function"
18677
18679
  }
18678
18680
  ];
18679
- var require$$1$B = {
18681
+ var require$$1$A = {
18680
18682
  contractName: contractName$y,
18681
18683
  abi: abi$y
18682
18684
  };
18683
18685
 
18684
18686
  const commonjsRegister$y = commonjsRegister$1t;
18685
18687
  commonjsRegister$y("/$$rollup_base$$/eth-contracts/ABIs/ERC20Detailed.json", function (module, exports) {
18686
- module.exports = require$$1$B;
18688
+ module.exports = require$$1$A;
18687
18689
  });
18688
18690
 
18689
18691
  var contractName$x = "ERC20Mintable";
@@ -19053,14 +19055,14 @@ var abi$x = [
19053
19055
  type: "function"
19054
19056
  }
19055
19057
  ];
19056
- var require$$1$A = {
19058
+ var require$$1$z = {
19057
19059
  contractName: contractName$x,
19058
19060
  abi: abi$x
19059
19061
  };
19060
19062
 
19061
19063
  const commonjsRegister$x = commonjsRegister$1t;
19062
19064
  commonjsRegister$x("/$$rollup_base$$/eth-contracts/ABIs/ERC20Mintable.json", function (module, exports) {
19063
- module.exports = require$$1$A;
19065
+ module.exports = require$$1$z;
19064
19066
  });
19065
19067
 
19066
19068
  var contractName$w = "ERC20Pausable";
@@ -19468,14 +19470,14 @@ var abi$w = [
19468
19470
  type: "function"
19469
19471
  }
19470
19472
  ];
19471
- var require$$1$z = {
19473
+ var require$$1$y = {
19472
19474
  contractName: contractName$w,
19473
19475
  abi: abi$w
19474
19476
  };
19475
19477
 
19476
19478
  const commonjsRegister$w = commonjsRegister$1t;
19477
19479
  commonjsRegister$w("/$$rollup_base$$/eth-contracts/ABIs/ERC20Pausable.json", function (module, exports) {
19478
- module.exports = require$$1$z;
19480
+ module.exports = require$$1$y;
19479
19481
  });
19480
19482
 
19481
19483
  var contractName$v = "EthRewardsManager";
@@ -19661,14 +19663,14 @@ var abi$v = [
19661
19663
  type: "function"
19662
19664
  }
19663
19665
  ];
19664
- var require$$1$y = {
19666
+ var require$$1$x = {
19665
19667
  contractName: contractName$v,
19666
19668
  abi: abi$v
19667
19669
  };
19668
19670
 
19669
19671
  const commonjsRegister$v = commonjsRegister$1t;
19670
19672
  commonjsRegister$v("/$$rollup_base$$/eth-contracts/ABIs/EthRewardsManager.json", function (module, exports) {
19671
- module.exports = require$$1$y;
19673
+ module.exports = require$$1$x;
19672
19674
  });
19673
19675
 
19674
19676
  var contractName$u = "Governance";
@@ -20635,14 +20637,14 @@ var abi$u = [
20635
20637
  type: "function"
20636
20638
  }
20637
20639
  ];
20638
- var require$$1$x = {
20640
+ var require$$1$w = {
20639
20641
  contractName: contractName$u,
20640
20642
  abi: abi$u
20641
20643
  };
20642
20644
 
20643
20645
  const commonjsRegister$u = commonjsRegister$1t;
20644
20646
  commonjsRegister$u("/$$rollup_base$$/eth-contracts/ABIs/Governance.json", function (module, exports) {
20645
- module.exports = require$$1$x;
20647
+ module.exports = require$$1$w;
20646
20648
  });
20647
20649
 
20648
20650
  var contractName$t = "GovernanceUpgraded";
@@ -21625,14 +21627,14 @@ var abi$t = [
21625
21627
  type: "function"
21626
21628
  }
21627
21629
  ];
21628
- var require$$1$w = {
21630
+ var require$$1$v = {
21629
21631
  contractName: contractName$t,
21630
21632
  abi: abi$t
21631
21633
  };
21632
21634
 
21633
21635
  const commonjsRegister$t = commonjsRegister$1t;
21634
21636
  commonjsRegister$t("/$$rollup_base$$/eth-contracts/ABIs/GovernanceUpgraded.json", function (module, exports) {
21635
- module.exports = require$$1$w;
21637
+ module.exports = require$$1$v;
21636
21638
  });
21637
21639
 
21638
21640
  var contractName$s = "GovernanceV2";
@@ -22599,14 +22601,14 @@ var abi$s = [
22599
22601
  type: "function"
22600
22602
  }
22601
22603
  ];
22602
- var require$$1$v = {
22604
+ var require$$1$u = {
22603
22605
  contractName: contractName$s,
22604
22606
  abi: abi$s
22605
22607
  };
22606
22608
 
22607
22609
  const commonjsRegister$s = commonjsRegister$1t;
22608
22610
  commonjsRegister$s("/$$rollup_base$$/eth-contracts/ABIs/GovernanceV2.json", function (module, exports) {
22609
- module.exports = require$$1$v;
22611
+ module.exports = require$$1$u;
22610
22612
  });
22611
22613
 
22612
22614
  var contractName$r = "IERC20";
@@ -22808,27 +22810,27 @@ var abi$r = [
22808
22810
  type: "function"
22809
22811
  }
22810
22812
  ];
22811
- var require$$1$u = {
22813
+ var require$$1$t = {
22812
22814
  contractName: contractName$r,
22813
22815
  abi: abi$r
22814
22816
  };
22815
22817
 
22816
22818
  const commonjsRegister$r = commonjsRegister$1t;
22817
22819
  commonjsRegister$r("/$$rollup_base$$/eth-contracts/ABIs/IERC20.json", function (module, exports) {
22818
- module.exports = require$$1$u;
22820
+ module.exports = require$$1$t;
22819
22821
  });
22820
22822
 
22821
22823
  var contractName$q = "Initializable";
22822
22824
  var abi$q = [
22823
22825
  ];
22824
- var require$$1$t = {
22826
+ var require$$1$s = {
22825
22827
  contractName: contractName$q,
22826
22828
  abi: abi$q
22827
22829
  };
22828
22830
 
22829
22831
  const commonjsRegister$q = commonjsRegister$1t;
22830
22832
  commonjsRegister$q("/$$rollup_base$$/eth-contracts/ABIs/Initializable.json", function (module, exports) {
22831
- module.exports = require$$1$t;
22833
+ module.exports = require$$1$s;
22832
22834
  });
22833
22835
 
22834
22836
  var contractName$p = "InitializableV2";
@@ -22845,14 +22847,14 @@ var abi$p = [
22845
22847
  type: "function"
22846
22848
  }
22847
22849
  ];
22848
- var require$$1$s = {
22850
+ var require$$1$r = {
22849
22851
  contractName: contractName$p,
22850
22852
  abi: abi$p
22851
22853
  };
22852
22854
 
22853
22855
  const commonjsRegister$p = commonjsRegister$1t;
22854
22856
  commonjsRegister$p("/$$rollup_base$$/eth-contracts/ABIs/InitializableV2.json", function (module, exports) {
22855
- module.exports = require$$1$s;
22857
+ module.exports = require$$1$r;
22856
22858
  });
22857
22859
 
22858
22860
  var contractName$o = "Migrations";
@@ -22929,14 +22931,14 @@ var abi$o = [
22929
22931
  type: "function"
22930
22932
  }
22931
22933
  ];
22932
- var require$$1$r = {
22934
+ var require$$1$q = {
22933
22935
  contractName: contractName$o,
22934
22936
  abi: abi$o
22935
22937
  };
22936
22938
 
22937
22939
  const commonjsRegister$o = commonjsRegister$1t;
22938
22940
  commonjsRegister$o("/$$rollup_base$$/eth-contracts/ABIs/Migrations.json", function (module, exports) {
22939
- module.exports = require$$1$r;
22941
+ module.exports = require$$1$q;
22940
22942
  });
22941
22943
 
22942
22944
  var contractName$n = "MinterRole";
@@ -23032,14 +23034,14 @@ var abi$n = [
23032
23034
  type: "function"
23033
23035
  }
23034
23036
  ];
23035
- var require$$1$q = {
23037
+ var require$$1$p = {
23036
23038
  contractName: contractName$n,
23037
23039
  abi: abi$n
23038
23040
  };
23039
23041
 
23040
23042
  const commonjsRegister$n = commonjsRegister$1t;
23041
23043
  commonjsRegister$n("/$$rollup_base$$/eth-contracts/ABIs/MinterRole.json", function (module, exports) {
23042
- module.exports = require$$1$q;
23044
+ module.exports = require$$1$p;
23043
23045
  });
23044
23046
 
23045
23047
  var contractName$m = "MockAccount";
@@ -23105,14 +23107,14 @@ var abi$m = [
23105
23107
  type: "function"
23106
23108
  }
23107
23109
  ];
23108
- var require$$1$p = {
23110
+ var require$$1$o = {
23109
23111
  contractName: contractName$m,
23110
23112
  abi: abi$m
23111
23113
  };
23112
23114
 
23113
23115
  const commonjsRegister$m = commonjsRegister$1t;
23114
23116
  commonjsRegister$m("/$$rollup_base$$/eth-contracts/ABIs/MockAccount.json", function (module, exports) {
23115
- module.exports = require$$1$p;
23117
+ module.exports = require$$1$o;
23116
23118
  });
23117
23119
 
23118
23120
  var contractName$l = "MockDelegateManager";
@@ -23171,14 +23173,14 @@ var abi$l = [
23171
23173
  type: "function"
23172
23174
  }
23173
23175
  ];
23174
- var require$$1$o = {
23176
+ var require$$1$n = {
23175
23177
  contractName: contractName$l,
23176
23178
  abi: abi$l
23177
23179
  };
23178
23180
 
23179
23181
  const commonjsRegister$l = commonjsRegister$1t;
23180
23182
  commonjsRegister$l("/$$rollup_base$$/eth-contracts/ABIs/MockDelegateManager.json", function (module, exports) {
23181
- module.exports = require$$1$o;
23183
+ module.exports = require$$1$n;
23182
23184
  });
23183
23185
 
23184
23186
  var contractName$k = "MockStakingCaller";
@@ -23453,14 +23455,14 @@ var abi$k = [
23453
23455
  type: "function"
23454
23456
  }
23455
23457
  ];
23456
- var require$$1$n = {
23458
+ var require$$1$m = {
23457
23459
  contractName: contractName$k,
23458
23460
  abi: abi$k
23459
23461
  };
23460
23462
 
23461
23463
  const commonjsRegister$k = commonjsRegister$1t;
23462
23464
  commonjsRegister$k("/$$rollup_base$$/eth-contracts/ABIs/MockStakingCaller.json", function (module, exports) {
23463
- module.exports = require$$1$n;
23465
+ module.exports = require$$1$m;
23464
23466
  });
23465
23467
 
23466
23468
  var contractName$j = "MockWormhole";
@@ -23568,27 +23570,27 @@ var abi$j = [
23568
23570
  type: "function"
23569
23571
  }
23570
23572
  ];
23571
- var require$$1$m = {
23573
+ var require$$1$l = {
23572
23574
  contractName: contractName$j,
23573
23575
  abi: abi$j
23574
23576
  };
23575
23577
 
23576
23578
  const commonjsRegister$j = commonjsRegister$1t;
23577
23579
  commonjsRegister$j("/$$rollup_base$$/eth-contracts/ABIs/MockWormhole.json", function (module, exports) {
23578
- module.exports = require$$1$m;
23580
+ module.exports = require$$1$l;
23579
23581
  });
23580
23582
 
23581
23583
  var contractName$i = "OpenZeppelinUpgradesAddress";
23582
23584
  var abi$i = [
23583
23585
  ];
23584
- var require$$1$l = {
23586
+ var require$$1$k = {
23585
23587
  contractName: contractName$i,
23586
23588
  abi: abi$i
23587
23589
  };
23588
23590
 
23589
23591
  const commonjsRegister$i = commonjsRegister$1t;
23590
23592
  commonjsRegister$i("/$$rollup_base$$/eth-contracts/ABIs/OpenZeppelinUpgradesAddress.json", function (module, exports) {
23591
- module.exports = require$$1$l;
23593
+ module.exports = require$$1$k;
23592
23594
  });
23593
23595
 
23594
23596
  var contractName$h = "Ownable";
@@ -23688,14 +23690,14 @@ var abi$h = [
23688
23690
  type: "function"
23689
23691
  }
23690
23692
  ];
23691
- var require$$1$k = {
23693
+ var require$$1$j = {
23692
23694
  contractName: contractName$h,
23693
23695
  abi: abi$h
23694
23696
  };
23695
23697
 
23696
23698
  const commonjsRegister$h = commonjsRegister$1t;
23697
23699
  commonjsRegister$h("/$$rollup_base$$/eth-contracts/ABIs/Ownable.json", function (module, exports) {
23698
- module.exports = require$$1$k;
23700
+ module.exports = require$$1$j;
23699
23701
  });
23700
23702
 
23701
23703
  var contractName$g = "Pausable";
@@ -23855,14 +23857,14 @@ var abi$g = [
23855
23857
  type: "function"
23856
23858
  }
23857
23859
  ];
23858
- var require$$1$j = {
23860
+ var require$$1$i = {
23859
23861
  contractName: contractName$g,
23860
23862
  abi: abi$g
23861
23863
  };
23862
23864
 
23863
23865
  const commonjsRegister$g = commonjsRegister$1t;
23864
23866
  commonjsRegister$g("/$$rollup_base$$/eth-contracts/ABIs/Pausable.json", function (module, exports) {
23865
- module.exports = require$$1$j;
23867
+ module.exports = require$$1$i;
23866
23868
  });
23867
23869
 
23868
23870
  var contractName$f = "PauserRole";
@@ -23958,14 +23960,14 @@ var abi$f = [
23958
23960
  type: "function"
23959
23961
  }
23960
23962
  ];
23961
- var require$$1$i = {
23963
+ var require$$1$h = {
23962
23964
  contractName: contractName$f,
23963
23965
  abi: abi$f
23964
23966
  };
23965
23967
 
23966
23968
  const commonjsRegister$f = commonjsRegister$1t;
23967
23969
  commonjsRegister$f("/$$rollup_base$$/eth-contracts/ABIs/PauserRole.json", function (module, exports) {
23968
- module.exports = require$$1$i;
23970
+ module.exports = require$$1$h;
23969
23971
  });
23970
23972
 
23971
23973
  var contractName$e = "Proxy";
@@ -23976,14 +23978,14 @@ var abi$e = [
23976
23978
  type: "fallback"
23977
23979
  }
23978
23980
  ];
23979
- var require$$1$h = {
23981
+ var require$$1$g = {
23980
23982
  contractName: contractName$e,
23981
23983
  abi: abi$e
23982
23984
  };
23983
23985
 
23984
23986
  const commonjsRegister$e = commonjsRegister$1t;
23985
23987
  commonjsRegister$e("/$$rollup_base$$/eth-contracts/ABIs/Proxy.json", function (module, exports) {
23986
- module.exports = require$$1$h;
23988
+ module.exports = require$$1$g;
23987
23989
  });
23988
23990
 
23989
23991
  var contractName$d = "Registry";
@@ -24283,53 +24285,53 @@ var abi$d = [
24283
24285
  type: "function"
24284
24286
  }
24285
24287
  ];
24286
- var require$$1$g = {
24288
+ var require$$1$f = {
24287
24289
  contractName: contractName$d,
24288
24290
  abi: abi$d
24289
24291
  };
24290
24292
 
24291
24293
  const commonjsRegister$d = commonjsRegister$1t;
24292
24294
  commonjsRegister$d("/$$rollup_base$$/eth-contracts/ABIs/Registry.json", function (module, exports) {
24293
- module.exports = require$$1$g;
24295
+ module.exports = require$$1$f;
24294
24296
  });
24295
24297
 
24296
24298
  var contractName$c = "Roles";
24297
24299
  var abi$c = [
24298
24300
  ];
24299
- var require$$1$f = {
24301
+ var require$$1$e = {
24300
24302
  contractName: contractName$c,
24301
24303
  abi: abi$c
24302
24304
  };
24303
24305
 
24304
24306
  const commonjsRegister$c = commonjsRegister$1t;
24305
24307
  commonjsRegister$c("/$$rollup_base$$/eth-contracts/ABIs/Roles.json", function (module, exports) {
24306
- module.exports = require$$1$f;
24308
+ module.exports = require$$1$e;
24307
24309
  });
24308
24310
 
24309
24311
  var contractName$b = "SafeERC20";
24310
24312
  var abi$b = [
24311
24313
  ];
24312
- var require$$1$e = {
24314
+ var require$$1$d = {
24313
24315
  contractName: contractName$b,
24314
24316
  abi: abi$b
24315
24317
  };
24316
24318
 
24317
24319
  const commonjsRegister$b = commonjsRegister$1t;
24318
24320
  commonjsRegister$b("/$$rollup_base$$/eth-contracts/ABIs/SafeERC20.json", function (module, exports) {
24319
- module.exports = require$$1$e;
24321
+ module.exports = require$$1$d;
24320
24322
  });
24321
24323
 
24322
24324
  var contractName$a = "SafeMath";
24323
24325
  var abi$a = [
24324
24326
  ];
24325
- var require$$1$d = {
24327
+ var require$$1$c = {
24326
24328
  contractName: contractName$a,
24327
24329
  abi: abi$a
24328
24330
  };
24329
24331
 
24330
24332
  const commonjsRegister$a = commonjsRegister$1t;
24331
24333
  commonjsRegister$a("/$$rollup_base$$/eth-contracts/ABIs/SafeMath.json", function (module, exports) {
24332
- module.exports = require$$1$d;
24334
+ module.exports = require$$1$c;
24333
24335
  });
24334
24336
 
24335
24337
  var contractName$9 = "ServiceProviderFactory";
@@ -25509,14 +25511,14 @@ var abi$9 = [
25509
25511
  type: "function"
25510
25512
  }
25511
25513
  ];
25512
- var require$$1$c = {
25514
+ var require$$1$b = {
25513
25515
  contractName: contractName$9,
25514
25516
  abi: abi$9
25515
25517
  };
25516
25518
 
25517
25519
  const commonjsRegister$9 = commonjsRegister$1t;
25518
25520
  commonjsRegister$9("/$$rollup_base$$/eth-contracts/ABIs/ServiceProviderFactory.json", function (module, exports) {
25519
- module.exports = require$$1$c;
25521
+ module.exports = require$$1$b;
25520
25522
  });
25521
25523
 
25522
25524
  var contractName$8 = "ServiceTypeManager";
@@ -25863,14 +25865,14 @@ var abi$8 = [
25863
25865
  type: "function"
25864
25866
  }
25865
25867
  ];
25866
- var require$$1$b = {
25868
+ var require$$1$a = {
25867
25869
  contractName: contractName$8,
25868
25870
  abi: abi$8
25869
25871
  };
25870
25872
 
25871
25873
  const commonjsRegister$8 = commonjsRegister$1t;
25872
25874
  commonjsRegister$8("/$$rollup_base$$/eth-contracts/ABIs/ServiceTypeManager.json", function (module, exports) {
25873
- module.exports = require$$1$b;
25875
+ module.exports = require$$1$a;
25874
25876
  });
25875
25877
 
25876
25878
  var contractName$7 = "Staking";
@@ -26447,14 +26449,14 @@ var abi$7 = [
26447
26449
  type: "function"
26448
26450
  }
26449
26451
  ];
26450
- var require$$1$a = {
26452
+ var require$$1$9 = {
26451
26453
  contractName: contractName$7,
26452
26454
  abi: abi$7
26453
26455
  };
26454
26456
 
26455
26457
  const commonjsRegister$7 = commonjsRegister$1t;
26456
26458
  commonjsRegister$7("/$$rollup_base$$/eth-contracts/ABIs/Staking.json", function (module, exports) {
26457
- module.exports = require$$1$a;
26459
+ module.exports = require$$1$9;
26458
26460
  });
26459
26461
 
26460
26462
  var contractName$6 = "StakingUpgraded";
@@ -27047,14 +27049,14 @@ var abi$6 = [
27047
27049
  type: "function"
27048
27050
  }
27049
27051
  ];
27050
- var require$$1$9 = {
27052
+ var require$$1$8 = {
27051
27053
  contractName: contractName$6,
27052
27054
  abi: abi$6
27053
27055
  };
27054
27056
 
27055
27057
  const commonjsRegister$6 = commonjsRegister$1t;
27056
27058
  commonjsRegister$6("/$$rollup_base$$/eth-contracts/ABIs/StakingUpgraded.json", function (module, exports) {
27057
- module.exports = require$$1$9;
27059
+ module.exports = require$$1$8;
27058
27060
  });
27059
27061
 
27060
27062
  var contractName$5 = "TestContract";
@@ -27103,14 +27105,14 @@ var abi$5 = [
27103
27105
  type: "function"
27104
27106
  }
27105
27107
  ];
27106
- var require$$1$8 = {
27108
+ var require$$1$7 = {
27107
27109
  contractName: contractName$5,
27108
27110
  abi: abi$5
27109
27111
  };
27110
27112
 
27111
27113
  const commonjsRegister$5 = commonjsRegister$1t;
27112
27114
  commonjsRegister$5("/$$rollup_base$$/eth-contracts/ABIs/TestContract.json", function (module, exports) {
27113
- module.exports = require$$1$8;
27115
+ module.exports = require$$1$7;
27114
27116
  });
27115
27117
 
27116
27118
  var contractName$4 = "TrustedNotifierManager";
@@ -27382,27 +27384,27 @@ var abi$4 = [
27382
27384
  type: "function"
27383
27385
  }
27384
27386
  ];
27385
- var require$$1$7 = {
27387
+ var require$$1$6 = {
27386
27388
  contractName: contractName$4,
27387
27389
  abi: abi$4
27388
27390
  };
27389
27391
 
27390
27392
  const commonjsRegister$4 = commonjsRegister$1t;
27391
27393
  commonjsRegister$4("/$$rollup_base$$/eth-contracts/ABIs/TrustedNotifierManager.json", function (module, exports) {
27392
- module.exports = require$$1$7;
27394
+ module.exports = require$$1$6;
27393
27395
  });
27394
27396
 
27395
27397
  var contractName$3 = "Uint256Helpers";
27396
27398
  var abi$3 = [
27397
27399
  ];
27398
- var require$$1$6 = {
27400
+ var require$$1$5 = {
27399
27401
  contractName: contractName$3,
27400
27402
  abi: abi$3
27401
27403
  };
27402
27404
 
27403
27405
  const commonjsRegister$3 = commonjsRegister$1t;
27404
27406
  commonjsRegister$3("/$$rollup_base$$/eth-contracts/ABIs/Uint256Helpers.json", function (module, exports) {
27405
- module.exports = require$$1$6;
27407
+ module.exports = require$$1$5;
27406
27408
  });
27407
27409
 
27408
27410
  var contractName$2 = "UpgradeabilityProxy";
@@ -27443,14 +27445,14 @@ var abi$2 = [
27443
27445
  type: "fallback"
27444
27446
  }
27445
27447
  ];
27446
- var require$$1$5 = {
27448
+ var require$$1$4 = {
27447
27449
  contractName: contractName$2,
27448
27450
  abi: abi$2
27449
27451
  };
27450
27452
 
27451
27453
  const commonjsRegister$2 = commonjsRegister$1t;
27452
27454
  commonjsRegister$2("/$$rollup_base$$/eth-contracts/ABIs/UpgradeabilityProxy.json", function (module, exports) {
27453
- module.exports = require$$1$5;
27455
+ module.exports = require$$1$4;
27454
27456
  });
27455
27457
 
27456
27458
  var contractName$1 = "Wormhole";
@@ -27497,14 +27499,14 @@ var abi$1 = [
27497
27499
  type: "function"
27498
27500
  }
27499
27501
  ];
27500
- var require$$1$4 = {
27502
+ var require$$1$3 = {
27501
27503
  contractName: contractName$1,
27502
27504
  abi: abi$1
27503
27505
  };
27504
27506
 
27505
27507
  const commonjsRegister$1 = commonjsRegister$1t;
27506
27508
  commonjsRegister$1("/$$rollup_base$$/eth-contracts/ABIs/Wormhole.json", function (module, exports) {
27507
- module.exports = require$$1$4;
27509
+ module.exports = require$$1$3;
27508
27510
  });
27509
27511
 
27510
27512
  var contractName = "WormholeClient";
@@ -27667,14 +27669,14 @@ var abi = [
27667
27669
  type: "function"
27668
27670
  }
27669
27671
  ];
27670
- var require$$1$3 = {
27672
+ var require$$1$2 = {
27671
27673
  contractName: contractName,
27672
27674
  abi: abi
27673
27675
  };
27674
27676
 
27675
27677
  const commonjsRegister = commonjsRegister$1t;
27676
27678
  commonjsRegister("/$$rollup_base$$/eth-contracts/ABIs/WormholeClient.json", function (module, exports) {
27677
- module.exports = require$$1$3;
27679
+ module.exports = require$$1$2;
27678
27680
  });
27679
27681
 
27680
27682
  function _asyncIterator(iterable) {
@@ -28123,14 +28125,14 @@ var _rollup_plugin_ignore_empty_module_placeholder = /*#__PURE__*/Object.freeze(
28123
28125
  'default': Web3$1
28124
28126
  });
28125
28127
 
28126
- var require$$0$6 = /*@__PURE__*/getAugmentedNamespace(_rollup_plugin_ignore_empty_module_placeholder);
28128
+ var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(_rollup_plugin_ignore_empty_module_placeholder);
28127
28129
 
28128
28130
  var Web3;
28129
28131
 
28130
28132
  if (typeof window !== 'undefined' && window && window.Web3) {
28131
28133
  Web3 = window.Web3;
28132
28134
  } else {
28133
- Web3 = require$$0$6;
28135
+ Web3 = require$$0$5;
28134
28136
  }
28135
28137
 
28136
28138
  var web3 = Web3;
@@ -29702,7 +29704,7 @@ function write (buffer, value, offset, isLE, mLen, nBytes) {
29702
29704
 
29703
29705
  var toString = {}.toString;
29704
29706
 
29705
- var isArray$2 = Array.isArray || function (arr) {
29707
+ var isArray$1 = Array.isArray || function (arr) {
29706
29708
  return toString.call(arr) == '[object Array]';
29707
29709
  };
29708
29710
 
@@ -29977,7 +29979,7 @@ function fromObject (that, obj) {
29977
29979
  return fromArrayLike(that, obj)
29978
29980
  }
29979
29981
 
29980
- if (obj.type === 'Buffer' && isArray$2(obj.data)) {
29982
+ if (obj.type === 'Buffer' && isArray$1(obj.data)) {
29981
29983
  return fromArrayLike(that, obj.data)
29982
29984
  }
29983
29985
  }
@@ -30042,7 +30044,7 @@ Buffer$8.isEncoding = function isEncoding (encoding) {
30042
30044
  };
30043
30045
 
30044
30046
  Buffer$8.concat = function concat (list, length) {
30045
- if (!isArray$2(list)) {
30047
+ if (!isArray$1(list)) {
30046
30048
  throw new TypeError('"list" argument must be an Array of Buffers')
30047
30049
  }
30048
30050
 
@@ -32431,12 +32433,7 @@ var importContractABI = {
32431
32433
  importEthContractABIs: importEthContractABIs
32432
32434
  };
32433
32435
 
32434
- var fs$1 = {};
32435
-
32436
- var _polyfillNode_fs = /*#__PURE__*/Object.freeze({
32437
- __proto__: null,
32438
- 'default': fs$1
32439
- });
32436
+ var fs = {};
32440
32437
 
32441
32438
  var process = commonjsGlobal.process;
32442
32439
 
@@ -32646,7 +32643,7 @@ var fileHasher = {
32646
32643
  case 2:
32647
32644
  _context7.prev = 2;
32648
32645
 
32649
- if (!(content instanceof require$$0$7.Stream.Readable)) {
32646
+ if (!(content instanceof require$$0$6.Stream.Readable)) {
32650
32647
  _context7.next = 8;
32651
32648
  break;
32652
32649
  }
@@ -32669,7 +32666,7 @@ var fileHasher = {
32669
32666
  break;
32670
32667
 
32671
32668
  case 8:
32672
- fsReadFile = util$1.promisify(fs$1.readFile);
32669
+ fsReadFile = util$1.promisify(fs.readFile);
32673
32670
  _context7.next = 11;
32674
32671
  return fsReadFile(content);
32675
32672
 
@@ -35692,7 +35689,7 @@ function compare(a, b) {
35692
35689
  }
35693
35690
  var hasOwn = Object.prototype.hasOwnProperty;
35694
35691
 
35695
- var objectKeys$2 = Object.keys || function (obj) {
35692
+ var objectKeys$1 = Object.keys || function (obj) {
35696
35693
  var keys = [];
35697
35694
  for (var key in obj) {
35698
35695
  if (hasOwn.call(obj, key)) keys.push(key);
@@ -35975,8 +35972,8 @@ function objEquiv(a, b, strict, actualVisitedObjects) {
35975
35972
  b = pSlice.call(b);
35976
35973
  return _deepEqual(a, b, strict);
35977
35974
  }
35978
- var ka = objectKeys$2(a);
35979
- var kb = objectKeys$2(b);
35975
+ var ka = objectKeys$1(a);
35976
+ var kb = objectKeys$1(b);
35980
35977
  var key, i;
35981
35978
  // having the same number of owned properties (keys incorporates
35982
35979
  // hasOwnProperty)
@@ -43199,12 +43196,12 @@ var bn_js_1$2 = __importDefault$8(bn$2.exports);
43199
43196
  **/
43200
43197
 
43201
43198
 
43202
- function encode$1(input) {
43199
+ function encode(input) {
43203
43200
  if (Array.isArray(input)) {
43204
43201
  var output = [];
43205
43202
 
43206
43203
  for (var i = 0; i < input.length; i++) {
43207
- output.push(encode$1(input[i]));
43204
+ output.push(encode(input[i]));
43208
43205
  }
43209
43206
 
43210
43207
  var buf = Buffer$8.concat(output);
@@ -43215,7 +43212,7 @@ function encode$1(input) {
43215
43212
  }
43216
43213
  }
43217
43214
 
43218
- dist$7.encode = encode$1;
43215
+ dist$7.encode = encode;
43219
43216
  /**
43220
43217
  * Parse integers. Check if there is no leading zeros
43221
43218
  * @param v The value to parse
@@ -43585,7 +43582,7 @@ externals$1.rlp = rlp$3;
43585
43582
 
43586
43583
  var account$3 = {};
43587
43584
 
43588
- var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_assert);
43585
+ var require$$0$4 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_assert);
43589
43586
 
43590
43587
  var secp256k1$4 = {};
43591
43588
 
@@ -43598,9 +43595,9 @@ var _polyfillNode_crypto$1 = /*#__PURE__*/Object.freeze({
43598
43595
  'default': _polyfillNode_crypto
43599
43596
  });
43600
43597
 
43601
- var require$$0$4 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_crypto$1);
43598
+ var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_crypto$1);
43602
43599
 
43603
- var randombytes$1 = require$$0$4.randomBytes;
43600
+ var randombytes$1 = require$$0$3.randomBytes;
43604
43601
 
43605
43602
  Object.defineProperty(random, "__esModule", {
43606
43603
  value: true
@@ -44997,7 +44994,7 @@ var _polyfillNode_events = /*#__PURE__*/Object.freeze({
44997
44994
  EventEmitter: EventEmitter
44998
44995
  });
44999
44996
 
45000
- var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_events);
44997
+ var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_events);
45001
44998
 
45002
44999
  var stream = require$$0__default$1["default"];
45003
45000
 
@@ -45369,7 +45366,7 @@ var destroy_1 = {
45369
45366
  errorOrDestroy: errorOrDestroy$2
45370
45367
  };
45371
45368
 
45372
- var errors$1 = {};
45369
+ var errors = {};
45373
45370
 
45374
45371
  var codes = {};
45375
45372
 
@@ -45495,9 +45492,9 @@ createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
45495
45492
  return 'Unknown encoding: ' + arg;
45496
45493
  }, TypeError);
45497
45494
  createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
45498
- errors$1.codes = codes;
45495
+ errors.codes = codes;
45499
45496
 
45500
- var ERR_INVALID_OPT_VALUE = errors$1.codes.ERR_INVALID_OPT_VALUE;
45497
+ var ERR_INVALID_OPT_VALUE = errors.codes.ERR_INVALID_OPT_VALUE;
45501
45498
 
45502
45499
  function highWaterMarkFrom(options, isDuplex, duplexKey) {
45503
45500
  return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
@@ -45579,7 +45576,7 @@ function _isUint8Array$1(obj) {
45579
45576
  var destroyImpl$1 = destroy_1;
45580
45577
  var _require$1 = state,
45581
45578
  getHighWaterMark$1 = _require$1.getHighWaterMark;
45582
- var _require$codes$3 = errors$1.codes,
45579
+ var _require$codes$3 = errors.codes,
45583
45580
  ERR_INVALID_ARG_TYPE$2 = _require$codes$3.ERR_INVALID_ARG_TYPE,
45584
45581
  ERR_METHOD_NOT_IMPLEMENTED$2 = _require$codes$3.ERR_METHOD_NOT_IMPLEMENTED,
45585
45582
  ERR_MULTIPLE_CALLBACK$1 = _require$codes$3.ERR_MULTIPLE_CALLBACK,
@@ -46192,7 +46189,7 @@ Writable$1.prototype._destroy = function (err, cb) {
46192
46189
  /*<replacement>*/
46193
46190
 
46194
46191
 
46195
- var objectKeys$1 = Object.keys || function (obj) {
46192
+ var objectKeys = Object.keys || function (obj) {
46196
46193
  var keys = [];
46197
46194
 
46198
46195
  for (var key in obj) {
@@ -46210,7 +46207,7 @@ var Writable = _stream_writable;
46210
46207
  inherits.exports(Duplex$2, Readable$1);
46211
46208
  {
46212
46209
  // Allow the keys array to be GC'ed.
46213
- var keys = objectKeys$1(Writable.prototype);
46210
+ var keys = objectKeys(Writable.prototype);
46214
46211
 
46215
46212
  for (var v = 0; v < keys.length; v++) {
46216
46213
  var method = keys[v];
@@ -46622,7 +46619,7 @@ function simpleEnd(buf) {
46622
46619
  return buf && buf.length ? this.write(buf) : '';
46623
46620
  }
46624
46621
 
46625
- var ERR_STREAM_PREMATURE_CLOSE = errors$1.codes.ERR_STREAM_PREMATURE_CLOSE;
46622
+ var ERR_STREAM_PREMATURE_CLOSE = errors.codes.ERR_STREAM_PREMATURE_CLOSE;
46626
46623
 
46627
46624
  function once$1(callback) {
46628
46625
  var called = false;
@@ -47026,7 +47023,7 @@ function _defineProperty(obj, key, value) {
47026
47023
  return obj;
47027
47024
  }
47028
47025
 
47029
- var ERR_INVALID_ARG_TYPE$1 = errors$1.codes.ERR_INVALID_ARG_TYPE;
47026
+ var ERR_INVALID_ARG_TYPE$1 = errors.codes.ERR_INVALID_ARG_TYPE;
47030
47027
 
47031
47028
  function from$1(Readable, iterable, opts) {
47032
47029
  var iterator;
@@ -47132,7 +47129,7 @@ var Duplex$1;
47132
47129
  Readable.ReadableState = ReadableState;
47133
47130
  /*<replacement>*/
47134
47131
 
47135
- require$$0$3.EventEmitter;
47132
+ require$$0$2.EventEmitter;
47136
47133
 
47137
47134
  var EElistenerCount = function EElistenerCount(emitter, type) {
47138
47135
  return emitter.listeners(type).length;
@@ -47174,7 +47171,7 @@ var BufferList = buffer_list;
47174
47171
  var destroyImpl = destroy_1;
47175
47172
  var _require = state,
47176
47173
  getHighWaterMark = _require.getHighWaterMark;
47177
- var _require$codes$2 = errors$1.codes,
47174
+ var _require$codes$2 = errors.codes,
47178
47175
  ERR_INVALID_ARG_TYPE = _require$codes$2.ERR_INVALID_ARG_TYPE,
47179
47176
  ERR_STREAM_PUSH_AFTER_EOF = _require$codes$2.ERR_STREAM_PUSH_AFTER_EOF,
47180
47177
  ERR_METHOD_NOT_IMPLEMENTED$1 = _require$codes$2.ERR_METHOD_NOT_IMPLEMENTED,
@@ -48218,7 +48215,7 @@ function indexOf(xs, x) {
48218
48215
  }
48219
48216
 
48220
48217
  var _stream_transform = Transform$3;
48221
- var _require$codes$1 = errors$1.codes,
48218
+ var _require$codes$1 = errors.codes,
48222
48219
  ERR_METHOD_NOT_IMPLEMENTED = _require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,
48223
48220
  ERR_MULTIPLE_CALLBACK = _require$codes$1.ERR_MULTIPLE_CALLBACK,
48224
48221
  ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,
@@ -48377,7 +48374,7 @@ function once(callback) {
48377
48374
  };
48378
48375
  }
48379
48376
 
48380
- var _require$codes = errors$1.codes,
48377
+ var _require$codes = errors.codes,
48381
48378
  ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
48382
48379
  ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
48383
48380
 
@@ -49006,7 +49003,7 @@ keccak$3.keccak512 = hash_utils_1.createHashFunction(function () {
49006
49003
  return createKeccakHash("keccak512");
49007
49004
  });
49008
49005
 
49009
- var createHash$1 = require$$0$4.createHash;
49006
+ var createHash$1 = require$$0$3.createHash;
49010
49007
 
49011
49008
  (function (exports) {
49012
49009
 
@@ -49324,7 +49321,7 @@ var types$1 = {};
49324
49321
  });
49325
49322
  exports.isZeroAddress = exports.zeroAddress = exports.importPublic = exports.privateToAddress = exports.privateToPublic = exports.publicToAddress = exports.pubToAddress = exports.isValidPublic = exports.isValidPrivate = exports.generateAddress2 = exports.generateAddress = exports.isValidChecksumAddress = exports.toChecksumAddress = exports.isValidAddress = exports.Account = void 0;
49326
49323
 
49327
- var assert_1 = __importDefault(require$$0$5);
49324
+ var assert_1 = __importDefault(require$$0$4);
49328
49325
 
49329
49326
  var externals_1 = externals$1;
49330
49327
  var secp256k1_1 = secp256k1$4;
@@ -49688,7 +49685,7 @@ Object.defineProperty(address$1, "__esModule", {
49688
49685
  });
49689
49686
  address$1.Address = void 0;
49690
49687
 
49691
- var assert_1$3 = __importDefault$6(require$$0$5);
49688
+ var assert_1$3 = __importDefault$6(require$$0$4);
49692
49689
 
49693
49690
  var externals_1$5 = externals$1;
49694
49691
  var bytes_1$9 = bytes$3;
@@ -50050,7 +50047,7 @@ Object.defineProperty(object$3, "__esModule", {
50050
50047
  });
50051
50048
  object$3.defineProperties = void 0;
50052
50049
 
50053
- var assert_1$2 = __importDefault$5(require$$0$5);
50050
+ var assert_1$2 = __importDefault$5(require$$0$4);
50054
50051
 
50055
50052
  var internal_1$2 = internal$1;
50056
50053
  var externals_1$3 = externals$1;
@@ -51788,7 +51785,7 @@ var localStorage;
51788
51785
 
51789
51786
  if (typeof window === 'undefined' || window === null) {
51790
51787
  // eslint-disable-next-line @typescript-eslint/no-var-requires
51791
- var LocalStorage = require$$0$6.LocalStorage;
51788
+ var LocalStorage = require$$0$5.LocalStorage;
51792
51789
  localStorage = new LocalStorage('./local-storage');
51793
51790
  } else {
51794
51791
  localStorage = window.localStorage;
@@ -59573,7 +59570,7 @@ var lib$1 = {
59573
59570
  k256 = _require.keccak256,
59574
59571
  keccak512 = _require.keccak512;
59575
59572
  var secp256k1 = secp256k1Adapter;
59576
- var assert = require$$0$5;
59573
+ var assert = require$$0$4;
59577
59574
  var rlp = dist$7;
59578
59575
  var BN = bn$1.exports;
59579
59576
  var createHash = createHash$1;
@@ -61342,7 +61339,7 @@ var hash$2 = {};
61342
61339
  value: true
61343
61340
  });
61344
61341
  exports.importPublic = exports.privateToPublic = exports.privateToAddress = exports.publicToAddress = exports.pubToAddress = exports.isValidPublic = exports.isValidPrivate = exports.isPrecompiled = exports.generateAddress2 = exports.generateAddress = exports.isValidChecksumAddress = exports.toChecksumAddress = exports.isZeroAddress = exports.isValidAddress = exports.zeroAddress = void 0;
61345
- var assert = require$$0$5;
61342
+ var assert = require$$0$4;
61346
61343
  var ethjsUtil = lib$1;
61347
61344
  var secp256k1 = secp256k1v3Adapter$1;
61348
61345
  var BN = bn$1.exports;
@@ -61694,7 +61691,7 @@ Object.defineProperty(object$2, "__esModule", {
61694
61691
  value: true
61695
61692
  });
61696
61693
  object$2.defineProperties = void 0;
61697
- var assert$2 = require$$0$5;
61694
+ var assert$2 = require$$0$4;
61698
61695
  var ethjsUtil$1 = lib$1;
61699
61696
  var rlp$2 = dist$7;
61700
61697
  var bytes_1$5 = bytes$2;
@@ -62007,7 +62004,7 @@ function encodeSingle(type, arg) {
62007
62004
  return encodeSingle('uint8', arg ? 1 : 0);
62008
62005
  } else if (type === 'string') {
62009
62006
  return encodeSingle('bytes', Buffer$8.from(arg, 'utf8'));
62010
- } else if (isArray$1(type)) {
62007
+ } else if (isArray(type)) {
62011
62008
  // this part handles fixed-length ([2]) and variable length ([]) arrays
62012
62009
  // NOTE: we catch here all calls to arrays, that simplifies the rest
62013
62010
  if (typeof arg.length === 'undefined') {
@@ -62190,7 +62187,7 @@ function parseType(type) {
62190
62187
  var size;
62191
62188
  var ret;
62192
62189
 
62193
- if (isArray$1(type)) {
62190
+ if (isArray(type)) {
62194
62191
  size = parseTypeArray(type);
62195
62192
  var subArray = type.slice(0, type.lastIndexOf('['));
62196
62193
  subArray = parseType(subArray);
@@ -62250,7 +62247,7 @@ function isDynamic(type) {
62250
62247
  } // Is a type an array?
62251
62248
 
62252
62249
 
62253
- function isArray$1(type) {
62250
+ function isArray(type) {
62254
62251
  return type.lastIndexOf(']') === type.length - 1;
62255
62252
  } // Encode a method/event with arguments
62256
62253
  // @types an array of string type names
@@ -62262,7 +62259,7 @@ ABI.rawEncode = function (types, values) {
62262
62259
  var data = [];
62263
62260
  var headLength = 0;
62264
62261
  types.forEach(function (type) {
62265
- if (isArray$1(type)) {
62262
+ if (isArray(type)) {
62266
62263
  var size = parseTypeArray(type);
62267
62264
 
62268
62265
  if (size !== 'dynamic') {
@@ -62329,7 +62326,7 @@ ABI.simpleDecode = function (method, data) {
62329
62326
  return ABI.rawDecode(sig.retargs, data);
62330
62327
  };
62331
62328
 
62332
- function stringify$2(type, value) {
62329
+ function stringify$1(type, value) {
62333
62330
  if (type.startsWith('address') || type.startsWith('bytes')) {
62334
62331
  return '0x' + value.toString('hex');
62335
62332
  } else {
@@ -62346,10 +62343,10 @@ ABI.stringify = function (types, values) {
62346
62343
 
62347
62344
  if (/^[^\[]+\[.*\]$/.test(type)) {
62348
62345
  value = value.map(function (item) {
62349
- return stringify$2(type, item);
62346
+ return stringify$1(type, item);
62350
62347
  }).join(', ');
62351
62348
  } else {
62352
- value = stringify$2(type, value);
62349
+ value = stringify$1(type, value);
62353
62350
  }
62354
62351
 
62355
62352
  ret.push(value);
@@ -62362,10 +62359,10 @@ ABI.solidityHexValue = function (type, value, bitsize) {
62362
62359
  // pass in bitsize = null if use default bitsize
62363
62360
  var size, num;
62364
62361
 
62365
- if (isArray$1(type)) {
62362
+ if (isArray(type)) {
62366
62363
  var subType = type.replace(/\[.*?\]/, '');
62367
62364
 
62368
- if (!isArray$1(subType)) {
62365
+ if (!isArray(subType)) {
62369
62366
  var arraySize = parseTypeArray(type);
62370
62367
 
62371
62368
  if (arraySize !== 'dynamic' && arraySize !== 0 && value.length > arraySize) {
@@ -65199,7 +65196,7 @@ var naclFast = createModule("/$$rollup_base$$/node_modules/tweetnacl");
65199
65196
  });
65200
65197
  } else if (typeof commonjsRequire !== 'undefined') {
65201
65198
  // Node.js.
65202
- crypto = require$$0$4;
65199
+ crypto = require$$0$3;
65203
65200
 
65204
65201
  if (crypto && crypto.randomBytes) {
65205
65202
  nacl.setPRNG(function (x, n) {
@@ -70523,7 +70520,7 @@ var types = {};
70523
70520
  });
70524
70521
  exports.isZeroAddress = exports.zeroAddress = exports.importPublic = exports.privateToAddress = exports.privateToPublic = exports.publicToAddress = exports.pubToAddress = exports.isValidPublic = exports.isValidPrivate = exports.generateAddress2 = exports.generateAddress = exports.isValidChecksumAddress = exports.toChecksumAddress = exports.isValidAddress = exports.Account = void 0;
70525
70522
 
70526
- var assert_1 = __importDefault(require$$0$5);
70523
+ var assert_1 = __importDefault(require$$0$4);
70527
70524
 
70528
70525
  var externals_1 = externals;
70529
70526
  var secp256k1_1 = secp256k1$4;
@@ -70887,7 +70884,7 @@ Object.defineProperty(address, "__esModule", {
70887
70884
  });
70888
70885
  address.Address = void 0;
70889
70886
 
70890
- var assert_1$1 = __importDefault$3(require$$0$5);
70887
+ var assert_1$1 = __importDefault$3(require$$0$4);
70891
70888
 
70892
70889
  var externals_1$2 = externals;
70893
70890
  var bytes_1$4 = bytes$1;
@@ -71249,7 +71246,7 @@ Object.defineProperty(object$1, "__esModule", {
71249
71246
  });
71250
71247
  object$1.defineProperties = void 0;
71251
71248
 
71252
- var assert_1 = __importDefault$2(require$$0$5);
71249
+ var assert_1 = __importDefault$2(require$$0$4);
71253
71250
 
71254
71251
  var internal_1 = internal;
71255
71252
  var externals_1 = externals;
@@ -72041,7 +72038,7 @@ var hdkey$2 = {};
72041
72038
  var base58 = bs58__default["default"];
72042
72039
  var Buffer$2 = require$$1__default["default"].Buffer;
72043
72040
 
72044
- var base$1 = function base(checksumFn) {
72041
+ var base = function base(checksumFn) {
72045
72042
  // Encode a buffer as a base58-check encoded string
72046
72043
  function encode(payload) {
72047
72044
  var checksum = checksumFn(payload);
@@ -72078,7 +72075,7 @@ var base$1 = function base(checksumFn) {
72078
72075
  };
72079
72076
 
72080
72077
  var createHash = createHash$1;
72081
- var bs58checkBase = base$1; // SHA256(SHA256(buffer))
72078
+ var bs58checkBase = base; // SHA256(SHA256(buffer))
72082
72079
 
72083
72080
  function sha256x2(buffer) {
72084
72081
  var tmp = createHash('sha256').update(buffer).digest();
@@ -72092,7 +72089,7 @@ var hdkeyCrypto = {};
72092
72089
  Object.defineProperty(hdkeyCrypto, "__esModule", {
72093
72090
  value: true
72094
72091
  });
72095
- var crypto_1 = require$$0$4;
72092
+ var crypto_1 = require$$0$3;
72096
72093
  hdkeyCrypto.createHash = crypto_1.createHash;
72097
72094
  hdkeyCrypto.createHmac = crypto_1.createHmac;
72098
72095
  hdkeyCrypto.randomBytes = crypto_1.randomBytes;
@@ -72183,7 +72180,7 @@ function _interopDefault$1(ex) {
72183
72180
  return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
72184
72181
  }
72185
72182
 
72186
- var assert$1 = _interopDefault$1(require$$0$5);
72183
+ var assert$1 = _interopDefault$1(require$$0$4);
72187
72184
 
72188
72185
  var safeBuffer = _interopDefault$1(require$$1__default["default"]);
72189
72186
 
@@ -73576,7 +73573,7 @@ Object.defineProperty(thirdparty, "__esModule", {
73576
73573
  });
73577
73574
  thirdparty.fromQuorumWallet = thirdparty.fromKryptoKit = thirdparty.fromEtherCamp = thirdparty.fromEtherWallet = void 0;
73578
73575
 
73579
- var crypto$1 = __importStar(require$$0$4);
73576
+ var crypto$1 = __importStar(require$$0$3);
73580
73577
 
73581
73578
  var ethereumjs_util_1$2 = dist$3;
73582
73579
  var scrypt_js_1 = scrypt.exports;
@@ -73931,7 +73928,7 @@ for (var i = 0; i < 256; ++i) {
73931
73928
  byteToHex.push((i + 0x100).toString(16).substr(1));
73932
73929
  }
73933
73930
 
73934
- function stringify$1(arr) {
73931
+ function stringify(arr) {
73935
73932
  var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // Note: Be careful editing this code! It's been tuned for performance
73936
73933
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
73937
73934
 
@@ -74037,10 +74034,10 @@ function v1(options, buf, offset) {
74037
74034
  b[i + n] = node[n];
74038
74035
  }
74039
74036
 
74040
- return buf || stringify$1(b);
74037
+ return buf || stringify(b);
74041
74038
  }
74042
74039
 
74043
- function parse$2(uuid) {
74040
+ function parse(uuid) {
74044
74041
  if (!validate(uuid)) {
74045
74042
  throw TypeError('Invalid UUID');
74046
74043
  }
@@ -74093,7 +74090,7 @@ function v35 (name, version, hashfunc) {
74093
74090
  }
74094
74091
 
74095
74092
  if (typeof namespace === 'string') {
74096
- namespace = parse$2(namespace);
74093
+ namespace = parse(namespace);
74097
74094
  }
74098
74095
 
74099
74096
  if (namespace.length !== 16) {
@@ -74120,7 +74117,7 @@ function v35 (name, version, hashfunc) {
74120
74117
  return buf;
74121
74118
  }
74122
74119
 
74123
- return stringify$1(bytes);
74120
+ return stringify(bytes);
74124
74121
  } // Function#name is not settable on some platforms (#270)
74125
74122
 
74126
74123
 
@@ -74368,7 +74365,7 @@ function v4(options, buf, offset) {
74368
74365
  return buf;
74369
74366
  }
74370
74367
 
74371
- return stringify$1(rnds);
74368
+ return stringify(rnds);
74372
74369
  }
74373
74370
 
74374
74371
  // Adapted from Chris Veness' SHA1 code at
@@ -74488,8 +74485,8 @@ var esmBrowser = /*#__PURE__*/Object.freeze({
74488
74485
  NIL: nil,
74489
74486
  version: version,
74490
74487
  validate: validate,
74491
- stringify: stringify$1,
74492
- parse: parse$2
74488
+ stringify: stringify,
74489
+ parse: parse
74493
74490
  });
74494
74491
 
74495
74492
  var require$$7$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
@@ -74541,7 +74538,7 @@ var require$$7$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
74541
74538
  });
74542
74539
  exports.thirdparty = exports.hdkey = void 0;
74543
74540
 
74544
- var crypto = __importStar(require$$0$4);
74541
+ var crypto = __importStar(require$$0$3);
74545
74542
 
74546
74543
  var ethereumjs_util_1 = dist$3;
74547
74544
  var scrypt_js_1 = scrypt.exports;
@@ -75256,2584 +75253,11 @@ var require$$7$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
75256
75253
 
75257
75254
  var EthereumWallet = /*@__PURE__*/getDefaultExportFromCjs(dist$4);
75258
75255
 
75259
- var XMLHttpRequest = {};
75260
-
75261
- var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
75262
-
75263
- /** Bootstring parameters */
75264
-
75265
- var base = 36;
75266
- var tMin = 1;
75267
- var tMax = 26;
75268
- var skew = 38;
75269
- var damp = 700;
75270
- var initialBias = 72;
75271
- var initialN = 128; // 0x80
75272
-
75273
- var delimiter = '-'; // '\x2D'
75274
- var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
75275
-
75276
- var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
75277
-
75278
- /** Error messages */
75279
-
75280
- var errors = {
75281
- 'overflow': 'Overflow: input needs wider integers to process',
75282
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
75283
- 'invalid-input': 'Invalid input'
75284
- };
75285
- /** Convenience shortcuts */
75286
-
75287
- var baseMinusTMin = base - tMin;
75288
- var floor = Math.floor;
75289
- var stringFromCharCode = String.fromCharCode;
75290
- /*--------------------------------------------------------------------------*/
75291
-
75292
- /**
75293
- * A generic error utility function.
75294
- * @private
75295
- * @param {String} type The error type.
75296
- * @returns {Error} Throws a `RangeError` with the applicable error message.
75297
- */
75298
-
75299
- function error(type) {
75300
- throw new RangeError(errors[type]);
75301
- }
75302
- /**
75303
- * A generic `Array#map` utility function.
75304
- * @private
75305
- * @param {Array} array The array to iterate over.
75306
- * @param {Function} callback The function that gets called for every array
75307
- * item.
75308
- * @returns {Array} A new array of values returned by the callback function.
75309
- */
75310
-
75311
-
75312
- function map$1(array, fn) {
75313
- var result = [];
75314
- var length = array.length;
75315
-
75316
- while (length--) {
75317
- result[length] = fn(array[length]);
75318
- }
75319
-
75320
- return result;
75321
- }
75322
- /**
75323
- * A simple `Array#map`-like wrapper to work with domain name strings or email
75324
- * addresses.
75325
- * @private
75326
- * @param {String} domain The domain name or email address.
75327
- * @param {Function} callback The function that gets called for every
75328
- * character.
75329
- * @returns {Array} A new string of characters returned by the callback
75330
- * function.
75331
- */
75332
-
75333
-
75334
- function mapDomain(string, fn) {
75335
- var parts = string.split('@');
75336
- var result = '';
75337
-
75338
- if (parts.length > 1) {
75339
- // In email addresses, only the domain name should be punycoded. Leave
75340
- // the local part (i.e. everything up to `@`) intact.
75341
- result = parts[0] + '@';
75342
- string = parts[1];
75343
- } // Avoid `split(regex)` for IE8 compatibility. See #17.
75344
-
75345
-
75346
- string = string.replace(regexSeparators, '\x2E');
75347
- var labels = string.split('.');
75348
- var encoded = map$1(labels, fn).join('.');
75349
- return result + encoded;
75350
- }
75351
- /**
75352
- * Creates an array containing the numeric code points of each Unicode
75353
- * character in the string. While JavaScript uses UCS-2 internally,
75354
- * this function will convert a pair of surrogate halves (each of which
75355
- * UCS-2 exposes as separate characters) into a single code point,
75356
- * matching UTF-16.
75357
- * @see `punycode.ucs2.encode`
75358
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
75359
- * @memberOf punycode.ucs2
75360
- * @name decode
75361
- * @param {String} string The Unicode input string (UCS-2).
75362
- * @returns {Array} The new array of code points.
75363
- */
75364
-
75365
-
75366
- function ucs2decode(string) {
75367
- var output = [];
75368
- var counter = 0;
75369
- var length = string.length;
75370
-
75371
- while (counter < length) {
75372
- var value = string.charCodeAt(counter++);
75373
-
75374
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
75375
- // It's a high surrogate, and there is a next character.
75376
- var extra = string.charCodeAt(counter++);
75377
-
75378
- if ((extra & 0xFC00) == 0xDC00) {
75379
- // Low surrogate.
75380
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
75381
- } else {
75382
- // It's an unmatched surrogate; only append this code unit, in case the
75383
- // next code unit is the high surrogate of a surrogate pair.
75384
- output.push(value);
75385
- counter--;
75386
- }
75387
- } else {
75388
- output.push(value);
75389
- }
75390
- }
75391
-
75392
- return output;
75393
- }
75394
- /**
75395
- * Converts a digit/integer into a basic code point.
75396
- * @see `basicToDigit()`
75397
- * @private
75398
- * @param {Number} digit The numeric value of a basic code point.
75399
- * @returns {Number} The basic code point whose value (when used for
75400
- * representing integers) is `digit`, which needs to be in the range
75401
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
75402
- * used; else, the lowercase form is used. The behavior is undefined
75403
- * if `flag` is non-zero and `digit` has no uppercase form.
75404
- */
75405
-
75406
-
75407
- var digitToBasic = function digitToBasic(digit, flag) {
75408
- // 0..25 map to ASCII a..z or A..Z
75409
- // 26..35 map to ASCII 0..9
75410
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
75411
- };
75412
- /**
75413
- * Bias adaptation function as per section 3.4 of RFC 3492.
75414
- * https://tools.ietf.org/html/rfc3492#section-3.4
75415
- * @private
75416
- */
75417
-
75418
-
75419
- var adapt = function adapt(delta, numPoints, firstTime) {
75420
- var k = 0;
75421
- delta = firstTime ? floor(delta / damp) : delta >> 1;
75422
- delta += floor(delta / numPoints);
75423
-
75424
- for (; delta > baseMinusTMin * tMax >> 1; k += base) {
75425
- delta = floor(delta / baseMinusTMin);
75426
- }
75427
-
75428
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
75429
- };
75430
- /**
75431
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
75432
- * Punycode string of ASCII-only symbols.
75433
- * @memberOf punycode
75434
- * @param {String} input The string of Unicode symbols.
75435
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
75436
- */
75437
-
75438
-
75439
- var encode = function encode(input) {
75440
- var output = []; // Convert the input in UCS-2 to an array of Unicode code points.
75441
-
75442
- input = ucs2decode(input); // Cache the length.
75443
-
75444
- var inputLength = input.length; // Initialize the state.
75445
-
75446
- var n = initialN;
75447
- var delta = 0;
75448
- var bias = initialBias; // Handle the basic code points.
75449
-
75450
- var _iterator = _createForOfIteratorHelper(input),
75451
- _step;
75452
-
75453
- try {
75454
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
75455
- var _currentValue2 = _step.value;
75456
-
75457
- if (_currentValue2 < 0x80) {
75458
- output.push(stringFromCharCode(_currentValue2));
75459
- }
75460
- }
75461
- } catch (err) {
75462
- _iterator.e(err);
75463
- } finally {
75464
- _iterator.f();
75465
- }
75466
-
75467
- var basicLength = output.length;
75468
- var handledCPCount = basicLength; // `handledCPCount` is the number of code points that have been handled;
75469
- // `basicLength` is the number of basic code points.
75470
- // Finish the basic string with a delimiter unless it's empty.
75471
-
75472
- if (basicLength) {
75473
- output.push(delimiter);
75474
- } // Main encoding loop:
75475
-
75476
-
75477
- while (handledCPCount < inputLength) {
75478
- // All non-basic code points < n have been handled already. Find the next
75479
- // larger one:
75480
- var m = maxInt;
75481
-
75482
- var _iterator2 = _createForOfIteratorHelper(input),
75483
- _step2;
75484
-
75485
- try {
75486
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
75487
- var currentValue = _step2.value;
75488
-
75489
- if (currentValue >= n && currentValue < m) {
75490
- m = currentValue;
75491
- }
75492
- } // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
75493
- // but guard against overflow.
75494
-
75495
- } catch (err) {
75496
- _iterator2.e(err);
75497
- } finally {
75498
- _iterator2.f();
75499
- }
75500
-
75501
- var handledCPCountPlusOne = handledCPCount + 1;
75502
-
75503
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
75504
- error('overflow');
75505
- }
75506
-
75507
- delta += (m - n) * handledCPCountPlusOne;
75508
- n = m;
75509
-
75510
- var _iterator3 = _createForOfIteratorHelper(input),
75511
- _step3;
75512
-
75513
- try {
75514
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
75515
- var _currentValue = _step3.value;
75516
-
75517
- if (_currentValue < n && ++delta > maxInt) {
75518
- error('overflow');
75519
- }
75520
-
75521
- if (_currentValue == n) {
75522
- // Represent delta as a generalized variable-length integer.
75523
- var q = delta;
75524
-
75525
- for (var k = base;; k += base) {
75526
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
75527
-
75528
- if (q < t) {
75529
- break;
75530
- }
75531
-
75532
- var qMinusT = q - t;
75533
- var baseMinusT = base - t;
75534
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
75535
- q = floor(qMinusT / baseMinusT);
75536
- }
75537
-
75538
- output.push(stringFromCharCode(digitToBasic(q, 0)));
75539
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
75540
- delta = 0;
75541
- ++handledCPCount;
75542
- }
75543
- }
75544
- } catch (err) {
75545
- _iterator3.e(err);
75546
- } finally {
75547
- _iterator3.f();
75548
- }
75549
-
75550
- ++delta;
75551
- ++n;
75552
- }
75553
-
75554
- return output.join('');
75555
- };
75556
- /**
75557
- * Converts a Unicode string representing a domain name or an email address to
75558
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
75559
- * i.e. it doesn't matter if you call it with a domain that's already in
75560
- * ASCII.
75561
- * @memberOf punycode
75562
- * @param {String} input The domain name or email address to convert, as a
75563
- * Unicode string.
75564
- * @returns {String} The Punycode representation of the given domain name or
75565
- * email address.
75566
- */
75567
-
75568
-
75569
- var toASCII = function toASCII(input) {
75570
- return mapDomain(input, function (string) {
75571
- return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
75572
- });
75573
- };
75574
-
75575
- // Copyright Joyent, Inc. and other Node contributors.
75576
- //
75577
- // Permission is hereby granted, free of charge, to any person obtaining a
75578
- // copy of this software and associated documentation files (the
75579
- // "Software"), to deal in the Software without restriction, including
75580
- // without limitation the rights to use, copy, modify, merge, publish,
75581
- // distribute, sublicense, and/or sell copies of the Software, and to permit
75582
- // persons to whom the Software is furnished to do so, subject to the
75583
- // following conditions:
75584
- //
75585
- // The above copyright notice and this permission notice shall be included
75586
- // in all copies or substantial portions of the Software.
75587
- //
75588
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
75589
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
75590
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
75591
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
75592
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
75593
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
75594
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
75595
-
75596
-
75597
- // If obj.hasOwnProperty has been overridden, then calling
75598
- // obj.hasOwnProperty(prop) will break.
75599
- // See: https://github.com/joyent/node/issues/1707
75600
- function hasOwnProperty(obj, prop) {
75601
- return Object.prototype.hasOwnProperty.call(obj, prop);
75602
- }
75603
- var isArray = Array.isArray || function (xs) {
75604
- return Object.prototype.toString.call(xs) === '[object Array]';
75605
- };
75606
- function stringifyPrimitive(v) {
75607
- switch (typeof v) {
75608
- case 'string':
75609
- return v;
75610
-
75611
- case 'boolean':
75612
- return v ? 'true' : 'false';
75613
-
75614
- case 'number':
75615
- return isFinite(v) ? v : '';
75616
-
75617
- default:
75618
- return '';
75619
- }
75620
- }
75621
-
75622
- function stringify (obj, sep, eq, name) {
75623
- sep = sep || '&';
75624
- eq = eq || '=';
75625
- if (obj === null) {
75626
- obj = undefined;
75627
- }
75628
-
75629
- if (typeof obj === 'object') {
75630
- return map(objectKeys(obj), function(k) {
75631
- var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
75632
- if (isArray(obj[k])) {
75633
- return map(obj[k], function(v) {
75634
- return ks + encodeURIComponent(stringifyPrimitive(v));
75635
- }).join(sep);
75636
- } else {
75637
- return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
75638
- }
75639
- }).join(sep);
75640
-
75641
- }
75642
-
75643
- if (!name) return '';
75644
- return encodeURIComponent(stringifyPrimitive(name)) + eq +
75645
- encodeURIComponent(stringifyPrimitive(obj));
75646
- }
75647
- function map (xs, f) {
75648
- if (xs.map) return xs.map(f);
75649
- var res = [];
75650
- for (var i = 0; i < xs.length; i++) {
75651
- res.push(f(xs[i], i));
75652
- }
75653
- return res;
75654
- }
75655
-
75656
- var objectKeys = Object.keys || function (obj) {
75657
- var res = [];
75658
- for (var key in obj) {
75659
- if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
75660
- }
75661
- return res;
75662
- };
75663
-
75664
- function parse$1(qs, sep, eq, options) {
75665
- sep = sep || '&';
75666
- eq = eq || '=';
75667
- var obj = {};
75668
-
75669
- if (typeof qs !== 'string' || qs.length === 0) {
75670
- return obj;
75671
- }
75672
-
75673
- var regexp = /\+/g;
75674
- qs = qs.split(sep);
75675
-
75676
- var maxKeys = 1000;
75677
- if (options && typeof options.maxKeys === 'number') {
75678
- maxKeys = options.maxKeys;
75679
- }
75680
-
75681
- var len = qs.length;
75682
- // maxKeys <= 0 means that we should not limit keys count
75683
- if (maxKeys > 0 && len > maxKeys) {
75684
- len = maxKeys;
75685
- }
75686
-
75687
- for (var i = 0; i < len; ++i) {
75688
- var x = qs[i].replace(regexp, '%20'),
75689
- idx = x.indexOf(eq),
75690
- kstr, vstr, k, v;
75691
-
75692
- if (idx >= 0) {
75693
- kstr = x.substr(0, idx);
75694
- vstr = x.substr(idx + 1);
75695
- } else {
75696
- kstr = x;
75697
- vstr = '';
75698
- }
75699
-
75700
- k = decodeURIComponent(kstr);
75701
- v = decodeURIComponent(vstr);
75702
-
75703
- if (!hasOwnProperty(obj, k)) {
75704
- obj[k] = v;
75705
- } else if (isArray(obj[k])) {
75706
- obj[k].push(v);
75707
- } else {
75708
- obj[k] = [obj[k], v];
75709
- }
75710
- }
75711
-
75712
- return obj;
75713
- }
75714
-
75715
- // Copyright Joyent, Inc. and other Node contributors.
75716
- var _polyfillNode_url = {
75717
- parse: urlParse,
75718
- resolve: urlResolve,
75719
- resolveObject: urlResolveObject,
75720
- format: urlFormat,
75721
- Url: Url$1
75722
- };
75723
- function Url$1() {
75724
- this.protocol = null;
75725
- this.slashes = null;
75726
- this.auth = null;
75727
- this.host = null;
75728
- this.port = null;
75729
- this.hostname = null;
75730
- this.hash = null;
75731
- this.search = null;
75732
- this.query = null;
75733
- this.pathname = null;
75734
- this.path = null;
75735
- this.href = null;
75736
- }
75737
-
75738
- // Reference: RFC 3986, RFC 1808, RFC 2396
75739
-
75740
- // define these here so at least they only have to be
75741
- // compiled once on the first module load.
75742
- var protocolPattern = /^([a-z0-9.+-]+:)/i,
75743
- portPattern = /:[0-9]*$/,
75744
-
75745
- // Special case for a simple path URL
75746
- simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
75747
-
75748
- // RFC 2396: characters reserved for delimiting URLs.
75749
- // We actually just auto-escape these.
75750
- delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
75751
-
75752
- // RFC 2396: characters not allowed for various reasons.
75753
- unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
75754
-
75755
- // Allowed by RFCs, but cause of XSS attacks. Always escape these.
75756
- autoEscape = ['\''].concat(unwise),
75757
- // Characters that are never ever allowed in a hostname.
75758
- // Note that any invalid chars are also handled, but these
75759
- // are the ones that are *expected* to be seen, so we fast-path
75760
- // them.
75761
- nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
75762
- hostEndingChars = ['/', '?', '#'],
75763
- hostnameMaxLen = 255,
75764
- hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
75765
- hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
75766
- // protocols that can allow "unsafe" and "unwise" chars.
75767
- unsafeProtocol = {
75768
- 'javascript': true,
75769
- 'javascript:': true
75770
- },
75771
- // protocols that never have a hostname.
75772
- hostlessProtocol = {
75773
- 'javascript': true,
75774
- 'javascript:': true
75775
- },
75776
- // protocols that always contain a // bit.
75777
- slashedProtocol = {
75778
- 'http': true,
75779
- 'https': true,
75780
- 'ftp': true,
75781
- 'gopher': true,
75782
- 'file': true,
75783
- 'http:': true,
75784
- 'https:': true,
75785
- 'ftp:': true,
75786
- 'gopher:': true,
75787
- 'file:': true
75788
- };
75789
-
75790
- function urlParse(url, parseQueryString, slashesDenoteHost) {
75791
- if (url && util$1.isObject(url) && url instanceof Url$1) return url;
75792
-
75793
- var u = new Url$1;
75794
- u.parse(url, parseQueryString, slashesDenoteHost);
75795
- return u;
75796
- }
75797
- Url$1.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
75798
- return parse(this, url, parseQueryString, slashesDenoteHost);
75799
- };
75800
-
75801
- function parse(self, url, parseQueryString, slashesDenoteHost) {
75802
- if (!util$1.isString(url)) {
75803
- throw new TypeError('Parameter \'url\' must be a string, not ' + typeof url);
75804
- }
75805
-
75806
- // Copy chrome, IE, opera backslash-handling behavior.
75807
- // Back slashes before the query string get converted to forward slashes
75808
- // See: https://code.google.com/p/chromium/issues/detail?id=25916
75809
- var queryIndex = url.indexOf('?'),
75810
- splitter =
75811
- (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
75812
- uSplit = url.split(splitter),
75813
- slashRegex = /\\/g;
75814
- uSplit[0] = uSplit[0].replace(slashRegex, '/');
75815
- url = uSplit.join(splitter);
75816
-
75817
- var rest = url;
75818
-
75819
- // trim before proceeding.
75820
- // This is to support parse stuff like " http://foo.com \n"
75821
- rest = rest.trim();
75822
-
75823
- if (!slashesDenoteHost && url.split('#').length === 1) {
75824
- // Try fast path regexp
75825
- var simplePath = simplePathPattern.exec(rest);
75826
- if (simplePath) {
75827
- self.path = rest;
75828
- self.href = rest;
75829
- self.pathname = simplePath[1];
75830
- if (simplePath[2]) {
75831
- self.search = simplePath[2];
75832
- if (parseQueryString) {
75833
- self.query = parse$1(self.search.substr(1));
75834
- } else {
75835
- self.query = self.search.substr(1);
75836
- }
75837
- } else if (parseQueryString) {
75838
- self.search = '';
75839
- self.query = {};
75840
- }
75841
- return self;
75842
- }
75843
- }
75844
-
75845
- var proto = protocolPattern.exec(rest);
75846
- if (proto) {
75847
- proto = proto[0];
75848
- var lowerProto = proto.toLowerCase();
75849
- self.protocol = lowerProto;
75850
- rest = rest.substr(proto.length);
75851
- }
75852
-
75853
- // figure out if it's got a host
75854
- // user@server is *always* interpreted as a hostname, and url
75855
- // resolution will treat //foo/bar as host=foo,path=bar because that's
75856
- // how the browser resolves relative URLs.
75857
- if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
75858
- var slashes = rest.substr(0, 2) === '//';
75859
- if (slashes && !(proto && hostlessProtocol[proto])) {
75860
- rest = rest.substr(2);
75861
- self.slashes = true;
75862
- }
75863
- }
75864
- var i, hec, l, p;
75865
- if (!hostlessProtocol[proto] &&
75866
- (slashes || (proto && !slashedProtocol[proto]))) {
75867
-
75868
- // there's a hostname.
75869
- // the first instance of /, ?, ;, or # ends the host.
75870
- //
75871
- // If there is an @ in the hostname, then non-host chars *are* allowed
75872
- // to the left of the last @ sign, unless some host-ending character
75873
- // comes *before* the @-sign.
75874
- // URLs are obnoxious.
75875
- //
75876
- // ex:
75877
- // http://a@b@c/ => user:a@b host:c
75878
- // http://a@b?@c => user:a host:c path:/?@c
75879
-
75880
- // v0.12 TODO(isaacs): This is not quite how Chrome does things.
75881
- // Review our test case against browsers more comprehensively.
75882
-
75883
- // find the first instance of any hostEndingChars
75884
- var hostEnd = -1;
75885
- for (i = 0; i < hostEndingChars.length; i++) {
75886
- hec = rest.indexOf(hostEndingChars[i]);
75887
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
75888
- hostEnd = hec;
75889
- }
75890
-
75891
- // at this point, either we have an explicit point where the
75892
- // auth portion cannot go past, or the last @ char is the decider.
75893
- var auth, atSign;
75894
- if (hostEnd === -1) {
75895
- // atSign can be anywhere.
75896
- atSign = rest.lastIndexOf('@');
75897
- } else {
75898
- // atSign must be in auth portion.
75899
- // http://a@b/c@d => host:b auth:a path:/c@d
75900
- atSign = rest.lastIndexOf('@', hostEnd);
75901
- }
75902
-
75903
- // Now we have a portion which is definitely the auth.
75904
- // Pull that off.
75905
- if (atSign !== -1) {
75906
- auth = rest.slice(0, atSign);
75907
- rest = rest.slice(atSign + 1);
75908
- self.auth = decodeURIComponent(auth);
75909
- }
75910
-
75911
- // the host is the remaining to the left of the first non-host char
75912
- hostEnd = -1;
75913
- for (i = 0; i < nonHostChars.length; i++) {
75914
- hec = rest.indexOf(nonHostChars[i]);
75915
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
75916
- hostEnd = hec;
75917
- }
75918
- // if we still have not hit it, then the entire thing is a host.
75919
- if (hostEnd === -1)
75920
- hostEnd = rest.length;
75921
-
75922
- self.host = rest.slice(0, hostEnd);
75923
- rest = rest.slice(hostEnd);
75924
-
75925
- // pull out port.
75926
- parseHost(self);
75927
-
75928
- // we've indicated that there is a hostname,
75929
- // so even if it's empty, it has to be present.
75930
- self.hostname = self.hostname || '';
75931
-
75932
- // if hostname begins with [ and ends with ]
75933
- // assume that it's an IPv6 address.
75934
- var ipv6Hostname = self.hostname[0] === '[' &&
75935
- self.hostname[self.hostname.length - 1] === ']';
75936
-
75937
- // validate a little.
75938
- if (!ipv6Hostname) {
75939
- var hostparts = self.hostname.split(/\./);
75940
- for (i = 0, l = hostparts.length; i < l; i++) {
75941
- var part = hostparts[i];
75942
- if (!part) continue;
75943
- if (!part.match(hostnamePartPattern)) {
75944
- var newpart = '';
75945
- for (var j = 0, k = part.length; j < k; j++) {
75946
- if (part.charCodeAt(j) > 127) {
75947
- // we replace non-ASCII char with a temporary placeholder
75948
- // we need this to make sure size of hostname is not
75949
- // broken by replacing non-ASCII by nothing
75950
- newpart += 'x';
75951
- } else {
75952
- newpart += part[j];
75953
- }
75954
- }
75955
- // we test again with ASCII char only
75956
- if (!newpart.match(hostnamePartPattern)) {
75957
- var validParts = hostparts.slice(0, i);
75958
- var notHost = hostparts.slice(i + 1);
75959
- var bit = part.match(hostnamePartStart);
75960
- if (bit) {
75961
- validParts.push(bit[1]);
75962
- notHost.unshift(bit[2]);
75963
- }
75964
- if (notHost.length) {
75965
- rest = '/' + notHost.join('.') + rest;
75966
- }
75967
- self.hostname = validParts.join('.');
75968
- break;
75969
- }
75970
- }
75971
- }
75972
- }
75973
-
75974
- if (self.hostname.length > hostnameMaxLen) {
75975
- self.hostname = '';
75976
- } else {
75977
- // hostnames are always lower case.
75978
- self.hostname = self.hostname.toLowerCase();
75979
- }
75980
-
75981
- if (!ipv6Hostname) {
75982
- // IDNA Support: Returns a punycoded representation of "domain".
75983
- // It only converts parts of the domain name that
75984
- // have non-ASCII characters, i.e. it doesn't matter if
75985
- // you call it with a domain that already is ASCII-only.
75986
- self.hostname = toASCII(self.hostname);
75987
- }
75988
-
75989
- p = self.port ? ':' + self.port : '';
75990
- var h = self.hostname || '';
75991
- self.host = h + p;
75992
- self.href += self.host;
75993
-
75994
- // strip [ and ] from the hostname
75995
- // the host field still retains them, though
75996
- if (ipv6Hostname) {
75997
- self.hostname = self.hostname.substr(1, self.hostname.length - 2);
75998
- if (rest[0] !== '/') {
75999
- rest = '/' + rest;
76000
- }
76001
- }
76002
- }
76003
-
76004
- // now rest is set to the post-host stuff.
76005
- // chop off any delim chars.
76006
- if (!unsafeProtocol[lowerProto]) {
76007
-
76008
- // First, make 100% sure that any "autoEscape" chars get
76009
- // escaped, even if encodeURIComponent doesn't think they
76010
- // need to be.
76011
- for (i = 0, l = autoEscape.length; i < l; i++) {
76012
- var ae = autoEscape[i];
76013
- if (rest.indexOf(ae) === -1)
76014
- continue;
76015
- var esc = encodeURIComponent(ae);
76016
- if (esc === ae) {
76017
- esc = escape(ae);
76018
- }
76019
- rest = rest.split(ae).join(esc);
76020
- }
76021
- }
76022
-
76023
-
76024
- // chop off from the tail first.
76025
- var hash = rest.indexOf('#');
76026
- if (hash !== -1) {
76027
- // got a fragment string.
76028
- self.hash = rest.substr(hash);
76029
- rest = rest.slice(0, hash);
76030
- }
76031
- var qm = rest.indexOf('?');
76032
- if (qm !== -1) {
76033
- self.search = rest.substr(qm);
76034
- self.query = rest.substr(qm + 1);
76035
- if (parseQueryString) {
76036
- self.query = parse$1(self.query);
76037
- }
76038
- rest = rest.slice(0, qm);
76039
- } else if (parseQueryString) {
76040
- // no query string, but parseQueryString still requested
76041
- self.search = '';
76042
- self.query = {};
76043
- }
76044
- if (rest) self.pathname = rest;
76045
- if (slashedProtocol[lowerProto] &&
76046
- self.hostname && !self.pathname) {
76047
- self.pathname = '/';
76048
- }
76049
-
76050
- //to support http.request
76051
- if (self.pathname || self.search) {
76052
- p = self.pathname || '';
76053
- var s = self.search || '';
76054
- self.path = p + s;
76055
- }
76056
-
76057
- // finally, reconstruct the href based on what has been validated.
76058
- self.href = format(self);
76059
- return self;
76060
- }
76061
-
76062
- // format a parsed object into a url string
76063
- function urlFormat(obj) {
76064
- // ensure it's an object, and not a string url.
76065
- // If it's an obj, this is a no-op.
76066
- // this way, you can call url_format() on strings
76067
- // to clean up potentially wonky urls.
76068
- if (util$1.isString(obj)) obj = parse({}, obj);
76069
- return format(obj);
76070
- }
76071
-
76072
- function format(self) {
76073
- var auth = self.auth || '';
76074
- if (auth) {
76075
- auth = encodeURIComponent(auth);
76076
- auth = auth.replace(/%3A/i, ':');
76077
- auth += '@';
76078
- }
76079
-
76080
- var protocol = self.protocol || '',
76081
- pathname = self.pathname || '',
76082
- hash = self.hash || '',
76083
- host = false,
76084
- query = '';
76085
-
76086
- if (self.host) {
76087
- host = auth + self.host;
76088
- } else if (self.hostname) {
76089
- host = auth + (self.hostname.indexOf(':') === -1 ?
76090
- self.hostname :
76091
- '[' + this.hostname + ']');
76092
- if (self.port) {
76093
- host += ':' + self.port;
76094
- }
76095
- }
76096
-
76097
- if (self.query &&
76098
- util$1.isObject(self.query) &&
76099
- Object.keys(self.query).length) {
76100
- query = stringify(self.query);
76101
- }
76102
-
76103
- var search = self.search || (query && ('?' + query)) || '';
76104
-
76105
- if (protocol && protocol.substr(-1) !== ':') protocol += ':';
76106
-
76107
- // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
76108
- // unless they had them to begin with.
76109
- if (self.slashes ||
76110
- (!protocol || slashedProtocol[protocol]) && host !== false) {
76111
- host = '//' + (host || '');
76112
- if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
76113
- } else if (!host) {
76114
- host = '';
76115
- }
76116
-
76117
- if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
76118
- if (search && search.charAt(0) !== '?') search = '?' + search;
76119
-
76120
- pathname = pathname.replace(/[?#]/g, function(match) {
76121
- return encodeURIComponent(match);
76122
- });
76123
- search = search.replace('#', '%23');
76124
-
76125
- return protocol + host + pathname + search + hash;
76126
- }
76127
-
76128
- Url$1.prototype.format = function() {
76129
- return format(this);
76130
- };
76131
-
76132
- function urlResolve(source, relative) {
76133
- return urlParse(source, false, true).resolve(relative);
76134
- }
76135
-
76136
- Url$1.prototype.resolve = function(relative) {
76137
- return this.resolveObject(urlParse(relative, false, true)).format();
76138
- };
76139
-
76140
- function urlResolveObject(source, relative) {
76141
- if (!source) return relative;
76142
- return urlParse(source, false, true).resolveObject(relative);
76143
- }
76144
-
76145
- Url$1.prototype.resolveObject = function(relative) {
76146
- if (util$1.isString(relative)) {
76147
- var rel = new Url$1();
76148
- rel.parse(relative, false, true);
76149
- relative = rel;
76150
- }
76151
-
76152
- var result = new Url$1();
76153
- var tkeys = Object.keys(this);
76154
- for (var tk = 0; tk < tkeys.length; tk++) {
76155
- var tkey = tkeys[tk];
76156
- result[tkey] = this[tkey];
76157
- }
76158
-
76159
- // hash is always overridden, no matter what.
76160
- // even href="" will remove it.
76161
- result.hash = relative.hash;
76162
-
76163
- // if the relative url is empty, then there's nothing left to do here.
76164
- if (relative.href === '') {
76165
- result.href = result.format();
76166
- return result;
76167
- }
76168
-
76169
- // hrefs like //foo/bar always cut to the protocol.
76170
- if (relative.slashes && !relative.protocol) {
76171
- // take everything except the protocol from relative
76172
- var rkeys = Object.keys(relative);
76173
- for (var rk = 0; rk < rkeys.length; rk++) {
76174
- var rkey = rkeys[rk];
76175
- if (rkey !== 'protocol')
76176
- result[rkey] = relative[rkey];
76177
- }
76178
-
76179
- //urlParse appends trailing / to urls like http://www.example.com
76180
- if (slashedProtocol[result.protocol] &&
76181
- result.hostname && !result.pathname) {
76182
- result.path = result.pathname = '/';
76183
- }
76184
-
76185
- result.href = result.format();
76186
- return result;
76187
- }
76188
- var relPath;
76189
- if (relative.protocol && relative.protocol !== result.protocol) {
76190
- // if it's a known url protocol, then changing
76191
- // the protocol does weird things
76192
- // first, if it's not file:, then we MUST have a host,
76193
- // and if there was a path
76194
- // to begin with, then we MUST have a path.
76195
- // if it is file:, then the host is dropped,
76196
- // because that's known to be hostless.
76197
- // anything else is assumed to be absolute.
76198
- if (!slashedProtocol[relative.protocol]) {
76199
- var keys = Object.keys(relative);
76200
- for (var v = 0; v < keys.length; v++) {
76201
- var k = keys[v];
76202
- result[k] = relative[k];
76203
- }
76204
- result.href = result.format();
76205
- return result;
76206
- }
76207
-
76208
- result.protocol = relative.protocol;
76209
- if (!relative.host && !hostlessProtocol[relative.protocol]) {
76210
- relPath = (relative.pathname || '').split('/');
76211
- while (relPath.length && !(relative.host = relPath.shift()));
76212
- if (!relative.host) relative.host = '';
76213
- if (!relative.hostname) relative.hostname = '';
76214
- if (relPath[0] !== '') relPath.unshift('');
76215
- if (relPath.length < 2) relPath.unshift('');
76216
- result.pathname = relPath.join('/');
76217
- } else {
76218
- result.pathname = relative.pathname;
76219
- }
76220
- result.search = relative.search;
76221
- result.query = relative.query;
76222
- result.host = relative.host || '';
76223
- result.auth = relative.auth;
76224
- result.hostname = relative.hostname || relative.host;
76225
- result.port = relative.port;
76226
- // to support http.request
76227
- if (result.pathname || result.search) {
76228
- var p = result.pathname || '';
76229
- var s = result.search || '';
76230
- result.path = p + s;
76231
- }
76232
- result.slashes = result.slashes || relative.slashes;
76233
- result.href = result.format();
76234
- return result;
76235
- }
76236
-
76237
- var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
76238
- isRelAbs = (
76239
- relative.host ||
76240
- relative.pathname && relative.pathname.charAt(0) === '/'
76241
- ),
76242
- mustEndAbs = (isRelAbs || isSourceAbs ||
76243
- (result.host && relative.pathname)),
76244
- removeAllDots = mustEndAbs,
76245
- srcPath = result.pathname && result.pathname.split('/') || [],
76246
- psychotic = result.protocol && !slashedProtocol[result.protocol];
76247
- relPath = relative.pathname && relative.pathname.split('/') || [];
76248
- // if the url is a non-slashed url, then relative
76249
- // links like ../.. should be able
76250
- // to crawl up to the hostname, as well. This is strange.
76251
- // result.protocol has already been set by now.
76252
- // Later on, put the first path part into the host field.
76253
- if (psychotic) {
76254
- result.hostname = '';
76255
- result.port = null;
76256
- if (result.host) {
76257
- if (srcPath[0] === '') srcPath[0] = result.host;
76258
- else srcPath.unshift(result.host);
76259
- }
76260
- result.host = '';
76261
- if (relative.protocol) {
76262
- relative.hostname = null;
76263
- relative.port = null;
76264
- if (relative.host) {
76265
- if (relPath[0] === '') relPath[0] = relative.host;
76266
- else relPath.unshift(relative.host);
76267
- }
76268
- relative.host = null;
76269
- }
76270
- mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
76271
- }
76272
- var authInHost;
76273
- if (isRelAbs) {
76274
- // it's absolute.
76275
- result.host = (relative.host || relative.host === '') ?
76276
- relative.host : result.host;
76277
- result.hostname = (relative.hostname || relative.hostname === '') ?
76278
- relative.hostname : result.hostname;
76279
- result.search = relative.search;
76280
- result.query = relative.query;
76281
- srcPath = relPath;
76282
- // fall through to the dot-handling below.
76283
- } else if (relPath.length) {
76284
- // it's relative
76285
- // throw away the existing file, and take the new path instead.
76286
- if (!srcPath) srcPath = [];
76287
- srcPath.pop();
76288
- srcPath = srcPath.concat(relPath);
76289
- result.search = relative.search;
76290
- result.query = relative.query;
76291
- } else if (!util$1.isNullOrUndefined(relative.search)) {
76292
- // just pull out the search.
76293
- // like href='?foo'.
76294
- // Put this after the other two cases because it simplifies the booleans
76295
- if (psychotic) {
76296
- result.hostname = result.host = srcPath.shift();
76297
- //occationaly the auth can get stuck only in host
76298
- //this especially happens in cases like
76299
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
76300
- authInHost = result.host && result.host.indexOf('@') > 0 ?
76301
- result.host.split('@') : false;
76302
- if (authInHost) {
76303
- result.auth = authInHost.shift();
76304
- result.host = result.hostname = authInHost.shift();
76305
- }
76306
- }
76307
- result.search = relative.search;
76308
- result.query = relative.query;
76309
- //to support http.request
76310
- if (!util$1.isNull(result.pathname) || !util$1.isNull(result.search)) {
76311
- result.path = (result.pathname ? result.pathname : '') +
76312
- (result.search ? result.search : '');
76313
- }
76314
- result.href = result.format();
76315
- return result;
76316
- }
76317
-
76318
- if (!srcPath.length) {
76319
- // no path at all. easy.
76320
- // we've already handled the other stuff above.
76321
- result.pathname = null;
76322
- //to support http.request
76323
- if (result.search) {
76324
- result.path = '/' + result.search;
76325
- } else {
76326
- result.path = null;
76327
- }
76328
- result.href = result.format();
76329
- return result;
76330
- }
76331
-
76332
- // if a url ENDs in . or .., then it must get a trailing slash.
76333
- // however, if it ends in anything else non-slashy,
76334
- // then it must NOT get a trailing slash.
76335
- var last = srcPath.slice(-1)[0];
76336
- var hasTrailingSlash = (
76337
- (result.host || relative.host || srcPath.length > 1) &&
76338
- (last === '.' || last === '..') || last === '');
76339
-
76340
- // strip single dots, resolve double dots to parent dir
76341
- // if the path tries to go above the root, `up` ends up > 0
76342
- var up = 0;
76343
- for (var i = srcPath.length; i >= 0; i--) {
76344
- last = srcPath[i];
76345
- if (last === '.') {
76346
- srcPath.splice(i, 1);
76347
- } else if (last === '..') {
76348
- srcPath.splice(i, 1);
76349
- up++;
76350
- } else if (up) {
76351
- srcPath.splice(i, 1);
76352
- up--;
76353
- }
76354
- }
76355
-
76356
- // if the path is allowed to go above the root, restore leading ..s
76357
- if (!mustEndAbs && !removeAllDots) {
76358
- for (; up--; up) {
76359
- srcPath.unshift('..');
76360
- }
76361
- }
76362
-
76363
- if (mustEndAbs && srcPath[0] !== '' &&
76364
- (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
76365
- srcPath.unshift('');
76366
- }
76367
-
76368
- if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
76369
- srcPath.push('');
76370
- }
76371
-
76372
- var isAbsolute = srcPath[0] === '' ||
76373
- (srcPath[0] && srcPath[0].charAt(0) === '/');
76374
-
76375
- // put the host back
76376
- if (psychotic) {
76377
- result.hostname = result.host = isAbsolute ? '' :
76378
- srcPath.length ? srcPath.shift() : '';
76379
- //occationaly the auth can get stuck only in host
76380
- //this especially happens in cases like
76381
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
76382
- authInHost = result.host && result.host.indexOf('@') > 0 ?
76383
- result.host.split('@') : false;
76384
- if (authInHost) {
76385
- result.auth = authInHost.shift();
76386
- result.host = result.hostname = authInHost.shift();
76387
- }
76388
- }
76389
-
76390
- mustEndAbs = mustEndAbs || (result.host && srcPath.length);
76391
-
76392
- if (mustEndAbs && !isAbsolute) {
76393
- srcPath.unshift('');
76394
- }
76395
-
76396
- if (!srcPath.length) {
76397
- result.pathname = null;
76398
- result.path = null;
76399
- } else {
76400
- result.pathname = srcPath.join('/');
76401
- }
76402
-
76403
- //to support request.http
76404
- if (!util$1.isNull(result.pathname) || !util$1.isNull(result.search)) {
76405
- result.path = (result.pathname ? result.pathname : '') +
76406
- (result.search ? result.search : '');
76407
- }
76408
- result.auth = relative.auth || result.auth;
76409
- result.slashes = result.slashes || relative.slashes;
76410
- result.href = result.format();
76411
- return result;
76412
- };
76413
-
76414
- Url$1.prototype.parseHost = function() {
76415
- return parseHost(this);
76416
- };
76417
-
76418
- function parseHost(self) {
76419
- var host = self.host;
76420
- var port = portPattern.exec(host);
76421
- if (port) {
76422
- port = port[0];
76423
- if (port !== ':') {
76424
- self.port = port.substr(1);
76425
- }
76426
- host = host.substr(0, host.length - port.length);
76427
- }
76428
- if (host) self.hostname = host;
76429
- }
76430
-
76431
- var _polyfillNode_url$1 = /*#__PURE__*/Object.freeze({
76432
- __proto__: null,
76433
- parse: urlParse,
76434
- resolve: urlResolve,
76435
- resolveObject: urlResolveObject,
76436
- format: urlFormat,
76437
- 'default': _polyfillNode_url,
76438
- Url: Url$1
76439
- });
76440
-
76441
- var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_url$1);
76442
-
76443
- var _polyfillNode_child_process = {};
76444
-
76445
- var _polyfillNode_child_process$1 = /*#__PURE__*/Object.freeze({
76446
- __proto__: null,
76447
- 'default': _polyfillNode_child_process
76448
- });
76449
-
76450
- var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_child_process$1);
76451
-
76452
- var require$$2$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_fs);
76453
-
76454
- var hasFetch = isFunction(global$1.fetch) && isFunction(global$1.ReadableStream);
76455
-
76456
- var _blobConstructor;
76457
- function blobConstructor() {
76458
- if (typeof _blobConstructor !== 'undefined') {
76459
- return _blobConstructor;
76460
- }
76461
- try {
76462
- new global$1.Blob([new ArrayBuffer(1)]);
76463
- _blobConstructor = true;
76464
- } catch (e) {
76465
- _blobConstructor = false;
76466
- }
76467
- return _blobConstructor
76468
- }
76469
- var xhr;
76470
-
76471
- function checkTypeSupport(type) {
76472
- if (!xhr) {
76473
- xhr = new global$1.XMLHttpRequest();
76474
- // If location.host is empty, e.g. if this page/worker was loaded
76475
- // from a Blob, then use example.com to avoid an error
76476
- xhr.open('GET', global$1.location.host ? '/' : 'https://example.com');
76477
- }
76478
- try {
76479
- xhr.responseType = type;
76480
- return xhr.responseType === type
76481
- } catch (e) {
76482
- return false
76483
- }
76484
-
76485
- }
76486
-
76487
- // For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.
76488
- // Safari 7.1 appears to have fixed this bug.
76489
- var haveArrayBuffer = typeof global$1.ArrayBuffer !== 'undefined';
76490
- var haveSlice = haveArrayBuffer && isFunction(global$1.ArrayBuffer.prototype.slice);
76491
-
76492
- var arraybuffer = haveArrayBuffer && checkTypeSupport('arraybuffer');
76493
- // These next two tests unavoidably show warnings in Chrome. Since fetch will always
76494
- // be used if it's available, just return false for these to avoid the warnings.
76495
- var msstream = !hasFetch && haveSlice && checkTypeSupport('ms-stream');
76496
- var mozchunkedarraybuffer = !hasFetch && haveArrayBuffer &&
76497
- checkTypeSupport('moz-chunked-arraybuffer');
76498
- var overrideMimeType = isFunction(xhr.overrideMimeType);
76499
- var vbArray = isFunction(global$1.VBArray);
76500
-
76501
- function isFunction(value) {
76502
- return typeof value === 'function'
76503
- }
76504
-
76505
- xhr = null; // Help gc
76506
-
76507
- var rStates = {
76508
- UNSENT: 0,
76509
- OPENED: 1,
76510
- HEADERS_RECEIVED: 2,
76511
- LOADING: 3,
76512
- DONE: 4
76513
- };
76514
- function IncomingMessage(xhr, response, mode) {
76515
- var self = this;
76516
- require$$0$7.Readable.call(self);
76517
-
76518
- self._mode = mode;
76519
- self.headers = {};
76520
- self.rawHeaders = [];
76521
- self.trailers = {};
76522
- self.rawTrailers = [];
76523
-
76524
- // Fake the 'close' event, but only once 'end' fires
76525
- self.on('end', function() {
76526
- // The nextTick is necessary to prevent the 'request' module from causing an infinite loop
76527
- browser$1.nextTick(function() {
76528
- self.emit('close');
76529
- });
76530
- });
76531
- var read;
76532
- if (mode === 'fetch') {
76533
- self._fetchResponse = response;
76534
-
76535
- self.url = response.url;
76536
- self.statusCode = response.status;
76537
- self.statusMessage = response.statusText;
76538
- // backwards compatible version of for (<item> of <iterable>):
76539
- // for (var <item>,_i,_it = <iterable>[Symbol.iterator](); <item> = (_i = _it.next()).value,!_i.done;)
76540
- for (var header, _i, _it = response.headers[Symbol.iterator](); header = (_i = _it.next()).value, !_i.done;) {
76541
- self.headers[header[0].toLowerCase()] = header[1];
76542
- self.rawHeaders.push(header[0], header[1]);
76543
- }
76544
-
76545
- // TODO: this doesn't respect backpressure. Once WritableStream is available, this can be fixed
76546
- var reader = response.body.getReader();
76547
-
76548
- read = function () {
76549
- reader.read().then(function(result) {
76550
- if (self._destroyed)
76551
- return
76552
- if (result.done) {
76553
- self.push(null);
76554
- return
76555
- }
76556
- self.push(new Buffer$8(result.value));
76557
- read();
76558
- });
76559
- };
76560
- read();
76561
-
76562
- } else {
76563
- self._xhr = xhr;
76564
- self._pos = 0;
76565
-
76566
- self.url = xhr.responseURL;
76567
- self.statusCode = xhr.status;
76568
- self.statusMessage = xhr.statusText;
76569
- var headers = xhr.getAllResponseHeaders().split(/\r?\n/);
76570
- headers.forEach(function(header) {
76571
- var matches = header.match(/^([^:]+):\s*(.*)/);
76572
- if (matches) {
76573
- var key = matches[1].toLowerCase();
76574
- if (key === 'set-cookie') {
76575
- if (self.headers[key] === undefined) {
76576
- self.headers[key] = [];
76577
- }
76578
- self.headers[key].push(matches[2]);
76579
- } else if (self.headers[key] !== undefined) {
76580
- self.headers[key] += ', ' + matches[2];
76581
- } else {
76582
- self.headers[key] = matches[2];
76583
- }
76584
- self.rawHeaders.push(matches[1], matches[2]);
76585
- }
76586
- });
76587
-
76588
- self._charset = 'x-user-defined';
76589
- if (!overrideMimeType) {
76590
- var mimeType = self.rawHeaders['mime-type'];
76591
- if (mimeType) {
76592
- var charsetMatch = mimeType.match(/;\s*charset=([^;])(;|$)/);
76593
- if (charsetMatch) {
76594
- self._charset = charsetMatch[1].toLowerCase();
76595
- }
76596
- }
76597
- if (!self._charset)
76598
- self._charset = 'utf-8'; // best guess
76599
- }
76600
- }
76601
- }
76602
-
76603
- util$1.inherits(IncomingMessage, require$$0$7.Readable);
76604
-
76605
- IncomingMessage.prototype._read = function() {};
76606
-
76607
- IncomingMessage.prototype._onXHRProgress = function() {
76608
- var self = this;
76609
-
76610
- var xhr = self._xhr;
76611
-
76612
- var response = null;
76613
- switch (self._mode) {
76614
- case 'text:vbarray': // For IE9
76615
- if (xhr.readyState !== rStates.DONE)
76616
- break
76617
- try {
76618
- // This fails in IE8
76619
- response = new global$1.VBArray(xhr.responseBody).toArray();
76620
- } catch (e) {
76621
- // pass
76622
- }
76623
- if (response !== null) {
76624
- self.push(new Buffer$8(response));
76625
- break
76626
- }
76627
- // Falls through in IE8
76628
- case 'text':
76629
- try { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4
76630
- response = xhr.responseText;
76631
- } catch (e) {
76632
- self._mode = 'text:vbarray';
76633
- break
76634
- }
76635
- if (response.length > self._pos) {
76636
- var newData = response.substr(self._pos);
76637
- if (self._charset === 'x-user-defined') {
76638
- var buffer = new Buffer$8(newData.length);
76639
- for (var i = 0; i < newData.length; i++)
76640
- buffer[i] = newData.charCodeAt(i) & 0xff;
76641
-
76642
- self.push(buffer);
76643
- } else {
76644
- self.push(newData, self._charset);
76645
- }
76646
- self._pos = response.length;
76647
- }
76648
- break
76649
- case 'arraybuffer':
76650
- if (xhr.readyState !== rStates.DONE || !xhr.response)
76651
- break
76652
- response = xhr.response;
76653
- self.push(new Buffer$8(new Uint8Array(response)));
76654
- break
76655
- case 'moz-chunked-arraybuffer': // take whole
76656
- response = xhr.response;
76657
- if (xhr.readyState !== rStates.LOADING || !response)
76658
- break
76659
- self.push(new Buffer$8(new Uint8Array(response)));
76660
- break
76661
- case 'ms-stream':
76662
- response = xhr.response;
76663
- if (xhr.readyState !== rStates.LOADING)
76664
- break
76665
- var reader = new global$1.MSStreamReader();
76666
- reader.onprogress = function() {
76667
- if (reader.result.byteLength > self._pos) {
76668
- self.push(new Buffer$8(new Uint8Array(reader.result.slice(self._pos))));
76669
- self._pos = reader.result.byteLength;
76670
- }
76671
- };
76672
- reader.onload = function() {
76673
- self.push(null);
76674
- };
76675
- // reader.onerror = ??? // TODO: this
76676
- reader.readAsArrayBuffer(response);
76677
- break
76678
- }
76679
-
76680
- // The ms-stream case handles end separately in reader.onload()
76681
- if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
76682
- self.push(null);
76683
- }
76684
- };
76685
-
76686
- // from https://github.com/jhiesey/to-arraybuffer/blob/6502d9850e70ba7935a7df4ad86b358fc216f9f0/index.js
76687
- function toArrayBuffer (buf) {
76688
- // If the buffer is backed by a Uint8Array, a faster version will work
76689
- if (buf instanceof Uint8Array) {
76690
- // If the buffer isn't a subarray, return the underlying ArrayBuffer
76691
- if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
76692
- return buf.buffer
76693
- } else if (typeof buf.buffer.slice === 'function') {
76694
- // Otherwise we need to get a proper copy
76695
- return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)
76696
- }
76697
- }
76698
-
76699
- if (buffer.isBuffer(buf)) {
76700
- // This is the slow version that will work with any Buffer
76701
- // implementation (even in old browsers)
76702
- var arrayCopy = new Uint8Array(buf.length);
76703
- var len = buf.length;
76704
- for (var i = 0; i < len; i++) {
76705
- arrayCopy[i] = buf[i];
76706
- }
76707
- return arrayCopy.buffer
76708
- } else {
76709
- throw new Error('Argument must be a Buffer')
76710
- }
76711
- }
76712
-
76713
- function decideMode(preferBinary, useFetch) {
76714
- if (hasFetch && useFetch) {
76715
- return 'fetch'
76716
- } else if (mozchunkedarraybuffer) {
76717
- return 'moz-chunked-arraybuffer'
76718
- } else if (msstream) {
76719
- return 'ms-stream'
76720
- } else if (arraybuffer && preferBinary) {
76721
- return 'arraybuffer'
76722
- } else if (vbArray && preferBinary) {
76723
- return 'text:vbarray'
76724
- } else {
76725
- return 'text'
76726
- }
76727
- }
76728
-
76729
- function ClientRequest(opts) {
76730
- var self = this;
76731
- require$$0$7.Writable.call(self);
76732
-
76733
- self._opts = opts;
76734
- self._body = [];
76735
- self._headers = {};
76736
- if (opts.auth)
76737
- self.setHeader('Authorization', 'Basic ' + new Buffer$8(opts.auth).toString('base64'));
76738
- Object.keys(opts.headers).forEach(function(name) {
76739
- self.setHeader(name, opts.headers[name]);
76740
- });
76741
-
76742
- var preferBinary;
76743
- var useFetch = true;
76744
- if (opts.mode === 'disable-fetch') {
76745
- // If the use of XHR should be preferred and includes preserving the 'content-type' header
76746
- useFetch = false;
76747
- preferBinary = true;
76748
- } else if (opts.mode === 'prefer-streaming') {
76749
- // If streaming is a high priority but binary compatibility and
76750
- // the accuracy of the 'content-type' header aren't
76751
- preferBinary = false;
76752
- } else if (opts.mode === 'allow-wrong-content-type') {
76753
- // If streaming is more important than preserving the 'content-type' header
76754
- preferBinary = !overrideMimeType;
76755
- } else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {
76756
- // Use binary if text streaming may corrupt data or the content-type header, or for speed
76757
- preferBinary = true;
76758
- } else {
76759
- throw new Error('Invalid value for opts.mode')
76760
- }
76761
- self._mode = decideMode(preferBinary, useFetch);
76762
-
76763
- self.on('finish', function() {
76764
- self._onFinish();
76765
- });
76766
- }
76767
-
76768
- util$1.inherits(ClientRequest, require$$0$7.Writable);
76769
- // Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method
76770
- var unsafeHeaders = [
76771
- 'accept-charset',
76772
- 'accept-encoding',
76773
- 'access-control-request-headers',
76774
- 'access-control-request-method',
76775
- 'connection',
76776
- 'content-length',
76777
- 'cookie',
76778
- 'cookie2',
76779
- 'date',
76780
- 'dnt',
76781
- 'expect',
76782
- 'host',
76783
- 'keep-alive',
76784
- 'origin',
76785
- 'referer',
76786
- 'te',
76787
- 'trailer',
76788
- 'transfer-encoding',
76789
- 'upgrade',
76790
- 'user-agent',
76791
- 'via'
76792
- ];
76793
- ClientRequest.prototype.setHeader = function(name, value) {
76794
- var self = this;
76795
- var lowerName = name.toLowerCase();
76796
- // This check is not necessary, but it prevents warnings from browsers about setting unsafe
76797
- // headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but
76798
- // http-browserify did it, so I will too.
76799
- if (unsafeHeaders.indexOf(lowerName) !== -1)
76800
- return
76801
-
76802
- self._headers[lowerName] = {
76803
- name: name,
76804
- value: value
76805
- };
76806
- };
76807
-
76808
- ClientRequest.prototype.getHeader = function(name) {
76809
- var self = this;
76810
- return self._headers[name.toLowerCase()].value
76811
- };
76812
-
76813
- ClientRequest.prototype.removeHeader = function(name) {
76814
- var self = this;
76815
- delete self._headers[name.toLowerCase()];
76816
- };
76817
-
76818
- ClientRequest.prototype._onFinish = function() {
76819
- var self = this;
76820
-
76821
- if (self._destroyed)
76822
- return
76823
- var opts = self._opts;
76824
-
76825
- var headersObj = self._headers;
76826
- var body;
76827
- if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {
76828
- if (blobConstructor()) {
76829
- body = new global$1.Blob(self._body.map(function(buffer) {
76830
- return toArrayBuffer(buffer)
76831
- }), {
76832
- type: (headersObj['content-type'] || {}).value || ''
76833
- });
76834
- } else {
76835
- // get utf8 string
76836
- body = Buffer$8.concat(self._body).toString();
76837
- }
76838
- }
76839
-
76840
- if (self._mode === 'fetch') {
76841
- var headers = Object.keys(headersObj).map(function(name) {
76842
- return [headersObj[name].name, headersObj[name].value]
76843
- });
76844
-
76845
- global$1.fetch(self._opts.url, {
76846
- method: self._opts.method,
76847
- headers: headers,
76848
- body: body,
76849
- mode: 'cors',
76850
- credentials: opts.withCredentials ? 'include' : 'same-origin'
76851
- }).then(function(response) {
76852
- self._fetchResponse = response;
76853
- self._connect();
76854
- }, function(reason) {
76855
- self.emit('error', reason);
76856
- });
76857
- } else {
76858
- var xhr = self._xhr = new global$1.XMLHttpRequest();
76859
- try {
76860
- xhr.open(self._opts.method, self._opts.url, true);
76861
- } catch (err) {
76862
- browser$1.nextTick(function() {
76863
- self.emit('error', err);
76864
- });
76865
- return
76866
- }
76867
-
76868
- // Can't set responseType on really old browsers
76869
- if ('responseType' in xhr)
76870
- xhr.responseType = self._mode.split(':')[0];
76871
-
76872
- if ('withCredentials' in xhr)
76873
- xhr.withCredentials = !!opts.withCredentials;
76874
-
76875
- if (self._mode === 'text' && 'overrideMimeType' in xhr)
76876
- xhr.overrideMimeType('text/plain; charset=x-user-defined');
76877
-
76878
- Object.keys(headersObj).forEach(function(name) {
76879
- xhr.setRequestHeader(headersObj[name].name, headersObj[name].value);
76880
- });
76881
-
76882
- self._response = null;
76883
- xhr.onreadystatechange = function() {
76884
- switch (xhr.readyState) {
76885
- case rStates.LOADING:
76886
- case rStates.DONE:
76887
- self._onXHRProgress();
76888
- break
76889
- }
76890
- };
76891
- // Necessary for streaming in Firefox, since xhr.response is ONLY defined
76892
- // in onprogress, not in onreadystatechange with xhr.readyState = 3
76893
- if (self._mode === 'moz-chunked-arraybuffer') {
76894
- xhr.onprogress = function() {
76895
- self._onXHRProgress();
76896
- };
76897
- }
76898
-
76899
- xhr.onerror = function() {
76900
- if (self._destroyed)
76901
- return
76902
- self.emit('error', new Error('XHR error'));
76903
- };
76904
-
76905
- try {
76906
- xhr.send(body);
76907
- } catch (err) {
76908
- browser$1.nextTick(function() {
76909
- self.emit('error', err);
76910
- });
76911
- return
76912
- }
76913
- }
76914
- };
76915
-
76916
- /**
76917
- * Checks if xhr.status is readable and non-zero, indicating no error.
76918
- * Even though the spec says it should be available in readyState 3,
76919
- * accessing it throws an exception in IE8
76920
- */
76921
- function statusValid(xhr) {
76922
- try {
76923
- var status = xhr.status;
76924
- return (status !== null && status !== 0)
76925
- } catch (e) {
76926
- return false
76927
- }
76928
- }
76929
-
76930
- ClientRequest.prototype._onXHRProgress = function() {
76931
- var self = this;
76932
-
76933
- if (!statusValid(self._xhr) || self._destroyed)
76934
- return
76935
-
76936
- if (!self._response)
76937
- self._connect();
76938
-
76939
- self._response._onXHRProgress();
76940
- };
76941
-
76942
- ClientRequest.prototype._connect = function() {
76943
- var self = this;
76944
-
76945
- if (self._destroyed)
76946
- return
76947
-
76948
- self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode);
76949
- self.emit('response', self._response);
76950
- };
76951
-
76952
- ClientRequest.prototype._write = function(chunk, encoding, cb) {
76953
- var self = this;
76954
-
76955
- self._body.push(chunk);
76956
- cb();
76957
- };
76958
-
76959
- ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function() {
76960
- var self = this;
76961
- self._destroyed = true;
76962
- if (self._response)
76963
- self._response._destroyed = true;
76964
- if (self._xhr)
76965
- self._xhr.abort();
76966
- // Currently, there isn't a way to truly abort a fetch.
76967
- // If you like bikeshedding, see https://github.com/whatwg/fetch/issues/27
76968
- };
76969
-
76970
- ClientRequest.prototype.end = function(data, encoding, cb) {
76971
- var self = this;
76972
- if (typeof data === 'function') {
76973
- cb = data;
76974
- data = undefined;
76975
- }
76976
-
76977
- require$$0$7.Writable.prototype.end.call(self, data, encoding, cb);
76978
- };
76979
-
76980
- ClientRequest.prototype.flushHeaders = function() {};
76981
- ClientRequest.prototype.setTimeout = function() {};
76982
- ClientRequest.prototype.setNoDelay = function() {};
76983
- ClientRequest.prototype.setSocketKeepAlive = function() {};
76984
-
76985
- function request$1(opts, cb) {
76986
- if (typeof opts === 'string')
76987
- opts = urlParse(opts);
76988
-
76989
-
76990
- // Normally, the page is loaded from http or https, so not specifying a protocol
76991
- // will result in a (valid) protocol-relative url. However, this won't work if
76992
- // the protocol is something else, like 'file:'
76993
- var defaultProtocol = global$1.location.protocol.search(/^https?:$/) === -1 ? 'http:' : '';
76994
-
76995
- var protocol = opts.protocol || defaultProtocol;
76996
- var host = opts.hostname || opts.host;
76997
- var port = opts.port;
76998
- var path = opts.path || '/';
76999
-
77000
- // Necessary for IPv6 addresses
77001
- if (host && host.indexOf(':') !== -1)
77002
- host = '[' + host + ']';
77003
-
77004
- // This may be a relative url. The browser should always be able to interpret it correctly.
77005
- opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path;
77006
- opts.method = (opts.method || 'GET').toUpperCase();
77007
- opts.headers = opts.headers || {};
77008
-
77009
- // Also valid opts.auth, opts.mode
77010
-
77011
- var req = new ClientRequest(opts);
77012
- if (cb)
77013
- req.on('response', cb);
77014
- return req
77015
- }
77016
-
77017
- function get$1(opts, cb) {
77018
- var req = request$1(opts, cb);
77019
- req.end();
77020
- return req
77021
- }
77022
-
77023
- function Agent$1() {}
77024
- Agent$1.defaultMaxSockets = 4;
77025
-
77026
- var METHODS$1 = [
77027
- 'CHECKOUT',
77028
- 'CONNECT',
77029
- 'COPY',
77030
- 'DELETE',
77031
- 'GET',
77032
- 'HEAD',
77033
- 'LOCK',
77034
- 'M-SEARCH',
77035
- 'MERGE',
77036
- 'MKACTIVITY',
77037
- 'MKCOL',
77038
- 'MOVE',
77039
- 'NOTIFY',
77040
- 'OPTIONS',
77041
- 'PATCH',
77042
- 'POST',
77043
- 'PROPFIND',
77044
- 'PROPPATCH',
77045
- 'PURGE',
77046
- 'PUT',
77047
- 'REPORT',
77048
- 'SEARCH',
77049
- 'SUBSCRIBE',
77050
- 'TRACE',
77051
- 'UNLOCK',
77052
- 'UNSUBSCRIBE'
77053
- ];
77054
- var STATUS_CODES$1 = {
77055
- 100: 'Continue',
77056
- 101: 'Switching Protocols',
77057
- 102: 'Processing', // RFC 2518, obsoleted by RFC 4918
77058
- 200: 'OK',
77059
- 201: 'Created',
77060
- 202: 'Accepted',
77061
- 203: 'Non-Authoritative Information',
77062
- 204: 'No Content',
77063
- 205: 'Reset Content',
77064
- 206: 'Partial Content',
77065
- 207: 'Multi-Status', // RFC 4918
77066
- 300: 'Multiple Choices',
77067
- 301: 'Moved Permanently',
77068
- 302: 'Moved Temporarily',
77069
- 303: 'See Other',
77070
- 304: 'Not Modified',
77071
- 305: 'Use Proxy',
77072
- 307: 'Temporary Redirect',
77073
- 400: 'Bad Request',
77074
- 401: 'Unauthorized',
77075
- 402: 'Payment Required',
77076
- 403: 'Forbidden',
77077
- 404: 'Not Found',
77078
- 405: 'Method Not Allowed',
77079
- 406: 'Not Acceptable',
77080
- 407: 'Proxy Authentication Required',
77081
- 408: 'Request Time-out',
77082
- 409: 'Conflict',
77083
- 410: 'Gone',
77084
- 411: 'Length Required',
77085
- 412: 'Precondition Failed',
77086
- 413: 'Request Entity Too Large',
77087
- 414: 'Request-URI Too Large',
77088
- 415: 'Unsupported Media Type',
77089
- 416: 'Requested Range Not Satisfiable',
77090
- 417: 'Expectation Failed',
77091
- 418: 'I\'m a teapot', // RFC 2324
77092
- 422: 'Unprocessable Entity', // RFC 4918
77093
- 423: 'Locked', // RFC 4918
77094
- 424: 'Failed Dependency', // RFC 4918
77095
- 425: 'Unordered Collection', // RFC 4918
77096
- 426: 'Upgrade Required', // RFC 2817
77097
- 428: 'Precondition Required', // RFC 6585
77098
- 429: 'Too Many Requests', // RFC 6585
77099
- 431: 'Request Header Fields Too Large', // RFC 6585
77100
- 500: 'Internal Server Error',
77101
- 501: 'Not Implemented',
77102
- 502: 'Bad Gateway',
77103
- 503: 'Service Unavailable',
77104
- 504: 'Gateway Time-out',
77105
- 505: 'HTTP Version Not Supported',
77106
- 506: 'Variant Also Negotiates', // RFC 2295
77107
- 507: 'Insufficient Storage', // RFC 4918
77108
- 509: 'Bandwidth Limit Exceeded',
77109
- 510: 'Not Extended', // RFC 2774
77110
- 511: 'Network Authentication Required' // RFC 6585
77111
- };
77112
-
77113
- var _polyfillNode_http = {
77114
- request: request$1,
77115
- get: get$1,
77116
- Agent: Agent$1,
77117
- METHODS: METHODS$1,
77118
- STATUS_CODES: STATUS_CODES$1
77119
- };
77120
-
77121
- var _polyfillNode_http$1 = /*#__PURE__*/Object.freeze({
77122
- __proto__: null,
77123
- request: request$1,
77124
- get: get$1,
77125
- Agent: Agent$1,
77126
- METHODS: METHODS$1,
77127
- STATUS_CODES: STATUS_CODES$1,
77128
- 'default': _polyfillNode_http
77129
- });
77130
-
77131
- var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_http$1);
77132
-
77133
- function request(opts, cb) {
77134
- if (typeof opts === 'string')
77135
- opts = urlParse(opts);
77136
-
77137
-
77138
- // Normally, the page is loaded from http or https, so not specifying a protocol
77139
- // will result in a (valid) protocol-relative url. However, this won't work if
77140
- // the protocol is something else, like 'file:'
77141
- var defaultProtocol = global$1.location.protocol.search(/^https?:$/) === -1 ? 'http:' : '';
77142
-
77143
- var protocol = opts.protocol || defaultProtocol;
77144
- var host = opts.hostname || opts.host;
77145
- var port = opts.port;
77146
- var path = opts.path || '/';
77147
-
77148
- // Necessary for IPv6 addresses
77149
- if (host && host.indexOf(':') !== -1)
77150
- host = '[' + host + ']';
77151
-
77152
- // This may be a relative url. The browser should always be able to interpret it correctly.
77153
- opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path;
77154
- opts.method = (opts.method || 'GET').toUpperCase();
77155
- opts.headers = opts.headers || {};
77156
-
77157
- // Also valid opts.auth, opts.mode
77158
-
77159
- var req = new ClientRequest(opts);
77160
- if (cb)
77161
- req.on('response', cb);
77162
- return req
77163
- }
77164
-
77165
- function get(opts, cb) {
77166
- var req = request(opts, cb);
77167
- req.end();
77168
- return req
77169
- }
77170
-
77171
- function Agent() {}
77172
- Agent.defaultMaxSockets = 4;
77173
-
77174
- var METHODS = [
77175
- 'CHECKOUT',
77176
- 'CONNECT',
77177
- 'COPY',
77178
- 'DELETE',
77179
- 'GET',
77180
- 'HEAD',
77181
- 'LOCK',
77182
- 'M-SEARCH',
77183
- 'MERGE',
77184
- 'MKACTIVITY',
77185
- 'MKCOL',
77186
- 'MOVE',
77187
- 'NOTIFY',
77188
- 'OPTIONS',
77189
- 'PATCH',
77190
- 'POST',
77191
- 'PROPFIND',
77192
- 'PROPPATCH',
77193
- 'PURGE',
77194
- 'PUT',
77195
- 'REPORT',
77196
- 'SEARCH',
77197
- 'SUBSCRIBE',
77198
- 'TRACE',
77199
- 'UNLOCK',
77200
- 'UNSUBSCRIBE'
77201
- ];
77202
- var STATUS_CODES = {
77203
- 100: 'Continue',
77204
- 101: 'Switching Protocols',
77205
- 102: 'Processing', // RFC 2518, obsoleted by RFC 4918
77206
- 200: 'OK',
77207
- 201: 'Created',
77208
- 202: 'Accepted',
77209
- 203: 'Non-Authoritative Information',
77210
- 204: 'No Content',
77211
- 205: 'Reset Content',
77212
- 206: 'Partial Content',
77213
- 207: 'Multi-Status', // RFC 4918
77214
- 300: 'Multiple Choices',
77215
- 301: 'Moved Permanently',
77216
- 302: 'Moved Temporarily',
77217
- 303: 'See Other',
77218
- 304: 'Not Modified',
77219
- 305: 'Use Proxy',
77220
- 307: 'Temporary Redirect',
77221
- 400: 'Bad Request',
77222
- 401: 'Unauthorized',
77223
- 402: 'Payment Required',
77224
- 403: 'Forbidden',
77225
- 404: 'Not Found',
77226
- 405: 'Method Not Allowed',
77227
- 406: 'Not Acceptable',
77228
- 407: 'Proxy Authentication Required',
77229
- 408: 'Request Time-out',
77230
- 409: 'Conflict',
77231
- 410: 'Gone',
77232
- 411: 'Length Required',
77233
- 412: 'Precondition Failed',
77234
- 413: 'Request Entity Too Large',
77235
- 414: 'Request-URI Too Large',
77236
- 415: 'Unsupported Media Type',
77237
- 416: 'Requested Range Not Satisfiable',
77238
- 417: 'Expectation Failed',
77239
- 418: 'I\'m a teapot', // RFC 2324
77240
- 422: 'Unprocessable Entity', // RFC 4918
77241
- 423: 'Locked', // RFC 4918
77242
- 424: 'Failed Dependency', // RFC 4918
77243
- 425: 'Unordered Collection', // RFC 4918
77244
- 426: 'Upgrade Required', // RFC 2817
77245
- 428: 'Precondition Required', // RFC 6585
77246
- 429: 'Too Many Requests', // RFC 6585
77247
- 431: 'Request Header Fields Too Large', // RFC 6585
77248
- 500: 'Internal Server Error',
77249
- 501: 'Not Implemented',
77250
- 502: 'Bad Gateway',
77251
- 503: 'Service Unavailable',
77252
- 504: 'Gateway Time-out',
77253
- 505: 'HTTP Version Not Supported',
77254
- 506: 'Variant Also Negotiates', // RFC 2295
77255
- 507: 'Insufficient Storage', // RFC 4918
77256
- 509: 'Bandwidth Limit Exceeded',
77257
- 510: 'Not Extended', // RFC 2774
77258
- 511: 'Network Authentication Required' // RFC 6585
77259
- };
77260
-
77261
- var _polyfillNode_https = {
77262
- request,
77263
- get,
77264
- Agent,
77265
- METHODS,
77266
- STATUS_CODES
77267
- };
77268
-
77269
- var _polyfillNode_https$1 = /*#__PURE__*/Object.freeze({
77270
- __proto__: null,
77271
- request: request,
77272
- get: get,
77273
- Agent: Agent,
77274
- METHODS: METHODS,
77275
- STATUS_CODES: STATUS_CODES,
77276
- 'default': _polyfillNode_https
77277
- });
77278
-
77279
- var require$$4$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_https$1);
77280
-
77281
- var Url = require$$0$2;
77282
- var spawn = require$$1$2.spawn;
77283
- var fs = require$$2$2;
77284
-
77285
- XMLHttpRequest.XMLHttpRequest = function () {
77286
- /**
77287
- * Private variables
77288
- */
77289
-
77290
- var self = this;
77291
- var http = require$$3$2;
77292
- var https = require$$4$2; // Holds http.js objects
77293
-
77294
- var request;
77295
- var response; // Request settings
77296
-
77297
- var settings = {}; // Disable header blacklist.
77298
- // Not part of XHR specs.
77299
-
77300
- var disableHeaderCheck = false; // Set some default headers
77301
-
77302
- var defaultHeaders = {
77303
- "User-Agent": "node-XMLHttpRequest",
77304
- "Accept": "*/*"
77305
- };
77306
- var headers = {};
77307
- var headersCase = {}; // These headers are not user setable.
77308
- // The following are allowed but banned in the spec:
77309
- // * user-agent
77310
-
77311
- var forbiddenRequestHeaders = ["accept-charset", "accept-encoding", "access-control-request-headers", "access-control-request-method", "connection", "content-length", "content-transfer-encoding", "cookie", "cookie2", "date", "expect", "host", "keep-alive", "origin", "referer", "te", "trailer", "transfer-encoding", "upgrade", "via"]; // These request methods are not allowed
77312
-
77313
- var forbiddenRequestMethods = ["TRACE", "TRACK", "CONNECT"]; // Send flag
77314
-
77315
- var sendFlag = false; // Error flag, used when errors occur or abort is called
77316
-
77317
- var errorFlag = false; // Event listeners
77318
-
77319
- var listeners = {};
77320
- /**
77321
- * Constants
77322
- */
77323
-
77324
- this.UNSENT = 0;
77325
- this.OPENED = 1;
77326
- this.HEADERS_RECEIVED = 2;
77327
- this.LOADING = 3;
77328
- this.DONE = 4;
77329
- /**
77330
- * Public vars
77331
- */
77332
- // Current state
77333
-
77334
- this.readyState = this.UNSENT; // default ready state change handler in case one is not set or is set late
77335
-
77336
- this.onreadystatechange = null; // Result & response
77337
-
77338
- this.responseText = "";
77339
- this.responseXML = "";
77340
- this.status = null;
77341
- this.statusText = null; // Whether cross-site Access-Control requests should be made using
77342
- // credentials such as cookies or authorization headers
77343
-
77344
- this.withCredentials = false;
77345
- /**
77346
- * Private methods
77347
- */
77348
-
77349
- /**
77350
- * Check if the specified header is allowed.
77351
- *
77352
- * @param string header Header to validate
77353
- * @return boolean False if not allowed, otherwise true
77354
- */
77355
-
77356
- var isAllowedHttpHeader = function isAllowedHttpHeader(header) {
77357
- return disableHeaderCheck || header && forbiddenRequestHeaders.indexOf(header.toLowerCase()) === -1;
77358
- };
77359
- /**
77360
- * Check if the specified method is allowed.
77361
- *
77362
- * @param string method Request method to validate
77363
- * @return boolean False if not allowed, otherwise true
77364
- */
77365
-
77366
-
77367
- var isAllowedHttpMethod = function isAllowedHttpMethod(method) {
77368
- return method && forbiddenRequestMethods.indexOf(method) === -1;
77369
- };
77370
- /**
77371
- * Public methods
77372
- */
77373
-
77374
- /**
77375
- * Open the connection. Currently supports local server requests.
77376
- *
77377
- * @param string method Connection method (eg GET, POST)
77378
- * @param string url URL for the connection.
77379
- * @param boolean async Asynchronous connection. Default is true.
77380
- * @param string user Username for basic authentication (optional)
77381
- * @param string password Password for basic authentication (optional)
77382
- */
77383
-
77384
-
77385
- this.open = function (method, url, async, user, password) {
77386
- this.abort();
77387
- errorFlag = false; // Check for valid request method
77388
-
77389
- if (!isAllowedHttpMethod(method)) {
77390
- throw new Error("SecurityError: Request method not allowed");
77391
- }
77392
-
77393
- settings = {
77394
- "method": method,
77395
- "url": url.toString(),
77396
- "async": typeof async !== "boolean" ? true : async,
77397
- "user": user || null,
77398
- "password": password || null
77399
- };
77400
- setState(this.OPENED);
77401
- };
77402
- /**
77403
- * Disables or enables isAllowedHttpHeader() check the request. Enabled by default.
77404
- * This does not conform to the W3C spec.
77405
- *
77406
- * @param boolean state Enable or disable header checking.
77407
- */
77408
-
77409
-
77410
- this.setDisableHeaderCheck = function (state) {
77411
- disableHeaderCheck = state;
77412
- };
77413
- /**
77414
- * Sets a header for the request or appends the value if one is already set.
77415
- *
77416
- * @param string header Header name
77417
- * @param string value Header value
77418
- */
77419
-
77420
-
77421
- this.setRequestHeader = function (header, value) {
77422
- if (this.readyState !== this.OPENED) {
77423
- throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");
77424
- }
77425
-
77426
- if (!isAllowedHttpHeader(header)) {
77427
- console.warn("Refused to set unsafe header \"" + header + "\"");
77428
- return;
77429
- }
77430
-
77431
- if (sendFlag) {
77432
- throw new Error("INVALID_STATE_ERR: send flag is true");
77433
- }
77434
-
77435
- header = headersCase[header.toLowerCase()] || header;
77436
- headersCase[header.toLowerCase()] = header;
77437
- headers[header] = headers[header] ? headers[header] + ', ' + value : value;
77438
- };
77439
- /**
77440
- * Gets a header from the server response.
77441
- *
77442
- * @param string header Name of header to get.
77443
- * @return string Text of the header or null if it doesn't exist.
77444
- */
77445
-
77446
-
77447
- this.getResponseHeader = function (header) {
77448
- if (typeof header === "string" && this.readyState > this.OPENED && response && response.headers && response.headers[header.toLowerCase()] && !errorFlag) {
77449
- return response.headers[header.toLowerCase()];
77450
- }
77451
-
77452
- return null;
77453
- };
77454
- /**
77455
- * Gets all the response headers.
77456
- *
77457
- * @return string A string with all response headers separated by CR+LF
77458
- */
77459
-
77460
-
77461
- this.getAllResponseHeaders = function () {
77462
- if (this.readyState < this.HEADERS_RECEIVED || errorFlag) {
77463
- return "";
77464
- }
77465
-
77466
- var result = "";
77467
-
77468
- for (var i in response.headers) {
77469
- // Cookie headers are excluded
77470
- if (i !== "set-cookie" && i !== "set-cookie2") {
77471
- result += i + ": " + response.headers[i] + "\r\n";
77472
- }
77473
- }
77474
-
77475
- return result.substr(0, result.length - 2);
77476
- };
77477
- /**
77478
- * Gets a request header
77479
- *
77480
- * @param string name Name of header to get
77481
- * @return string Returns the request header or empty string if not set
77482
- */
77483
-
77484
-
77485
- this.getRequestHeader = function (name) {
77486
- if (typeof name === "string" && headersCase[name.toLowerCase()]) {
77487
- return headers[headersCase[name.toLowerCase()]];
77488
- }
77489
-
77490
- return "";
77491
- };
77492
- /**
77493
- * Sends the request to the server.
77494
- *
77495
- * @param string data Optional data to send as request body.
77496
- */
77497
-
77498
-
77499
- this.send = function (data) {
77500
- if (this.readyState !== this.OPENED) {
77501
- throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");
77502
- }
77503
-
77504
- if (sendFlag) {
77505
- throw new Error("INVALID_STATE_ERR: send has already been called");
77506
- }
77507
-
77508
- var ssl = false,
77509
- local = false;
77510
- var url = Url.parse(settings.url);
77511
- var host; // Determine the server
77512
-
77513
- switch (url.protocol) {
77514
- case "https:":
77515
- ssl = true;
77516
- // SSL & non-SSL both need host, no break here.
77517
-
77518
- case "http:":
77519
- host = url.hostname;
77520
- break;
77521
-
77522
- case "file:":
77523
- local = true;
77524
- break;
77525
-
77526
- case undefined:
77527
- case null:
77528
- case "":
77529
- host = "localhost";
77530
- break;
77531
-
77532
- default:
77533
- throw new Error("Protocol not supported.");
77534
- } // Load files off the local filesystem (file://)
77535
-
77536
-
77537
- if (local) {
77538
- if (settings.method !== "GET") {
77539
- throw new Error("XMLHttpRequest: Only GET method is supported");
77540
- }
77541
-
77542
- if (settings.async) {
77543
- fs.readFile(url.pathname, "utf8", function (error, data) {
77544
- if (error) {
77545
- self.handleError(error);
77546
- } else {
77547
- self.status = 200;
77548
- self.responseText = data;
77549
- setState(self.DONE);
77550
- }
77551
- });
77552
- } else {
77553
- try {
77554
- this.responseText = fs.readFileSync(url.pathname, "utf8");
77555
- this.status = 200;
77556
- setState(self.DONE);
77557
- } catch (e) {
77558
- this.handleError(e);
77559
- }
77560
- }
77561
-
77562
- return;
77563
- } // Default to port 80. If accessing localhost on another port be sure
77564
- // to use http://localhost:port/path
77565
-
77566
-
77567
- var port = url.port || (ssl ? 443 : 80); // Add query string if one is used
77568
-
77569
- var uri = url.pathname + (url.search ? url.search : ""); // Set the defaults if they haven't been set
77570
-
77571
- for (var name in defaultHeaders) {
77572
- if (!headersCase[name.toLowerCase()]) {
77573
- headers[name] = defaultHeaders[name];
77574
- }
77575
- } // Set the Host header or the server may reject the request
77576
-
77577
-
77578
- headers.Host = host;
77579
-
77580
- if (!(ssl && port === 443 || port === 80)) {
77581
- headers.Host += ":" + url.port;
77582
- } // Set Basic Auth if necessary
77583
-
77584
-
77585
- if (settings.user) {
77586
- if (typeof settings.password === "undefined") {
77587
- settings.password = "";
77588
- }
77589
-
77590
- var authBuf = new Buffer$8(settings.user + ":" + settings.password);
77591
- headers.Authorization = "Basic " + authBuf.toString("base64");
77592
- } // Set content length header
77593
-
77594
-
77595
- if (settings.method === "GET" || settings.method === "HEAD") {
77596
- data = null;
77597
- } else if (data) {
77598
- headers["Content-Length"] = Buffer$8.isBuffer(data) ? data.length : Buffer$8.byteLength(data);
77599
-
77600
- if (!headers["Content-Type"]) {
77601
- headers["Content-Type"] = "text/plain;charset=UTF-8";
77602
- }
77603
- } else if (settings.method === "POST") {
77604
- // For a post with no data set Content-Length: 0.
77605
- // This is required by buggy servers that don't meet the specs.
77606
- headers["Content-Length"] = 0;
77607
- }
77608
-
77609
- var options = {
77610
- host: host,
77611
- port: port,
77612
- path: uri,
77613
- method: settings.method,
77614
- headers: headers,
77615
- agent: false,
77616
- withCredentials: self.withCredentials
77617
- }; // Reset error flag
77618
-
77619
- errorFlag = false; // Handle async requests
77620
-
77621
- if (settings.async) {
77622
- // Use the proper protocol
77623
- var doRequest = ssl ? https.request : http.request; // Request is being sent, set send flag
77624
-
77625
- sendFlag = true; // As per spec, this is called here for historical reasons.
77626
-
77627
- self.dispatchEvent("readystatechange"); // Handler for the response
77628
-
77629
- var responseHandler = function responseHandler(resp) {
77630
- // Set response var to the response we got back
77631
- // This is so it remains accessable outside this scope
77632
- response = resp; // Check for redirect
77633
- // @TODO Prevent looped redirects
77634
-
77635
- if (response.statusCode === 301 || response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
77636
- // Change URL to the redirect location
77637
- settings.url = response.headers.location;
77638
- var url = Url.parse(settings.url); // Set host var in case it's used later
77639
-
77640
- host = url.hostname; // Options for the new request
77641
-
77642
- var newOptions = {
77643
- hostname: url.hostname,
77644
- port: url.port,
77645
- path: url.path,
77646
- method: response.statusCode === 303 ? "GET" : settings.method,
77647
- headers: headers,
77648
- withCredentials: self.withCredentials
77649
- }; // Issue the new request
77650
-
77651
- request = doRequest(newOptions, responseHandler).on("error", errorHandler);
77652
- request.end(); // @TODO Check if an XHR event needs to be fired here
77653
-
77654
- return;
77655
- }
77656
-
77657
- response.setEncoding("utf8");
77658
- setState(self.HEADERS_RECEIVED);
77659
- self.status = response.statusCode;
77660
- response.on("data", function (chunk) {
77661
- // Make sure there's some data
77662
- if (chunk) {
77663
- self.responseText += chunk;
77664
- } // Don't emit state changes if the connection has been aborted.
77665
-
77666
-
77667
- if (sendFlag) {
77668
- setState(self.LOADING);
77669
- }
77670
- });
77671
- response.on("end", function () {
77672
- if (sendFlag) {
77673
- // Discard the end event if the connection has been aborted
77674
- setState(self.DONE);
77675
- sendFlag = false;
77676
- }
77677
- });
77678
- response.on("error", function (error) {
77679
- self.handleError(error);
77680
- });
77681
- }; // Error handler for the request
77682
-
77683
-
77684
- var errorHandler = function errorHandler(error) {
77685
- self.handleError(error);
77686
- }; // Create the request
77687
-
77688
-
77689
- request = doRequest(options, responseHandler).on("error", errorHandler); // Node 0.4 and later won't accept empty data. Make sure it's needed.
77690
-
77691
- if (data) {
77692
- request.write(data);
77693
- }
77694
-
77695
- request.end();
77696
- self.dispatchEvent("loadstart");
77697
- } else {
77698
- // Synchronous
77699
- // Create a temporary file for communication with the other Node process
77700
- var contentFile = ".node-xmlhttprequest-content-" + browser$1.pid;
77701
- var syncFile = ".node-xmlhttprequest-sync-" + browser$1.pid;
77702
- fs.writeFileSync(syncFile, "", "utf8"); // The async request the other Node process executes
77703
-
77704
- var execString = "var http = require('http'), https = require('https'), fs = require('fs');" + "var doRequest = http" + (ssl ? "s" : "") + ".request;" + "var options = " + JSON.stringify(options) + ";" + "var responseText = '';" + "var req = doRequest(options, function(response) {" + "response.setEncoding('utf8');" + "response.on('data', function(chunk) {" + " responseText += chunk;" + "});" + "response.on('end', function() {" + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');" + "fs.unlinkSync('" + syncFile + "');" + "});" + "response.on('error', function(error) {" + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');" + "fs.unlinkSync('" + syncFile + "');" + "});" + "}).on('error', function(error) {" + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');" + "fs.unlinkSync('" + syncFile + "');" + "});" + (data ? "req.write('" + JSON.stringify(data).slice(1, -1).replace(/'/g, "\\'") + "');" : "") + "req.end();"; // Start the other Node Process, executing this string
77705
-
77706
- var syncProc = spawn(browser$1.argv[0], ["-e", execString]);
77707
-
77708
- while (fs.existsSync(syncFile)) {// Wait while the sync file is empty
77709
- }
77710
-
77711
- var resp = JSON.parse(fs.readFileSync(contentFile, 'utf8')); // Kill the child process once the file has data
77712
-
77713
- syncProc.stdin.end(); // Remove the temporary file
77714
-
77715
- fs.unlinkSync(contentFile);
77716
-
77717
- if (resp.err) {
77718
- self.handleError(resp.err);
77719
- } else {
77720
- response = resp.data;
77721
- self.status = resp.data.statusCode;
77722
- self.responseText = resp.data.text;
77723
- setState(self.DONE);
77724
- }
77725
- }
77726
- };
77727
- /**
77728
- * Called when an error is encountered to deal with it.
77729
- */
77730
-
77731
-
77732
- this.handleError = function (error) {
77733
- this.status = 0;
77734
- this.statusText = error;
77735
- this.responseText = error.stack;
77736
- errorFlag = true;
77737
- setState(this.DONE);
77738
- this.dispatchEvent('error');
77739
- };
77740
- /**
77741
- * Aborts a request.
77742
- */
77743
-
77744
-
77745
- this.abort = function () {
77746
- if (request) {
77747
- request.abort();
77748
- request = null;
77749
- }
77750
-
77751
- headers = defaultHeaders;
77752
- this.status = 0;
77753
- this.responseText = "";
77754
- this.responseXML = "";
77755
- errorFlag = true;
77756
-
77757
- if (this.readyState !== this.UNSENT && (this.readyState !== this.OPENED || sendFlag) && this.readyState !== this.DONE) {
77758
- sendFlag = false;
77759
- setState(this.DONE);
77760
- }
77761
-
77762
- this.readyState = this.UNSENT;
77763
- this.dispatchEvent('abort');
77764
- };
77765
- /**
77766
- * Adds an event listener. Preferred method of binding to events.
77767
- */
77768
-
77769
-
77770
- this.addEventListener = function (event, callback) {
77771
- if (!(event in listeners)) {
77772
- listeners[event] = [];
77773
- } // Currently allows duplicate callbacks. Should it?
77774
-
77775
-
77776
- listeners[event].push(callback);
77777
- };
77778
- /**
77779
- * Remove an event callback that has already been bound.
77780
- * Only works on the matching funciton, cannot be a copy.
77781
- */
77782
-
77783
-
77784
- this.removeEventListener = function (event, callback) {
77785
- if (event in listeners) {
77786
- // Filter will return a new array with the callback removed
77787
- listeners[event] = listeners[event].filter(function (ev) {
77788
- return ev !== callback;
77789
- });
77790
- }
77791
- };
77792
- /**
77793
- * Dispatch any events, including both "on" methods and events attached using addEventListener.
77794
- */
77795
-
77796
-
77797
- this.dispatchEvent = function (event) {
77798
- if (typeof self["on" + event] === "function") {
77799
- self["on" + event]();
77800
- }
77801
-
77802
- if (event in listeners) {
77803
- for (var i = 0, len = listeners[event].length; i < len; i++) {
77804
- listeners[event][i].call(self);
77805
- }
77806
- }
77807
- };
77808
- /**
77809
- * Changes readyState and calls onreadystatechange.
77810
- *
77811
- * @param int state New state
77812
- */
77813
-
77814
-
77815
- var setState = function setState(state) {
77816
- if (state == self.LOADING || self.readyState !== state) {
77817
- self.readyState = state;
77818
-
77819
- if (settings.async || self.readyState < self.OPENED || self.readyState === self.DONE) {
77820
- self.dispatchEvent("readystatechange");
77821
- }
77822
-
77823
- if (self.readyState === self.DONE && !errorFlag) {
77824
- self.dispatchEvent("load"); // @TODO figure out InspectorInstrumentation::didLoadXHR(cookie)
77825
-
77826
- self.dispatchEvent("loadend");
77827
- }
77828
- }
77829
- };
77830
- };
77831
-
77832
75256
  /* eslint-disable @typescript-eslint/no-var-requires */
77833
75257
  var XMLHttpRequestRef;
77834
75258
 
77835
75259
  if (typeof window === 'undefined' || window === null) {
77836
- XMLHttpRequestRef = XMLHttpRequest.XMLHttpRequest;
75260
+ XMLHttpRequestRef = require$$0__default$2["default"].XMLHttpRequest;
77837
75261
  } else {
77838
75262
  XMLHttpRequestRef = window.XMLHttpRequest;
77839
75263
  }
@@ -86311,7 +83735,7 @@ var hash = {};
86311
83735
  value: true
86312
83736
  });
86313
83737
  exports.importPublic = exports.privateToPublic = exports.privateToAddress = exports.publicToAddress = exports.pubToAddress = exports.isValidPublic = exports.isValidPrivate = exports.isPrecompiled = exports.generateAddress2 = exports.generateAddress = exports.isValidChecksumAddress = exports.toChecksumAddress = exports.isZeroAddress = exports.isValidAddress = exports.zeroAddress = void 0;
86314
- var assert = require$$0$5;
83738
+ var assert = require$$0$4;
86315
83739
  var ethjsUtil = lib$1;
86316
83740
  var secp256k1 = secp256k1v3Adapter;
86317
83741
  var BN = bn$1.exports;
@@ -86663,7 +84087,7 @@ Object.defineProperty(object, "__esModule", {
86663
84087
  value: true
86664
84088
  });
86665
84089
  object.defineProperties = void 0;
86666
- var assert = require$$0$5;
84090
+ var assert = require$$0$4;
86667
84091
  var ethjsUtil = lib$1;
86668
84092
  var rlp = dist$7;
86669
84093
  var bytes_1 = bytes;