@rspack/browser 2.0.0-beta.5 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { AsyncParallelHook, AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWat
5
5
  __webpack_require__.add({
6
6
  "../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
7
7
  var asn1 = exports;
8
- asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
8
+ asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
9
9
  asn1.define = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/api.js").define;
10
10
  asn1.base = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/index.js");
11
11
  asn1.constants = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/constants/index.js");
@@ -2697,7 +2697,7 @@ __webpack_require__.add({
2697
2697
  isDeepStrictEqual: isDeepStrictEqual
2698
2698
  };
2699
2699
  },
2700
- "../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
2700
+ "../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
2701
2701
  module = __webpack_require__.nmd(module);
2702
2702
  (function(module, exports) {
2703
2703
  'use strict';
@@ -2731,7 +2731,7 @@ __webpack_require__.add({
2731
2731
  BN.wordSize = 26;
2732
2732
  var Buffer;
2733
2733
  try {
2734
- Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?4fc0").Buffer;
2734
+ Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?7763").Buffer;
2735
2735
  } catch (e) {}
2736
2736
  BN.isBN = function(num) {
2737
2737
  if (num instanceof BN) return true;
@@ -4313,6 +4313,10 @@ __webpack_require__.add({
4313
4313
  var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
4314
4314
  this.words[this.length - 1] &= mask;
4315
4315
  }
4316
+ if (0 === this.length) {
4317
+ this.words[0] = 0;
4318
+ this.length = 1;
4319
+ }
4316
4320
  return this.strip();
4317
4321
  };
4318
4322
  BN.prototype.maskn = function(bits) {
@@ -5187,7 +5191,7 @@ __webpack_require__.add({
5187
5191
  };
5188
5192
  })(module, this);
5189
5193
  },
5190
- "../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
5194
+ "../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
5191
5195
  module = __webpack_require__.nmd(module);
5192
5196
  (function(module, exports) {
5193
5197
  'use strict';
@@ -5221,7 +5225,7 @@ __webpack_require__.add({
5221
5225
  BN.wordSize = 26;
5222
5226
  var Buffer;
5223
5227
  try {
5224
- Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?dcfb").Buffer;
5228
+ Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?5658").Buffer;
5225
5229
  } catch (e) {}
5226
5230
  BN.isBN = function(num) {
5227
5231
  if (num instanceof BN) return true;
@@ -6852,6 +6856,10 @@ __webpack_require__.add({
6852
6856
  var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
6853
6857
  this.words[this.length - 1] &= mask;
6854
6858
  }
6859
+ if (0 === this.length) {
6860
+ this.words[0] = 0;
6861
+ this.length = 1;
6862
+ }
6855
6863
  return this._strip();
6856
6864
  };
6857
6865
  BN.prototype.maskn = function(bits) {
@@ -8700,7 +8708,7 @@ __webpack_require__.add({
8700
8708
  };
8701
8709
  },
8702
8710
  "../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js" (module, __unused_rspack_exports, __webpack_require__) {
8703
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js");
8711
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
8704
8712
  var randomBytes = __webpack_require__("../../node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js");
8705
8713
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
8706
8714
  function getr(priv) {
@@ -8815,7 +8823,7 @@ __webpack_require__.add({
8815
8823
  var createHmac = __webpack_require__("../../node_modules/.pnpm/create-hmac@1.1.7/node_modules/create-hmac/browser.js");
8816
8824
  var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
8817
8825
  var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
8818
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js");
8826
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
8819
8827
  var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
8820
8828
  var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
8821
8829
  var RSA_PKCS1_PADDING = 1;
@@ -8973,7 +8981,7 @@ __webpack_require__.add({
8973
8981
  },
8974
8982
  "../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/verify.js" (module, __unused_rspack_exports, __webpack_require__) {
8975
8983
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
8976
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js");
8984
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
8977
8985
  var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
8978
8986
  var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
8979
8987
  var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
@@ -10006,7 +10014,7 @@ __webpack_require__.add({
10006
10014
  "../../node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js" (module, __unused_rspack_exports, __webpack_require__) {
10007
10015
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
10008
10016
  var elliptic = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js");
10009
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
10017
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
10010
10018
  module.exports = function(curve) {
10011
10019
  return new ECDH(curve);
10012
10020
  };
@@ -11442,7 +11450,7 @@ __webpack_require__.add({
11442
11450
  },
11443
11451
  "../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js" (module, __unused_rspack_exports, __webpack_require__) {
11444
11452
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
11445
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
11453
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
11446
11454
  var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
11447
11455
  var millerRabin = new MillerRabin();
11448
11456
  var TWENTYFOUR = new BN(24);
@@ -11568,7 +11576,7 @@ __webpack_require__.add({
11568
11576
  module.exports = findPrime;
11569
11577
  findPrime.simpleSieve = simpleSieve;
11570
11578
  findPrime.fermatTest = fermatTest;
11571
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
11579
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
11572
11580
  var TWENTYFOUR = new BN(24);
11573
11581
  var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
11574
11582
  var millerRabin = new MillerRabin();
@@ -11660,7 +11668,7 @@ __webpack_require__.add({
11660
11668
  elliptic.eddsa = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/index.js");
11661
11669
  },
11662
11670
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js" (module, __unused_rspack_exports, __webpack_require__) {
11663
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
11671
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
11664
11672
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
11665
11673
  var getNAF = utils.getNAF;
11666
11674
  var getJSF = utils.getJSF;
@@ -11928,7 +11936,7 @@ __webpack_require__.add({
11928
11936
  },
11929
11937
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js" (module, __unused_rspack_exports, __webpack_require__) {
11930
11938
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
11931
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
11939
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
11932
11940
  var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
11933
11941
  var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
11934
11942
  var assert = utils.assert;
@@ -12202,7 +12210,7 @@ __webpack_require__.add({
12202
12210
  curve.edwards = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js");
12203
12211
  },
12204
12212
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/mont.js" (module, __unused_rspack_exports, __webpack_require__) {
12205
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
12213
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
12206
12214
  var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
12207
12215
  var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
12208
12216
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
@@ -12319,7 +12327,7 @@ __webpack_require__.add({
12319
12327
  },
12320
12328
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/short.js" (module, __unused_rspack_exports, __webpack_require__) {
12321
12329
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
12322
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
12330
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
12323
12331
  var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
12324
12332
  var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
12325
12333
  var assert = utils.assert;
@@ -13142,7 +13150,7 @@ __webpack_require__.add({
13142
13150
  });
13143
13151
  },
13144
13152
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/index.js" (module, __unused_rspack_exports, __webpack_require__) {
13145
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
13153
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
13146
13154
  var HmacDRBG = __webpack_require__("../../node_modules/.pnpm/hmac-drbg@1.0.1/node_modules/hmac-drbg/lib/hmac-drbg.js");
13147
13155
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
13148
13156
  var curves = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curves.js");
@@ -13323,7 +13331,7 @@ __webpack_require__.add({
13323
13331
  };
13324
13332
  },
13325
13333
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/key.js" (module, __unused_rspack_exports, __webpack_require__) {
13326
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
13334
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
13327
13335
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
13328
13336
  var assert = utils.assert;
13329
13337
  function KeyPair(ec, options) {
@@ -13408,7 +13416,7 @@ __webpack_require__.add({
13408
13416
  };
13409
13417
  },
13410
13418
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
13411
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
13419
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
13412
13420
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
13413
13421
  var assert = utils.assert;
13414
13422
  function Signature(options, enc) {
@@ -13661,7 +13669,7 @@ __webpack_require__.add({
13661
13669
  module.exports = KeyPair;
13662
13670
  },
13663
13671
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
13664
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
13672
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
13665
13673
  var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
13666
13674
  var assert = utils.assert;
13667
13675
  var cachedProperty = utils.cachedProperty;
@@ -14486,7 +14494,7 @@ __webpack_require__.add({
14486
14494
  },
14487
14495
  "../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
14488
14496
  var utils = exports;
14489
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
14497
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
14490
14498
  var minAssert = __webpack_require__("../../node_modules/.pnpm/minimalistic-assert@1.0.1/node_modules/minimalistic-assert/index.js");
14491
14499
  var minUtils = __webpack_require__("../../node_modules/.pnpm/minimalistic-crypto-utils@1.0.1/node_modules/minimalistic-crypto-utils/lib/utils.js");
14492
14500
  utils.assert = minAssert;
@@ -15332,6 +15340,10 @@ __webpack_require__.add({
15332
15340
  var implementation = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js");
15333
15341
  module.exports = Function.prototype.bind || implementation;
15334
15342
  },
15343
+ "../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js" (module) {
15344
+ const cached = (function*() {}).constructor;
15345
+ module.exports = ()=>cached;
15346
+ },
15335
15347
  "../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js" (module, __unused_rspack_exports, __webpack_require__) {
15336
15348
  var undefined;
15337
15349
  var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
@@ -16672,6 +16684,92 @@ __webpack_require__.add({
16672
16684
  return hasSymbols() && !!Symbol.toStringTag;
16673
16685
  };
16674
16686
  },
16687
+ "../../node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
16688
+ var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
16689
+ var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
16690
+ var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
16691
+ function HashBase(blockSize) {
16692
+ Transform.call(this);
16693
+ this._block = Buffer.allocUnsafe(blockSize);
16694
+ this._blockSize = blockSize;
16695
+ this._blockOffset = 0;
16696
+ this._length = [
16697
+ 0,
16698
+ 0,
16699
+ 0,
16700
+ 0
16701
+ ];
16702
+ this._finalized = false;
16703
+ }
16704
+ inherits(HashBase, Transform);
16705
+ HashBase.prototype._transform = function(chunk, encoding, callback) {
16706
+ var error = null;
16707
+ try {
16708
+ this.update(chunk, encoding);
16709
+ } catch (err) {
16710
+ error = err;
16711
+ }
16712
+ callback(error);
16713
+ };
16714
+ HashBase.prototype._flush = function(callback) {
16715
+ var error = null;
16716
+ try {
16717
+ this.push(this.digest());
16718
+ } catch (err) {
16719
+ error = err;
16720
+ }
16721
+ callback(error);
16722
+ };
16723
+ var useUint8Array = "u" > typeof Uint8Array;
16724
+ var useArrayBuffer = "u" > typeof ArrayBuffer && "u" > typeof Uint8Array && ArrayBuffer.isView && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);
16725
+ function toBuffer(data, encoding) {
16726
+ if (data instanceof Buffer) return data;
16727
+ if ('string' == typeof data) return Buffer.from(data, encoding);
16728
+ if (useArrayBuffer && ArrayBuffer.isView(data)) {
16729
+ if (0 === data.byteLength) return Buffer.alloc(0);
16730
+ var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
16731
+ if (res.byteLength === data.byteLength) return res;
16732
+ }
16733
+ if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data);
16734
+ if (Buffer.isBuffer(data) && data.constructor && 'function' == typeof data.constructor.isBuffer && data.constructor.isBuffer(data)) return Buffer.from(data);
16735
+ throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.');
16736
+ }
16737
+ HashBase.prototype.update = function(data, encoding) {
16738
+ if (this._finalized) throw new Error('Digest already called');
16739
+ data = toBuffer(data, encoding);
16740
+ var block = this._block;
16741
+ var offset = 0;
16742
+ while(this._blockOffset + data.length - offset >= this._blockSize){
16743
+ for(var i = this._blockOffset; i < this._blockSize;)block[i++] = data[offset++];
16744
+ this._update();
16745
+ this._blockOffset = 0;
16746
+ }
16747
+ while(offset < data.length)block[this._blockOffset++] = data[offset++];
16748
+ for(var j = 0, carry = 8 * data.length; carry > 0; ++j){
16749
+ this._length[j] += carry;
16750
+ carry = this._length[j] / 0x0100000000 | 0;
16751
+ if (carry > 0) this._length[j] -= 0x0100000000 * carry;
16752
+ }
16753
+ return this;
16754
+ };
16755
+ HashBase.prototype._update = function() {
16756
+ throw new Error('_update is not implemented');
16757
+ };
16758
+ HashBase.prototype.digest = function(encoding) {
16759
+ if (this._finalized) throw new Error('Digest already called');
16760
+ this._finalized = true;
16761
+ var digest = this._digest();
16762
+ if (void 0 !== encoding) digest = digest.toString(encoding);
16763
+ this._block.fill(0);
16764
+ this._blockOffset = 0;
16765
+ for(var i = 0; i < 4; ++i)this._length[i] = 0;
16766
+ return digest;
16767
+ };
16768
+ HashBase.prototype._digest = function() {
16769
+ throw new Error('_digest is not implemented');
16770
+ };
16771
+ module.exports = HashBase;
16772
+ },
16675
16773
  "../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
16676
16774
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
16677
16775
  var toBuffer = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/to-buffer.js");
@@ -18426,7 +18524,7 @@ __webpack_require__.add({
18426
18524
  return tryFunctionObject(value);
18427
18525
  };
18428
18526
  },
18429
- "../../node_modules/.pnpm/is-generator-function@1.1.0/node_modules/is-generator-function/index.js" (module, __unused_rspack_exports, __webpack_require__) {
18527
+ "../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js" (module, __unused_rspack_exports, __webpack_require__) {
18430
18528
  var callBound = __webpack_require__("../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js");
18431
18529
  var safeRegexTest = __webpack_require__("../../node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js");
18432
18530
  var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
@@ -18434,13 +18532,7 @@ __webpack_require__.add({
18434
18532
  var getProto = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js");
18435
18533
  var toStr = callBound('Object.prototype.toString');
18436
18534
  var fnToStr = callBound('Function.prototype.toString');
18437
- var getGeneratorFunc = function() {
18438
- if (!hasToStringTag) return false;
18439
- try {
18440
- return Function('return function*() {}')();
18441
- } catch (e) {}
18442
- };
18443
- var GeneratorFunction;
18535
+ var getGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js");
18444
18536
  module.exports = function(fn) {
18445
18537
  if ('function' != typeof fn) return false;
18446
18538
  if (isFnRegex(fnToStr(fn))) return true;
@@ -18449,11 +18541,8 @@ __webpack_require__.add({
18449
18541
  return '[object GeneratorFunction]' === str;
18450
18542
  }
18451
18543
  if (!getProto) return false;
18452
- if (void 0 === GeneratorFunction) {
18453
- var generatorFunc = getGeneratorFunc();
18454
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
18455
- }
18456
- return getProto(fn) === GeneratorFunction;
18544
+ var GeneratorFunction = getGeneratorFunction();
18545
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
18457
18546
  };
18458
18547
  },
18459
18548
  "../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js" (module) {
@@ -18536,7 +18625,7 @@ __webpack_require__.add({
18536
18625
  module.exports = fn;
18537
18626
  },
18538
18627
  "../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
18539
- var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js");
18628
+ var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
18540
18629
  module.exports = function(value) {
18541
18630
  return !!whichTypedArray(value);
18542
18631
  };
@@ -18585,7 +18674,7 @@ __webpack_require__.add({
18585
18674
  },
18586
18675
  "../../node_modules/.pnpm/md5.js@1.3.5/node_modules/md5.js/index.js" (module, __unused_rspack_exports, __webpack_require__) {
18587
18676
  var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
18588
- var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js");
18677
+ var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js");
18589
18678
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
18590
18679
  var ARRAY16 = new Array(16);
18591
18680
  function MD5() {
@@ -18708,7 +18797,7 @@ __webpack_require__.add({
18708
18797
  module.exports = MD5;
18709
18798
  },
18710
18799
  "../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js" (module, __unused_rspack_exports, __webpack_require__) {
18711
- var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
18800
+ var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
18712
18801
  var brorand = __webpack_require__("../../node_modules/.pnpm/brorand@1.1.0/node_modules/brorand/index.js");
18713
18802
  function MillerRabin(rand) {
18714
18803
  this.rand = rand || new brorand.Rand();
@@ -23614,7 +23703,7 @@ __webpack_require__.add({
23614
23703
  var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
23615
23704
  var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
23616
23705
  var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
23617
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
23706
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
23618
23707
  var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
23619
23708
  var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
23620
23709
  var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
@@ -23686,7 +23775,7 @@ __webpack_require__.add({
23686
23775
  var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
23687
23776
  var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
23688
23777
  var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
23689
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
23778
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
23690
23779
  var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
23691
23780
  var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
23692
23781
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
@@ -23761,7 +23850,7 @@ __webpack_require__.add({
23761
23850
  }
23762
23851
  },
23763
23852
  "../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js" (module, __unused_rspack_exports, __webpack_require__) {
23764
- var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js");
23853
+ var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
23765
23854
  var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
23766
23855
  function withPublic(paddedMsg, key) {
23767
23856
  return Buffer.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
@@ -23955,7 +24044,7 @@ __webpack_require__.add({
23955
24044
  else root.punycode = punycode;
23956
24045
  })(this);
23957
24046
  },
23958
- "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js" (module) {
24047
+ "../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js" (module) {
23959
24048
  var replace = String.prototype.replace;
23960
24049
  var percentTwenties = /%20/g;
23961
24050
  var Format = {
@@ -23976,18 +24065,18 @@ __webpack_require__.add({
23976
24065
  RFC3986: Format.RFC3986
23977
24066
  };
23978
24067
  },
23979
- "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
23980
- var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/stringify.js");
23981
- var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/parse.js");
23982
- var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js");
24068
+ "../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
24069
+ var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js");
24070
+ var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js");
24071
+ var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
23983
24072
  module.exports = {
23984
24073
  formats: formats,
23985
24074
  parse: parse,
23986
24075
  stringify: stringify
23987
24076
  };
23988
24077
  },
23989
- "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
23990
- var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/utils.js");
24078
+ "../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
24079
+ var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
23991
24080
  var has = Object.prototype.hasOwnProperty;
23992
24081
  var isArray = Array.isArray;
23993
24082
  var defaults = {
@@ -24010,6 +24099,7 @@ __webpack_require__.add({
24010
24099
  parseArrays: true,
24011
24100
  plainObjects: false,
24012
24101
  strictDepth: false,
24102
+ strictMerge: true,
24013
24103
  strictNullHandling: false,
24014
24104
  throwOnLimitExceeded: false
24015
24105
  };
@@ -24056,7 +24146,7 @@ __webpack_require__.add({
24056
24146
  val = options.strictNullHandling ? null : '';
24057
24147
  } else {
24058
24148
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
24059
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
24149
+ if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
24060
24150
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
24061
24151
  });
24062
24152
  }
@@ -24064,9 +24154,15 @@ __webpack_require__.add({
24064
24154
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
24065
24155
  val
24066
24156
  ] : val;
24067
- var existing = has.call(obj, key);
24068
- if (existing && 'combine' === options.duplicates) obj[key] = utils.combine(obj[key], val);
24069
- else if (!existing || 'last' === options.duplicates) obj[key] = val;
24157
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
24158
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
24159
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
24160
+ }
24161
+ if (null !== key) {
24162
+ var existing = has.call(obj, key);
24163
+ if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
24164
+ else if (!existing || 'last' === options.duplicates) obj[key] = val;
24165
+ }
24070
24166
  }
24071
24167
  return obj;
24072
24168
  };
@@ -24080,7 +24176,7 @@ __webpack_require__.add({
24080
24176
  for(var i = chain.length - 1; i >= 0; --i){
24081
24177
  var obj;
24082
24178
  var root = chain[i];
24083
- if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
24179
+ if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
24084
24180
  else {
24085
24181
  obj = options.plainObjects ? {
24086
24182
  __proto__: null
@@ -24088,10 +24184,15 @@ __webpack_require__.add({
24088
24184
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
24089
24185
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
24090
24186
  var index = parseInt(decodedRoot, 10);
24187
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
24091
24188
  if (options.parseArrays || '' !== decodedRoot) {
24092
- if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
24189
+ if (isValidArrayIndex && index < options.arrayLimit) {
24093
24190
  obj = [];
24094
24191
  obj[index] = leaf;
24192
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
24193
+ else if (isValidArrayIndex) {
24194
+ obj[index] = leaf;
24195
+ utils.markOverflow(obj, index);
24095
24196
  } else if ('__proto__' !== decodedRoot) obj[decodedRoot] = leaf;
24096
24197
  } else obj = {
24097
24198
  0: leaf
@@ -24101,32 +24202,46 @@ __webpack_require__.add({
24101
24202
  }
24102
24203
  return leaf;
24103
24204
  };
24104
- var parseKeys = function(givenKey, val, options, valuesParsed) {
24105
- if (!givenKey) return;
24205
+ var splitKeyIntoSegments = function(givenKey, options) {
24106
24206
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
24207
+ if (options.depth <= 0) {
24208
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
24209
+ if (!options.allowPrototypes) return;
24210
+ }
24211
+ return [
24212
+ key
24213
+ ];
24214
+ }
24107
24215
  var brackets = /(\[[^[\]]*])/;
24108
24216
  var child = /(\[[^[\]]*])/g;
24109
- var segment = options.depth > 0 && brackets.exec(key);
24217
+ var segment = brackets.exec(key);
24110
24218
  var parent = segment ? key.slice(0, segment.index) : key;
24111
24219
  var keys = [];
24112
24220
  if (parent) {
24113
24221
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
24114
24222
  if (!options.allowPrototypes) return;
24115
24223
  }
24116
- keys.push(parent);
24224
+ keys[keys.length] = parent;
24117
24225
  }
24118
24226
  var i = 0;
24119
- while(options.depth > 0 && null !== (segment = child.exec(key)) && i < options.depth){
24227
+ while(null !== (segment = child.exec(key)) && i < options.depth){
24120
24228
  i += 1;
24121
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
24229
+ var segmentContent = segment[1].slice(1, -1);
24230
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
24122
24231
  if (!options.allowPrototypes) return;
24123
24232
  }
24124
- keys.push(segment[1]);
24233
+ keys[keys.length] = segment[1];
24125
24234
  }
24126
24235
  if (segment) {
24127
24236
  if (true === options.strictDepth) throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
24128
- keys.push('[' + key.slice(segment.index) + ']');
24237
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
24129
24238
  }
24239
+ return keys;
24240
+ };
24241
+ var parseKeys = function(givenKey, val, options, valuesParsed) {
24242
+ if (!givenKey) return;
24243
+ var keys = splitKeyIntoSegments(givenKey, options);
24244
+ if (!keys) return;
24130
24245
  return parseObject(keys, val, options, valuesParsed);
24131
24246
  };
24132
24247
  var normalizeParseOptions = function(opts) {
@@ -24160,6 +24275,7 @@ __webpack_require__.add({
24160
24275
  parseArrays: false !== opts.parseArrays,
24161
24276
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
24162
24277
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
24278
+ strictMerge: 'boolean' == typeof opts.strictMerge ? !!opts.strictMerge : defaults.strictMerge,
24163
24279
  strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
24164
24280
  throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
24165
24281
  };
@@ -24183,10 +24299,10 @@ __webpack_require__.add({
24183
24299
  return utils.compact(obj);
24184
24300
  };
24185
24301
  },
24186
- "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
24302
+ "../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
24187
24303
  var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
24188
- var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/utils.js");
24189
- var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js");
24304
+ var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
24305
+ var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
24190
24306
  var has = Object.prototype.hasOwnProperty;
24191
24307
  var arrayPrefixGenerators = {
24192
24308
  brackets: function(prefix) {
@@ -24373,13 +24489,28 @@ __webpack_require__.add({
24373
24489
  return joined.length > 0 ? prefix + joined : '';
24374
24490
  };
24375
24491
  },
24376
- "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
24377
- var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js");
24492
+ "../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
24493
+ var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
24494
+ var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
24378
24495
  var has = Object.prototype.hasOwnProperty;
24379
24496
  var isArray = Array.isArray;
24497
+ var overflowChannel = getSideChannel();
24498
+ var markOverflow = function(obj, maxIndex) {
24499
+ overflowChannel.set(obj, maxIndex);
24500
+ return obj;
24501
+ };
24502
+ var isOverflow = function(obj) {
24503
+ return overflowChannel.has(obj);
24504
+ };
24505
+ var getMaxIndex = function(obj) {
24506
+ return overflowChannel.get(obj);
24507
+ };
24508
+ var setMaxIndex = function(obj, maxIndex) {
24509
+ overflowChannel.set(obj, maxIndex);
24510
+ };
24380
24511
  var hexTable = function() {
24381
24512
  var array = [];
24382
- for(var i = 0; i < 256; ++i)array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
24513
+ for(var i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
24383
24514
  return array;
24384
24515
  }();
24385
24516
  var compactQueue = function(queue) {
@@ -24388,7 +24519,7 @@ __webpack_require__.add({
24388
24519
  var obj = item.obj[item.prop];
24389
24520
  if (isArray(obj)) {
24390
24521
  var compacted = [];
24391
- for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted.push(obj[j]);
24522
+ for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted[compacted.length] = obj[j];
24392
24523
  item.obj[item.prop] = compacted;
24393
24524
  }
24394
24525
  }
@@ -24403,17 +24534,46 @@ __webpack_require__.add({
24403
24534
  var merge = function merge(target, source, options) {
24404
24535
  if (!source) return target;
24405
24536
  if ('object' != typeof source && 'function' != typeof source) {
24406
- if (isArray(target)) target.push(source);
24407
- else if (!target || 'object' != typeof target) return [
24537
+ if (isArray(target)) {
24538
+ var nextIndex = target.length;
24539
+ if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
24540
+ target[nextIndex] = source;
24541
+ } else if (!target || 'object' != typeof target) return [
24542
+ target,
24543
+ source
24544
+ ];
24545
+ else if (isOverflow(target)) {
24546
+ var newIndex = getMaxIndex(target) + 1;
24547
+ target[newIndex] = source;
24548
+ setMaxIndex(target, newIndex);
24549
+ } else if (options && options.strictMerge) return [
24408
24550
  target,
24409
24551
  source
24410
24552
  ];
24411
24553
  else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
24412
24554
  return target;
24413
24555
  }
24414
- if (!target || 'object' != typeof target) return [
24415
- target
24416
- ].concat(source);
24556
+ if (!target || 'object' != typeof target) {
24557
+ if (isOverflow(source)) {
24558
+ var sourceKeys = Object.keys(source);
24559
+ var result = options && options.plainObjects ? {
24560
+ __proto__: null,
24561
+ 0: target
24562
+ } : {
24563
+ 0: target
24564
+ };
24565
+ for(var m = 0; m < sourceKeys.length; m++){
24566
+ var oldKey = parseInt(sourceKeys[m], 10);
24567
+ result[oldKey + 1] = source[sourceKeys[m]];
24568
+ }
24569
+ return markOverflow(result, getMaxIndex(source) + 1);
24570
+ }
24571
+ var combined = [
24572
+ target
24573
+ ].concat(source);
24574
+ if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
24575
+ return combined;
24576
+ }
24417
24577
  var mergeTarget = target;
24418
24578
  if (isArray(target) && !isArray(source)) mergeTarget = arrayToObject(target, options);
24419
24579
  if (isArray(target) && isArray(source)) {
@@ -24421,7 +24581,7 @@ __webpack_require__.add({
24421
24581
  if (has.call(target, i)) {
24422
24582
  var targetItem = target[i];
24423
24583
  if (targetItem && 'object' == typeof targetItem && item && 'object' == typeof item) target[i] = merge(targetItem, item, options);
24424
- else target.push(item);
24584
+ else target[target.length] = item;
24425
24585
  } else target[i] = item;
24426
24586
  });
24427
24587
  return target;
@@ -24430,6 +24590,11 @@ __webpack_require__.add({
24430
24590
  var value = source[key];
24431
24591
  if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
24432
24592
  else acc[key] = value;
24593
+ if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
24594
+ if (isOverflow(acc)) {
24595
+ var keyNum = parseInt(key, 10);
24596
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) setMaxIndex(acc, keyNum);
24597
+ }
24433
24598
  return acc;
24434
24599
  }, mergeTarget);
24435
24600
  };
@@ -24505,11 +24670,11 @@ __webpack_require__.add({
24505
24670
  var key = keys[j];
24506
24671
  var val = obj[key];
24507
24672
  if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
24508
- queue.push({
24673
+ queue[queue.length] = {
24509
24674
  obj: obj,
24510
24675
  prop: key
24511
- });
24512
- refs.push(val);
24676
+ };
24677
+ refs[refs.length] = val;
24513
24678
  }
24514
24679
  }
24515
24680
  }
@@ -24523,13 +24688,23 @@ __webpack_require__.add({
24523
24688
  if (!obj || 'object' != typeof obj) return false;
24524
24689
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
24525
24690
  };
24526
- var combine = function(a, b) {
24527
- return [].concat(a, b);
24691
+ var combine = function(a, b, arrayLimit, plainObjects) {
24692
+ if (isOverflow(a)) {
24693
+ var newIndex = getMaxIndex(a) + 1;
24694
+ a[newIndex] = b;
24695
+ setMaxIndex(a, newIndex);
24696
+ return a;
24697
+ }
24698
+ var result = [].concat(a, b);
24699
+ if (result.length > arrayLimit) return markOverflow(arrayToObject(result, {
24700
+ plainObjects: plainObjects
24701
+ }), result.length - 1);
24702
+ return result;
24528
24703
  };
24529
24704
  var maybeMap = function(val, fn) {
24530
24705
  if (isArray(val)) {
24531
24706
  var mapped = [];
24532
- for(var i = 0; i < val.length; i += 1)mapped.push(fn(val[i]));
24707
+ for(var i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
24533
24708
  return mapped;
24534
24709
  }
24535
24710
  return fn(val);
@@ -24542,7 +24717,9 @@ __webpack_require__.add({
24542
24717
  decode: decode,
24543
24718
  encode: encode,
24544
24719
  isBuffer: isBuffer,
24720
+ isOverflow: isOverflow,
24545
24721
  isRegExp: isRegExp,
24722
+ markOverflow: markOverflow,
24546
24723
  maybeMap: maybeMap,
24547
24724
  merge: merge
24548
24725
  };
@@ -30735,7 +30912,7 @@ __webpack_require__.add({
30735
30912
  'ftp:': true,
30736
30913
  'gopher:': true,
30737
30914
  'file:': true
30738
- }, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/index.js");
30915
+ }, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js");
30739
30916
  function urlParse(url, parseQueryString, slashesDenoteHost) {
30740
30917
  if (url && 'object' == typeof url && url instanceof Url) return url;
30741
30918
  var u = new Url();
@@ -31129,8 +31306,8 @@ __webpack_require__.add({
31129
31306
  },
31130
31307
  "../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js" (__unused_rspack_module, exports, __webpack_require__) {
31131
31308
  var isArgumentsObject = __webpack_require__("../../node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js");
31132
- var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.0/node_modules/is-generator-function/index.js");
31133
- var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js");
31309
+ var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js");
31310
+ var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
31134
31311
  var isTypedArray = __webpack_require__("../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js");
31135
31312
  function uncurryThis(f) {
31136
31313
  return f.call.bind(f);
@@ -35137,7 +35314,7 @@ __webpack_require__.add({
35137
35314
  }
35138
35315
  });
35139
35316
  },
35140
- "../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
35317
+ "../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
35141
35318
  var forEach = __webpack_require__("../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js");
35142
35319
  var availableTypedArrays = __webpack_require__("../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js");
35143
35320
  var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js");
@@ -35165,12 +35342,18 @@ __webpack_require__.add({
35165
35342
  var superProto = getProto(proto);
35166
35343
  descriptor = gOPD(superProto, Symbol.toStringTag);
35167
35344
  }
35168
- cache['$' + typedArray] = callBind(descriptor.get);
35345
+ if (descriptor && descriptor.get) {
35346
+ var bound = callBind(descriptor.get);
35347
+ cache['$' + typedArray] = bound;
35348
+ }
35169
35349
  }
35170
35350
  }) : forEach(typedArrays, function(typedArray) {
35171
35351
  var arr = new g[typedArray]();
35172
35352
  var fn = arr.slice || arr.set;
35173
- if (fn) cache['$' + typedArray] = callBind(fn);
35353
+ if (fn) {
35354
+ var bound = callBind(fn);
35355
+ cache['$' + typedArray] = bound;
35356
+ }
35174
35357
  });
35175
35358
  var tryTypedArrays = function(value) {
35176
35359
  var found = false;
@@ -35247,8 +35430,8 @@ __webpack_require__.add({
35247
35430
  "@rspack/binding" (module) {
35248
35431
  module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
35249
35432
  },
35250
- "?4fc0" () {},
35251
- "?dcfb" () {},
35433
+ "?7763" () {},
35434
+ "?5658" () {},
35252
35435
  "?69f8" () {},
35253
35436
  "?f42a" () {},
35254
35437
  "?5f4e" () {},
@@ -50294,6 +50477,17 @@ __webpack_require__.d(ModuleFilenameHelpers_namespaceObject, {
50294
50477
  matchObject: ()=>matchObject,
50295
50478
  matchPart: ()=>matchPart
50296
50479
  });
50480
+ var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
50481
+ function checkNodeVersion() {
50482
+ const { node, bun, deno } = process.versions;
50483
+ if (!node || bun || deno) return;
50484
+ const [majorStr, minorStr] = node.split('.');
50485
+ const major = parseInt(majorStr, 10);
50486
+ const minor = parseInt(minorStr || '0', 10);
50487
+ const supported = 20 === major && minor >= 19 || 22 === major && minor >= 12 || major > 22;
50488
+ if (!supported) console.error(`Unsupported Node.js version "${node}". Rspack requires Node.js 20.19+ or 22.12+. Please upgrade your Node.js version.\n`);
50489
+ }
50490
+ checkNodeVersion();
50297
50491
  const loaderFlag = 'LOADER_EXECUTION';
50298
50492
  const cutOffByFlag = (stack, flag)=>{
50299
50493
  const stacks = stack.split('\n');
@@ -50330,7 +50524,7 @@ Object.defineProperty(WebpackError.prototype, util_0.inspect.custom, {
50330
50524
  configurable: true
50331
50525
  });
50332
50526
  const lib_WebpackError = WebpackError;
50333
- var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
50527
+ var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
50334
50528
  const LogType = Object.freeze({
50335
50529
  error: 'error',
50336
50530
  warn: 'warn',
@@ -50416,12 +50610,12 @@ class Logger {
50416
50610
  }
50417
50611
  time(label) {
50418
50612
  this[TIMERS_SYMBOL] = this[TIMERS_SYMBOL] || new Map();
50419
- this[TIMERS_SYMBOL].set(label, process.hrtime());
50613
+ this[TIMERS_SYMBOL].set(label, Logger_process.hrtime());
50420
50614
  }
50421
50615
  timeLog(label) {
50422
50616
  const prev = this[TIMERS_SYMBOL]?.get(label);
50423
50617
  if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeLog()`);
50424
- const time = process.hrtime(prev);
50618
+ const time = Logger_process.hrtime(prev);
50425
50619
  this[LOG_SYMBOL](LogType.time, [
50426
50620
  label,
50427
50621
  ...time
@@ -50430,7 +50624,7 @@ class Logger {
50430
50624
  timeEnd(label) {
50431
50625
  const prev = this[TIMERS_SYMBOL]?.get(label);
50432
50626
  if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`);
50433
- const time = process.hrtime(prev);
50627
+ const time = Logger_process.hrtime(prev);
50434
50628
  this[TIMERS_SYMBOL].delete(label);
50435
50629
  this[LOG_SYMBOL](LogType.time, [
50436
50630
  label,
@@ -50440,7 +50634,7 @@ class Logger {
50440
50634
  timeAggregate(label) {
50441
50635
  const prev = this[TIMERS_SYMBOL]?.get(label);
50442
50636
  if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeAggregate()`);
50443
- const time = process.hrtime(prev);
50637
+ const time = Logger_process.hrtime(prev);
50444
50638
  this[TIMERS_SYMBOL].delete(label);
50445
50639
  this[TIMERS_AGGREGATES_SYMBOL] = this[TIMERS_AGGREGATES_SYMBOL] || new Map();
50446
50640
  const current = this[TIMERS_AGGREGATES_SYMBOL].get(label);
@@ -56129,27 +56323,39 @@ function SwcJsMinimizerPlugin_isObject(value) {
56129
56323
  }
56130
56324
  function getRawExtractCommentsOptions(extractComments) {
56131
56325
  const conditionStr = (condition)=>{
56132
- if (void 0 === condition || true === condition) return '@preserve|@lic|@cc_on|^\\**!';
56326
+ if (void 0 === condition || true === condition) return {
56327
+ source: '@preserve|@lic|@cc_on|^\\**!',
56328
+ flags: ''
56329
+ };
56133
56330
  if (false === condition) throw Error('unreachable');
56134
- return condition.source;
56331
+ return {
56332
+ source: condition.source,
56333
+ flags: condition.flags
56334
+ };
56135
56335
  };
56136
56336
  if ('boolean' == typeof extractComments) {
56137
56337
  if (!extractComments) return;
56338
+ const { source, flags } = conditionStr(extractComments);
56138
56339
  const res = {
56139
- condition: conditionStr(extractComments)
56340
+ condition: source,
56341
+ conditionFlags: flags
56140
56342
  };
56141
56343
  return res;
56142
56344
  }
56143
56345
  if (extractComments instanceof RegExp) {
56346
+ const { source, flags } = conditionStr(extractComments);
56144
56347
  const res = {
56145
- condition: extractComments.source
56348
+ condition: source,
56349
+ conditionFlags: flags
56146
56350
  };
56147
56351
  return res;
56148
56352
  }
56149
56353
  if (SwcJsMinimizerPlugin_isObject(extractComments)) {
56150
56354
  if (false === extractComments.condition) return;
56355
+ const { source, flags } = conditionStr(extractComments.condition);
56151
56356
  const res = {
56152
- condition: conditionStr(extractComments.condition),
56357
+ condition: source,
56358
+ conditionFlags: flags,
56153
56359
  banner: extractComments.banner
56154
56360
  };
56155
56361
  return res;
@@ -57735,7 +57941,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
57735
57941
  type: "javascript/auto"
57736
57942
  },
57737
57943
  {
57738
- test: /\.json$/i,
57944
+ test: /\.json$/,
57739
57945
  type: 'json'
57740
57946
  },
57741
57947
  {
@@ -57743,22 +57949,22 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
57743
57949
  type: 'json'
57744
57950
  },
57745
57951
  {
57746
- test: /\.mjs$/i,
57952
+ test: /\.mjs$/,
57747
57953
  ...esm
57748
57954
  },
57749
57955
  {
57750
- test: /\.js$/i,
57956
+ test: /\.js$/,
57751
57957
  descriptionData: {
57752
57958
  type: 'module'
57753
57959
  },
57754
57960
  ...esm
57755
57961
  },
57756
57962
  {
57757
- test: /\.cjs$/i,
57963
+ test: /\.cjs$/,
57758
57964
  ...commonjs
57759
57965
  },
57760
57966
  {
57761
- test: /\.js$/i,
57967
+ test: /\.js$/,
57762
57968
  descriptionData: {
57763
57969
  type: 'commonjs'
57764
57970
  },
@@ -57789,7 +57995,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
57789
57995
  ]
57790
57996
  };
57791
57997
  rules.push({
57792
- test: /\.wasm$/i,
57998
+ test: /\.wasm$/,
57793
57999
  ...wasm
57794
58000
  });
57795
58001
  rules.push({
@@ -58035,7 +58241,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
58035
58241
  });
58036
58242
  D(output, 'bundlerInfo', {});
58037
58243
  if ('object' == typeof output.bundlerInfo) {
58038
- D(output.bundlerInfo, 'version', "2.0.0-beta.5");
58244
+ D(output.bundlerInfo, 'version', "2.0.0-beta.6");
58039
58245
  D(output.bundlerInfo, 'bundler', 'rspack');
58040
58246
  D(output.bundlerInfo, 'force', !output.library);
58041
58247
  }
@@ -58148,7 +58354,7 @@ const applyOptimizationDefaults = (optimization, { production, development })=>{
58148
58354
  F(cacheGroups, 'defaultVendors', ()=>({
58149
58355
  idHint: 'vendors',
58150
58356
  reuseExistingChunk: true,
58151
- test: /[\\/]node_modules[\\/]/i,
58357
+ test: /[\\/]node_modules[\\/]/,
58152
58358
  priority: -10
58153
58359
  }));
58154
58360
  }
@@ -59697,7 +59903,7 @@ class MultiStats {
59697
59903
  return obj;
59698
59904
  });
59699
59905
  if (childOptions.version) {
59700
- obj.rspackVersion = "2.0.0-beta.5";
59906
+ obj.rspackVersion = "2.0.0-beta.6";
59701
59907
  obj.version = "5.75.0";
59702
59908
  }
59703
59909
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
@@ -61383,7 +61589,7 @@ const SIMPLE_EXTRACTORS = {
61383
61589
  },
61384
61590
  version: (object)=>{
61385
61591
  object.version = "5.75.0";
61386
- object.rspackVersion = "2.0.0-beta.5";
61592
+ object.rspackVersion = "2.0.0-beta.6";
61387
61593
  },
61388
61594
  env: (object, _compilation, _context, { _env })=>{
61389
61595
  object.env = _env;
@@ -65166,6 +65372,9 @@ class ProvideSharedPlugin extends RspackBuiltinPlugin {
65166
65372
  return createBuiltinPlugin(this.name, rawOptions);
65167
65373
  }
65168
65374
  }
65375
+ function validateShareScope(shareScope, enhanced, pluginName) {
65376
+ if (Array.isArray(shareScope) && shareScope.length > 1 && !enhanced) throw new Error(`[${pluginName}] shareScope as an array with multiple entries requires enhanced=true, got: ${JSON.stringify(shareScope)}`);
65377
+ }
65169
65378
  function normalizeSharedOptions(shared) {
65170
65379
  return parseOptions(shared, (item, key)=>{
65171
65380
  if ('string' != typeof item) throw new Error('Unexpected array in shared');
@@ -65946,7 +66155,7 @@ function getRemoteInfos(options) {
65946
66155
  external: Array.isArray(item) ? item : [
65947
66156
  item
65948
66157
  ],
65949
- shareScope: options.shareScope || 'default'
66158
+ shareScope: options.shareScope ?? 'default'
65950
66159
  }), (item)=>({
65951
66160
  external: Array.isArray(item.external) ? item.external : [
65952
66161
  item.external
@@ -66031,9 +66240,12 @@ class ContainerPlugin extends RspackBuiltinPlugin {
66031
66240
  _options;
66032
66241
  constructor(options){
66033
66242
  super();
66243
+ const shareScope = options.shareScope || 'default';
66244
+ const enhanced = options.enhanced ?? false;
66245
+ validateShareScope(shareScope, enhanced, 'ContainerPlugin');
66034
66246
  this._options = {
66035
66247
  name: options.name,
66036
- shareScope: options.shareScope || 'default',
66248
+ shareScope,
66037
66249
  library: options.library || {
66038
66250
  type: 'global',
66039
66251
  name: options.name
@@ -66051,7 +66263,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
66051
66263
  ],
66052
66264
  name: item.name || void 0
66053
66265
  })),
66054
- enhanced: options.enhanced ?? false
66266
+ enhanced
66055
66267
  };
66056
66268
  }
66057
66269
  raw(compiler) {
@@ -66078,20 +66290,24 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
66078
66290
  _options;
66079
66291
  constructor(options){
66080
66292
  super();
66293
+ const enhanced = options.enhanced ?? false;
66294
+ if (options.shareScope) validateShareScope(options.shareScope, enhanced, 'ContainerReferencePlugin');
66295
+ const remotes = parseOptions(options.remotes, (item)=>({
66296
+ external: Array.isArray(item) ? item : [
66297
+ item
66298
+ ],
66299
+ shareScope: options.shareScope || 'default'
66300
+ }), (item)=>({
66301
+ external: Array.isArray(item.external) ? item.external : [
66302
+ item.external
66303
+ ],
66304
+ shareScope: item.shareScope || options.shareScope || 'default'
66305
+ }));
66306
+ for (const [, config] of remotes)validateShareScope(config.shareScope, enhanced, 'ContainerReferencePlugin');
66081
66307
  this._options = {
66082
66308
  remoteType: options.remoteType,
66083
- remotes: parseOptions(options.remotes, (item)=>({
66084
- external: Array.isArray(item) ? item : [
66085
- item
66086
- ],
66087
- shareScope: options.shareScope || 'default'
66088
- }), (item)=>({
66089
- external: Array.isArray(item.external) ? item.external : [
66090
- item.external
66091
- ],
66092
- shareScope: item.shareScope || options.shareScope || 'default'
66093
- })),
66094
- enhanced: options.enhanced ?? false
66309
+ remotes,
66310
+ enhanced
66095
66311
  };
66096
66312
  }
66097
66313
  raw(compiler) {
@@ -66177,7 +66393,7 @@ function transformSync(source, options) {
66177
66393
  const _options = JSON.stringify(options || {});
66178
66394
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66179
66395
  }
66180
- const exports_rspackVersion = "2.0.0-beta.5";
66396
+ const exports_rspackVersion = "2.0.0-beta.6";
66181
66397
  const exports_version = "5.75.0";
66182
66398
  const exports_WebpackError = Error;
66183
66399
  const exports_config = {