@prisma/query-plan-executor 7.10.0-dev.24 → 7.10.0-dev.26

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.
Files changed (2) hide show
  1. package/dist/index.js +1997 -896
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -33,631 +33,6 @@ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__
33
33
  ));
34
34
  var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
35
35
 
36
- // ../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/_assert.js
37
- var require_assert = __commonJS({
38
- "../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/_assert.js"(exports2) {
39
- "use strict";
40
- Object.defineProperty(exports2, "__esModule", { value: true });
41
- exports2.anumber = anumber;
42
- exports2.abytes = abytes;
43
- exports2.ahash = ahash;
44
- exports2.aexists = aexists;
45
- exports2.aoutput = aoutput;
46
- function anumber(n2) {
47
- if (!Number.isSafeInteger(n2) || n2 < 0)
48
- throw new Error("positive integer expected, got " + n2);
49
- }
50
- function isBytes(a2) {
51
- return a2 instanceof Uint8Array || ArrayBuffer.isView(a2) && a2.constructor.name === "Uint8Array";
52
- }
53
- function abytes(b2, ...lengths) {
54
- if (!isBytes(b2))
55
- throw new Error("Uint8Array expected");
56
- if (lengths.length > 0 && !lengths.includes(b2.length))
57
- throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b2.length);
58
- }
59
- function ahash(h2) {
60
- if (typeof h2 !== "function" || typeof h2.create !== "function")
61
- throw new Error("Hash should be wrapped by utils.wrapConstructor");
62
- anumber(h2.outputLen);
63
- anumber(h2.blockLen);
64
- }
65
- function aexists(instance, checkFinished = true) {
66
- if (instance.destroyed)
67
- throw new Error("Hash instance has been destroyed");
68
- if (checkFinished && instance.finished)
69
- throw new Error("Hash#digest() has already been called");
70
- }
71
- function aoutput(out, instance) {
72
- abytes(out);
73
- const min2 = instance.outputLen;
74
- if (out.length < min2) {
75
- throw new Error("digestInto() expects output buffer of length at least " + min2);
76
- }
77
- }
78
- }
79
- });
80
-
81
- // ../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/_u64.js
82
- var require_u64 = __commonJS({
83
- "../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/_u64.js"(exports2) {
84
- "use strict";
85
- Object.defineProperty(exports2, "__esModule", { value: true });
86
- exports2.add5L = exports2.add5H = exports2.add4H = exports2.add4L = exports2.add3H = exports2.add3L = exports2.rotlBL = exports2.rotlBH = exports2.rotlSL = exports2.rotlSH = exports2.rotr32L = exports2.rotr32H = exports2.rotrBL = exports2.rotrBH = exports2.rotrSL = exports2.rotrSH = exports2.shrSL = exports2.shrSH = exports2.toBig = void 0;
87
- exports2.fromBig = fromBig;
88
- exports2.split = split;
89
- exports2.add = add2;
90
- var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
91
- var _32n = /* @__PURE__ */ BigInt(32);
92
- function fromBig(n2, le2 = false) {
93
- if (le2)
94
- return { h: Number(n2 & U32_MASK64), l: Number(n2 >> _32n & U32_MASK64) };
95
- return { h: Number(n2 >> _32n & U32_MASK64) | 0, l: Number(n2 & U32_MASK64) | 0 };
96
- }
97
- function split(lst, le2 = false) {
98
- let Ah = new Uint32Array(lst.length);
99
- let Al = new Uint32Array(lst.length);
100
- for (let i2 = 0; i2 < lst.length; i2++) {
101
- const { h: h2, l: l2 } = fromBig(lst[i2], le2);
102
- [Ah[i2], Al[i2]] = [h2, l2];
103
- }
104
- return [Ah, Al];
105
- }
106
- var toBig = (h2, l2) => BigInt(h2 >>> 0) << _32n | BigInt(l2 >>> 0);
107
- exports2.toBig = toBig;
108
- var shrSH = (h2, _l, s2) => h2 >>> s2;
109
- exports2.shrSH = shrSH;
110
- var shrSL = (h2, l2, s2) => h2 << 32 - s2 | l2 >>> s2;
111
- exports2.shrSL = shrSL;
112
- var rotrSH = (h2, l2, s2) => h2 >>> s2 | l2 << 32 - s2;
113
- exports2.rotrSH = rotrSH;
114
- var rotrSL = (h2, l2, s2) => h2 << 32 - s2 | l2 >>> s2;
115
- exports2.rotrSL = rotrSL;
116
- var rotrBH = (h2, l2, s2) => h2 << 64 - s2 | l2 >>> s2 - 32;
117
- exports2.rotrBH = rotrBH;
118
- var rotrBL = (h2, l2, s2) => h2 >>> s2 - 32 | l2 << 64 - s2;
119
- exports2.rotrBL = rotrBL;
120
- var rotr32H = (_h, l2) => l2;
121
- exports2.rotr32H = rotr32H;
122
- var rotr32L = (h2, _l) => h2;
123
- exports2.rotr32L = rotr32L;
124
- var rotlSH = (h2, l2, s2) => h2 << s2 | l2 >>> 32 - s2;
125
- exports2.rotlSH = rotlSH;
126
- var rotlSL = (h2, l2, s2) => l2 << s2 | h2 >>> 32 - s2;
127
- exports2.rotlSL = rotlSL;
128
- var rotlBH = (h2, l2, s2) => l2 << s2 - 32 | h2 >>> 64 - s2;
129
- exports2.rotlBH = rotlBH;
130
- var rotlBL = (h2, l2, s2) => h2 << s2 - 32 | l2 >>> 64 - s2;
131
- exports2.rotlBL = rotlBL;
132
- function add2(Ah, Al, Bh, Bl) {
133
- const l2 = (Al >>> 0) + (Bl >>> 0);
134
- return { h: Ah + Bh + (l2 / 2 ** 32 | 0) | 0, l: l2 | 0 };
135
- }
136
- var add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
137
- exports2.add3L = add3L;
138
- var add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
139
- exports2.add3H = add3H;
140
- var add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
141
- exports2.add4L = add4L;
142
- var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
143
- exports2.add4H = add4H;
144
- var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
145
- exports2.add5L = add5L;
146
- var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
147
- exports2.add5H = add5H;
148
- var u64 = {
149
- fromBig,
150
- split,
151
- toBig,
152
- shrSH,
153
- shrSL,
154
- rotrSH,
155
- rotrSL,
156
- rotrBH,
157
- rotrBL,
158
- rotr32H,
159
- rotr32L,
160
- rotlSH,
161
- rotlSL,
162
- rotlBH,
163
- rotlBL,
164
- add: add2,
165
- add3L,
166
- add3H,
167
- add4L,
168
- add4H,
169
- add5H,
170
- add5L
171
- };
172
- exports2.default = u64;
173
- }
174
- });
175
-
176
- // ../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/cryptoNode.js
177
- var require_cryptoNode = __commonJS({
178
- "../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/cryptoNode.js"(exports2) {
179
- "use strict";
180
- Object.defineProperty(exports2, "__esModule", { value: true });
181
- exports2.crypto = void 0;
182
- var nc = require("node:crypto");
183
- exports2.crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
184
- }
185
- });
186
-
187
- // ../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/utils.js
188
- var require_utils = __commonJS({
189
- "../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/utils.js"(exports2) {
190
- "use strict";
191
- Object.defineProperty(exports2, "__esModule", { value: true });
192
- exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.isLE = void 0;
193
- exports2.isBytes = isBytes;
194
- exports2.u8 = u8;
195
- exports2.u32 = u32;
196
- exports2.createView = createView;
197
- exports2.rotr = rotr;
198
- exports2.rotl = rotl;
199
- exports2.byteSwap = byteSwap;
200
- exports2.byteSwap32 = byteSwap32;
201
- exports2.bytesToHex = bytesToHex;
202
- exports2.hexToBytes = hexToBytes;
203
- exports2.asyncLoop = asyncLoop;
204
- exports2.utf8ToBytes = utf8ToBytes;
205
- exports2.toBytes = toBytes;
206
- exports2.concatBytes = concatBytes;
207
- exports2.checkOpts = checkOpts;
208
- exports2.wrapConstructor = wrapConstructor;
209
- exports2.wrapConstructorWithOpts = wrapConstructorWithOpts;
210
- exports2.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts;
211
- exports2.randomBytes = randomBytes;
212
- var crypto_1 = require_cryptoNode();
213
- var _assert_js_1 = require_assert();
214
- function isBytes(a2) {
215
- return a2 instanceof Uint8Array || ArrayBuffer.isView(a2) && a2.constructor.name === "Uint8Array";
216
- }
217
- function u8(arr) {
218
- return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
219
- }
220
- function u32(arr) {
221
- return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
222
- }
223
- function createView(arr) {
224
- return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
225
- }
226
- function rotr(word, shift) {
227
- return word << 32 - shift | word >>> shift;
228
- }
229
- function rotl(word, shift) {
230
- return word << shift | word >>> 32 - shift >>> 0;
231
- }
232
- exports2.isLE = (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
233
- function byteSwap(word) {
234
- return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
235
- }
236
- exports2.byteSwapIfBE = exports2.isLE ? (n2) => n2 : (n2) => byteSwap(n2);
237
- function byteSwap32(arr) {
238
- for (let i2 = 0; i2 < arr.length; i2++) {
239
- arr[i2] = byteSwap(arr[i2]);
240
- }
241
- }
242
- var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_3, i2) => i2.toString(16).padStart(2, "0"));
243
- function bytesToHex(bytes) {
244
- (0, _assert_js_1.abytes)(bytes);
245
- let hex3 = "";
246
- for (let i2 = 0; i2 < bytes.length; i2++) {
247
- hex3 += hexes[bytes[i2]];
248
- }
249
- return hex3;
250
- }
251
- var asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
252
- function asciiToBase16(ch) {
253
- if (ch >= asciis._0 && ch <= asciis._9)
254
- return ch - asciis._0;
255
- if (ch >= asciis.A && ch <= asciis.F)
256
- return ch - (asciis.A - 10);
257
- if (ch >= asciis.a && ch <= asciis.f)
258
- return ch - (asciis.a - 10);
259
- return;
260
- }
261
- function hexToBytes(hex3) {
262
- if (typeof hex3 !== "string")
263
- throw new Error("hex string expected, got " + typeof hex3);
264
- const hl = hex3.length;
265
- const al = hl / 2;
266
- if (hl % 2)
267
- throw new Error("hex string expected, got unpadded hex of length " + hl);
268
- const array2 = new Uint8Array(al);
269
- for (let ai2 = 0, hi2 = 0; ai2 < al; ai2++, hi2 += 2) {
270
- const n1 = asciiToBase16(hex3.charCodeAt(hi2));
271
- const n2 = asciiToBase16(hex3.charCodeAt(hi2 + 1));
272
- if (n1 === void 0 || n2 === void 0) {
273
- const char = hex3[hi2] + hex3[hi2 + 1];
274
- throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi2);
275
- }
276
- array2[ai2] = n1 * 16 + n2;
277
- }
278
- return array2;
279
- }
280
- var nextTick = async () => {
281
- };
282
- exports2.nextTick = nextTick;
283
- async function asyncLoop(iters, tick, cb) {
284
- let ts = Date.now();
285
- for (let i2 = 0; i2 < iters; i2++) {
286
- cb(i2);
287
- const diff = Date.now() - ts;
288
- if (diff >= 0 && diff < tick)
289
- continue;
290
- await (0, exports2.nextTick)();
291
- ts += diff;
292
- }
293
- }
294
- function utf8ToBytes(str) {
295
- if (typeof str !== "string")
296
- throw new Error("utf8ToBytes expected string, got " + typeof str);
297
- return new Uint8Array(new TextEncoder().encode(str));
298
- }
299
- function toBytes(data) {
300
- if (typeof data === "string")
301
- data = utf8ToBytes(data);
302
- (0, _assert_js_1.abytes)(data);
303
- return data;
304
- }
305
- function concatBytes(...arrays) {
306
- let sum2 = 0;
307
- for (let i2 = 0; i2 < arrays.length; i2++) {
308
- const a2 = arrays[i2];
309
- (0, _assert_js_1.abytes)(a2);
310
- sum2 += a2.length;
311
- }
312
- const res = new Uint8Array(sum2);
313
- for (let i2 = 0, pad2 = 0; i2 < arrays.length; i2++) {
314
- const a2 = arrays[i2];
315
- res.set(a2, pad2);
316
- pad2 += a2.length;
317
- }
318
- return res;
319
- }
320
- var Hash2 = class {
321
- // Safe version that clones internal state
322
- clone() {
323
- return this._cloneInto();
324
- }
325
- };
326
- exports2.Hash = Hash2;
327
- function checkOpts(defaults2, opts) {
328
- if (opts !== void 0 && {}.toString.call(opts) !== "[object Object]")
329
- throw new Error("Options should be object or undefined");
330
- const merged = Object.assign(defaults2, opts);
331
- return merged;
332
- }
333
- function wrapConstructor(hashCons) {
334
- const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
335
- const tmp = hashCons();
336
- hashC.outputLen = tmp.outputLen;
337
- hashC.blockLen = tmp.blockLen;
338
- hashC.create = () => hashCons();
339
- return hashC;
340
- }
341
- function wrapConstructorWithOpts(hashCons) {
342
- const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
343
- const tmp = hashCons({});
344
- hashC.outputLen = tmp.outputLen;
345
- hashC.blockLen = tmp.blockLen;
346
- hashC.create = (opts) => hashCons(opts);
347
- return hashC;
348
- }
349
- function wrapXOFConstructorWithOpts(hashCons) {
350
- const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
351
- const tmp = hashCons({});
352
- hashC.outputLen = tmp.outputLen;
353
- hashC.blockLen = tmp.blockLen;
354
- hashC.create = (opts) => hashCons(opts);
355
- return hashC;
356
- }
357
- function randomBytes(bytesLength = 32) {
358
- if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === "function") {
359
- return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength));
360
- }
361
- if (crypto_1.crypto && typeof crypto_1.crypto.randomBytes === "function") {
362
- return crypto_1.crypto.randomBytes(bytesLength);
363
- }
364
- throw new Error("crypto.getRandomValues must be defined");
365
- }
366
- }
367
- });
368
-
369
- // ../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/sha3.js
370
- var require_sha3 = __commonJS({
371
- "../../node_modules/.pnpm/@noble+hashes@1.7.1/node_modules/@noble/hashes/sha3.js"(exports2) {
372
- "use strict";
373
- Object.defineProperty(exports2, "__esModule", { value: true });
374
- exports2.shake256 = exports2.shake128 = exports2.keccak_512 = exports2.keccak_384 = exports2.keccak_256 = exports2.keccak_224 = exports2.sha3_512 = exports2.sha3_384 = exports2.sha3_256 = exports2.sha3_224 = exports2.Keccak = void 0;
375
- exports2.keccakP = keccakP;
376
- var _assert_js_1 = require_assert();
377
- var _u64_js_1 = require_u64();
378
- var utils_js_1 = require_utils();
379
- var SHA3_PI = [];
380
- var SHA3_ROTL = [];
381
- var _SHA3_IOTA = [];
382
- var _0n = /* @__PURE__ */ BigInt(0);
383
- var _1n = /* @__PURE__ */ BigInt(1);
384
- var _2n = /* @__PURE__ */ BigInt(2);
385
- var _7n = /* @__PURE__ */ BigInt(7);
386
- var _256n = /* @__PURE__ */ BigInt(256);
387
- var _0x71n = /* @__PURE__ */ BigInt(113);
388
- for (let round2 = 0, R2 = _1n, x2 = 1, y2 = 0; round2 < 24; round2++) {
389
- [x2, y2] = [y2, (2 * x2 + 3 * y2) % 5];
390
- SHA3_PI.push(2 * (5 * y2 + x2));
391
- SHA3_ROTL.push((round2 + 1) * (round2 + 2) / 2 % 64);
392
- let t2 = _0n;
393
- for (let j2 = 0; j2 < 7; j2++) {
394
- R2 = (R2 << _1n ^ (R2 >> _7n) * _0x71n) % _256n;
395
- if (R2 & _2n)
396
- t2 ^= _1n << (_1n << /* @__PURE__ */ BigInt(j2)) - _1n;
397
- }
398
- _SHA3_IOTA.push(t2);
399
- }
400
- var [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ (0, _u64_js_1.split)(_SHA3_IOTA, true);
401
- var rotlH = (h2, l2, s2) => s2 > 32 ? (0, _u64_js_1.rotlBH)(h2, l2, s2) : (0, _u64_js_1.rotlSH)(h2, l2, s2);
402
- var rotlL = (h2, l2, s2) => s2 > 32 ? (0, _u64_js_1.rotlBL)(h2, l2, s2) : (0, _u64_js_1.rotlSL)(h2, l2, s2);
403
- function keccakP(s2, rounds = 24) {
404
- const B2 = new Uint32Array(5 * 2);
405
- for (let round2 = 24 - rounds; round2 < 24; round2++) {
406
- for (let x2 = 0; x2 < 10; x2++)
407
- B2[x2] = s2[x2] ^ s2[x2 + 10] ^ s2[x2 + 20] ^ s2[x2 + 30] ^ s2[x2 + 40];
408
- for (let x2 = 0; x2 < 10; x2 += 2) {
409
- const idx1 = (x2 + 8) % 10;
410
- const idx0 = (x2 + 2) % 10;
411
- const B0 = B2[idx0];
412
- const B1 = B2[idx0 + 1];
413
- const Th = rotlH(B0, B1, 1) ^ B2[idx1];
414
- const Tl = rotlL(B0, B1, 1) ^ B2[idx1 + 1];
415
- for (let y2 = 0; y2 < 50; y2 += 10) {
416
- s2[x2 + y2] ^= Th;
417
- s2[x2 + y2 + 1] ^= Tl;
418
- }
419
- }
420
- let curH = s2[2];
421
- let curL = s2[3];
422
- for (let t2 = 0; t2 < 24; t2++) {
423
- const shift = SHA3_ROTL[t2];
424
- const Th = rotlH(curH, curL, shift);
425
- const Tl = rotlL(curH, curL, shift);
426
- const PI2 = SHA3_PI[t2];
427
- curH = s2[PI2];
428
- curL = s2[PI2 + 1];
429
- s2[PI2] = Th;
430
- s2[PI2 + 1] = Tl;
431
- }
432
- for (let y2 = 0; y2 < 50; y2 += 10) {
433
- for (let x2 = 0; x2 < 10; x2++)
434
- B2[x2] = s2[y2 + x2];
435
- for (let x2 = 0; x2 < 10; x2++)
436
- s2[y2 + x2] ^= ~B2[(x2 + 2) % 10] & B2[(x2 + 4) % 10];
437
- }
438
- s2[0] ^= SHA3_IOTA_H[round2];
439
- s2[1] ^= SHA3_IOTA_L[round2];
440
- }
441
- B2.fill(0);
442
- }
443
- var Keccak = class _Keccak extends utils_js_1.Hash {
444
- // NOTE: we accept arguments in bytes instead of bits here.
445
- constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
446
- super();
447
- this.blockLen = blockLen;
448
- this.suffix = suffix;
449
- this.outputLen = outputLen;
450
- this.enableXOF = enableXOF;
451
- this.rounds = rounds;
452
- this.pos = 0;
453
- this.posOut = 0;
454
- this.finished = false;
455
- this.destroyed = false;
456
- (0, _assert_js_1.anumber)(outputLen);
457
- if (0 >= this.blockLen || this.blockLen >= 200)
458
- throw new Error("Sha3 supports only keccak-f1600 function");
459
- this.state = new Uint8Array(200);
460
- this.state32 = (0, utils_js_1.u32)(this.state);
461
- }
462
- keccak() {
463
- if (!utils_js_1.isLE)
464
- (0, utils_js_1.byteSwap32)(this.state32);
465
- keccakP(this.state32, this.rounds);
466
- if (!utils_js_1.isLE)
467
- (0, utils_js_1.byteSwap32)(this.state32);
468
- this.posOut = 0;
469
- this.pos = 0;
470
- }
471
- update(data) {
472
- (0, _assert_js_1.aexists)(this);
473
- const { blockLen, state: state3 } = this;
474
- data = (0, utils_js_1.toBytes)(data);
475
- const len = data.length;
476
- for (let pos = 0; pos < len; ) {
477
- const take = Math.min(blockLen - this.pos, len - pos);
478
- for (let i2 = 0; i2 < take; i2++)
479
- state3[this.pos++] ^= data[pos++];
480
- if (this.pos === blockLen)
481
- this.keccak();
482
- }
483
- return this;
484
- }
485
- finish() {
486
- if (this.finished)
487
- return;
488
- this.finished = true;
489
- const { state: state3, suffix, pos, blockLen } = this;
490
- state3[pos] ^= suffix;
491
- if ((suffix & 128) !== 0 && pos === blockLen - 1)
492
- this.keccak();
493
- state3[blockLen - 1] ^= 128;
494
- this.keccak();
495
- }
496
- writeInto(out) {
497
- (0, _assert_js_1.aexists)(this, false);
498
- (0, _assert_js_1.abytes)(out);
499
- this.finish();
500
- const bufferOut = this.state;
501
- const { blockLen } = this;
502
- for (let pos = 0, len = out.length; pos < len; ) {
503
- if (this.posOut >= blockLen)
504
- this.keccak();
505
- const take = Math.min(blockLen - this.posOut, len - pos);
506
- out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
507
- this.posOut += take;
508
- pos += take;
509
- }
510
- return out;
511
- }
512
- xofInto(out) {
513
- if (!this.enableXOF)
514
- throw new Error("XOF is not possible for this instance");
515
- return this.writeInto(out);
516
- }
517
- xof(bytes) {
518
- (0, _assert_js_1.anumber)(bytes);
519
- return this.xofInto(new Uint8Array(bytes));
520
- }
521
- digestInto(out) {
522
- (0, _assert_js_1.aoutput)(out, this);
523
- if (this.finished)
524
- throw new Error("digest() was already called");
525
- this.writeInto(out);
526
- this.destroy();
527
- return out;
528
- }
529
- digest() {
530
- return this.digestInto(new Uint8Array(this.outputLen));
531
- }
532
- destroy() {
533
- this.destroyed = true;
534
- this.state.fill(0);
535
- }
536
- _cloneInto(to2) {
537
- const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
538
- to2 || (to2 = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
539
- to2.state32.set(this.state32);
540
- to2.pos = this.pos;
541
- to2.posOut = this.posOut;
542
- to2.finished = this.finished;
543
- to2.rounds = rounds;
544
- to2.suffix = suffix;
545
- to2.outputLen = outputLen;
546
- to2.enableXOF = enableXOF;
547
- to2.destroyed = this.destroyed;
548
- return to2;
549
- }
550
- };
551
- exports2.Keccak = Keccak;
552
- var gen = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructor)(() => new Keccak(blockLen, suffix, outputLen));
553
- exports2.sha3_224 = gen(6, 144, 224 / 8);
554
- exports2.sha3_256 = gen(6, 136, 256 / 8);
555
- exports2.sha3_384 = gen(6, 104, 384 / 8);
556
- exports2.sha3_512 = gen(6, 72, 512 / 8);
557
- exports2.keccak_224 = gen(1, 144, 224 / 8);
558
- exports2.keccak_256 = gen(1, 136, 256 / 8);
559
- exports2.keccak_384 = gen(1, 104, 384 / 8);
560
- exports2.keccak_512 = gen(1, 72, 512 / 8);
561
- var genShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapXOFConstructorWithOpts)((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
562
- exports2.shake128 = genShake(31, 168, 128 / 8);
563
- exports2.shake256 = genShake(31, 136, 256 / 8);
564
- }
565
- });
566
-
567
- // ../../node_modules/.pnpm/@paralleldrive+cuid2@2.2.2/node_modules/@paralleldrive/cuid2/src/index.js
568
- var require_src = __commonJS({
569
- "../../node_modules/.pnpm/@paralleldrive+cuid2@2.2.2/node_modules/@paralleldrive/cuid2/src/index.js"(exports2, module2) {
570
- "use strict";
571
- var { sha3_512: sha3 } = require_sha3();
572
- var defaultLength = 24;
573
- var bigLength = 32;
574
- var createEntropy = (length2 = 4, random2 = Math.random) => {
575
- let entropy = "";
576
- while (entropy.length < length2) {
577
- entropy = entropy + Math.floor(random2() * 36).toString(36);
578
- }
579
- return entropy;
580
- };
581
- function bufToBigInt(buf) {
582
- let bits = 8n;
583
- let value = 0n;
584
- for (const i2 of buf.values()) {
585
- const bi2 = BigInt(i2);
586
- value = (value << bits) + bi2;
587
- }
588
- return value;
589
- }
590
- var hash2 = (input = "") => {
591
- return bufToBigInt(sha3(input)).toString(36).slice(1);
592
- };
593
- var alphabet = Array.from(
594
- { length: 26 },
595
- (x2, i2) => String.fromCharCode(i2 + 97)
596
- );
597
- var randomLetter = (random2) => alphabet[Math.floor(random2() * alphabet.length)];
598
- var createFingerprint = ({
599
- globalObj = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {},
600
- random: random2 = Math.random
601
- } = {}) => {
602
- const globals = Object.keys(globalObj).toString();
603
- const sourceString = globals.length ? globals + createEntropy(bigLength, random2) : createEntropy(bigLength, random2);
604
- return hash2(sourceString).substring(0, bigLength);
605
- };
606
- var createCounter = (count) => () => {
607
- return count++;
608
- };
609
- var initialCountMax = 476782367;
610
- var init3 = ({
611
- // Fallback if the user does not pass in a CSPRNG. This should be OK
612
- // because we don't rely solely on the random number generator for entropy.
613
- // We also use the host fingerprint, current time, and a session counter.
614
- random: random2 = Math.random,
615
- counter = createCounter(Math.floor(random2() * initialCountMax)),
616
- length: length2 = defaultLength,
617
- fingerprint: fingerprint2 = createFingerprint({ random: random2 })
618
- } = {}) => {
619
- return function cuid24() {
620
- const firstLetter = randomLetter(random2);
621
- const time3 = Date.now().toString(36);
622
- const count = counter().toString(36);
623
- const salt = createEntropy(length2, random2);
624
- const hashInput = `${time3 + salt + count + fingerprint2}`;
625
- return `${firstLetter + hash2(hashInput).substring(1, length2)}`;
626
- };
627
- };
628
- var createId = init3();
629
- var isCuid2 = (id, { minLength = 2, maxLength = bigLength } = {}) => {
630
- const length2 = id.length;
631
- const regex = /^[0-9a-z]+$/;
632
- try {
633
- if (typeof id === "string" && length2 >= minLength && length2 <= maxLength && regex.test(id))
634
- return true;
635
- } finally {
636
- }
637
- return false;
638
- };
639
- module2.exports.getConstants = () => ({ defaultLength, bigLength });
640
- module2.exports.init = init3;
641
- module2.exports.createId = createId;
642
- module2.exports.bufToBigInt = bufToBigInt;
643
- module2.exports.createCounter = createCounter;
644
- module2.exports.createFingerprint = createFingerprint;
645
- module2.exports.isCuid = isCuid2;
646
- }
647
- });
648
-
649
- // ../../node_modules/.pnpm/@paralleldrive+cuid2@2.2.2/node_modules/@paralleldrive/cuid2/index.js
650
- var require_cuid2 = __commonJS({
651
- "../../node_modules/.pnpm/@paralleldrive+cuid2@2.2.2/node_modules/@paralleldrive/cuid2/index.js"(exports2, module2) {
652
- "use strict";
653
- var { createId, init: init3, getConstants, isCuid: isCuid2 } = require_src();
654
- module2.exports.createId = createId;
655
- module2.exports.init = init3;
656
- module2.exports.getConstants = getConstants;
657
- module2.exports.isCuid = isCuid2;
658
- }
659
- });
660
-
661
36
  // ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/stringify.js
662
37
  function unsafeStringify(arr, offset = 0) {
663
38
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
@@ -3508,14 +2883,14 @@ var require_utf32 = __commonJS({
3508
2883
  var codepoint = 0;
3509
2884
  var dst = Buffer2.alloc(src.length + 4);
3510
2885
  var offset = 0;
3511
- var isLE = this.isLE;
2886
+ var isLE2 = this.isLE;
3512
2887
  var overflow = this.overflow;
3513
2888
  var badChar = this.badChar;
3514
2889
  if (overflow.length > 0) {
3515
2890
  for (; i2 < src.length && overflow.length < 4; i2++)
3516
2891
  overflow.push(src[i2]);
3517
2892
  if (overflow.length === 4) {
3518
- if (isLE) {
2893
+ if (isLE2) {
3519
2894
  codepoint = overflow[i2] | overflow[i2 + 1] << 8 | overflow[i2 + 2] << 16 | overflow[i2 + 3] << 24;
3520
2895
  } else {
3521
2896
  codepoint = overflow[i2 + 3] | overflow[i2 + 2] << 8 | overflow[i2 + 1] << 16 | overflow[i2] << 24;
@@ -3525,7 +2900,7 @@ var require_utf32 = __commonJS({
3525
2900
  }
3526
2901
  }
3527
2902
  for (; i2 < src.length - 3; i2 += 4) {
3528
- if (isLE) {
2903
+ if (isLE2) {
3529
2904
  codepoint = src[i2] | src[i2 + 1] << 8 | src[i2 + 2] << 16 | src[i2 + 3] << 24;
3530
2905
  } else {
3531
2906
  codepoint = src[i2 + 3] | src[i2 + 2] << 8 | src[i2 + 1] << 16 | src[i2] << 24;
@@ -8454,7 +7829,7 @@ var require_text_encoder = __commonJS({
8454
7829
  });
8455
7830
 
8456
7831
  // ../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/misc/utils.js
8457
- var require_utils2 = __commonJS({
7832
+ var require_utils = __commonJS({
8458
7833
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/misc/utils.js"(exports2, module2) {
8459
7834
  "use strict";
8460
7835
  var hexArray = "0123456789ABCDEF".split("");
@@ -8661,7 +8036,7 @@ var require_packet_input_stream = __commonJS({
8661
8036
  var PacketNodeEncoded = require_packet_node_encoded();
8662
8037
  var PacketIconvEncoded = require_packet_node_iconv();
8663
8038
  var Collations = require_collations();
8664
- var Utils = require_utils2();
8039
+ var Utils = require_utils();
8665
8040
  var PacketInputStream = class {
8666
8041
  constructor(unexpectedPacket, receiveQueue, out, opts, info2) {
8667
8042
  this.unexpectedPacket = unexpectedPacket;
@@ -8833,7 +8208,7 @@ var require_packet_output_stream = __commonJS({
8833
8208
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/io/packet-output-stream.js"(exports2, module2) {
8834
8209
  "use strict";
8835
8210
  var Iconv = require_lib();
8836
- var Utils = require_utils2();
8211
+ var Utils = require_utils();
8837
8212
  var Errors2 = require_errors();
8838
8213
  var Collations = require_collations();
8839
8214
  var QUOTE = 39;
@@ -9465,7 +8840,7 @@ var require_compression_input_stream = __commonJS({
9465
8840
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/io/compression-input-stream.js"(exports2, module2) {
9466
8841
  "use strict";
9467
8842
  var ZLib = require("zlib");
9468
- var Utils = require_utils2();
8843
+ var Utils = require_utils();
9469
8844
  var CompressionInputStream = class {
9470
8845
  constructor(reader, receiveQueue, opts, info2) {
9471
8846
  this.reader = reader;
@@ -9588,7 +8963,7 @@ ${Utils.log(this.opts, chunk, 0, chunk.length, this.header)}`
9588
8963
  var require_compression_output_stream = __commonJS({
9589
8964
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/io/compression-output-stream.js"(exports2, module2) {
9590
8965
  "use strict";
9591
- var Utils = require_utils2();
8966
+ var Utils = require_utils();
9592
8967
  var ZLib = require("zlib");
9593
8968
  var SMALL_BUFFER_SIZE = 2048;
9594
8969
  var MEDIUM_BUFFER_SIZE = 131072;
@@ -10411,14 +9786,14 @@ var require_native_password_auth = __commonJS({
10411
9786
  }
10412
9787
  static encryptSha1Password(password, seed2) {
10413
9788
  if (!password) return Buffer.alloc(0);
10414
- let hash2 = Crypto.createHash("sha1");
10415
- let stage1 = hash2.update(password, "utf8").digest();
10416
- hash2 = Crypto.createHash("sha1");
10417
- let stage2 = hash2.update(stage1).digest();
10418
- hash2 = Crypto.createHash("sha1");
10419
- hash2.update(seed2);
10420
- hash2.update(stage2);
10421
- let digest = hash2.digest();
9789
+ let hash3 = Crypto.createHash("sha1");
9790
+ let stage1 = hash3.update(password, "utf8").digest();
9791
+ hash3 = Crypto.createHash("sha1");
9792
+ let stage2 = hash3.update(stage1).digest();
9793
+ hash3 = Crypto.createHash("sha1");
9794
+ hash3.update(seed2);
9795
+ hash3.update(stage2);
9796
+ let digest = hash3.digest();
10422
9797
  let returnBytes = Buffer.allocUnsafe(digest.length);
10423
9798
  for (let i2 = 0; i2 < digest.length; i2++) {
10424
9799
  returnBytes[i2] = stage1[i2] ^ digest[i2];
@@ -10429,10 +9804,10 @@ var require_native_password_auth = __commonJS({
10429
9804
  return true;
10430
9805
  }
10431
9806
  hash(conf) {
10432
- let hash2 = Crypto.createHash("sha1");
10433
- let stage1 = hash2.update(conf.password, "utf8").digest();
10434
- hash2 = Crypto.createHash("sha1");
10435
- return hash2.update(stage1).digest();
9807
+ let hash3 = Crypto.createHash("sha1");
9808
+ let stage1 = hash3.update(conf.password, "utf8").digest();
9809
+ hash3 = Crypto.createHash("sha1");
9810
+ return hash3.update(stage1).digest();
10436
9811
  }
10437
9812
  };
10438
9813
  module2.exports = NativePasswordAuth;
@@ -10506,10 +9881,10 @@ var require_handshake = __commonJS({
10506
9881
  return this.pluginName !== "mysql_clear_password";
10507
9882
  }
10508
9883
  hash(conf) {
10509
- let hash2 = Crypto.createHash("sha1");
10510
- let stage1 = hash2.update(conf.password, "utf8").digest();
10511
- hash2 = Crypto.createHash("sha1");
10512
- return hash2.update(stage1).digest();
9884
+ let hash3 = Crypto.createHash("sha1");
9885
+ let stage1 = hash3.update(conf.password, "utf8").digest();
9886
+ hash3 = Crypto.createHash("sha1");
9887
+ return hash3.update(stage1).digest();
10513
9888
  }
10514
9889
  /**
10515
9890
  * Send Handshake response packet
@@ -10696,15 +10071,15 @@ var require_ed25519_password_auth = __commonJS({
10696
10071
  let p2 = [gf(), gf(), gf(), gf()];
10697
10072
  const signedMsg = Buffer.alloc(96);
10698
10073
  const bytePwd = Buffer.from(password);
10699
- let hash2 = Crypto.createHash("sha512");
10700
- const d2 = hash2.update(bytePwd).digest();
10074
+ let hash3 = Crypto.createHash("sha512");
10075
+ const d2 = hash3.update(bytePwd).digest();
10701
10076
  d2[0] &= 248;
10702
10077
  d2[31] &= 127;
10703
10078
  d2[31] |= 64;
10704
10079
  for (i2 = 0; i2 < 32; i2++) signedMsg[64 + i2] = seed2[i2];
10705
10080
  for (i2 = 0; i2 < 32; i2++) signedMsg[32 + i2] = d2[32 + i2];
10706
- hash2 = Crypto.createHash("sha512");
10707
- const r2 = hash2.update(signedMsg.subarray(32, 96)).digest();
10081
+ hash3 = Crypto.createHash("sha512");
10082
+ const r2 = hash3.update(signedMsg.subarray(32, 96)).digest();
10708
10083
  reduce(r2);
10709
10084
  scalarbase(p2, r2);
10710
10085
  pack(signedMsg, p2);
@@ -10713,8 +10088,8 @@ var require_ed25519_password_auth = __commonJS({
10713
10088
  const tt2 = Buffer.alloc(32);
10714
10089
  pack(tt2, p2);
10715
10090
  for (i2 = 32; i2 < 64; i2++) signedMsg[i2] = tt2[i2 - 32];
10716
- hash2 = Crypto.createHash("sha512");
10717
- const h2 = hash2.update(signedMsg).digest();
10091
+ hash3 = Crypto.createHash("sha512");
10092
+ const h2 = hash3.update(signedMsg).digest();
10718
10093
  reduce(h2);
10719
10094
  const x2 = new Float64Array(64);
10720
10095
  for (i2 = 0; i2 < 64; i2++) x2[i2] = 0;
@@ -10735,23 +10110,23 @@ var require_ed25519_password_auth = __commonJS({
10735
10110
  let p2 = [gf(), gf(), gf(), gf()];
10736
10111
  const signedMsg = Buffer.alloc(96);
10737
10112
  const bytePwd = Buffer.from(conf.password);
10738
- let hash2 = Crypto.createHash("sha512");
10739
- const d2 = hash2.update(bytePwd).digest();
10113
+ let hash3 = Crypto.createHash("sha512");
10114
+ const d2 = hash3.update(bytePwd).digest();
10740
10115
  d2[0] &= 248;
10741
10116
  d2[31] &= 127;
10742
10117
  d2[31] |= 64;
10743
10118
  for (i2 = 0; i2 < 32; i2++) signedMsg[64 + i2] = seed[i2];
10744
10119
  for (i2 = 0; i2 < 32; i2++) signedMsg[32 + i2] = d2[32 + i2];
10745
- hash2 = Crypto.createHash("sha512");
10746
- const r2 = hash2.update(signedMsg.subarray(32, 96)).digest();
10120
+ hash3 = Crypto.createHash("sha512");
10121
+ const r2 = hash3.update(signedMsg.subarray(32, 96)).digest();
10747
10122
  reduce(r2);
10748
10123
  scalarbase(p2, r2);
10749
10124
  return r2;
10750
10125
  }
10751
10126
  };
10752
- var gf = function(init3) {
10127
+ var gf = function(init4) {
10753
10128
  const r2 = new Float64Array(16);
10754
- if (init3) for (let i2 = 0; i2 < init3.length; i2++) r2[i2] = init3[i2];
10129
+ if (init4) for (let i2 = 0; i2 < init4.length; i2++) r2[i2] = init4[i2];
10755
10130
  return r2;
10756
10131
  };
10757
10132
  var gf0 = gf();
@@ -11649,14 +11024,14 @@ var require_sha256_password_auth = __commonJS({
11649
11024
  }
11650
11025
  static encryptSha256Password(password, seed2) {
11651
11026
  if (!password) return Buffer.alloc(0);
11652
- let hash2 = Crypto.createHash("sha256");
11653
- let stage1 = hash2.update(password, "utf8").digest();
11654
- hash2 = Crypto.createHash("sha256");
11655
- let stage2 = hash2.update(stage1).digest();
11656
- hash2 = Crypto.createHash("sha256");
11657
- hash2.update(stage2);
11658
- hash2.update(seed2);
11659
- let digest = hash2.digest();
11027
+ let hash3 = Crypto.createHash("sha256");
11028
+ let stage1 = hash3.update(password, "utf8").digest();
11029
+ hash3 = Crypto.createHash("sha256");
11030
+ let stage2 = hash3.update(stage1).digest();
11031
+ hash3 = Crypto.createHash("sha256");
11032
+ hash3.update(stage2);
11033
+ hash3.update(seed2);
11034
+ let digest = hash3.digest();
11660
11035
  let returnBytes = Buffer.allocUnsafe(digest.length);
11661
11036
  for (let i2 = 0; i2 < digest.length; i2++) {
11662
11037
  returnBytes[i2] = stage1[i2] ^ digest[i2];
@@ -11818,7 +11193,7 @@ var require_authentication = __commonJS({
11818
11193
  var StateChange = require_state_change();
11819
11194
  var Collations = require_collations();
11820
11195
  var Crypto = require("crypto");
11821
- var utils = require_utils2();
11196
+ var utils = require_utils();
11822
11197
  var tls = require("tls");
11823
11198
  var authenticationPlugins = {
11824
11199
  mysql_native_password: require_native_password_auth(),
@@ -12005,8 +11380,8 @@ var require_authentication = __commonJS({
12005
11380
  return false;
12006
11381
  }
12007
11382
  const pwdHash = this.plugin.hash(this.cmdParam.opts);
12008
- let hash2 = Crypto.createHash("sha256");
12009
- let digest = hash2.update(pwdHash).update(info2.seed).update(Buffer.from(info2.tlsFingerprint, "hex")).digest();
11383
+ let hash3 = Crypto.createHash("sha256");
11384
+ let digest = hash3.update(pwdHash).update(info2.seed).update(Buffer.from(info2.tlsFingerprint, "hex")).digest();
12010
11385
  const hashHex = utils.toHexString(digest);
12011
11386
  const serverValidationHex = validationHash.toString("ascii", 1, validationHash.length).toLowerCase();
12012
11387
  return hashHex === serverValidationHex;
@@ -17479,7 +16854,7 @@ var require_connection = __commonJS({
17479
16854
  var ConnectionInformation = require_connection_information();
17480
16855
  var tls = require("tls");
17481
16856
  var Errors2 = require_errors();
17482
- var Utils = require_utils2();
16857
+ var Utils = require_utils();
17483
16858
  var Capabilities = require_capabilities();
17484
16859
  var ConnectionOptions = require_connection_options();
17485
16860
  var Authentication = require_authentication();
@@ -19675,7 +19050,7 @@ var require_pool = __commonJS({
19675
19050
  var { EventEmitter } = require("events");
19676
19051
  var Queue = require_denque();
19677
19052
  var Errors2 = require_errors();
19678
- var Utils = require_utils2();
19053
+ var Utils = require_utils();
19679
19054
  var Connection2 = require_connection();
19680
19055
  var Pool2 = class extends EventEmitter {
19681
19056
  opts;
@@ -22173,12 +21548,12 @@ var require_common = __commonJS({
22173
21548
  createDebug.skips = [];
22174
21549
  createDebug.formatters = {};
22175
21550
  function selectColor(namespace) {
22176
- let hash2 = 0;
21551
+ let hash3 = 0;
22177
21552
  for (let i2 = 0; i2 < namespace.length; i2++) {
22178
- hash2 = (hash2 << 5) - hash2 + namespace.charCodeAt(i2);
22179
- hash2 |= 0;
21553
+ hash3 = (hash3 << 5) - hash3 + namespace.charCodeAt(i2);
21554
+ hash3 |= 0;
22180
21555
  }
22181
- return createDebug.colors[Math.abs(hash2) % createDebug.colors.length];
21556
+ return createDebug.colors[Math.abs(hash3) % createDebug.colors.length];
22182
21557
  }
22183
21558
  createDebug.selectColor = selectColor;
22184
21559
  function createDebug(namespace) {
@@ -22257,8 +21632,8 @@ var require_common = __commonJS({
22257
21632
  createDebug.namespaces = namespaces;
22258
21633
  createDebug.names = [];
22259
21634
  createDebug.skips = [];
22260
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
22261
- for (const ns of split) {
21635
+ const split2 = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
21636
+ for (const ns of split2) {
22262
21637
  if (ns[0] === "-") {
22263
21638
  createDebug.skips.push(ns.slice(1));
22264
21639
  } else {
@@ -22658,7 +22033,7 @@ var require_node = __commonJS({
22658
22033
  "use strict";
22659
22034
  var tty2 = require("tty");
22660
22035
  var util4 = require("util");
22661
- exports2.init = init3;
22036
+ exports2.init = init4;
22662
22037
  exports2.log = log5;
22663
22038
  exports2.formatArgs = formatArgs;
22664
22039
  exports2.save = save;
@@ -22807,7 +22182,7 @@ var require_node = __commonJS({
22807
22182
  function load() {
22808
22183
  return process.env.DEBUG;
22809
22184
  }
22810
- function init3(debug7) {
22185
+ function init4(debug7) {
22811
22186
  debug7.inspectOpts = {};
22812
22187
  const keys = Object.keys(exports2.inspectOpts);
22813
22188
  for (let i2 = 0; i2 < keys.length; i2++) {
@@ -22828,7 +22203,7 @@ var require_node = __commonJS({
22828
22203
  });
22829
22204
 
22830
22205
  // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js
22831
- var require_src2 = __commonJS({
22206
+ var require_src = __commonJS({
22832
22207
  "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports2, module2) {
22833
22208
  "use strict";
22834
22209
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
@@ -23396,7 +22771,7 @@ var require_PromiseInspection = __commonJS({
23396
22771
  });
23397
22772
 
23398
22773
  // ../../node_modules/.pnpm/tarn@3.0.2/node_modules/tarn/dist/utils.js
23399
- var require_utils3 = __commonJS({
22774
+ var require_utils2 = __commonJS({
23400
22775
  "../../node_modules/.pnpm/tarn@3.0.2/node_modules/tarn/dist/utils.js"(exports2) {
23401
22776
  "use strict";
23402
22777
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -23464,7 +22839,7 @@ var require_PendingOperation = __commonJS({
23464
22839
  "use strict";
23465
22840
  Object.defineProperty(exports2, "__esModule", { value: true });
23466
22841
  var TimeoutError_1 = require_TimeoutError();
23467
- var utils_1 = require_utils3();
22842
+ var utils_1 = require_utils2();
23468
22843
  var PendingOperation = class {
23469
22844
  constructor(timeoutMillis) {
23470
22845
  this.timeoutMillis = timeoutMillis;
@@ -23514,7 +22889,7 @@ var require_Resource = __commonJS({
23514
22889
  "../../node_modules/.pnpm/tarn@3.0.2/node_modules/tarn/dist/Resource.js"(exports2) {
23515
22890
  "use strict";
23516
22891
  Object.defineProperty(exports2, "__esModule", { value: true });
23517
- var utils_1 = require_utils3();
22892
+ var utils_1 = require_utils2();
23518
22893
  var Resource = class _Resource {
23519
22894
  constructor(resource) {
23520
22895
  this.resource = resource;
@@ -23541,7 +22916,7 @@ var require_Pool = __commonJS({
23541
22916
  Object.defineProperty(exports2, "__esModule", { value: true });
23542
22917
  var PendingOperation_1 = require_PendingOperation();
23543
22918
  var Resource_1 = require_Resource();
23544
- var utils_1 = require_utils3();
22919
+ var utils_1 = require_utils2();
23545
22920
  var events_1 = require("events");
23546
22921
  var timers_1 = require("timers");
23547
22922
  var Pool2 = class {
@@ -23976,7 +23351,7 @@ var require_tarn = __commonJS({
23976
23351
  });
23977
23352
 
23978
23353
  // ../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/utils.js
23979
- var require_utils4 = __commonJS({
23354
+ var require_utils3 = __commonJS({
23980
23355
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/utils.js"(exports2, module2) {
23981
23356
  "use strict";
23982
23357
  var IDS = /* @__PURE__ */ new WeakMap();
@@ -24059,7 +23434,7 @@ var require_connection_error = __commonJS({
24059
23434
  var require_datatypes = __commonJS({
24060
23435
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/datatypes.js"(exports2, module2) {
24061
23436
  "use strict";
24062
- var objectHasProperty3 = require_utils4().objectHasProperty;
23437
+ var objectHasProperty3 = require_utils3().objectHasProperty;
24063
23438
  var inspect2 = Symbol.for("nodejs.util.inspect.custom");
24064
23439
  var TYPES = {
24065
23440
  VarChar(length2) {
@@ -24250,8 +23625,8 @@ var require_table = __commonJS({
24250
23625
  "use strict";
24251
23626
  var TYPES = require_datatypes().TYPES;
24252
23627
  var declareType = require_datatypes().declare;
24253
- var objectHasProperty3 = require_utils4().objectHasProperty;
24254
- var MAX = 65535;
23628
+ var objectHasProperty3 = require_utils3().objectHasProperty;
23629
+ var MAX2 = 65535;
24255
23630
  var JSON_COLUMN_ID = "JSON_F52E2B61-18A1-11d1-B105-00805F49916B";
24256
23631
  function Table(name6) {
24257
23632
  if (name6) {
@@ -24320,12 +23695,12 @@ var require_table = __commonJS({
24320
23695
  }
24321
23696
  break;
24322
23697
  case TYPES.Xml:
24323
- col.type = TYPES.NVarChar(MAX).type;
23698
+ col.type = TYPES.NVarChar(MAX2).type;
24324
23699
  break;
24325
23700
  case TYPES.UDT:
24326
23701
  case TYPES.Geography:
24327
23702
  case TYPES.Geometry:
24328
- col.type = TYPES.VarBinary(MAX).type;
23703
+ col.type = TYPES.VarBinary(MAX2).type;
24329
23704
  break;
24330
23705
  default:
24331
23706
  break;
@@ -24644,10 +24019,10 @@ var require_connection_pool = __commonJS({
24644
24019
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/base/connection-pool.js"(exports2, module2) {
24645
24020
  "use strict";
24646
24021
  var { EventEmitter } = require("node:events");
24647
- var debug7 = require_src2()("mssql:base");
24022
+ var debug7 = require_src()("mssql:base");
24648
24023
  var { parseSqlConnectionString } = require_lib2();
24649
24024
  var tarn = require_tarn();
24650
- var { IDS } = require_utils4();
24025
+ var { IDS } = require_utils3();
24651
24026
  var ConnectionError = require_connection_error();
24652
24027
  var shared = require_shared();
24653
24028
  var { MSSQLError } = require_error();
@@ -25321,9 +24696,9 @@ var require_global_connection = __commonJS({
25321
24696
  var require_prepared_statement = __commonJS({
25322
24697
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/base/prepared-statement.js"(exports2, module2) {
25323
24698
  "use strict";
25324
- var debug7 = require_src2()("mssql:base");
24699
+ var debug7 = require_src()("mssql:base");
25325
24700
  var { EventEmitter } = require("node:events");
25326
- var { IDS, objectHasProperty: objectHasProperty3 } = require_utils4();
24701
+ var { IDS, objectHasProperty: objectHasProperty3 } = require_utils3();
25327
24702
  var globalConnection = require_global_connection();
25328
24703
  var { TransactionError, PreparedStatementError } = require_error();
25329
24704
  var shared = require_shared();
@@ -25632,10 +25007,10 @@ var require_prepared_statement = __commonJS({
25632
25007
  var require_request = __commonJS({
25633
25008
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/base/request.js"(exports2, module2) {
25634
25009
  "use strict";
25635
- var debug7 = require_src2()("mssql:base");
25010
+ var debug7 = require_src()("mssql:base");
25636
25011
  var { EventEmitter } = require("node:events");
25637
25012
  var { Readable: Readable2 } = require("node:stream");
25638
- var { IDS, objectHasProperty: objectHasProperty3 } = require_utils4();
25013
+ var { IDS, objectHasProperty: objectHasProperty3 } = require_utils3();
25639
25014
  var globalConnection = require_global_connection();
25640
25015
  var { RequestError, ConnectionError } = require_error();
25641
25016
  var { TYPES } = require_datatypes();
@@ -26184,9 +25559,9 @@ var require_isolationlevel = __commonJS({
26184
25559
  var require_transaction = __commonJS({
26185
25560
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/base/transaction.js"(exports2, module2) {
26186
25561
  "use strict";
26187
- var debug7 = require_src2()("mssql:base");
25562
+ var debug7 = require_src()("mssql:base");
26188
25563
  var { EventEmitter } = require("node:events");
26189
- var { IDS } = require_utils4();
25564
+ var { IDS } = require_utils3();
26190
25565
  var globalConnection = require_global_connection();
26191
25566
  var { TransactionError } = require_error();
26192
25567
  var shared = require_shared();
@@ -29843,12 +29218,12 @@ var require_common2 = __commonJS({
29843
29218
  createDebug.skips = [];
29844
29219
  createDebug.formatters = {};
29845
29220
  function selectColor(namespace) {
29846
- let hash2 = 0;
29221
+ let hash3 = 0;
29847
29222
  for (let i2 = 0; i2 < namespace.length; i2++) {
29848
- hash2 = (hash2 << 5) - hash2 + namespace.charCodeAt(i2);
29849
- hash2 |= 0;
29223
+ hash3 = (hash3 << 5) - hash3 + namespace.charCodeAt(i2);
29224
+ hash3 |= 0;
29850
29225
  }
29851
- return createDebug.colors[Math.abs(hash2) % createDebug.colors.length];
29226
+ return createDebug.colors[Math.abs(hash3) % createDebug.colors.length];
29852
29227
  }
29853
29228
  createDebug.selectColor = selectColor;
29854
29229
  function createDebug(namespace) {
@@ -29927,8 +29302,8 @@ var require_common2 = __commonJS({
29927
29302
  createDebug.namespaces = namespaces;
29928
29303
  createDebug.names = [];
29929
29304
  createDebug.skips = [];
29930
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
29931
- for (const ns of split) {
29305
+ const split2 = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
29306
+ for (const ns of split2) {
29932
29307
  if (ns[0] === "-") {
29933
29308
  createDebug.skips.push(ns.slice(1));
29934
29309
  } else {
@@ -30178,7 +29553,7 @@ var require_node2 = __commonJS({
30178
29553
  "use strict";
30179
29554
  var tty2 = require("tty");
30180
29555
  var util4 = require("util");
30181
- exports2.init = init3;
29556
+ exports2.init = init4;
30182
29557
  exports2.log = log5;
30183
29558
  exports2.formatArgs = formatArgs;
30184
29559
  exports2.save = save;
@@ -30327,7 +29702,7 @@ var require_node2 = __commonJS({
30327
29702
  function load() {
30328
29703
  return process.env.DEBUG;
30329
29704
  }
30330
- function init3(debug7) {
29705
+ function init4(debug7) {
30331
29706
  debug7.inspectOpts = {};
30332
29707
  const keys = Object.keys(exports2.inspectOpts);
30333
29708
  for (let i2 = 0; i2 < keys.length; i2++) {
@@ -30348,7 +29723,7 @@ var require_node2 = __commonJS({
30348
29723
  });
30349
29724
 
30350
29725
  // ../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js
30351
- var require_src3 = __commonJS({
29726
+ var require_src2 = __commonJS({
30352
29727
  "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports2, module2) {
30353
29728
  "use strict";
30354
29729
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
@@ -30594,7 +29969,7 @@ var require_parse_proxy_response = __commonJS({
30594
29969
  };
30595
29970
  Object.defineProperty(exports2, "__esModule", { value: true });
30596
29971
  exports2.parseProxyResponse = void 0;
30597
- var debug_1 = __importDefault(require_src3());
29972
+ var debug_1 = __importDefault(require_src2());
30598
29973
  var debug7 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
30599
29974
  function parseProxyResponse(socket) {
30600
29975
  return new Promise((resolve, reject) => {
@@ -30720,7 +30095,7 @@ var require_dist2 = __commonJS({
30720
30095
  var net = __importStar(require("net"));
30721
30096
  var tls = __importStar(require("tls"));
30722
30097
  var assert_1 = __importDefault(require("assert"));
30723
- var debug_1 = __importDefault(require_src3());
30098
+ var debug_1 = __importDefault(require_src2());
30724
30099
  var agent_base_1 = require_dist();
30725
30100
  var url_1 = require("url");
30726
30101
  var parse_proxy_response_1 = require_parse_proxy_response();
@@ -31042,7 +30417,7 @@ var require_dist4 = __commonJS({
31042
30417
  exports2.HttpProxyAgent = void 0;
31043
30418
  var net = __importStar(require("net"));
31044
30419
  var tls = __importStar(require("tls"));
31045
- var debug_1 = __importDefault(require_src3());
30420
+ var debug_1 = __importDefault(require_src2());
31046
30421
  var events_1 = require("events");
31047
30422
  var agent_base_1 = require_dist3();
31048
30423
  var url_1 = require("url");
@@ -44826,7 +44201,7 @@ var require_constants = __commonJS({
44826
44201
  "use strict";
44827
44202
  var SEMVER_SPEC_VERSION = "2.0.0";
44828
44203
  var MAX_LENGTH = 256;
44829
- var MAX_SAFE_INTEGER3 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
44204
+ var MAX_SAFE_INTEGER4 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
44830
44205
  9007199254740991;
44831
44206
  var MAX_SAFE_COMPONENT_LENGTH = 16;
44832
44207
  var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
@@ -44843,7 +44218,7 @@ var require_constants = __commonJS({
44843
44218
  MAX_LENGTH,
44844
44219
  MAX_SAFE_COMPONENT_LENGTH,
44845
44220
  MAX_SAFE_BUILD_LENGTH,
44846
- MAX_SAFE_INTEGER: MAX_SAFE_INTEGER3,
44221
+ MAX_SAFE_INTEGER: MAX_SAFE_INTEGER4,
44847
44222
  RELEASE_TYPES,
44848
44223
  SEMVER_SPEC_VERSION,
44849
44224
  FLAG_INCLUDE_PRERELEASE: 1,
@@ -44999,7 +44374,7 @@ var require_semver = __commonJS({
44999
44374
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(exports2, module2) {
45000
44375
  "use strict";
45001
44376
  var debug7 = require_debug();
45002
- var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER3 } = require_constants();
44377
+ var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER4 } = require_constants();
45003
44378
  var { safeRe: re3, t: t2 } = require_re();
45004
44379
  var parseOptions = require_parse_options();
45005
44380
  var { compareIdentifiers } = require_identifiers();
@@ -45044,13 +44419,13 @@ var require_semver = __commonJS({
45044
44419
  this.major = +m2[1];
45045
44420
  this.minor = +m2[2];
45046
44421
  this.patch = +m2[3];
45047
- if (this.major > MAX_SAFE_INTEGER3 || this.major < 0) {
44422
+ if (this.major > MAX_SAFE_INTEGER4 || this.major < 0) {
45048
44423
  throw new TypeError("Invalid major version");
45049
44424
  }
45050
- if (this.minor > MAX_SAFE_INTEGER3 || this.minor < 0) {
44425
+ if (this.minor > MAX_SAFE_INTEGER4 || this.minor < 0) {
45051
44426
  throw new TypeError("Invalid minor version");
45052
44427
  }
45053
- if (this.patch > MAX_SAFE_INTEGER3 || this.patch < 0) {
44428
+ if (this.patch > MAX_SAFE_INTEGER4 || this.patch < 0) {
45054
44429
  throw new TypeError("Invalid patch version");
45055
44430
  }
45056
44431
  if (!m2[4]) {
@@ -45059,7 +44434,7 @@ var require_semver = __commonJS({
45059
44434
  this.prerelease = m2[4].split(".").map((id) => {
45060
44435
  if (/^[0-9]+$/.test(id)) {
45061
44436
  const num = +id;
45062
- if (num >= 0 && num < MAX_SAFE_INTEGER3) {
44437
+ if (num >= 0 && num < MAX_SAFE_INTEGER4) {
45063
44438
  return num;
45064
44439
  }
45065
44440
  }
@@ -45326,11 +44701,11 @@ var require_clean = __commonJS({
45326
44701
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(exports2, module2) {
45327
44702
  "use strict";
45328
44703
  var parse5 = require_parse2();
45329
- var clean = (version5, options) => {
44704
+ var clean2 = (version5, options) => {
45330
44705
  const s2 = parse5(version5.trim().replace(/^[=v]+/, ""), options);
45331
44706
  return s2 ? s2.version : null;
45332
44707
  };
45333
- module2.exports = clean;
44708
+ module2.exports = clean2;
45334
44709
  }
45335
44710
  });
45336
44711
 
@@ -45450,8 +44825,8 @@ var require_compare = __commonJS({
45450
44825
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(exports2, module2) {
45451
44826
  "use strict";
45452
44827
  var SemVer = require_semver();
45453
- var compare = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
45454
- module2.exports = compare;
44828
+ var compare2 = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
44829
+ module2.exports = compare2;
45455
44830
  }
45456
44831
  });
45457
44832
 
@@ -45459,8 +44834,8 @@ var require_compare = __commonJS({
45459
44834
  var require_rcompare = __commonJS({
45460
44835
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(exports2, module2) {
45461
44836
  "use strict";
45462
- var compare = require_compare();
45463
- var rcompare = (a2, b2, loose) => compare(b2, a2, loose);
44837
+ var compare2 = require_compare();
44838
+ var rcompare = (a2, b2, loose) => compare2(b2, a2, loose);
45464
44839
  module2.exports = rcompare;
45465
44840
  }
45466
44841
  });
@@ -45469,8 +44844,8 @@ var require_rcompare = __commonJS({
45469
44844
  var require_compare_loose = __commonJS({
45470
44845
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(exports2, module2) {
45471
44846
  "use strict";
45472
- var compare = require_compare();
45473
- var compareLoose = (a2, b2) => compare(a2, b2, true);
44847
+ var compare2 = require_compare();
44848
+ var compareLoose = (a2, b2) => compare2(a2, b2, true);
45474
44849
  module2.exports = compareLoose;
45475
44850
  }
45476
44851
  });
@@ -45513,8 +44888,8 @@ var require_rsort = __commonJS({
45513
44888
  var require_gt = __commonJS({
45514
44889
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(exports2, module2) {
45515
44890
  "use strict";
45516
- var compare = require_compare();
45517
- var gt2 = (a2, b2, loose) => compare(a2, b2, loose) > 0;
44891
+ var compare2 = require_compare();
44892
+ var gt2 = (a2, b2, loose) => compare2(a2, b2, loose) > 0;
45518
44893
  module2.exports = gt2;
45519
44894
  }
45520
44895
  });
@@ -45523,8 +44898,8 @@ var require_gt = __commonJS({
45523
44898
  var require_lt = __commonJS({
45524
44899
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(exports2, module2) {
45525
44900
  "use strict";
45526
- var compare = require_compare();
45527
- var lt2 = (a2, b2, loose) => compare(a2, b2, loose) < 0;
44901
+ var compare2 = require_compare();
44902
+ var lt2 = (a2, b2, loose) => compare2(a2, b2, loose) < 0;
45528
44903
  module2.exports = lt2;
45529
44904
  }
45530
44905
  });
@@ -45533,8 +44908,8 @@ var require_lt = __commonJS({
45533
44908
  var require_eq = __commonJS({
45534
44909
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(exports2, module2) {
45535
44910
  "use strict";
45536
- var compare = require_compare();
45537
- var eq = (a2, b2, loose) => compare(a2, b2, loose) === 0;
44911
+ var compare2 = require_compare();
44912
+ var eq = (a2, b2, loose) => compare2(a2, b2, loose) === 0;
45538
44913
  module2.exports = eq;
45539
44914
  }
45540
44915
  });
@@ -45543,8 +44918,8 @@ var require_eq = __commonJS({
45543
44918
  var require_neq = __commonJS({
45544
44919
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(exports2, module2) {
45545
44920
  "use strict";
45546
- var compare = require_compare();
45547
- var neq = (a2, b2, loose) => compare(a2, b2, loose) !== 0;
44921
+ var compare2 = require_compare();
44922
+ var neq = (a2, b2, loose) => compare2(a2, b2, loose) !== 0;
45548
44923
  module2.exports = neq;
45549
44924
  }
45550
44925
  });
@@ -45553,8 +44928,8 @@ var require_neq = __commonJS({
45553
44928
  var require_gte = __commonJS({
45554
44929
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(exports2, module2) {
45555
44930
  "use strict";
45556
- var compare = require_compare();
45557
- var gte = (a2, b2, loose) => compare(a2, b2, loose) >= 0;
44931
+ var compare2 = require_compare();
44932
+ var gte = (a2, b2, loose) => compare2(a2, b2, loose) >= 0;
45558
44933
  module2.exports = gte;
45559
44934
  }
45560
44935
  });
@@ -45563,8 +44938,8 @@ var require_gte = __commonJS({
45563
44938
  var require_lte = __commonJS({
45564
44939
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(exports2, module2) {
45565
44940
  "use strict";
45566
- var compare = require_compare();
45567
- var lte = (a2, b2, loose) => compare(a2, b2, loose) <= 0;
44941
+ var compare2 = require_compare();
44942
+ var lte = (a2, b2, loose) => compare2(a2, b2, loose) <= 0;
45568
44943
  module2.exports = lte;
45569
44944
  }
45570
44945
  });
@@ -46510,12 +45885,12 @@ var require_simplify = __commonJS({
46510
45885
  "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(exports2, module2) {
46511
45886
  "use strict";
46512
45887
  var satisfies = require_satisfies();
46513
- var compare = require_compare();
45888
+ var compare2 = require_compare();
46514
45889
  module2.exports = (versions, range, options) => {
46515
45890
  const set2 = [];
46516
45891
  let first = null;
46517
45892
  let prev = null;
46518
- const v2 = versions.sort((a2, b2) => compare(a2, b2, options));
45893
+ const v2 = versions.sort((a2, b2) => compare2(a2, b2, options));
46519
45894
  for (const version5 of v2) {
46520
45895
  const included = satisfies(version5, range, options);
46521
45896
  if (included) {
@@ -46563,7 +45938,7 @@ var require_subset = __commonJS({
46563
45938
  var Comparator = require_comparator();
46564
45939
  var { ANY } = Comparator;
46565
45940
  var satisfies = require_satisfies();
46566
- var compare = require_compare();
45941
+ var compare2 = require_compare();
46567
45942
  var subset = (sub2, dom, options = {}) => {
46568
45943
  if (sub2 === dom) {
46569
45944
  return true;
@@ -46623,7 +45998,7 @@ var require_subset = __commonJS({
46623
45998
  }
46624
45999
  let gtltComp;
46625
46000
  if (gt2 && lt2) {
46626
- gtltComp = compare(gt2.semver, lt2.semver, options);
46001
+ gtltComp = compare2(gt2.semver, lt2.semver, options);
46627
46002
  if (gtltComp > 0) {
46628
46003
  return null;
46629
46004
  } else if (gtltComp === 0 && (gt2.operator !== ">=" || lt2.operator !== "<=")) {
@@ -46703,14 +46078,14 @@ var require_subset = __commonJS({
46703
46078
  if (!a2) {
46704
46079
  return b2;
46705
46080
  }
46706
- const comp = compare(a2.semver, b2.semver, options);
46081
+ const comp = compare2(a2.semver, b2.semver, options);
46707
46082
  return comp > 0 ? a2 : comp < 0 ? b2 : b2.operator === ">" && a2.operator === ">=" ? b2 : a2;
46708
46083
  };
46709
46084
  var lowerLT = (a2, b2, options) => {
46710
46085
  if (!a2) {
46711
46086
  return b2;
46712
46087
  }
46713
- const comp = compare(a2.semver, b2.semver, options);
46088
+ const comp = compare2(a2.semver, b2.semver, options);
46714
46089
  return comp < 0 ? a2 : comp > 0 ? b2 : b2.operator === "<" && a2.operator === "<=" ? b2 : a2;
46715
46090
  };
46716
46091
  module2.exports = subset;
@@ -46727,14 +46102,14 @@ var require_semver2 = __commonJS({
46727
46102
  var identifiers = require_identifiers();
46728
46103
  var parse5 = require_parse2();
46729
46104
  var valid = require_valid();
46730
- var clean = require_clean();
46105
+ var clean2 = require_clean();
46731
46106
  var inc = require_inc();
46732
46107
  var diff = require_diff();
46733
46108
  var major2 = require_major();
46734
46109
  var minor = require_minor();
46735
46110
  var patch = require_patch();
46736
46111
  var prerelease = require_prerelease();
46737
- var compare = require_compare();
46112
+ var compare2 = require_compare();
46738
46113
  var rcompare = require_rcompare();
46739
46114
  var compareLoose = require_compare_loose();
46740
46115
  var compareBuild = require_compare_build();
@@ -46766,14 +46141,14 @@ var require_semver2 = __commonJS({
46766
46141
  module2.exports = {
46767
46142
  parse: parse5,
46768
46143
  valid,
46769
- clean,
46144
+ clean: clean2,
46770
46145
  inc,
46771
46146
  diff,
46772
46147
  major: major2,
46773
46148
  minor,
46774
46149
  patch,
46775
46150
  prerelease,
46776
- compare,
46151
+ compare: compare2,
46777
46152
  rcompare,
46778
46153
  compareLoose,
46779
46154
  compareBuild,
@@ -47116,7 +46491,7 @@ var require_lodash = __commonJS({
47116
46491
  "../../node_modules/.pnpm/lodash.includes@4.3.0/node_modules/lodash.includes/index.js"(exports2, module2) {
47117
46492
  "use strict";
47118
46493
  var INFINITY = 1 / 0;
47119
- var MAX_SAFE_INTEGER3 = 9007199254740991;
46494
+ var MAX_SAFE_INTEGER4 = 9007199254740991;
47120
46495
  var MAX_INTEGER = 17976931348623157e292;
47121
46496
  var NAN = 0 / 0;
47122
46497
  var argsTag = "[object Arguments]";
@@ -47207,7 +46582,7 @@ var require_lodash = __commonJS({
47207
46582
  return result;
47208
46583
  }
47209
46584
  function isIndex(value, length2) {
47210
- length2 = length2 == null ? MAX_SAFE_INTEGER3 : length2;
46585
+ length2 = length2 == null ? MAX_SAFE_INTEGER4 : length2;
47211
46586
  return !!length2 && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
47212
46587
  }
47213
46588
  function isPrototype(value) {
@@ -47238,7 +46613,7 @@ var require_lodash = __commonJS({
47238
46613
  return tag2 == funcTag || tag2 == genTag;
47239
46614
  }
47240
46615
  function isLength(value) {
47241
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER3;
46616
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER4;
47242
46617
  }
47243
46618
  function isObject4(value) {
47244
46619
  var type = typeof value;
@@ -56164,7 +55539,7 @@ var require_ntlm_payload = __commonJS({
56164
55539
  }
56165
55540
  ntlmv2Response(domain2, user, password, serverNonce, targetInfo, clientNonce, mytime) {
56166
55541
  const timestamp = this.createTimestamp(mytime);
56167
- const hash2 = this.ntv2Hash(domain2, user, password);
55542
+ const hash3 = this.ntv2Hash(domain2, user, password);
56168
55543
  const dataLength = 40 + targetInfo.length;
56169
55544
  const data = Buffer.alloc(dataLength, 0);
56170
55545
  serverNonce.copy(data, 0, 0, 8);
@@ -56175,7 +55550,7 @@ var require_ntlm_payload = __commonJS({
56175
55550
  data.writeUInt32LE(0, 32);
56176
55551
  targetInfo.copy(data, 36, 0, targetInfo.length);
56177
55552
  data.writeUInt32LE(0, 36 + targetInfo.length);
56178
- return this.hmacMD5(data, hash2);
55553
+ return this.hmacMD5(data, hash3);
56179
55554
  }
56180
55555
  createTimestamp(time3) {
56181
55556
  const tenthsOfAMicrosecond = (BigInt(time3) + BigInt(11644473600)) * BigInt(1e7);
@@ -56187,20 +55562,20 @@ var require_ntlm_payload = __commonJS({
56187
55562
  return result;
56188
55563
  }
56189
55564
  lmv2Response(domain2, user, password, serverNonce, clientNonce) {
56190
- const hash2 = this.ntv2Hash(domain2, user, password);
55565
+ const hash3 = this.ntv2Hash(domain2, user, password);
56191
55566
  const data = Buffer.alloc(serverNonce.length + clientNonce.length, 0);
56192
55567
  serverNonce.copy(data);
56193
55568
  clientNonce.copy(data, serverNonce.length, 0, clientNonce.length);
56194
- const newhash = this.hmacMD5(data, hash2);
55569
+ const newhash = this.hmacMD5(data, hash3);
56195
55570
  const response = Buffer.alloc(newhash.length + clientNonce.length, 0);
56196
55571
  newhash.copy(response);
56197
55572
  clientNonce.copy(response, newhash.length, 0, clientNonce.length);
56198
55573
  return response;
56199
55574
  }
56200
55575
  ntv2Hash(domain2, user, password) {
56201
- const hash2 = this.ntHash(password);
55576
+ const hash3 = this.ntHash(password);
56202
55577
  const identity = Buffer.from(user.toUpperCase() + domain2.toUpperCase(), "ucs2");
56203
- return this.hmacMD5(identity, hash2);
55578
+ return this.hmacMD5(identity, hash3);
56204
55579
  }
56205
55580
  ntHash(text) {
56206
55581
  const unicodeString = Buffer.from(text, "ucs2");
@@ -58317,7 +57692,7 @@ var require_process = __commonJS({
58317
57692
  });
58318
57693
 
58319
57694
  // ../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/utils.js
58320
- var require_utils5 = __commonJS({
57695
+ var require_utils4 = __commonJS({
58321
57696
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
58322
57697
  "use strict";
58323
57698
  var { Symbol: Symbol2, SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials();
@@ -58547,7 +57922,7 @@ var require_end_of_stream = __commonJS({
58547
57922
  isNodeStream,
58548
57923
  willEmitClose: _willEmitClose,
58549
57924
  kIsClosedPromise
58550
- } = require_utils5();
57925
+ } = require_utils4();
58551
57926
  function isRequest(stream) {
58552
57927
  return stream.setHeader && typeof stream.abort === "function";
58553
57928
  }
@@ -58782,7 +58157,7 @@ var require_destroy = __commonJS({
58782
58157
  AbortError: AbortError4
58783
58158
  } = require_errors3();
58784
58159
  var { Symbol: Symbol2 } = require_primordials();
58785
- var { kDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils5();
58160
+ var { kDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils4();
58786
58161
  var kDestroy = Symbol2("kDestroy");
58787
58162
  var kConstruct = Symbol2("kConstruct");
58788
58163
  function checkError(err, w2, r2) {
@@ -59119,7 +58494,7 @@ var require_add_abort_signal = __commonJS({
59119
58494
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
59120
58495
  "use strict";
59121
58496
  var { AbortError: AbortError4, codes } = require_errors3();
59122
- var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils5();
58497
+ var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils4();
59123
58498
  var eos = require_end_of_stream();
59124
58499
  var { ERR_INVALID_ARG_TYPE } = codes;
59125
58500
  var validateAbortSignal = (signal, name6) => {
@@ -60983,7 +60358,7 @@ var require_duplexify = __commonJS({
60983
60358
  isReadableNodeStream,
60984
60359
  isWritableNodeStream,
60985
60360
  isDuplexNodeStream
60986
- } = require_utils5();
60361
+ } = require_utils4();
60987
60362
  var eos = require_end_of_stream();
60988
60363
  var {
60989
60364
  AbortError: AbortError4,
@@ -61570,7 +60945,7 @@ var require_pipeline = __commonJS({
61570
60945
  isWebStream,
61571
60946
  isReadableStream: isReadableStream3,
61572
60947
  isReadableEnded
61573
- } = require_utils5();
60948
+ } = require_utils4();
61574
60949
  var AbortController3 = globalThis.AbortController || require_abort_controller().AbortController;
61575
60950
  var PassThrough;
61576
60951
  var Readable2;
@@ -61976,7 +61351,7 @@ var require_compose = __commonJS({
61976
61351
  isTransformStream,
61977
61352
  isWritableStream,
61978
61353
  isReadableStream: isReadableStream3
61979
- } = require_utils5();
61354
+ } = require_utils4();
61980
61355
  var {
61981
61356
  AbortError: AbortError4,
61982
61357
  codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
@@ -62168,7 +61543,7 @@ var require_operators = __commonJS({
62168
61543
  var { finished } = require_end_of_stream();
62169
61544
  var staticCompose = require_compose();
62170
61545
  var { addAbortSignalNoValidate } = require_add_abort_signal();
62171
- var { isWritable, isNodeStream } = require_utils5();
61546
+ var { isWritable, isNodeStream } = require_utils4();
62172
61547
  var {
62173
61548
  ArrayPrototypePush,
62174
61549
  MathFloor,
@@ -62552,7 +61927,7 @@ var require_promises = __commonJS({
62552
61927
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
62553
61928
  "use strict";
62554
61929
  var { ArrayPrototypePop, Promise: Promise2 } = require_primordials();
62555
- var { isIterable, isNodeStream, isWebStream } = require_utils5();
61930
+ var { isIterable, isNodeStream, isWebStream } = require_utils4();
62556
61931
  var { pipelineImpl: pl } = require_pipeline();
62557
61932
  var { finished } = require_end_of_stream();
62558
61933
  require_stream2();
@@ -62607,7 +61982,7 @@ var require_stream2 = __commonJS({
62607
61982
  var { destroyer } = require_destroy();
62608
61983
  var eos = require_end_of_stream();
62609
61984
  var promises = require_promises();
62610
- var utils = require_utils5();
61985
+ var utils = require_utils4();
62611
61986
  var Stream = module2.exports = require_legacy().Stream;
62612
61987
  Stream.isDisturbed = utils.isDisturbed;
62613
61988
  Stream.isErrored = utils.isErrored;
@@ -64571,7 +63946,7 @@ __export(js_joda_esm_exports, {
64571
63946
  nativeJs: () => nativeJs,
64572
63947
  use: () => use
64573
63948
  });
64574
- function createErrorType(name6, init3, superErrorClass) {
63949
+ function createErrorType(name6, init4, superErrorClass) {
64575
63950
  if (superErrorClass === void 0) {
64576
63951
  superErrorClass = Error;
64577
63952
  }
@@ -64582,7 +63957,7 @@ function createErrorType(name6, init3, superErrorClass) {
64582
63957
  Error.captureStackTrace(this, this.constructor);
64583
63958
  }
64584
63959
  this.message = message;
64585
- init3 && init3.apply(this, arguments);
63960
+ init4 && init4.apply(this, arguments);
64586
63961
  this.toString = function() {
64587
63962
  return this.name + ": " + this.message;
64588
63963
  };
@@ -64721,7 +64096,7 @@ function _init$k() {
64721
64096
  ChronoField.YEAR_OF_ERA = new ChronoField("YearOfEra", ChronoUnit.YEARS, ChronoUnit.FOREVER, ValueRange.of(1, YearConstants.MAX_VALUE, YearConstants.MAX_VALUE + 1));
64722
64097
  ChronoField.YEAR = new ChronoField("Year", ChronoUnit.YEARS, ChronoUnit.FOREVER, ValueRange.of(YearConstants.MIN_VALUE, YearConstants.MAX_VALUE), "year");
64723
64098
  ChronoField.ERA = new ChronoField("Era", ChronoUnit.ERAS, ChronoUnit.FOREVER, ValueRange.of(0, 1));
64724
- ChronoField.INSTANT_SECONDS = new ChronoField("InstantSeconds", ChronoUnit.SECONDS, ChronoUnit.FOREVER, ValueRange.of(MIN_SAFE_INTEGER, MAX_SAFE_INTEGER2));
64099
+ ChronoField.INSTANT_SECONDS = new ChronoField("InstantSeconds", ChronoUnit.SECONDS, ChronoUnit.FOREVER, ValueRange.of(MIN_SAFE_INTEGER, MAX_SAFE_INTEGER3));
64725
64100
  ChronoField.OFFSET_SECONDS = new ChronoField("OffsetSeconds", ChronoUnit.SECONDS, ChronoUnit.FOREVER, ValueRange.of(-18 * 3600, 18 * 3600));
64726
64101
  }
64727
64102
  function createTemporalQuery(name6, queryFromFunction) {
@@ -64969,7 +64344,7 @@ function _init() {
64969
64344
  ZoneId.SYSTEM = SYSTEM_DEFAULT_ZONE_ID_INSTANCE;
64970
64345
  ZoneId.UTC = ZoneOffset.ofTotalSeconds(0);
64971
64346
  }
64972
- function init2() {
64347
+ function init3() {
64973
64348
  if (isInit) {
64974
64349
  return;
64975
64350
  }
@@ -65025,7 +64400,7 @@ function bindUse(jsJoda) {
65025
64400
  return jsJoda;
65026
64401
  };
65027
64402
  }
65028
- var DateTimeException, DateTimeParseException, UnsupportedTemporalTypeException, ArithmeticException, IllegalArgumentException, IllegalStateException, NullPointerException, assert$1, MAX_SAFE_INTEGER2, MIN_SAFE_INTEGER, MathUtil, Enum, TemporalAmount, TemporalUnit, Duration, YearConstants, ChronoUnit, TemporalField, ValueRange, ChronoField, TemporalQueries, TemporalAccessor, TemporalQuery, DayOfWeek, ENUMS, Month, MONTHS, PATTERN, Period, ParsePosition, EnumMap, ResolverStyle, Temporal, ChronoLocalDate, StringUtil, ZoneId, ZoneRules, Fixed, SECONDS_CACHE, ID_CACHE, ZoneOffset, DateTimeBuilder, DateTimeParseContext, Parsed, DateTimePrintContext, IsoFields, QUARTER_DAYS, Field, DAY_OF_QUARTER_FIELD, QUARTER_OF_YEAR_FIELD, WEEK_OF_WEEK_BASED_YEAR_FIELD, WEEK_BASED_YEAR_FIELD, Unit, DAY_OF_QUARTER, QUARTER_OF_YEAR, WEEK_OF_WEEK_BASED_YEAR, WEEK_BASED_YEAR, WEEK_BASED_YEARS, QUARTER_YEARS, DecimalStyle, SignStyle, TextStyle, CharLiteralPrinterParser, CompositePrinterParser, FractionPrinterParser, MAX_WIDTH$1, EXCEED_POINTS, NumberPrinterParser, ReducedPrinterParser, PATTERNS, OffsetIdPrinterParser, PadPrinterParserDecorator, SettingsParser, StringLiteralPrinterParser, ZoneRulesProvider, ZoneRegion, ZoneIdPrinterParser, ZoneIdTree, ZoneIdTreeMap, zoneIdTree, MAX_WIDTH, DateTimeFormatterBuilder, SECONDS_PER_10000_YEARS, SECONDS_0000_TO_1970, InstantPrinterParser, DefaultingParser, StringBuilder, DateTimeFormatter, MonthDay, PARSER$2, YearMonth, PARSER$1, Year, PARSER, TemporalAdjuster, TemporalAdjusters, Impl, DayOfWeekInMonth, RelativeDayOfWeek, IsoChronology, OffsetTime, ChronoZonedDateTime, ZonedDateTime, OffsetDateTime, DAYS_PER_CYCLE, DAYS_0000_TO_1970, LocalDate, ChronoLocalDateTime, LocalDateTime, LocalTime, NANOS_PER_MILLI, Instant, Clock, SystemClock, FixedClock, OffsetClock, ZoneOffsetTransition, SystemDefaultZoneRules, SystemDefaultZoneId, ZoneIdFactory, SYSTEM_DEFAULT_ZONE_ID_INSTANCE, isInit, ToNativeJsConverter, _2, jsJodaExports, use;
64403
+ var DateTimeException, DateTimeParseException, UnsupportedTemporalTypeException, ArithmeticException, IllegalArgumentException, IllegalStateException, NullPointerException, assert$1, MAX_SAFE_INTEGER3, MIN_SAFE_INTEGER, MathUtil, Enum, TemporalAmount, TemporalUnit, Duration, YearConstants, ChronoUnit, TemporalField, ValueRange, ChronoField, TemporalQueries, TemporalAccessor, TemporalQuery, DayOfWeek, ENUMS, Month, MONTHS, PATTERN, Period, ParsePosition, EnumMap, ResolverStyle, Temporal, ChronoLocalDate, StringUtil, ZoneId, ZoneRules, Fixed, SECONDS_CACHE, ID_CACHE, ZoneOffset, DateTimeBuilder, DateTimeParseContext, Parsed, DateTimePrintContext, IsoFields, QUARTER_DAYS, Field, DAY_OF_QUARTER_FIELD, QUARTER_OF_YEAR_FIELD, WEEK_OF_WEEK_BASED_YEAR_FIELD, WEEK_BASED_YEAR_FIELD, Unit, DAY_OF_QUARTER, QUARTER_OF_YEAR, WEEK_OF_WEEK_BASED_YEAR, WEEK_BASED_YEAR, WEEK_BASED_YEARS, QUARTER_YEARS, DecimalStyle, SignStyle, TextStyle, CharLiteralPrinterParser, CompositePrinterParser, FractionPrinterParser, MAX_WIDTH$1, EXCEED_POINTS, NumberPrinterParser, ReducedPrinterParser, PATTERNS, OffsetIdPrinterParser, PadPrinterParserDecorator, SettingsParser, StringLiteralPrinterParser, ZoneRulesProvider, ZoneRegion, ZoneIdPrinterParser, ZoneIdTree, ZoneIdTreeMap, zoneIdTree, MAX_WIDTH, DateTimeFormatterBuilder, SECONDS_PER_10000_YEARS, SECONDS_0000_TO_1970, InstantPrinterParser, DefaultingParser, StringBuilder, DateTimeFormatter, MonthDay, PARSER$2, YearMonth, PARSER$1, Year, PARSER, TemporalAdjuster, TemporalAdjusters, Impl, DayOfWeekInMonth, RelativeDayOfWeek, IsoChronology, OffsetTime, ChronoZonedDateTime, ZonedDateTime, OffsetDateTime, DAYS_PER_CYCLE, DAYS_0000_TO_1970, LocalDate, ChronoLocalDateTime, LocalDateTime, LocalTime, NANOS_PER_MILLI, Instant, Clock, SystemClock, FixedClock, OffsetClock, ZoneOffsetTransition, SystemDefaultZoneRules, SystemDefaultZoneId, ZoneIdFactory, SYSTEM_DEFAULT_ZONE_ID_INSTANCE, isInit, ToNativeJsConverter, _2, jsJodaExports, use;
65029
64404
  var init_js_joda_esm = __esm({
65030
64405
  "../../node_modules/.pnpm/@js-joda+core@5.6.5/node_modules/@js-joda/core/dist/js-joda.esm.js"() {
65031
64406
  "use strict";
@@ -65043,7 +64418,7 @@ var init_js_joda_esm = __esm({
65043
64418
  requireInstance,
65044
64419
  requireNonNull
65045
64420
  });
65046
- MAX_SAFE_INTEGER2 = 9007199254740991;
64421
+ MAX_SAFE_INTEGER3 = 9007199254740991;
65047
64422
  MIN_SAFE_INTEGER = -9007199254740991;
65048
64423
  MathUtil = function() {
65049
64424
  function MathUtil2() {
@@ -65148,7 +64523,7 @@ var init_js_joda_esm = __esm({
65148
64523
  } else if (value % 1 !== 0) {
65149
64524
  throw new ArithmeticException("Invalid value: '" + value + "' is a float");
65150
64525
  }
65151
- if (value > MAX_SAFE_INTEGER2 || value < MIN_SAFE_INTEGER) {
64526
+ if (value > MAX_SAFE_INTEGER3 || value < MIN_SAFE_INTEGER) {
65152
64527
  throw new ArithmeticException("Calculation overflows an int: " + value);
65153
64528
  }
65154
64529
  };
@@ -65167,7 +64542,7 @@ var init_js_joda_esm = __esm({
65167
64542
  MathUtil2.smi = function smi(int2) {
65168
64543
  return int2 >>> 1 & 1073741824 | int2 & 3221225471;
65169
64544
  };
65170
- MathUtil2.hash = function hash2(number4) {
64545
+ MathUtil2.hash = function hash3(number4) {
65171
64546
  if (number4 !== number4 || number4 === Infinity) {
65172
64547
  return 0;
65173
64548
  }
@@ -65191,7 +64566,7 @@ var init_js_joda_esm = __esm({
65191
64566
  };
65192
64567
  return MathUtil2;
65193
64568
  }();
65194
- MathUtil.MAX_SAFE_INTEGER = MAX_SAFE_INTEGER2;
64569
+ MathUtil.MAX_SAFE_INTEGER = MAX_SAFE_INTEGER3;
65195
64570
  MathUtil.MIN_SAFE_INTEGER = MIN_SAFE_INTEGER;
65196
64571
  Enum = function() {
65197
64572
  function Enum2(name6) {
@@ -65530,32 +64905,32 @@ var init_js_joda_esm = __esm({
65530
64905
  var secsToSubtract = duration3.seconds();
65531
64906
  var nanosToSubtract = duration3.nano();
65532
64907
  if (secsToSubtract === MIN_SAFE_INTEGER) {
65533
- return this.plus(MAX_SAFE_INTEGER2, -nanosToSubtract);
64908
+ return this.plus(MAX_SAFE_INTEGER3, -nanosToSubtract);
65534
64909
  }
65535
64910
  return this.plus(-secsToSubtract, -nanosToSubtract);
65536
64911
  };
65537
64912
  _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
65538
64913
  requireNonNull(amountToSubtract, "amountToSubtract");
65539
64914
  requireNonNull(unit, "unit");
65540
- return amountToSubtract === MIN_SAFE_INTEGER ? this.plusAmountUnit(MAX_SAFE_INTEGER2, unit) : this.plusAmountUnit(-amountToSubtract, unit);
64915
+ return amountToSubtract === MIN_SAFE_INTEGER ? this.plusAmountUnit(MAX_SAFE_INTEGER3, unit) : this.plusAmountUnit(-amountToSubtract, unit);
65541
64916
  };
65542
64917
  _proto.minusDays = function minusDays(daysToSubtract) {
65543
- return daysToSubtract === MIN_SAFE_INTEGER ? this.plusDays(MAX_SAFE_INTEGER2) : this.plusDays(-daysToSubtract);
64918
+ return daysToSubtract === MIN_SAFE_INTEGER ? this.plusDays(MAX_SAFE_INTEGER3) : this.plusDays(-daysToSubtract);
65544
64919
  };
65545
64920
  _proto.minusHours = function minusHours(hoursToSubtract) {
65546
- return hoursToSubtract === MIN_SAFE_INTEGER ? this.plusHours(MAX_SAFE_INTEGER2) : this.plusHours(-hoursToSubtract);
64921
+ return hoursToSubtract === MIN_SAFE_INTEGER ? this.plusHours(MAX_SAFE_INTEGER3) : this.plusHours(-hoursToSubtract);
65547
64922
  };
65548
64923
  _proto.minusMinutes = function minusMinutes(minutesToSubtract) {
65549
- return minutesToSubtract === MIN_SAFE_INTEGER ? this.plusMinutes(MAX_SAFE_INTEGER2) : this.plusMinutes(-minutesToSubtract);
64924
+ return minutesToSubtract === MIN_SAFE_INTEGER ? this.plusMinutes(MAX_SAFE_INTEGER3) : this.plusMinutes(-minutesToSubtract);
65550
64925
  };
65551
64926
  _proto.minusSeconds = function minusSeconds(secondsToSubtract) {
65552
- return secondsToSubtract === MIN_SAFE_INTEGER ? this.plusSeconds(MAX_SAFE_INTEGER2) : this.plusSeconds(-secondsToSubtract);
64927
+ return secondsToSubtract === MIN_SAFE_INTEGER ? this.plusSeconds(MAX_SAFE_INTEGER3) : this.plusSeconds(-secondsToSubtract);
65553
64928
  };
65554
64929
  _proto.minusMillis = function minusMillis(millisToSubtract) {
65555
- return millisToSubtract === MIN_SAFE_INTEGER ? this.plusMillis(MAX_SAFE_INTEGER2) : this.plusMillis(-millisToSubtract);
64930
+ return millisToSubtract === MIN_SAFE_INTEGER ? this.plusMillis(MAX_SAFE_INTEGER3) : this.plusMillis(-millisToSubtract);
65556
64931
  };
65557
64932
  _proto.minusNanos = function minusNanos(nanosToSubtract) {
65558
- return nanosToSubtract === MIN_SAFE_INTEGER ? this.plusNanos(MAX_SAFE_INTEGER2) : this.plusNanos(-nanosToSubtract);
64933
+ return nanosToSubtract === MIN_SAFE_INTEGER ? this.plusNanos(MAX_SAFE_INTEGER3) : this.plusNanos(-nanosToSubtract);
65559
64934
  };
65560
64935
  _proto.multipliedBy = function multipliedBy(multiplicand) {
65561
64936
  if (multiplicand === 0) {
@@ -66836,13 +66211,13 @@ var init_js_joda_esm = __esm({
66836
66211
  if (len === 0) {
66837
66212
  return 0;
66838
66213
  }
66839
- var hash2 = 0;
66214
+ var hash3 = 0;
66840
66215
  for (var i2 = 0; i2 < len; i2++) {
66841
66216
  var chr = text.charCodeAt(i2);
66842
- hash2 = (hash2 << 5) - hash2 + chr;
66843
- hash2 |= 0;
66217
+ hash3 = (hash3 << 5) - hash3 + chr;
66218
+ hash3 |= 0;
66844
66219
  }
66845
- return MathUtil.smi(hash2);
66220
+ return MathUtil.smi(hash3);
66846
66221
  };
66847
66222
  return StringUtil2;
66848
66223
  }();
@@ -71460,11 +70835,11 @@ var init_js_joda_esm = __esm({
71460
70835
  if (this._offset.equals(other._offset)) {
71461
70836
  return this._time.compareTo(other._time);
71462
70837
  }
71463
- var compare = MathUtil.compareNumbers(this._toEpochNano(), other._toEpochNano());
71464
- if (compare === 0) {
70838
+ var compare2 = MathUtil.compareNumbers(this._toEpochNano(), other._toEpochNano());
70839
+ if (compare2 === 0) {
71465
70840
  return this._time.compareTo(other._time);
71466
70841
  }
71467
- return compare;
70842
+ return compare2;
71468
70843
  };
71469
70844
  _proto.equals = function equals(other) {
71470
70845
  if (this === other) {
@@ -74713,7 +74088,7 @@ var init_js_joda_esm = __esm({
74713
74088
  }();
74714
74089
  SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
74715
74090
  isInit = false;
74716
- init2();
74091
+ init3();
74717
74092
  ToNativeJsConverter = function() {
74718
74093
  function ToNativeJsConverter2(temporal, zone) {
74719
74094
  var zonedDateTime;
@@ -75758,7 +75133,7 @@ var require_utf322 = __commonJS({
75758
75133
  var codepoint = 0;
75759
75134
  var dst = Buffer2.alloc(src.length + 4);
75760
75135
  var offset = 0;
75761
- var isLE = this.isLE;
75136
+ var isLE2 = this.isLE;
75762
75137
  var overflow = this.overflow;
75763
75138
  var badChar = this.badChar;
75764
75139
  if (overflow.length > 0) {
@@ -75766,7 +75141,7 @@ var require_utf322 = __commonJS({
75766
75141
  overflow.push(src[i2]);
75767
75142
  }
75768
75143
  if (overflow.length === 4) {
75769
- if (isLE) {
75144
+ if (isLE2) {
75770
75145
  codepoint = overflow[i2] | overflow[i2 + 1] << 8 | overflow[i2 + 2] << 16 | overflow[i2 + 3] << 24;
75771
75146
  } else {
75772
75147
  codepoint = overflow[i2 + 3] | overflow[i2 + 2] << 8 | overflow[i2 + 1] << 16 | overflow[i2] << 24;
@@ -75776,7 +75151,7 @@ var require_utf322 = __commonJS({
75776
75151
  }
75777
75152
  }
75778
75153
  for (; i2 < src.length - 3; i2 += 4) {
75779
- if (isLE) {
75154
+ if (isLE2) {
75780
75155
  codepoint = src[i2] | src[i2 + 1] << 8 | src[i2 + 2] << 16 | src[i2 + 3] << 24;
75781
75156
  } else {
75782
75157
  codepoint = src[i2 + 3] | src[i2 + 2] << 8 | src[i2 + 1] << 16 | src[i2] << 24;
@@ -79383,7 +78758,7 @@ var require_varbinary = __commonJS({
79383
78758
  value: true
79384
78759
  });
79385
78760
  exports2.default = void 0;
79386
- var MAX = (1 << 16) - 1;
78761
+ var MAX2 = (1 << 16) - 1;
79387
78762
  var UNKNOWN_PLP_LEN = Buffer.from([254, 255, 255, 255, 255, 255, 255, 255]);
79388
78763
  var PLP_TERMINATOR = Buffer.from([0, 0, 0, 0]);
79389
78764
  var NULL_LENGTH = Buffer.from([255, 255]);
@@ -79427,7 +78802,7 @@ var require_varbinary = __commonJS({
79427
78802
  if (parameter.length <= this.maximumLength) {
79428
78803
  buffer.writeUInt16LE(parameter.length, 1);
79429
78804
  } else {
79430
- buffer.writeUInt16LE(MAX, 1);
78805
+ buffer.writeUInt16LE(MAX2, 1);
79431
78806
  }
79432
78807
  return buffer;
79433
78808
  },
@@ -79508,7 +78883,7 @@ var require_varchar = __commonJS({
79508
78883
  function _interopRequireDefault(e2) {
79509
78884
  return e2 && e2.__esModule ? e2 : { default: e2 };
79510
78885
  }
79511
- var MAX = (1 << 16) - 1;
78886
+ var MAX2 = (1 << 16) - 1;
79512
78887
  var UNKNOWN_PLP_LEN = Buffer.from([254, 255, 255, 255, 255, 255, 255, 255]);
79513
78888
  var PLP_TERMINATOR = Buffer.from([0, 0, 0, 0]);
79514
78889
  var NULL_LENGTH = Buffer.from([255, 255]);
@@ -79552,7 +78927,7 @@ var require_varchar = __commonJS({
79552
78927
  if (parameter.length <= this.maximumLength) {
79553
78928
  buffer.writeUInt16LE(parameter.length, 1);
79554
78929
  } else {
79555
- buffer.writeUInt16LE(MAX, 1);
78930
+ buffer.writeUInt16LE(MAX2, 1);
79556
78931
  }
79557
78932
  if (parameter.collation) {
79558
78933
  parameter.collation.toBuffer().copy(buffer, 3, 0, 5);
@@ -79785,7 +79160,7 @@ var require_nvarchar = __commonJS({
79785
79160
  value: true
79786
79161
  });
79787
79162
  exports2.default = void 0;
79788
- var MAX = (1 << 16) - 1;
79163
+ var MAX2 = (1 << 16) - 1;
79789
79164
  var UNKNOWN_PLP_LEN = Buffer.from([254, 255, 255, 255, 255, 255, 255, 255]);
79790
79165
  var PLP_TERMINATOR = Buffer.from([0, 0, 0, 0]);
79791
79166
  var NULL_LENGTH = Buffer.from([255, 255]);
@@ -79833,7 +79208,7 @@ var require_nvarchar = __commonJS({
79833
79208
  if (parameter.length <= this.maximumLength) {
79834
79209
  buffer.writeUInt16LE(parameter.length * 2, 1);
79835
79210
  } else {
79836
- buffer.writeUInt16LE(MAX, 1);
79211
+ buffer.writeUInt16LE(MAX2, 1);
79837
79212
  }
79838
79213
  if (parameter.collation) {
79839
79214
  parameter.collation.toBuffer().copy(buffer, 3, 0, 5);
@@ -82101,7 +81476,7 @@ var require_value_parser = __commonJS({
82101
81476
  return e2 && e2.__esModule ? e2 : { default: e2 };
82102
81477
  }
82103
81478
  var NULL = (1 << 16) - 1;
82104
- var MAX = (1 << 16) - 1;
81479
+ var MAX2 = (1 << 16) - 1;
82105
81480
  var THREE_AND_A_THIRD = 3 + 1 / 3;
82106
81481
  var MONEY_DIVISOR = 1e4;
82107
81482
  var PLP_NULL = 0xFFFFFFFFFFFFFFFFn;
@@ -82478,7 +81853,7 @@ var require_value_parser = __commonJS({
82478
81853
  case "VarChar":
82479
81854
  case "NVarChar":
82480
81855
  case "VarBinary": {
82481
- return metadata.dataLength === MAX;
81856
+ return metadata.dataLength === MAX2;
82482
81857
  }
82483
81858
  case "Xml": {
82484
81859
  return true;
@@ -87142,9 +86517,9 @@ var require_connection_pool2 = __commonJS({
87142
86517
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/tedious/connection-pool.js"(exports2, module2) {
87143
86518
  "use strict";
87144
86519
  var tds = require_tedious();
87145
- var debug7 = require_src2()("mssql:tedi");
86520
+ var debug7 = require_src()("mssql:tedi");
87146
86521
  var BaseConnectionPool = require_connection_pool();
87147
- var { IDS } = require_utils4();
86522
+ var { IDS } = require_utils3();
87148
86523
  var shared = require_shared();
87149
86524
  var ConnectionError = require_connection_error();
87150
86525
  var ConnectionPool = class extends BaseConnectionPool {
@@ -87287,9 +86662,9 @@ var require_connection_pool2 = __commonJS({
87287
86662
  var require_transaction3 = __commonJS({
87288
86663
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/tedious/transaction.js"(exports2, module2) {
87289
86664
  "use strict";
87290
- var debug7 = require_src2()("mssql:tedi");
86665
+ var debug7 = require_src()("mssql:tedi");
87291
86666
  var BaseTransaction = require_transaction();
87292
- var { IDS } = require_utils4();
86667
+ var { IDS } = require_utils3();
87293
86668
  var TransactionError = require_transaction_error();
87294
86669
  var Transaction = class extends BaseTransaction {
87295
86670
  constructor(parent) {
@@ -87570,10 +86945,10 @@ var require_request3 = __commonJS({
87570
86945
  "../../node_modules/.pnpm/mssql@12.2.0/node_modules/mssql/lib/tedious/request.js"(exports2, module2) {
87571
86946
  "use strict";
87572
86947
  var tds = require_tedious();
87573
- var debug7 = require_src2()("mssql:tedi");
86948
+ var debug7 = require_src()("mssql:tedi");
87574
86949
  var BaseRequest = require_request();
87575
86950
  var RequestError = require_request_error();
87576
- var { IDS, objectHasProperty: objectHasProperty3 } = require_utils4();
86951
+ var { IDS, objectHasProperty: objectHasProperty3 } = require_utils3();
87577
86952
  var { TYPES, DECLARATIONS, declare, cast } = require_datatypes();
87578
86953
  var Table = require_table();
87579
86954
  var { PARSERS: UDT } = require_udt2();
@@ -89010,7 +88385,7 @@ var require_textParsers = __commonJS({
89010
88385
  result.radius = parseFloat(radius);
89011
88386
  return result;
89012
88387
  };
89013
- var init3 = function(register) {
88388
+ var init4 = function(register) {
89014
88389
  register(20, parseBigInteger);
89015
88390
  register(21, parseInteger2);
89016
88391
  register(23, parseInteger2);
@@ -89057,7 +88432,7 @@ var require_textParsers = __commonJS({
89057
88432
  register(1270, parseStringArray);
89058
88433
  };
89059
88434
  module2.exports = {
89060
- init: init3
88435
+ init: init4
89061
88436
  };
89062
88437
  }
89063
88438
  });
@@ -89066,7 +88441,7 @@ var require_textParsers = __commonJS({
89066
88441
  var require_pg_int8 = __commonJS({
89067
88442
  "../../node_modules/.pnpm/pg-int8@1.0.1/node_modules/pg-int8/index.js"(exports2, module2) {
89068
88443
  "use strict";
89069
- var BASE2 = 1e6;
88444
+ var BASE3 = 1e6;
89070
88445
  function readInt8(buffer) {
89071
88446
  var high = buffer.readInt32BE(0);
89072
88447
  var low = buffer.readUInt32BE(4);
@@ -89084,11 +88459,11 @@ var require_pg_int8 = __commonJS({
89084
88459
  var l2;
89085
88460
  var i2;
89086
88461
  {
89087
- carry = high % BASE2;
89088
- high = high / BASE2 >>> 0;
88462
+ carry = high % BASE3;
88463
+ high = high / BASE3 >>> 0;
89089
88464
  t2 = 4294967296 * carry + low;
89090
- low = t2 / BASE2 >>> 0;
89091
- digits = "" + (t2 - BASE2 * low);
88465
+ low = t2 / BASE3 >>> 0;
88466
+ digits = "" + (t2 - BASE3 * low);
89092
88467
  if (low === 0 && high === 0) {
89093
88468
  return sign2 + digits + result;
89094
88469
  }
@@ -89100,11 +88475,11 @@ var require_pg_int8 = __commonJS({
89100
88475
  result = pad2 + digits + result;
89101
88476
  }
89102
88477
  {
89103
- carry = high % BASE2;
89104
- high = high / BASE2 >>> 0;
88478
+ carry = high % BASE3;
88479
+ high = high / BASE3 >>> 0;
89105
88480
  t2 = 4294967296 * carry + low;
89106
- low = t2 / BASE2 >>> 0;
89107
- digits = "" + (t2 - BASE2 * low);
88481
+ low = t2 / BASE3 >>> 0;
88482
+ digits = "" + (t2 - BASE3 * low);
89108
88483
  if (low === 0 && high === 0) {
89109
88484
  return sign2 + digits + result;
89110
88485
  }
@@ -89116,11 +88491,11 @@ var require_pg_int8 = __commonJS({
89116
88491
  result = pad2 + digits + result;
89117
88492
  }
89118
88493
  {
89119
- carry = high % BASE2;
89120
- high = high / BASE2 >>> 0;
88494
+ carry = high % BASE3;
88495
+ high = high / BASE3 >>> 0;
89121
88496
  t2 = 4294967296 * carry + low;
89122
- low = t2 / BASE2 >>> 0;
89123
- digits = "" + (t2 - BASE2 * low);
88497
+ low = t2 / BASE3 >>> 0;
88498
+ digits = "" + (t2 - BASE3 * low);
89124
88499
  if (low === 0 && high === 0) {
89125
88500
  return sign2 + digits + result;
89126
88501
  }
@@ -89132,9 +88507,9 @@ var require_pg_int8 = __commonJS({
89132
88507
  result = pad2 + digits + result;
89133
88508
  }
89134
88509
  {
89135
- carry = high % BASE2;
88510
+ carry = high % BASE3;
89136
88511
  t2 = 4294967296 * carry + low;
89137
- digits = "" + t2 % BASE2;
88512
+ digits = "" + t2 % BASE3;
89138
88513
  return sign2 + digits + result;
89139
88514
  }
89140
88515
  }
@@ -89319,7 +88694,7 @@ var require_binaryParsers = __commonJS({
89319
88694
  if (value === null) return null;
89320
88695
  return parseBits(value, 8) > 0;
89321
88696
  };
89322
- var init3 = function(register) {
88697
+ var init4 = function(register) {
89323
88698
  register(20, parseInt64);
89324
88699
  register(21, parseInt16);
89325
88700
  register(23, parseInt32);
@@ -89338,7 +88713,7 @@ var require_binaryParsers = __commonJS({
89338
88713
  register(25, parseText);
89339
88714
  };
89340
88715
  module2.exports = {
89341
- init: init3
88716
+ init: init4
89342
88717
  };
89343
88718
  }
89344
88719
  });
@@ -89517,7 +88892,7 @@ var require_defaults = __commonJS({
89517
88892
  });
89518
88893
 
89519
88894
  // ../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/utils.js
89520
- var require_utils6 = __commonJS({
88895
+ var require_utils5 = __commonJS({
89521
88896
  "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/utils.js"(exports2, module2) {
89522
88897
  "use strict";
89523
88898
  var defaults2 = require_defaults();
@@ -89737,8 +89112,8 @@ var require_utils_webcrypto = __commonJS({
89737
89112
  return nodeCrypto.createHash("md5").update(string4, "utf-8").digest("hex");
89738
89113
  } catch (e2) {
89739
89114
  const data = typeof string4 === "string" ? textEncoder.encode(string4) : string4;
89740
- const hash2 = await subtleCrypto.digest("MD5", data);
89741
- return Array.from(new Uint8Array(hash2)).map((b2) => b2.toString(16).padStart(2, "0")).join("");
89115
+ const hash3 = await subtleCrypto.digest("MD5", data);
89116
+ return Array.from(new Uint8Array(hash3)).map((b2) => b2.toString(16).padStart(2, "0")).join("");
89742
89117
  }
89743
89118
  }
89744
89119
  async function postgresMd5PasswordHash(user, password, salt) {
@@ -89765,7 +89140,7 @@ var require_utils_webcrypto = __commonJS({
89765
89140
  });
89766
89141
 
89767
89142
  // ../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils.js
89768
- var require_utils7 = __commonJS({
89143
+ var require_utils6 = __commonJS({
89769
89144
  "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils.js"(exports2, module2) {
89770
89145
  "use strict";
89771
89146
  var useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15;
@@ -89895,7 +89270,7 @@ var require_cert_signatures = __commonJS({
89895
89270
  var require_sasl = __commonJS({
89896
89271
  "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/sasl.js"(exports2, module2) {
89897
89272
  "use strict";
89898
- var crypto6 = require_utils7();
89273
+ var crypto6 = require_utils6();
89899
89274
  var { signatureAlgorithmHashFromCertificate } = require_cert_signatures();
89900
89275
  function startSession(mechanisms, stream) {
89901
89276
  const candidates = ["SCRAM-SHA-256"];
@@ -90496,7 +89871,7 @@ var require_query2 = __commonJS({
90496
89871
  "use strict";
90497
89872
  var { EventEmitter } = require("events");
90498
89873
  var Result2 = require_result();
90499
- var utils = require_utils6();
89874
+ var utils = require_utils5();
90500
89875
  var Query2 = class extends EventEmitter {
90501
89876
  constructor(config3, values, callback) {
90502
89877
  super();
@@ -91841,7 +91216,7 @@ var require_split2 = __commonJS({
91841
91216
  function noop(incoming) {
91842
91217
  return incoming;
91843
91218
  }
91844
- function split(matcher, mapper, options) {
91219
+ function split2(matcher, mapper, options) {
91845
91220
  matcher = matcher || /\r?\n/;
91846
91221
  mapper = mapper || noop;
91847
91222
  options = options || {};
@@ -91884,7 +91259,7 @@ var require_split2 = __commonJS({
91884
91259
  };
91885
91260
  return stream;
91886
91261
  }
91887
- module2.exports = split;
91262
+ module2.exports = split2;
91888
91263
  }
91889
91264
  });
91890
91265
 
@@ -91894,7 +91269,7 @@ var require_helper = __commonJS({
91894
91269
  "use strict";
91895
91270
  var path3 = require("path");
91896
91271
  var Stream = require("stream").Stream;
91897
- var split = require_split2();
91272
+ var split2 = require_split2();
91898
91273
  var util4 = require("util");
91899
91274
  var defaultPort = 5432;
91900
91275
  var isWin = process.platform === "win32";
@@ -91964,7 +91339,7 @@ var require_helper = __commonJS({
91964
91339
  };
91965
91340
  module2.exports.getPassword = function(connInfo, stream, cb) {
91966
91341
  var pass;
91967
- var lineStream = stream.pipe(split());
91342
+ var lineStream = stream.pipe(split2());
91968
91343
  function onLine(line) {
91969
91344
  var entry = parseLine(line);
91970
91345
  if (entry && isValidEntry(entry) && matcher(connInfo, entry)) {
@@ -92085,14 +91460,14 @@ var require_client = __commonJS({
92085
91460
  "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/client.js"(exports2, module2) {
92086
91461
  "use strict";
92087
91462
  var EventEmitter = require("events").EventEmitter;
92088
- var utils = require_utils6();
91463
+ var utils = require_utils5();
92089
91464
  var sasl = require_sasl();
92090
91465
  var TypeOverrides2 = require_type_overrides();
92091
91466
  var ConnectionParameters = require_connection_parameters();
92092
91467
  var Query2 = require_query2();
92093
91468
  var defaults2 = require_defaults();
92094
91469
  var Connection2 = require_connection3();
92095
- var crypto6 = require_utils7();
91470
+ var crypto6 = require_utils6();
92096
91471
  var Client2 = class extends EventEmitter {
92097
91472
  constructor(config3) {
92098
91473
  super();
@@ -93004,7 +92379,7 @@ var require_query3 = __commonJS({
93004
92379
  "use strict";
93005
92380
  var EventEmitter = require("events").EventEmitter;
93006
92381
  var util4 = require("util");
93007
- var utils = require_utils6();
92382
+ var utils = require_utils5();
93008
92383
  var NativeQuery = module2.exports = function(config3, values, callback) {
93009
92384
  EventEmitter.call(this);
93010
92385
  config3 = utils.normalizeQueryConfig(config3, values, callback);
@@ -93395,11 +92770,11 @@ var require_lib5 = __commonJS({
93395
92770
  var defaults2 = require_defaults();
93396
92771
  var Connection2 = require_connection3();
93397
92772
  var Result2 = require_result();
93398
- var utils = require_utils6();
92773
+ var utils = require_utils5();
93399
92774
  var Pool2 = require_pg_pool();
93400
92775
  var TypeOverrides2 = require_type_overrides();
93401
92776
  var { DatabaseError: DatabaseError2 } = require_dist5();
93402
- var { escapeIdentifier: escapeIdentifier2, escapeLiteral: escapeLiteral2 } = require_utils6();
92777
+ var { escapeIdentifier: escapeIdentifier2, escapeLiteral: escapeLiteral2 } = require_utils5();
93403
92778
  var poolFactory = (Client3) => {
93404
92779
  return class BoundPool extends Pool2 {
93405
92780
  constructor(options) {
@@ -93561,7 +92936,7 @@ __export(index_exports, {
93561
92936
  module.exports = __toCommonJS(index_exports);
93562
92937
 
93563
92938
  // package.json
93564
- var version = "7.10.0-dev.24";
92939
+ var version = "7.10.0-dev.26";
93565
92940
 
93566
92941
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
93567
92942
  function clampProp(e2, n2, t2, o2, r2) {
@@ -100109,7 +99484,7 @@ var divide = /* @__PURE__ */ function() {
100109
99484
  if (carry) x2.unshift(carry);
100110
99485
  return x2;
100111
99486
  }
100112
- function compare(a2, b2, aL, bL) {
99487
+ function compare2(a2, b2, aL, bL) {
100113
99488
  var i2, r2;
100114
99489
  if (aL != bL) {
100115
99490
  r2 = aL > bL ? 1 : -1;
@@ -100199,7 +99574,7 @@ var divide = /* @__PURE__ */ function() {
100199
99574
  if (yd[1] >= base / 2) ++yd0;
100200
99575
  do {
100201
99576
  k2 = 0;
100202
- cmp = compare(yd, rem, yL, remL);
99577
+ cmp = compare2(yd, rem, yL, remL);
100203
99578
  if (cmp < 0) {
100204
99579
  rem0 = rem[0];
100205
99580
  if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
@@ -100209,7 +99584,7 @@ var divide = /* @__PURE__ */ function() {
100209
99584
  prod = multiplyInteger(yd, k2, base);
100210
99585
  prodL = prod.length;
100211
99586
  remL = rem.length;
100212
- cmp = compare(prod, rem, prodL, remL);
99587
+ cmp = compare2(prod, rem, prodL, remL);
100213
99588
  if (cmp == 1) {
100214
99589
  k2--;
100215
99590
  subtract(prod, yL < prodL ? yz : yd, prodL, base);
@@ -100223,7 +99598,7 @@ var divide = /* @__PURE__ */ function() {
100223
99598
  subtract(rem, prod, remL, base);
100224
99599
  if (cmp == -1) {
100225
99600
  remL = rem.length;
100226
- cmp = compare(yd, rem, yL, remL);
99601
+ cmp = compare2(yd, rem, yL, remL);
100227
99602
  if (cmp < 1) {
100228
99603
  k2++;
100229
99604
  subtract(rem, yL < remL ? yz : yd, remL, base);
@@ -101646,21 +101021,1750 @@ function createCuid(fingerprint2) {
101646
101021
  c2++;
101647
101022
  return c2 - 1;
101648
101023
  }
101649
- function cuid5() {
101650
- var letter = "c", timestamp = (/* @__PURE__ */ new Date()).getTime().toString(base), counter = pad(safeCounter().toString(base), blockSize), print = fingerprint2(), random2 = randomBlock() + randomBlock();
101651
- return letter + timestamp + counter + print + random2;
101024
+ function cuid4() {
101025
+ var letter = "c", timestamp = (/* @__PURE__ */ new Date()).getTime().toString(base), counter = pad(safeCounter().toString(base), blockSize), print = fingerprint2(), random3 = randomBlock() + randomBlock();
101026
+ return letter + timestamp + counter + print + random3;
101652
101027
  }
101653
- cuid5.fingerprint = fingerprint2;
101654
- cuid5.isCuid = isCuid;
101655
- return cuid5;
101028
+ cuid4.fingerprint = fingerprint2;
101029
+ cuid4.isCuid = isCuid;
101030
+ return cuid4;
101656
101031
  }
101657
101032
 
101658
101033
  // ../../node_modules/.pnpm/@bugsnag+cuid@3.2.1/node_modules/@bugsnag/cuid/index.esm.mjs
101659
101034
  var cuid = createCuid(fingerprint);
101660
101035
  var index_esm_default = cuid;
101661
101036
 
101662
- // ../client-engine-runtime/dist/index.mjs
101663
- var import_cuid22 = __toESM(require_cuid2(), 1);
101037
+ // ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js
101038
+ var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
101039
+ var _32n = /* @__PURE__ */ BigInt(32);
101040
+ function fromBig(n2, le2 = false) {
101041
+ if (le2)
101042
+ return { h: Number(n2 & U32_MASK64), l: Number(n2 >> _32n & U32_MASK64) };
101043
+ return { h: Number(n2 >> _32n & U32_MASK64) | 0, l: Number(n2 & U32_MASK64) | 0 };
101044
+ }
101045
+ function split(lst, le2 = false) {
101046
+ const len = lst.length;
101047
+ let Ah = new Uint32Array(len);
101048
+ let Al = new Uint32Array(len);
101049
+ for (let i2 = 0; i2 < len; i2++) {
101050
+ const { h: h2, l: l2 } = fromBig(lst[i2], le2);
101051
+ [Ah[i2], Al[i2]] = [h2, l2];
101052
+ }
101053
+ return [Ah, Al];
101054
+ }
101055
+ var rotlSH = (h2, l2, s2) => h2 << s2 | l2 >>> 32 - s2;
101056
+ var rotlSL = (h2, l2, s2) => l2 << s2 | h2 >>> 32 - s2;
101057
+ var rotlBH = (h2, l2, s2) => l2 << s2 - 32 | h2 >>> 64 - s2;
101058
+ var rotlBL = (h2, l2, s2) => h2 << s2 - 32 | l2 >>> 64 - s2;
101059
+
101060
+ // ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
101061
+ function isBytes(a2) {
101062
+ return a2 instanceof Uint8Array || ArrayBuffer.isView(a2) && a2.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a2 && a2.BYTES_PER_ELEMENT === 1;
101063
+ }
101064
+ function anumber(n2, title = "") {
101065
+ if (typeof n2 !== "number") {
101066
+ const prefix = title && `"${title}" `;
101067
+ throw new TypeError(`${prefix}expected number, got ${typeof n2}`);
101068
+ }
101069
+ if (!Number.isSafeInteger(n2) || n2 < 0) {
101070
+ const prefix = title && `"${title}" `;
101071
+ throw new RangeError(`${prefix}expected integer >= 0, got ${n2}`);
101072
+ }
101073
+ }
101074
+ function abytes(value, length2, title = "") {
101075
+ const bytes = isBytes(value);
101076
+ const len = value?.length;
101077
+ const needsLen = length2 !== void 0;
101078
+ if (!bytes || needsLen && len !== length2) {
101079
+ const prefix = title && `"${title}" `;
101080
+ const ofLen = needsLen ? ` of length ${length2}` : "";
101081
+ const got = bytes ? `length=${len}` : `type=${typeof value}`;
101082
+ const message = prefix + "expected Uint8Array" + ofLen + ", got " + got;
101083
+ if (!bytes)
101084
+ throw new TypeError(message);
101085
+ throw new RangeError(message);
101086
+ }
101087
+ return value;
101088
+ }
101089
+ function aexists(instance, checkFinished = true) {
101090
+ if (instance.destroyed)
101091
+ throw new Error("Hash instance has been destroyed");
101092
+ if (checkFinished && instance.finished)
101093
+ throw new Error("Hash#digest() has already been called");
101094
+ }
101095
+ function aoutput(out, instance) {
101096
+ abytes(out, void 0, "digestInto() output");
101097
+ const min2 = instance.outputLen;
101098
+ if (out.length < min2) {
101099
+ throw new RangeError('"digestInto() output" expected to be of length >=' + min2);
101100
+ }
101101
+ }
101102
+ function u32(arr) {
101103
+ return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
101104
+ }
101105
+ function clean(...arrays) {
101106
+ for (let i2 = 0; i2 < arrays.length; i2++) {
101107
+ arrays[i2].fill(0);
101108
+ }
101109
+ }
101110
+ var isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
101111
+ function byteSwap(word) {
101112
+ return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
101113
+ }
101114
+ function byteSwap32(arr) {
101115
+ for (let i2 = 0; i2 < arr.length; i2++) {
101116
+ arr[i2] = byteSwap(arr[i2]);
101117
+ }
101118
+ return arr;
101119
+ }
101120
+ var swap32IfBE = isLE ? (u2) => u2 : byteSwap32;
101121
+ function createHasher(hashCons, info2 = {}) {
101122
+ const hashC = (msg, opts) => hashCons(opts).update(msg).digest();
101123
+ const tmp = hashCons(void 0);
101124
+ hashC.outputLen = tmp.outputLen;
101125
+ hashC.blockLen = tmp.blockLen;
101126
+ hashC.canXOF = tmp.canXOF;
101127
+ hashC.create = (opts) => hashCons(opts);
101128
+ Object.assign(hashC, info2);
101129
+ return Object.freeze(hashC);
101130
+ }
101131
+ var oidNist = (suffix) => ({
101132
+ // Current NIST hashAlgs suffixes used here fit in one DER subidentifier octet.
101133
+ // Larger suffix values would need base-128 OID encoding and a different length byte.
101134
+ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
101135
+ });
101136
+
101137
+ // ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha3.js
101138
+ var _0n = BigInt(0);
101139
+ var _1n = BigInt(1);
101140
+ var _2n = BigInt(2);
101141
+ var _7n = BigInt(7);
101142
+ var _256n = BigInt(256);
101143
+ var _0x71n = BigInt(113);
101144
+ var SHA3_PI = [];
101145
+ var SHA3_ROTL = [];
101146
+ var _SHA3_IOTA = [];
101147
+ for (let round2 = 0, R2 = _1n, x2 = 1, y2 = 0; round2 < 24; round2++) {
101148
+ [x2, y2] = [y2, (2 * x2 + 3 * y2) % 5];
101149
+ SHA3_PI.push(2 * (5 * y2 + x2));
101150
+ SHA3_ROTL.push((round2 + 1) * (round2 + 2) / 2 % 64);
101151
+ let t2 = _0n;
101152
+ for (let j2 = 0; j2 < 7; j2++) {
101153
+ R2 = (R2 << _1n ^ (R2 >> _7n) * _0x71n) % _256n;
101154
+ if (R2 & _2n)
101155
+ t2 ^= _1n << (_1n << BigInt(j2)) - _1n;
101156
+ }
101157
+ _SHA3_IOTA.push(t2);
101158
+ }
101159
+ var IOTAS = split(_SHA3_IOTA, true);
101160
+ var SHA3_IOTA_H = IOTAS[0];
101161
+ var SHA3_IOTA_L = IOTAS[1];
101162
+ var rotlH = (h2, l2, s2) => s2 > 32 ? rotlBH(h2, l2, s2) : rotlSH(h2, l2, s2);
101163
+ var rotlL = (h2, l2, s2) => s2 > 32 ? rotlBL(h2, l2, s2) : rotlSL(h2, l2, s2);
101164
+ function keccakP(s2, rounds = 24) {
101165
+ anumber(rounds, "rounds");
101166
+ if (rounds < 1 || rounds > 24)
101167
+ throw new Error('"rounds" expected integer 1..24');
101168
+ const B2 = new Uint32Array(5 * 2);
101169
+ for (let round2 = 24 - rounds; round2 < 24; round2++) {
101170
+ for (let x2 = 0; x2 < 10; x2++)
101171
+ B2[x2] = s2[x2] ^ s2[x2 + 10] ^ s2[x2 + 20] ^ s2[x2 + 30] ^ s2[x2 + 40];
101172
+ for (let x2 = 0; x2 < 10; x2 += 2) {
101173
+ const idx1 = (x2 + 8) % 10;
101174
+ const idx0 = (x2 + 2) % 10;
101175
+ const B0 = B2[idx0];
101176
+ const B1 = B2[idx0 + 1];
101177
+ const Th = rotlH(B0, B1, 1) ^ B2[idx1];
101178
+ const Tl = rotlL(B0, B1, 1) ^ B2[idx1 + 1];
101179
+ for (let y2 = 0; y2 < 50; y2 += 10) {
101180
+ s2[x2 + y2] ^= Th;
101181
+ s2[x2 + y2 + 1] ^= Tl;
101182
+ }
101183
+ }
101184
+ let curH = s2[2];
101185
+ let curL = s2[3];
101186
+ for (let t2 = 0; t2 < 24; t2++) {
101187
+ const shift = SHA3_ROTL[t2];
101188
+ const Th = rotlH(curH, curL, shift);
101189
+ const Tl = rotlL(curH, curL, shift);
101190
+ const PI2 = SHA3_PI[t2];
101191
+ curH = s2[PI2];
101192
+ curL = s2[PI2 + 1];
101193
+ s2[PI2] = Th;
101194
+ s2[PI2 + 1] = Tl;
101195
+ }
101196
+ for (let y2 = 0; y2 < 50; y2 += 10) {
101197
+ const b0 = s2[y2], b1 = s2[y2 + 1], b2 = s2[y2 + 2], b3 = s2[y2 + 3];
101198
+ s2[y2] ^= ~s2[y2 + 2] & s2[y2 + 4];
101199
+ s2[y2 + 1] ^= ~s2[y2 + 3] & s2[y2 + 5];
101200
+ s2[y2 + 2] ^= ~s2[y2 + 4] & s2[y2 + 6];
101201
+ s2[y2 + 3] ^= ~s2[y2 + 5] & s2[y2 + 7];
101202
+ s2[y2 + 4] ^= ~s2[y2 + 6] & s2[y2 + 8];
101203
+ s2[y2 + 5] ^= ~s2[y2 + 7] & s2[y2 + 9];
101204
+ s2[y2 + 6] ^= ~s2[y2 + 8] & b0;
101205
+ s2[y2 + 7] ^= ~s2[y2 + 9] & b1;
101206
+ s2[y2 + 8] ^= ~b0 & b2;
101207
+ s2[y2 + 9] ^= ~b1 & b3;
101208
+ }
101209
+ s2[0] ^= SHA3_IOTA_H[round2];
101210
+ s2[1] ^= SHA3_IOTA_L[round2];
101211
+ }
101212
+ clean(B2);
101213
+ }
101214
+ var Keccak = class _Keccak {
101215
+ state;
101216
+ pos = 0;
101217
+ posOut = 0;
101218
+ finished = false;
101219
+ state32;
101220
+ destroyed = false;
101221
+ blockLen;
101222
+ suffix;
101223
+ outputLen;
101224
+ canXOF;
101225
+ enableXOF = false;
101226
+ rounds;
101227
+ // NOTE: we accept arguments in bytes instead of bits here.
101228
+ constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
101229
+ this.blockLen = blockLen;
101230
+ this.suffix = suffix;
101231
+ this.outputLen = outputLen;
101232
+ this.enableXOF = enableXOF;
101233
+ this.canXOF = enableXOF;
101234
+ this.rounds = rounds;
101235
+ anumber(outputLen, "outputLen");
101236
+ if (!(0 < blockLen && blockLen < 200))
101237
+ throw new Error("only keccak-f1600 function is supported");
101238
+ this.state = new Uint8Array(200);
101239
+ this.state32 = u32(this.state);
101240
+ }
101241
+ clone() {
101242
+ return this._cloneInto();
101243
+ }
101244
+ keccak() {
101245
+ swap32IfBE(this.state32);
101246
+ keccakP(this.state32, this.rounds);
101247
+ swap32IfBE(this.state32);
101248
+ this.posOut = 0;
101249
+ this.pos = 0;
101250
+ }
101251
+ update(data) {
101252
+ aexists(this);
101253
+ abytes(data);
101254
+ const { blockLen, state: state3 } = this;
101255
+ const len = data.length;
101256
+ for (let pos = 0; pos < len; ) {
101257
+ const take = Math.min(blockLen - this.pos, len - pos);
101258
+ for (let i2 = 0; i2 < take; i2++)
101259
+ state3[this.pos++] ^= data[pos++];
101260
+ if (this.pos === blockLen)
101261
+ this.keccak();
101262
+ }
101263
+ return this;
101264
+ }
101265
+ finish() {
101266
+ if (this.finished)
101267
+ return;
101268
+ this.finished = true;
101269
+ const { state: state3, suffix, pos, blockLen } = this;
101270
+ state3[pos] ^= suffix;
101271
+ if ((suffix & 128) !== 0 && pos === blockLen - 1)
101272
+ this.keccak();
101273
+ state3[blockLen - 1] ^= 128;
101274
+ this.keccak();
101275
+ }
101276
+ writeInto(out) {
101277
+ aexists(this, false);
101278
+ abytes(out);
101279
+ this.finish();
101280
+ const bufferOut = this.state;
101281
+ const { blockLen } = this;
101282
+ for (let pos = 0, len = out.length; pos < len; ) {
101283
+ if (this.posOut >= blockLen)
101284
+ this.keccak();
101285
+ const take = Math.min(blockLen - this.posOut, len - pos);
101286
+ out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
101287
+ this.posOut += take;
101288
+ pos += take;
101289
+ }
101290
+ return out;
101291
+ }
101292
+ xofInto(out) {
101293
+ if (!this.enableXOF)
101294
+ throw new Error("XOF is not possible for this instance");
101295
+ return this.writeInto(out);
101296
+ }
101297
+ xof(bytes) {
101298
+ anumber(bytes);
101299
+ return this.xofInto(new Uint8Array(bytes));
101300
+ }
101301
+ digestInto(out) {
101302
+ aoutput(out, this);
101303
+ if (this.finished)
101304
+ throw new Error("digest() was already called");
101305
+ this.writeInto(out.subarray(0, this.outputLen));
101306
+ this.destroy();
101307
+ }
101308
+ digest() {
101309
+ const out = new Uint8Array(this.outputLen);
101310
+ this.digestInto(out);
101311
+ return out;
101312
+ }
101313
+ destroy() {
101314
+ this.destroyed = true;
101315
+ clean(this.state);
101316
+ }
101317
+ _cloneInto(to2) {
101318
+ const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
101319
+ to2 ||= new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds);
101320
+ to2.blockLen = blockLen;
101321
+ to2.state32.set(this.state32);
101322
+ to2.pos = this.pos;
101323
+ to2.posOut = this.posOut;
101324
+ to2.finished = this.finished;
101325
+ to2.rounds = rounds;
101326
+ to2.suffix = suffix;
101327
+ to2.outputLen = outputLen;
101328
+ to2.enableXOF = enableXOF;
101329
+ to2.canXOF = this.canXOF;
101330
+ to2.destroyed = this.destroyed;
101331
+ return to2;
101332
+ }
101333
+ };
101334
+ var genKeccak = (suffix, blockLen, outputLen, info2 = {}) => createHasher(() => new Keccak(blockLen, suffix, outputLen), info2);
101335
+ var sha3_512 = /* @__PURE__ */ genKeccak(
101336
+ 6,
101337
+ 72,
101338
+ 64,
101339
+ /* @__PURE__ */ oidNist(10)
101340
+ );
101341
+
101342
+ // ../../node_modules/.pnpm/bignumber.js@9.3.1/node_modules/bignumber.js/bignumber.mjs
101343
+ var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
101344
+ var mathceil = Math.ceil;
101345
+ var mathfloor2 = Math.floor;
101346
+ var bignumberError = "[BigNumber Error] ";
101347
+ var tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ";
101348
+ var BASE2 = 1e14;
101349
+ var LOG_BASE2 = 14;
101350
+ var MAX_SAFE_INTEGER2 = 9007199254740991;
101351
+ var POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13];
101352
+ var SQRT_BASE = 1e7;
101353
+ var MAX = 1e9;
101354
+ function clone2(configObject) {
101355
+ var div2, convertBase2, parseNumeric, P3 = BigNumber2.prototype = { constructor: BigNumber2, toString: null, valueOf: null }, ONE = new BigNumber2(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT = {
101356
+ prefix: "",
101357
+ groupSize: 3,
101358
+ secondaryGroupSize: 0,
101359
+ groupSeparator: ",",
101360
+ decimalSeparator: ".",
101361
+ fractionGroupSize: 0,
101362
+ fractionGroupSeparator: "\xA0",
101363
+ // non-breaking space
101364
+ suffix: ""
101365
+ }, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
101366
+ function BigNumber2(v2, b2) {
101367
+ var alphabet2, c2, caseChanged, e2, i2, isNum, len, str, x2 = this;
101368
+ if (!(x2 instanceof BigNumber2)) return new BigNumber2(v2, b2);
101369
+ if (b2 == null) {
101370
+ if (v2 && v2._isBigNumber === true) {
101371
+ x2.s = v2.s;
101372
+ if (!v2.c || v2.e > MAX_EXP) {
101373
+ x2.c = x2.e = null;
101374
+ } else if (v2.e < MIN_EXP) {
101375
+ x2.c = [x2.e = 0];
101376
+ } else {
101377
+ x2.e = v2.e;
101378
+ x2.c = v2.c.slice();
101379
+ }
101380
+ return;
101381
+ }
101382
+ if ((isNum = typeof v2 == "number") && v2 * 0 == 0) {
101383
+ x2.s = 1 / v2 < 0 ? (v2 = -v2, -1) : 1;
101384
+ if (v2 === ~~v2) {
101385
+ for (e2 = 0, i2 = v2; i2 >= 10; i2 /= 10, e2++) ;
101386
+ if (e2 > MAX_EXP) {
101387
+ x2.c = x2.e = null;
101388
+ } else {
101389
+ x2.e = e2;
101390
+ x2.c = [v2];
101391
+ }
101392
+ return;
101393
+ }
101394
+ str = String(v2);
101395
+ } else {
101396
+ if (!isNumeric.test(str = String(v2))) return parseNumeric(x2, str, isNum);
101397
+ x2.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;
101398
+ }
101399
+ if ((e2 = str.indexOf(".")) > -1) str = str.replace(".", "");
101400
+ if ((i2 = str.search(/e/i)) > 0) {
101401
+ if (e2 < 0) e2 = i2;
101402
+ e2 += +str.slice(i2 + 1);
101403
+ str = str.substring(0, i2);
101404
+ } else if (e2 < 0) {
101405
+ e2 = str.length;
101406
+ }
101407
+ } else {
101408
+ intCheck(b2, 2, ALPHABET.length, "Base");
101409
+ if (b2 == 10 && alphabetHasNormalDecimalDigits) {
101410
+ x2 = new BigNumber2(v2);
101411
+ return round2(x2, DECIMAL_PLACES + x2.e + 1, ROUNDING_MODE);
101412
+ }
101413
+ str = String(v2);
101414
+ if (isNum = typeof v2 == "number") {
101415
+ if (v2 * 0 != 0) return parseNumeric(x2, str, isNum, b2);
101416
+ x2.s = 1 / v2 < 0 ? (str = str.slice(1), -1) : 1;
101417
+ if (BigNumber2.DEBUG && str.replace(/^0\.0*|\./, "").length > 15) {
101418
+ throw Error(tooManyDigits + v2);
101419
+ }
101420
+ } else {
101421
+ x2.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
101422
+ }
101423
+ alphabet2 = ALPHABET.slice(0, b2);
101424
+ e2 = i2 = 0;
101425
+ for (len = str.length; i2 < len; i2++) {
101426
+ if (alphabet2.indexOf(c2 = str.charAt(i2)) < 0) {
101427
+ if (c2 == ".") {
101428
+ if (i2 > e2) {
101429
+ e2 = len;
101430
+ continue;
101431
+ }
101432
+ } else if (!caseChanged) {
101433
+ if (str == str.toUpperCase() && (str = str.toLowerCase()) || str == str.toLowerCase() && (str = str.toUpperCase())) {
101434
+ caseChanged = true;
101435
+ i2 = -1;
101436
+ e2 = 0;
101437
+ continue;
101438
+ }
101439
+ }
101440
+ return parseNumeric(x2, String(v2), isNum, b2);
101441
+ }
101442
+ }
101443
+ isNum = false;
101444
+ str = convertBase2(str, b2, 10, x2.s);
101445
+ if ((e2 = str.indexOf(".")) > -1) str = str.replace(".", "");
101446
+ else e2 = str.length;
101447
+ }
101448
+ for (i2 = 0; str.charCodeAt(i2) === 48; i2++) ;
101449
+ for (len = str.length; str.charCodeAt(--len) === 48; ) ;
101450
+ if (str = str.slice(i2, ++len)) {
101451
+ len -= i2;
101452
+ if (isNum && BigNumber2.DEBUG && len > 15 && (v2 > MAX_SAFE_INTEGER2 || v2 !== mathfloor2(v2))) {
101453
+ throw Error(tooManyDigits + x2.s * v2);
101454
+ }
101455
+ if ((e2 = e2 - i2 - 1) > MAX_EXP) {
101456
+ x2.c = x2.e = null;
101457
+ } else if (e2 < MIN_EXP) {
101458
+ x2.c = [x2.e = 0];
101459
+ } else {
101460
+ x2.e = e2;
101461
+ x2.c = [];
101462
+ i2 = (e2 + 1) % LOG_BASE2;
101463
+ if (e2 < 0) i2 += LOG_BASE2;
101464
+ if (i2 < len) {
101465
+ if (i2) x2.c.push(+str.slice(0, i2));
101466
+ for (len -= LOG_BASE2; i2 < len; ) {
101467
+ x2.c.push(+str.slice(i2, i2 += LOG_BASE2));
101468
+ }
101469
+ i2 = LOG_BASE2 - (str = str.slice(i2)).length;
101470
+ } else {
101471
+ i2 -= len;
101472
+ }
101473
+ for (; i2--; str += "0") ;
101474
+ x2.c.push(+str);
101475
+ }
101476
+ } else {
101477
+ x2.c = [x2.e = 0];
101478
+ }
101479
+ }
101480
+ BigNumber2.clone = clone2;
101481
+ BigNumber2.ROUND_UP = 0;
101482
+ BigNumber2.ROUND_DOWN = 1;
101483
+ BigNumber2.ROUND_CEIL = 2;
101484
+ BigNumber2.ROUND_FLOOR = 3;
101485
+ BigNumber2.ROUND_HALF_UP = 4;
101486
+ BigNumber2.ROUND_HALF_DOWN = 5;
101487
+ BigNumber2.ROUND_HALF_EVEN = 6;
101488
+ BigNumber2.ROUND_HALF_CEIL = 7;
101489
+ BigNumber2.ROUND_HALF_FLOOR = 8;
101490
+ BigNumber2.EUCLID = 9;
101491
+ BigNumber2.config = BigNumber2.set = function(obj) {
101492
+ var p2, v2;
101493
+ if (obj != null) {
101494
+ if (typeof obj == "object") {
101495
+ if (obj.hasOwnProperty(p2 = "DECIMAL_PLACES")) {
101496
+ v2 = obj[p2];
101497
+ intCheck(v2, 0, MAX, p2);
101498
+ DECIMAL_PLACES = v2;
101499
+ }
101500
+ if (obj.hasOwnProperty(p2 = "ROUNDING_MODE")) {
101501
+ v2 = obj[p2];
101502
+ intCheck(v2, 0, 8, p2);
101503
+ ROUNDING_MODE = v2;
101504
+ }
101505
+ if (obj.hasOwnProperty(p2 = "EXPONENTIAL_AT")) {
101506
+ v2 = obj[p2];
101507
+ if (v2 && v2.pop) {
101508
+ intCheck(v2[0], -MAX, 0, p2);
101509
+ intCheck(v2[1], 0, MAX, p2);
101510
+ TO_EXP_NEG = v2[0];
101511
+ TO_EXP_POS = v2[1];
101512
+ } else {
101513
+ intCheck(v2, -MAX, MAX, p2);
101514
+ TO_EXP_NEG = -(TO_EXP_POS = v2 < 0 ? -v2 : v2);
101515
+ }
101516
+ }
101517
+ if (obj.hasOwnProperty(p2 = "RANGE")) {
101518
+ v2 = obj[p2];
101519
+ if (v2 && v2.pop) {
101520
+ intCheck(v2[0], -MAX, -1, p2);
101521
+ intCheck(v2[1], 1, MAX, p2);
101522
+ MIN_EXP = v2[0];
101523
+ MAX_EXP = v2[1];
101524
+ } else {
101525
+ intCheck(v2, -MAX, MAX, p2);
101526
+ if (v2) {
101527
+ MIN_EXP = -(MAX_EXP = v2 < 0 ? -v2 : v2);
101528
+ } else {
101529
+ throw Error(bignumberError + p2 + " cannot be zero: " + v2);
101530
+ }
101531
+ }
101532
+ }
101533
+ if (obj.hasOwnProperty(p2 = "CRYPTO")) {
101534
+ v2 = obj[p2];
101535
+ if (v2 === !!v2) {
101536
+ if (v2) {
101537
+ if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
101538
+ CRYPTO = v2;
101539
+ } else {
101540
+ CRYPTO = !v2;
101541
+ throw Error(bignumberError + "crypto unavailable");
101542
+ }
101543
+ } else {
101544
+ CRYPTO = v2;
101545
+ }
101546
+ } else {
101547
+ throw Error(bignumberError + p2 + " not true or false: " + v2);
101548
+ }
101549
+ }
101550
+ if (obj.hasOwnProperty(p2 = "MODULO_MODE")) {
101551
+ v2 = obj[p2];
101552
+ intCheck(v2, 0, 9, p2);
101553
+ MODULO_MODE = v2;
101554
+ }
101555
+ if (obj.hasOwnProperty(p2 = "POW_PRECISION")) {
101556
+ v2 = obj[p2];
101557
+ intCheck(v2, 0, MAX, p2);
101558
+ POW_PRECISION = v2;
101559
+ }
101560
+ if (obj.hasOwnProperty(p2 = "FORMAT")) {
101561
+ v2 = obj[p2];
101562
+ if (typeof v2 == "object") FORMAT = v2;
101563
+ else throw Error(bignumberError + p2 + " not an object: " + v2);
101564
+ }
101565
+ if (obj.hasOwnProperty(p2 = "ALPHABET")) {
101566
+ v2 = obj[p2];
101567
+ if (typeof v2 == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(v2)) {
101568
+ alphabetHasNormalDecimalDigits = v2.slice(0, 10) == "0123456789";
101569
+ ALPHABET = v2;
101570
+ } else {
101571
+ throw Error(bignumberError + p2 + " invalid: " + v2);
101572
+ }
101573
+ }
101574
+ } else {
101575
+ throw Error(bignumberError + "Object expected: " + obj);
101576
+ }
101577
+ }
101578
+ return {
101579
+ DECIMAL_PLACES,
101580
+ ROUNDING_MODE,
101581
+ EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],
101582
+ RANGE: [MIN_EXP, MAX_EXP],
101583
+ CRYPTO,
101584
+ MODULO_MODE,
101585
+ POW_PRECISION,
101586
+ FORMAT,
101587
+ ALPHABET
101588
+ };
101589
+ };
101590
+ BigNumber2.isBigNumber = function(v2) {
101591
+ if (!v2 || v2._isBigNumber !== true) return false;
101592
+ if (!BigNumber2.DEBUG) return true;
101593
+ var i2, n2, c2 = v2.c, e2 = v2.e, s2 = v2.s;
101594
+ out: if ({}.toString.call(c2) == "[object Array]") {
101595
+ if ((s2 === 1 || s2 === -1) && e2 >= -MAX && e2 <= MAX && e2 === mathfloor2(e2)) {
101596
+ if (c2[0] === 0) {
101597
+ if (e2 === 0 && c2.length === 1) return true;
101598
+ break out;
101599
+ }
101600
+ i2 = (e2 + 1) % LOG_BASE2;
101601
+ if (i2 < 1) i2 += LOG_BASE2;
101602
+ if (String(c2[0]).length == i2) {
101603
+ for (i2 = 0; i2 < c2.length; i2++) {
101604
+ n2 = c2[i2];
101605
+ if (n2 < 0 || n2 >= BASE2 || n2 !== mathfloor2(n2)) break out;
101606
+ }
101607
+ if (n2 !== 0) return true;
101608
+ }
101609
+ }
101610
+ } else if (c2 === null && e2 === null && (s2 === null || s2 === 1 || s2 === -1)) {
101611
+ return true;
101612
+ }
101613
+ throw Error(bignumberError + "Invalid BigNumber: " + v2);
101614
+ };
101615
+ BigNumber2.maximum = BigNumber2.max = function() {
101616
+ return maxOrMin2(arguments, -1);
101617
+ };
101618
+ BigNumber2.minimum = BigNumber2.min = function() {
101619
+ return maxOrMin2(arguments, 1);
101620
+ };
101621
+ BigNumber2.random = function() {
101622
+ var pow2_53 = 9007199254740992;
101623
+ var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() {
101624
+ return mathfloor2(Math.random() * pow2_53);
101625
+ } : function() {
101626
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
101627
+ };
101628
+ return function(dp) {
101629
+ var a2, b2, e2, k2, v2, i2 = 0, c2 = [], rand = new BigNumber2(ONE);
101630
+ if (dp == null) dp = DECIMAL_PLACES;
101631
+ else intCheck(dp, 0, MAX);
101632
+ k2 = mathceil(dp / LOG_BASE2);
101633
+ if (CRYPTO) {
101634
+ if (crypto.getRandomValues) {
101635
+ a2 = crypto.getRandomValues(new Uint32Array(k2 *= 2));
101636
+ for (; i2 < k2; ) {
101637
+ v2 = a2[i2] * 131072 + (a2[i2 + 1] >>> 11);
101638
+ if (v2 >= 9e15) {
101639
+ b2 = crypto.getRandomValues(new Uint32Array(2));
101640
+ a2[i2] = b2[0];
101641
+ a2[i2 + 1] = b2[1];
101642
+ } else {
101643
+ c2.push(v2 % 1e14);
101644
+ i2 += 2;
101645
+ }
101646
+ }
101647
+ i2 = k2 / 2;
101648
+ } else if (crypto.randomBytes) {
101649
+ a2 = crypto.randomBytes(k2 *= 7);
101650
+ for (; i2 < k2; ) {
101651
+ v2 = (a2[i2] & 31) * 281474976710656 + a2[i2 + 1] * 1099511627776 + a2[i2 + 2] * 4294967296 + a2[i2 + 3] * 16777216 + (a2[i2 + 4] << 16) + (a2[i2 + 5] << 8) + a2[i2 + 6];
101652
+ if (v2 >= 9e15) {
101653
+ crypto.randomBytes(7).copy(a2, i2);
101654
+ } else {
101655
+ c2.push(v2 % 1e14);
101656
+ i2 += 7;
101657
+ }
101658
+ }
101659
+ i2 = k2 / 7;
101660
+ } else {
101661
+ CRYPTO = false;
101662
+ throw Error(bignumberError + "crypto unavailable");
101663
+ }
101664
+ }
101665
+ if (!CRYPTO) {
101666
+ for (; i2 < k2; ) {
101667
+ v2 = random53bitInt();
101668
+ if (v2 < 9e15) c2[i2++] = v2 % 1e14;
101669
+ }
101670
+ }
101671
+ k2 = c2[--i2];
101672
+ dp %= LOG_BASE2;
101673
+ if (k2 && dp) {
101674
+ v2 = POWS_TEN[LOG_BASE2 - dp];
101675
+ c2[i2] = mathfloor2(k2 / v2) * v2;
101676
+ }
101677
+ for (; c2[i2] === 0; c2.pop(), i2--) ;
101678
+ if (i2 < 0) {
101679
+ c2 = [e2 = 0];
101680
+ } else {
101681
+ for (e2 = -1; c2[0] === 0; c2.splice(0, 1), e2 -= LOG_BASE2) ;
101682
+ for (i2 = 1, v2 = c2[0]; v2 >= 10; v2 /= 10, i2++) ;
101683
+ if (i2 < LOG_BASE2) e2 -= LOG_BASE2 - i2;
101684
+ }
101685
+ rand.e = e2;
101686
+ rand.c = c2;
101687
+ return rand;
101688
+ };
101689
+ }();
101690
+ BigNumber2.sum = function() {
101691
+ var i2 = 1, args = arguments, sum2 = new BigNumber2(args[0]);
101692
+ for (; i2 < args.length; ) sum2 = sum2.plus(args[i2++]);
101693
+ return sum2;
101694
+ };
101695
+ convertBase2 = /* @__PURE__ */ function() {
101696
+ var decimal = "0123456789";
101697
+ function toBaseOut(str, baseIn, baseOut, alphabet2) {
101698
+ var j2, arr = [0], arrL, i2 = 0, len = str.length;
101699
+ for (; i2 < len; ) {
101700
+ for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) ;
101701
+ arr[0] += alphabet2.indexOf(str.charAt(i2++));
101702
+ for (j2 = 0; j2 < arr.length; j2++) {
101703
+ if (arr[j2] > baseOut - 1) {
101704
+ if (arr[j2 + 1] == null) arr[j2 + 1] = 0;
101705
+ arr[j2 + 1] += arr[j2] / baseOut | 0;
101706
+ arr[j2] %= baseOut;
101707
+ }
101708
+ }
101709
+ }
101710
+ return arr.reverse();
101711
+ }
101712
+ return function(str, baseIn, baseOut, sign2, callerIsToString) {
101713
+ var alphabet2, d2, e2, k2, r2, x2, xc, y2, i2 = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
101714
+ if (i2 >= 0) {
101715
+ k2 = POW_PRECISION;
101716
+ POW_PRECISION = 0;
101717
+ str = str.replace(".", "");
101718
+ y2 = new BigNumber2(baseIn);
101719
+ x2 = y2.pow(str.length - i2);
101720
+ POW_PRECISION = k2;
101721
+ y2.c = toBaseOut(
101722
+ toFixedPoint(coeffToString(x2.c), x2.e, "0"),
101723
+ 10,
101724
+ baseOut,
101725
+ decimal
101726
+ );
101727
+ y2.e = y2.c.length;
101728
+ }
101729
+ xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet2 = ALPHABET, decimal) : (alphabet2 = decimal, ALPHABET));
101730
+ e2 = k2 = xc.length;
101731
+ for (; xc[--k2] == 0; xc.pop()) ;
101732
+ if (!xc[0]) return alphabet2.charAt(0);
101733
+ if (i2 < 0) {
101734
+ --e2;
101735
+ } else {
101736
+ x2.c = xc;
101737
+ x2.e = e2;
101738
+ x2.s = sign2;
101739
+ x2 = div2(x2, y2, dp, rm, baseOut);
101740
+ xc = x2.c;
101741
+ r2 = x2.r;
101742
+ e2 = x2.e;
101743
+ }
101744
+ d2 = e2 + dp + 1;
101745
+ i2 = xc[d2];
101746
+ k2 = baseOut / 2;
101747
+ r2 = r2 || d2 < 0 || xc[d2 + 1] != null;
101748
+ r2 = rm < 4 ? (i2 != null || r2) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : i2 > k2 || i2 == k2 && (rm == 4 || r2 || rm == 6 && xc[d2 - 1] & 1 || rm == (x2.s < 0 ? 8 : 7));
101749
+ if (d2 < 1 || !xc[0]) {
101750
+ str = r2 ? toFixedPoint(alphabet2.charAt(1), -dp, alphabet2.charAt(0)) : alphabet2.charAt(0);
101751
+ } else {
101752
+ xc.length = d2;
101753
+ if (r2) {
101754
+ for (--baseOut; ++xc[--d2] > baseOut; ) {
101755
+ xc[d2] = 0;
101756
+ if (!d2) {
101757
+ ++e2;
101758
+ xc = [1].concat(xc);
101759
+ }
101760
+ }
101761
+ }
101762
+ for (k2 = xc.length; !xc[--k2]; ) ;
101763
+ for (i2 = 0, str = ""; i2 <= k2; str += alphabet2.charAt(xc[i2++])) ;
101764
+ str = toFixedPoint(str, e2, alphabet2.charAt(0));
101765
+ }
101766
+ return str;
101767
+ };
101768
+ }();
101769
+ div2 = /* @__PURE__ */ function() {
101770
+ function multiply(x2, k2, base) {
101771
+ var m2, temp, xlo, xhi, carry = 0, i2 = x2.length, klo = k2 % SQRT_BASE, khi = k2 / SQRT_BASE | 0;
101772
+ for (x2 = x2.slice(); i2--; ) {
101773
+ xlo = x2[i2] % SQRT_BASE;
101774
+ xhi = x2[i2] / SQRT_BASE | 0;
101775
+ m2 = khi * xlo + xhi * klo;
101776
+ temp = klo * xlo + m2 % SQRT_BASE * SQRT_BASE + carry;
101777
+ carry = (temp / base | 0) + (m2 / SQRT_BASE | 0) + khi * xhi;
101778
+ x2[i2] = temp % base;
101779
+ }
101780
+ if (carry) x2 = [carry].concat(x2);
101781
+ return x2;
101782
+ }
101783
+ function compare2(a2, b2, aL, bL) {
101784
+ var i2, cmp;
101785
+ if (aL != bL) {
101786
+ cmp = aL > bL ? 1 : -1;
101787
+ } else {
101788
+ for (i2 = cmp = 0; i2 < aL; i2++) {
101789
+ if (a2[i2] != b2[i2]) {
101790
+ cmp = a2[i2] > b2[i2] ? 1 : -1;
101791
+ break;
101792
+ }
101793
+ }
101794
+ }
101795
+ return cmp;
101796
+ }
101797
+ function subtract(a2, b2, aL, base) {
101798
+ var i2 = 0;
101799
+ for (; aL--; ) {
101800
+ a2[aL] -= i2;
101801
+ i2 = a2[aL] < b2[aL] ? 1 : 0;
101802
+ a2[aL] = i2 * base + a2[aL] - b2[aL];
101803
+ }
101804
+ for (; !a2[0] && a2.length > 1; a2.splice(0, 1)) ;
101805
+ }
101806
+ return function(x2, y2, dp, rm, base) {
101807
+ var cmp, e2, i2, more, n2, prod, prodL, q2, qc, rem, remL, rem0, xi2, xL, yc0, yL, yz, s2 = x2.s == y2.s ? 1 : -1, xc = x2.c, yc = y2.c;
101808
+ if (!xc || !xc[0] || !yc || !yc[0]) {
101809
+ return new BigNumber2(
101810
+ // Return NaN if either NaN, or both Infinity or 0.
101811
+ !x2.s || !y2.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : (
101812
+ // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
101813
+ xc && xc[0] == 0 || !yc ? s2 * 0 : s2 / 0
101814
+ )
101815
+ );
101816
+ }
101817
+ q2 = new BigNumber2(s2);
101818
+ qc = q2.c = [];
101819
+ e2 = x2.e - y2.e;
101820
+ s2 = dp + e2 + 1;
101821
+ if (!base) {
101822
+ base = BASE2;
101823
+ e2 = bitFloor(x2.e / LOG_BASE2) - bitFloor(y2.e / LOG_BASE2);
101824
+ s2 = s2 / LOG_BASE2 | 0;
101825
+ }
101826
+ for (i2 = 0; yc[i2] == (xc[i2] || 0); i2++) ;
101827
+ if (yc[i2] > (xc[i2] || 0)) e2--;
101828
+ if (s2 < 0) {
101829
+ qc.push(1);
101830
+ more = true;
101831
+ } else {
101832
+ xL = xc.length;
101833
+ yL = yc.length;
101834
+ i2 = 0;
101835
+ s2 += 2;
101836
+ n2 = mathfloor2(base / (yc[0] + 1));
101837
+ if (n2 > 1) {
101838
+ yc = multiply(yc, n2, base);
101839
+ xc = multiply(xc, n2, base);
101840
+ yL = yc.length;
101841
+ xL = xc.length;
101842
+ }
101843
+ xi2 = yL;
101844
+ rem = xc.slice(0, yL);
101845
+ remL = rem.length;
101846
+ for (; remL < yL; rem[remL++] = 0) ;
101847
+ yz = yc.slice();
101848
+ yz = [0].concat(yz);
101849
+ yc0 = yc[0];
101850
+ if (yc[1] >= base / 2) yc0++;
101851
+ do {
101852
+ n2 = 0;
101853
+ cmp = compare2(yc, rem, yL, remL);
101854
+ if (cmp < 0) {
101855
+ rem0 = rem[0];
101856
+ if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
101857
+ n2 = mathfloor2(rem0 / yc0);
101858
+ if (n2 > 1) {
101859
+ if (n2 >= base) n2 = base - 1;
101860
+ prod = multiply(yc, n2, base);
101861
+ prodL = prod.length;
101862
+ remL = rem.length;
101863
+ while (compare2(prod, rem, prodL, remL) == 1) {
101864
+ n2--;
101865
+ subtract(prod, yL < prodL ? yz : yc, prodL, base);
101866
+ prodL = prod.length;
101867
+ cmp = 1;
101868
+ }
101869
+ } else {
101870
+ if (n2 == 0) {
101871
+ cmp = n2 = 1;
101872
+ }
101873
+ prod = yc.slice();
101874
+ prodL = prod.length;
101875
+ }
101876
+ if (prodL < remL) prod = [0].concat(prod);
101877
+ subtract(rem, prod, remL, base);
101878
+ remL = rem.length;
101879
+ if (cmp == -1) {
101880
+ while (compare2(yc, rem, yL, remL) < 1) {
101881
+ n2++;
101882
+ subtract(rem, yL < remL ? yz : yc, remL, base);
101883
+ remL = rem.length;
101884
+ }
101885
+ }
101886
+ } else if (cmp === 0) {
101887
+ n2++;
101888
+ rem = [0];
101889
+ }
101890
+ qc[i2++] = n2;
101891
+ if (rem[0]) {
101892
+ rem[remL++] = xc[xi2] || 0;
101893
+ } else {
101894
+ rem = [xc[xi2]];
101895
+ remL = 1;
101896
+ }
101897
+ } while ((xi2++ < xL || rem[0] != null) && s2--);
101898
+ more = rem[0] != null;
101899
+ if (!qc[0]) qc.splice(0, 1);
101900
+ }
101901
+ if (base == BASE2) {
101902
+ for (i2 = 1, s2 = qc[0]; s2 >= 10; s2 /= 10, i2++) ;
101903
+ round2(q2, dp + (q2.e = i2 + e2 * LOG_BASE2 - 1) + 1, rm, more);
101904
+ } else {
101905
+ q2.e = e2;
101906
+ q2.r = +more;
101907
+ }
101908
+ return q2;
101909
+ };
101910
+ }();
101911
+ function format(n2, i2, rm, id) {
101912
+ var c0, e2, ne2, len, str;
101913
+ if (rm == null) rm = ROUNDING_MODE;
101914
+ else intCheck(rm, 0, 8);
101915
+ if (!n2.c) return n2.toString();
101916
+ c0 = n2.c[0];
101917
+ ne2 = n2.e;
101918
+ if (i2 == null) {
101919
+ str = coeffToString(n2.c);
101920
+ str = id == 1 || id == 2 && (ne2 <= TO_EXP_NEG || ne2 >= TO_EXP_POS) ? toExponential(str, ne2) : toFixedPoint(str, ne2, "0");
101921
+ } else {
101922
+ n2 = round2(new BigNumber2(n2), i2, rm);
101923
+ e2 = n2.e;
101924
+ str = coeffToString(n2.c);
101925
+ len = str.length;
101926
+ if (id == 1 || id == 2 && (i2 <= e2 || e2 <= TO_EXP_NEG)) {
101927
+ for (; len < i2; str += "0", len++) ;
101928
+ str = toExponential(str, e2);
101929
+ } else {
101930
+ i2 -= ne2 + (id === 2 && e2 > ne2);
101931
+ str = toFixedPoint(str, e2, "0");
101932
+ if (e2 + 1 > len) {
101933
+ if (--i2 > 0) for (str += "."; i2--; str += "0") ;
101934
+ } else {
101935
+ i2 += e2 - len;
101936
+ if (i2 > 0) {
101937
+ if (e2 + 1 == len) str += ".";
101938
+ for (; i2--; str += "0") ;
101939
+ }
101940
+ }
101941
+ }
101942
+ }
101943
+ return n2.s < 0 && c0 ? "-" + str : str;
101944
+ }
101945
+ function maxOrMin2(args, n2) {
101946
+ var k2, y2, i2 = 1, x2 = new BigNumber2(args[0]);
101947
+ for (; i2 < args.length; i2++) {
101948
+ y2 = new BigNumber2(args[i2]);
101949
+ if (!y2.s || (k2 = compare(x2, y2)) === n2 || k2 === 0 && x2.s === n2) {
101950
+ x2 = y2;
101951
+ }
101952
+ }
101953
+ return x2;
101954
+ }
101955
+ function normalise(n2, c2, e2) {
101956
+ var i2 = 1, j2 = c2.length;
101957
+ for (; !c2[--j2]; c2.pop()) ;
101958
+ for (j2 = c2[0]; j2 >= 10; j2 /= 10, i2++) ;
101959
+ if ((e2 = i2 + e2 * LOG_BASE2 - 1) > MAX_EXP) {
101960
+ n2.c = n2.e = null;
101961
+ } else if (e2 < MIN_EXP) {
101962
+ n2.c = [n2.e = 0];
101963
+ } else {
101964
+ n2.e = e2;
101965
+ n2.c = c2;
101966
+ }
101967
+ return n2;
101968
+ }
101969
+ parseNumeric = /* @__PURE__ */ function() {
101970
+ var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
101971
+ return function(x2, str, isNum, b2) {
101972
+ var base, s2 = isNum ? str : str.replace(whitespaceOrPlus, "");
101973
+ if (isInfinityOrNaN.test(s2)) {
101974
+ x2.s = isNaN(s2) ? null : s2 < 0 ? -1 : 1;
101975
+ } else {
101976
+ if (!isNum) {
101977
+ s2 = s2.replace(basePrefix, function(m2, p1, p2) {
101978
+ base = (p2 = p2.toLowerCase()) == "x" ? 16 : p2 == "b" ? 2 : 8;
101979
+ return !b2 || b2 == base ? p1 : m2;
101980
+ });
101981
+ if (b2) {
101982
+ base = b2;
101983
+ s2 = s2.replace(dotAfter, "$1").replace(dotBefore, "0.$1");
101984
+ }
101985
+ if (str != s2) return new BigNumber2(s2, base);
101986
+ }
101987
+ if (BigNumber2.DEBUG) {
101988
+ throw Error(bignumberError + "Not a" + (b2 ? " base " + b2 : "") + " number: " + str);
101989
+ }
101990
+ x2.s = null;
101991
+ }
101992
+ x2.c = x2.e = null;
101993
+ };
101994
+ }();
101995
+ function round2(x2, sd, rm, r2) {
101996
+ var d2, i2, j2, k2, n2, ni2, rd, xc = x2.c, pows10 = POWS_TEN;
101997
+ if (xc) {
101998
+ out: {
101999
+ for (d2 = 1, k2 = xc[0]; k2 >= 10; k2 /= 10, d2++) ;
102000
+ i2 = sd - d2;
102001
+ if (i2 < 0) {
102002
+ i2 += LOG_BASE2;
102003
+ j2 = sd;
102004
+ n2 = xc[ni2 = 0];
102005
+ rd = mathfloor2(n2 / pows10[d2 - j2 - 1] % 10);
102006
+ } else {
102007
+ ni2 = mathceil((i2 + 1) / LOG_BASE2);
102008
+ if (ni2 >= xc.length) {
102009
+ if (r2) {
102010
+ for (; xc.length <= ni2; xc.push(0)) ;
102011
+ n2 = rd = 0;
102012
+ d2 = 1;
102013
+ i2 %= LOG_BASE2;
102014
+ j2 = i2 - LOG_BASE2 + 1;
102015
+ } else {
102016
+ break out;
102017
+ }
102018
+ } else {
102019
+ n2 = k2 = xc[ni2];
102020
+ for (d2 = 1; k2 >= 10; k2 /= 10, d2++) ;
102021
+ i2 %= LOG_BASE2;
102022
+ j2 = i2 - LOG_BASE2 + d2;
102023
+ rd = j2 < 0 ? 0 : mathfloor2(n2 / pows10[d2 - j2 - 1] % 10);
102024
+ }
102025
+ }
102026
+ r2 = r2 || sd < 0 || // Are there any non-zero digits after the rounding digit?
102027
+ // The expression n % pows10[d - j - 1] returns all digits of n to the right
102028
+ // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
102029
+ xc[ni2 + 1] != null || (j2 < 0 ? n2 : n2 % pows10[d2 - j2 - 1]);
102030
+ r2 = rm < 4 ? (rd || r2) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r2 || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
102031
+ (i2 > 0 ? j2 > 0 ? n2 / pows10[d2 - j2] : 0 : xc[ni2 - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
102032
+ if (sd < 1 || !xc[0]) {
102033
+ xc.length = 0;
102034
+ if (r2) {
102035
+ sd -= x2.e + 1;
102036
+ xc[0] = pows10[(LOG_BASE2 - sd % LOG_BASE2) % LOG_BASE2];
102037
+ x2.e = -sd || 0;
102038
+ } else {
102039
+ xc[0] = x2.e = 0;
102040
+ }
102041
+ return x2;
102042
+ }
102043
+ if (i2 == 0) {
102044
+ xc.length = ni2;
102045
+ k2 = 1;
102046
+ ni2--;
102047
+ } else {
102048
+ xc.length = ni2 + 1;
102049
+ k2 = pows10[LOG_BASE2 - i2];
102050
+ xc[ni2] = j2 > 0 ? mathfloor2(n2 / pows10[d2 - j2] % pows10[j2]) * k2 : 0;
102051
+ }
102052
+ if (r2) {
102053
+ for (; ; ) {
102054
+ if (ni2 == 0) {
102055
+ for (i2 = 1, j2 = xc[0]; j2 >= 10; j2 /= 10, i2++) ;
102056
+ j2 = xc[0] += k2;
102057
+ for (k2 = 1; j2 >= 10; j2 /= 10, k2++) ;
102058
+ if (i2 != k2) {
102059
+ x2.e++;
102060
+ if (xc[0] == BASE2) xc[0] = 1;
102061
+ }
102062
+ break;
102063
+ } else {
102064
+ xc[ni2] += k2;
102065
+ if (xc[ni2] != BASE2) break;
102066
+ xc[ni2--] = 0;
102067
+ k2 = 1;
102068
+ }
102069
+ }
102070
+ }
102071
+ for (i2 = xc.length; xc[--i2] === 0; xc.pop()) ;
102072
+ }
102073
+ if (x2.e > MAX_EXP) {
102074
+ x2.c = x2.e = null;
102075
+ } else if (x2.e < MIN_EXP) {
102076
+ x2.c = [x2.e = 0];
102077
+ }
102078
+ }
102079
+ return x2;
102080
+ }
102081
+ function valueOf(n2) {
102082
+ var str, e2 = n2.e;
102083
+ if (e2 === null) return n2.toString();
102084
+ str = coeffToString(n2.c);
102085
+ str = e2 <= TO_EXP_NEG || e2 >= TO_EXP_POS ? toExponential(str, e2) : toFixedPoint(str, e2, "0");
102086
+ return n2.s < 0 ? "-" + str : str;
102087
+ }
102088
+ P3.absoluteValue = P3.abs = function() {
102089
+ var x2 = new BigNumber2(this);
102090
+ if (x2.s < 0) x2.s = 1;
102091
+ return x2;
102092
+ };
102093
+ P3.comparedTo = function(y2, b2) {
102094
+ return compare(this, new BigNumber2(y2, b2));
102095
+ };
102096
+ P3.decimalPlaces = P3.dp = function(dp, rm) {
102097
+ var c2, n2, v2, x2 = this;
102098
+ if (dp != null) {
102099
+ intCheck(dp, 0, MAX);
102100
+ if (rm == null) rm = ROUNDING_MODE;
102101
+ else intCheck(rm, 0, 8);
102102
+ return round2(new BigNumber2(x2), dp + x2.e + 1, rm);
102103
+ }
102104
+ if (!(c2 = x2.c)) return null;
102105
+ n2 = ((v2 = c2.length - 1) - bitFloor(this.e / LOG_BASE2)) * LOG_BASE2;
102106
+ if (v2 = c2[v2]) for (; v2 % 10 == 0; v2 /= 10, n2--) ;
102107
+ if (n2 < 0) n2 = 0;
102108
+ return n2;
102109
+ };
102110
+ P3.dividedBy = P3.div = function(y2, b2) {
102111
+ return div2(this, new BigNumber2(y2, b2), DECIMAL_PLACES, ROUNDING_MODE);
102112
+ };
102113
+ P3.dividedToIntegerBy = P3.idiv = function(y2, b2) {
102114
+ return div2(this, new BigNumber2(y2, b2), 0, 1);
102115
+ };
102116
+ P3.exponentiatedBy = P3.pow = function(n2, m2) {
102117
+ var half, isModExp, i2, k2, more, nIsBig, nIsNeg, nIsOdd, y2, x2 = this;
102118
+ n2 = new BigNumber2(n2);
102119
+ if (n2.c && !n2.isInteger()) {
102120
+ throw Error(bignumberError + "Exponent not an integer: " + valueOf(n2));
102121
+ }
102122
+ if (m2 != null) m2 = new BigNumber2(m2);
102123
+ nIsBig = n2.e > 14;
102124
+ if (!x2.c || !x2.c[0] || x2.c[0] == 1 && !x2.e && x2.c.length == 1 || !n2.c || !n2.c[0]) {
102125
+ y2 = new BigNumber2(Math.pow(+valueOf(x2), nIsBig ? n2.s * (2 - isOdd2(n2)) : +valueOf(n2)));
102126
+ return m2 ? y2.mod(m2) : y2;
102127
+ }
102128
+ nIsNeg = n2.s < 0;
102129
+ if (m2) {
102130
+ if (m2.c ? !m2.c[0] : !m2.s) return new BigNumber2(NaN);
102131
+ isModExp = !nIsNeg && x2.isInteger() && m2.isInteger();
102132
+ if (isModExp) x2 = x2.mod(m2);
102133
+ } else if (n2.e > 9 && (x2.e > 0 || x2.e < -1 || (x2.e == 0 ? x2.c[0] > 1 || nIsBig && x2.c[1] >= 24e7 : x2.c[0] < 8e13 || nIsBig && x2.c[0] <= 9999975e7))) {
102134
+ k2 = x2.s < 0 && isOdd2(n2) ? -0 : 0;
102135
+ if (x2.e > -1) k2 = 1 / k2;
102136
+ return new BigNumber2(nIsNeg ? 1 / k2 : k2);
102137
+ } else if (POW_PRECISION) {
102138
+ k2 = mathceil(POW_PRECISION / LOG_BASE2 + 2);
102139
+ }
102140
+ if (nIsBig) {
102141
+ half = new BigNumber2(0.5);
102142
+ if (nIsNeg) n2.s = 1;
102143
+ nIsOdd = isOdd2(n2);
102144
+ } else {
102145
+ i2 = Math.abs(+valueOf(n2));
102146
+ nIsOdd = i2 % 2;
102147
+ }
102148
+ y2 = new BigNumber2(ONE);
102149
+ for (; ; ) {
102150
+ if (nIsOdd) {
102151
+ y2 = y2.times(x2);
102152
+ if (!y2.c) break;
102153
+ if (k2) {
102154
+ if (y2.c.length > k2) y2.c.length = k2;
102155
+ } else if (isModExp) {
102156
+ y2 = y2.mod(m2);
102157
+ }
102158
+ }
102159
+ if (i2) {
102160
+ i2 = mathfloor2(i2 / 2);
102161
+ if (i2 === 0) break;
102162
+ nIsOdd = i2 % 2;
102163
+ } else {
102164
+ n2 = n2.times(half);
102165
+ round2(n2, n2.e + 1, 1);
102166
+ if (n2.e > 14) {
102167
+ nIsOdd = isOdd2(n2);
102168
+ } else {
102169
+ i2 = +valueOf(n2);
102170
+ if (i2 === 0) break;
102171
+ nIsOdd = i2 % 2;
102172
+ }
102173
+ }
102174
+ x2 = x2.times(x2);
102175
+ if (k2) {
102176
+ if (x2.c && x2.c.length > k2) x2.c.length = k2;
102177
+ } else if (isModExp) {
102178
+ x2 = x2.mod(m2);
102179
+ }
102180
+ }
102181
+ if (isModExp) return y2;
102182
+ if (nIsNeg) y2 = ONE.div(y2);
102183
+ return m2 ? y2.mod(m2) : k2 ? round2(y2, POW_PRECISION, ROUNDING_MODE, more) : y2;
102184
+ };
102185
+ P3.integerValue = function(rm) {
102186
+ var n2 = new BigNumber2(this);
102187
+ if (rm == null) rm = ROUNDING_MODE;
102188
+ else intCheck(rm, 0, 8);
102189
+ return round2(n2, n2.e + 1, rm);
102190
+ };
102191
+ P3.isEqualTo = P3.eq = function(y2, b2) {
102192
+ return compare(this, new BigNumber2(y2, b2)) === 0;
102193
+ };
102194
+ P3.isFinite = function() {
102195
+ return !!this.c;
102196
+ };
102197
+ P3.isGreaterThan = P3.gt = function(y2, b2) {
102198
+ return compare(this, new BigNumber2(y2, b2)) > 0;
102199
+ };
102200
+ P3.isGreaterThanOrEqualTo = P3.gte = function(y2, b2) {
102201
+ return (b2 = compare(this, new BigNumber2(y2, b2))) === 1 || b2 === 0;
102202
+ };
102203
+ P3.isInteger = function() {
102204
+ return !!this.c && bitFloor(this.e / LOG_BASE2) > this.c.length - 2;
102205
+ };
102206
+ P3.isLessThan = P3.lt = function(y2, b2) {
102207
+ return compare(this, new BigNumber2(y2, b2)) < 0;
102208
+ };
102209
+ P3.isLessThanOrEqualTo = P3.lte = function(y2, b2) {
102210
+ return (b2 = compare(this, new BigNumber2(y2, b2))) === -1 || b2 === 0;
102211
+ };
102212
+ P3.isNaN = function() {
102213
+ return !this.s;
102214
+ };
102215
+ P3.isNegative = function() {
102216
+ return this.s < 0;
102217
+ };
102218
+ P3.isPositive = function() {
102219
+ return this.s > 0;
102220
+ };
102221
+ P3.isZero = function() {
102222
+ return !!this.c && this.c[0] == 0;
102223
+ };
102224
+ P3.minus = function(y2, b2) {
102225
+ var i2, j2, t2, xLTy, x2 = this, a2 = x2.s;
102226
+ y2 = new BigNumber2(y2, b2);
102227
+ b2 = y2.s;
102228
+ if (!a2 || !b2) return new BigNumber2(NaN);
102229
+ if (a2 != b2) {
102230
+ y2.s = -b2;
102231
+ return x2.plus(y2);
102232
+ }
102233
+ var xe2 = x2.e / LOG_BASE2, ye2 = y2.e / LOG_BASE2, xc = x2.c, yc = y2.c;
102234
+ if (!xe2 || !ye2) {
102235
+ if (!xc || !yc) return xc ? (y2.s = -b2, y2) : new BigNumber2(yc ? x2 : NaN);
102236
+ if (!xc[0] || !yc[0]) {
102237
+ return yc[0] ? (y2.s = -b2, y2) : new BigNumber2(xc[0] ? x2 : (
102238
+ // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
102239
+ ROUNDING_MODE == 3 ? -0 : 0
102240
+ ));
102241
+ }
102242
+ }
102243
+ xe2 = bitFloor(xe2);
102244
+ ye2 = bitFloor(ye2);
102245
+ xc = xc.slice();
102246
+ if (a2 = xe2 - ye2) {
102247
+ if (xLTy = a2 < 0) {
102248
+ a2 = -a2;
102249
+ t2 = xc;
102250
+ } else {
102251
+ ye2 = xe2;
102252
+ t2 = yc;
102253
+ }
102254
+ t2.reverse();
102255
+ for (b2 = a2; b2--; t2.push(0)) ;
102256
+ t2.reverse();
102257
+ } else {
102258
+ j2 = (xLTy = (a2 = xc.length) < (b2 = yc.length)) ? a2 : b2;
102259
+ for (a2 = b2 = 0; b2 < j2; b2++) {
102260
+ if (xc[b2] != yc[b2]) {
102261
+ xLTy = xc[b2] < yc[b2];
102262
+ break;
102263
+ }
102264
+ }
102265
+ }
102266
+ if (xLTy) {
102267
+ t2 = xc;
102268
+ xc = yc;
102269
+ yc = t2;
102270
+ y2.s = -y2.s;
102271
+ }
102272
+ b2 = (j2 = yc.length) - (i2 = xc.length);
102273
+ if (b2 > 0) for (; b2--; xc[i2++] = 0) ;
102274
+ b2 = BASE2 - 1;
102275
+ for (; j2 > a2; ) {
102276
+ if (xc[--j2] < yc[j2]) {
102277
+ for (i2 = j2; i2 && !xc[--i2]; xc[i2] = b2) ;
102278
+ --xc[i2];
102279
+ xc[j2] += BASE2;
102280
+ }
102281
+ xc[j2] -= yc[j2];
102282
+ }
102283
+ for (; xc[0] == 0; xc.splice(0, 1), --ye2) ;
102284
+ if (!xc[0]) {
102285
+ y2.s = ROUNDING_MODE == 3 ? -1 : 1;
102286
+ y2.c = [y2.e = 0];
102287
+ return y2;
102288
+ }
102289
+ return normalise(y2, xc, ye2);
102290
+ };
102291
+ P3.modulo = P3.mod = function(y2, b2) {
102292
+ var q2, s2, x2 = this;
102293
+ y2 = new BigNumber2(y2, b2);
102294
+ if (!x2.c || !y2.s || y2.c && !y2.c[0]) {
102295
+ return new BigNumber2(NaN);
102296
+ } else if (!y2.c || x2.c && !x2.c[0]) {
102297
+ return new BigNumber2(x2);
102298
+ }
102299
+ if (MODULO_MODE == 9) {
102300
+ s2 = y2.s;
102301
+ y2.s = 1;
102302
+ q2 = div2(x2, y2, 0, 3);
102303
+ y2.s = s2;
102304
+ q2.s *= s2;
102305
+ } else {
102306
+ q2 = div2(x2, y2, 0, MODULO_MODE);
102307
+ }
102308
+ y2 = x2.minus(q2.times(y2));
102309
+ if (!y2.c[0] && MODULO_MODE == 1) y2.s = x2.s;
102310
+ return y2;
102311
+ };
102312
+ P3.multipliedBy = P3.times = function(y2, b2) {
102313
+ var c2, e2, i2, j2, k2, m2, xcL, xlo, xhi, ycL, ylo, yhi, zc, base, sqrtBase, x2 = this, xc = x2.c, yc = (y2 = new BigNumber2(y2, b2)).c;
102314
+ if (!xc || !yc || !xc[0] || !yc[0]) {
102315
+ if (!x2.s || !y2.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {
102316
+ y2.c = y2.e = y2.s = null;
102317
+ } else {
102318
+ y2.s *= x2.s;
102319
+ if (!xc || !yc) {
102320
+ y2.c = y2.e = null;
102321
+ } else {
102322
+ y2.c = [0];
102323
+ y2.e = 0;
102324
+ }
102325
+ }
102326
+ return y2;
102327
+ }
102328
+ e2 = bitFloor(x2.e / LOG_BASE2) + bitFloor(y2.e / LOG_BASE2);
102329
+ y2.s *= x2.s;
102330
+ xcL = xc.length;
102331
+ ycL = yc.length;
102332
+ if (xcL < ycL) {
102333
+ zc = xc;
102334
+ xc = yc;
102335
+ yc = zc;
102336
+ i2 = xcL;
102337
+ xcL = ycL;
102338
+ ycL = i2;
102339
+ }
102340
+ for (i2 = xcL + ycL, zc = []; i2--; zc.push(0)) ;
102341
+ base = BASE2;
102342
+ sqrtBase = SQRT_BASE;
102343
+ for (i2 = ycL; --i2 >= 0; ) {
102344
+ c2 = 0;
102345
+ ylo = yc[i2] % sqrtBase;
102346
+ yhi = yc[i2] / sqrtBase | 0;
102347
+ for (k2 = xcL, j2 = i2 + k2; j2 > i2; ) {
102348
+ xlo = xc[--k2] % sqrtBase;
102349
+ xhi = xc[k2] / sqrtBase | 0;
102350
+ m2 = yhi * xlo + xhi * ylo;
102351
+ xlo = ylo * xlo + m2 % sqrtBase * sqrtBase + zc[j2] + c2;
102352
+ c2 = (xlo / base | 0) + (m2 / sqrtBase | 0) + yhi * xhi;
102353
+ zc[j2--] = xlo % base;
102354
+ }
102355
+ zc[j2] = c2;
102356
+ }
102357
+ if (c2) {
102358
+ ++e2;
102359
+ } else {
102360
+ zc.splice(0, 1);
102361
+ }
102362
+ return normalise(y2, zc, e2);
102363
+ };
102364
+ P3.negated = function() {
102365
+ var x2 = new BigNumber2(this);
102366
+ x2.s = -x2.s || null;
102367
+ return x2;
102368
+ };
102369
+ P3.plus = function(y2, b2) {
102370
+ var t2, x2 = this, a2 = x2.s;
102371
+ y2 = new BigNumber2(y2, b2);
102372
+ b2 = y2.s;
102373
+ if (!a2 || !b2) return new BigNumber2(NaN);
102374
+ if (a2 != b2) {
102375
+ y2.s = -b2;
102376
+ return x2.minus(y2);
102377
+ }
102378
+ var xe2 = x2.e / LOG_BASE2, ye2 = y2.e / LOG_BASE2, xc = x2.c, yc = y2.c;
102379
+ if (!xe2 || !ye2) {
102380
+ if (!xc || !yc) return new BigNumber2(a2 / 0);
102381
+ if (!xc[0] || !yc[0]) return yc[0] ? y2 : new BigNumber2(xc[0] ? x2 : a2 * 0);
102382
+ }
102383
+ xe2 = bitFloor(xe2);
102384
+ ye2 = bitFloor(ye2);
102385
+ xc = xc.slice();
102386
+ if (a2 = xe2 - ye2) {
102387
+ if (a2 > 0) {
102388
+ ye2 = xe2;
102389
+ t2 = yc;
102390
+ } else {
102391
+ a2 = -a2;
102392
+ t2 = xc;
102393
+ }
102394
+ t2.reverse();
102395
+ for (; a2--; t2.push(0)) ;
102396
+ t2.reverse();
102397
+ }
102398
+ a2 = xc.length;
102399
+ b2 = yc.length;
102400
+ if (a2 - b2 < 0) {
102401
+ t2 = yc;
102402
+ yc = xc;
102403
+ xc = t2;
102404
+ b2 = a2;
102405
+ }
102406
+ for (a2 = 0; b2; ) {
102407
+ a2 = (xc[--b2] = xc[b2] + yc[b2] + a2) / BASE2 | 0;
102408
+ xc[b2] = BASE2 === xc[b2] ? 0 : xc[b2] % BASE2;
102409
+ }
102410
+ if (a2) {
102411
+ xc = [a2].concat(xc);
102412
+ ++ye2;
102413
+ }
102414
+ return normalise(y2, xc, ye2);
102415
+ };
102416
+ P3.precision = P3.sd = function(sd, rm) {
102417
+ var c2, n2, v2, x2 = this;
102418
+ if (sd != null && sd !== !!sd) {
102419
+ intCheck(sd, 1, MAX);
102420
+ if (rm == null) rm = ROUNDING_MODE;
102421
+ else intCheck(rm, 0, 8);
102422
+ return round2(new BigNumber2(x2), sd, rm);
102423
+ }
102424
+ if (!(c2 = x2.c)) return null;
102425
+ v2 = c2.length - 1;
102426
+ n2 = v2 * LOG_BASE2 + 1;
102427
+ if (v2 = c2[v2]) {
102428
+ for (; v2 % 10 == 0; v2 /= 10, n2--) ;
102429
+ for (v2 = c2[0]; v2 >= 10; v2 /= 10, n2++) ;
102430
+ }
102431
+ if (sd && x2.e + 1 > n2) n2 = x2.e + 1;
102432
+ return n2;
102433
+ };
102434
+ P3.shiftedBy = function(k2) {
102435
+ intCheck(k2, -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2);
102436
+ return this.times("1e" + k2);
102437
+ };
102438
+ P3.squareRoot = P3.sqrt = function() {
102439
+ var m2, n2, r2, rep, t2, x2 = this, c2 = x2.c, s2 = x2.s, e2 = x2.e, dp = DECIMAL_PLACES + 4, half = new BigNumber2("0.5");
102440
+ if (s2 !== 1 || !c2 || !c2[0]) {
102441
+ return new BigNumber2(!s2 || s2 < 0 && (!c2 || c2[0]) ? NaN : c2 ? x2 : 1 / 0);
102442
+ }
102443
+ s2 = Math.sqrt(+valueOf(x2));
102444
+ if (s2 == 0 || s2 == 1 / 0) {
102445
+ n2 = coeffToString(c2);
102446
+ if ((n2.length + e2) % 2 == 0) n2 += "0";
102447
+ s2 = Math.sqrt(+n2);
102448
+ e2 = bitFloor((e2 + 1) / 2) - (e2 < 0 || e2 % 2);
102449
+ if (s2 == 1 / 0) {
102450
+ n2 = "5e" + e2;
102451
+ } else {
102452
+ n2 = s2.toExponential();
102453
+ n2 = n2.slice(0, n2.indexOf("e") + 1) + e2;
102454
+ }
102455
+ r2 = new BigNumber2(n2);
102456
+ } else {
102457
+ r2 = new BigNumber2(s2 + "");
102458
+ }
102459
+ if (r2.c[0]) {
102460
+ e2 = r2.e;
102461
+ s2 = e2 + dp;
102462
+ if (s2 < 3) s2 = 0;
102463
+ for (; ; ) {
102464
+ t2 = r2;
102465
+ r2 = half.times(t2.plus(div2(x2, t2, dp, 1)));
102466
+ if (coeffToString(t2.c).slice(0, s2) === (n2 = coeffToString(r2.c)).slice(0, s2)) {
102467
+ if (r2.e < e2) --s2;
102468
+ n2 = n2.slice(s2 - 3, s2 + 1);
102469
+ if (n2 == "9999" || !rep && n2 == "4999") {
102470
+ if (!rep) {
102471
+ round2(t2, t2.e + DECIMAL_PLACES + 2, 0);
102472
+ if (t2.times(t2).eq(x2)) {
102473
+ r2 = t2;
102474
+ break;
102475
+ }
102476
+ }
102477
+ dp += 4;
102478
+ s2 += 4;
102479
+ rep = 1;
102480
+ } else {
102481
+ if (!+n2 || !+n2.slice(1) && n2.charAt(0) == "5") {
102482
+ round2(r2, r2.e + DECIMAL_PLACES + 2, 1);
102483
+ m2 = !r2.times(r2).eq(x2);
102484
+ }
102485
+ break;
102486
+ }
102487
+ }
102488
+ }
102489
+ }
102490
+ return round2(r2, r2.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m2);
102491
+ };
102492
+ P3.toExponential = function(dp, rm) {
102493
+ if (dp != null) {
102494
+ intCheck(dp, 0, MAX);
102495
+ dp++;
102496
+ }
102497
+ return format(this, dp, rm, 1);
102498
+ };
102499
+ P3.toFixed = function(dp, rm) {
102500
+ if (dp != null) {
102501
+ intCheck(dp, 0, MAX);
102502
+ dp = dp + this.e + 1;
102503
+ }
102504
+ return format(this, dp, rm);
102505
+ };
102506
+ P3.toFormat = function(dp, rm, format2) {
102507
+ var str, x2 = this;
102508
+ if (format2 == null) {
102509
+ if (dp != null && rm && typeof rm == "object") {
102510
+ format2 = rm;
102511
+ rm = null;
102512
+ } else if (dp && typeof dp == "object") {
102513
+ format2 = dp;
102514
+ dp = rm = null;
102515
+ } else {
102516
+ format2 = FORMAT;
102517
+ }
102518
+ } else if (typeof format2 != "object") {
102519
+ throw Error(bignumberError + "Argument not an object: " + format2);
102520
+ }
102521
+ str = x2.toFixed(dp, rm);
102522
+ if (x2.c) {
102523
+ var i2, arr = str.split("."), g1 = +format2.groupSize, g2 = +format2.secondaryGroupSize, groupSeparator = format2.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x2.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
102524
+ if (g2) {
102525
+ i2 = g1;
102526
+ g1 = g2;
102527
+ g2 = i2;
102528
+ len -= i2;
102529
+ }
102530
+ if (g1 > 0 && len > 0) {
102531
+ i2 = len % g1 || g1;
102532
+ intPart = intDigits.substr(0, i2);
102533
+ for (; i2 < len; i2 += g1) intPart += groupSeparator + intDigits.substr(i2, g1);
102534
+ if (g2 > 0) intPart += groupSeparator + intDigits.slice(i2);
102535
+ if (isNeg) intPart = "-" + intPart;
102536
+ }
102537
+ str = fractionPart ? intPart + (format2.decimalSeparator || "") + ((g2 = +format2.fractionGroupSize) ? fractionPart.replace(
102538
+ new RegExp("\\d{" + g2 + "}\\B", "g"),
102539
+ "$&" + (format2.fractionGroupSeparator || "")
102540
+ ) : fractionPart) : intPart;
102541
+ }
102542
+ return (format2.prefix || "") + str + (format2.suffix || "");
102543
+ };
102544
+ P3.toFraction = function(md) {
102545
+ var d2, d0, d1, d22, e2, exp2, n2, n0, n1, q2, r2, s2, x2 = this, xc = x2.c;
102546
+ if (md != null) {
102547
+ n2 = new BigNumber2(md);
102548
+ if (!n2.isInteger() && (n2.c || n2.s !== 1) || n2.lt(ONE)) {
102549
+ throw Error(bignumberError + "Argument " + (n2.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n2));
102550
+ }
102551
+ }
102552
+ if (!xc) return new BigNumber2(x2);
102553
+ d2 = new BigNumber2(ONE);
102554
+ n1 = d0 = new BigNumber2(ONE);
102555
+ d1 = n0 = new BigNumber2(ONE);
102556
+ s2 = coeffToString(xc);
102557
+ e2 = d2.e = s2.length - x2.e - 1;
102558
+ d2.c[0] = POWS_TEN[(exp2 = e2 % LOG_BASE2) < 0 ? LOG_BASE2 + exp2 : exp2];
102559
+ md = !md || n2.comparedTo(d2) > 0 ? e2 > 0 ? d2 : n1 : n2;
102560
+ exp2 = MAX_EXP;
102561
+ MAX_EXP = 1 / 0;
102562
+ n2 = new BigNumber2(s2);
102563
+ n0.c[0] = 0;
102564
+ for (; ; ) {
102565
+ q2 = div2(n2, d2, 0, 1);
102566
+ d22 = d0.plus(q2.times(d1));
102567
+ if (d22.comparedTo(md) == 1) break;
102568
+ d0 = d1;
102569
+ d1 = d22;
102570
+ n1 = n0.plus(q2.times(d22 = n1));
102571
+ n0 = d22;
102572
+ d2 = n2.minus(q2.times(d22 = d2));
102573
+ n2 = d22;
102574
+ }
102575
+ d22 = div2(md.minus(d0), d1, 0, 1);
102576
+ n0 = n0.plus(d22.times(n1));
102577
+ d0 = d0.plus(d22.times(d1));
102578
+ n0.s = n1.s = x2.s;
102579
+ e2 = e2 * 2;
102580
+ r2 = div2(n1, d1, e2, ROUNDING_MODE).minus(x2).abs().comparedTo(
102581
+ div2(n0, d0, e2, ROUNDING_MODE).minus(x2).abs()
102582
+ ) < 1 ? [n1, d1] : [n0, d0];
102583
+ MAX_EXP = exp2;
102584
+ return r2;
102585
+ };
102586
+ P3.toNumber = function() {
102587
+ return +valueOf(this);
102588
+ };
102589
+ P3.toPrecision = function(sd, rm) {
102590
+ if (sd != null) intCheck(sd, 1, MAX);
102591
+ return format(this, sd, rm, 2);
102592
+ };
102593
+ P3.toString = function(b2) {
102594
+ var str, n2 = this, s2 = n2.s, e2 = n2.e;
102595
+ if (e2 === null) {
102596
+ if (s2) {
102597
+ str = "Infinity";
102598
+ if (s2 < 0) str = "-" + str;
102599
+ } else {
102600
+ str = "NaN";
102601
+ }
102602
+ } else {
102603
+ if (b2 == null) {
102604
+ str = e2 <= TO_EXP_NEG || e2 >= TO_EXP_POS ? toExponential(coeffToString(n2.c), e2) : toFixedPoint(coeffToString(n2.c), e2, "0");
102605
+ } else if (b2 === 10 && alphabetHasNormalDecimalDigits) {
102606
+ n2 = round2(new BigNumber2(n2), DECIMAL_PLACES + e2 + 1, ROUNDING_MODE);
102607
+ str = toFixedPoint(coeffToString(n2.c), n2.e, "0");
102608
+ } else {
102609
+ intCheck(b2, 2, ALPHABET.length, "Base");
102610
+ str = convertBase2(toFixedPoint(coeffToString(n2.c), e2, "0"), 10, b2, s2, true);
102611
+ }
102612
+ if (s2 < 0 && n2.c[0]) str = "-" + str;
102613
+ }
102614
+ return str;
102615
+ };
102616
+ P3.valueOf = P3.toJSON = function() {
102617
+ return valueOf(this);
102618
+ };
102619
+ P3._isBigNumber = true;
102620
+ P3[Symbol.toStringTag] = "BigNumber";
102621
+ P3[Symbol.for("nodejs.util.inspect.custom")] = P3.valueOf;
102622
+ if (configObject != null) BigNumber2.set(configObject);
102623
+ return BigNumber2;
102624
+ }
102625
+ function bitFloor(n2) {
102626
+ var i2 = n2 | 0;
102627
+ return n2 > 0 || n2 === i2 ? i2 : i2 - 1;
102628
+ }
102629
+ function coeffToString(a2) {
102630
+ var s2, z2, i2 = 1, j2 = a2.length, r2 = a2[0] + "";
102631
+ for (; i2 < j2; ) {
102632
+ s2 = a2[i2++] + "";
102633
+ z2 = LOG_BASE2 - s2.length;
102634
+ for (; z2--; s2 = "0" + s2) ;
102635
+ r2 += s2;
102636
+ }
102637
+ for (j2 = r2.length; r2.charCodeAt(--j2) === 48; ) ;
102638
+ return r2.slice(0, j2 + 1 || 1);
102639
+ }
102640
+ function compare(x2, y2) {
102641
+ var a2, b2, xc = x2.c, yc = y2.c, i2 = x2.s, j2 = y2.s, k2 = x2.e, l2 = y2.e;
102642
+ if (!i2 || !j2) return null;
102643
+ a2 = xc && !xc[0];
102644
+ b2 = yc && !yc[0];
102645
+ if (a2 || b2) return a2 ? b2 ? 0 : -j2 : i2;
102646
+ if (i2 != j2) return i2;
102647
+ a2 = i2 < 0;
102648
+ b2 = k2 == l2;
102649
+ if (!xc || !yc) return b2 ? 0 : !xc ^ a2 ? 1 : -1;
102650
+ if (!b2) return k2 > l2 ^ a2 ? 1 : -1;
102651
+ j2 = (k2 = xc.length) < (l2 = yc.length) ? k2 : l2;
102652
+ for (i2 = 0; i2 < j2; i2++) if (xc[i2] != yc[i2]) return xc[i2] > yc[i2] ^ a2 ? 1 : -1;
102653
+ return k2 == l2 ? 0 : k2 > l2 ^ a2 ? 1 : -1;
102654
+ }
102655
+ function intCheck(n2, min2, max2, name6) {
102656
+ if (n2 < min2 || n2 > max2 || n2 !== mathfloor2(n2)) {
102657
+ throw Error(bignumberError + (name6 || "Argument") + (typeof n2 == "number" ? n2 < min2 || n2 > max2 ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n2));
102658
+ }
102659
+ }
102660
+ function isOdd2(n2) {
102661
+ var k2 = n2.c.length - 1;
102662
+ return bitFloor(n2.e / LOG_BASE2) == k2 && n2.c[k2] % 2 != 0;
102663
+ }
102664
+ function toExponential(str, e2) {
102665
+ return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e2 < 0 ? "e" : "e+") + e2;
102666
+ }
102667
+ function toFixedPoint(str, e2, z2) {
102668
+ var len, zs;
102669
+ if (e2 < 0) {
102670
+ for (zs = z2 + "."; ++e2; zs += z2) ;
102671
+ str = zs + str;
102672
+ } else {
102673
+ len = str.length;
102674
+ if (++e2 > len) {
102675
+ for (zs = z2, e2 -= len; --e2; zs += z2) ;
102676
+ str += zs;
102677
+ } else if (e2 < len) {
102678
+ str = str.slice(0, e2) + "." + str.slice(e2);
102679
+ }
102680
+ }
102681
+ return str;
102682
+ }
102683
+ var BigNumber = clone2();
102684
+ var bignumber_default = BigNumber;
102685
+
102686
+ // ../../node_modules/.pnpm/@paralleldrive+cuid2@3.3.0/node_modules/@paralleldrive/cuid2/src/index.js
102687
+ var defaultLength = 24;
102688
+ var bigLength = 32;
102689
+ var createRandom = () => {
102690
+ if (typeof globalThis !== "undefined" && globalThis.crypto && typeof globalThis.crypto.getRandomValues === "function") {
102691
+ return () => {
102692
+ const buffer = new Uint32Array(1);
102693
+ globalThis.crypto.getRandomValues(buffer);
102694
+ return buffer[0] / 4294967296;
102695
+ };
102696
+ }
102697
+ return Math.random;
102698
+ };
102699
+ var random2 = createRandom();
102700
+ var createEntropy = (length2 = 4, rand = random2) => {
102701
+ let entropy = "";
102702
+ while (entropy.length < length2) {
102703
+ entropy = entropy + Math.floor(rand() * 36).toString(36);
102704
+ }
102705
+ return entropy;
102706
+ };
102707
+ function bufToBigInt(buf) {
102708
+ let value = new bignumber_default(0);
102709
+ for (const i2 of buf.values()) {
102710
+ value = value.multipliedBy(256).plus(i2);
102711
+ }
102712
+ return value;
102713
+ }
102714
+ var hash = (input = "") => {
102715
+ const encoder = new TextEncoder();
102716
+ return bufToBigInt(sha3_512(encoder.encode(input))).toString(36).slice(1);
102717
+ };
102718
+ var alphabet = Array.from(
102719
+ { length: 26 },
102720
+ (x2, i2) => String.fromCharCode(i2 + 97)
102721
+ );
102722
+ var randomLetter = (rand) => alphabet[Math.floor(rand() * alphabet.length)];
102723
+ var createFingerprint = ({
102724
+ globalObj = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {},
102725
+ random: rand = random2
102726
+ } = {}) => {
102727
+ const globals = Object.keys(globalObj).toString();
102728
+ const sourceString = globals.length ? globals + createEntropy(bigLength, rand) : createEntropy(bigLength, rand);
102729
+ return hash(sourceString).substring(0, bigLength);
102730
+ };
102731
+ var createCounter = (count) => () => {
102732
+ return count++;
102733
+ };
102734
+ var initialCountMax = 476782367;
102735
+ var init2 = ({
102736
+ // Fallback if the user does not pass in a CSPRNG. This should be OK
102737
+ // because we don't rely solely on the random number generator for entropy.
102738
+ // We also use the host fingerprint, current time, and a session counter.
102739
+ random: rand = random2,
102740
+ counter = createCounter(Math.floor(rand() * initialCountMax)),
102741
+ length: length2 = defaultLength,
102742
+ fingerprint: fingerprint2 = createFingerprint({ random: rand })
102743
+ } = {}) => {
102744
+ if (length2 > bigLength) {
102745
+ throw new Error(
102746
+ `Length must be between 2 and ${bigLength}. Received: ${length2}`
102747
+ );
102748
+ }
102749
+ return function cuid24() {
102750
+ const firstLetter = randomLetter(rand);
102751
+ const time3 = Date.now().toString(36);
102752
+ const count = counter().toString(36);
102753
+ const salt = createEntropy(length2, rand);
102754
+ const hashInput = `${time3 + salt + count + fingerprint2}`;
102755
+ return `${firstLetter + hash(hashInput).substring(1, length2)}`;
102756
+ };
102757
+ };
102758
+ var createId = lazy(init2);
102759
+ function lazy(fn2) {
102760
+ let initialized;
102761
+ return () => {
102762
+ if (!initialized) {
102763
+ initialized = fn2();
102764
+ }
102765
+ return initialized();
102766
+ };
102767
+ }
101664
102768
 
101665
102769
  // ../../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.js
101666
102770
  var import_node_crypto = require("node:crypto");
@@ -102563,7 +103667,7 @@ var CuidGenerator = class {
102563
103667
  if (arg === 1) {
102564
103668
  return index_esm_default();
102565
103669
  } else if (arg === 2) {
102566
- return (0, import_cuid22.createId)();
103670
+ return createId();
102567
103671
  } else {
102568
103672
  throw new Error("Invalid CUID generator arguments");
102569
103673
  }
@@ -104810,7 +105914,7 @@ var setDefaultContentType = (contentType, headers) => {
104810
105914
  ...headers
104811
105915
  };
104812
105916
  };
104813
- var createResponseInstance = (body, init3) => new Response(body, init3);
105917
+ var createResponseInstance = (body, init4) => new Response(body, init4);
104814
105918
  var Context = class {
104815
105919
  #rawRequest;
104816
105920
  #req;
@@ -105295,14 +106399,14 @@ var Hono = class _Hono {
105295
106399
  this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict;
105296
106400
  }
105297
106401
  #clone() {
105298
- const clone3 = new _Hono({
106402
+ const clone4 = new _Hono({
105299
106403
  router: this.router,
105300
106404
  getPath: this.getPath
105301
106405
  });
105302
- clone3.errorHandler = this.errorHandler;
105303
- clone3.#notFoundHandler = this.#notFoundHandler;
105304
- clone3.routes = this.routes;
105305
- return clone3;
106406
+ clone4.errorHandler = this.errorHandler;
106407
+ clone4.#notFoundHandler = this.#notFoundHandler;
106408
+ clone4.routes = this.routes;
106409
+ return clone4;
105306
106410
  }
105307
106411
  #notFoundHandler = notFoundHandler;
105308
106412
  // Cannot use `#` because it requires visibility at JavaScript runtime.
@@ -105965,8 +107069,8 @@ var SmartRouter = class {
105965
107069
  name = "SmartRouter";
105966
107070
  #routers = [];
105967
107071
  #routes = [];
105968
- constructor(init3) {
105969
- this.#routers = init3.routers;
107072
+ constructor(init4) {
107073
+ this.#routers = init4.routers;
105970
107074
  }
105971
107075
  add(method, path3, handler) {
105972
107076
  if (!this.#routes) {
@@ -109336,12 +110440,12 @@ __export(external_exports, {
109336
110440
  check: () => check,
109337
110441
  cidrv4: () => cidrv42,
109338
110442
  cidrv6: () => cidrv62,
109339
- clone: () => clone2,
110443
+ clone: () => clone3,
109340
110444
  codec: () => codec,
109341
110445
  coerce: () => coerce_exports,
109342
110446
  config: () => config2,
109343
110447
  core: () => core_exports2,
109344
- cuid: () => cuid4,
110448
+ cuid: () => cuid3,
109345
110449
  cuid2: () => cuid23,
109346
110450
  custom: () => custom2,
109347
110451
  date: () => date3,
@@ -109366,7 +110470,7 @@ __export(external_exports, {
109366
110470
  gt: () => _gt,
109367
110471
  gte: () => _gte,
109368
110472
  guid: () => guid2,
109369
- hash: () => hash,
110473
+ hash: () => hash2,
109370
110474
  hex: () => hex2,
109371
110475
  hostname: () => hostname3,
109372
110476
  httpUrl: () => httpUrl,
@@ -109383,7 +110487,7 @@ __export(external_exports, {
109383
110487
  jwt: () => jwt2,
109384
110488
  keyof: () => keyof,
109385
110489
  ksuid: () => ksuid2,
109386
- lazy: () => lazy,
110490
+ lazy: () => lazy2,
109387
110491
  length: () => _length,
109388
110492
  literal: () => literal,
109389
110493
  locales: () => locales_exports,
@@ -109704,7 +110808,7 @@ __export(core_exports2, {
109704
110808
  _uuidv7: () => _uuidv7,
109705
110809
  _void: () => _void,
109706
110810
  _xid: () => _xid,
109707
- clone: () => clone2,
110811
+ clone: () => clone3,
109708
110812
  config: () => config2,
109709
110813
  decode: () => decode,
109710
110814
  decodeAsync: () => decodeAsync,
@@ -109742,7 +110846,7 @@ var NEVER = Object.freeze({
109742
110846
  });
109743
110847
  // @__NO_SIDE_EFFECTS__
109744
110848
  function $constructor(name6, initializer3, params) {
109745
- function init3(inst, def) {
110849
+ function init4(inst, def) {
109746
110850
  var _a3;
109747
110851
  Object.defineProperty(inst, "_zod", {
109748
110852
  value: inst._zod ?? {},
@@ -109765,14 +110869,14 @@ function $constructor(name6, initializer3, params) {
109765
110869
  function _3(def) {
109766
110870
  var _a3;
109767
110871
  const inst = params?.Parent ? new Definition() : this;
109768
- init3(inst, def);
110872
+ init4(inst, def);
109769
110873
  (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
109770
110874
  for (const fn2 of inst._zod.deferred) {
109771
110875
  fn2();
109772
110876
  }
109773
110877
  return inst;
109774
110878
  }
109775
- Object.defineProperty(_3, "init", { value: init3 });
110879
+ Object.defineProperty(_3, "init", { value: init4 });
109776
110880
  Object.defineProperty(_3, Symbol.hasInstance, {
109777
110881
  value: (inst) => {
109778
110882
  if (params?.Parent && inst instanceof params.Parent)
@@ -109822,7 +110926,7 @@ __export(util_exports, {
109822
110926
  captureStackTrace: () => captureStackTrace,
109823
110927
  cleanEnum: () => cleanEnum,
109824
110928
  cleanRegex: () => cleanRegex,
109825
- clone: () => clone2,
110929
+ clone: () => clone3,
109826
110930
  cloneDef: () => cloneDef,
109827
110931
  createTransparentProxy: () => createTransparentProxy,
109828
110932
  defineLazy: () => defineLazy,
@@ -110094,7 +111198,7 @@ var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boo
110094
111198
  function escapeRegex(str) {
110095
111199
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
110096
111200
  }
110097
- function clone2(inst, def, params) {
111201
+ function clone3(inst, def, params) {
110098
111202
  const cl = new inst._zod.constr(def ?? inst._zod.def);
110099
111203
  if (!def || params?.parent)
110100
111204
  cl._zod.parent = inst;
@@ -110190,7 +111294,7 @@ function pick(schema, mask) {
110190
111294
  },
110191
111295
  checks: []
110192
111296
  });
110193
- return clone2(schema, def);
111297
+ return clone3(schema, def);
110194
111298
  }
110195
111299
  function omit(schema, mask) {
110196
111300
  const currDef = schema._zod.def;
@@ -110210,7 +111314,7 @@ function omit(schema, mask) {
110210
111314
  },
110211
111315
  checks: []
110212
111316
  });
110213
- return clone2(schema, def);
111317
+ return clone3(schema, def);
110214
111318
  }
110215
111319
  function extend3(schema, shape) {
110216
111320
  if (!isPlainObject(shape)) {
@@ -110229,7 +111333,7 @@ function extend3(schema, shape) {
110229
111333
  },
110230
111334
  checks: []
110231
111335
  });
110232
- return clone2(schema, def);
111336
+ return clone3(schema, def);
110233
111337
  }
110234
111338
  function safeExtend(schema, shape) {
110235
111339
  if (!isPlainObject(shape)) {
@@ -110244,7 +111348,7 @@ function safeExtend(schema, shape) {
110244
111348
  },
110245
111349
  checks: schema._zod.def.checks
110246
111350
  };
110247
- return clone2(schema, def);
111351
+ return clone3(schema, def);
110248
111352
  }
110249
111353
  function merge(a2, b2) {
110250
111354
  const def = mergeDefs(a2._zod.def, {
@@ -110259,7 +111363,7 @@ function merge(a2, b2) {
110259
111363
  checks: []
110260
111364
  // delete existing checks
110261
111365
  });
110262
- return clone2(a2, def);
111366
+ return clone3(a2, def);
110263
111367
  }
110264
111368
  function partial(Class2, schema, mask) {
110265
111369
  const def = mergeDefs(schema._zod.def, {
@@ -110291,7 +111395,7 @@ function partial(Class2, schema, mask) {
110291
111395
  },
110292
111396
  checks: []
110293
111397
  });
110294
- return clone2(schema, def);
111398
+ return clone3(schema, def);
110295
111399
  }
110296
111400
  function required(Class2, schema, mask) {
110297
111401
  const def = mergeDefs(schema._zod.def, {
@@ -110323,7 +111427,7 @@ function required(Class2, schema, mask) {
110323
111427
  },
110324
111428
  checks: []
110325
111429
  });
110326
- return clone2(schema, def);
111430
+ return clone3(schema, def);
110327
111431
  }
110328
111432
  function aborted(x2, startIndex = 0) {
110329
111433
  if (x2.aborted === true)
@@ -110674,7 +111778,7 @@ __export(regexes_exports, {
110674
111778
  browserEmail: () => browserEmail,
110675
111779
  cidrv4: () => cidrv4,
110676
111780
  cidrv6: () => cidrv6,
110677
- cuid: () => cuid3,
111781
+ cuid: () => cuid2,
110678
111782
  cuid2: () => cuid22,
110679
111783
  date: () => date,
110680
111784
  datetime: () => datetime,
@@ -110725,7 +111829,7 @@ __export(regexes_exports, {
110725
111829
  uuid7: () => uuid7,
110726
111830
  xid: () => xid
110727
111831
  });
110728
- var cuid3 = /^[cC][^\s-]{8,}$/;
111832
+ var cuid2 = /^[cC][^\s-]{8,}$/;
110729
111833
  var cuid22 = /^[0-9a-z]+$/;
110730
111834
  var ulid2 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
110731
111835
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -111623,7 +112727,7 @@ var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
111623
112727
  $ZodStringFormat.init(inst, def);
111624
112728
  });
111625
112729
  var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
111626
- def.pattern ?? (def.pattern = cuid3);
112730
+ def.pattern ?? (def.pattern = cuid2);
111627
112731
  $ZodStringFormat.init(inst, def);
111628
112732
  });
111629
112733
  var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
@@ -120239,7 +121343,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
120239
121343
  // { parent: true }
120240
121344
  );
120241
121345
  };
120242
- inst.clone = (def2, params) => clone2(inst, def2, params);
121346
+ inst.clone = (def2, params) => clone3(inst, def2, params);
120243
121347
  inst.brand = () => inst;
120244
121348
  inst.register = (reg, meta) => {
120245
121349
  reg.add(inst, meta);
@@ -120419,7 +121523,7 @@ var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
120419
121523
  $ZodCUID.init(inst, def);
120420
121524
  ZodStringFormat.init(inst, def);
120421
121525
  });
120422
- function cuid4(params) {
121526
+ function cuid3(params) {
120423
121527
  return _cuid(ZodCUID, params);
120424
121528
  }
120425
121529
  var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
@@ -120519,7 +121623,7 @@ function hostname3(_params) {
120519
121623
  function hex2(_params) {
120520
121624
  return _stringFormat(ZodCustomStringFormat, "hex", regexes_exports.hex, _params);
120521
121625
  }
120522
- function hash(alg, params) {
121626
+ function hash2(alg, params) {
120523
121627
  const enc = params?.enc ?? "hex";
120524
121628
  const format = `${alg}_${enc}`;
120525
121629
  const regex = regexes_exports[format];
@@ -120817,7 +121921,7 @@ function record(keyType, valueType, params) {
120817
121921
  });
120818
121922
  }
120819
121923
  function partialRecord(keyType, valueType, params) {
120820
- const k2 = clone2(keyType);
121924
+ const k2 = clone3(keyType);
120821
121925
  k2._zod.values = void 0;
120822
121926
  return new ZodRecord({
120823
121927
  type: "record",
@@ -121125,7 +122229,7 @@ var ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
121125
122229
  ZodType.init(inst, def);
121126
122230
  inst.unwrap = () => inst._zod.def.getter();
121127
122231
  });
121128
- function lazy(getter) {
122232
+ function lazy2(getter) {
121129
122233
  return new ZodLazy({
121130
122234
  type: "lazy",
121131
122235
  getter
@@ -121193,7 +122297,7 @@ var stringbool = (...args) => _stringbool({
121193
122297
  String: ZodString
121194
122298
  }, ...args);
121195
122299
  function json(params) {
121196
- const jsonSchema = lazy(() => {
122300
+ const jsonSchema = lazy2(() => {
121197
122301
  return union([string2(params), number2(), boolean2(), _null3(), array(jsonSchema), record(string2(), jsonSchema)]);
121198
122302
  });
121199
122303
  return jsonSchema;
@@ -121391,9 +122495,6 @@ decimal.js/decimal.mjs:
121391
122495
  */
121392
122496
  /*! Bundled license information:
121393
122497
 
121394
- @noble/hashes/utils.js:
121395
- (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
121396
-
121397
122498
  @azure/msal-node/dist/cache/serializer/Serializer.mjs:
121398
122499
  @azure/msal-node/dist/cache/serializer/Deserializer.mjs:
121399
122500
  @azure/msal-node/dist/internals.mjs: