@coinflowlabs/vue 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/coinflow-vue.js
CHANGED
|
@@ -117,10 +117,10 @@ function Gi() {
|
|
|
117
117
|
);
|
|
118
118
|
function i() {
|
|
119
119
|
try {
|
|
120
|
-
const
|
|
120
|
+
const m = new Uint8Array(1), h = { foo: function() {
|
|
121
121
|
return 42;
|
|
122
122
|
} };
|
|
123
|
-
return Object.setPrototypeOf(h, Uint8Array.prototype), Object.setPrototypeOf(
|
|
123
|
+
return Object.setPrototypeOf(h, Uint8Array.prototype), Object.setPrototypeOf(m, h), m.foo() === 42;
|
|
124
124
|
} catch {
|
|
125
125
|
return !1;
|
|
126
126
|
}
|
|
@@ -138,123 +138,123 @@ function Gi() {
|
|
|
138
138
|
return this.byteOffset;
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
function o(
|
|
142
|
-
if (
|
|
143
|
-
throw new RangeError('The value "' +
|
|
144
|
-
const h = new Uint8Array(
|
|
141
|
+
function o(m) {
|
|
142
|
+
if (m > s)
|
|
143
|
+
throw new RangeError('The value "' + m + '" is invalid for option "size"');
|
|
144
|
+
const h = new Uint8Array(m);
|
|
145
145
|
return Object.setPrototypeOf(h, a.prototype), h;
|
|
146
146
|
}
|
|
147
|
-
function a(
|
|
148
|
-
if (typeof
|
|
147
|
+
function a(m, h, d) {
|
|
148
|
+
if (typeof m == "number") {
|
|
149
149
|
if (typeof h == "string")
|
|
150
150
|
throw new TypeError(
|
|
151
151
|
'The "string" argument must be of type string. Received type number'
|
|
152
152
|
);
|
|
153
|
-
return b(
|
|
153
|
+
return b(m);
|
|
154
154
|
}
|
|
155
|
-
return f(
|
|
155
|
+
return f(m, h, d);
|
|
156
156
|
}
|
|
157
157
|
a.poolSize = 8192;
|
|
158
|
-
function f(
|
|
159
|
-
if (typeof
|
|
160
|
-
return x(
|
|
161
|
-
if (ArrayBuffer.isView(
|
|
162
|
-
return L(
|
|
163
|
-
if (
|
|
158
|
+
function f(m, h, d) {
|
|
159
|
+
if (typeof m == "string")
|
|
160
|
+
return x(m, h);
|
|
161
|
+
if (ArrayBuffer.isView(m))
|
|
162
|
+
return L(m);
|
|
163
|
+
if (m == null)
|
|
164
164
|
throw new TypeError(
|
|
165
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
165
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof m
|
|
166
166
|
);
|
|
167
|
-
if (
|
|
168
|
-
return k(
|
|
169
|
-
if (typeof
|
|
167
|
+
if (mt(m, ArrayBuffer) || m && mt(m.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (mt(m, SharedArrayBuffer) || m && mt(m.buffer, SharedArrayBuffer)))
|
|
168
|
+
return k(m, h, d);
|
|
169
|
+
if (typeof m == "number")
|
|
170
170
|
throw new TypeError(
|
|
171
171
|
'The "value" argument must not be of type number. Received type number'
|
|
172
172
|
);
|
|
173
|
-
const O =
|
|
174
|
-
if (O != null && O !==
|
|
173
|
+
const O = m.valueOf && m.valueOf();
|
|
174
|
+
if (O != null && O !== m)
|
|
175
175
|
return a.from(O, h, d);
|
|
176
|
-
const U = N(
|
|
176
|
+
const U = N(m);
|
|
177
177
|
if (U) return U;
|
|
178
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof
|
|
179
|
-
return a.from(
|
|
178
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof m[Symbol.toPrimitive] == "function")
|
|
179
|
+
return a.from(m[Symbol.toPrimitive]("string"), h, d);
|
|
180
180
|
throw new TypeError(
|
|
181
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
181
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof m
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
a.from = function(
|
|
185
|
-
return f(
|
|
184
|
+
a.from = function(m, h, d) {
|
|
185
|
+
return f(m, h, d);
|
|
186
186
|
}, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array);
|
|
187
|
-
function g(
|
|
188
|
-
if (typeof
|
|
187
|
+
function g(m) {
|
|
188
|
+
if (typeof m != "number")
|
|
189
189
|
throw new TypeError('"size" argument must be of type number');
|
|
190
|
-
if (
|
|
191
|
-
throw new RangeError('The value "' +
|
|
190
|
+
if (m < 0)
|
|
191
|
+
throw new RangeError('The value "' + m + '" is invalid for option "size"');
|
|
192
192
|
}
|
|
193
|
-
function _(
|
|
194
|
-
return g(
|
|
193
|
+
function _(m, h, d) {
|
|
194
|
+
return g(m), m <= 0 ? o(m) : h !== void 0 ? typeof d == "string" ? o(m).fill(h, d) : o(m).fill(h) : o(m);
|
|
195
195
|
}
|
|
196
|
-
a.alloc = function(
|
|
197
|
-
return _(
|
|
196
|
+
a.alloc = function(m, h, d) {
|
|
197
|
+
return _(m, h, d);
|
|
198
198
|
};
|
|
199
|
-
function b(
|
|
200
|
-
return g(
|
|
199
|
+
function b(m) {
|
|
200
|
+
return g(m), o(m < 0 ? 0 : M(m) | 0);
|
|
201
201
|
}
|
|
202
|
-
a.allocUnsafe = function(
|
|
203
|
-
return b(
|
|
204
|
-
}, a.allocUnsafeSlow = function(
|
|
205
|
-
return b(
|
|
202
|
+
a.allocUnsafe = function(m) {
|
|
203
|
+
return b(m);
|
|
204
|
+
}, a.allocUnsafeSlow = function(m) {
|
|
205
|
+
return b(m);
|
|
206
206
|
};
|
|
207
|
-
function x(
|
|
207
|
+
function x(m, h) {
|
|
208
208
|
if ((typeof h != "string" || h === "") && (h = "utf8"), !a.isEncoding(h))
|
|
209
209
|
throw new TypeError("Unknown encoding: " + h);
|
|
210
|
-
const d = $(
|
|
210
|
+
const d = $(m, h) | 0;
|
|
211
211
|
let O = o(d);
|
|
212
|
-
const U = O.write(
|
|
212
|
+
const U = O.write(m, h);
|
|
213
213
|
return U !== d && (O = O.slice(0, U)), O;
|
|
214
214
|
}
|
|
215
|
-
function T(
|
|
216
|
-
const h =
|
|
215
|
+
function T(m) {
|
|
216
|
+
const h = m.length < 0 ? 0 : M(m.length) | 0, d = o(h);
|
|
217
217
|
for (let O = 0; O < h; O += 1)
|
|
218
|
-
d[O] =
|
|
218
|
+
d[O] = m[O] & 255;
|
|
219
219
|
return d;
|
|
220
220
|
}
|
|
221
|
-
function L(
|
|
222
|
-
if (
|
|
223
|
-
const h = new Uint8Array(
|
|
221
|
+
function L(m) {
|
|
222
|
+
if (mt(m, Uint8Array)) {
|
|
223
|
+
const h = new Uint8Array(m);
|
|
224
224
|
return k(h.buffer, h.byteOffset, h.byteLength);
|
|
225
225
|
}
|
|
226
|
-
return T(
|
|
226
|
+
return T(m);
|
|
227
227
|
}
|
|
228
|
-
function k(
|
|
229
|
-
if (h < 0 ||
|
|
228
|
+
function k(m, h, d) {
|
|
229
|
+
if (h < 0 || m.byteLength < h)
|
|
230
230
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
231
|
-
if (
|
|
231
|
+
if (m.byteLength < h + (d || 0))
|
|
232
232
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
233
233
|
let O;
|
|
234
|
-
return h === void 0 && d === void 0 ? O = new Uint8Array(
|
|
234
|
+
return h === void 0 && d === void 0 ? O = new Uint8Array(m) : d === void 0 ? O = new Uint8Array(m, h) : O = new Uint8Array(m, h, d), Object.setPrototypeOf(O, a.prototype), O;
|
|
235
235
|
}
|
|
236
|
-
function N(
|
|
237
|
-
if (a.isBuffer(
|
|
238
|
-
const h = M(
|
|
239
|
-
return d.length === 0 ||
|
|
236
|
+
function N(m) {
|
|
237
|
+
if (a.isBuffer(m)) {
|
|
238
|
+
const h = M(m.length) | 0, d = o(h);
|
|
239
|
+
return d.length === 0 || m.copy(d, 0, 0, h), d;
|
|
240
240
|
}
|
|
241
|
-
if (
|
|
242
|
-
return typeof
|
|
243
|
-
if (
|
|
244
|
-
return T(
|
|
241
|
+
if (m.length !== void 0)
|
|
242
|
+
return typeof m.length != "number" || Be(m.length) ? o(0) : T(m);
|
|
243
|
+
if (m.type === "Buffer" && Array.isArray(m.data))
|
|
244
|
+
return T(m.data);
|
|
245
245
|
}
|
|
246
|
-
function M(
|
|
247
|
-
if (
|
|
246
|
+
function M(m) {
|
|
247
|
+
if (m >= s)
|
|
248
248
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
|
|
249
|
-
return
|
|
249
|
+
return m | 0;
|
|
250
250
|
}
|
|
251
|
-
function H(
|
|
252
|
-
return +
|
|
251
|
+
function H(m) {
|
|
252
|
+
return +m != m && (m = 0), a.alloc(+m);
|
|
253
253
|
}
|
|
254
254
|
a.isBuffer = function(h) {
|
|
255
255
|
return h != null && h._isBuffer === !0 && h !== a.prototype;
|
|
256
256
|
}, a.compare = function(h, d) {
|
|
257
|
-
if (
|
|
257
|
+
if (mt(h, Uint8Array) && (h = a.from(h, h.offset, h.byteLength)), mt(d, Uint8Array) && (d = a.from(d, d.offset, d.byteLength)), !a.isBuffer(h) || !a.isBuffer(d))
|
|
258
258
|
throw new TypeError(
|
|
259
259
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
260
260
|
);
|
|
@@ -296,7 +296,7 @@ function Gi() {
|
|
|
296
296
|
let F = 0;
|
|
297
297
|
for (O = 0; O < h.length; ++O) {
|
|
298
298
|
let Y = h[O];
|
|
299
|
-
if (
|
|
299
|
+
if (mt(Y, Uint8Array))
|
|
300
300
|
F + Y.length > U.length ? (a.isBuffer(Y) || (Y = a.from(Y)), Y.copy(U, F)) : Uint8Array.prototype.set.call(
|
|
301
301
|
U,
|
|
302
302
|
Y,
|
|
@@ -310,16 +310,16 @@ function Gi() {
|
|
|
310
310
|
}
|
|
311
311
|
return U;
|
|
312
312
|
};
|
|
313
|
-
function $(
|
|
314
|
-
if (a.isBuffer(
|
|
315
|
-
return
|
|
316
|
-
if (ArrayBuffer.isView(
|
|
317
|
-
return
|
|
318
|
-
if (typeof
|
|
313
|
+
function $(m, h) {
|
|
314
|
+
if (a.isBuffer(m))
|
|
315
|
+
return m.length;
|
|
316
|
+
if (ArrayBuffer.isView(m) || mt(m, ArrayBuffer))
|
|
317
|
+
return m.byteLength;
|
|
318
|
+
if (typeof m != "string")
|
|
319
319
|
throw new TypeError(
|
|
320
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof
|
|
320
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof m
|
|
321
321
|
);
|
|
322
|
-
const d =
|
|
322
|
+
const d = m.length, O = arguments.length > 2 && arguments[2] === !0;
|
|
323
323
|
if (!O && d === 0) return 0;
|
|
324
324
|
let U = !1;
|
|
325
325
|
for (; ; )
|
|
@@ -330,7 +330,7 @@ function Gi() {
|
|
|
330
330
|
return d;
|
|
331
331
|
case "utf8":
|
|
332
332
|
case "utf-8":
|
|
333
|
-
return Ne(
|
|
333
|
+
return Ne(m).length;
|
|
334
334
|
case "ucs2":
|
|
335
335
|
case "ucs-2":
|
|
336
336
|
case "utf16le":
|
|
@@ -339,20 +339,20 @@ function Gi() {
|
|
|
339
339
|
case "hex":
|
|
340
340
|
return d >>> 1;
|
|
341
341
|
case "base64":
|
|
342
|
-
return Ue(
|
|
342
|
+
return Ue(m).length;
|
|
343
343
|
default:
|
|
344
344
|
if (U)
|
|
345
|
-
return O ? -1 : Ne(
|
|
345
|
+
return O ? -1 : Ne(m).length;
|
|
346
346
|
h = ("" + h).toLowerCase(), U = !0;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
a.byteLength = $;
|
|
350
|
-
function J(
|
|
350
|
+
function J(m, h, d) {
|
|
351
351
|
let O = !1;
|
|
352
352
|
if ((h === void 0 || h < 0) && (h = 0), h > this.length || ((d === void 0 || d > this.length) && (d = this.length), d <= 0) || (d >>>= 0, h >>>= 0, d <= h))
|
|
353
353
|
return "";
|
|
354
|
-
for (
|
|
355
|
-
switch (
|
|
354
|
+
for (m || (m = "utf8"); ; )
|
|
355
|
+
switch (m) {
|
|
356
356
|
case "hex":
|
|
357
357
|
return I(this, h, d);
|
|
358
358
|
case "utf8":
|
|
@@ -371,14 +371,14 @@ function Gi() {
|
|
|
371
371
|
case "utf-16le":
|
|
372
372
|
return C(this, h, d);
|
|
373
373
|
default:
|
|
374
|
-
if (O) throw new TypeError("Unknown encoding: " +
|
|
375
|
-
|
|
374
|
+
if (O) throw new TypeError("Unknown encoding: " + m);
|
|
375
|
+
m = (m + "").toLowerCase(), O = !0;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
a.prototype._isBuffer = !0;
|
|
379
|
-
function W(
|
|
380
|
-
const O =
|
|
381
|
-
|
|
379
|
+
function W(m, h, d) {
|
|
380
|
+
const O = m[h];
|
|
381
|
+
m[h] = m[d], m[d] = O;
|
|
382
382
|
}
|
|
383
383
|
a.prototype.swap16 = function() {
|
|
384
384
|
const h = this.length;
|
|
@@ -412,7 +412,7 @@ function Gi() {
|
|
|
412
412
|
const d = n.INSPECT_MAX_BYTES;
|
|
413
413
|
return h = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (h += " ... "), "<Buffer " + h + ">";
|
|
414
414
|
}, r && (a.prototype[r] = a.prototype.inspect), a.prototype.compare = function(h, d, O, U, F) {
|
|
415
|
-
if (
|
|
415
|
+
if (mt(h, Uint8Array) && (h = a.from(h, h.offset, h.byteLength)), !a.isBuffer(h))
|
|
416
416
|
throw new TypeError(
|
|
417
417
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof h
|
|
418
418
|
);
|
|
@@ -434,24 +434,24 @@ function Gi() {
|
|
|
434
434
|
}
|
|
435
435
|
return Y < ge ? -1 : ge < Y ? 1 : 0;
|
|
436
436
|
};
|
|
437
|
-
function D(
|
|
438
|
-
if (
|
|
439
|
-
if (typeof d == "string" ? (O = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Be(d) && (d = U ? 0 :
|
|
437
|
+
function D(m, h, d, O, U) {
|
|
438
|
+
if (m.length === 0) return -1;
|
|
439
|
+
if (typeof d == "string" ? (O = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Be(d) && (d = U ? 0 : m.length - 1), d < 0 && (d = m.length + d), d >= m.length) {
|
|
440
440
|
if (U) return -1;
|
|
441
|
-
d =
|
|
441
|
+
d = m.length - 1;
|
|
442
442
|
} else if (d < 0)
|
|
443
443
|
if (U) d = 0;
|
|
444
444
|
else return -1;
|
|
445
445
|
if (typeof h == "string" && (h = a.from(h, O)), a.isBuffer(h))
|
|
446
|
-
return h.length === 0 ? -1 : Z(
|
|
446
|
+
return h.length === 0 ? -1 : Z(m, h, d, O, U);
|
|
447
447
|
if (typeof h == "number")
|
|
448
|
-
return h = h & 255, typeof Uint8Array.prototype.indexOf == "function" ? U ? Uint8Array.prototype.indexOf.call(
|
|
448
|
+
return h = h & 255, typeof Uint8Array.prototype.indexOf == "function" ? U ? Uint8Array.prototype.indexOf.call(m, h, d) : Uint8Array.prototype.lastIndexOf.call(m, h, d) : Z(m, [h], d, O, U);
|
|
449
449
|
throw new TypeError("val must be string, number or Buffer");
|
|
450
450
|
}
|
|
451
|
-
function Z(
|
|
452
|
-
let F = 1, Y =
|
|
451
|
+
function Z(m, h, d, O, U) {
|
|
452
|
+
let F = 1, Y = m.length, ge = h.length;
|
|
453
453
|
if (O !== void 0 && (O = String(O).toLowerCase(), O === "ucs2" || O === "ucs-2" || O === "utf16le" || O === "utf-16le")) {
|
|
454
|
-
if (
|
|
454
|
+
if (m.length < 2 || h.length < 2)
|
|
455
455
|
return -1;
|
|
456
456
|
F = 2, Y /= 2, ge /= 2, d /= 2;
|
|
457
457
|
}
|
|
@@ -462,7 +462,7 @@ function Gi() {
|
|
|
462
462
|
if (U) {
|
|
463
463
|
let Fe = -1;
|
|
464
464
|
for (fe = d; fe < Y; fe++)
|
|
465
|
-
if (pe(
|
|
465
|
+
if (pe(m, fe) === pe(h, Fe === -1 ? 0 : fe - Fe)) {
|
|
466
466
|
if (Fe === -1 && (Fe = fe), fe - Fe + 1 === ge) return Fe * F;
|
|
467
467
|
} else
|
|
468
468
|
Fe !== -1 && (fe -= fe - Fe), Fe = -1;
|
|
@@ -470,7 +470,7 @@ function Gi() {
|
|
|
470
470
|
for (d + ge > Y && (d = Y - ge), fe = d; fe >= 0; fe--) {
|
|
471
471
|
let Fe = !0;
|
|
472
472
|
for (let he = 0; he < ge; he++)
|
|
473
|
-
if (pe(
|
|
473
|
+
if (pe(m, fe + he) !== pe(h, he)) {
|
|
474
474
|
Fe = !1;
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
@@ -485,9 +485,9 @@ function Gi() {
|
|
|
485
485
|
}, a.prototype.lastIndexOf = function(h, d, O) {
|
|
486
486
|
return D(this, h, d, O, !1);
|
|
487
487
|
};
|
|
488
|
-
function j(
|
|
488
|
+
function j(m, h, d, O) {
|
|
489
489
|
d = Number(d) || 0;
|
|
490
|
-
const U =
|
|
490
|
+
const U = m.length - d;
|
|
491
491
|
O ? (O = Number(O), O > U && (O = U)) : O = U;
|
|
492
492
|
const F = h.length;
|
|
493
493
|
O > F / 2 && (O = F / 2);
|
|
@@ -495,21 +495,21 @@ function Gi() {
|
|
|
495
495
|
for (Y = 0; Y < O; ++Y) {
|
|
496
496
|
const ge = parseInt(h.substr(Y * 2, 2), 16);
|
|
497
497
|
if (Be(ge)) return Y;
|
|
498
|
-
|
|
498
|
+
m[d + Y] = ge;
|
|
499
499
|
}
|
|
500
500
|
return Y;
|
|
501
501
|
}
|
|
502
|
-
function X(
|
|
503
|
-
return xe(Ne(h,
|
|
502
|
+
function X(m, h, d, O) {
|
|
503
|
+
return xe(Ne(h, m.length - d), m, d, O);
|
|
504
504
|
}
|
|
505
|
-
function z(
|
|
506
|
-
return xe(ze(h),
|
|
505
|
+
function z(m, h, d, O) {
|
|
506
|
+
return xe(ze(h), m, d, O);
|
|
507
507
|
}
|
|
508
|
-
function G(
|
|
509
|
-
return xe(Ue(h),
|
|
508
|
+
function G(m, h, d, O) {
|
|
509
|
+
return xe(Ue(h), m, d, O);
|
|
510
510
|
}
|
|
511
|
-
function Q(
|
|
512
|
-
return xe(Rr(h,
|
|
511
|
+
function Q(m, h, d, O) {
|
|
512
|
+
return xe(Rr(h, m.length - d), m, d, O);
|
|
513
513
|
}
|
|
514
514
|
a.prototype.write = function(h, d, O, U) {
|
|
515
515
|
if (d === void 0)
|
|
@@ -555,15 +555,15 @@ function Gi() {
|
|
|
555
555
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
function A(
|
|
559
|
-
return h === 0 && d ===
|
|
558
|
+
function A(m, h, d) {
|
|
559
|
+
return h === 0 && d === m.length ? e.fromByteArray(m) : e.fromByteArray(m.slice(h, d));
|
|
560
560
|
}
|
|
561
|
-
function c(
|
|
562
|
-
d = Math.min(
|
|
561
|
+
function c(m, h, d) {
|
|
562
|
+
d = Math.min(m.length, d);
|
|
563
563
|
const O = [];
|
|
564
564
|
let U = h;
|
|
565
565
|
for (; U < d; ) {
|
|
566
|
-
const F =
|
|
566
|
+
const F = m[U];
|
|
567
567
|
let Y = null, ge = F > 239 ? 4 : F > 223 ? 3 : F > 191 ? 2 : 1;
|
|
568
568
|
if (U + ge <= d) {
|
|
569
569
|
let pe, fe, Fe, he;
|
|
@@ -572,56 +572,56 @@ function Gi() {
|
|
|
572
572
|
F < 128 && (Y = F);
|
|
573
573
|
break;
|
|
574
574
|
case 2:
|
|
575
|
-
pe =
|
|
575
|
+
pe = m[U + 1], (pe & 192) === 128 && (he = (F & 31) << 6 | pe & 63, he > 127 && (Y = he));
|
|
576
576
|
break;
|
|
577
577
|
case 3:
|
|
578
|
-
pe =
|
|
578
|
+
pe = m[U + 1], fe = m[U + 2], (pe & 192) === 128 && (fe & 192) === 128 && (he = (F & 15) << 12 | (pe & 63) << 6 | fe & 63, he > 2047 && (he < 55296 || he > 57343) && (Y = he));
|
|
579
579
|
break;
|
|
580
580
|
case 4:
|
|
581
|
-
pe =
|
|
581
|
+
pe = m[U + 1], fe = m[U + 2], Fe = m[U + 3], (pe & 192) === 128 && (fe & 192) === 128 && (Fe & 192) === 128 && (he = (F & 15) << 18 | (pe & 63) << 12 | (fe & 63) << 6 | Fe & 63, he > 65535 && he < 1114112 && (Y = he));
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
Y === null ? (Y = 65533, ge = 1) : Y > 65535 && (Y -= 65536, O.push(Y >>> 10 & 1023 | 55296), Y = 56320 | Y & 1023), O.push(Y), U += ge;
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return y(O);
|
|
587
587
|
}
|
|
588
588
|
const p = 4096;
|
|
589
|
-
function m
|
|
590
|
-
const h =
|
|
589
|
+
function y(m) {
|
|
590
|
+
const h = m.length;
|
|
591
591
|
if (h <= p)
|
|
592
|
-
return String.fromCharCode.apply(String,
|
|
592
|
+
return String.fromCharCode.apply(String, m);
|
|
593
593
|
let d = "", O = 0;
|
|
594
594
|
for (; O < h; )
|
|
595
595
|
d += String.fromCharCode.apply(
|
|
596
596
|
String,
|
|
597
|
-
|
|
597
|
+
m.slice(O, O += p)
|
|
598
598
|
);
|
|
599
599
|
return d;
|
|
600
600
|
}
|
|
601
|
-
function v(
|
|
601
|
+
function v(m, h, d) {
|
|
602
602
|
let O = "";
|
|
603
|
-
d = Math.min(
|
|
603
|
+
d = Math.min(m.length, d);
|
|
604
604
|
for (let U = h; U < d; ++U)
|
|
605
|
-
O += String.fromCharCode(
|
|
605
|
+
O += String.fromCharCode(m[U] & 127);
|
|
606
606
|
return O;
|
|
607
607
|
}
|
|
608
|
-
function S(
|
|
608
|
+
function S(m, h, d) {
|
|
609
609
|
let O = "";
|
|
610
|
-
d = Math.min(
|
|
610
|
+
d = Math.min(m.length, d);
|
|
611
611
|
for (let U = h; U < d; ++U)
|
|
612
|
-
O += String.fromCharCode(
|
|
612
|
+
O += String.fromCharCode(m[U]);
|
|
613
613
|
return O;
|
|
614
614
|
}
|
|
615
|
-
function I(
|
|
616
|
-
const O =
|
|
615
|
+
function I(m, h, d) {
|
|
616
|
+
const O = m.length;
|
|
617
617
|
(!h || h < 0) && (h = 0), (!d || d < 0 || d > O) && (d = O);
|
|
618
618
|
let U = "";
|
|
619
619
|
for (let F = h; F < d; ++F)
|
|
620
|
-
U += Ce[
|
|
620
|
+
U += Ce[m[F]];
|
|
621
621
|
return U;
|
|
622
622
|
}
|
|
623
|
-
function C(
|
|
624
|
-
const O =
|
|
623
|
+
function C(m, h, d) {
|
|
624
|
+
const O = m.slice(h, d);
|
|
625
625
|
let U = "";
|
|
626
626
|
for (let F = 0; F < O.length - 1; F += 2)
|
|
627
627
|
U += String.fromCharCode(O[F] + O[F + 1] * 256);
|
|
@@ -633,9 +633,9 @@ function Gi() {
|
|
|
633
633
|
const U = this.subarray(h, d);
|
|
634
634
|
return Object.setPrototypeOf(U, a.prototype), U;
|
|
635
635
|
};
|
|
636
|
-
function R(
|
|
637
|
-
if (
|
|
638
|
-
if (
|
|
636
|
+
function R(m, h, d) {
|
|
637
|
+
if (m % 1 !== 0 || m < 0) throw new RangeError("offset is not uint");
|
|
638
|
+
if (m + h > d) throw new RangeError("Trying to access beyond buffer length");
|
|
639
639
|
}
|
|
640
640
|
a.prototype.readUintLE = a.prototype.readUIntLE = function(h, d, O) {
|
|
641
641
|
h = h >>> 0, d = d >>> 0, O || R(h, d, this.length);
|
|
@@ -719,10 +719,10 @@ function Gi() {
|
|
|
719
719
|
}, a.prototype.readDoubleBE = function(h, d) {
|
|
720
720
|
return h = h >>> 0, d || R(h, 8, this.length), t.read(this, h, !1, 52, 8);
|
|
721
721
|
};
|
|
722
|
-
function u(
|
|
723
|
-
if (!a.isBuffer(
|
|
722
|
+
function u(m, h, d, O, U, F) {
|
|
723
|
+
if (!a.isBuffer(m)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
724
724
|
if (h > U || h < F) throw new RangeError('"value" argument is out of bounds');
|
|
725
|
-
if (d + O >
|
|
725
|
+
if (d + O > m.length) throw new RangeError("Index out of range");
|
|
726
726
|
}
|
|
727
727
|
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(h, d, O, U) {
|
|
728
728
|
if (h = +h, d = d >>> 0, O = O >>> 0, !U) {
|
|
@@ -753,19 +753,19 @@ function Gi() {
|
|
|
753
753
|
}, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(h, d, O) {
|
|
754
754
|
return h = +h, d = d >>> 0, O || u(this, h, d, 4, 4294967295, 0), this[d] = h >>> 24, this[d + 1] = h >>> 16, this[d + 2] = h >>> 8, this[d + 3] = h & 255, d + 4;
|
|
755
755
|
};
|
|
756
|
-
function l(
|
|
757
|
-
we(h, O, U,
|
|
756
|
+
function l(m, h, d, O, U) {
|
|
757
|
+
we(h, O, U, m, d, 7);
|
|
758
758
|
let F = Number(h & BigInt(4294967295));
|
|
759
|
-
|
|
759
|
+
m[d++] = F, F = F >> 8, m[d++] = F, F = F >> 8, m[d++] = F, F = F >> 8, m[d++] = F;
|
|
760
760
|
let Y = Number(h >> BigInt(32) & BigInt(4294967295));
|
|
761
|
-
return
|
|
761
|
+
return m[d++] = Y, Y = Y >> 8, m[d++] = Y, Y = Y >> 8, m[d++] = Y, Y = Y >> 8, m[d++] = Y, d;
|
|
762
762
|
}
|
|
763
|
-
function w(
|
|
764
|
-
we(h, O, U,
|
|
763
|
+
function w(m, h, d, O, U) {
|
|
764
|
+
we(h, O, U, m, d, 7);
|
|
765
765
|
let F = Number(h & BigInt(4294967295));
|
|
766
|
-
|
|
766
|
+
m[d + 7] = F, F = F >> 8, m[d + 6] = F, F = F >> 8, m[d + 5] = F, F = F >> 8, m[d + 4] = F;
|
|
767
767
|
let Y = Number(h >> BigInt(32) & BigInt(4294967295));
|
|
768
|
-
return
|
|
768
|
+
return m[d + 3] = Y, Y = Y >> 8, m[d + 2] = Y, Y = Y >> 8, m[d + 1] = Y, Y = Y >> 8, m[d] = Y, d + 8;
|
|
769
769
|
}
|
|
770
770
|
a.prototype.writeBigUInt64LE = At(function(h, d = 0) {
|
|
771
771
|
return l(this, h, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
@@ -804,20 +804,20 @@ function Gi() {
|
|
|
804
804
|
}), a.prototype.writeBigInt64BE = At(function(h, d = 0) {
|
|
805
805
|
return w(this, h, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
806
806
|
});
|
|
807
|
-
function E(
|
|
808
|
-
if (d + O >
|
|
807
|
+
function E(m, h, d, O, U, F) {
|
|
808
|
+
if (d + O > m.length) throw new RangeError("Index out of range");
|
|
809
809
|
if (d < 0) throw new RangeError("Index out of range");
|
|
810
810
|
}
|
|
811
|
-
function P(
|
|
812
|
-
return h = +h, d = d >>> 0, U || E(
|
|
811
|
+
function P(m, h, d, O, U) {
|
|
812
|
+
return h = +h, d = d >>> 0, U || E(m, h, d, 4), t.write(m, h, d, O, 23, 4), d + 4;
|
|
813
813
|
}
|
|
814
814
|
a.prototype.writeFloatLE = function(h, d, O) {
|
|
815
815
|
return P(this, h, d, !0, O);
|
|
816
816
|
}, a.prototype.writeFloatBE = function(h, d, O) {
|
|
817
817
|
return P(this, h, d, !1, O);
|
|
818
818
|
};
|
|
819
|
-
function V(
|
|
820
|
-
return h = +h, d = d >>> 0, U || E(
|
|
819
|
+
function V(m, h, d, O, U) {
|
|
820
|
+
return h = +h, d = d >>> 0, U || E(m, h, d, 8), t.write(m, h, d, O, 52, 8), d + 8;
|
|
821
821
|
}
|
|
822
822
|
a.prototype.writeDoubleLE = function(h, d, O) {
|
|
823
823
|
return V(this, h, d, !0, O);
|
|
@@ -867,17 +867,17 @@ function Gi() {
|
|
|
867
867
|
return this;
|
|
868
868
|
};
|
|
869
869
|
const re = {};
|
|
870
|
-
function ae(
|
|
871
|
-
re[
|
|
870
|
+
function ae(m, h, d) {
|
|
871
|
+
re[m] = class extends d {
|
|
872
872
|
constructor() {
|
|
873
873
|
super(), Object.defineProperty(this, "message", {
|
|
874
874
|
value: h.apply(this, arguments),
|
|
875
875
|
writable: !0,
|
|
876
876
|
configurable: !0
|
|
877
|
-
}), this.name = `${this.name} [${
|
|
877
|
+
}), this.name = `${this.name} [${m}]`, this.stack, delete this.name;
|
|
878
878
|
}
|
|
879
879
|
get code() {
|
|
880
|
-
return
|
|
880
|
+
return m;
|
|
881
881
|
}
|
|
882
882
|
set code(U) {
|
|
883
883
|
Object.defineProperty(this, "code", {
|
|
@@ -888,74 +888,74 @@ function Gi() {
|
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
toString() {
|
|
891
|
-
return `${this.name} [${
|
|
891
|
+
return `${this.name} [${m}]: ${this.message}`;
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
ae(
|
|
896
896
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
897
|
-
function(
|
|
898
|
-
return
|
|
897
|
+
function(m) {
|
|
898
|
+
return m ? `${m} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
899
899
|
},
|
|
900
900
|
RangeError
|
|
901
901
|
), ae(
|
|
902
902
|
"ERR_INVALID_ARG_TYPE",
|
|
903
|
-
function(
|
|
904
|
-
return `The "${
|
|
903
|
+
function(m, h) {
|
|
904
|
+
return `The "${m}" argument must be of type number. Received type ${typeof h}`;
|
|
905
905
|
},
|
|
906
906
|
TypeError
|
|
907
907
|
), ae(
|
|
908
908
|
"ERR_OUT_OF_RANGE",
|
|
909
|
-
function(
|
|
910
|
-
let O = `The value of "${
|
|
909
|
+
function(m, h, d) {
|
|
910
|
+
let O = `The value of "${m}" is out of range.`, U = d;
|
|
911
911
|
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? U = Se(String(d)) : typeof d == "bigint" && (U = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (U = Se(U)), U += "n"), O += ` It must be ${h}. Received ${U}`, O;
|
|
912
912
|
},
|
|
913
913
|
RangeError
|
|
914
914
|
);
|
|
915
|
-
function Se(
|
|
916
|
-
let h = "", d =
|
|
917
|
-
const O =
|
|
915
|
+
function Se(m) {
|
|
916
|
+
let h = "", d = m.length;
|
|
917
|
+
const O = m[0] === "-" ? 1 : 0;
|
|
918
918
|
for (; d >= O + 4; d -= 3)
|
|
919
|
-
h = `_${
|
|
920
|
-
return `${
|
|
919
|
+
h = `_${m.slice(d - 3, d)}${h}`;
|
|
920
|
+
return `${m.slice(0, d)}${h}`;
|
|
921
921
|
}
|
|
922
|
-
function de(
|
|
923
|
-
Ie(h, "offset"), (
|
|
922
|
+
function de(m, h, d) {
|
|
923
|
+
Ie(h, "offset"), (m[h] === void 0 || m[h + d] === void 0) && be(h, m.length - (d + 1));
|
|
924
924
|
}
|
|
925
|
-
function we(
|
|
926
|
-
if (
|
|
925
|
+
function we(m, h, d, O, U, F) {
|
|
926
|
+
if (m > d || m < h) {
|
|
927
927
|
const Y = typeof h == "bigint" ? "n" : "";
|
|
928
928
|
let ge;
|
|
929
|
-
throw h === 0 || h === BigInt(0) ? ge = `>= 0${Y} and < 2${Y} ** ${(F + 1) * 8}${Y}` : ge = `>= -(2${Y} ** ${(F + 1) * 8 - 1}${Y}) and < 2 ** ${(F + 1) * 8 - 1}${Y}`, new re.ERR_OUT_OF_RANGE("value", ge,
|
|
929
|
+
throw h === 0 || h === BigInt(0) ? ge = `>= 0${Y} and < 2${Y} ** ${(F + 1) * 8}${Y}` : ge = `>= -(2${Y} ** ${(F + 1) * 8 - 1}${Y}) and < 2 ** ${(F + 1) * 8 - 1}${Y}`, new re.ERR_OUT_OF_RANGE("value", ge, m);
|
|
930
930
|
}
|
|
931
931
|
de(O, U, F);
|
|
932
932
|
}
|
|
933
|
-
function Ie(
|
|
934
|
-
if (typeof
|
|
935
|
-
throw new re.ERR_INVALID_ARG_TYPE(h, "number",
|
|
933
|
+
function Ie(m, h) {
|
|
934
|
+
if (typeof m != "number")
|
|
935
|
+
throw new re.ERR_INVALID_ARG_TYPE(h, "number", m);
|
|
936
936
|
}
|
|
937
|
-
function be(
|
|
938
|
-
throw Math.floor(
|
|
937
|
+
function be(m, h, d) {
|
|
938
|
+
throw Math.floor(m) !== m ? (Ie(m, d), new re.ERR_OUT_OF_RANGE("offset", "an integer", m)) : h < 0 ? new re.ERR_BUFFER_OUT_OF_BOUNDS() : new re.ERR_OUT_OF_RANGE(
|
|
939
939
|
"offset",
|
|
940
940
|
`>= 0 and <= ${h}`,
|
|
941
|
-
|
|
941
|
+
m
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
944
|
const Oe = /[^+/0-9A-Za-z-_]/g;
|
|
945
|
-
function Mt(
|
|
946
|
-
if (
|
|
947
|
-
for (;
|
|
948
|
-
|
|
949
|
-
return
|
|
945
|
+
function Mt(m) {
|
|
946
|
+
if (m = m.split("=")[0], m = m.trim().replace(Oe, ""), m.length < 2) return "";
|
|
947
|
+
for (; m.length % 4 !== 0; )
|
|
948
|
+
m = m + "=";
|
|
949
|
+
return m;
|
|
950
950
|
}
|
|
951
|
-
function Ne(
|
|
951
|
+
function Ne(m, h) {
|
|
952
952
|
h = h || 1 / 0;
|
|
953
953
|
let d;
|
|
954
|
-
const O =
|
|
954
|
+
const O = m.length;
|
|
955
955
|
let U = null;
|
|
956
956
|
const F = [];
|
|
957
957
|
for (let Y = 0; Y < O; ++Y) {
|
|
958
|
-
if (d =
|
|
958
|
+
if (d = m.charCodeAt(Y), d > 55295 && d < 57344) {
|
|
959
959
|
if (!U) {
|
|
960
960
|
if (d > 56319) {
|
|
961
961
|
(h -= 3) > -1 && F.push(239, 191, 189);
|
|
@@ -1002,45 +1002,45 @@ function Gi() {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
return F;
|
|
1004
1004
|
}
|
|
1005
|
-
function ze(
|
|
1005
|
+
function ze(m) {
|
|
1006
1006
|
const h = [];
|
|
1007
|
-
for (let d = 0; d <
|
|
1008
|
-
h.push(
|
|
1007
|
+
for (let d = 0; d < m.length; ++d)
|
|
1008
|
+
h.push(m.charCodeAt(d) & 255);
|
|
1009
1009
|
return h;
|
|
1010
1010
|
}
|
|
1011
|
-
function Rr(
|
|
1011
|
+
function Rr(m, h) {
|
|
1012
1012
|
let d, O, U;
|
|
1013
1013
|
const F = [];
|
|
1014
|
-
for (let Y = 0; Y <
|
|
1015
|
-
d =
|
|
1014
|
+
for (let Y = 0; Y < m.length && !((h -= 2) < 0); ++Y)
|
|
1015
|
+
d = m.charCodeAt(Y), O = d >> 8, U = d % 256, F.push(U), F.push(O);
|
|
1016
1016
|
return F;
|
|
1017
1017
|
}
|
|
1018
|
-
function Ue(
|
|
1019
|
-
return e.toByteArray(Mt(
|
|
1018
|
+
function Ue(m) {
|
|
1019
|
+
return e.toByteArray(Mt(m));
|
|
1020
1020
|
}
|
|
1021
|
-
function xe(
|
|
1021
|
+
function xe(m, h, d, O) {
|
|
1022
1022
|
let U;
|
|
1023
|
-
for (U = 0; U < O && !(U + d >= h.length || U >=
|
|
1024
|
-
h[U + d] =
|
|
1023
|
+
for (U = 0; U < O && !(U + d >= h.length || U >= m.length); ++U)
|
|
1024
|
+
h[U + d] = m[U];
|
|
1025
1025
|
return U;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function mt(m, h) {
|
|
1028
|
+
return m instanceof h || m != null && m.constructor != null && m.constructor.name != null && m.constructor.name === h.name;
|
|
1029
1029
|
}
|
|
1030
|
-
function Be(
|
|
1031
|
-
return
|
|
1030
|
+
function Be(m) {
|
|
1031
|
+
return m !== m;
|
|
1032
1032
|
}
|
|
1033
1033
|
const Ce = function() {
|
|
1034
|
-
const
|
|
1034
|
+
const m = "0123456789abcdef", h = new Array(256);
|
|
1035
1035
|
for (let d = 0; d < 16; ++d) {
|
|
1036
1036
|
const O = d * 16;
|
|
1037
1037
|
for (let U = 0; U < 16; ++U)
|
|
1038
|
-
h[O + U] =
|
|
1038
|
+
h[O + U] = m[d] + m[U];
|
|
1039
1039
|
}
|
|
1040
1040
|
return h;
|
|
1041
1041
|
}();
|
|
1042
|
-
function At(
|
|
1043
|
-
return typeof BigInt > "u" ? De :
|
|
1042
|
+
function At(m) {
|
|
1043
|
+
return typeof BigInt > "u" ? De : m;
|
|
1044
1044
|
}
|
|
1045
1045
|
function De() {
|
|
1046
1046
|
throw new Error("BigInt not supported");
|
|
@@ -1190,16 +1190,16 @@ function Do(n, e = !1) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
return [t, r];
|
|
1192
1192
|
}
|
|
1193
|
-
const
|
|
1193
|
+
const yc = (n, e) => BigInt(n >>> 0) << Bi | BigInt(e >>> 0), mc = (n, e, t) => n >>> t, _c = (n, e, t) => n << 32 - t | e >>> t, wc = (n, e, t) => n >>> t | e << 32 - t, bc = (n, e, t) => n << 32 - t | e >>> t, Rc = (n, e, t) => n << 64 - t | e >>> t - 32, Ec = (n, e, t) => n >>> t - 32 | e << 64 - t, Sc = (n, e) => e, Ac = (n, e) => n, Fo = (n, e, t) => n << t | e >>> 32 - t, zo = (n, e, t) => e << t | n >>> 32 - t, $o = (n, e, t) => e << t - 32 | n >>> 64 - t, Ko = (n, e, t) => n << t - 32 | e >>> 64 - t;
|
|
1194
1194
|
function Ic(n, e, t, r) {
|
|
1195
1195
|
const s = (e >>> 0) + (r >>> 0);
|
|
1196
1196
|
return { h: n + t + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
1197
1197
|
}
|
|
1198
|
-
const vc = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), Oc = (n, e, t, r) => e + t + r + (n / 2 ** 32 | 0) | 0, kc = (n, e, t, r) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0), Tc = (n, e, t, r, s) => e + t + r + s + (n / 2 ** 32 | 0) | 0, Nc = (n, e, t, r, s) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0) + (s >>> 0), xc = (n, e, t, r, s, i) => e + t + r + s + i + (n / 2 ** 32 | 0) | 0,
|
|
1198
|
+
const vc = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), Oc = (n, e, t, r) => e + t + r + (n / 2 ** 32 | 0) | 0, kc = (n, e, t, r) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0), Tc = (n, e, t, r, s) => e + t + r + s + (n / 2 ** 32 | 0) | 0, Nc = (n, e, t, r, s) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0) + (s >>> 0), xc = (n, e, t, r, s, i) => e + t + r + s + i + (n / 2 ** 32 | 0) | 0, ye = {
|
|
1199
1199
|
fromBig: Uo,
|
|
1200
1200
|
split: Do,
|
|
1201
|
-
toBig:
|
|
1202
|
-
shrSH:
|
|
1201
|
+
toBig: yc,
|
|
1202
|
+
shrSH: mc,
|
|
1203
1203
|
shrSL: _c,
|
|
1204
1204
|
rotrSH: wc,
|
|
1205
1205
|
rotrSL: bc,
|
|
@@ -1218,7 +1218,7 @@ const vc = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), Oc = (n, e, t, r) =>
|
|
|
1218
1218
|
add4H: Tc,
|
|
1219
1219
|
add5H: xc,
|
|
1220
1220
|
add5L: Nc
|
|
1221
|
-
}, [Bc, Lc] =
|
|
1221
|
+
}, [Bc, Lc] = ye.split([
|
|
1222
1222
|
"0x428a2f98d728ae22",
|
|
1223
1223
|
"0x7137449123ef65cd",
|
|
1224
1224
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -1317,17 +1317,17 @@ class Cc extends Po {
|
|
|
1317
1317
|
for (let $ = 0; $ < 16; $++, t += 4)
|
|
1318
1318
|
Qt[$] = e.getUint32(t), er[$] = e.getUint32(t += 4);
|
|
1319
1319
|
for (let $ = 16; $ < 80; $++) {
|
|
1320
|
-
const J = Qt[$ - 15] | 0, W = er[$ - 15] | 0, D =
|
|
1320
|
+
const J = Qt[$ - 15] | 0, W = er[$ - 15] | 0, D = ye.rotrSH(J, W, 1) ^ ye.rotrSH(J, W, 8) ^ ye.shrSH(J, W, 7), Z = ye.rotrSL(J, W, 1) ^ ye.rotrSL(J, W, 8) ^ ye.shrSL(J, W, 7), j = Qt[$ - 2] | 0, X = er[$ - 2] | 0, z = ye.rotrSH(j, X, 19) ^ ye.rotrBH(j, X, 61) ^ ye.shrSH(j, X, 6), G = ye.rotrSL(j, X, 19) ^ ye.rotrBL(j, X, 61) ^ ye.shrSL(j, X, 6), Q = ye.add4L(Z, G, er[$ - 7], er[$ - 16]), A = ye.add4H(Q, D, z, Qt[$ - 7], Qt[$ - 16]);
|
|
1321
1321
|
Qt[$] = A | 0, er[$] = Q | 0;
|
|
1322
1322
|
}
|
|
1323
1323
|
let { Ah: r, Al: s, Bh: i, Bl: o, Ch: a, Cl: f, Dh: g, Dl: _, Eh: b, El: x, Fh: T, Fl: L, Gh: k, Gl: N, Hh: M, Hl: H } = this;
|
|
1324
1324
|
for (let $ = 0; $ < 80; $++) {
|
|
1325
|
-
const J =
|
|
1326
|
-
M = k | 0, H = N | 0, k = T | 0, N = L | 0, T = b | 0, L = x | 0, { h: b, l: x } =
|
|
1327
|
-
const p =
|
|
1328
|
-
r =
|
|
1325
|
+
const J = ye.rotrSH(b, x, 14) ^ ye.rotrSH(b, x, 18) ^ ye.rotrBH(b, x, 41), W = ye.rotrSL(b, x, 14) ^ ye.rotrSL(b, x, 18) ^ ye.rotrBL(b, x, 41), D = b & T ^ ~b & k, Z = x & L ^ ~x & N, j = ye.add5L(H, W, Z, Lc[$], er[$]), X = ye.add5H(j, M, J, D, Bc[$], Qt[$]), z = j | 0, G = ye.rotrSH(r, s, 28) ^ ye.rotrBH(r, s, 34) ^ ye.rotrBH(r, s, 39), Q = ye.rotrSL(r, s, 28) ^ ye.rotrBL(r, s, 34) ^ ye.rotrBL(r, s, 39), A = r & i ^ r & a ^ i & a, c = s & o ^ s & f ^ o & f;
|
|
1326
|
+
M = k | 0, H = N | 0, k = T | 0, N = L | 0, T = b | 0, L = x | 0, { h: b, l: x } = ye.add(g | 0, _ | 0, X | 0, z | 0), g = a | 0, _ = f | 0, a = i | 0, f = o | 0, i = r | 0, o = s | 0;
|
|
1327
|
+
const p = ye.add3L(z, Q, c);
|
|
1328
|
+
r = ye.add3H(p, X, G, A), s = p | 0;
|
|
1329
1329
|
}
|
|
1330
|
-
({ h: r, l: s } =
|
|
1330
|
+
({ h: r, l: s } = ye.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: i, l: o } = ye.add(this.Bh | 0, this.Bl | 0, i | 0, o | 0), { h: a, l: f } = ye.add(this.Ch | 0, this.Cl | 0, a | 0, f | 0), { h: g, l: _ } = ye.add(this.Dh | 0, this.Dl | 0, g | 0, _ | 0), { h: b, l: x } = ye.add(this.Eh | 0, this.El | 0, b | 0, x | 0), { h: T, l: L } = ye.add(this.Fh | 0, this.Fl | 0, T | 0, L | 0), { h: k, l: N } = ye.add(this.Gh | 0, this.Gl | 0, k | 0, N | 0), { h: M, l: H } = ye.add(this.Hh | 0, this.Hl | 0, M | 0, H | 0), this.set(r, s, i, o, a, f, g, _, b, x, T, L, k, N, M, H);
|
|
1331
1331
|
}
|
|
1332
1332
|
roundClean() {
|
|
1333
1333
|
Qt.fill(0), er.fill(0);
|
|
@@ -1941,10 +1941,10 @@ function ou(n) {
|
|
|
1941
1941
|
J(I);
|
|
1942
1942
|
const { a: C, d: R } = e, { ex: u, ey: l, ez: w, et: E } = this, { ex: P, ey: V, ez: re, et: ae } = I;
|
|
1943
1943
|
if (C === BigInt(-1)) {
|
|
1944
|
-
const
|
|
1944
|
+
const mt = _((l - u) * (V + P)), Be = _((l + u) * (V - P)), Ce = _(Be - mt);
|
|
1945
1945
|
if (Ce === xt)
|
|
1946
1946
|
return this.double();
|
|
1947
|
-
const At = _(w * un * ae), De = _(E * un * re),
|
|
1947
|
+
const At = _(w * un * ae), De = _(E * un * re), m = De + At, h = Be + mt, d = De - At, O = _(m * Ce), U = _(h * d), F = _(m * d), Y = _(Ce * h);
|
|
1948
1948
|
return new W(O, U, Y, F);
|
|
1949
1949
|
}
|
|
1950
1950
|
const Se = _(u * P), de = _(l * V), we = _(E * R * ae), Ie = _(w * re), be = _((u + l) * (P + V) - Se - de), Oe = Ie - we, Mt = Ie + we, Ne = _(de - C * Se), ze = _(be * Oe), Rr = _(Mt * Ne), Ue = _(be * Ne), xe = _(Oe * Mt);
|
|
@@ -2055,7 +2055,7 @@ function ou(n) {
|
|
|
2055
2055
|
return ht("result", re, a * 2);
|
|
2056
2056
|
}
|
|
2057
2057
|
const p = iu;
|
|
2058
|
-
function
|
|
2058
|
+
function y(S, I, C, R = p) {
|
|
2059
2059
|
const { context: u, zip215: l } = R, w = t.BYTES;
|
|
2060
2060
|
S = ht("signature", S, 2 * w), I = ht("message", I), s && (I = s(I));
|
|
2061
2061
|
const E = Ar(S.slice(w, 2 * w));
|
|
@@ -2074,7 +2074,7 @@ function ou(n) {
|
|
|
2074
2074
|
CURVE: e,
|
|
2075
2075
|
getPublicKey: Q,
|
|
2076
2076
|
sign: c,
|
|
2077
|
-
verify:
|
|
2077
|
+
verify: y,
|
|
2078
2078
|
ExtendedPoint: W,
|
|
2079
2079
|
utils: {
|
|
2080
2080
|
getExtendedPublicKey: G,
|
|
@@ -2137,10 +2137,10 @@ const du = Vo(Ji, void 0, !0), pu = {
|
|
|
2137
2137
|
uvRatio: fu
|
|
2138
2138
|
}, Pr = ou(pu);
|
|
2139
2139
|
var pn = { exports: {} };
|
|
2140
|
-
const gu = {},
|
|
2140
|
+
const gu = {}, yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2141
2141
|
__proto__: null,
|
|
2142
2142
|
default: gu
|
|
2143
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2143
|
+
}, Symbol.toStringTag, { value: "Module" })), mu = /* @__PURE__ */ qi(yu);
|
|
2144
2144
|
var _u = pn.exports, Ws;
|
|
2145
2145
|
function Xo() {
|
|
2146
2146
|
return Ws || (Ws = 1, function(n) {
|
|
@@ -2162,7 +2162,7 @@ function Xo() {
|
|
|
2162
2162
|
typeof e == "object" ? e.exports = i : t.BN = i, i.BN = i, i.wordSize = 26;
|
|
2163
2163
|
var o;
|
|
2164
2164
|
try {
|
|
2165
|
-
typeof window < "u" && typeof window.Buffer < "u" ? o = window.Buffer : o =
|
|
2165
|
+
typeof window < "u" && typeof window.Buffer < "u" ? o = window.Buffer : o = mu.Buffer;
|
|
2166
2166
|
} catch {
|
|
2167
2167
|
}
|
|
2168
2168
|
i.isBN = function(c) {
|
|
@@ -2171,15 +2171,15 @@ function Xo() {
|
|
|
2171
2171
|
return c.cmp(p) > 0 ? c : p;
|
|
2172
2172
|
}, i.min = function(c, p) {
|
|
2173
2173
|
return c.cmp(p) < 0 ? c : p;
|
|
2174
|
-
}, i.prototype._init = function(c, p,
|
|
2174
|
+
}, i.prototype._init = function(c, p, y) {
|
|
2175
2175
|
if (typeof c == "number")
|
|
2176
|
-
return this._initNumber(c, p,
|
|
2176
|
+
return this._initNumber(c, p, y);
|
|
2177
2177
|
if (typeof c == "object")
|
|
2178
|
-
return this._initArray(c, p,
|
|
2178
|
+
return this._initArray(c, p, y);
|
|
2179
2179
|
p === "hex" && (p = 16), r(p === (p | 0) && p >= 2 && p <= 36), c = c.toString().replace(/\s+/g, "");
|
|
2180
2180
|
var v = 0;
|
|
2181
|
-
c[0] === "-" && (v++, this.negative = 1), v < c.length && (p === 16 ? this._parseHex(c, v,
|
|
2182
|
-
}, i.prototype._initNumber = function(c, p,
|
|
2181
|
+
c[0] === "-" && (v++, this.negative = 1), v < c.length && (p === 16 ? this._parseHex(c, v, y) : (this._parseBase(c, p, v), y === "le" && this._initArray(this.toArray(), p, y)));
|
|
2182
|
+
}, i.prototype._initNumber = function(c, p, y) {
|
|
2183
2183
|
c < 0 && (this.negative = 1, c = -c), c < 67108864 ? (this.words = [c & 67108863], this.length = 1) : c < 4503599627370496 ? (this.words = [
|
|
2184
2184
|
c & 67108863,
|
|
2185
2185
|
c / 67108864 & 67108863
|
|
@@ -2187,18 +2187,18 @@ function Xo() {
|
|
|
2187
2187
|
c & 67108863,
|
|
2188
2188
|
c / 67108864 & 67108863,
|
|
2189
2189
|
1
|
|
2190
|
-
], this.length = 3),
|
|
2191
|
-
}, i.prototype._initArray = function(c, p,
|
|
2190
|
+
], this.length = 3), y === "le" && this._initArray(this.toArray(), p, y);
|
|
2191
|
+
}, i.prototype._initArray = function(c, p, y) {
|
|
2192
2192
|
if (r(typeof c.length == "number"), c.length <= 0)
|
|
2193
2193
|
return this.words = [0], this.length = 1, this;
|
|
2194
2194
|
this.length = Math.ceil(c.length / 3), this.words = new Array(this.length);
|
|
2195
2195
|
for (var v = 0; v < this.length; v++)
|
|
2196
2196
|
this.words[v] = 0;
|
|
2197
2197
|
var S, I, C = 0;
|
|
2198
|
-
if (
|
|
2198
|
+
if (y === "be")
|
|
2199
2199
|
for (v = c.length - 1, S = 0; v >= 0; v -= 3)
|
|
2200
2200
|
I = c[v] | c[v - 1] << 8 | c[v - 2] << 16, this.words[S] |= I << C & 67108863, this.words[S + 1] = I >>> 26 - C & 67108863, C += 24, C >= 26 && (C -= 26, S++);
|
|
2201
|
-
else if (
|
|
2201
|
+
else if (y === "le")
|
|
2202
2202
|
for (v = 0, S = 0; v < c.length; v += 3)
|
|
2203
2203
|
I = c[v] | c[v + 1] << 8 | c[v + 2] << 16, this.words[S] |= I << C & 67108863, this.words[S + 1] = I >>> 26 - C & 67108863, C += 24, C >= 26 && (C -= 26, S++);
|
|
2204
2204
|
return this._strip();
|
|
@@ -2214,15 +2214,15 @@ function Xo() {
|
|
|
2214
2214
|
r(!1, "Invalid character in " + A);
|
|
2215
2215
|
}
|
|
2216
2216
|
function f(A, c, p) {
|
|
2217
|
-
var
|
|
2218
|
-
return p - 1 >= c && (
|
|
2217
|
+
var y = a(A, p);
|
|
2218
|
+
return p - 1 >= c && (y |= a(A, p - 1) << 4), y;
|
|
2219
2219
|
}
|
|
2220
|
-
i.prototype._parseHex = function(c, p,
|
|
2220
|
+
i.prototype._parseHex = function(c, p, y) {
|
|
2221
2221
|
this.length = Math.ceil((c.length - p) / 6), this.words = new Array(this.length);
|
|
2222
2222
|
for (var v = 0; v < this.length; v++)
|
|
2223
2223
|
this.words[v] = 0;
|
|
2224
2224
|
var S = 0, I = 0, C;
|
|
2225
|
-
if (
|
|
2225
|
+
if (y === "be")
|
|
2226
2226
|
for (v = c.length - 1; v >= p; v -= 2)
|
|
2227
2227
|
C = f(c, p, v) << S, this.words[I] |= C & 67108863, S >= 18 ? (S -= 18, I += 1, this.words[I] |= C >>> 26) : S += 8;
|
|
2228
2228
|
else {
|
|
@@ -2232,19 +2232,19 @@ function Xo() {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
this._strip();
|
|
2234
2234
|
};
|
|
2235
|
-
function g(A, c, p,
|
|
2235
|
+
function g(A, c, p, y) {
|
|
2236
2236
|
for (var v = 0, S = 0, I = Math.min(A.length, p), C = c; C < I; C++) {
|
|
2237
2237
|
var R = A.charCodeAt(C) - 48;
|
|
2238
|
-
v *=
|
|
2238
|
+
v *= y, R >= 49 ? S = R - 49 + 10 : R >= 17 ? S = R - 17 + 10 : S = R, r(R >= 0 && S < y, "Invalid character"), v += S;
|
|
2239
2239
|
}
|
|
2240
2240
|
return v;
|
|
2241
2241
|
}
|
|
2242
|
-
i.prototype._parseBase = function(c, p,
|
|
2242
|
+
i.prototype._parseBase = function(c, p, y) {
|
|
2243
2243
|
this.words = [0], this.length = 1;
|
|
2244
2244
|
for (var v = 0, S = 1; S <= 67108863; S *= p)
|
|
2245
2245
|
v++;
|
|
2246
2246
|
v--, S = S / p | 0;
|
|
2247
|
-
for (var I = c.length -
|
|
2247
|
+
for (var I = c.length - y, C = I % v, R = Math.min(I, I - C) + y, u = 0, l = y; l < R; l += v)
|
|
2248
2248
|
u = g(c, l, l + v, p), this.imuln(S), this.words[0] + u < 67108864 ? this.words[0] += u : this._iaddn(u);
|
|
2249
2249
|
if (C !== 0) {
|
|
2250
2250
|
var w = 1;
|
|
@@ -2394,28 +2394,28 @@ function Xo() {
|
|
|
2394
2394
|
];
|
|
2395
2395
|
i.prototype.toString = function(c, p) {
|
|
2396
2396
|
c = c || 10, p = p | 0 || 1;
|
|
2397
|
-
var
|
|
2397
|
+
var y;
|
|
2398
2398
|
if (c === 16 || c === "hex") {
|
|
2399
|
-
|
|
2399
|
+
y = "";
|
|
2400
2400
|
for (var v = 0, S = 0, I = 0; I < this.length; I++) {
|
|
2401
2401
|
var C = this.words[I], R = ((C << v | S) & 16777215).toString(16);
|
|
2402
|
-
S = C >>> 24 - v & 16777215, v += 2, v >= 26 && (v -= 26, I--), S !== 0 || I !== this.length - 1 ?
|
|
2402
|
+
S = C >>> 24 - v & 16777215, v += 2, v >= 26 && (v -= 26, I--), S !== 0 || I !== this.length - 1 ? y = x[6 - R.length] + R + y : y = R + y;
|
|
2403
2403
|
}
|
|
2404
|
-
for (S !== 0 && (
|
|
2405
|
-
|
|
2406
|
-
return this.negative !== 0 && (
|
|
2404
|
+
for (S !== 0 && (y = S.toString(16) + y); y.length % p !== 0; )
|
|
2405
|
+
y = "0" + y;
|
|
2406
|
+
return this.negative !== 0 && (y = "-" + y), y;
|
|
2407
2407
|
}
|
|
2408
2408
|
if (c === (c | 0) && c >= 2 && c <= 36) {
|
|
2409
2409
|
var u = T[c], l = L[c];
|
|
2410
|
-
|
|
2410
|
+
y = "";
|
|
2411
2411
|
var w = this.clone();
|
|
2412
2412
|
for (w.negative = 0; !w.isZero(); ) {
|
|
2413
2413
|
var E = w.modrn(l).toString(c);
|
|
2414
|
-
w = w.idivn(l), w.isZero() ?
|
|
2414
|
+
w = w.idivn(l), w.isZero() ? y = E + y : y = x[u - E.length] + E + y;
|
|
2415
2415
|
}
|
|
2416
|
-
for (this.isZero() && (
|
|
2417
|
-
|
|
2418
|
-
return this.negative !== 0 && (
|
|
2416
|
+
for (this.isZero() && (y = "0" + y); y.length % p !== 0; )
|
|
2417
|
+
y = "0" + y;
|
|
2418
|
+
return this.negative !== 0 && (y = "-" + y), y;
|
|
2419
2419
|
}
|
|
2420
2420
|
r(!1, "Base should be between 2 and 36");
|
|
2421
2421
|
}, i.prototype.toNumber = function() {
|
|
@@ -2431,53 +2431,53 @@ function Xo() {
|
|
|
2431
2431
|
var k = function(c, p) {
|
|
2432
2432
|
return c.allocUnsafe ? c.allocUnsafe(p) : new c(p);
|
|
2433
2433
|
};
|
|
2434
|
-
i.prototype.toArrayLike = function(c, p,
|
|
2434
|
+
i.prototype.toArrayLike = function(c, p, y) {
|
|
2435
2435
|
this._strip();
|
|
2436
|
-
var v = this.byteLength(), S =
|
|
2436
|
+
var v = this.byteLength(), S = y || Math.max(1, v);
|
|
2437
2437
|
r(v <= S, "byte array longer than desired length"), r(S > 0, "Requested array length <= 0");
|
|
2438
2438
|
var I = k(c, S), C = p === "le" ? "LE" : "BE";
|
|
2439
2439
|
return this["_toArrayLike" + C](I, v), I;
|
|
2440
2440
|
}, i.prototype._toArrayLikeLE = function(c, p) {
|
|
2441
|
-
for (var
|
|
2441
|
+
for (var y = 0, v = 0, S = 0, I = 0; S < this.length; S++) {
|
|
2442
2442
|
var C = this.words[S] << I | v;
|
|
2443
|
-
c[
|
|
2443
|
+
c[y++] = C & 255, y < c.length && (c[y++] = C >> 8 & 255), y < c.length && (c[y++] = C >> 16 & 255), I === 6 ? (y < c.length && (c[y++] = C >> 24 & 255), v = 0, I = 0) : (v = C >>> 24, I += 2);
|
|
2444
2444
|
}
|
|
2445
|
-
if (
|
|
2446
|
-
for (c[
|
|
2447
|
-
c[
|
|
2445
|
+
if (y < c.length)
|
|
2446
|
+
for (c[y++] = v; y < c.length; )
|
|
2447
|
+
c[y++] = 0;
|
|
2448
2448
|
}, i.prototype._toArrayLikeBE = function(c, p) {
|
|
2449
|
-
for (var
|
|
2449
|
+
for (var y = c.length - 1, v = 0, S = 0, I = 0; S < this.length; S++) {
|
|
2450
2450
|
var C = this.words[S] << I | v;
|
|
2451
|
-
c[
|
|
2451
|
+
c[y--] = C & 255, y >= 0 && (c[y--] = C >> 8 & 255), y >= 0 && (c[y--] = C >> 16 & 255), I === 6 ? (y >= 0 && (c[y--] = C >> 24 & 255), v = 0, I = 0) : (v = C >>> 24, I += 2);
|
|
2452
2452
|
}
|
|
2453
|
-
if (
|
|
2454
|
-
for (c[
|
|
2455
|
-
c[
|
|
2453
|
+
if (y >= 0)
|
|
2454
|
+
for (c[y--] = v; y >= 0; )
|
|
2455
|
+
c[y--] = 0;
|
|
2456
2456
|
}, Math.clz32 ? i.prototype._countBits = function(c) {
|
|
2457
2457
|
return 32 - Math.clz32(c);
|
|
2458
2458
|
} : i.prototype._countBits = function(c) {
|
|
2459
|
-
var p = c,
|
|
2460
|
-
return p >= 4096 && (
|
|
2459
|
+
var p = c, y = 0;
|
|
2460
|
+
return p >= 4096 && (y += 13, p >>>= 13), p >= 64 && (y += 7, p >>>= 7), p >= 8 && (y += 4, p >>>= 4), p >= 2 && (y += 2, p >>>= 2), y + p;
|
|
2461
2461
|
}, i.prototype._zeroBits = function(c) {
|
|
2462
2462
|
if (c === 0) return 26;
|
|
2463
|
-
var p = c,
|
|
2464
|
-
return (p & 8191) === 0 && (
|
|
2463
|
+
var p = c, y = 0;
|
|
2464
|
+
return (p & 8191) === 0 && (y += 13, p >>>= 13), (p & 127) === 0 && (y += 7, p >>>= 7), (p & 15) === 0 && (y += 4, p >>>= 4), (p & 3) === 0 && (y += 2, p >>>= 2), (p & 1) === 0 && y++, y;
|
|
2465
2465
|
}, i.prototype.bitLength = function() {
|
|
2466
2466
|
var c = this.words[this.length - 1], p = this._countBits(c);
|
|
2467
2467
|
return (this.length - 1) * 26 + p;
|
|
2468
2468
|
};
|
|
2469
2469
|
function N(A) {
|
|
2470
2470
|
for (var c = new Array(A.bitLength()), p = 0; p < c.length; p++) {
|
|
2471
|
-
var
|
|
2472
|
-
c[p] = A.words[
|
|
2471
|
+
var y = p / 26 | 0, v = p % 26;
|
|
2472
|
+
c[p] = A.words[y] >>> v & 1;
|
|
2473
2473
|
}
|
|
2474
2474
|
return c;
|
|
2475
2475
|
}
|
|
2476
2476
|
i.prototype.zeroBits = function() {
|
|
2477
2477
|
if (this.isZero()) return 0;
|
|
2478
2478
|
for (var c = 0, p = 0; p < this.length; p++) {
|
|
2479
|
-
var
|
|
2480
|
-
if (c +=
|
|
2479
|
+
var y = this._zeroBits(this.words[p]);
|
|
2480
|
+
if (c += y, y !== 26) break;
|
|
2481
2481
|
}
|
|
2482
2482
|
return c;
|
|
2483
2483
|
}, i.prototype.byteLength = function() {
|
|
@@ -2507,8 +2507,8 @@ function Xo() {
|
|
|
2507
2507
|
}, i.prototype.iuand = function(c) {
|
|
2508
2508
|
var p;
|
|
2509
2509
|
this.length > c.length ? p = c : p = this;
|
|
2510
|
-
for (var
|
|
2511
|
-
this.words[
|
|
2510
|
+
for (var y = 0; y < p.length; y++)
|
|
2511
|
+
this.words[y] = this.words[y] & c.words[y];
|
|
2512
2512
|
return this.length = p.length, this._strip();
|
|
2513
2513
|
}, i.prototype.iand = function(c) {
|
|
2514
2514
|
return r((this.negative | c.negative) === 0), this.iuand(c);
|
|
@@ -2517,10 +2517,10 @@ function Xo() {
|
|
|
2517
2517
|
}, i.prototype.uand = function(c) {
|
|
2518
2518
|
return this.length > c.length ? this.clone().iuand(c) : c.clone().iuand(this);
|
|
2519
2519
|
}, i.prototype.iuxor = function(c) {
|
|
2520
|
-
var p,
|
|
2521
|
-
this.length > c.length ? (p = this,
|
|
2522
|
-
for (var v = 0; v <
|
|
2523
|
-
this.words[v] = p.words[v] ^
|
|
2520
|
+
var p, y;
|
|
2521
|
+
this.length > c.length ? (p = this, y = c) : (p = c, y = this);
|
|
2522
|
+
for (var v = 0; v < y.length; v++)
|
|
2523
|
+
this.words[v] = p.words[v] ^ y.words[v];
|
|
2524
2524
|
if (this !== p)
|
|
2525
2525
|
for (; v < p.length; v++)
|
|
2526
2526
|
this.words[v] = p.words[v];
|
|
@@ -2533,34 +2533,34 @@ function Xo() {
|
|
|
2533
2533
|
return this.length > c.length ? this.clone().iuxor(c) : c.clone().iuxor(this);
|
|
2534
2534
|
}, i.prototype.inotn = function(c) {
|
|
2535
2535
|
r(typeof c == "number" && c >= 0);
|
|
2536
|
-
var p = Math.ceil(c / 26) | 0,
|
|
2537
|
-
this._expand(p),
|
|
2536
|
+
var p = Math.ceil(c / 26) | 0, y = c % 26;
|
|
2537
|
+
this._expand(p), y > 0 && p--;
|
|
2538
2538
|
for (var v = 0; v < p; v++)
|
|
2539
2539
|
this.words[v] = ~this.words[v] & 67108863;
|
|
2540
|
-
return
|
|
2540
|
+
return y > 0 && (this.words[v] = ~this.words[v] & 67108863 >> 26 - y), this._strip();
|
|
2541
2541
|
}, i.prototype.notn = function(c) {
|
|
2542
2542
|
return this.clone().inotn(c);
|
|
2543
2543
|
}, i.prototype.setn = function(c, p) {
|
|
2544
2544
|
r(typeof c == "number" && c >= 0);
|
|
2545
|
-
var
|
|
2546
|
-
return this._expand(
|
|
2545
|
+
var y = c / 26 | 0, v = c % 26;
|
|
2546
|
+
return this._expand(y + 1), p ? this.words[y] = this.words[y] | 1 << v : this.words[y] = this.words[y] & ~(1 << v), this._strip();
|
|
2547
2547
|
}, i.prototype.iadd = function(c) {
|
|
2548
2548
|
var p;
|
|
2549
2549
|
if (this.negative !== 0 && c.negative === 0)
|
|
2550
2550
|
return this.negative = 0, p = this.isub(c), this.negative ^= 1, this._normSign();
|
|
2551
2551
|
if (this.negative === 0 && c.negative !== 0)
|
|
2552
2552
|
return c.negative = 0, p = this.isub(c), c.negative = 1, p._normSign();
|
|
2553
|
-
var
|
|
2554
|
-
this.length > c.length ? (
|
|
2553
|
+
var y, v;
|
|
2554
|
+
this.length > c.length ? (y = this, v = c) : (y = c, v = this);
|
|
2555
2555
|
for (var S = 0, I = 0; I < v.length; I++)
|
|
2556
|
-
p = (
|
|
2557
|
-
for (; S !== 0 && I <
|
|
2558
|
-
p = (
|
|
2559
|
-
if (this.length =
|
|
2556
|
+
p = (y.words[I] | 0) + (v.words[I] | 0) + S, this.words[I] = p & 67108863, S = p >>> 26;
|
|
2557
|
+
for (; S !== 0 && I < y.length; I++)
|
|
2558
|
+
p = (y.words[I] | 0) + S, this.words[I] = p & 67108863, S = p >>> 26;
|
|
2559
|
+
if (this.length = y.length, S !== 0)
|
|
2560
2560
|
this.words[this.length] = S, this.length++;
|
|
2561
|
-
else if (
|
|
2562
|
-
for (; I <
|
|
2563
|
-
this.words[I] =
|
|
2561
|
+
else if (y !== this)
|
|
2562
|
+
for (; I < y.length; I++)
|
|
2563
|
+
this.words[I] = y.words[I];
|
|
2564
2564
|
return this;
|
|
2565
2565
|
}, i.prototype.add = function(c) {
|
|
2566
2566
|
var p;
|
|
@@ -2572,11 +2572,11 @@ function Xo() {
|
|
|
2572
2572
|
return c.negative = 1, p._normSign();
|
|
2573
2573
|
} else if (this.negative !== 0)
|
|
2574
2574
|
return this.negative = 0, this.iadd(c), this.negative = 1, this._normSign();
|
|
2575
|
-
var
|
|
2576
|
-
if (
|
|
2575
|
+
var y = this.cmp(c);
|
|
2576
|
+
if (y === 0)
|
|
2577
2577
|
return this.negative = 0, this.length = 1, this.words[0] = 0, this;
|
|
2578
2578
|
var v, S;
|
|
2579
|
-
|
|
2579
|
+
y > 0 ? (v = this, S = c) : (v = c, S = this);
|
|
2580
2580
|
for (var I = 0, C = 0; C < S.length; C++)
|
|
2581
2581
|
p = (v.words[C] | 0) - (S.words[C] | 0) + I, I = p >> 26, this.words[C] = p & 67108863;
|
|
2582
2582
|
for (; I !== 0 && C < v.length; C++)
|
|
@@ -2590,11 +2590,11 @@ function Xo() {
|
|
|
2590
2590
|
};
|
|
2591
2591
|
function M(A, c, p) {
|
|
2592
2592
|
p.negative = c.negative ^ A.negative;
|
|
2593
|
-
var
|
|
2594
|
-
p.length =
|
|
2593
|
+
var y = A.length + c.length | 0;
|
|
2594
|
+
p.length = y, y = y - 1 | 0;
|
|
2595
2595
|
var v = A.words[0] | 0, S = c.words[0] | 0, I = v * S, C = I & 67108863, R = I / 67108864 | 0;
|
|
2596
2596
|
p.words[0] = C;
|
|
2597
|
-
for (var u = 1; u <
|
|
2597
|
+
for (var u = 1; u < y; u++) {
|
|
2598
2598
|
for (var l = R >>> 26, w = R & 67108863, E = Math.min(u, c.length - 1), P = Math.max(0, u - A.length + 1); P <= E; P++) {
|
|
2599
2599
|
var V = u - P | 0;
|
|
2600
2600
|
v = A.words[V] | 0, S = c.words[P] | 0, I = v * S + w, l += I / 67108864 | 0, w = I & 67108863;
|
|
@@ -2603,9 +2603,9 @@ function Xo() {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
return R !== 0 ? p.words[u] = R | 0 : p.length--, p._strip();
|
|
2605
2605
|
}
|
|
2606
|
-
var H = function(c, p,
|
|
2607
|
-
var v = c.words, S = p.words, I =
|
|
2608
|
-
|
|
2606
|
+
var H = function(c, p, y) {
|
|
2607
|
+
var v = c.words, S = p.words, I = y.words, C = 0, R, u, l, w = v[0] | 0, E = w & 8191, P = w >>> 13, V = v[1] | 0, re = V & 8191, ae = V >>> 13, Se = v[2] | 0, de = Se & 8191, we = Se >>> 13, Ie = v[3] | 0, be = Ie & 8191, Oe = Ie >>> 13, Mt = v[4] | 0, Ne = Mt & 8191, ze = Mt >>> 13, Rr = v[5] | 0, Ue = Rr & 8191, xe = Rr >>> 13, mt = v[6] | 0, Be = mt & 8191, Ce = mt >>> 13, At = v[7] | 0, De = At & 8191, m = At >>> 13, h = v[8] | 0, d = h & 8191, O = h >>> 13, U = v[9] | 0, F = U & 8191, Y = U >>> 13, ge = S[0] | 0, pe = ge & 8191, fe = ge >>> 13, Fe = S[1] | 0, he = Fe & 8191, Ye = Fe >>> 13, As = S[2] | 0, je = As & 8191, Ze = As >>> 13, Is = S[3] | 0, Xe = Is & 8191, Je = Is >>> 13, vs = S[4] | 0, Qe = vs & 8191, et = vs >>> 13, Os = S[5] | 0, tt = Os & 8191, rt = Os >>> 13, ks = S[6] | 0, nt = ks & 8191, it = ks >>> 13, Ts = S[7] | 0, st = Ts & 8191, ot = Ts >>> 13, Ns = S[8] | 0, at = Ns & 8191, ct = Ns >>> 13, xs = S[9] | 0, ut = xs & 8191, lt = xs >>> 13;
|
|
2608
|
+
y.negative = c.negative ^ p.negative, y.length = 19, R = Math.imul(E, pe), u = Math.imul(E, fe), u = u + Math.imul(P, pe) | 0, l = Math.imul(P, fe);
|
|
2609
2609
|
var Kn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2610
2610
|
C = (l + (u >>> 13) | 0) + (Kn >>> 26) | 0, Kn &= 67108863, R = Math.imul(re, pe), u = Math.imul(re, fe), u = u + Math.imul(ae, pe) | 0, l = Math.imul(ae, fe), R = R + Math.imul(E, he) | 0, u = u + Math.imul(E, Ye) | 0, u = u + Math.imul(P, he) | 0, l = l + Math.imul(P, Ye) | 0;
|
|
2611
2611
|
var Hn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
@@ -2619,52 +2619,52 @@ function Xo() {
|
|
|
2619
2619
|
var Vn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2620
2620
|
C = (l + (u >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, R = Math.imul(Be, pe), u = Math.imul(Be, fe), u = u + Math.imul(Ce, pe) | 0, l = Math.imul(Ce, fe), R = R + Math.imul(Ue, he) | 0, u = u + Math.imul(Ue, Ye) | 0, u = u + Math.imul(xe, he) | 0, l = l + Math.imul(xe, Ye) | 0, R = R + Math.imul(Ne, je) | 0, u = u + Math.imul(Ne, Ze) | 0, u = u + Math.imul(ze, je) | 0, l = l + Math.imul(ze, Ze) | 0, R = R + Math.imul(be, Xe) | 0, u = u + Math.imul(be, Je) | 0, u = u + Math.imul(Oe, Xe) | 0, l = l + Math.imul(Oe, Je) | 0, R = R + Math.imul(de, Qe) | 0, u = u + Math.imul(de, et) | 0, u = u + Math.imul(we, Qe) | 0, l = l + Math.imul(we, et) | 0, R = R + Math.imul(re, tt) | 0, u = u + Math.imul(re, rt) | 0, u = u + Math.imul(ae, tt) | 0, l = l + Math.imul(ae, rt) | 0, R = R + Math.imul(E, nt) | 0, u = u + Math.imul(E, it) | 0, u = u + Math.imul(P, nt) | 0, l = l + Math.imul(P, it) | 0;
|
|
2621
2621
|
var Yn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2622
|
-
C = (l + (u >>> 13) | 0) + (Yn >>> 26) | 0, Yn &= 67108863, R = Math.imul(De, pe), u = Math.imul(De, fe), u = u + Math.imul(
|
|
2622
|
+
C = (l + (u >>> 13) | 0) + (Yn >>> 26) | 0, Yn &= 67108863, R = Math.imul(De, pe), u = Math.imul(De, fe), u = u + Math.imul(m, pe) | 0, l = Math.imul(m, fe), R = R + Math.imul(Be, he) | 0, u = u + Math.imul(Be, Ye) | 0, u = u + Math.imul(Ce, he) | 0, l = l + Math.imul(Ce, Ye) | 0, R = R + Math.imul(Ue, je) | 0, u = u + Math.imul(Ue, Ze) | 0, u = u + Math.imul(xe, je) | 0, l = l + Math.imul(xe, Ze) | 0, R = R + Math.imul(Ne, Xe) | 0, u = u + Math.imul(Ne, Je) | 0, u = u + Math.imul(ze, Xe) | 0, l = l + Math.imul(ze, Je) | 0, R = R + Math.imul(be, Qe) | 0, u = u + Math.imul(be, et) | 0, u = u + Math.imul(Oe, Qe) | 0, l = l + Math.imul(Oe, et) | 0, R = R + Math.imul(de, tt) | 0, u = u + Math.imul(de, rt) | 0, u = u + Math.imul(we, tt) | 0, l = l + Math.imul(we, rt) | 0, R = R + Math.imul(re, nt) | 0, u = u + Math.imul(re, it) | 0, u = u + Math.imul(ae, nt) | 0, l = l + Math.imul(ae, it) | 0, R = R + Math.imul(E, st) | 0, u = u + Math.imul(E, ot) | 0, u = u + Math.imul(P, st) | 0, l = l + Math.imul(P, ot) | 0;
|
|
2623
2623
|
var jn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2624
|
-
C = (l + (u >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, R = Math.imul(d, pe), u = Math.imul(d, fe), u = u + Math.imul(O, pe) | 0, l = Math.imul(O, fe), R = R + Math.imul(De, he) | 0, u = u + Math.imul(De, Ye) | 0, u = u + Math.imul(
|
|
2624
|
+
C = (l + (u >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, R = Math.imul(d, pe), u = Math.imul(d, fe), u = u + Math.imul(O, pe) | 0, l = Math.imul(O, fe), R = R + Math.imul(De, he) | 0, u = u + Math.imul(De, Ye) | 0, u = u + Math.imul(m, he) | 0, l = l + Math.imul(m, Ye) | 0, R = R + Math.imul(Be, je) | 0, u = u + Math.imul(Be, Ze) | 0, u = u + Math.imul(Ce, je) | 0, l = l + Math.imul(Ce, Ze) | 0, R = R + Math.imul(Ue, Xe) | 0, u = u + Math.imul(Ue, Je) | 0, u = u + Math.imul(xe, Xe) | 0, l = l + Math.imul(xe, Je) | 0, R = R + Math.imul(Ne, Qe) | 0, u = u + Math.imul(Ne, et) | 0, u = u + Math.imul(ze, Qe) | 0, l = l + Math.imul(ze, et) | 0, R = R + Math.imul(be, tt) | 0, u = u + Math.imul(be, rt) | 0, u = u + Math.imul(Oe, tt) | 0, l = l + Math.imul(Oe, rt) | 0, R = R + Math.imul(de, nt) | 0, u = u + Math.imul(de, it) | 0, u = u + Math.imul(we, nt) | 0, l = l + Math.imul(we, it) | 0, R = R + Math.imul(re, st) | 0, u = u + Math.imul(re, ot) | 0, u = u + Math.imul(ae, st) | 0, l = l + Math.imul(ae, ot) | 0, R = R + Math.imul(E, at) | 0, u = u + Math.imul(E, ct) | 0, u = u + Math.imul(P, at) | 0, l = l + Math.imul(P, ct) | 0;
|
|
2625
2625
|
var Zn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2626
|
-
C = (l + (u >>> 13) | 0) + (Zn >>> 26) | 0, Zn &= 67108863, R = Math.imul(F, pe), u = Math.imul(F, fe), u = u + Math.imul(Y, pe) | 0, l = Math.imul(Y, fe), R = R + Math.imul(d, he) | 0, u = u + Math.imul(d, Ye) | 0, u = u + Math.imul(O, he) | 0, l = l + Math.imul(O, Ye) | 0, R = R + Math.imul(De, je) | 0, u = u + Math.imul(De, Ze) | 0, u = u + Math.imul(
|
|
2626
|
+
C = (l + (u >>> 13) | 0) + (Zn >>> 26) | 0, Zn &= 67108863, R = Math.imul(F, pe), u = Math.imul(F, fe), u = u + Math.imul(Y, pe) | 0, l = Math.imul(Y, fe), R = R + Math.imul(d, he) | 0, u = u + Math.imul(d, Ye) | 0, u = u + Math.imul(O, he) | 0, l = l + Math.imul(O, Ye) | 0, R = R + Math.imul(De, je) | 0, u = u + Math.imul(De, Ze) | 0, u = u + Math.imul(m, je) | 0, l = l + Math.imul(m, Ze) | 0, R = R + Math.imul(Be, Xe) | 0, u = u + Math.imul(Be, Je) | 0, u = u + Math.imul(Ce, Xe) | 0, l = l + Math.imul(Ce, Je) | 0, R = R + Math.imul(Ue, Qe) | 0, u = u + Math.imul(Ue, et) | 0, u = u + Math.imul(xe, Qe) | 0, l = l + Math.imul(xe, et) | 0, R = R + Math.imul(Ne, tt) | 0, u = u + Math.imul(Ne, rt) | 0, u = u + Math.imul(ze, tt) | 0, l = l + Math.imul(ze, rt) | 0, R = R + Math.imul(be, nt) | 0, u = u + Math.imul(be, it) | 0, u = u + Math.imul(Oe, nt) | 0, l = l + Math.imul(Oe, it) | 0, R = R + Math.imul(de, st) | 0, u = u + Math.imul(de, ot) | 0, u = u + Math.imul(we, st) | 0, l = l + Math.imul(we, ot) | 0, R = R + Math.imul(re, at) | 0, u = u + Math.imul(re, ct) | 0, u = u + Math.imul(ae, at) | 0, l = l + Math.imul(ae, ct) | 0, R = R + Math.imul(E, ut) | 0, u = u + Math.imul(E, lt) | 0, u = u + Math.imul(P, ut) | 0, l = l + Math.imul(P, lt) | 0;
|
|
2627
2627
|
var Xn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2628
|
-
C = (l + (u >>> 13) | 0) + (Xn >>> 26) | 0, Xn &= 67108863, R = Math.imul(F, he), u = Math.imul(F, Ye), u = u + Math.imul(Y, he) | 0, l = Math.imul(Y, Ye), R = R + Math.imul(d, je) | 0, u = u + Math.imul(d, Ze) | 0, u = u + Math.imul(O, je) | 0, l = l + Math.imul(O, Ze) | 0, R = R + Math.imul(De, Xe) | 0, u = u + Math.imul(De, Je) | 0, u = u + Math.imul(
|
|
2628
|
+
C = (l + (u >>> 13) | 0) + (Xn >>> 26) | 0, Xn &= 67108863, R = Math.imul(F, he), u = Math.imul(F, Ye), u = u + Math.imul(Y, he) | 0, l = Math.imul(Y, Ye), R = R + Math.imul(d, je) | 0, u = u + Math.imul(d, Ze) | 0, u = u + Math.imul(O, je) | 0, l = l + Math.imul(O, Ze) | 0, R = R + Math.imul(De, Xe) | 0, u = u + Math.imul(De, Je) | 0, u = u + Math.imul(m, Xe) | 0, l = l + Math.imul(m, Je) | 0, R = R + Math.imul(Be, Qe) | 0, u = u + Math.imul(Be, et) | 0, u = u + Math.imul(Ce, Qe) | 0, l = l + Math.imul(Ce, et) | 0, R = R + Math.imul(Ue, tt) | 0, u = u + Math.imul(Ue, rt) | 0, u = u + Math.imul(xe, tt) | 0, l = l + Math.imul(xe, rt) | 0, R = R + Math.imul(Ne, nt) | 0, u = u + Math.imul(Ne, it) | 0, u = u + Math.imul(ze, nt) | 0, l = l + Math.imul(ze, it) | 0, R = R + Math.imul(be, st) | 0, u = u + Math.imul(be, ot) | 0, u = u + Math.imul(Oe, st) | 0, l = l + Math.imul(Oe, ot) | 0, R = R + Math.imul(de, at) | 0, u = u + Math.imul(de, ct) | 0, u = u + Math.imul(we, at) | 0, l = l + Math.imul(we, ct) | 0, R = R + Math.imul(re, ut) | 0, u = u + Math.imul(re, lt) | 0, u = u + Math.imul(ae, ut) | 0, l = l + Math.imul(ae, lt) | 0;
|
|
2629
2629
|
var Jn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2630
|
-
C = (l + (u >>> 13) | 0) + (Jn >>> 26) | 0, Jn &= 67108863, R = Math.imul(F, je), u = Math.imul(F, Ze), u = u + Math.imul(Y, je) | 0, l = Math.imul(Y, Ze), R = R + Math.imul(d, Xe) | 0, u = u + Math.imul(d, Je) | 0, u = u + Math.imul(O, Xe) | 0, l = l + Math.imul(O, Je) | 0, R = R + Math.imul(De, Qe) | 0, u = u + Math.imul(De, et) | 0, u = u + Math.imul(
|
|
2630
|
+
C = (l + (u >>> 13) | 0) + (Jn >>> 26) | 0, Jn &= 67108863, R = Math.imul(F, je), u = Math.imul(F, Ze), u = u + Math.imul(Y, je) | 0, l = Math.imul(Y, Ze), R = R + Math.imul(d, Xe) | 0, u = u + Math.imul(d, Je) | 0, u = u + Math.imul(O, Xe) | 0, l = l + Math.imul(O, Je) | 0, R = R + Math.imul(De, Qe) | 0, u = u + Math.imul(De, et) | 0, u = u + Math.imul(m, Qe) | 0, l = l + Math.imul(m, et) | 0, R = R + Math.imul(Be, tt) | 0, u = u + Math.imul(Be, rt) | 0, u = u + Math.imul(Ce, tt) | 0, l = l + Math.imul(Ce, rt) | 0, R = R + Math.imul(Ue, nt) | 0, u = u + Math.imul(Ue, it) | 0, u = u + Math.imul(xe, nt) | 0, l = l + Math.imul(xe, it) | 0, R = R + Math.imul(Ne, st) | 0, u = u + Math.imul(Ne, ot) | 0, u = u + Math.imul(ze, st) | 0, l = l + Math.imul(ze, ot) | 0, R = R + Math.imul(be, at) | 0, u = u + Math.imul(be, ct) | 0, u = u + Math.imul(Oe, at) | 0, l = l + Math.imul(Oe, ct) | 0, R = R + Math.imul(de, ut) | 0, u = u + Math.imul(de, lt) | 0, u = u + Math.imul(we, ut) | 0, l = l + Math.imul(we, lt) | 0;
|
|
2631
2631
|
var Qn = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2632
|
-
C = (l + (u >>> 13) | 0) + (Qn >>> 26) | 0, Qn &= 67108863, R = Math.imul(F, Xe), u = Math.imul(F, Je), u = u + Math.imul(Y, Xe) | 0, l = Math.imul(Y, Je), R = R + Math.imul(d, Qe) | 0, u = u + Math.imul(d, et) | 0, u = u + Math.imul(O, Qe) | 0, l = l + Math.imul(O, et) | 0, R = R + Math.imul(De, tt) | 0, u = u + Math.imul(De, rt) | 0, u = u + Math.imul(
|
|
2632
|
+
C = (l + (u >>> 13) | 0) + (Qn >>> 26) | 0, Qn &= 67108863, R = Math.imul(F, Xe), u = Math.imul(F, Je), u = u + Math.imul(Y, Xe) | 0, l = Math.imul(Y, Je), R = R + Math.imul(d, Qe) | 0, u = u + Math.imul(d, et) | 0, u = u + Math.imul(O, Qe) | 0, l = l + Math.imul(O, et) | 0, R = R + Math.imul(De, tt) | 0, u = u + Math.imul(De, rt) | 0, u = u + Math.imul(m, tt) | 0, l = l + Math.imul(m, rt) | 0, R = R + Math.imul(Be, nt) | 0, u = u + Math.imul(Be, it) | 0, u = u + Math.imul(Ce, nt) | 0, l = l + Math.imul(Ce, it) | 0, R = R + Math.imul(Ue, st) | 0, u = u + Math.imul(Ue, ot) | 0, u = u + Math.imul(xe, st) | 0, l = l + Math.imul(xe, ot) | 0, R = R + Math.imul(Ne, at) | 0, u = u + Math.imul(Ne, ct) | 0, u = u + Math.imul(ze, at) | 0, l = l + Math.imul(ze, ct) | 0, R = R + Math.imul(be, ut) | 0, u = u + Math.imul(be, lt) | 0, u = u + Math.imul(Oe, ut) | 0, l = l + Math.imul(Oe, lt) | 0;
|
|
2633
2633
|
var ei = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2634
|
-
C = (l + (u >>> 13) | 0) + (ei >>> 26) | 0, ei &= 67108863, R = Math.imul(F, Qe), u = Math.imul(F, et), u = u + Math.imul(Y, Qe) | 0, l = Math.imul(Y, et), R = R + Math.imul(d, tt) | 0, u = u + Math.imul(d, rt) | 0, u = u + Math.imul(O, tt) | 0, l = l + Math.imul(O, rt) | 0, R = R + Math.imul(De, nt) | 0, u = u + Math.imul(De, it) | 0, u = u + Math.imul(
|
|
2634
|
+
C = (l + (u >>> 13) | 0) + (ei >>> 26) | 0, ei &= 67108863, R = Math.imul(F, Qe), u = Math.imul(F, et), u = u + Math.imul(Y, Qe) | 0, l = Math.imul(Y, et), R = R + Math.imul(d, tt) | 0, u = u + Math.imul(d, rt) | 0, u = u + Math.imul(O, tt) | 0, l = l + Math.imul(O, rt) | 0, R = R + Math.imul(De, nt) | 0, u = u + Math.imul(De, it) | 0, u = u + Math.imul(m, nt) | 0, l = l + Math.imul(m, it) | 0, R = R + Math.imul(Be, st) | 0, u = u + Math.imul(Be, ot) | 0, u = u + Math.imul(Ce, st) | 0, l = l + Math.imul(Ce, ot) | 0, R = R + Math.imul(Ue, at) | 0, u = u + Math.imul(Ue, ct) | 0, u = u + Math.imul(xe, at) | 0, l = l + Math.imul(xe, ct) | 0, R = R + Math.imul(Ne, ut) | 0, u = u + Math.imul(Ne, lt) | 0, u = u + Math.imul(ze, ut) | 0, l = l + Math.imul(ze, lt) | 0;
|
|
2635
2635
|
var ti = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2636
|
-
C = (l + (u >>> 13) | 0) + (ti >>> 26) | 0, ti &= 67108863, R = Math.imul(F, tt), u = Math.imul(F, rt), u = u + Math.imul(Y, tt) | 0, l = Math.imul(Y, rt), R = R + Math.imul(d, nt) | 0, u = u + Math.imul(d, it) | 0, u = u + Math.imul(O, nt) | 0, l = l + Math.imul(O, it) | 0, R = R + Math.imul(De, st) | 0, u = u + Math.imul(De, ot) | 0, u = u + Math.imul(
|
|
2636
|
+
C = (l + (u >>> 13) | 0) + (ti >>> 26) | 0, ti &= 67108863, R = Math.imul(F, tt), u = Math.imul(F, rt), u = u + Math.imul(Y, tt) | 0, l = Math.imul(Y, rt), R = R + Math.imul(d, nt) | 0, u = u + Math.imul(d, it) | 0, u = u + Math.imul(O, nt) | 0, l = l + Math.imul(O, it) | 0, R = R + Math.imul(De, st) | 0, u = u + Math.imul(De, ot) | 0, u = u + Math.imul(m, st) | 0, l = l + Math.imul(m, ot) | 0, R = R + Math.imul(Be, at) | 0, u = u + Math.imul(Be, ct) | 0, u = u + Math.imul(Ce, at) | 0, l = l + Math.imul(Ce, ct) | 0, R = R + Math.imul(Ue, ut) | 0, u = u + Math.imul(Ue, lt) | 0, u = u + Math.imul(xe, ut) | 0, l = l + Math.imul(xe, lt) | 0;
|
|
2637
2637
|
var ri = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2638
|
-
C = (l + (u >>> 13) | 0) + (ri >>> 26) | 0, ri &= 67108863, R = Math.imul(F, nt), u = Math.imul(F, it), u = u + Math.imul(Y, nt) | 0, l = Math.imul(Y, it), R = R + Math.imul(d, st) | 0, u = u + Math.imul(d, ot) | 0, u = u + Math.imul(O, st) | 0, l = l + Math.imul(O, ot) | 0, R = R + Math.imul(De, at) | 0, u = u + Math.imul(De, ct) | 0, u = u + Math.imul(
|
|
2638
|
+
C = (l + (u >>> 13) | 0) + (ri >>> 26) | 0, ri &= 67108863, R = Math.imul(F, nt), u = Math.imul(F, it), u = u + Math.imul(Y, nt) | 0, l = Math.imul(Y, it), R = R + Math.imul(d, st) | 0, u = u + Math.imul(d, ot) | 0, u = u + Math.imul(O, st) | 0, l = l + Math.imul(O, ot) | 0, R = R + Math.imul(De, at) | 0, u = u + Math.imul(De, ct) | 0, u = u + Math.imul(m, at) | 0, l = l + Math.imul(m, ct) | 0, R = R + Math.imul(Be, ut) | 0, u = u + Math.imul(Be, lt) | 0, u = u + Math.imul(Ce, ut) | 0, l = l + Math.imul(Ce, lt) | 0;
|
|
2639
2639
|
var ni = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2640
|
-
C = (l + (u >>> 13) | 0) + (ni >>> 26) | 0, ni &= 67108863, R = Math.imul(F, st), u = Math.imul(F, ot), u = u + Math.imul(Y, st) | 0, l = Math.imul(Y, ot), R = R + Math.imul(d, at) | 0, u = u + Math.imul(d, ct) | 0, u = u + Math.imul(O, at) | 0, l = l + Math.imul(O, ct) | 0, R = R + Math.imul(De, ut) | 0, u = u + Math.imul(De, lt) | 0, u = u + Math.imul(
|
|
2640
|
+
C = (l + (u >>> 13) | 0) + (ni >>> 26) | 0, ni &= 67108863, R = Math.imul(F, st), u = Math.imul(F, ot), u = u + Math.imul(Y, st) | 0, l = Math.imul(Y, ot), R = R + Math.imul(d, at) | 0, u = u + Math.imul(d, ct) | 0, u = u + Math.imul(O, at) | 0, l = l + Math.imul(O, ct) | 0, R = R + Math.imul(De, ut) | 0, u = u + Math.imul(De, lt) | 0, u = u + Math.imul(m, ut) | 0, l = l + Math.imul(m, lt) | 0;
|
|
2641
2641
|
var ii = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2642
2642
|
C = (l + (u >>> 13) | 0) + (ii >>> 26) | 0, ii &= 67108863, R = Math.imul(F, at), u = Math.imul(F, ct), u = u + Math.imul(Y, at) | 0, l = Math.imul(Y, ct), R = R + Math.imul(d, ut) | 0, u = u + Math.imul(d, lt) | 0, u = u + Math.imul(O, ut) | 0, l = l + Math.imul(O, lt) | 0;
|
|
2643
2643
|
var si = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2644
2644
|
C = (l + (u >>> 13) | 0) + (si >>> 26) | 0, si &= 67108863, R = Math.imul(F, ut), u = Math.imul(F, lt), u = u + Math.imul(Y, ut) | 0, l = Math.imul(Y, lt);
|
|
2645
2645
|
var oi = (C + R | 0) + ((u & 8191) << 13) | 0;
|
|
2646
|
-
return C = (l + (u >>> 13) | 0) + (oi >>> 26) | 0, oi &= 67108863, I[0] = Kn, I[1] = Hn, I[2] = Wn, I[3] = qn, I[4] = Gn, I[5] = Vn, I[6] = Yn, I[7] = jn, I[8] = Zn, I[9] = Xn, I[10] = Jn, I[11] = Qn, I[12] = ei, I[13] = ti, I[14] = ri, I[15] = ni, I[16] = ii, I[17] = si, I[18] = oi, C !== 0 && (I[19] = C,
|
|
2646
|
+
return C = (l + (u >>> 13) | 0) + (oi >>> 26) | 0, oi &= 67108863, I[0] = Kn, I[1] = Hn, I[2] = Wn, I[3] = qn, I[4] = Gn, I[5] = Vn, I[6] = Yn, I[7] = jn, I[8] = Zn, I[9] = Xn, I[10] = Jn, I[11] = Qn, I[12] = ei, I[13] = ti, I[14] = ri, I[15] = ni, I[16] = ii, I[17] = si, I[18] = oi, C !== 0 && (I[19] = C, y.length++), y;
|
|
2647
2647
|
};
|
|
2648
2648
|
Math.imul || (H = M);
|
|
2649
2649
|
function $(A, c, p) {
|
|
2650
2650
|
p.negative = c.negative ^ A.negative, p.length = A.length + c.length;
|
|
2651
|
-
for (var
|
|
2651
|
+
for (var y = 0, v = 0, S = 0; S < p.length - 1; S++) {
|
|
2652
2652
|
var I = v;
|
|
2653
2653
|
v = 0;
|
|
2654
|
-
for (var C =
|
|
2654
|
+
for (var C = y & 67108863, R = Math.min(S, c.length - 1), u = Math.max(0, S - A.length + 1); u <= R; u++) {
|
|
2655
2655
|
var l = S - u, w = A.words[l] | 0, E = c.words[u] | 0, P = w * E, V = P & 67108863;
|
|
2656
2656
|
I = I + (P / 67108864 | 0) | 0, V = V + C | 0, C = V & 67108863, I = I + (V >>> 26) | 0, v += I >>> 26, I &= 67108863;
|
|
2657
2657
|
}
|
|
2658
|
-
p.words[S] = C,
|
|
2658
|
+
p.words[S] = C, y = I, I = v;
|
|
2659
2659
|
}
|
|
2660
|
-
return
|
|
2660
|
+
return y !== 0 ? p.words[S] = y : p.length--, p._strip();
|
|
2661
2661
|
}
|
|
2662
2662
|
function J(A, c, p) {
|
|
2663
2663
|
return $(A, c, p);
|
|
2664
2664
|
}
|
|
2665
2665
|
i.prototype.mulTo = function(c, p) {
|
|
2666
|
-
var
|
|
2667
|
-
return this.length === 10 && c.length === 10 ?
|
|
2666
|
+
var y, v = this.length + c.length;
|
|
2667
|
+
return this.length === 10 && c.length === 10 ? y = H(this, c, p) : v < 63 ? y = M(this, c, p) : v < 1024 ? y = $(this, c, p) : y = J(this, c, p), y;
|
|
2668
2668
|
}, i.prototype.mul = function(c) {
|
|
2669
2669
|
var p = new i(null);
|
|
2670
2670
|
return p.words = new Array(this.length + c.length), this.mulTo(c, p);
|
|
@@ -2676,11 +2676,11 @@ function Xo() {
|
|
|
2676
2676
|
}, i.prototype.imuln = function(c) {
|
|
2677
2677
|
var p = c < 0;
|
|
2678
2678
|
p && (c = -c), r(typeof c == "number"), r(c < 67108864);
|
|
2679
|
-
for (var
|
|
2680
|
-
var S = (this.words[v] | 0) * c, I = (S & 67108863) + (
|
|
2681
|
-
|
|
2679
|
+
for (var y = 0, v = 0; v < this.length; v++) {
|
|
2680
|
+
var S = (this.words[v] | 0) * c, I = (S & 67108863) + (y & 67108863);
|
|
2681
|
+
y >>= 26, y += S / 67108864 | 0, y += I >>> 26, this.words[v] = I & 67108863;
|
|
2682
2682
|
}
|
|
2683
|
-
return
|
|
2683
|
+
return y !== 0 && (this.words[v] = y, this.length++), this.length = c === 0 ? 1 : this.length, p ? this.ineg() : this;
|
|
2684
2684
|
}, i.prototype.muln = function(c) {
|
|
2685
2685
|
return this.clone().imuln(c);
|
|
2686
2686
|
}, i.prototype.sqr = function() {
|
|
@@ -2690,15 +2690,15 @@ function Xo() {
|
|
|
2690
2690
|
}, i.prototype.pow = function(c) {
|
|
2691
2691
|
var p = N(c);
|
|
2692
2692
|
if (p.length === 0) return new i(1);
|
|
2693
|
-
for (var
|
|
2693
|
+
for (var y = this, v = 0; v < p.length && p[v] === 0; v++, y = y.sqr())
|
|
2694
2694
|
;
|
|
2695
2695
|
if (++v < p.length)
|
|
2696
|
-
for (var S =
|
|
2697
|
-
p[v] !== 0 && (
|
|
2698
|
-
return
|
|
2696
|
+
for (var S = y.sqr(); v < p.length; v++, S = S.sqr())
|
|
2697
|
+
p[v] !== 0 && (y = y.mul(S));
|
|
2698
|
+
return y;
|
|
2699
2699
|
}, i.prototype.iushln = function(c) {
|
|
2700
2700
|
r(typeof c == "number" && c >= 0);
|
|
2701
|
-
var p = c % 26,
|
|
2701
|
+
var p = c % 26, y = (c - p) / 26, v = 67108863 >>> 26 - p << 26 - p, S;
|
|
2702
2702
|
if (p !== 0) {
|
|
2703
2703
|
var I = 0;
|
|
2704
2704
|
for (S = 0; S < this.length; S++) {
|
|
@@ -2707,21 +2707,21 @@ function Xo() {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
I && (this.words[S] = I, this.length++);
|
|
2709
2709
|
}
|
|
2710
|
-
if (
|
|
2710
|
+
if (y !== 0) {
|
|
2711
2711
|
for (S = this.length - 1; S >= 0; S--)
|
|
2712
|
-
this.words[S +
|
|
2713
|
-
for (S = 0; S <
|
|
2712
|
+
this.words[S + y] = this.words[S];
|
|
2713
|
+
for (S = 0; S < y; S++)
|
|
2714
2714
|
this.words[S] = 0;
|
|
2715
|
-
this.length +=
|
|
2715
|
+
this.length += y;
|
|
2716
2716
|
}
|
|
2717
2717
|
return this._strip();
|
|
2718
2718
|
}, i.prototype.ishln = function(c) {
|
|
2719
2719
|
return r(this.negative === 0), this.iushln(c);
|
|
2720
|
-
}, i.prototype.iushrn = function(c, p,
|
|
2720
|
+
}, i.prototype.iushrn = function(c, p, y) {
|
|
2721
2721
|
r(typeof c == "number" && c >= 0);
|
|
2722
2722
|
var v;
|
|
2723
2723
|
p ? v = (p - p % 26) / 26 : v = 0;
|
|
2724
|
-
var S = c % 26, I = Math.min((c - S) / 26, this.length), C = 67108863 ^ 67108863 >>> S << S, R =
|
|
2724
|
+
var S = c % 26, I = Math.min((c - S) / 26, this.length), C = 67108863 ^ 67108863 >>> S << S, R = y;
|
|
2725
2725
|
if (v -= I, v = Math.max(0, v), R) {
|
|
2726
2726
|
for (var u = 0; u < I; u++)
|
|
2727
2727
|
R.words[u] = this.words[u];
|
|
@@ -2738,8 +2738,8 @@ function Xo() {
|
|
|
2738
2738
|
this.words[u] = l << 26 - S | w >>> S, l = w & C;
|
|
2739
2739
|
}
|
|
2740
2740
|
return R && l !== 0 && (R.words[R.length++] = l), this.length === 0 && (this.words[0] = 0, this.length = 1), this._strip();
|
|
2741
|
-
}, i.prototype.ishrn = function(c, p,
|
|
2742
|
-
return r(this.negative === 0), this.iushrn(c, p,
|
|
2741
|
+
}, i.prototype.ishrn = function(c, p, y) {
|
|
2742
|
+
return r(this.negative === 0), this.iushrn(c, p, y);
|
|
2743
2743
|
}, i.prototype.shln = function(c) {
|
|
2744
2744
|
return this.clone().ishln(c);
|
|
2745
2745
|
}, i.prototype.ushln = function(c) {
|
|
@@ -2750,16 +2750,16 @@ function Xo() {
|
|
|
2750
2750
|
return this.clone().iushrn(c);
|
|
2751
2751
|
}, i.prototype.testn = function(c) {
|
|
2752
2752
|
r(typeof c == "number" && c >= 0);
|
|
2753
|
-
var p = c % 26,
|
|
2754
|
-
if (this.length <=
|
|
2755
|
-
var S = this.words[
|
|
2753
|
+
var p = c % 26, y = (c - p) / 26, v = 1 << p;
|
|
2754
|
+
if (this.length <= y) return !1;
|
|
2755
|
+
var S = this.words[y];
|
|
2756
2756
|
return !!(S & v);
|
|
2757
2757
|
}, i.prototype.imaskn = function(c) {
|
|
2758
2758
|
r(typeof c == "number" && c >= 0);
|
|
2759
|
-
var p = c % 26,
|
|
2760
|
-
if (r(this.negative === 0, "imaskn works only with positive numbers"), this.length <=
|
|
2759
|
+
var p = c % 26, y = (c - p) / 26;
|
|
2760
|
+
if (r(this.negative === 0, "imaskn works only with positive numbers"), this.length <= y)
|
|
2761
2761
|
return this;
|
|
2762
|
-
if (p !== 0 &&
|
|
2762
|
+
if (p !== 0 && y++, this.length = Math.min(y, this.length), p !== 0) {
|
|
2763
2763
|
var v = 67108863 ^ 67108863 >>> p << p;
|
|
2764
2764
|
this.words[this.length - 1] &= v;
|
|
2765
2765
|
}
|
|
@@ -2791,24 +2791,24 @@ function Xo() {
|
|
|
2791
2791
|
return this.negative = 0, this;
|
|
2792
2792
|
}, i.prototype.abs = function() {
|
|
2793
2793
|
return this.clone().iabs();
|
|
2794
|
-
}, i.prototype._ishlnsubmul = function(c, p,
|
|
2795
|
-
var v = c.length +
|
|
2794
|
+
}, i.prototype._ishlnsubmul = function(c, p, y) {
|
|
2795
|
+
var v = c.length + y, S;
|
|
2796
2796
|
this._expand(v);
|
|
2797
2797
|
var I, C = 0;
|
|
2798
2798
|
for (S = 0; S < c.length; S++) {
|
|
2799
|
-
I = (this.words[S +
|
|
2799
|
+
I = (this.words[S + y] | 0) + C;
|
|
2800
2800
|
var R = (c.words[S] | 0) * p;
|
|
2801
|
-
I -= R & 67108863, C = (I >> 26) - (R / 67108864 | 0), this.words[S +
|
|
2801
|
+
I -= R & 67108863, C = (I >> 26) - (R / 67108864 | 0), this.words[S + y] = I & 67108863;
|
|
2802
2802
|
}
|
|
2803
|
-
for (; S < this.length -
|
|
2804
|
-
I = (this.words[S +
|
|
2803
|
+
for (; S < this.length - y; S++)
|
|
2804
|
+
I = (this.words[S + y] | 0) + C, C = I >> 26, this.words[S + y] = I & 67108863;
|
|
2805
2805
|
if (C === 0) return this._strip();
|
|
2806
2806
|
for (r(C === -1), C = 0, S = 0; S < this.length; S++)
|
|
2807
2807
|
I = -(this.words[S] | 0) + C, C = I >> 26, this.words[S] = I & 67108863;
|
|
2808
2808
|
return this.negative = 1, this._strip();
|
|
2809
2809
|
}, i.prototype._wordDiv = function(c, p) {
|
|
2810
|
-
var
|
|
2811
|
-
|
|
2810
|
+
var y = this.length - c.length, v = this.clone(), S = c, I = S.words[S.length - 1] | 0, C = this._countBits(I);
|
|
2811
|
+
y = 26 - C, y !== 0 && (S = S.ushln(y), v.iushln(y), I = S.words[S.length - 1] | 0);
|
|
2812
2812
|
var R = v.length - S.length, u;
|
|
2813
2813
|
if (p !== "mod") {
|
|
2814
2814
|
u = new i(null), u.length = R + 1, u.words = new Array(u.length);
|
|
@@ -2823,24 +2823,24 @@ function Xo() {
|
|
|
2823
2823
|
P--, v.negative = 0, v._ishlnsubmul(S, 1, E), v.isZero() || (v.negative ^= 1);
|
|
2824
2824
|
u && (u.words[E] = P);
|
|
2825
2825
|
}
|
|
2826
|
-
return u && u._strip(), v._strip(), p !== "div" &&
|
|
2826
|
+
return u && u._strip(), v._strip(), p !== "div" && y !== 0 && v.iushrn(y), {
|
|
2827
2827
|
div: u || null,
|
|
2828
2828
|
mod: v
|
|
2829
2829
|
};
|
|
2830
|
-
}, i.prototype.divmod = function(c, p,
|
|
2830
|
+
}, i.prototype.divmod = function(c, p, y) {
|
|
2831
2831
|
if (r(!c.isZero()), this.isZero())
|
|
2832
2832
|
return {
|
|
2833
2833
|
div: new i(0),
|
|
2834
2834
|
mod: new i(0)
|
|
2835
2835
|
};
|
|
2836
2836
|
var v, S, I;
|
|
2837
|
-
return this.negative !== 0 && c.negative === 0 ? (I = this.neg().divmod(c, p), p !== "mod" && (v = I.div.neg()), p !== "div" && (S = I.mod.neg(),
|
|
2837
|
+
return this.negative !== 0 && c.negative === 0 ? (I = this.neg().divmod(c, p), p !== "mod" && (v = I.div.neg()), p !== "div" && (S = I.mod.neg(), y && S.negative !== 0 && S.iadd(c)), {
|
|
2838
2838
|
div: v,
|
|
2839
2839
|
mod: S
|
|
2840
2840
|
}) : this.negative === 0 && c.negative !== 0 ? (I = this.divmod(c.neg(), p), p !== "mod" && (v = I.div.neg()), {
|
|
2841
2841
|
div: v,
|
|
2842
2842
|
mod: I.mod
|
|
2843
|
-
}) : (this.negative & c.negative) !== 0 ? (I = this.neg().divmod(c.neg(), p), p !== "div" && (S = I.mod.neg(),
|
|
2843
|
+
}) : (this.negative & c.negative) !== 0 ? (I = this.neg().divmod(c.neg(), p), p !== "div" && (S = I.mod.neg(), y && S.negative !== 0 && S.isub(c)), {
|
|
2844
2844
|
div: I.div,
|
|
2845
2845
|
mod: S
|
|
2846
2846
|
}) : c.length > this.length || this.cmp(c) < 0 ? {
|
|
@@ -2865,86 +2865,86 @@ function Xo() {
|
|
|
2865
2865
|
}, i.prototype.divRound = function(c) {
|
|
2866
2866
|
var p = this.divmod(c);
|
|
2867
2867
|
if (p.mod.isZero()) return p.div;
|
|
2868
|
-
var
|
|
2868
|
+
var y = p.div.negative !== 0 ? p.mod.isub(c) : p.mod, v = c.ushrn(1), S = c.andln(1), I = y.cmp(v);
|
|
2869
2869
|
return I < 0 || S === 1 && I === 0 ? p.div : p.div.negative !== 0 ? p.div.isubn(1) : p.div.iaddn(1);
|
|
2870
2870
|
}, i.prototype.modrn = function(c) {
|
|
2871
2871
|
var p = c < 0;
|
|
2872
2872
|
p && (c = -c), r(c <= 67108863);
|
|
2873
|
-
for (var
|
|
2874
|
-
v = (
|
|
2873
|
+
for (var y = (1 << 26) % c, v = 0, S = this.length - 1; S >= 0; S--)
|
|
2874
|
+
v = (y * v + (this.words[S] | 0)) % c;
|
|
2875
2875
|
return p ? -v : v;
|
|
2876
2876
|
}, i.prototype.modn = function(c) {
|
|
2877
2877
|
return this.modrn(c);
|
|
2878
2878
|
}, i.prototype.idivn = function(c) {
|
|
2879
2879
|
var p = c < 0;
|
|
2880
2880
|
p && (c = -c), r(c <= 67108863);
|
|
2881
|
-
for (var
|
|
2882
|
-
var S = (this.words[v] | 0) +
|
|
2883
|
-
this.words[v] = S / c | 0,
|
|
2881
|
+
for (var y = 0, v = this.length - 1; v >= 0; v--) {
|
|
2882
|
+
var S = (this.words[v] | 0) + y * 67108864;
|
|
2883
|
+
this.words[v] = S / c | 0, y = S % c;
|
|
2884
2884
|
}
|
|
2885
2885
|
return this._strip(), p ? this.ineg() : this;
|
|
2886
2886
|
}, i.prototype.divn = function(c) {
|
|
2887
2887
|
return this.clone().idivn(c);
|
|
2888
2888
|
}, i.prototype.egcd = function(c) {
|
|
2889
2889
|
r(c.negative === 0), r(!c.isZero());
|
|
2890
|
-
var p = this,
|
|
2890
|
+
var p = this, y = c.clone();
|
|
2891
2891
|
p.negative !== 0 ? p = p.umod(c) : p = p.clone();
|
|
2892
|
-
for (var v = new i(1), S = new i(0), I = new i(0), C = new i(1), R = 0; p.isEven() &&
|
|
2893
|
-
p.iushrn(1),
|
|
2894
|
-
for (var u =
|
|
2892
|
+
for (var v = new i(1), S = new i(0), I = new i(0), C = new i(1), R = 0; p.isEven() && y.isEven(); )
|
|
2893
|
+
p.iushrn(1), y.iushrn(1), ++R;
|
|
2894
|
+
for (var u = y.clone(), l = p.clone(); !p.isZero(); ) {
|
|
2895
2895
|
for (var w = 0, E = 1; (p.words[0] & E) === 0 && w < 26; ++w, E <<= 1) ;
|
|
2896
2896
|
if (w > 0)
|
|
2897
2897
|
for (p.iushrn(w); w-- > 0; )
|
|
2898
2898
|
(v.isOdd() || S.isOdd()) && (v.iadd(u), S.isub(l)), v.iushrn(1), S.iushrn(1);
|
|
2899
|
-
for (var P = 0, V = 1; (
|
|
2899
|
+
for (var P = 0, V = 1; (y.words[0] & V) === 0 && P < 26; ++P, V <<= 1) ;
|
|
2900
2900
|
if (P > 0)
|
|
2901
|
-
for (
|
|
2901
|
+
for (y.iushrn(P); P-- > 0; )
|
|
2902
2902
|
(I.isOdd() || C.isOdd()) && (I.iadd(u), C.isub(l)), I.iushrn(1), C.iushrn(1);
|
|
2903
|
-
p.cmp(
|
|
2903
|
+
p.cmp(y) >= 0 ? (p.isub(y), v.isub(I), S.isub(C)) : (y.isub(p), I.isub(v), C.isub(S));
|
|
2904
2904
|
}
|
|
2905
2905
|
return {
|
|
2906
2906
|
a: I,
|
|
2907
2907
|
b: C,
|
|
2908
|
-
gcd:
|
|
2908
|
+
gcd: y.iushln(R)
|
|
2909
2909
|
};
|
|
2910
2910
|
}, i.prototype._invmp = function(c) {
|
|
2911
2911
|
r(c.negative === 0), r(!c.isZero());
|
|
2912
|
-
var p = this,
|
|
2912
|
+
var p = this, y = c.clone();
|
|
2913
2913
|
p.negative !== 0 ? p = p.umod(c) : p = p.clone();
|
|
2914
|
-
for (var v = new i(1), S = new i(0), I =
|
|
2914
|
+
for (var v = new i(1), S = new i(0), I = y.clone(); p.cmpn(1) > 0 && y.cmpn(1) > 0; ) {
|
|
2915
2915
|
for (var C = 0, R = 1; (p.words[0] & R) === 0 && C < 26; ++C, R <<= 1) ;
|
|
2916
2916
|
if (C > 0)
|
|
2917
2917
|
for (p.iushrn(C); C-- > 0; )
|
|
2918
2918
|
v.isOdd() && v.iadd(I), v.iushrn(1);
|
|
2919
|
-
for (var u = 0, l = 1; (
|
|
2919
|
+
for (var u = 0, l = 1; (y.words[0] & l) === 0 && u < 26; ++u, l <<= 1) ;
|
|
2920
2920
|
if (u > 0)
|
|
2921
|
-
for (
|
|
2921
|
+
for (y.iushrn(u); u-- > 0; )
|
|
2922
2922
|
S.isOdd() && S.iadd(I), S.iushrn(1);
|
|
2923
|
-
p.cmp(
|
|
2923
|
+
p.cmp(y) >= 0 ? (p.isub(y), v.isub(S)) : (y.isub(p), S.isub(v));
|
|
2924
2924
|
}
|
|
2925
2925
|
var w;
|
|
2926
2926
|
return p.cmpn(1) === 0 ? w = v : w = S, w.cmpn(0) < 0 && w.iadd(c), w;
|
|
2927
2927
|
}, i.prototype.gcd = function(c) {
|
|
2928
2928
|
if (this.isZero()) return c.abs();
|
|
2929
2929
|
if (c.isZero()) return this.abs();
|
|
2930
|
-
var p = this.clone(),
|
|
2931
|
-
p.negative = 0,
|
|
2932
|
-
for (var v = 0; p.isEven() &&
|
|
2933
|
-
p.iushrn(1),
|
|
2930
|
+
var p = this.clone(), y = c.clone();
|
|
2931
|
+
p.negative = 0, y.negative = 0;
|
|
2932
|
+
for (var v = 0; p.isEven() && y.isEven(); v++)
|
|
2933
|
+
p.iushrn(1), y.iushrn(1);
|
|
2934
2934
|
do {
|
|
2935
2935
|
for (; p.isEven(); )
|
|
2936
2936
|
p.iushrn(1);
|
|
2937
|
-
for (;
|
|
2938
|
-
|
|
2939
|
-
var S = p.cmp(
|
|
2937
|
+
for (; y.isEven(); )
|
|
2938
|
+
y.iushrn(1);
|
|
2939
|
+
var S = p.cmp(y);
|
|
2940
2940
|
if (S < 0) {
|
|
2941
2941
|
var I = p;
|
|
2942
|
-
p =
|
|
2943
|
-
} else if (S === 0 ||
|
|
2942
|
+
p = y, y = I;
|
|
2943
|
+
} else if (S === 0 || y.cmpn(1) === 0)
|
|
2944
2944
|
break;
|
|
2945
|
-
p.isub(
|
|
2945
|
+
p.isub(y);
|
|
2946
2946
|
} while (!0);
|
|
2947
|
-
return
|
|
2947
|
+
return y.iushln(v);
|
|
2948
2948
|
}, i.prototype.invm = function(c) {
|
|
2949
2949
|
return this.egcd(c).a.umod(c);
|
|
2950
2950
|
}, i.prototype.isEven = function() {
|
|
@@ -2955,10 +2955,10 @@ function Xo() {
|
|
|
2955
2955
|
return this.words[0] & c;
|
|
2956
2956
|
}, i.prototype.bincn = function(c) {
|
|
2957
2957
|
r(typeof c == "number");
|
|
2958
|
-
var p = c % 26,
|
|
2959
|
-
if (this.length <=
|
|
2960
|
-
return this._expand(
|
|
2961
|
-
for (var S = v, I =
|
|
2958
|
+
var p = c % 26, y = (c - p) / 26, v = 1 << p;
|
|
2959
|
+
if (this.length <= y)
|
|
2960
|
+
return this._expand(y + 1), this.words[y] |= v, this;
|
|
2961
|
+
for (var S = v, I = y; S !== 0 && I < this.length; I++) {
|
|
2962
2962
|
var C = this.words[I] | 0;
|
|
2963
2963
|
C += S, S = C >>> 26, C &= 67108863, this.words[I] = C;
|
|
2964
2964
|
}
|
|
@@ -2970,15 +2970,15 @@ function Xo() {
|
|
|
2970
2970
|
if (this.negative !== 0 && !p) return -1;
|
|
2971
2971
|
if (this.negative === 0 && p) return 1;
|
|
2972
2972
|
this._strip();
|
|
2973
|
-
var
|
|
2973
|
+
var y;
|
|
2974
2974
|
if (this.length > 1)
|
|
2975
|
-
|
|
2975
|
+
y = 1;
|
|
2976
2976
|
else {
|
|
2977
2977
|
p && (c = -c), r(c <= 67108863, "Number is too big");
|
|
2978
2978
|
var v = this.words[0] | 0;
|
|
2979
|
-
|
|
2979
|
+
y = v === c ? 0 : v < c ? -1 : 1;
|
|
2980
2980
|
}
|
|
2981
|
-
return this.negative !== 0 ? -
|
|
2981
|
+
return this.negative !== 0 ? -y | 0 : y;
|
|
2982
2982
|
}, i.prototype.cmp = function(c) {
|
|
2983
2983
|
if (this.negative !== 0 && c.negative === 0) return -1;
|
|
2984
2984
|
if (this.negative === 0 && c.negative !== 0) return 1;
|
|
@@ -2987,8 +2987,8 @@ function Xo() {
|
|
|
2987
2987
|
}, i.prototype.ucmp = function(c) {
|
|
2988
2988
|
if (this.length > c.length) return 1;
|
|
2989
2989
|
if (this.length < c.length) return -1;
|
|
2990
|
-
for (var p = 0,
|
|
2991
|
-
var v = this.words[
|
|
2990
|
+
for (var p = 0, y = this.length - 1; y >= 0; y--) {
|
|
2991
|
+
var v = this.words[y] | 0, S = c.words[y] | 0;
|
|
2992
2992
|
if (v !== S) {
|
|
2993
2993
|
v < S ? p = -1 : v > S && (p = 1);
|
|
2994
2994
|
break;
|
|
@@ -3065,11 +3065,11 @@ function Xo() {
|
|
|
3065
3065
|
var c = new i(null);
|
|
3066
3066
|
return c.words = new Array(Math.ceil(this.n / 13)), c;
|
|
3067
3067
|
}, D.prototype.ireduce = function(c) {
|
|
3068
|
-
var p = c,
|
|
3068
|
+
var p = c, y;
|
|
3069
3069
|
do
|
|
3070
|
-
this.split(p, this.tmp), p = this.imulK(p), p = p.iadd(this.tmp),
|
|
3071
|
-
while (
|
|
3072
|
-
var v =
|
|
3070
|
+
this.split(p, this.tmp), p = this.imulK(p), p = p.iadd(this.tmp), y = p.bitLength();
|
|
3071
|
+
while (y > this.n);
|
|
3072
|
+
var v = y < this.n ? -1 : p.ucmp(this.p);
|
|
3073
3073
|
return v === 0 ? (p.words[0] = 0, p.length = 1) : v > 0 ? p.isub(this.p) : p.strip !== void 0 ? p.strip() : p._strip(), p;
|
|
3074
3074
|
}, D.prototype.split = function(c, p) {
|
|
3075
3075
|
c.iushrn(this.n, 0, p);
|
|
@@ -3084,23 +3084,23 @@ function Xo() {
|
|
|
3084
3084
|
);
|
|
3085
3085
|
}
|
|
3086
3086
|
s(Z, D), Z.prototype.split = function(c, p) {
|
|
3087
|
-
for (var
|
|
3087
|
+
for (var y = 4194303, v = Math.min(c.length, 9), S = 0; S < v; S++)
|
|
3088
3088
|
p.words[S] = c.words[S];
|
|
3089
3089
|
if (p.length = v, c.length <= 9) {
|
|
3090
3090
|
c.words[0] = 0, c.length = 1;
|
|
3091
3091
|
return;
|
|
3092
3092
|
}
|
|
3093
3093
|
var I = c.words[9];
|
|
3094
|
-
for (p.words[p.length++] = I &
|
|
3094
|
+
for (p.words[p.length++] = I & y, S = 10; S < c.length; S++) {
|
|
3095
3095
|
var C = c.words[S] | 0;
|
|
3096
|
-
c.words[S - 10] = (C &
|
|
3096
|
+
c.words[S - 10] = (C & y) << 4 | I >>> 22, I = C;
|
|
3097
3097
|
}
|
|
3098
3098
|
I >>>= 22, c.words[S - 10] = I, I === 0 && c.length > 10 ? c.length -= 10 : c.length -= 9;
|
|
3099
3099
|
}, Z.prototype.imulK = function(c) {
|
|
3100
3100
|
c.words[c.length] = 0, c.words[c.length + 1] = 0, c.length += 2;
|
|
3101
|
-
for (var p = 0,
|
|
3102
|
-
var v = c.words[
|
|
3103
|
-
p += v * 977, c.words[
|
|
3101
|
+
for (var p = 0, y = 0; y < c.length; y++) {
|
|
3102
|
+
var v = c.words[y] | 0;
|
|
3103
|
+
p += v * 977, c.words[y] = p & 67108863, p = v * 64 + (p / 67108864 | 0);
|
|
3104
3104
|
}
|
|
3105
3105
|
return c.words[c.length - 1] === 0 && (c.length--, c.words[c.length - 1] === 0 && c.length--), c;
|
|
3106
3106
|
};
|
|
@@ -3128,9 +3128,9 @@ function Xo() {
|
|
|
3128
3128
|
);
|
|
3129
3129
|
}
|
|
3130
3130
|
s(z, D), z.prototype.imulK = function(c) {
|
|
3131
|
-
for (var p = 0,
|
|
3132
|
-
var v = (c.words[
|
|
3133
|
-
v >>>= 26, c.words[
|
|
3131
|
+
for (var p = 0, y = 0; y < c.length; y++) {
|
|
3132
|
+
var v = (c.words[y] | 0) * 19 + p, S = v & 67108863;
|
|
3133
|
+
v >>>= 26, c.words[y] = S, p = v;
|
|
3134
3134
|
}
|
|
3135
3135
|
return p !== 0 && (c.words[c.length++] = p), c;
|
|
3136
3136
|
}, i._prime = function(c) {
|
|
@@ -3168,20 +3168,20 @@ function Xo() {
|
|
|
3168
3168
|
return c.isZero() ? c.clone() : this.m.sub(c)._forceRed(this);
|
|
3169
3169
|
}, G.prototype.add = function(c, p) {
|
|
3170
3170
|
this._verify2(c, p);
|
|
3171
|
-
var
|
|
3172
|
-
return
|
|
3171
|
+
var y = c.add(p);
|
|
3172
|
+
return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this);
|
|
3173
3173
|
}, G.prototype.iadd = function(c, p) {
|
|
3174
3174
|
this._verify2(c, p);
|
|
3175
|
-
var
|
|
3176
|
-
return
|
|
3175
|
+
var y = c.iadd(p);
|
|
3176
|
+
return y.cmp(this.m) >= 0 && y.isub(this.m), y;
|
|
3177
3177
|
}, G.prototype.sub = function(c, p) {
|
|
3178
3178
|
this._verify2(c, p);
|
|
3179
|
-
var
|
|
3180
|
-
return
|
|
3179
|
+
var y = c.sub(p);
|
|
3180
|
+
return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this);
|
|
3181
3181
|
}, G.prototype.isub = function(c, p) {
|
|
3182
3182
|
this._verify2(c, p);
|
|
3183
|
-
var
|
|
3184
|
-
return
|
|
3183
|
+
var y = c.isub(p);
|
|
3184
|
+
return y.cmpn(0) < 0 && y.iadd(this.m), y;
|
|
3185
3185
|
}, G.prototype.shl = function(c, p) {
|
|
3186
3186
|
return this._verify1(c), this.imod(c.ushln(p));
|
|
3187
3187
|
}, G.prototype.imul = function(c, p) {
|
|
@@ -3196,8 +3196,8 @@ function Xo() {
|
|
|
3196
3196
|
if (c.isZero()) return c.clone();
|
|
3197
3197
|
var p = this.m.andln(3);
|
|
3198
3198
|
if (r(p % 2 === 1), p === 3) {
|
|
3199
|
-
var
|
|
3200
|
-
return this.pow(c,
|
|
3199
|
+
var y = this.m.add(new i(1)).iushrn(2);
|
|
3200
|
+
return this.pow(c, y);
|
|
3201
3201
|
}
|
|
3202
3202
|
for (var v = this.m.subn(1), S = 0; !v.isZero() && v.andln(1) === 0; )
|
|
3203
3203
|
S++, v.iushrn(1);
|
|
@@ -3219,7 +3219,7 @@ function Xo() {
|
|
|
3219
3219
|
}, G.prototype.pow = function(c, p) {
|
|
3220
3220
|
if (p.isZero()) return new i(1).toRed(this);
|
|
3221
3221
|
if (p.cmpn(1) === 0) return c.clone();
|
|
3222
|
-
var
|
|
3222
|
+
var y = 4, v = new Array(1 << y);
|
|
3223
3223
|
v[0] = new i(1).toRed(this), v[1] = c;
|
|
3224
3224
|
for (var S = 2; S < v.length; S++)
|
|
3225
3225
|
v[S] = this.mul(v[S - 1], c);
|
|
@@ -3231,7 +3231,7 @@ function Xo() {
|
|
|
3231
3231
|
R = 0;
|
|
3232
3232
|
continue;
|
|
3233
3233
|
}
|
|
3234
|
-
C <<= 1, C |= E, R++, !(R !==
|
|
3234
|
+
C <<= 1, C |= E, R++, !(R !== y && (S !== 0 || w !== 0)) && (I = this.mul(I, v[C]), R = 0, C = 0);
|
|
3235
3235
|
}
|
|
3236
3236
|
u = 26;
|
|
3237
3237
|
}
|
|
@@ -3256,11 +3256,11 @@ function Xo() {
|
|
|
3256
3256
|
}, Q.prototype.imul = function(c, p) {
|
|
3257
3257
|
if (c.isZero() || p.isZero())
|
|
3258
3258
|
return c.words[0] = 0, c.length = 1, c;
|
|
3259
|
-
var
|
|
3259
|
+
var y = c.imul(p), v = y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), S = y.isub(v).iushrn(this.shift), I = S;
|
|
3260
3260
|
return S.cmp(this.m) >= 0 ? I = S.isub(this.m) : S.cmpn(0) < 0 && (I = S.iadd(this.m)), I._forceRed(this);
|
|
3261
3261
|
}, Q.prototype.mul = function(c, p) {
|
|
3262
3262
|
if (c.isZero() || p.isZero()) return new i(0)._forceRed(this);
|
|
3263
|
-
var
|
|
3263
|
+
var y = c.mul(p), v = y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), S = y.isub(v).iushrn(this.shift), I = S;
|
|
3264
3264
|
return S.cmp(this.m) >= 0 ? I = S.isub(this.m) : S.cmpn(0) < 0 && (I = S.iadd(this.m)), I._forceRed(this);
|
|
3265
3265
|
}, Q.prototype.invm = function(c) {
|
|
3266
3266
|
var p = this.imod(c._invmp(this.m).mul(this.r2));
|
|
@@ -3745,7 +3745,7 @@ function xu() {
|
|
|
3745
3745
|
}), t = Te && Te.__decorate || function(X, z, G, Q) {
|
|
3746
3746
|
var A = arguments.length, c = A < 3 ? z : Q === null ? Q = Object.getOwnPropertyDescriptor(z, G) : Q, p;
|
|
3747
3747
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") c = Reflect.decorate(X, z, G, Q);
|
|
3748
|
-
else for (var
|
|
3748
|
+
else for (var y = X.length - 1; y >= 0; y--) (p = X[y]) && (c = (A < 3 ? p(c) : A > 3 ? p(z, G, c) : p(z, G)) || c);
|
|
3749
3749
|
return A > 3 && c && Object.defineProperty(z, G, c), c;
|
|
3750
3750
|
}, r = Te && Te.__importStar || function(X) {
|
|
3751
3751
|
if (X && X.__esModule) return X;
|
|
@@ -3977,9 +3977,9 @@ function xu() {
|
|
|
3977
3977
|
else if (Q.kind === "enum") {
|
|
3978
3978
|
const A = z[Q.field];
|
|
3979
3979
|
for (let c = 0; c < Q.values.length; ++c) {
|
|
3980
|
-
const [p,
|
|
3980
|
+
const [p, y] = Q.values[c];
|
|
3981
3981
|
if (p === A) {
|
|
3982
|
-
G.writeU8(c), H(X, p, z[p],
|
|
3982
|
+
G.writeU8(c), H(X, p, z[p], y, G);
|
|
3983
3983
|
break;
|
|
3984
3984
|
}
|
|
3985
3985
|
}
|
|
@@ -4012,8 +4012,8 @@ function xu() {
|
|
|
4012
4012
|
let A = /* @__PURE__ */ new Map();
|
|
4013
4013
|
const c = Q.readU32();
|
|
4014
4014
|
for (let p = 0; p < c; p++) {
|
|
4015
|
-
const
|
|
4016
|
-
A.set(
|
|
4015
|
+
const y = W(X, z, G.key, Q), v = W(X, z, G.value, Q);
|
|
4016
|
+
A.set(y, v);
|
|
4017
4017
|
}
|
|
4018
4018
|
return A;
|
|
4019
4019
|
}
|
|
@@ -4038,8 +4038,8 @@ function xu() {
|
|
|
4038
4038
|
const A = G.readU8();
|
|
4039
4039
|
if (A >= Q.values.length)
|
|
4040
4040
|
throw new T(`Enum index: ${A} is out of range`);
|
|
4041
|
-
const [c, p] = Q.values[A],
|
|
4042
|
-
return new z({ [c]:
|
|
4041
|
+
const [c, p] = Q.values[A], y = W(X, c, p, G);
|
|
4042
|
+
return new z({ [c]: y });
|
|
4043
4043
|
}
|
|
4044
4044
|
throw new T(`Unexpected schema kind: ${Q.kind} for ${z.constructor.name}`);
|
|
4045
4045
|
}
|
|
@@ -4871,7 +4871,7 @@ function Bu() {
|
|
|
4871
4871
|
*
|
|
4872
4872
|
* @return {BitField} */
|
|
4873
4873
|
addField(l, w) {
|
|
4874
|
-
const E = new
|
|
4874
|
+
const E = new y(this, l, w);
|
|
4875
4875
|
return this.fields.push(E), E;
|
|
4876
4876
|
}
|
|
4877
4877
|
/** As with {@link BitStructure#addField|addField} for single-bit
|
|
@@ -4904,7 +4904,7 @@ function Bu() {
|
|
|
4904
4904
|
}
|
|
4905
4905
|
}
|
|
4906
4906
|
q.BitStructure = p;
|
|
4907
|
-
class
|
|
4907
|
+
class y {
|
|
4908
4908
|
constructor(l, w, E) {
|
|
4909
4909
|
if (!(l instanceof p))
|
|
4910
4910
|
throw new TypeError("container must be a BitStructure");
|
|
@@ -4933,8 +4933,8 @@ function Bu() {
|
|
|
4933
4933
|
this.container._packedSetValue(c(w & ~this.wordMask) | E);
|
|
4934
4934
|
}
|
|
4935
4935
|
}
|
|
4936
|
-
q.BitField =
|
|
4937
|
-
class v extends
|
|
4936
|
+
q.BitField = y;
|
|
4937
|
+
class v extends y {
|
|
4938
4938
|
constructor(l, w) {
|
|
4939
4939
|
super(l, 1, w);
|
|
4940
4940
|
}
|
|
@@ -5057,7 +5057,7 @@ function Bu() {
|
|
|
5057
5057
|
}
|
|
5058
5058
|
return q.Constant = R, q.greedy = (u, l) => new a(u, l), q.offset = (u, l, w) => new f(u, l, w), q.u8 = (u) => new g(1, u), q.u16 = (u) => new g(2, u), q.u24 = (u) => new g(3, u), q.u32 = (u) => new g(4, u), q.u40 = (u) => new g(5, u), q.u48 = (u) => new g(6, u), q.nu64 = (u) => new N(u), q.u16be = (u) => new _(2, u), q.u24be = (u) => new _(3, u), q.u32be = (u) => new _(4, u), q.u40be = (u) => new _(5, u), q.u48be = (u) => new _(6, u), q.nu64be = (u) => new M(u), q.s8 = (u) => new b(1, u), q.s16 = (u) => new b(2, u), q.s24 = (u) => new b(3, u), q.s32 = (u) => new b(4, u), q.s40 = (u) => new b(5, u), q.s48 = (u) => new b(6, u), q.ns64 = (u) => new H(u), q.s16be = (u) => new x(2, u), q.s24be = (u) => new x(3, u), q.s32be = (u) => new x(4, u), q.s40be = (u) => new x(5, u), q.s48be = (u) => new x(6, u), q.ns64be = (u) => new $(u), q.f32 = (u) => new J(u), q.f32be = (u) => new W(u), q.f64 = (u) => new D(u), q.f64be = (u) => new Z(u), q.struct = (u, l, w) => new X(u, l, w), q.bits = (u, l, w) => new p(u, l, w), q.seq = (u, l, w) => new j(u, l, w), q.union = (u, l, w) => new Q(u, l, w), q.unionLayoutDiscriminator = (u, l) => new G(u, l), q.blob = (u, l) => new S(u, l), q.cstr = (u) => new I(u), q.utf8 = (u, l) => new C(u, l), q.constant = (u, l) => new R(u, l), q;
|
|
5059
5059
|
}
|
|
5060
|
-
var B = Bu(), Lu = 1, Cu = 2, Mu = 3, Pu = 4, Uu = 5, Du = 6, Fu = 7, zu = 8, $u = 9, Ku = 10, Hu = -32700, Wu = -32603, qu = -32602, Gu = -32601, Vu = -32600, Yu = -32016, ju = -32015, Zu = -32014, Xu = -32013, Ju = -32012, Qu = -32011, el = -32010, tl = -32009, rl = -32008, nl = -32007, il = -32006, sl = -32005, ol = -32004, al = -32003, cl = -32002, ul = -32001, ll = 28e5, hl = 2800001, fl = 2800002, dl = 2800003, pl = 2800004, gl = 2800005,
|
|
5060
|
+
var B = Bu(), Lu = 1, Cu = 2, Mu = 3, Pu = 4, Uu = 5, Du = 6, Fu = 7, zu = 8, $u = 9, Ku = 10, Hu = -32700, Wu = -32603, qu = -32602, Gu = -32601, Vu = -32600, Yu = -32016, ju = -32015, Zu = -32014, Xu = -32013, Ju = -32012, Qu = -32011, el = -32010, tl = -32009, rl = -32008, nl = -32007, il = -32006, sl = -32005, ol = -32004, al = -32003, cl = -32002, ul = -32001, ll = 28e5, hl = 2800001, fl = 2800002, dl = 2800003, pl = 2800004, gl = 2800005, yl = 2800006, ml = 2800007, _l = 2800008, wl = 2800009, bl = 2800010, Rl = 323e4, El = 32300001, Sl = 3230002, Al = 3230003, Il = 3230004, vl = 361e4, Ol = 3610001, kl = 3610002, Tl = 3610003, Nl = 3610004, xl = 3610005, Bl = 3610006, Ll = 3610007, Cl = 3611e3, Ml = 3704e3, Pl = 3704001, Ul = 3704002, Dl = 3704003, Fl = 3704004, zl = 4128e3, $l = 4128001, Kl = 4128002, Hl = 4615e3, Wl = 4615001, ql = 4615002, Gl = 4615003, Vl = 4615004, Yl = 4615005, jl = 4615006, Zl = 4615007, Xl = 4615008, Jl = 4615009, Ql = 4615010, eh = 4615011, th = 4615012, rh = 4615013, nh = 4615014, ih = 4615015, sh = 4615016, oh = 4615017, ah = 4615018, ch = 4615019, uh = 4615020, lh = 4615021, hh = 4615022, fh = 4615023, dh = 4615024, ph = 4615025, gh = 4615026, yh = 4615027, mh = 4615028, _h = 4615029, wh = 4615030, bh = 4615031, Rh = 4615032, Eh = 4615033, Sh = 4615034, Ah = 4615035, Ih = 4615036, vh = 4615037, Oh = 4615038, kh = 4615039, Th = 4615040, Nh = 4615041, xh = 4615042, Bh = 4615043, Lh = 4615044, Ch = 4615045, Mh = 4615046, Ph = 4615047, Uh = 4615048, Dh = 4615049, Fh = 4615050, zh = 4615051, $h = 4615052, Kh = 4615053, Hh = 4615054, Wh = 5508e3, qh = 5508001, Gh = 5508002, Vh = 5508003, Yh = 5508004, jh = 5508005, Zh = 5508006, Xh = 5508007, Jh = 5508008, Qh = 5508009, ef = 5508010, tf = 5508011, rf = 5663e3, nf = 5663001, sf = 5663002, of = 5663003, af = 5663004, cf = 5663005, uf = 5663006, lf = 5663007, hf = 5663008, ff = 5663009, df = 5663010, pf = 5663011, gf = 5663012, yf = 5663013, mf = 5663014, _f = 5663015, wf = 5663016, bf = 5663017, Rf = 5663018, Ef = 5663019, Sf = 705e4, Af = 7050001, If = 7050002, vf = 7050003, Of = 7050004, kf = 7050005, Tf = 7050006, Nf = 7050007, xf = 7050008, Bf = 7050009, Lf = 7050010, Cf = 7050011, Mf = 7050012, Pf = 7050013, Uf = 7050014, Df = 7050015, Ff = 7050016, zf = 7050017, $f = 7050018, Kf = 7050019, Hf = 7050020, Wf = 7050021, qf = 7050022, Gf = 7050023, Vf = 7050024, Yf = 7050025, jf = 7050026, Zf = 7050027, Xf = 7050028, Jf = 7050029, Qf = 7050030, ed = 7050031, td = 7050032, rd = 7050033, nd = 7050034, id = 7050035, sd = 7050036, Qo = 8078e3, ea = 8078001, od = 8078002, ad = 8078003, ta = 8078004, ra = 8078005, na = 8078006, cd = 8078007, ud = 8078008, ld = 8078009, hd = 8078010, ia = 8078011, fd = 8078012, dd = 8078013, pd = 8078014, gd = 8078015, yd = 8078016, md = 8078017, _d = 8078018, wd = 8078019, bd = 8078020, Rd = 8078021, Ed = 8078022, Sd = 81e5, Ad = 8100001, Id = 8100002, vd = 8100003, Od = 819e4, kd = 8190001, Td = 8190002, Nd = 8190003, xd = 8190004, Bd = 99e5, Ld = 9900001, Cd = 9900002, Md = 9900003, Pd = 9900004;
|
|
5061
5061
|
function sa(n) {
|
|
5062
5062
|
return Array.isArray(n) ? "%5B" + n.map(sa).join(
|
|
5063
5063
|
"%2C%20"
|
|
@@ -5092,8 +5092,8 @@ var Fd = {
|
|
|
5092
5092
|
[dl]: "The `CryptoKey` must be an `Ed25519` public key.",
|
|
5093
5093
|
[_l]: "Invalid seeds; point must fall off the Ed25519 curve.",
|
|
5094
5094
|
[pl]: "Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",
|
|
5095
|
-
[
|
|
5096
|
-
[
|
|
5095
|
+
[yl]: "A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",
|
|
5096
|
+
[ml]: "The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",
|
|
5097
5097
|
[gl]: "Expected program derived address bump to be in the range [0, 255], got: $bump.",
|
|
5098
5098
|
[bl]: "Program address cannot end with PDA marker.",
|
|
5099
5099
|
[hl]: "Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",
|
|
@@ -5117,11 +5117,11 @@ var Fd = {
|
|
|
5117
5117
|
[gd]: "Invalid literal union variant. Expected one of [$variants], got $value.",
|
|
5118
5118
|
[cd]: "Expected [$codecDescription] to have $expected items, got $actual.",
|
|
5119
5119
|
[fd]: "Invalid value $value for base $base with alphabet $alphabet.",
|
|
5120
|
-
[
|
|
5120
|
+
[yd]: "Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
|
|
5121
5121
|
[ia]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
|
|
5122
5122
|
[pd]: "Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",
|
|
5123
5123
|
[Rd]: "Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",
|
|
5124
|
-
[
|
|
5124
|
+
[md]: "Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",
|
|
5125
5125
|
[Cl]: "No random values implementation could be found.",
|
|
5126
5126
|
[Jl]: "instruction requires an uninitialized account",
|
|
5127
5127
|
[fh]: "instruction tries to borrow reference for an account which is already borrowed",
|
|
@@ -5139,7 +5139,7 @@ var Fd = {
|
|
|
5139
5139
|
[oh]: "instruction contains duplicate accounts",
|
|
5140
5140
|
[ph]: "instruction modifications of multiply-passed account differ",
|
|
5141
5141
|
[wh]: "executable accounts must be rent exempt",
|
|
5142
|
-
[
|
|
5142
|
+
[mh]: "instruction changed executable accounts data",
|
|
5143
5143
|
[_h]: "instruction changed the balance of an executable account",
|
|
5144
5144
|
[ah]: "instruction changed executable bit of an account",
|
|
5145
5145
|
[nh]: "instruction modified data of an account it does not own",
|
|
@@ -5153,7 +5153,7 @@ var Fd = {
|
|
|
5153
5153
|
[Vl]: "invalid account data for instruction",
|
|
5154
5154
|
[Ph]: "Invalid account owner",
|
|
5155
5155
|
[ql]: "invalid program argument",
|
|
5156
|
-
[
|
|
5156
|
+
[yh]: "program returned invalid error code",
|
|
5157
5157
|
[Gl]: "invalid instruction data",
|
|
5158
5158
|
[vh]: "Failed to reallocate account data",
|
|
5159
5159
|
[Ih]: "Provided seeds do not result in a valid address",
|
|
@@ -5303,8 +5303,8 @@ For a list of runtimes that currently support Ed25519 operations, visit https://
|
|
|
5303
5303
|
[Ef]: "Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",
|
|
5304
5304
|
[pf]: "Transaction is missing a fee payer.",
|
|
5305
5305
|
[gf]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",
|
|
5306
|
-
[
|
|
5307
|
-
[
|
|
5306
|
+
[mf]: "Transaction first instruction is not advance nonce account instruction.",
|
|
5307
|
+
[yf]: "Transaction with no instructions cannot be durable nonce transaction.",
|
|
5308
5308
|
[rf]: "This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",
|
|
5309
5309
|
[nf]: "This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",
|
|
5310
5310
|
[bf]: "The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",
|
|
@@ -5833,28 +5833,28 @@ const c0 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a
|
|
|
5833
5833
|
function Nn(n) {
|
|
5834
5834
|
return typeof n == "string" && c0.test(n);
|
|
5835
5835
|
}
|
|
5836
|
-
var
|
|
5837
|
-
for (var
|
|
5838
|
-
|
|
5836
|
+
var yt = [];
|
|
5837
|
+
for (var yi = 0; yi < 256; ++yi)
|
|
5838
|
+
yt.push((yi + 256).toString(16).substr(1));
|
|
5839
5839
|
function xn(n) {
|
|
5840
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = (
|
|
5840
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = (yt[n[e + 0]] + yt[n[e + 1]] + yt[n[e + 2]] + yt[n[e + 3]] + "-" + yt[n[e + 4]] + yt[n[e + 5]] + "-" + yt[n[e + 6]] + yt[n[e + 7]] + "-" + yt[n[e + 8]] + yt[n[e + 9]] + "-" + yt[n[e + 10]] + yt[n[e + 11]] + yt[n[e + 12]] + yt[n[e + 13]] + yt[n[e + 14]] + yt[n[e + 15]]).toLowerCase();
|
|
5841
5841
|
if (!Nn(t))
|
|
5842
5842
|
throw TypeError("Stringified UUID is invalid");
|
|
5843
5843
|
return t;
|
|
5844
5844
|
}
|
|
5845
|
-
var Js,
|
|
5845
|
+
var Js, mi, _i = 0, wi = 0;
|
|
5846
5846
|
function u0(n, e, t) {
|
|
5847
5847
|
var r = e && t || 0, s = e || new Array(16);
|
|
5848
5848
|
n = n || {};
|
|
5849
|
-
var i = n.node || Js, o = n.clockseq !== void 0 ? n.clockseq :
|
|
5849
|
+
var i = n.node || Js, o = n.clockseq !== void 0 ? n.clockseq : mi;
|
|
5850
5850
|
if (i == null || o == null) {
|
|
5851
5851
|
var a = n.random || (n.rng || ha)();
|
|
5852
|
-
i == null && (i = Js = [a[0] | 1, a[1], a[2], a[3], a[4], a[5]]), o == null && (o =
|
|
5852
|
+
i == null && (i = Js = [a[0] | 1, a[1], a[2], a[3], a[4], a[5]]), o == null && (o = mi = (a[6] << 8 | a[7]) & 16383);
|
|
5853
5853
|
}
|
|
5854
5854
|
var f = n.msecs !== void 0 ? n.msecs : Date.now(), g = n.nsecs !== void 0 ? n.nsecs : wi + 1, _ = f - _i + (g - wi) / 1e4;
|
|
5855
5855
|
if (_ < 0 && n.clockseq === void 0 && (o = o + 1 & 16383), (_ < 0 || f > _i) && n.nsecs === void 0 && (g = 0), g >= 1e4)
|
|
5856
5856
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
5857
|
-
_i = f, wi = g,
|
|
5857
|
+
_i = f, wi = g, mi = o, f += 122192928e5;
|
|
5858
5858
|
var b = ((f & 268435455) * 1e4 + g) % 4294967296;
|
|
5859
5859
|
s[r++] = b >>> 24 & 255, s[r++] = b >>> 16 & 255, s[r++] = b >>> 8 & 255, s[r++] = b & 255;
|
|
5860
5860
|
var x = f / 4294967296 * 1e4 & 268435455;
|
|
@@ -5902,7 +5902,7 @@ function d0(n) {
|
|
|
5902
5902
|
for (var t = 0; t < e.length; ++t)
|
|
5903
5903
|
n[t] = e.charCodeAt(t);
|
|
5904
5904
|
}
|
|
5905
|
-
return p0(g0(
|
|
5905
|
+
return p0(g0(y0(n), n.length * 8));
|
|
5906
5906
|
}
|
|
5907
5907
|
function p0(n) {
|
|
5908
5908
|
for (var e = [], t = n.length * 32, r = "0123456789abcdef", s = 0; s < t; s += 8) {
|
|
@@ -5922,7 +5922,7 @@ function g0(n, e) {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
return [t, r, s, i];
|
|
5924
5924
|
}
|
|
5925
|
-
function
|
|
5925
|
+
function y0(n) {
|
|
5926
5926
|
if (n.length === 0)
|
|
5927
5927
|
return [];
|
|
5928
5928
|
for (var e = n.length * 8, t = new Uint32Array(pa(e)), r = 0; r < e; r += 8)
|
|
@@ -5933,11 +5933,11 @@ function ir(n, e) {
|
|
|
5933
5933
|
var t = (n & 65535) + (e & 65535), r = (n >> 16) + (e >> 16) + (t >> 16);
|
|
5934
5934
|
return r << 16 | t & 65535;
|
|
5935
5935
|
}
|
|
5936
|
-
function
|
|
5936
|
+
function m0(n, e) {
|
|
5937
5937
|
return n << e | n >>> 32 - e;
|
|
5938
5938
|
}
|
|
5939
5939
|
function Bn(n, e, t, r, s, i) {
|
|
5940
|
-
return ir(
|
|
5940
|
+
return ir(m0(ir(ir(e, n), ir(r, i)), s), t);
|
|
5941
5941
|
}
|
|
5942
5942
|
function _t(n, e, t, r, s, i, o) {
|
|
5943
5943
|
return Bn(e & t | ~e & r, n, e, s, i, o);
|
|
@@ -6241,8 +6241,8 @@ function N0() {
|
|
|
6241
6241
|
}(Si)), Si.exports;
|
|
6242
6242
|
}
|
|
6243
6243
|
var x0 = N0();
|
|
6244
|
-
const
|
|
6245
|
-
var B0 = class extends
|
|
6244
|
+
const ya = /* @__PURE__ */ Qr(x0);
|
|
6245
|
+
var B0 = class extends ya {
|
|
6246
6246
|
/** Instantiate a WebSocket class
|
|
6247
6247
|
* @constructor
|
|
6248
6248
|
* @param {String} address - url to a websocket server
|
|
@@ -6298,7 +6298,7 @@ var C0 = class {
|
|
|
6298
6298
|
decode(n) {
|
|
6299
6299
|
return JSON.parse(n);
|
|
6300
6300
|
}
|
|
6301
|
-
}, M0 = class extends
|
|
6301
|
+
}, M0 = class extends ya {
|
|
6302
6302
|
/**
|
|
6303
6303
|
* Instantiate a Client class.
|
|
6304
6304
|
* @constructor
|
|
@@ -6535,9 +6535,9 @@ var C0 = class {
|
|
|
6535
6535
|
});
|
|
6536
6536
|
}
|
|
6537
6537
|
};
|
|
6538
|
-
const
|
|
6538
|
+
const ma = [], _a = [], wa = [], P0 = /* @__PURE__ */ BigInt(0), $r = /* @__PURE__ */ BigInt(1), U0 = /* @__PURE__ */ BigInt(2), D0 = /* @__PURE__ */ BigInt(7), F0 = /* @__PURE__ */ BigInt(256), z0 = /* @__PURE__ */ BigInt(113);
|
|
6539
6539
|
for (let n = 0, e = $r, t = 1, r = 0; n < 24; n++) {
|
|
6540
|
-
[t, r] = [r, (2 * t + 3 * r) % 5],
|
|
6540
|
+
[t, r] = [r, (2 * t + 3 * r) % 5], ma.push(2 * (5 * r + t)), _a.push((n + 1) * (n + 2) / 2 % 64);
|
|
6541
6541
|
let s = P0;
|
|
6542
6542
|
for (let i = 0; i < 7; i++)
|
|
6543
6543
|
e = (e << $r ^ (e >> D0) * z0) % F0, e & U0 && (s ^= $r << ($r << /* @__PURE__ */ BigInt(i)) - $r);
|
|
@@ -6556,7 +6556,7 @@ function H0(n, e = 24) {
|
|
|
6556
6556
|
}
|
|
6557
6557
|
let s = n[2], i = n[3];
|
|
6558
6558
|
for (let o = 0; o < 24; o++) {
|
|
6559
|
-
const a = _a[o], f = ro(s, i, a), g = no(s, i, a), _ =
|
|
6559
|
+
const a = _a[o], f = ro(s, i, a), g = no(s, i, a), _ = ma[o];
|
|
6560
6560
|
s = n[_], i = n[_ + 1], n[_] = f, n[_ + 1] = g;
|
|
6561
6561
|
}
|
|
6562
6562
|
for (let o = 0; o < 50; o += 10) {
|
|
@@ -6888,8 +6888,8 @@ function Y0(n) {
|
|
|
6888
6888
|
const X = e.a, z = t.mul(e.b, so);
|
|
6889
6889
|
let G = t.mul(N, $), Q = t.mul(M, J), A = t.mul(H, W), c = t.add(N, M), p = t.add($, J);
|
|
6890
6890
|
c = t.mul(c, p), p = t.add(G, Q), c = t.sub(c, p), p = t.add(N, H);
|
|
6891
|
-
let
|
|
6892
|
-
return p = t.mul(p,
|
|
6891
|
+
let y = t.add($, W);
|
|
6892
|
+
return p = t.mul(p, y), y = t.add(G, A), p = t.sub(p, y), y = t.add(M, H), D = t.add(J, W), y = t.mul(y, D), D = t.add(Q, A), y = t.sub(y, D), j = t.mul(X, p), D = t.mul(z, A), j = t.add(D, j), D = t.sub(Q, j), j = t.add(Q, j), Z = t.mul(D, j), Q = t.add(G, G), Q = t.add(Q, G), A = t.mul(X, A), p = t.mul(z, p), Q = t.add(Q, A), A = t.sub(G, A), A = t.mul(X, A), p = t.add(p, A), G = t.mul(Q, p), Z = t.add(Z, G), G = t.mul(y, p), D = t.mul(c, D), D = t.sub(D, G), G = t.mul(c, Q), j = t.mul(y, j), j = t.add(j, G), new b(D, Z, j);
|
|
6893
6893
|
}
|
|
6894
6894
|
subtract(k) {
|
|
6895
6895
|
return this.add(k.negate());
|
|
@@ -7022,13 +7022,13 @@ function Z0(n) {
|
|
|
7022
7022
|
}
|
|
7023
7023
|
const { ProjectivePoint: g, normPrivateKeyToScalar: _, weierstrassEquation: b, isWithinCurveOrder: x } = Y0({
|
|
7024
7024
|
...e,
|
|
7025
|
-
toBytes(p,
|
|
7026
|
-
const S =
|
|
7027
|
-
return v ? C(Uint8Array.from([
|
|
7025
|
+
toBytes(p, y, v) {
|
|
7026
|
+
const S = y.toAffine(), I = t.toBytes(S.x), C = gr;
|
|
7027
|
+
return v ? C(Uint8Array.from([y.hasEvenY() ? 2 : 3]), I) : C(Uint8Array.from([4]), I, t.toBytes(S.y));
|
|
7028
7028
|
},
|
|
7029
7029
|
fromBytes(p) {
|
|
7030
|
-
const
|
|
7031
|
-
if (
|
|
7030
|
+
const y = p.length, v = p[0], S = p.subarray(1);
|
|
7031
|
+
if (y === s && (v === 2 || v === 3)) {
|
|
7032
7032
|
const I = fr(S);
|
|
7033
7033
|
if (!o(I))
|
|
7034
7034
|
throw new Error("Point is not on curve");
|
|
@@ -7042,34 +7042,34 @@ function Z0(n) {
|
|
|
7042
7042
|
}
|
|
7043
7043
|
const u = (R & Nt) === Nt;
|
|
7044
7044
|
return (v & 1) === 1 !== u && (R = t.neg(R)), { x: I, y: R };
|
|
7045
|
-
} else if (
|
|
7045
|
+
} else if (y === i && v === 4) {
|
|
7046
7046
|
const I = t.fromBytes(S.subarray(0, t.BYTES)), C = t.fromBytes(S.subarray(t.BYTES, 2 * t.BYTES));
|
|
7047
7047
|
return { x: I, y: C };
|
|
7048
7048
|
} else
|
|
7049
|
-
throw new Error(`Point of length ${
|
|
7049
|
+
throw new Error(`Point of length ${y} was invalid. Expected ${s} compressed bytes or ${i} uncompressed bytes`);
|
|
7050
7050
|
}
|
|
7051
7051
|
}), T = (p) => pr(Nr(p, e.nByteLength));
|
|
7052
7052
|
function L(p) {
|
|
7053
|
-
const
|
|
7054
|
-
return p >
|
|
7053
|
+
const y = r >> Nt;
|
|
7054
|
+
return p > y;
|
|
7055
7055
|
}
|
|
7056
7056
|
function k(p) {
|
|
7057
7057
|
return L(p) ? a(-p) : p;
|
|
7058
7058
|
}
|
|
7059
|
-
const N = (p,
|
|
7059
|
+
const N = (p, y, v) => fr(p.slice(y, v));
|
|
7060
7060
|
class M {
|
|
7061
|
-
constructor(
|
|
7062
|
-
this.r =
|
|
7061
|
+
constructor(y, v, S) {
|
|
7062
|
+
this.r = y, this.s = v, this.recovery = S, this.assertValidity();
|
|
7063
7063
|
}
|
|
7064
7064
|
// pair (bytes of r, bytes of s)
|
|
7065
|
-
static fromCompact(
|
|
7065
|
+
static fromCompact(y) {
|
|
7066
7066
|
const v = e.nByteLength;
|
|
7067
|
-
return
|
|
7067
|
+
return y = ht("compactSignature", y, v * 2), new M(N(y, 0, v), N(y, v, 2 * v));
|
|
7068
7068
|
}
|
|
7069
7069
|
// DER encoded ECDSA signature
|
|
7070
7070
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
|
7071
|
-
static fromDER(
|
|
7072
|
-
const { r: v, s: S } = lr.toSig(ht("DER",
|
|
7071
|
+
static fromDER(y) {
|
|
7072
|
+
const { r: v, s: S } = lr.toSig(ht("DER", y));
|
|
7073
7073
|
return new M(v, S);
|
|
7074
7074
|
}
|
|
7075
7075
|
assertValidity() {
|
|
@@ -7078,11 +7078,11 @@ function Z0(n) {
|
|
|
7078
7078
|
if (!x(this.s))
|
|
7079
7079
|
throw new Error("s must be 0 < s < CURVE.n");
|
|
7080
7080
|
}
|
|
7081
|
-
addRecoveryBit(
|
|
7082
|
-
return new M(this.r, this.s,
|
|
7081
|
+
addRecoveryBit(y) {
|
|
7082
|
+
return new M(this.r, this.s, y);
|
|
7083
7083
|
}
|
|
7084
|
-
recoverPublicKey(
|
|
7085
|
-
const { r: v, s: S, recovery: I } = this, C = Z(ht("msgHash",
|
|
7084
|
+
recoverPublicKey(y) {
|
|
7085
|
+
const { r: v, s: S, recovery: I } = this, C = Z(ht("msgHash", y));
|
|
7086
7086
|
if (I == null || ![0, 1, 2, 3].includes(I))
|
|
7087
7087
|
throw new Error("recovery id invalid");
|
|
7088
7088
|
const R = I === 2 || I === 3 ? v + e.n : v;
|
|
@@ -7140,27 +7140,27 @@ function Z0(n) {
|
|
|
7140
7140
|
* const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
|
|
7141
7141
|
* fast.multiply(privKey); // much faster ECDH now
|
|
7142
7142
|
*/
|
|
7143
|
-
precompute(p = 8,
|
|
7144
|
-
return
|
|
7143
|
+
precompute(p = 8, y = g.BASE) {
|
|
7144
|
+
return y._setWindowSize(p), y.multiply(BigInt(3)), y;
|
|
7145
7145
|
}
|
|
7146
7146
|
};
|
|
7147
|
-
function $(p,
|
|
7148
|
-
return g.fromPrivateKey(p).toRawBytes(
|
|
7147
|
+
function $(p, y = !0) {
|
|
7148
|
+
return g.fromPrivateKey(p).toRawBytes(y);
|
|
7149
7149
|
}
|
|
7150
7150
|
function J(p) {
|
|
7151
|
-
const
|
|
7152
|
-
return
|
|
7151
|
+
const y = dr(p), v = typeof p == "string", S = (y || v) && p.length;
|
|
7152
|
+
return y ? S === s || S === i : v ? S === 2 * s || S === 2 * i : p instanceof g;
|
|
7153
7153
|
}
|
|
7154
|
-
function W(p,
|
|
7154
|
+
function W(p, y, v = !0) {
|
|
7155
7155
|
if (J(p))
|
|
7156
7156
|
throw new Error("first arg must be private key");
|
|
7157
|
-
if (!J(
|
|
7157
|
+
if (!J(y))
|
|
7158
7158
|
throw new Error("second arg must be public key");
|
|
7159
|
-
return g.fromHex(
|
|
7159
|
+
return g.fromHex(y).multiply(_(p)).toRawBytes(v);
|
|
7160
7160
|
}
|
|
7161
7161
|
const D = e.bits2int || function(p) {
|
|
7162
|
-
const
|
|
7163
|
-
return v > 0 ?
|
|
7162
|
+
const y = fr(p), v = p.length * 8 - e.nBitLength;
|
|
7163
|
+
return v > 0 ? y >> BigInt(v) : y;
|
|
7164
7164
|
}, Z = e.bits2int_modN || function(p) {
|
|
7165
7165
|
return a(D(p));
|
|
7166
7166
|
}, j = Zi(e.nBitLength);
|
|
@@ -7171,13 +7171,13 @@ function Z0(n) {
|
|
|
7171
7171
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
|
7172
7172
|
return Nr(p, e.nByteLength);
|
|
7173
7173
|
}
|
|
7174
|
-
function z(p,
|
|
7174
|
+
function z(p, y, v = G) {
|
|
7175
7175
|
if (["recovered", "canonical"].some((ae) => ae in v))
|
|
7176
7176
|
throw new Error("sign() legacy options not supported");
|
|
7177
7177
|
const { hash: S, randomBytes: I } = e;
|
|
7178
7178
|
let { lowS: C, prehash: R, extraEntropy: u } = v;
|
|
7179
7179
|
C == null && (C = !0), p = ht("msgHash", p), R && (p = ht("prehashed msgHash", S(p)));
|
|
7180
|
-
const l = Z(p), w = _(
|
|
7180
|
+
const l = Z(p), w = _(y), E = [X(w), X(l)];
|
|
7181
7181
|
if (u != null && u !== !1) {
|
|
7182
7182
|
const ae = u === !0 ? I(t.BYTES) : u;
|
|
7183
7183
|
E.push(ht("extraEntropy", ae));
|
|
@@ -7199,15 +7199,15 @@ function Z0(n) {
|
|
|
7199
7199
|
return { seed: P, k2sig: re };
|
|
7200
7200
|
}
|
|
7201
7201
|
const G = { lowS: e.lowS, prehash: !1 }, Q = { lowS: e.lowS, prehash: !1 };
|
|
7202
|
-
function A(p,
|
|
7203
|
-
const { seed: S, k2sig: I } = z(p,
|
|
7202
|
+
function A(p, y, v = G) {
|
|
7203
|
+
const { seed: S, k2sig: I } = z(p, y, v), C = e;
|
|
7204
7204
|
return qo(C.hash.outputLen, C.nByteLength, C.hmac)(S, I);
|
|
7205
7205
|
}
|
|
7206
7206
|
g.BASE._setWindowSize(8);
|
|
7207
|
-
function c(p,
|
|
7207
|
+
function c(p, y, v, S = Q) {
|
|
7208
7208
|
var we;
|
|
7209
7209
|
const I = p;
|
|
7210
|
-
if (
|
|
7210
|
+
if (y = ht("msgHash", y), v = ht("publicKey", v), "strict" in S)
|
|
7211
7211
|
throw new Error("options.strict was renamed to lowS");
|
|
7212
7212
|
const { lowS: C, prehash: R } = S;
|
|
7213
7213
|
let u, l;
|
|
@@ -7233,8 +7233,8 @@ function Z0(n) {
|
|
|
7233
7233
|
}
|
|
7234
7234
|
if (C && u.hasHighS())
|
|
7235
7235
|
return !1;
|
|
7236
|
-
R && (
|
|
7237
|
-
const { r: w, s: E } = u, P = Z(
|
|
7236
|
+
R && (y = e.hash(y));
|
|
7237
|
+
const { r: w, s: E } = u, P = Z(y), V = f(E), re = a(P * V), ae = a(w * V), Se = (we = g.BASE.multiplyAndAddUnsafe(l, re, ae)) == null ? void 0 : we.toAffine();
|
|
7238
7238
|
return Se ? a(Se.x) === w : !1;
|
|
7239
7239
|
}
|
|
7240
7240
|
return {
|
|
@@ -7863,7 +7863,7 @@ class Ct {
|
|
|
7863
7863
|
return new Ct(b);
|
|
7864
7864
|
}
|
|
7865
7865
|
}
|
|
7866
|
-
class
|
|
7866
|
+
class yr {
|
|
7867
7867
|
constructor(e) {
|
|
7868
7868
|
this.header = void 0, this.staticAccountKeys = void 0, this.recentBlockhash = void 0, this.compiledInstructions = void 0, this.addressTableLookups = void 0, this.header = e.header, this.staticAccountKeys = e.staticAccountKeys, this.recentBlockhash = e.recentBlockhash, this.compiledInstructions = e.compiledInstructions, this.addressTableLookups = e.addressTableLookups;
|
|
7869
7869
|
}
|
|
@@ -7942,7 +7942,7 @@ class mr {
|
|
|
7942
7942
|
}
|
|
7943
7943
|
}
|
|
7944
7944
|
const [o, a] = t.getMessageComponents(), g = new Yr(a, s).compileInstructions(e.instructions);
|
|
7945
|
-
return new
|
|
7945
|
+
return new yr({
|
|
7946
7946
|
header: o,
|
|
7947
7947
|
staticAccountKeys: a,
|
|
7948
7948
|
recentBlockhash: e.recentBlockhash,
|
|
@@ -8039,7 +8039,7 @@ class mr {
|
|
|
8039
8039
|
readonlyIndexes: $
|
|
8040
8040
|
});
|
|
8041
8041
|
}
|
|
8042
|
-
return new
|
|
8042
|
+
return new yr({
|
|
8043
8043
|
header: o,
|
|
8044
8044
|
staticAccountKeys: a,
|
|
8045
8045
|
recentBlockhash: g,
|
|
@@ -8058,7 +8058,7 @@ const cs = {
|
|
|
8058
8058
|
if (e === "legacy")
|
|
8059
8059
|
return Ct.from(n);
|
|
8060
8060
|
if (e === 0)
|
|
8061
|
-
return
|
|
8061
|
+
return yr.deserialize(n);
|
|
8062
8062
|
throw new Error(`Transaction message version ${e} deserialization is not supported`);
|
|
8063
8063
|
}
|
|
8064
8064
|
};
|
|
@@ -8589,7 +8589,7 @@ class us {
|
|
|
8589
8589
|
});
|
|
8590
8590
|
}
|
|
8591
8591
|
compileToV0Message(e) {
|
|
8592
|
-
return
|
|
8592
|
+
return yr.compile({
|
|
8593
8593
|
payerKey: this.payerKey,
|
|
8594
8594
|
recentBlockhash: this.recentBlockhash,
|
|
8595
8595
|
instructions: this.instructions,
|
|
@@ -8643,7 +8643,7 @@ class ls {
|
|
|
8643
8643
|
Ae(s >= 0, `Can not add signature; \`${e.toBase58()}\` is not required to sign this transaction`), this.signatures[s] = t;
|
|
8644
8644
|
}
|
|
8645
8645
|
}
|
|
8646
|
-
const dp = 160, pp = 64, gp = dp / pp, Oa = 1e3 / gp, Ft = new ne("SysvarC1ock11111111111111111111111111111111"),
|
|
8646
|
+
const dp = 160, pp = 64, gp = dp / pp, Oa = 1e3 / gp, Ft = new ne("SysvarC1ock11111111111111111111111111111111"), yp = new ne("SysvarEpochSchedu1e111111111111111111111111"), mp = new ne("Sysvar1nstructions1111111111111111111111111"), gn = new ne("SysvarRecentB1ockHashes11111111111111111111"), Br = new ne("SysvarRent111111111111111111111111111111111"), _p = new ne("SysvarRewards111111111111111111111111111111"), wp = new ne("SysvarS1otHashes111111111111111111111111111"), bp = new ne("SysvarS1otHistory11111111111111111111111111"), yn = new ne("SysvarStakeHistory1111111111111111111111111");
|
|
8647
8647
|
class jr extends Error {
|
|
8648
8648
|
constructor({
|
|
8649
8649
|
action: e,
|
|
@@ -9398,7 +9398,7 @@ class pt {
|
|
|
9398
9398
|
}
|
|
9399
9399
|
pt.programId = new ne("11111111111111111111111111111111");
|
|
9400
9400
|
const Sp = or - 300;
|
|
9401
|
-
class
|
|
9401
|
+
class mr {
|
|
9402
9402
|
/**
|
|
9403
9403
|
* @internal
|
|
9404
9404
|
*/
|
|
@@ -9415,7 +9415,7 @@ class yr {
|
|
|
9415
9415
|
*/
|
|
9416
9416
|
static getMinNumSignatures(e) {
|
|
9417
9417
|
return 2 * // Every transaction requires two signatures (payer + program)
|
|
9418
|
-
(Math.ceil(e /
|
|
9418
|
+
(Math.ceil(e / mr.chunkSize) + 1 + // Add one for Create transaction
|
|
9419
9419
|
1);
|
|
9420
9420
|
}
|
|
9421
9421
|
/**
|
|
@@ -9458,7 +9458,7 @@ class yr {
|
|
|
9458
9458
|
commitment: "confirmed"
|
|
9459
9459
|
});
|
|
9460
9460
|
}
|
|
9461
|
-
const o = B.struct([B.u32("instruction"), B.u32("offset"), B.u32("bytesLength"), B.u32("bytesLengthPadding"), B.seq(B.u8("byte"), B.offset(B.u32(), -8), "bytes")]), a =
|
|
9461
|
+
const o = B.struct([B.u32("instruction"), B.u32("offset"), B.u32("bytesLength"), B.u32("bytesLengthPadding"), B.seq(B.u8("byte"), B.offset(B.u32(), -8), "bytes")]), a = mr.chunkSize;
|
|
9462
9462
|
let f = 0, g = i, _ = [];
|
|
9463
9463
|
for (; g.length > 0; ) {
|
|
9464
9464
|
const b = g.slice(0, a), x = le.Buffer.alloc(a + 16);
|
|
@@ -9528,7 +9528,7 @@ class yr {
|
|
|
9528
9528
|
return !0;
|
|
9529
9529
|
}
|
|
9530
9530
|
}
|
|
9531
|
-
|
|
9531
|
+
mr.chunkSize = Sp;
|
|
9532
9532
|
const Ap = new ne("BPFLoader2111111111111111111111111111111111");
|
|
9533
9533
|
class Ip {
|
|
9534
9534
|
/**
|
|
@@ -9538,7 +9538,7 @@ class Ip {
|
|
|
9538
9538
|
* Can be used to calculate transaction fees
|
|
9539
9539
|
*/
|
|
9540
9540
|
static getMinNumSignatures(e) {
|
|
9541
|
-
return
|
|
9541
|
+
return mr.getMinNumSignatures(e);
|
|
9542
9542
|
}
|
|
9543
9543
|
/**
|
|
9544
9544
|
* Load a SBF program
|
|
@@ -9551,7 +9551,7 @@ class Ip {
|
|
|
9551
9551
|
* @return true if program was loaded successfully, false if program was already loaded
|
|
9552
9552
|
*/
|
|
9553
9553
|
static load(e, t, r, s, i) {
|
|
9554
|
-
return
|
|
9554
|
+
return mr.load(e, t, r, i, s);
|
|
9555
9555
|
}
|
|
9556
9556
|
}
|
|
9557
9557
|
function vp(n) {
|
|
@@ -9782,14 +9782,14 @@ function La(n) {
|
|
|
9782
9782
|
})]);
|
|
9783
9783
|
}
|
|
9784
9784
|
const Up = La(Ur());
|
|
9785
|
-
function
|
|
9785
|
+
function me(n) {
|
|
9786
9786
|
return sn(La(n), Up, (e) => "error" in e ? e : {
|
|
9787
9787
|
...e,
|
|
9788
9788
|
result: ie(e.result, n)
|
|
9789
9789
|
});
|
|
9790
9790
|
}
|
|
9791
9791
|
function Ve(n) {
|
|
9792
|
-
return
|
|
9792
|
+
return me(ee({
|
|
9793
9793
|
context: ee({
|
|
9794
9794
|
slot: K()
|
|
9795
9795
|
}),
|
|
@@ -9805,7 +9805,7 @@ function Un(n) {
|
|
|
9805
9805
|
});
|
|
9806
9806
|
}
|
|
9807
9807
|
function vi(n, e) {
|
|
9808
|
-
return n === 0 ? new
|
|
9808
|
+
return n === 0 ? new yr({
|
|
9809
9809
|
header: e.header,
|
|
9810
9810
|
staticAccountKeys: e.accountKeys.map((t) => new ne(t)),
|
|
9811
9811
|
recentBlockhash: e.recentBlockhash,
|
|
@@ -9823,7 +9823,7 @@ const Dp = ee({
|
|
|
9823
9823
|
initial: K(),
|
|
9824
9824
|
taper: K(),
|
|
9825
9825
|
terminal: K()
|
|
9826
|
-
}), Fp =
|
|
9826
|
+
}), Fp = me(se(oe(ee({
|
|
9827
9827
|
epoch: K(),
|
|
9828
9828
|
effectiveSlot: K(),
|
|
9829
9829
|
amount: K(),
|
|
@@ -9863,7 +9863,7 @@ const Dp = ee({
|
|
|
9863
9863
|
programId: We,
|
|
9864
9864
|
accounts: se(We),
|
|
9865
9865
|
data: te()
|
|
9866
|
-
}),
|
|
9866
|
+
}), yo = Ve(ee({
|
|
9867
9867
|
err: oe(St([ee({}), te()])),
|
|
9868
9868
|
logs: oe(se(te())),
|
|
9869
9869
|
accounts: ue(oe(se(oe(ee({
|
|
@@ -9947,7 +9947,7 @@ function Qp(n) {
|
|
|
9947
9947
|
});
|
|
9948
9948
|
});
|
|
9949
9949
|
}
|
|
9950
|
-
const eg =
|
|
9950
|
+
const eg = me(Dp), tg = me($p), rg = me(zp), ng = me(Kp), ig = me(Hp), sg = me(Wp), og = me(K()), ag = Ve(ee({
|
|
9951
9951
|
total: K(),
|
|
9952
9952
|
circulating: K(),
|
|
9953
9953
|
nonCirculating: K(),
|
|
@@ -10010,13 +10010,13 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10010
10010
|
state: St([Ke("active"), Ke("inactive"), Ke("activating"), Ke("deactivating")]),
|
|
10011
10011
|
active: K(),
|
|
10012
10012
|
inactive: K()
|
|
10013
|
-
}),
|
|
10013
|
+
}), yg = me(se(ee({
|
|
10014
10014
|
signature: te(),
|
|
10015
10015
|
slot: K(),
|
|
10016
10016
|
err: wr,
|
|
10017
10017
|
memo: oe(te()),
|
|
10018
10018
|
blockTime: ue(oe(K()))
|
|
10019
|
-
}))),
|
|
10019
|
+
}))), mg = me(se(ee({
|
|
10020
10020
|
signature: te(),
|
|
10021
10021
|
slot: K(),
|
|
10022
10022
|
err: wr,
|
|
@@ -10077,7 +10077,7 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10077
10077
|
tpu: oe(te()),
|
|
10078
10078
|
rpc: oe(te()),
|
|
10079
10079
|
version: oe(te())
|
|
10080
|
-
}),
|
|
10080
|
+
}), mo = ee({
|
|
10081
10081
|
votePubkey: te(),
|
|
10082
10082
|
nodePubkey: te(),
|
|
10083
10083
|
activatedStake: K(),
|
|
@@ -10086,15 +10086,15 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10086
10086
|
commission: K(),
|
|
10087
10087
|
lastVote: K(),
|
|
10088
10088
|
rootSlot: oe(K())
|
|
10089
|
-
}), kg =
|
|
10090
|
-
current: se(
|
|
10091
|
-
delinquent: se(
|
|
10089
|
+
}), kg = me(ee({
|
|
10090
|
+
current: se(mo),
|
|
10091
|
+
delinquent: se(mo)
|
|
10092
10092
|
})), Tg = St([Ke("processed"), Ke("confirmed"), Ke("finalized")]), Ng = ee({
|
|
10093
10093
|
slot: K(),
|
|
10094
10094
|
confirmations: oe(K()),
|
|
10095
10095
|
err: wr,
|
|
10096
10096
|
confirmationStatus: ue(Tg)
|
|
10097
|
-
}), xg = Ve(se(oe(Ng))), Bg =
|
|
10097
|
+
}), xg = Ve(se(oe(Ng))), Bg = me(K()), Ca = ee({
|
|
10098
10098
|
accountKey: We,
|
|
10099
10099
|
writableIndexes: se(K()),
|
|
10100
10100
|
readonlyIndexes: se(K())
|
|
@@ -10194,7 +10194,7 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10194
10194
|
postBalance: oe(K()),
|
|
10195
10195
|
rewardType: oe(te()),
|
|
10196
10196
|
commission: ue(oe(K()))
|
|
10197
|
-
}), Mg =
|
|
10197
|
+
}), Mg = me(oe(ee({
|
|
10198
10198
|
blockhash: te(),
|
|
10199
10199
|
previousBlockhash: te(),
|
|
10200
10200
|
parentSlot: K(),
|
|
@@ -10206,14 +10206,14 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10206
10206
|
rewards: ue(se(br)),
|
|
10207
10207
|
blockTime: oe(K()),
|
|
10208
10208
|
blockHeight: oe(K())
|
|
10209
|
-
}))), Pg =
|
|
10209
|
+
}))), Pg = me(oe(ee({
|
|
10210
10210
|
blockhash: te(),
|
|
10211
10211
|
previousBlockhash: te(),
|
|
10212
10212
|
parentSlot: K(),
|
|
10213
10213
|
rewards: ue(se(br)),
|
|
10214
10214
|
blockTime: oe(K()),
|
|
10215
10215
|
blockHeight: oe(K())
|
|
10216
|
-
}))), Ug =
|
|
10216
|
+
}))), Ug = me(oe(ee({
|
|
10217
10217
|
blockhash: te(),
|
|
10218
10218
|
previousBlockhash: te(),
|
|
10219
10219
|
parentSlot: K(),
|
|
@@ -10225,7 +10225,7 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10225
10225
|
rewards: ue(se(br)),
|
|
10226
10226
|
blockTime: oe(K()),
|
|
10227
10227
|
blockHeight: oe(K())
|
|
10228
|
-
}))), Dg =
|
|
10228
|
+
}))), Dg = me(oe(ee({
|
|
10229
10229
|
blockhash: te(),
|
|
10230
10230
|
previousBlockhash: te(),
|
|
10231
10231
|
parentSlot: K(),
|
|
@@ -10237,7 +10237,7 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10237
10237
|
rewards: ue(se(br)),
|
|
10238
10238
|
blockTime: oe(K()),
|
|
10239
10239
|
blockHeight: oe(K())
|
|
10240
|
-
}))), Fg =
|
|
10240
|
+
}))), Fg = me(oe(ee({
|
|
10241
10241
|
blockhash: te(),
|
|
10242
10242
|
previousBlockhash: te(),
|
|
10243
10243
|
parentSlot: K(),
|
|
@@ -10249,14 +10249,14 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10249
10249
|
rewards: ue(se(br)),
|
|
10250
10250
|
blockTime: oe(K()),
|
|
10251
10251
|
blockHeight: oe(K())
|
|
10252
|
-
}))), zg =
|
|
10252
|
+
}))), zg = me(oe(ee({
|
|
10253
10253
|
blockhash: te(),
|
|
10254
10254
|
previousBlockhash: te(),
|
|
10255
10255
|
parentSlot: K(),
|
|
10256
10256
|
rewards: ue(se(br)),
|
|
10257
10257
|
blockTime: oe(K()),
|
|
10258
10258
|
blockHeight: oe(K())
|
|
10259
|
-
}))), $g =
|
|
10259
|
+
}))), $g = me(oe(ee({
|
|
10260
10260
|
blockhash: te(),
|
|
10261
10261
|
previousBlockhash: te(),
|
|
10262
10262
|
parentSlot: K(),
|
|
@@ -10266,19 +10266,19 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10266
10266
|
})),
|
|
10267
10267
|
rewards: ue(se(br)),
|
|
10268
10268
|
blockTime: oe(K())
|
|
10269
|
-
}))), _o =
|
|
10269
|
+
}))), _o = me(oe(ee({
|
|
10270
10270
|
blockhash: te(),
|
|
10271
10271
|
previousBlockhash: te(),
|
|
10272
10272
|
parentSlot: K(),
|
|
10273
10273
|
signatures: se(te()),
|
|
10274
10274
|
blockTime: oe(K())
|
|
10275
|
-
}))), Oi =
|
|
10275
|
+
}))), Oi = me(oe(ee({
|
|
10276
10276
|
slot: K(),
|
|
10277
10277
|
meta: oe(Dn),
|
|
10278
10278
|
blockTime: ue(oe(K())),
|
|
10279
10279
|
transaction: fs,
|
|
10280
10280
|
version: ue(Dr)
|
|
10281
|
-
}))), fn =
|
|
10281
|
+
}))), fn = me(oe(ee({
|
|
10282
10282
|
slot: K(),
|
|
10283
10283
|
transaction: za,
|
|
10284
10284
|
meta: oe(ds),
|
|
@@ -10292,11 +10292,11 @@ const eg = ye(Dp), tg = ye($p), rg = ye(zp), ng = ye(Kp), ig = ye(Hp), sg = ye(W
|
|
|
10292
10292
|
numTransactions: K(),
|
|
10293
10293
|
numSlots: K(),
|
|
10294
10294
|
samplePeriodSecs: K()
|
|
10295
|
-
}), qg =
|
|
10295
|
+
}), qg = me(se(Wg)), Gg = Ve(oe(ee({
|
|
10296
10296
|
feeCalculator: ee({
|
|
10297
10297
|
lamportsPerSignature: K()
|
|
10298
10298
|
})
|
|
10299
|
-
}))), Vg =
|
|
10299
|
+
}))), Vg = me(te()), Yg = me(te()), jg = ee({
|
|
10300
10300
|
err: wr,
|
|
10301
10301
|
logs: se(te()),
|
|
10302
10302
|
signature: te()
|
|
@@ -10328,7 +10328,7 @@ class Jg {
|
|
|
10328
10328
|
} = Me(_), T = this._buildArgs([], b, void 0, x), L = fo(T);
|
|
10329
10329
|
return g[L] = g[L] ?? (async () => {
|
|
10330
10330
|
try {
|
|
10331
|
-
const k = await this._rpcRequest("getBlockHeight", T), N = ie(k,
|
|
10331
|
+
const k = await this._rpcRequest("getBlockHeight", T), N = ie(k, me(K()));
|
|
10332
10332
|
if ("error" in N)
|
|
10333
10333
|
throw new ce(N.error, "failed to get block height information");
|
|
10334
10334
|
return N.result;
|
|
@@ -10380,7 +10380,7 @@ class Jg {
|
|
|
10380
10380
|
* Fetch the estimated production time of a block
|
|
10381
10381
|
*/
|
|
10382
10382
|
async getBlockTime(e) {
|
|
10383
|
-
const t = await this._rpcRequest("getBlockTime", [e]), r = ie(t,
|
|
10383
|
+
const t = await this._rpcRequest("getBlockTime", [e]), r = ie(t, me(oe(K())));
|
|
10384
10384
|
if ("error" in r)
|
|
10385
10385
|
throw new ce(r.error, `failed to get block time for slot ${e}`);
|
|
10386
10386
|
return r.result;
|
|
@@ -10390,7 +10390,7 @@ class Jg {
|
|
|
10390
10390
|
* This value may increase over time if the node is configured to purge older ledger data
|
|
10391
10391
|
*/
|
|
10392
10392
|
async getMinimumLedgerSlot() {
|
|
10393
|
-
const e = await this._rpcRequest("minimumLedgerSlot", []), t = ie(e,
|
|
10393
|
+
const e = await this._rpcRequest("minimumLedgerSlot", []), t = ie(e, me(K()));
|
|
10394
10394
|
if ("error" in t)
|
|
10395
10395
|
throw new ce(t.error, "failed to get minimum ledger slot");
|
|
10396
10396
|
return t.result;
|
|
@@ -10576,7 +10576,7 @@ class Jg {
|
|
|
10576
10576
|
} = Me(t), o = this._buildArgs([e.toBase58()], s, void 0, {
|
|
10577
10577
|
...i,
|
|
10578
10578
|
epoch: r ?? (i == null ? void 0 : i.epoch)
|
|
10579
|
-
}), a = await this._rpcRequest("getStakeActivation", o), f = ie(a,
|
|
10579
|
+
}), a = await this._rpcRequest("getStakeActivation", o), f = ie(a, me(gg));
|
|
10580
10580
|
if ("error" in f)
|
|
10581
10581
|
throw new ce(f.error, `failed to get Stake Activation ${e.toBase58()}`);
|
|
10582
10582
|
return f.result;
|
|
@@ -10600,7 +10600,7 @@ class Jg {
|
|
|
10600
10600
|
...o.filters ? {
|
|
10601
10601
|
filters: go(o.filters)
|
|
10602
10602
|
} : null
|
|
10603
|
-
}), f = await this._rpcRequest("getProgramAccounts", a), g = se(fg), _ = o.withContext === !0 ? ie(f, Ve(g)) : ie(f,
|
|
10603
|
+
}), f = await this._rpcRequest("getProgramAccounts", a), g = se(fg), _ = o.withContext === !0 ? ie(f, Ve(g)) : ie(f, me(g));
|
|
10604
10604
|
if ("error" in _)
|
|
10605
10605
|
throw new ce(_.error, `failed to get accounts owned by program ${e.toBase58()}`);
|
|
10606
10606
|
return _.result;
|
|
@@ -10614,7 +10614,7 @@ class Jg {
|
|
|
10614
10614
|
const {
|
|
10615
10615
|
commitment: r,
|
|
10616
10616
|
config: s
|
|
10617
|
-
} = Me(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getProgramAccounts", i), a = ie(o,
|
|
10617
|
+
} = Me(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getProgramAccounts", i), a = ie(o, me(se(pg)));
|
|
10618
10618
|
if ("error" in a)
|
|
10619
10619
|
throw new ce(a.error, `failed to get accounts owned by program ${e.toBase58()}`);
|
|
10620
10620
|
return a.result;
|
|
@@ -10925,7 +10925,7 @@ class Jg {
|
|
|
10925
10925
|
* Return the list of nodes that are currently participating in the cluster
|
|
10926
10926
|
*/
|
|
10927
10927
|
async getClusterNodes() {
|
|
10928
|
-
const e = await this._rpcRequest("getClusterNodes", []), t = ie(e,
|
|
10928
|
+
const e = await this._rpcRequest("getClusterNodes", []), t = ie(e, me(se(Og)));
|
|
10929
10929
|
if ("error" in t)
|
|
10930
10930
|
throw new ce(t.error, "failed to get cluster nodes");
|
|
10931
10931
|
return t.result;
|
|
@@ -10946,7 +10946,7 @@ class Jg {
|
|
|
10946
10946
|
const {
|
|
10947
10947
|
commitment: t,
|
|
10948
10948
|
config: r
|
|
10949
|
-
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlot", s), o = ie(i,
|
|
10949
|
+
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlot", s), o = ie(i, me(K()));
|
|
10950
10950
|
if ("error" in o)
|
|
10951
10951
|
throw new ce(o.error, "failed to get slot");
|
|
10952
10952
|
return o.result;
|
|
@@ -10958,7 +10958,7 @@ class Jg {
|
|
|
10958
10958
|
const {
|
|
10959
10959
|
commitment: t,
|
|
10960
10960
|
config: r
|
|
10961
|
-
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlotLeader", s), o = ie(i,
|
|
10961
|
+
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlotLeader", s), o = ie(i, me(te()));
|
|
10962
10962
|
if ("error" in o)
|
|
10963
10963
|
throw new ce(o.error, "failed to get slot leader");
|
|
10964
10964
|
return o.result;
|
|
@@ -10970,7 +10970,7 @@ class Jg {
|
|
|
10970
10970
|
* @param limit number of slot leaders to return
|
|
10971
10971
|
*/
|
|
10972
10972
|
async getSlotLeaders(e, t) {
|
|
10973
|
-
const r = [e, t], s = await this._rpcRequest("getSlotLeaders", r), i = ie(s,
|
|
10973
|
+
const r = [e, t], s = await this._rpcRequest("getSlotLeaders", r), i = ie(s, me(se(We)));
|
|
10974
10974
|
if ("error" in i)
|
|
10975
10975
|
throw new ce(i.error, "failed to get slot leaders");
|
|
10976
10976
|
return i.result;
|
|
@@ -11008,7 +11008,7 @@ class Jg {
|
|
|
11008
11008
|
const {
|
|
11009
11009
|
commitment: t,
|
|
11010
11010
|
config: r
|
|
11011
|
-
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getTransactionCount", s), o = ie(i,
|
|
11011
|
+
} = Me(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getTransactionCount", s), o = ie(i, me(K()));
|
|
11012
11012
|
if ("error" in o)
|
|
11013
11013
|
throw new ce(o.error, "failed to get transaction count");
|
|
11014
11014
|
return o.result;
|
|
@@ -11227,7 +11227,7 @@ class Jg {
|
|
|
11227
11227
|
* Fetch the node version
|
|
11228
11228
|
*/
|
|
11229
11229
|
async getVersion() {
|
|
11230
|
-
const e = await this._rpcRequest("getVersion", []), t = ie(e,
|
|
11230
|
+
const e = await this._rpcRequest("getVersion", []), t = ie(e, me(Vp));
|
|
11231
11231
|
if ("error" in t)
|
|
11232
11232
|
throw new ce(t.error, "failed to get version");
|
|
11233
11233
|
return t.result;
|
|
@@ -11236,7 +11236,7 @@ class Jg {
|
|
|
11236
11236
|
* Fetch the genesis hash
|
|
11237
11237
|
*/
|
|
11238
11238
|
async getGenesisHash() {
|
|
11239
|
-
const e = await this._rpcRequest("getGenesisHash", []), t = ie(e,
|
|
11239
|
+
const e = await this._rpcRequest("getGenesisHash", []), t = ie(e, me(te()));
|
|
11240
11240
|
if ("error" in t)
|
|
11241
11241
|
throw new ce(t.error, "failed to get genesis hash");
|
|
11242
11242
|
return t.result;
|
|
@@ -11516,7 +11516,7 @@ class Jg {
|
|
|
11516
11516
|
* Fetch confirmed blocks between two slots
|
|
11517
11517
|
*/
|
|
11518
11518
|
async getBlocks(e, t, r) {
|
|
11519
|
-
const s = this._buildArgsAtLeastConfirmed(t !== void 0 ? [e, t] : [e], r), i = await this._rpcRequest("getBlocks", s), o = ie(i,
|
|
11519
|
+
const s = this._buildArgsAtLeastConfirmed(t !== void 0 ? [e, t] : [e], r), i = await this._rpcRequest("getBlocks", s), o = ie(i, me(se(K())));
|
|
11520
11520
|
if ("error" in o)
|
|
11521
11521
|
throw new ce(o.error, "failed to get blocks");
|
|
11522
11522
|
return o.result;
|
|
@@ -11638,7 +11638,7 @@ class Jg {
|
|
|
11638
11638
|
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
|
|
11639
11639
|
*/
|
|
11640
11640
|
async getConfirmedSignaturesForAddress2(e, t, r) {
|
|
11641
|
-
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getConfirmedSignaturesForAddress2", s), o = ie(i,
|
|
11641
|
+
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getConfirmedSignaturesForAddress2", s), o = ie(i, yg);
|
|
11642
11642
|
if ("error" in o)
|
|
11643
11643
|
throw new ce(o.error, "failed to get confirmed signatures for address");
|
|
11644
11644
|
return o.result;
|
|
@@ -11652,7 +11652,7 @@ class Jg {
|
|
|
11652
11652
|
* @param options
|
|
11653
11653
|
*/
|
|
11654
11654
|
async getSignaturesForAddress(e, t, r) {
|
|
11655
|
-
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getSignaturesForAddress", s), o = ie(i,
|
|
11655
|
+
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getSignaturesForAddress", s), o = ie(i, mg);
|
|
11656
11656
|
if ("error" in o)
|
|
11657
11657
|
throw new ce(o.error, "failed to get signatures for address");
|
|
11658
11658
|
return o.result;
|
|
@@ -11782,7 +11782,7 @@ class Jg {
|
|
|
11782
11782
|
throw new Error("Invalid arguments");
|
|
11783
11783
|
const M = t || {};
|
|
11784
11784
|
M.encoding = "base64", "commitment" in M || (M.commitment = this.commitment), t && typeof t == "object" && "innerInstructions" in t && (M.innerInstructions = t.innerInstructions);
|
|
11785
|
-
const H = [N, M], $ = await this._rpcRequest("simulateTransaction", H), J = ie($,
|
|
11785
|
+
const H = [N, M], $ = await this._rpcRequest("simulateTransaction", H), J = ie($, yo);
|
|
11786
11786
|
if ("error" in J)
|
|
11787
11787
|
throw new Error("failed to simulate transaction: " + J.error.message);
|
|
11788
11788
|
return J.result;
|
|
@@ -11825,7 +11825,7 @@ class Jg {
|
|
|
11825
11825
|
};
|
|
11826
11826
|
}
|
|
11827
11827
|
i && (_.sigVerify = !0), t && typeof t == "object" && "innerInstructions" in t && (_.innerInstructions = t.innerInstructions);
|
|
11828
|
-
const b = [g, _], x = await this._rpcRequest("simulateTransaction", b), T = ie(x,
|
|
11828
|
+
const b = [g, _], x = await this._rpcRequest("simulateTransaction", b), T = ie(x, yo);
|
|
11829
11829
|
if ("error" in T) {
|
|
11830
11830
|
let L;
|
|
11831
11831
|
if ("data" in T.error && (L = T.error.data.logs, L && Array.isArray(L))) {
|
|
@@ -13402,7 +13402,7 @@ class zn {
|
|
|
13402
13402
|
isSigner: !1,
|
|
13403
13403
|
isWritable: !1
|
|
13404
13404
|
}, {
|
|
13405
|
-
pubkey:
|
|
13405
|
+
pubkey: yn,
|
|
13406
13406
|
isSigner: !1,
|
|
13407
13407
|
isWritable: !1
|
|
13408
13408
|
}, {
|
|
@@ -13592,7 +13592,7 @@ class zn {
|
|
|
13592
13592
|
isSigner: !1,
|
|
13593
13593
|
isWritable: !1
|
|
13594
13594
|
}, {
|
|
13595
|
-
pubkey:
|
|
13595
|
+
pubkey: yn,
|
|
13596
13596
|
isSigner: !1,
|
|
13597
13597
|
isWritable: !1
|
|
13598
13598
|
}, {
|
|
@@ -13629,7 +13629,7 @@ class zn {
|
|
|
13629
13629
|
isSigner: !1,
|
|
13630
13630
|
isWritable: !1
|
|
13631
13631
|
}, {
|
|
13632
|
-
pubkey:
|
|
13632
|
+
pubkey: yn,
|
|
13633
13633
|
isSigner: !1,
|
|
13634
13634
|
isWritable: !1
|
|
13635
13635
|
}, {
|
|
@@ -14032,7 +14032,7 @@ const Ga = new ne("Va1idator1nfo111111111111111111111111111111"), c1 = ee({
|
|
|
14032
14032
|
iconUrl: ue(te()),
|
|
14033
14033
|
keybaseUsername: ue(te())
|
|
14034
14034
|
});
|
|
14035
|
-
class
|
|
14035
|
+
class ys {
|
|
14036
14036
|
/**
|
|
14037
14037
|
* Construct a valid ValidatorInfo
|
|
14038
14038
|
*
|
|
@@ -14062,7 +14062,7 @@ class ms {
|
|
|
14062
14062
|
}
|
|
14063
14063
|
if (s[0].publicKey.equals(Ga) && s[1].isSigner) {
|
|
14064
14064
|
const i = hr().decode(le.Buffer.from(t)), o = JSON.parse(i);
|
|
14065
|
-
return ca(o, c1), new
|
|
14065
|
+
return ca(o, c1), new ys(s[1].publicKey, o);
|
|
14066
14066
|
}
|
|
14067
14067
|
return null;
|
|
14068
14068
|
}
|
|
@@ -14085,7 +14085,7 @@ const u1 = new ne("Vote111111111111111111111111111111111111111"), l1 = B.struct(
|
|
|
14085
14085
|
B.seq(B.struct([B.nu64("epoch"), B.nu64("credits"), B.nu64("prevCredits")]), B.offset(B.u32(), -8), "epochCredits"),
|
|
14086
14086
|
B.struct([B.nu64("slot"), B.nu64("timestamp")], "lastTimestamp")
|
|
14087
14087
|
]);
|
|
14088
|
-
class
|
|
14088
|
+
class ms {
|
|
14089
14089
|
/**
|
|
14090
14090
|
* @internal
|
|
14091
14091
|
*/
|
|
@@ -14101,7 +14101,7 @@ class ys {
|
|
|
14101
14101
|
static fromAccountData(e) {
|
|
14102
14102
|
const r = l1.decode(_e(e), 4);
|
|
14103
14103
|
let s = r.rootSlot;
|
|
14104
|
-
return r.rootSlotValid || (s = null), new
|
|
14104
|
+
return r.rootSlotValid || (s = null), new ms({
|
|
14105
14105
|
nodePubkey: new ne(r.nodePubkey),
|
|
14106
14106
|
authorizedWithdrawer: new ne(r.authorizedWithdrawer),
|
|
14107
14107
|
commission: r.commission,
|
|
@@ -14178,7 +14178,7 @@ async function p1(n, e, t, r) {
|
|
|
14178
14178
|
}) : new Error(`Raw transaction ${a} failed (${JSON.stringify(_)})`);
|
|
14179
14179
|
return a;
|
|
14180
14180
|
}
|
|
14181
|
-
const g1 = 1e9,
|
|
14181
|
+
const g1 = 1e9, y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14182
14182
|
__proto__: null,
|
|
14183
14183
|
Account: sp,
|
|
14184
14184
|
AddressLookupTableAccount: zi,
|
|
@@ -14200,12 +14200,12 @@ const g1 = 1e9, m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
14200
14200
|
Keypair: vr,
|
|
14201
14201
|
LAMPORTS_PER_SOL: g1,
|
|
14202
14202
|
LOOKUP_TABLE_INSTRUCTION_LAYOUTS: Xt,
|
|
14203
|
-
Loader:
|
|
14203
|
+
Loader: mr,
|
|
14204
14204
|
Lockup: on,
|
|
14205
14205
|
MAX_SEED_LENGTH: Aa,
|
|
14206
14206
|
Message: Ct,
|
|
14207
14207
|
MessageAccountKeys: Yr,
|
|
14208
|
-
MessageV0:
|
|
14208
|
+
MessageV0: yr,
|
|
14209
14209
|
NONCE_ACCOUNT_LENGTH: Fi,
|
|
14210
14210
|
NonceAccount: Pn,
|
|
14211
14211
|
PACKET_DATA_SIZE: or,
|
|
@@ -14217,14 +14217,14 @@ const g1 = 1e9, m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
14217
14217
|
STAKE_INSTRUCTION_LAYOUTS: ft,
|
|
14218
14218
|
SYSTEM_INSTRUCTION_LAYOUTS: Pe,
|
|
14219
14219
|
SYSVAR_CLOCK_PUBKEY: Ft,
|
|
14220
|
-
SYSVAR_EPOCH_SCHEDULE_PUBKEY:
|
|
14221
|
-
SYSVAR_INSTRUCTIONS_PUBKEY:
|
|
14220
|
+
SYSVAR_EPOCH_SCHEDULE_PUBKEY: yp,
|
|
14221
|
+
SYSVAR_INSTRUCTIONS_PUBKEY: mp,
|
|
14222
14222
|
SYSVAR_RECENT_BLOCKHASHES_PUBKEY: gn,
|
|
14223
14223
|
SYSVAR_RENT_PUBKEY: Br,
|
|
14224
14224
|
SYSVAR_REWARDS_PUBKEY: _p,
|
|
14225
14225
|
SYSVAR_SLOT_HASHES_PUBKEY: wp,
|
|
14226
14226
|
SYSVAR_SLOT_HISTORY_PUBKEY: bp,
|
|
14227
|
-
SYSVAR_STAKE_HISTORY_PUBKEY:
|
|
14227
|
+
SYSVAR_STAKE_HISTORY_PUBKEY: yn,
|
|
14228
14228
|
Secp256k1Program: Or,
|
|
14229
14229
|
SendTransactionError: jr,
|
|
14230
14230
|
SolanaJSONRPCError: ce,
|
|
@@ -14245,10 +14245,10 @@ const g1 = 1e9, m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
14245
14245
|
VALIDATOR_INFO_KEY: Ga,
|
|
14246
14246
|
VERSION_PREFIX_MASK: Cn,
|
|
14247
14247
|
VOTE_PROGRAM_ID: u1,
|
|
14248
|
-
ValidatorInfo:
|
|
14248
|
+
ValidatorInfo: ys,
|
|
14249
14249
|
VersionedMessage: cs,
|
|
14250
14250
|
VersionedTransaction: ls,
|
|
14251
|
-
VoteAccount:
|
|
14251
|
+
VoteAccount: ms,
|
|
14252
14252
|
VoteAuthorizationLayout: a1,
|
|
14253
14253
|
VoteInit: qa,
|
|
14254
14254
|
VoteInstruction: o1,
|
|
@@ -14256,9 +14256,9 @@ const g1 = 1e9, m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
14256
14256
|
clusterApiUrl: d1,
|
|
14257
14257
|
sendAndConfirmRawTransaction: p1,
|
|
14258
14258
|
sendAndConfirmTransaction: Di
|
|
14259
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14259
|
+
}, Symbol.toStringTag, { value: "Module" })), mn = y1, sr = dt;
|
|
14260
14260
|
var Ni = { exports: {} }, Oo;
|
|
14261
|
-
function
|
|
14261
|
+
function m1() {
|
|
14262
14262
|
return Oo || (Oo = 1, function(n) {
|
|
14263
14263
|
var e = function() {
|
|
14264
14264
|
var t = String.fromCharCode, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", i = {};
|
|
@@ -14455,10 +14455,10 @@ function y1() {
|
|
|
14455
14455
|
});
|
|
14456
14456
|
}(Ni)), Ni.exports;
|
|
14457
14457
|
}
|
|
14458
|
-
var _1 =
|
|
14458
|
+
var _1 = m1();
|
|
14459
14459
|
const Dt = /* @__PURE__ */ Qr(_1);
|
|
14460
14460
|
var Va = /* @__PURE__ */ ((n) => (n.USD = "USD", n.AED = "AED", n.AFN = "AFN", n.ALL = "ALL", n.ANG = "ANG", n.AOA = "AOA", n.AUD = "AUD", n.AWG = "AWG", n.AZN = "AZN", n.BAM = "BAM", n.BBD = "BBD", n.BDT = "BDT", n.BGN = "BGN", n.BHD = "BHD", n.BIF = "BIF", n.BND = "BND", n.BOB = "BOB", n.BRL = "BRL", n.BTN = "BTN", n.BWP = "BWP", n.BZD = "BZD", n.CAD = "CAD", n.CHF = "CHF", n.CLP = "CLP", n.CNY = "CNY", n.COP = "COP", n.CRC = "CRC", n.CVE = "CVE", n.CZK = "CZK", n.DJF = "DJF", n.DKK = "DKK", n.DOP = "DOP", n.DZD = "DZD", n.EGP = "EGP", n.ETB = "ETB", n.EUR = "EUR", n.GBP = "GBP", n.GEL = "GEL", n.GHS = "GHS", n.GMD = "GMD", n.GNF = "GNF", n.GTQ = "GTQ", n.GYD = "GYD", n.HKD = "HKD", n.HNL = "HNL", n.HTG = "HTG", n.HUF = "HUF", n.IDR = "IDR", n.INR = "INR", n.IQD = "IQD", n.IRR = "IRR", n.ISK = "ISK", n.JMD = "JMD", n.JOD = "JOD", n.JPY = "JPY", n.KES = "KES", n.KGS = "KGS", n.KHR = "KHR", n.KMF = "KMF", n.KRW = "KRW", n.KWD = "KWD", n.KYD = "KYD", n.KZT = "KZT", n.LKR = "LKR", n.LRD = "LRD", n.LSL = "LSL", n.LYD = "LYD", n.MAD = "MAD", n.MDL = "MDL", n.MGA = "MGA", n.MKD = "MKD", n.MMK = "MMK", n.MNT = "MNT", n.MOP = "MOP", n.MRU = "MRU", n.MUR = "MUR", n.MVR = "MVR", n.MXN = "MXN", n.MYR = "MYR", n.NAD = "NAD", n.NGN = "NGN", n.NIO = "NIO", n.NOK = "NOK", n.NPR = "NPR", n.NZD = "NZD", n.OMR = "OMR", n.PAB = "PAB", n.PEN = "PEN", n.PHP = "PHP", n.PKR = "PKR", n.PLN = "PLN", n.PYG = "PYG", n.QAR = "QAR", n.RON = "RON", n.RSD = "RSD", n.RWF = "RWF", n.SAR = "SAR", n.SCR = "SCR", n.SDG = "SDG", n.SEK = "SEK", n.SGD = "SGD", n.SLE = "SLE", n.SLL = "SLL", n.SOS = "SOS", n.STN = "STN", n.SVC = "SVC", n.SYP = "SYP", n.SZL = "SZL", n.THB = "THB", n.TJS = "TJS", n.TMT = "TMT", n.TND = "TND", n.TRY = "TRY", n.TTD = "TTD", n.TWD = "TWD", n.TZS = "TZS", n.UAH = "UAH", n.UGX = "UGX", n.UYU = "UYU", n.UZS = "UZS", n.VND = "VND", n.XAF = "XAF", n.XCD = "XCD", n.XOF = "XOF", n.XPF = "XPF", n.YER = "YER", n.ZAR = "ZAR", n.ZMW = "ZMW", n))(Va || {});
|
|
14461
|
-
const
|
|
14461
|
+
const ny = {
|
|
14462
14462
|
AED: "784",
|
|
14463
14463
|
AFN: "971",
|
|
14464
14464
|
ALL: "008",
|
|
@@ -14595,10 +14595,10 @@ const om = {
|
|
|
14595
14595
|
CAD: "CAD"
|
|
14596
14596
|
/* CAD */
|
|
14597
14597
|
};
|
|
14598
|
-
function
|
|
14598
|
+
function iy(n) {
|
|
14599
14599
|
return n in w1;
|
|
14600
14600
|
}
|
|
14601
|
-
function
|
|
14601
|
+
function sy(n, e) {
|
|
14602
14602
|
return n.currency === e;
|
|
14603
14603
|
}
|
|
14604
14604
|
class Jt {
|
|
@@ -14655,7 +14655,7 @@ class Jt {
|
|
|
14655
14655
|
theme: A,
|
|
14656
14656
|
usePermit: c,
|
|
14657
14657
|
transactionSigner: p,
|
|
14658
|
-
authOnly:
|
|
14658
|
+
authOnly: y,
|
|
14659
14659
|
deviceId: v,
|
|
14660
14660
|
jwtToken: S,
|
|
14661
14661
|
origins: I,
|
|
@@ -14700,7 +14700,7 @@ class Jt {
|
|
|
14700
14700
|
return M && E.searchParams.append("merchantCss", M), H && E.searchParams.append("color", H), $ && E.searchParams.append("rent", $.lamports.toString()), Q && E.searchParams.append(
|
|
14701
14701
|
"nativeSolToConvert",
|
|
14702
14702
|
Q.lamports.toString()
|
|
14703
|
-
), J && E.searchParams.append("lockDefaultToken", "true"), D && E.searchParams.append("planCode", D), Z && E.searchParams.append("disableApplePay", "true"), j && E.searchParams.append("disableGooglePay", "true"), z && E.searchParams.append("settlementType", z), G && E.searchParams.append("lockAmount", "true"), c === !1 && E.searchParams.append("usePermit", "false"), p && E.searchParams.append("transactionSigner", p),
|
|
14703
|
+
), J && E.searchParams.append("lockDefaultToken", "true"), D && E.searchParams.append("planCode", D), Z && E.searchParams.append("disableApplePay", "true"), j && E.searchParams.append("disableGooglePay", "true"), z && E.searchParams.append("settlementType", z), G && E.searchParams.append("lockAmount", "true"), c === !1 && E.searchParams.append("usePermit", "false"), p && E.searchParams.append("transactionSigner", p), y === !0 && E.searchParams.append("authOnly", "true"), S && E.searchParams.append("jwtToken", S), I && E.searchParams.append(
|
|
14704
14704
|
"origins",
|
|
14705
14705
|
Dt.compressToEncodedURIComponent(JSON.stringify(I))
|
|
14706
14706
|
), l && E.searchParams.append(
|
|
@@ -14717,7 +14717,7 @@ class Jt {
|
|
|
14717
14717
|
solana: () => {
|
|
14718
14718
|
if (!("transaction" in e)) return;
|
|
14719
14719
|
const { transaction: t } = e;
|
|
14720
|
-
if (!
|
|
14720
|
+
if (!mn)
|
|
14721
14721
|
throw new Error("@solana/web3.js dependency is required for Solana");
|
|
14722
14722
|
if (!sr) throw new Error("bs58 dependency is required for Solana");
|
|
14723
14723
|
if (t)
|
|
@@ -14779,7 +14779,7 @@ class Jt {
|
|
|
14779
14779
|
}
|
|
14780
14780
|
}
|
|
14781
14781
|
}
|
|
14782
|
-
function
|
|
14782
|
+
function oy(n) {
|
|
14783
14783
|
if (!n) return;
|
|
14784
14784
|
let e, t;
|
|
14785
14785
|
if ("name" in n && n.name && (e = n.name.split(" ")[0], t = n.name.split(" ").slice(1).join(" ")), "firstName" in n && n.firstName && (e = n.firstName), "lastName" in n && n.lastName && (t = n.lastName), e && t)
|
|
@@ -14918,7 +14918,7 @@ function R1({
|
|
|
14918
14918
|
};
|
|
14919
14919
|
}
|
|
14920
14920
|
function ko(n) {
|
|
14921
|
-
if (!
|
|
14921
|
+
if (!mn)
|
|
14922
14922
|
throw new Error(
|
|
14923
14923
|
"@solana/web3.js is not defined. Please install @solana/web3.js into your project"
|
|
14924
14924
|
);
|
|
@@ -14926,8 +14926,8 @@ function ko(n) {
|
|
|
14926
14926
|
throw new Error(
|
|
14927
14927
|
"bs58 is not defined. Please install bs58 into your project"
|
|
14928
14928
|
);
|
|
14929
|
-
const e = sr.decode(n), t =
|
|
14930
|
-
return t.version === "legacy" ?
|
|
14929
|
+
const e = sr.decode(n), t = mn.VersionedTransaction.deserialize(e);
|
|
14930
|
+
return t.version === "legacy" ? mn.Transaction.from(e) : t;
|
|
14931
14931
|
}
|
|
14932
14932
|
function dn({
|
|
14933
14933
|
wallet: n,
|
|
@@ -15073,81 +15073,17 @@ function T1(n) {
|
|
|
15073
15073
|
}
|
|
15074
15074
|
} };
|
|
15075
15075
|
}
|
|
15076
|
-
const N1 = /* @__PURE__ */ new Set([
|
|
15077
|
-
"animationIterationCount",
|
|
15078
|
-
"aspectRatio",
|
|
15079
|
-
"borderImageOutset",
|
|
15080
|
-
"borderImageSlice",
|
|
15081
|
-
"borderImageWidth",
|
|
15082
|
-
"boxFlex",
|
|
15083
|
-
"boxFlexGroup",
|
|
15084
|
-
"boxOrdinalGroup",
|
|
15085
|
-
"columnCount",
|
|
15086
|
-
"columns",
|
|
15087
|
-
"flex",
|
|
15088
|
-
"flexGrow",
|
|
15089
|
-
"flexPositive",
|
|
15090
|
-
"flexShrink",
|
|
15091
|
-
"flexNegative",
|
|
15092
|
-
"flexOrder",
|
|
15093
|
-
"gridArea",
|
|
15094
|
-
"gridRow",
|
|
15095
|
-
"gridRowEnd",
|
|
15096
|
-
"gridRowSpan",
|
|
15097
|
-
"gridRowStart",
|
|
15098
|
-
"gridColumn",
|
|
15099
|
-
"gridColumnEnd",
|
|
15100
|
-
"gridColumnSpan",
|
|
15101
|
-
"gridColumnStart",
|
|
15102
|
-
"fontWeight",
|
|
15103
|
-
"lineClamp",
|
|
15104
|
-
"lineHeight",
|
|
15105
|
-
"opacity",
|
|
15106
|
-
"order",
|
|
15107
|
-
"orphans",
|
|
15108
|
-
"scale",
|
|
15109
|
-
"rotate",
|
|
15110
|
-
"rotateX",
|
|
15111
|
-
"rotateY",
|
|
15112
|
-
"rotateZ",
|
|
15113
|
-
"scaleX",
|
|
15114
|
-
"scaleY",
|
|
15115
|
-
"scaleZ",
|
|
15116
|
-
"skew",
|
|
15117
|
-
"skewX",
|
|
15118
|
-
"skewY",
|
|
15119
|
-
"tabSize",
|
|
15120
|
-
"widows",
|
|
15121
|
-
"zIndex",
|
|
15122
|
-
"zoom",
|
|
15123
|
-
// svg props here
|
|
15124
|
-
"fillOpacity",
|
|
15125
|
-
"floodOpacity",
|
|
15126
|
-
"stopOpacity",
|
|
15127
|
-
"strokeDasharray",
|
|
15128
|
-
"strokeDashoffset",
|
|
15129
|
-
"strokeMiterlimit",
|
|
15130
|
-
"strokeOpacity",
|
|
15131
|
-
"strokeWidth"
|
|
15132
|
-
]), x1 = /^(Webkit|Moz|ms|O)/, B1 = /[A-Z]/g;
|
|
15133
15076
|
function nr(n) {
|
|
15134
|
-
if (!n
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
for (const t
|
|
15138
|
-
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
B1,
|
|
15145
|
-
(o) => `-${o.toLowerCase()}`
|
|
15146
|
-
), x1.test(t) && (s = `-${s}`));
|
|
15147
|
-
let i;
|
|
15148
|
-
typeof r == "number" ? N1.has(t) ? i = String(r) : i = r === 0 ? "0" : `${r}px` : i = String(r), e.push(`${s}: ${i}`);
|
|
15149
|
-
}
|
|
15150
|
-
return e.length === 0 ? "" : e.join("; ") + ";";
|
|
15077
|
+
if (!n) return "";
|
|
15078
|
+
if (typeof n == "string") return n;
|
|
15079
|
+
let e = "";
|
|
15080
|
+
for (const [t, r] of Object.entries(n)) {
|
|
15081
|
+
let s = "";
|
|
15082
|
+
t.split("").forEach((i) => {
|
|
15083
|
+
i.toUpperCase() === i ? s += "-" + i.toLowerCase() : s += i;
|
|
15084
|
+
}), e += s + ":" + r + ";";
|
|
15085
|
+
}
|
|
15086
|
+
return e;
|
|
15151
15087
|
}
|
|
15152
15088
|
var No;
|
|
15153
15089
|
((n) => {
|
|
@@ -15157,7 +15093,7 @@ var No;
|
|
|
15157
15093
|
e.IN_GAME_PRODUCT = "inGameProduct", e.GAME_OF_SKILL = "gameOfSkill", e.DATA_STORAGE = "dataStorage", e.COMPUTING_RESOURCES = "computingResources", e.SPORTS_TICKET = "sportsTicket", e.E_SPORTS_TICKET = "eSportsTicket", e.MUSIC_TICKET = "musicTicket", e.CONFERENCE_TICKET = "conferenceTicket", e.VIRTUAL_SPORTS_TICKET = "virtualSportsTicket", e.VIRTUAL_ESPORTS_TICKET = "virtualESportsTicket", e.VIRTUAL_MUSIC_TICKET = "virtualMusicTicket", e.VIRTUAL_CONFERENCE_TICKET = "virtualConferenceTicket", e.ALCOHOL = "alcohol", e.DLC = "DLC", e.SUBSCRIPTION = "subscription", e.FUND_ACAUSE = "fundACause", e.REAL_ESTATE = "realEstate", e.COMPUTING_CONTRACT = "computingContract", e.DIGITAL_ART = "digitalArt", e.TOP_UP = "topUp", e.OWNERSHIP_CONTRACT = "ownershipContract", e.IN_GAME_CURRENCY = "inGameCurrency", e.MONEY_TOP_UP_CART_ITEM = "moneyTopUpCartItem";
|
|
15158
15094
|
})(n.productType || (n.productType = {}));
|
|
15159
15095
|
})(No || (No = {}));
|
|
15160
|
-
const
|
|
15096
|
+
const N1 = Tt({
|
|
15161
15097
|
name: "CoinflowIFrame",
|
|
15162
15098
|
props: {
|
|
15163
15099
|
args: {
|
|
@@ -15226,8 +15162,8 @@ const L1 = Tt({
|
|
|
15226
15162
|
for (const [r, s] of e)
|
|
15227
15163
|
t[r] = s;
|
|
15228
15164
|
return t;
|
|
15229
|
-
},
|
|
15230
|
-
function
|
|
15165
|
+
}, x1 = ["src", "scrolling"];
|
|
15166
|
+
function B1(n, e, t, r, s, i) {
|
|
15231
15167
|
return Et(), Bt("iframe", {
|
|
15232
15168
|
credentialless: "",
|
|
15233
15169
|
style: { height: "100%", width: "100%" },
|
|
@@ -15241,9 +15177,9 @@ function M1(n, e, t, r, s, i) {
|
|
|
15241
15177
|
const o = n.$refs.iframeRef;
|
|
15242
15178
|
o && (o.style.opacity = "1");
|
|
15243
15179
|
})
|
|
15244
|
-
}, null, 40,
|
|
15180
|
+
}, null, 40, x1);
|
|
15245
15181
|
}
|
|
15246
|
-
const Es = /* @__PURE__ */ Rs(
|
|
15182
|
+
const Es = /* @__PURE__ */ Rs(N1, [["render", B1]]), L1 = Tt({
|
|
15247
15183
|
name: "CoinflowWithdraw",
|
|
15248
15184
|
components: { CoinflowIFrame: Es },
|
|
15249
15185
|
props: {
|
|
@@ -15273,13 +15209,13 @@ const Es = /* @__PURE__ */ Rs(L1, [["render", M1]]), P1 = Tt({
|
|
|
15273
15209
|
}
|
|
15274
15210
|
}
|
|
15275
15211
|
});
|
|
15276
|
-
function
|
|
15212
|
+
function C1(n, e, t, r, s, i) {
|
|
15277
15213
|
const o = xo("coinflow-i-frame");
|
|
15278
15214
|
return Et(), vn(o, {
|
|
15279
15215
|
args: { ...n.iframeProps, ...n.messageHandlers, handleHeightChangeId: n.handleHeightChangeId }
|
|
15280
15216
|
}, null, 8, ["args"]);
|
|
15281
15217
|
}
|
|
15282
|
-
const
|
|
15218
|
+
const ay = /* @__PURE__ */ Rs(L1, [["render", C1]]), M1 = Tt({
|
|
15283
15219
|
name: "CoinflowPurchase",
|
|
15284
15220
|
components: { CoinflowIFrame: Es },
|
|
15285
15221
|
props: {
|
|
@@ -15309,13 +15245,13 @@ const lm = /* @__PURE__ */ Rs(P1, [["render", U1]]), D1 = Tt({
|
|
|
15309
15245
|
}
|
|
15310
15246
|
}
|
|
15311
15247
|
});
|
|
15312
|
-
function
|
|
15248
|
+
function P1(n, e, t, r, s, i) {
|
|
15313
15249
|
const o = xo("coinflow-i-frame");
|
|
15314
15250
|
return Et(), vn(o, {
|
|
15315
15251
|
args: { ...n.iframeProps, ...n.messageHandlers, handleHeightChangeId: n.handleHeightChangeId }
|
|
15316
15252
|
}, null, 8, ["args"]);
|
|
15317
15253
|
}
|
|
15318
|
-
const
|
|
15254
|
+
const cy = /* @__PURE__ */ Rs(M1, [["render", P1]]), Ss = (n) => {
|
|
15319
15255
|
const e = ur(!1), t = ur(!1), r = ur(void 0), s = ur(void 0);
|
|
15320
15256
|
Bo(() => {
|
|
15321
15257
|
To({
|
|
@@ -15368,7 +15304,7 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15368
15304
|
setTokenExScriptTag: To,
|
|
15369
15305
|
tokenExScriptLoaded: t
|
|
15370
15306
|
};
|
|
15371
|
-
},
|
|
15307
|
+
}, U1 = ["id"], uy = /* @__PURE__ */ Tt({
|
|
15372
15308
|
__name: "CoinflowCardNumberInput",
|
|
15373
15309
|
props: {
|
|
15374
15310
|
args: {
|
|
@@ -15395,14 +15331,14 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15395
15331
|
origins: n.args.origins,
|
|
15396
15332
|
font: n.args.font
|
|
15397
15333
|
});
|
|
15398
|
-
}, {}), (o, a) => (Et(), Bt("div", { id: Cr($n) }, null, 8,
|
|
15334
|
+
}, {}), (o, a) => (Et(), Bt("div", { id: Cr($n) }, null, 8, U1));
|
|
15399
15335
|
}
|
|
15400
|
-
}),
|
|
15336
|
+
}), D1 = ["id"], ly = /* @__PURE__ */ Tt({
|
|
15401
15337
|
__name: "CoinflowCvvInput",
|
|
15402
15338
|
setup(n) {
|
|
15403
|
-
return (e, t) => (Et(), Bt("div", { id: Cr(Xr) }, null, 8,
|
|
15339
|
+
return (e, t) => (Et(), Bt("div", { id: Cr(Xr) }, null, 8, D1));
|
|
15404
15340
|
}
|
|
15405
|
-
}),
|
|
15341
|
+
}), F1 = ["id"], hy = /* @__PURE__ */ Tt({
|
|
15406
15342
|
__name: "CoinflowCvvOnlyInput",
|
|
15407
15343
|
props: {
|
|
15408
15344
|
args: {
|
|
@@ -15429,9 +15365,9 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15429
15365
|
css: i(),
|
|
15430
15366
|
font: n.args.font
|
|
15431
15367
|
});
|
|
15432
|
-
}, {}), (o, a) => (Et(), Bt("div", { id: Cr(Xr) }, null, 8,
|
|
15368
|
+
}, {}), (o, a) => (Et(), Bt("div", { id: Cr(Xr) }, null, 8, F1));
|
|
15433
15369
|
}
|
|
15434
|
-
}),
|
|
15370
|
+
}), fy = /* @__PURE__ */ Tt({
|
|
15435
15371
|
__name: "CoinflowPurchaseProtection",
|
|
15436
15372
|
props: {
|
|
15437
15373
|
args: {
|
|
@@ -15463,7 +15399,7 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15463
15399
|
});
|
|
15464
15400
|
}), (s, i) => null;
|
|
15465
15401
|
}
|
|
15466
|
-
}),
|
|
15402
|
+
}), z1 = ["id"], dy = /* @__PURE__ */ Tt({
|
|
15467
15403
|
__name: "CoinflowCardNumberOnlyInput",
|
|
15468
15404
|
props: {
|
|
15469
15405
|
args: {
|
|
@@ -15490,12 +15426,12 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15490
15426
|
origins: n.args.origins,
|
|
15491
15427
|
font: n.args.font
|
|
15492
15428
|
});
|
|
15493
|
-
}, {}), (o, a) => (Et(), Bt("div", { id: Cr($n) }, null, 8,
|
|
15429
|
+
}, {}), (o, a) => (Et(), Bt("div", { id: Cr($n) }, null, 8, z1));
|
|
15494
15430
|
}
|
|
15495
|
-
}),
|
|
15431
|
+
}), $1 = { style: {
|
|
15496
15432
|
position: "relative",
|
|
15497
15433
|
height: "100%"
|
|
15498
|
-
} },
|
|
15434
|
+
} }, K1 = { style: {
|
|
15499
15435
|
position: "relative",
|
|
15500
15436
|
zIndex: 10,
|
|
15501
15437
|
height: "100%"
|
|
@@ -15553,7 +15489,7 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15553
15489
|
}
|
|
15554
15490
|
e == null || e(f);
|
|
15555
15491
|
}
|
|
15556
|
-
return (f, g) => (Et(), Bt("div",
|
|
15492
|
+
return (f, g) => (Et(), Bt("div", $1, [
|
|
15557
15493
|
Wr("div", {
|
|
15558
15494
|
style: Ja({
|
|
15559
15495
|
backgroundColor: n.args.color,
|
|
@@ -15573,7 +15509,7 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15573
15509
|
}, [
|
|
15574
15510
|
Qa(f.$slots, "default")
|
|
15575
15511
|
], 4),
|
|
15576
|
-
Wr("div",
|
|
15512
|
+
Wr("div", K1, [
|
|
15577
15513
|
Wi(Es, {
|
|
15578
15514
|
onOnMessage: a,
|
|
15579
15515
|
args: { ...t(), ...r(), handleHeightChangeId: Cr(o) }
|
|
@@ -15581,10 +15517,10 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15581
15517
|
])
|
|
15582
15518
|
]));
|
|
15583
15519
|
}
|
|
15584
|
-
}),
|
|
15520
|
+
}), H1 = {
|
|
15585
15521
|
id: "svg-logo",
|
|
15586
15522
|
viewBox: "0 0 35 15"
|
|
15587
|
-
},
|
|
15523
|
+
}, W1 = {
|
|
15588
15524
|
id: "svg-logo",
|
|
15589
15525
|
x: "0",
|
|
15590
15526
|
y: "3.85",
|
|
@@ -15595,12 +15531,12 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15595
15531
|
version: "1.1",
|
|
15596
15532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15597
15533
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
15598
|
-
},
|
|
15534
|
+
}, q1 = {
|
|
15599
15535
|
stroke: "none",
|
|
15600
15536
|
"stroke-width": "1",
|
|
15601
15537
|
fill: "none",
|
|
15602
15538
|
"fill-rule": "evenodd"
|
|
15603
|
-
},
|
|
15539
|
+
}, G1 = ["fill"], V1 = /* @__PURE__ */ Tt({
|
|
15604
15540
|
__name: "ApplePayOverlay",
|
|
15605
15541
|
props: {
|
|
15606
15542
|
color: {
|
|
@@ -15610,18 +15546,18 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15610
15546
|
},
|
|
15611
15547
|
setup(n) {
|
|
15612
15548
|
const e = n.color === "white" ? "#000" : "#FFF";
|
|
15613
|
-
return (t, r) => (Et(), Bt("svg",
|
|
15614
|
-
(Et(), Bt("svg",
|
|
15549
|
+
return (t, r) => (Et(), Bt("svg", H1, [
|
|
15550
|
+
(Et(), Bt("svg", W1, [
|
|
15615
15551
|
r[1] || (r[1] = Wr("title", null, "Apple Logo", -1)),
|
|
15616
|
-
Wr("g",
|
|
15552
|
+
Wr("g", q1, [
|
|
15617
15553
|
Wr("g", { fill: Cr(e) }, r[0] || (r[0] = [
|
|
15618
15554
|
xi('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>', 5)
|
|
15619
|
-
]), 8,
|
|
15555
|
+
]), 8, G1)
|
|
15620
15556
|
])
|
|
15621
15557
|
]))
|
|
15622
15558
|
]));
|
|
15623
15559
|
}
|
|
15624
|
-
}),
|
|
15560
|
+
}), py = /* @__PURE__ */ Tt({
|
|
15625
15561
|
__name: "CoinflowApplePayButton",
|
|
15626
15562
|
props: {
|
|
15627
15563
|
args: {
|
|
@@ -15635,24 +15571,24 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15635
15571
|
args: n.args
|
|
15636
15572
|
}, {
|
|
15637
15573
|
default: Lo(() => [
|
|
15638
|
-
Wi(
|
|
15574
|
+
Wi(V1, {
|
|
15639
15575
|
color: n.args.color
|
|
15640
15576
|
}, null, 8, ["color"])
|
|
15641
15577
|
]),
|
|
15642
15578
|
_: 1
|
|
15643
15579
|
}, 8, ["args"]));
|
|
15644
15580
|
}
|
|
15645
|
-
}),
|
|
15581
|
+
}), Y1 = {
|
|
15646
15582
|
key: 0,
|
|
15647
15583
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15648
15584
|
width: "41",
|
|
15649
15585
|
height: "17"
|
|
15650
|
-
},
|
|
15586
|
+
}, j1 = {
|
|
15651
15587
|
key: 1,
|
|
15652
15588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15653
15589
|
width: "41",
|
|
15654
15590
|
height: "17"
|
|
15655
|
-
},
|
|
15591
|
+
}, Z1 = /* @__PURE__ */ Tt({
|
|
15656
15592
|
__name: "GooglePayOverlay",
|
|
15657
15593
|
props: {
|
|
15658
15594
|
color: {
|
|
@@ -15662,15 +15598,15 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15662
15598
|
},
|
|
15663
15599
|
setup(n) {
|
|
15664
15600
|
return (e, t) => (Et(), Bt(ec, null, [
|
|
15665
|
-
n.color === "white" ? (Et(), Bt("svg",
|
|
15601
|
+
n.color === "white" ? (Et(), Bt("svg", Y1, t[0] || (t[0] = [
|
|
15666
15602
|
xi('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>', 1)
|
|
15667
15603
|
]))) : Bs("", !0),
|
|
15668
|
-
n.color === "black" ? (Et(), Bt("svg",
|
|
15604
|
+
n.color === "black" ? (Et(), Bt("svg", j1, t[1] || (t[1] = [
|
|
15669
15605
|
xi('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>', 1)
|
|
15670
15606
|
]))) : Bs("", !0)
|
|
15671
15607
|
], 64));
|
|
15672
15608
|
}
|
|
15673
|
-
}),
|
|
15609
|
+
}), gy = /* @__PURE__ */ Tt({
|
|
15674
15610
|
__name: "CoinflowGooglePayButton",
|
|
15675
15611
|
props: {
|
|
15676
15612
|
args: {
|
|
@@ -15686,7 +15622,7 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15686
15622
|
alignItems: "center"
|
|
15687
15623
|
}, {
|
|
15688
15624
|
default: Lo(() => [
|
|
15689
|
-
Wi(
|
|
15625
|
+
Wi(Z1, {
|
|
15690
15626
|
color: n.args.color
|
|
15691
15627
|
}, null, 8, ["color"])
|
|
15692
15628
|
]),
|
|
@@ -15696,21 +15632,20 @@ const hm = /* @__PURE__ */ Rs(D1, [["render", F1]]), Ss = (n) => {
|
|
|
15696
15632
|
});
|
|
15697
15633
|
export {
|
|
15698
15634
|
S1 as CARD_TYPE_MAPPING,
|
|
15699
|
-
nr as CSSPropertiesToComponent,
|
|
15700
15635
|
Hr as CardType,
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15636
|
+
py as CoinflowApplePayButton,
|
|
15637
|
+
uy as CoinflowCardNumberInput,
|
|
15638
|
+
dy as CoinflowCardNumberOnlyInput,
|
|
15639
|
+
ly as CoinflowCvvInput,
|
|
15640
|
+
hy as CoinflowCvvOnlyInput,
|
|
15641
|
+
gy as CoinflowGooglePayButton,
|
|
15707
15642
|
Es as CoinflowIframe,
|
|
15708
|
-
|
|
15709
|
-
|
|
15643
|
+
cy as CoinflowPurchase,
|
|
15644
|
+
fy as CoinflowPurchaseProtection,
|
|
15710
15645
|
Jt as CoinflowUtils,
|
|
15711
|
-
|
|
15646
|
+
ay as CoinflowWithdraw,
|
|
15712
15647
|
Va as Currency,
|
|
15713
|
-
|
|
15648
|
+
ny as CurrencyToISO4217,
|
|
15714
15649
|
Ya as IFrameMessageMethods,
|
|
15715
15650
|
rc as MerchantStyle,
|
|
15716
15651
|
ic as PaymentMethods,
|
|
@@ -15722,13 +15657,13 @@ export {
|
|
|
15722
15657
|
v1 as doInitializeCvvOnlyTokenExIframe,
|
|
15723
15658
|
k1 as doInitializeTokenExCardOnlyIframe,
|
|
15724
15659
|
O1 as doInitializeTokenExIframe,
|
|
15725
|
-
|
|
15660
|
+
oy as getCustomerName,
|
|
15726
15661
|
ws as getHandlers,
|
|
15727
15662
|
A1 as getIframeConfig,
|
|
15728
15663
|
_s as getWalletPubkey,
|
|
15729
15664
|
b1 as handleIFrameMessage,
|
|
15730
|
-
|
|
15731
|
-
|
|
15665
|
+
sy as isTypedCurrencyCents,
|
|
15666
|
+
iy as isWithdrawCurrency,
|
|
15732
15667
|
No as nftCartItem,
|
|
15733
15668
|
To as setTokenExScriptTag
|
|
15734
15669
|
};
|