@rebilly/instruments 14.2.1 → 14.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/CHANGELOG.md +1 -1
- package/dist/index.js +155 -155
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [14.2.
|
|
1
|
+
## [14.2.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v14.2.1...instruments/core-v14.2.2) (2025-07-28)
|
package/dist/index.js
CHANGED
|
@@ -4292,9 +4292,9 @@ class InterceptorManager {
|
|
|
4292
4292
|
* @returns {void}
|
|
4293
4293
|
*/
|
|
4294
4294
|
forEach(fn) {
|
|
4295
|
-
utils$1.forEach(this.handlers, function forEachHandler(
|
|
4296
|
-
if (
|
|
4297
|
-
fn(
|
|
4295
|
+
utils$1.forEach(this.handlers, function forEachHandler(h2) {
|
|
4296
|
+
if (h2 !== null) {
|
|
4297
|
+
fn(h2);
|
|
4298
4298
|
}
|
|
4299
4299
|
});
|
|
4300
4300
|
}
|
|
@@ -6434,11 +6434,11 @@ const lr = {
|
|
|
6434
6434
|
* @type Cancellation.cancelAll
|
|
6435
6435
|
*/
|
|
6436
6436
|
cancelAll: async (...t2) => await v.cancelAll(...t2)
|
|
6437
|
-
}, b
|
|
6437
|
+
}, b = {
|
|
6438
6438
|
request: "request",
|
|
6439
6439
|
response: "response"
|
|
6440
6440
|
}, W$1 = (t2) => {
|
|
6441
|
-
if (!Object.values(b
|
|
6441
|
+
if (!Object.values(b).includes(t2))
|
|
6442
6442
|
throw new Error(`There is no such interceptor type as "${t2}"`);
|
|
6443
6443
|
return true;
|
|
6444
6444
|
};
|
|
@@ -6463,7 +6463,7 @@ function P({ options: t2 }) {
|
|
|
6463
6463
|
}
|
|
6464
6464
|
function o2() {
|
|
6465
6465
|
const i = {
|
|
6466
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6466
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@778d486`
|
|
6467
6467
|
};
|
|
6468
6468
|
return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
|
|
6469
6469
|
}
|
|
@@ -6493,39 +6493,39 @@ function P({ options: t2 }) {
|
|
|
6493
6493
|
}
|
|
6494
6494
|
function M2(c, { thenDelegate: i, catchDelegate: g = () => {
|
|
6495
6495
|
} }) {
|
|
6496
|
-
return W$1(c) && e2.interceptors[b
|
|
6496
|
+
return W$1(c) && e2.interceptors[b[c]].use(
|
|
6497
6497
|
i,
|
|
6498
6498
|
g
|
|
6499
6499
|
);
|
|
6500
6500
|
}
|
|
6501
6501
|
function F2(c, i) {
|
|
6502
|
-
return W$1(c) && e2.interceptors[b
|
|
6502
|
+
return W$1(c) && e2.interceptors[b[c]].eject(i);
|
|
6503
6503
|
}
|
|
6504
6504
|
function X2({ thenDelegate: c, catchDelegate: i = () => {
|
|
6505
6505
|
} }) {
|
|
6506
|
-
return M2(b
|
|
6506
|
+
return M2(b.request, {
|
|
6507
6507
|
thenDelegate: c,
|
|
6508
6508
|
catchDelegate: i
|
|
6509
6509
|
});
|
|
6510
6510
|
}
|
|
6511
6511
|
function Z2(c) {
|
|
6512
|
-
F2(b
|
|
6512
|
+
F2(b.request, c);
|
|
6513
6513
|
}
|
|
6514
6514
|
function _2({
|
|
6515
6515
|
thenDelegate: c,
|
|
6516
6516
|
catchDelegate: i = () => {
|
|
6517
6517
|
}
|
|
6518
6518
|
}) {
|
|
6519
|
-
return M2(b
|
|
6519
|
+
return M2(b.response, {
|
|
6520
6520
|
thenDelegate: c,
|
|
6521
6521
|
catchDelegate: i
|
|
6522
6522
|
});
|
|
6523
6523
|
}
|
|
6524
6524
|
function H2(c) {
|
|
6525
|
-
F2(b
|
|
6525
|
+
F2(b.response, c);
|
|
6526
6526
|
}
|
|
6527
6527
|
function A2({ request: c, isCollection: i, config: g }) {
|
|
6528
|
-
const m2 = B2(g), { id:
|
|
6528
|
+
const m2 = B2(g), { id: h2, cancelToken: ce2 } = w.save();
|
|
6529
6529
|
m2.cancelToken = ce2;
|
|
6530
6530
|
const z2 = async function() {
|
|
6531
6531
|
try {
|
|
@@ -6538,10 +6538,10 @@ function P({ options: t2 }) {
|
|
|
6538
6538
|
} catch (k2) {
|
|
6539
6539
|
return O2({ error: k2 });
|
|
6540
6540
|
} finally {
|
|
6541
|
-
w.deleteById(
|
|
6541
|
+
w.deleteById(h2);
|
|
6542
6542
|
}
|
|
6543
6543
|
}();
|
|
6544
|
-
return z2.cancel = (k2) => v.cancelById(
|
|
6544
|
+
return z2.cancel = (k2) => v.cancelById(h2, k2), z2;
|
|
6545
6545
|
}
|
|
6546
6546
|
function ee2({ response: c, isCollection: i, config: g }) {
|
|
6547
6547
|
return i ? new ae$1(c, g) : new G$1(c, g);
|
|
@@ -6590,7 +6590,7 @@ function P({ options: t2 }) {
|
|
|
6590
6590
|
function N2(c, i, g = {}) {
|
|
6591
6591
|
let m2 = {};
|
|
6592
6592
|
return g.authenticate === false && (m2 = { headers: l() }, delete m2.headers.common["REB-APIKEY"], delete m2.headers.common.Authorization), g.params && (m2.params = { ...g.params }), A2({
|
|
6593
|
-
request: (
|
|
6593
|
+
request: (h2) => e2.post(c, i, h2),
|
|
6594
6594
|
config: m2
|
|
6595
6595
|
});
|
|
6596
6596
|
}
|
|
@@ -6626,10 +6626,10 @@ function P({ options: t2 }) {
|
|
|
6626
6626
|
throw new $$1.RebillyConflictError({
|
|
6627
6627
|
message: "A resource already exists with this ID. Please use a different ID."
|
|
6628
6628
|
});
|
|
6629
|
-
} catch (
|
|
6630
|
-
if (
|
|
6629
|
+
} catch (h2) {
|
|
6630
|
+
if (h2.name === "RebillyNotFoundError")
|
|
6631
6631
|
return L2(c, g, m2);
|
|
6632
|
-
throw
|
|
6632
|
+
throw h2;
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
6635
|
async function le2(c, i) {
|
|
@@ -11514,11 +11514,11 @@ function A(e2, t2) {
|
|
|
11514
11514
|
function L(e2, t2) {
|
|
11515
11515
|
return t2 %= 64, t2 === 0 ? e2 : t2 < 32 ? [e2[0] << t2 | e2[1] >>> 32 - t2, e2[1] << t2] : [e2[1] << t2 - 32, 0];
|
|
11516
11516
|
}
|
|
11517
|
-
function
|
|
11517
|
+
function h(e2, t2) {
|
|
11518
11518
|
return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
|
|
11519
11519
|
}
|
|
11520
11520
|
function q(e2) {
|
|
11521
|
-
return e2 =
|
|
11521
|
+
return e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [4283543511, 3981806797]), e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [3301882366, 444984403]), e2 = h(e2, [0, e2[0] >>> 1]), e2;
|
|
11522
11522
|
}
|
|
11523
11523
|
function we(e2, t2) {
|
|
11524
11524
|
e2 = e2 || "", t2 = t2 || 0;
|
|
@@ -11530,40 +11530,40 @@ function we(e2, t2) {
|
|
|
11530
11530
|
], c = [
|
|
11531
11531
|
e2.charCodeAt(u + 12) & 255 | (e2.charCodeAt(u + 13) & 255) << 8 | (e2.charCodeAt(u + 14) & 255) << 16 | (e2.charCodeAt(u + 15) & 255) << 24,
|
|
11532
11532
|
e2.charCodeAt(u + 8) & 255 | (e2.charCodeAt(u + 9) & 255) << 8 | (e2.charCodeAt(u + 10) & 255) << 16 | (e2.charCodeAt(u + 11) & 255) << 24
|
|
11533
|
-
], o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i =
|
|
11533
|
+
], o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2), i = A(i, 27), i = Z(i, r2), i = Z(C(i, [0, 5]), [0, 1390208809]), c = C(c, s), c = A(c, 33), c = C(c, l), r2 = h(r2, c), r2 = A(r2, 31), r2 = Z(r2, i), r2 = Z(C(r2, [0, 5]), [0, 944331445]);
|
|
11534
11534
|
switch (o2 = [0, 0], c = [0, 0], n2) {
|
|
11535
11535
|
case 15:
|
|
11536
|
-
c =
|
|
11536
|
+
c = h(c, L([0, e2.charCodeAt(u + 14)], 48));
|
|
11537
11537
|
case 14:
|
|
11538
|
-
c =
|
|
11538
|
+
c = h(c, L([0, e2.charCodeAt(u + 13)], 40));
|
|
11539
11539
|
case 13:
|
|
11540
|
-
c =
|
|
11540
|
+
c = h(c, L([0, e2.charCodeAt(u + 12)], 32));
|
|
11541
11541
|
case 12:
|
|
11542
|
-
c =
|
|
11542
|
+
c = h(c, L([0, e2.charCodeAt(u + 11)], 24));
|
|
11543
11543
|
case 11:
|
|
11544
|
-
c =
|
|
11544
|
+
c = h(c, L([0, e2.charCodeAt(u + 10)], 16));
|
|
11545
11545
|
case 10:
|
|
11546
|
-
c =
|
|
11546
|
+
c = h(c, L([0, e2.charCodeAt(u + 9)], 8));
|
|
11547
11547
|
case 9:
|
|
11548
|
-
c =
|
|
11548
|
+
c = h(c, [0, e2.charCodeAt(u + 8)]), c = C(c, s), c = A(c, 33), c = C(c, l), r2 = h(r2, c);
|
|
11549
11549
|
case 8:
|
|
11550
|
-
o2 =
|
|
11550
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 7)], 56));
|
|
11551
11551
|
case 7:
|
|
11552
|
-
o2 =
|
|
11552
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 6)], 48));
|
|
11553
11553
|
case 6:
|
|
11554
|
-
o2 =
|
|
11554
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 5)], 40));
|
|
11555
11555
|
case 5:
|
|
11556
|
-
o2 =
|
|
11556
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 4)], 32));
|
|
11557
11557
|
case 4:
|
|
11558
|
-
o2 =
|
|
11558
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 3)], 24));
|
|
11559
11559
|
case 3:
|
|
11560
|
-
o2 =
|
|
11560
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 2)], 16));
|
|
11561
11561
|
case 2:
|
|
11562
|
-
o2 =
|
|
11562
|
+
o2 = h(o2, L([0, e2.charCodeAt(u + 1)], 8));
|
|
11563
11563
|
case 1:
|
|
11564
|
-
o2 =
|
|
11564
|
+
o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2);
|
|
11565
11565
|
}
|
|
11566
|
-
return i =
|
|
11566
|
+
return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q(i), r2 = q(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
|
|
11567
11567
|
}
|
|
11568
11568
|
function Se(e2) {
|
|
11569
11569
|
var t2;
|
|
@@ -11600,8 +11600,8 @@ function fe2(e2, t2) {
|
|
|
11600
11600
|
return Math.round(e2 * n2) / n2;
|
|
11601
11601
|
}
|
|
11602
11602
|
function xe(e2) {
|
|
11603
|
-
for (var t2, n2, a = "Unexpected syntax '".concat(e2, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e2), r2 = i[1] || void 0, o2 = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d2,
|
|
11604
|
-
o2[d2] = o2[d2] || [], o2[d2].push(
|
|
11603
|
+
for (var t2, n2, a = "Unexpected syntax '".concat(e2, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e2), r2 = i[1] || void 0, o2 = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d2, p2) {
|
|
11604
|
+
o2[d2] = o2[d2] || [], o2[d2].push(p2);
|
|
11605
11605
|
}; ; ) {
|
|
11606
11606
|
var s = c.exec(i[2]);
|
|
11607
11607
|
if (!s)
|
|
@@ -11656,10 +11656,10 @@ function Ve(e2, t2) {
|
|
|
11656
11656
|
K(l, function() {
|
|
11657
11657
|
for (var f = [], d2 = 0; d2 < arguments.length; d2++)
|
|
11658
11658
|
f[d2] = arguments[d2];
|
|
11659
|
-
var
|
|
11659
|
+
var p2 = c + Date.now() - u;
|
|
11660
11660
|
if (!f[0])
|
|
11661
|
-
return s({ error: $(f[1]), duration:
|
|
11662
|
-
s({ value: f[1], duration:
|
|
11661
|
+
return s({ error: $(f[1]), duration: p2 });
|
|
11662
|
+
s({ value: f[1], duration: p2 });
|
|
11663
11663
|
});
|
|
11664
11664
|
});
|
|
11665
11665
|
});
|
|
@@ -11686,8 +11686,8 @@ function Fe(e2, t2, n2) {
|
|
|
11686
11686
|
return [4, i];
|
|
11687
11687
|
case 1:
|
|
11688
11688
|
return o2 = f.sent(), [4, _(o2, function(d2) {
|
|
11689
|
-
var
|
|
11690
|
-
return Y(
|
|
11689
|
+
var p2 = d2();
|
|
11690
|
+
return Y(p2), p2;
|
|
11691
11691
|
})];
|
|
11692
11692
|
case 2:
|
|
11693
11693
|
return c = f.sent(), [
|
|
@@ -11838,8 +11838,8 @@ function Pe(e2) {
|
|
|
11838
11838
|
var t2 = 3, n2 = 500, a = 500, i = 5e3, r2 = function() {
|
|
11839
11839
|
}, o2 = new Promise(function(c, l) {
|
|
11840
11840
|
var s = false, u = 0, f = 0;
|
|
11841
|
-
e2.oncomplete = function(
|
|
11842
|
-
return c(
|
|
11841
|
+
e2.oncomplete = function(g) {
|
|
11842
|
+
return c(g.renderedBuffer);
|
|
11843
11843
|
};
|
|
11844
11844
|
var d2 = function() {
|
|
11845
11845
|
setTimeout(function() {
|
|
@@ -11848,10 +11848,10 @@ function Pe(e2) {
|
|
|
11848
11848
|
/* InnerErrorName.Timeout */
|
|
11849
11849
|
));
|
|
11850
11850
|
}, Math.min(a, f + i - Date.now()));
|
|
11851
|
-
},
|
|
11851
|
+
}, p2 = function() {
|
|
11852
11852
|
try {
|
|
11853
|
-
var
|
|
11854
|
-
switch (le(
|
|
11853
|
+
var g = e2.startRendering();
|
|
11854
|
+
switch (le(g) && Y(g), e2.state) {
|
|
11855
11855
|
case "running":
|
|
11856
11856
|
f = Date.now(), s && d2();
|
|
11857
11857
|
break;
|
|
@@ -11859,14 +11859,14 @@ function Pe(e2) {
|
|
|
11859
11859
|
document.hidden || u++, s && u >= t2 ? l(ee(
|
|
11860
11860
|
"suspended"
|
|
11861
11861
|
/* InnerErrorName.Suspended */
|
|
11862
|
-
)) : setTimeout(
|
|
11862
|
+
)) : setTimeout(p2, n2);
|
|
11863
11863
|
break;
|
|
11864
11864
|
}
|
|
11865
11865
|
} catch (y) {
|
|
11866
11866
|
l(y);
|
|
11867
11867
|
}
|
|
11868
11868
|
};
|
|
11869
|
-
|
|
11869
|
+
p2(), r2 = function() {
|
|
11870
11870
|
s || (s = true, f > 0 && d2());
|
|
11871
11871
|
};
|
|
11872
11872
|
});
|
|
@@ -11899,15 +11899,15 @@ function ve(e2, t2, n2) {
|
|
|
11899
11899
|
return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
|
|
11900
11900
|
var f = false, d2 = function() {
|
|
11901
11901
|
f = true, s();
|
|
11902
|
-
},
|
|
11903
|
-
f = true, u(
|
|
11902
|
+
}, p2 = function(b2) {
|
|
11903
|
+
f = true, u(b2);
|
|
11904
11904
|
};
|
|
11905
|
-
c.onload = d2, c.onerror =
|
|
11906
|
-
var
|
|
11907
|
-
|
|
11905
|
+
c.onload = d2, c.onerror = p2;
|
|
11906
|
+
var g = c.style;
|
|
11907
|
+
g.setProperty("display", "block", "important"), g.position = "absolute", g.top = "0", g.left = "0", g.visibility = "hidden", t2 && "srcdoc" in c ? c.srcdoc = t2 : c.src = "about:blank", o2.body.appendChild(c);
|
|
11908
11908
|
var y = function() {
|
|
11909
|
-
var
|
|
11910
|
-
f || (((w2 = (
|
|
11909
|
+
var b2, w2;
|
|
11910
|
+
f || (((w2 = (b2 = c.contentWindow) === null || b2 === void 0 ? void 0 : b2.document) === null || w2 === void 0 ? void 0 : w2.readyState) === "complete" ? d2() : setTimeout(y, 10));
|
|
11911
11911
|
};
|
|
11912
11912
|
y();
|
|
11913
11913
|
})];
|
|
@@ -12011,32 +12011,32 @@ function Je() {
|
|
|
12011
12011
|
var n2 = t2.document, a = n2.body;
|
|
12012
12012
|
a.style.fontSize = He;
|
|
12013
12013
|
var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y) {
|
|
12014
|
-
var
|
|
12015
|
-
return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y,
|
|
12016
|
-
}, l = function(y,
|
|
12017
|
-
return c("'".concat(y, "',").concat(
|
|
12014
|
+
var b2 = n2.createElement("span"), w2 = b2.style;
|
|
12015
|
+
return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y, b2.textContent = Ee, i.appendChild(b2), b2;
|
|
12016
|
+
}, l = function(y, b2) {
|
|
12017
|
+
return c("'".concat(y, "',").concat(b2));
|
|
12018
12018
|
}, s = function() {
|
|
12019
12019
|
return M.map(c);
|
|
12020
12020
|
}, u = function() {
|
|
12021
|
-
for (var y = {},
|
|
12021
|
+
for (var y = {}, b2 = function(P2) {
|
|
12022
12022
|
y[P2] = M.map(function(T2) {
|
|
12023
12023
|
return l(P2, T2);
|
|
12024
12024
|
});
|
|
12025
12025
|
}, w2 = 0, R2 = te; w2 < R2.length; w2++) {
|
|
12026
12026
|
var D2 = R2[w2];
|
|
12027
|
-
|
|
12027
|
+
b2(D2);
|
|
12028
12028
|
}
|
|
12029
12029
|
return y;
|
|
12030
12030
|
}, f = function(y) {
|
|
12031
|
-
return M.some(function(
|
|
12032
|
-
return y[w2].offsetWidth !== r2[
|
|
12031
|
+
return M.some(function(b2, w2) {
|
|
12032
|
+
return y[w2].offsetWidth !== r2[b2] || y[w2].offsetHeight !== o2[b2];
|
|
12033
12033
|
});
|
|
12034
|
-
}, d2 = s(),
|
|
12034
|
+
}, d2 = s(), p2 = u();
|
|
12035
12035
|
a.appendChild(i);
|
|
12036
|
-
for (var
|
|
12037
|
-
r2[M[
|
|
12036
|
+
for (var g = 0; g < M.length; g++)
|
|
12037
|
+
r2[M[g]] = d2[g].offsetWidth, o2[M[g]] = d2[g].offsetHeight;
|
|
12038
12038
|
return te.filter(function(y) {
|
|
12039
|
-
return f(
|
|
12039
|
+
return f(p2[y]);
|
|
12040
12040
|
});
|
|
12041
12041
|
});
|
|
12042
12042
|
}
|
|
@@ -12585,8 +12585,8 @@ function St(e2) {
|
|
|
12585
12585
|
})), [4, Ct(r2)]) : [2, void 0];
|
|
12586
12586
|
case 1:
|
|
12587
12587
|
return o2 = s.sent(), n2 && xt(a, o2), c = i.filter(function(u) {
|
|
12588
|
-
var f = a[u], d2 = k(f.map(function(
|
|
12589
|
-
return o2[
|
|
12588
|
+
var f = a[u], d2 = k(f.map(function(p2) {
|
|
12589
|
+
return o2[p2];
|
|
12590
12590
|
}));
|
|
12591
12591
|
return d2 > f.length * 0.6;
|
|
12592
12592
|
}), c.sort(), [2, c];
|
|
@@ -12709,29 +12709,29 @@ var m = Math, S = function() {
|
|
|
12709
12709
|
return 0;
|
|
12710
12710
|
};
|
|
12711
12711
|
function It() {
|
|
12712
|
-
var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d2 = m.exp || S,
|
|
12713
|
-
return m.pow(m.PI,
|
|
12714
|
-
},
|
|
12715
|
-
return m.log(
|
|
12716
|
-
}, w2 = function(
|
|
12717
|
-
return m.log(
|
|
12718
|
-
}, R2 = function(
|
|
12719
|
-
return m.log((1 +
|
|
12720
|
-
}, D2 = function(
|
|
12721
|
-
return m.exp(
|
|
12722
|
-
}, P2 = function(
|
|
12723
|
-
return (m.exp(
|
|
12724
|
-
}, T2 = function(
|
|
12725
|
-
return m.exp(
|
|
12726
|
-
}, ge2 = function(
|
|
12727
|
-
return (m.exp(2 *
|
|
12728
|
-
}, be2 = function(
|
|
12729
|
-
return m.log(1 +
|
|
12712
|
+
var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d2 = m.exp || S, p2 = m.expm1 || S, g = m.log1p || S, y = function(v2) {
|
|
12713
|
+
return m.pow(m.PI, v2);
|
|
12714
|
+
}, b2 = function(v2) {
|
|
12715
|
+
return m.log(v2 + m.sqrt(v2 * v2 - 1));
|
|
12716
|
+
}, w2 = function(v2) {
|
|
12717
|
+
return m.log(v2 + m.sqrt(v2 * v2 + 1));
|
|
12718
|
+
}, R2 = function(v2) {
|
|
12719
|
+
return m.log((1 + v2) / (1 - v2)) / 2;
|
|
12720
|
+
}, D2 = function(v2) {
|
|
12721
|
+
return m.exp(v2) - 1 / m.exp(v2) / 2;
|
|
12722
|
+
}, P2 = function(v2) {
|
|
12723
|
+
return (m.exp(v2) + 1 / m.exp(v2)) / 2;
|
|
12724
|
+
}, T2 = function(v2) {
|
|
12725
|
+
return m.exp(v2) - 1;
|
|
12726
|
+
}, ge2 = function(v2) {
|
|
12727
|
+
return (m.exp(2 * v2) - 1) / (m.exp(2 * v2) + 1);
|
|
12728
|
+
}, be2 = function(v2) {
|
|
12729
|
+
return m.log(1 + v2);
|
|
12730
12730
|
};
|
|
12731
12731
|
return {
|
|
12732
12732
|
acos: e2(0.12312423423423424),
|
|
12733
12733
|
acosh: t2(1e308),
|
|
12734
|
-
acoshPf:
|
|
12734
|
+
acoshPf: b2(1e154),
|
|
12735
12735
|
asin: n2(0.12312423423423424),
|
|
12736
12736
|
asinh: a(1),
|
|
12737
12737
|
asinhPf: w2(1),
|
|
@@ -12748,9 +12748,9 @@ function It() {
|
|
|
12748
12748
|
tanh: f(1),
|
|
12749
12749
|
tanhPf: ge2(1),
|
|
12750
12750
|
exp: d2(1),
|
|
12751
|
-
expm1:
|
|
12751
|
+
expm1: p2(1),
|
|
12752
12752
|
expm1Pf: T2(1),
|
|
12753
|
-
log1p:
|
|
12753
|
+
log1p: g(10),
|
|
12754
12754
|
log1pPf: be2(10),
|
|
12755
12755
|
powPI: y(-100)
|
|
12756
12756
|
};
|
|
@@ -12782,9 +12782,9 @@ function Yt() {
|
|
|
12782
12782
|
for (var n2 = {}, a = {}, i = 0, r2 = Object.keys(J); i < r2.length; i++) {
|
|
12783
12783
|
var o2 = r2[i], c = J[o2], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d2 = e2.createElement("span");
|
|
12784
12784
|
d2.textContent = f, d2.style.whiteSpace = "nowrap";
|
|
12785
|
-
for (var
|
|
12786
|
-
var y =
|
|
12787
|
-
|
|
12785
|
+
for (var p2 = 0, g = Object.keys(s); p2 < g.length; p2++) {
|
|
12786
|
+
var y = g[p2], b2 = s[y];
|
|
12787
|
+
b2 !== void 0 && (d2.style[y] = b2);
|
|
12788
12788
|
}
|
|
12789
12789
|
n2[o2] = d2, t2.appendChild(e2.createElement("br")), t2.appendChild(d2);
|
|
12790
12790
|
}
|
|
@@ -12967,24 +12967,32 @@ async function ce() {
|
|
|
12967
12967
|
const e2 = typeof Cypress == "object", t2 = typeof process == "object" && define_process_env_default.NODE_ENV === "test";
|
|
12968
12968
|
return e2 || t2 ? "a-mock-visitor-id" : (await (await qt.load()).get()).visitorId;
|
|
12969
12969
|
} catch (e2) {
|
|
12970
|
-
return console.error(e2),
|
|
12970
|
+
return console.error(e2), null;
|
|
12971
12971
|
}
|
|
12972
12972
|
}
|
|
12973
12973
|
async function $t() {
|
|
12974
|
-
return new Promise(
|
|
12975
|
-
|
|
12976
|
-
|
|
12974
|
+
return new Promise(
|
|
12975
|
+
(t2) => {
|
|
12976
|
+
window.requestIdleCallback ? requestIdleCallback(
|
|
12977
|
+
async () => {
|
|
12978
|
+
const n2 = await ce();
|
|
12979
|
+
t2(n2);
|
|
12980
|
+
},
|
|
12981
|
+
{ timeout: 200 }
|
|
12982
|
+
) : setTimeout(async () => {
|
|
12977
12983
|
const n2 = await ce();
|
|
12978
12984
|
t2(n2);
|
|
12979
|
-
},
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
const n2 = await ce();
|
|
12983
|
-
t2(n2);
|
|
12984
|
-
}, 200);
|
|
12985
|
-
});
|
|
12985
|
+
}, 200);
|
|
12986
|
+
}
|
|
12987
|
+
);
|
|
12986
12988
|
}
|
|
12987
|
-
const en = "https://tst.kaptcha.com", tn = "https://ssl.kaptcha.com", nn = (e2) => e2 === "production", rn = ({
|
|
12989
|
+
const en = "https://tst.kaptcha.com", tn = "https://ssl.kaptcha.com", nn = (e2) => e2 === "production", rn = ({
|
|
12990
|
+
env: e2,
|
|
12991
|
+
kountAccountId: t2,
|
|
12992
|
+
kountSessionId: n2
|
|
12993
|
+
}) => {
|
|
12994
|
+
if (t2 === null)
|
|
12995
|
+
throw new Error("Kount account ID is required");
|
|
12988
12996
|
const a = nn(e2) ? tn : en, i = new URL(`${a}/collect/sdk`);
|
|
12989
12997
|
i.searchParams.append("m", t2), n2 && i.searchParams.append("m", n2);
|
|
12990
12998
|
const r2 = document.createElement("script");
|
|
@@ -13024,42 +13032,38 @@ const on$1 = () => {
|
|
|
13024
13032
|
};
|
|
13025
13033
|
async function cn({
|
|
13026
13034
|
env: e2 = null,
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
kountAccountId: a = null,
|
|
13030
|
-
kountSessionId: i = null,
|
|
13031
|
-
getFingerprint: r2,
|
|
13032
|
-
getFraudSessionId: o2
|
|
13035
|
+
kountAccountId: t2 = null,
|
|
13036
|
+
kountSessionId: n2 = null
|
|
13033
13037
|
}) {
|
|
13034
|
-
const { colorDepth:
|
|
13035
|
-
let
|
|
13038
|
+
const { colorDepth: a, height: i, width: r2 } = screen || {}, { javaEnabled: o2, language: c } = navigator || {};
|
|
13039
|
+
let l = null, s, u = null;
|
|
13036
13040
|
try {
|
|
13037
|
-
[
|
|
13041
|
+
[u, l, s] = await Promise.all([
|
|
13038
13042
|
on$1(),
|
|
13039
|
-
|
|
13040
|
-
|
|
13043
|
+
$t(),
|
|
13044
|
+
t2 ? an({
|
|
13041
13045
|
env: e2,
|
|
13042
|
-
kountAccountId:
|
|
13043
|
-
kountSessionId:
|
|
13046
|
+
kountAccountId: t2,
|
|
13047
|
+
kountSessionId: n2
|
|
13044
13048
|
}) : void 0
|
|
13045
13049
|
]);
|
|
13046
|
-
} catch (
|
|
13047
|
-
console.error(
|
|
13050
|
+
} catch (d2) {
|
|
13051
|
+
console.error(d2);
|
|
13048
13052
|
}
|
|
13049
13053
|
return {
|
|
13050
13054
|
riskMetadata: {
|
|
13051
|
-
fingerprint:
|
|
13055
|
+
fingerprint: l || null,
|
|
13052
13056
|
extraData: {
|
|
13053
|
-
kountFraudSessionId:
|
|
13057
|
+
kountFraudSessionId: s || null
|
|
13054
13058
|
},
|
|
13055
13059
|
browserData: {
|
|
13056
|
-
colorDepth:
|
|
13057
|
-
isJavaEnabled:
|
|
13058
|
-
language:
|
|
13059
|
-
screenHeight:
|
|
13060
|
-
screenWidth:
|
|
13060
|
+
colorDepth: a || null,
|
|
13061
|
+
isJavaEnabled: o2 ? o2.call(navigator) : null,
|
|
13062
|
+
language: c || null,
|
|
13063
|
+
screenHeight: i || null,
|
|
13064
|
+
screenWidth: r2 || null,
|
|
13061
13065
|
timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
|
|
13062
|
-
isAdBlockEnabled:
|
|
13066
|
+
isAdBlockEnabled: u
|
|
13063
13067
|
}
|
|
13064
13068
|
}
|
|
13065
13069
|
};
|
|
@@ -13068,15 +13072,11 @@ async function un({
|
|
|
13068
13072
|
env: e2 = null,
|
|
13069
13073
|
kountAccountId: t2 = null,
|
|
13070
13074
|
kountSessionId: n2 = null
|
|
13071
|
-
} = {}) {
|
|
13075
|
+
} = { env: null, kountAccountId: null }) {
|
|
13072
13076
|
return cn({
|
|
13073
13077
|
env: e2,
|
|
13074
|
-
screen,
|
|
13075
|
-
navigator,
|
|
13076
13078
|
kountAccountId: t2,
|
|
13077
|
-
kountSessionId: n2
|
|
13078
|
-
getFingerprint: $t,
|
|
13079
|
-
getFraudSessionId: an
|
|
13079
|
+
kountSessionId: n2
|
|
13080
13080
|
});
|
|
13081
13081
|
}
|
|
13082
13082
|
function getPaymentMethods() {
|
|
@@ -20995,8 +20995,8 @@ function getHEX$1(hex) {
|
|
|
20995
20995
|
const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
|
|
20996
20996
|
return getRGB$1([null, ...[r2, g, b2, a]]);
|
|
20997
20997
|
}
|
|
20998
|
-
function getHSL$1([,
|
|
20999
|
-
let hh =
|
|
20998
|
+
function getHSL$1([, h2, s, l, a = 1]) {
|
|
20999
|
+
let hh = h2;
|
|
21000
21000
|
if (hh.endsWith("turn")) {
|
|
21001
21001
|
hh = parseFloat(hh) * 360 / 1;
|
|
21002
21002
|
} else if (hh.endsWith("rad")) {
|
|
@@ -21037,7 +21037,7 @@ const parseCSSColor$1 = (str) => {
|
|
|
21037
21037
|
return null;
|
|
21038
21038
|
};
|
|
21039
21039
|
function hsl2rgb(hsl) {
|
|
21040
|
-
var
|
|
21040
|
+
var h2 = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val;
|
|
21041
21041
|
if (s == 0) {
|
|
21042
21042
|
val = l * 255;
|
|
21043
21043
|
return [val, val, val];
|
|
@@ -21049,7 +21049,7 @@ function hsl2rgb(hsl) {
|
|
|
21049
21049
|
t1 = 2 * l - t2;
|
|
21050
21050
|
rgb = [0, 0, 0];
|
|
21051
21051
|
for (var i = 0; i < 3; i++) {
|
|
21052
|
-
t3 =
|
|
21052
|
+
t3 = h2 + 1 / 3 * -(i - 1);
|
|
21053
21053
|
t3 < 0 && t3++;
|
|
21054
21054
|
t3 > 1 && t3--;
|
|
21055
21055
|
if (6 * t3 < 1)
|
|
@@ -21083,18 +21083,18 @@ function rgb2hex(rgb) {
|
|
|
21083
21083
|
var rgb2hex_1 = rgb2hex;
|
|
21084
21084
|
const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
|
|
21085
21085
|
function rgb2hsl(rgb) {
|
|
21086
|
-
var r2 = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g, b2), max = Math.max(r2, g, b2), delta = max - min,
|
|
21086
|
+
var r2 = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g, b2), max = Math.max(r2, g, b2), delta = max - min, h2, s, l;
|
|
21087
21087
|
if (max == min)
|
|
21088
|
-
|
|
21088
|
+
h2 = 0;
|
|
21089
21089
|
else if (r2 == max)
|
|
21090
|
-
|
|
21090
|
+
h2 = (g - b2) / delta;
|
|
21091
21091
|
else if (g == max)
|
|
21092
|
-
|
|
21092
|
+
h2 = 2 + (b2 - r2) / delta;
|
|
21093
21093
|
else if (b2 == max)
|
|
21094
|
-
|
|
21095
|
-
|
|
21096
|
-
if (
|
|
21097
|
-
|
|
21094
|
+
h2 = 4 + (r2 - g) / delta;
|
|
21095
|
+
h2 = Math.min(h2 * 60, 360);
|
|
21096
|
+
if (h2 < 0)
|
|
21097
|
+
h2 += 360;
|
|
21098
21098
|
l = (min + max) / 2;
|
|
21099
21099
|
if (max == min)
|
|
21100
21100
|
s = 0;
|
|
@@ -21102,7 +21102,7 @@ function rgb2hsl(rgb) {
|
|
|
21102
21102
|
s = delta / (max + min);
|
|
21103
21103
|
else
|
|
21104
21104
|
s = delta / (2 - max - min);
|
|
21105
|
-
return [
|
|
21105
|
+
return [h2, s * 100, l * 100];
|
|
21106
21106
|
}
|
|
21107
21107
|
var rgb2hsl_1 = rgb2hsl;
|
|
21108
21108
|
const rgb2hsl$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hsl_1);
|
|
@@ -21220,8 +21220,8 @@ function getHEX(hex) {
|
|
|
21220
21220
|
const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
|
|
21221
21221
|
return getRGB([null, ...[r2, g, b2, a]]);
|
|
21222
21222
|
}
|
|
21223
|
-
function getHSL([,
|
|
21224
|
-
let hh =
|
|
21223
|
+
function getHSL([, h2, s, l, a = 1]) {
|
|
21224
|
+
let hh = h2;
|
|
21225
21225
|
if (hh.endsWith("turn")) {
|
|
21226
21226
|
hh = parseFloat(hh) * 360 / 1;
|
|
21227
21227
|
} else if (hh.endsWith("rad")) {
|
|
@@ -21314,8 +21314,8 @@ class Values {
|
|
|
21314
21314
|
[this.rgb, this.alpha] = [[r2, g, b2], a];
|
|
21315
21315
|
return this;
|
|
21316
21316
|
}
|
|
21317
|
-
_setFromHSL([
|
|
21318
|
-
[this.rgb, this.alpha] = [hsl2rgb$1([
|
|
21317
|
+
_setFromHSL([h2, s, l, a]) {
|
|
21318
|
+
[this.rgb, this.alpha] = [hsl2rgb$1([h2, s, l]).map(Math.round), a];
|
|
21319
21319
|
return this;
|
|
21320
21320
|
}
|
|
21321
21321
|
}
|