@fileverse-dev/ddoc 1.7.4-patch → 1.7.4-patch-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +595 -595
- package/dist/index.umd.js +18 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -4,13 +4,13 @@ var wE = (t) => {
|
|
4
4
|
};
|
5
5
|
var k5 = (t, e, n) => e in t ? x5(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
6
6
|
var G = (t, e, n) => k5(t, typeof e != "symbol" ? e + "" : e, n), Sb = (t, e, n) => e.has(t) || wE("Cannot " + n);
|
7
|
-
var
|
7
|
+
var D = (t, e, n) => (Sb(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Q = (t, e, n) => e.has(t) ? wE("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (Sb(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), ce = (t, e, n) => (Sb(t, e, "access private method"), n);
|
8
8
|
var rd = (t, e, n, r) => ({
|
9
9
|
set _(s) {
|
10
10
|
P(t, e, s, n);
|
11
11
|
},
|
12
12
|
get _() {
|
13
|
-
return
|
13
|
+
return D(t, e, r);
|
14
14
|
}
|
15
15
|
});
|
16
16
|
import * as U from "react";
|
@@ -85,7 +85,7 @@ function _5() {
|
|
85
85
|
}
|
86
86
|
var A = !1, x = !1, k = !1, C = !1, O = !1, R;
|
87
87
|
R = Symbol.for("react.module.reference");
|
88
|
-
function
|
88
|
+
function T(j) {
|
89
89
|
return !!(typeof j == "string" || typeof j == "function" || j === r || j === i || O || j === s || j === u || j === c || C || j === h || A || x || k || typeof j == "object" && j !== null && (j.$$typeof === d || j.$$typeof === f || j.$$typeof === o || j.$$typeof === a || j.$$typeof === l || // This needs to include all possible module reference object
|
90
90
|
// types supported by any Flight configuration anywhere since
|
91
91
|
// we don't know which Flight build this will end up being used
|
@@ -597,7 +597,7 @@ Check the top-level render call using <` + ge + ">.");
|
|
597
597
|
var yE = {};
|
598
598
|
function bE(j, oe, ge, Ge, gt, At) {
|
599
599
|
{
|
600
|
-
var ut =
|
600
|
+
var ut = T(j);
|
601
601
|
if (!ut) {
|
602
602
|
var at = "";
|
603
603
|
(j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (at += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
@@ -8923,11 +8923,11 @@ const t9 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
8923
8923
|
function n9(t, e, n, r, s) {
|
8924
8924
|
let i = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
|
8925
8925
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
8926
|
-
let R = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null,
|
8927
|
-
if (
|
8926
|
+
let R = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, T = sx(t, R);
|
8927
|
+
if (T && !t.state.selection.eq(T)) {
|
8928
8928
|
if (Kn && xs && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (I) => I(t, Ja(13, "Enter"))))
|
8929
8929
|
return;
|
8930
|
-
let M = t.state.tr.setSelection(
|
8930
|
+
let M = t.state.tr.setSelection(T);
|
8931
8931
|
R == "pointer" ? M.setMeta("pointer", !0) : R == "key" && M.scrollIntoView(), i && M.setMeta("composition", i), t.dispatch(M);
|
8932
8932
|
}
|
8933
8933
|
return;
|
@@ -8948,8 +8948,8 @@ function n9(t, e, n, r, s) {
|
|
8948
8948
|
if (u.sel) {
|
8949
8949
|
let R = dC(t, t.state.doc, u.sel);
|
8950
8950
|
if (R && !R.eq(t.state.selection)) {
|
8951
|
-
let
|
8952
|
-
i &&
|
8951
|
+
let T = t.state.tr.setSelection(R);
|
8952
|
+
i && T.setMeta("composition", i), t.dispatch(T);
|
8953
8953
|
}
|
8954
8954
|
}
|
8955
8955
|
return;
|
@@ -8980,7 +8980,7 @@ function n9(t, e, n, r, s) {
|
|
8980
8980
|
k = t.state.tr, O.type == "add" ? k.addMark(A, x, O.mark) : k.removeMark(A, x, O.mark);
|
8981
8981
|
else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
8982
8982
|
let R = m.parent.textBetween(m.parentOffset, g.parentOffset);
|
8983
|
-
if (t.someProp("handleTextInput", (
|
8983
|
+
if (t.someProp("handleTextInput", (T) => T(t, A, x, R)))
|
8984
8984
|
return;
|
8985
8985
|
k = t.state.tr.insertText(R, A, x);
|
8986
8986
|
}
|
@@ -12883,11 +12883,11 @@ function OC(t) {
|
|
12883
12883
|
}
|
12884
12884
|
if (s === br || (s === yr || s === fs) && i === th) {
|
12885
12885
|
w = ds;
|
12886
|
-
var
|
12886
|
+
var T = f && k === x && x.visualViewport ? x.visualViewport.width : (
|
12887
12887
|
// $FlowFixMe[prop-missing]
|
12888
12888
|
k[O]
|
12889
12889
|
);
|
12890
|
-
h -=
|
12890
|
+
h -= T - r.width, h *= l ? 1 : -1;
|
12891
12891
|
}
|
12892
12892
|
}
|
12893
12893
|
var M = Object.assign({
|
@@ -13108,7 +13108,7 @@ function nh(t, e) {
|
|
13108
13108
|
element: w,
|
13109
13109
|
strategy: "absolute",
|
13110
13110
|
placement: s
|
13111
|
-
}), O = Qw(Object.assign({}, w, C)), R = d === ad ? O : k,
|
13111
|
+
}), O = Qw(Object.assign({}, w, C)), R = d === ad ? O : k, T = {
|
13112
13112
|
top: x.top - R.top + y.top,
|
13113
13113
|
bottom: R.bottom - x.bottom + y.bottom,
|
13114
13114
|
left: x.left - R.left + y.left,
|
@@ -13116,12 +13116,12 @@ function nh(t, e) {
|
|
13116
13116
|
}, M = t.modifiersData.offset;
|
13117
13117
|
if (d === ad && M) {
|
13118
13118
|
var I = M[s];
|
13119
|
-
Object.keys(
|
13119
|
+
Object.keys(T).forEach(function(B) {
|
13120
13120
|
var $ = [ds, fs].indexOf(B) >= 0 ? 1 : -1, L = [yr, fs].indexOf(B) >= 0 ? "y" : "x";
|
13121
|
-
|
13121
|
+
T[B] += I[L] * $;
|
13122
13122
|
});
|
13123
13123
|
}
|
13124
|
-
return
|
13124
|
+
return T;
|
13125
13125
|
}
|
13126
13126
|
function uU(t, e) {
|
13127
13127
|
e === void 0 && (e = {});
|
@@ -13161,8 +13161,8 @@ function fU(t) {
|
|
13161
13161
|
flipVariations: p,
|
13162
13162
|
allowedAutoPlacements: m
|
13163
13163
|
}) : He);
|
13164
|
-
}, []), x = e.rects.reference, k = e.rects.popper, C = /* @__PURE__ */ new Map(), O = !0, R = A[0],
|
13165
|
-
var M = A[
|
13164
|
+
}, []), x = e.rects.reference, k = e.rects.popper, C = /* @__PURE__ */ new Map(), O = !0, R = A[0], T = 0; T < A.length; T++) {
|
13165
|
+
var M = A[T], I = fi(M), B = gf(M) === hf, $ = [yr, fs].indexOf(I) >= 0, L = $ ? "width" : "height", V = nh(e, {
|
13166
13166
|
placement: M,
|
13167
13167
|
boundary: c,
|
13168
13168
|
rootBoundary: f,
|
@@ -13298,7 +13298,7 @@ function vU(t) {
|
|
13298
13298
|
altBoundary: c
|
13299
13299
|
}), y = fi(e.placement), v = gf(e.placement), w = !v, A = Cx(y), x = AU(A), k = e.modifiersData.popperOffsets, C = e.rects.reference, O = e.rects.popper, R = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
13300
13300
|
placement: e.placement
|
13301
|
-
})) : m,
|
13301
|
+
})) : m, T = typeof R == "number" ? {
|
13302
13302
|
mainAxis: R,
|
13303
13303
|
altAxis: R
|
13304
13304
|
} : Object.assign({
|
@@ -13313,11 +13313,11 @@ function vU(t) {
|
|
13313
13313
|
var B, $ = A === "y" ? yr : br, L = A === "y" ? fs : ds, V = A === "y" ? "height" : "width", q = k[A], ee = q + g[$], X = q - g[L], he = h ? -O[V] / 2 : 0, Ee = v === hf ? C[V] : O[V], Ne = v === hf ? -O[V] : -C[V], Ce = e.elements.arrow, xe = h && Ce ? Ex(Ce) : {
|
13314
13314
|
width: 0,
|
13315
13315
|
height: 0
|
13316
|
-
}, He = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : B_(), je = He[$], ze = He[L], Pe = Od(0, C[V], xe[V]), nt = w ? C[V] / 2 - he - Pe - je -
|
13316
|
+
}, He = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : B_(), je = He[$], ze = He[L], Pe = Od(0, C[V], xe[V]), nt = w ? C[V] / 2 - he - Pe - je - T.mainAxis : Ee - Pe - je - T.mainAxis, le = w ? -C[V] / 2 + he + Pe + ze + T.mainAxis : Ne + Pe + ze + T.mainAxis, $e = e.elements.arrow && fp(e.elements.arrow), ae = $e ? A === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, be = (B = M == null ? void 0 : M[A]) != null ? B : 0, Ie = q + nt - be - ae, H = q + le - be, K = Od(h ? Om(ee, Ie) : ee, q, h ? jl(X, H) : X);
|
13317
13317
|
k[A] = K, I[A] = K - q;
|
13318
13318
|
}
|
13319
13319
|
if (a) {
|
13320
|
-
var ne, ue = A === "x" ? yr : br, N = A === "x" ? fs : ds, b = k[x], E = x === "y" ? "height" : "width", _ = b + g[ue], F = b - g[N], W = [yr, br].indexOf(y) !== -1, J = (ne = M == null ? void 0 : M[x]) != null ? ne : 0, ye = W ? _ : b - C[E] - O[E] - J +
|
13320
|
+
var ne, ue = A === "x" ? yr : br, N = A === "x" ? fs : ds, b = k[x], E = x === "y" ? "height" : "width", _ = b + g[ue], F = b - g[N], W = [yr, br].indexOf(y) !== -1, J = (ne = M == null ? void 0 : M[x]) != null ? ne : 0, ye = W ? _ : b - C[E] - O[E] - J + T.altAxis, Se = W ? b + C[E] + O[E] - J - T.altAxis : F, Qe = h && W ? Gj(ye, b, Se) : Od(h ? ye : _, b, h ? Se : F);
|
13321
13321
|
k[x] = Qe, I[x] = Qe - b;
|
13322
13322
|
}
|
13323
13323
|
e.modifiersData[r] = I;
|
@@ -13462,8 +13462,8 @@ function _U(t) {
|
|
13462
13462
|
c.rects = {
|
13463
13463
|
reference: SU(v, fp(w), c.options.strategy === "fixed"),
|
13464
13464
|
popper: Ex(w)
|
13465
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
13466
|
-
return c.modifiersData[
|
13465
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(T) {
|
13466
|
+
return c.modifiersData[T.name] = Object.assign({}, T.data);
|
13467
13467
|
});
|
13468
13468
|
for (var A = 0; A < c.orderedModifiers.length; A++) {
|
13469
13469
|
if (c.reset === !0) {
|
@@ -13929,12 +13929,12 @@ function aV(t, e) {
|
|
13929
13929
|
}), k.addEventListener("mouseleave", function() {
|
13930
13930
|
A.props.interactive && A.props.trigger.indexOf("mouseenter") >= 0 && $().addEventListener("mousemove", p);
|
13931
13931
|
}), A;
|
13932
|
-
function
|
13932
|
+
function T() {
|
13933
13933
|
var Y = A.props.touch;
|
13934
13934
|
return Array.isArray(Y) ? Y : [Y, 0];
|
13935
13935
|
}
|
13936
13936
|
function M() {
|
13937
|
-
return
|
13937
|
+
return T()[0] === "hold";
|
13938
13938
|
}
|
13939
13939
|
function I() {
|
13940
13940
|
var Y;
|
@@ -14192,7 +14192,7 @@ function aV(t, e) {
|
|
14192
14192
|
}
|
14193
14193
|
function _(Y) {
|
14194
14194
|
A.clearDelayTimeouts(), Y && ee("onTrigger", [A, Y]), He();
|
14195
|
-
var te = V(!0), se =
|
14195
|
+
var te = V(!0), se = T(), Te = se[0], me = se[1];
|
14196
14196
|
ti.isTouch && Te === "hold" && me && (te = me), te ? r = setTimeout(function() {
|
14197
14197
|
A.show();
|
14198
14198
|
}, te) : A.show();
|
@@ -14651,17 +14651,17 @@ function gV() {
|
|
14651
14651
|
value: k,
|
14652
14652
|
getSnapshot: A
|
14653
14653
|
}
|
14654
|
-
}), R = O[0].inst,
|
14654
|
+
}), R = O[0].inst, T = O[1];
|
14655
14655
|
return l(function() {
|
14656
|
-
R.value = k, R.getSnapshot = A, h(R) &&
|
14656
|
+
R.value = k, R.getSnapshot = A, h(R) && T({
|
14657
14657
|
inst: R
|
14658
14658
|
});
|
14659
14659
|
}, [w, k, A]), a(function() {
|
14660
|
-
h(R) &&
|
14660
|
+
h(R) && T({
|
14661
14661
|
inst: R
|
14662
14662
|
});
|
14663
14663
|
var M = function() {
|
14664
|
-
h(R) &&
|
14664
|
+
h(R) && T({
|
14665
14665
|
inst: R
|
14666
14666
|
});
|
14667
14667
|
};
|
@@ -14780,12 +14780,12 @@ function bV() {
|
|
14780
14780
|
return V;
|
14781
14781
|
var q = h(I);
|
14782
14782
|
return p !== void 0 && p(V, q) ? V : (k = I, C = q, q);
|
14783
|
-
}, R = d === void 0 ? null : d,
|
14783
|
+
}, R = d === void 0 ? null : d, T = function() {
|
14784
14784
|
return O(f());
|
14785
14785
|
}, M = R === null ? void 0 : function() {
|
14786
14786
|
return O(R());
|
14787
14787
|
};
|
14788
|
-
return [
|
14788
|
+
return [T, M];
|
14789
14789
|
}, [f, d, h, p]), v = y[0], w = y[1], A = s(c, v, w);
|
14790
14790
|
return o(function() {
|
14791
14791
|
g.hasValue = !0, g.value = A;
|
@@ -16184,11 +16184,11 @@ var gH = "DismissableLayer", iA = "dismissableLayer.update", yH = "dismissableLa
|
|
16184
16184
|
onDismiss: a,
|
16185
16185
|
...l
|
16186
16186
|
} = t, u = U.useContext(yM), [c, f] = U.useState(null), d = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = U.useState({}), p = hs(e, (C) => f(C)), m = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(g), v = c ? m.indexOf(c) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, A = v >= y, x = vH((C) => {
|
16187
|
-
const O = C.target, R = [...u.branches].some((
|
16187
|
+
const O = C.target, R = [...u.branches].some((T) => T.contains(O));
|
16188
16188
|
!A || R || (s == null || s(C), o == null || o(C), C.defaultPrevented || a == null || a());
|
16189
16189
|
}, d), k = xH((C) => {
|
16190
16190
|
const O = C.target;
|
16191
|
-
[...u.branches].some((
|
16191
|
+
[...u.branches].some((T) => T.contains(O)) || (i == null || i(C), o == null || o(C), C.defaultPrevented || a == null || a());
|
16192
16192
|
}, d);
|
16193
16193
|
return mH((C) => {
|
16194
16194
|
v === u.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && a && (C.preventDefault(), a()));
|
@@ -17641,20 +17641,20 @@ function Hz({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
17641
17641
|
]);
|
17642
17642
|
function g({ draggedDistance: w, closeDrawer: A, velocity: x, dismissible: k }) {
|
17643
17643
|
if (i === void 0) return;
|
17644
|
-
const C = a === "bottom" || a === "right" ? (p ?? 0) - w : (p ?? 0) + w, O = d === i - 1, R = d === 0,
|
17644
|
+
const C = a === "bottom" || a === "right" ? (p ?? 0) - w : (p ?? 0) + w, O = d === i - 1, R = d === 0, T = w > 0;
|
17645
17645
|
if (O && Ot(s.current, {
|
17646
17646
|
transition: `opacity ${vt.DURATION}s cubic-bezier(${vt.EASE.join(",")})`
|
17647
|
-
}), x > 2 && !
|
17647
|
+
}), x > 2 && !T) {
|
17648
17648
|
k ? A() : m(h[0]);
|
17649
17649
|
return;
|
17650
17650
|
}
|
17651
|
-
if (x > 2 &&
|
17651
|
+
if (x > 2 && T && h && n) {
|
17652
17652
|
m(h[n.length - 1]);
|
17653
17653
|
return;
|
17654
17654
|
}
|
17655
17655
|
const M = h == null ? void 0 : h.reduce((B, $) => typeof B != "number" || typeof $ != "number" ? B : Math.abs($ - C) < Math.abs(B - C) ? $ : B), I = Zt(a) ? window.innerHeight : window.innerWidth;
|
17656
17656
|
if (x > rN && Math.abs(w) < I * 0.4) {
|
17657
|
-
const B =
|
17657
|
+
const B = T ? 1 : -1;
|
17658
17658
|
if (B > 0 && c) {
|
17659
17659
|
m(h[n.length - 1]);
|
17660
17660
|
return;
|
@@ -17697,7 +17697,7 @@ function Hz({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
17697
17697
|
const zz = 0.25, $z = 100, pS = 8, Ha = 16, mS = 26, a1 = "vaul-dragging";
|
17698
17698
|
function iN({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, onDrag: s, onRelease: i, snapPoints: o, nested: a = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = zz, scrollLockTimeout: c = $z, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint: p, setActiveSnapPoint: m, fixed: g, modal: y = !0, onClose: v, noBodyStyles: w, direction: A = "bottom", preventScrollRestoration: x = !0, disablePreventScroll: k = !1 }) {
|
17699
17699
|
var C;
|
17700
|
-
const [O = !1, R] = re.useState(!1), [
|
17700
|
+
const [O = !1, R] = re.useState(!1), [T, M] = re.useState(!1), [I, B] = re.useState(!1), [$, L] = re.useState(!1), [V, q] = re.useState(!1), [ee, X] = re.useState(!1), he = re.useRef(null), Ee = re.useRef(null), Ne = re.useRef(null), Ce = re.useRef(null), xe = re.useRef(null), He = re.useRef(!1), je = re.useRef(null), ze = re.useRef(0), Pe = re.useRef(!1), nt = re.useRef(0), le = re.useRef(null), $e = re.useRef(((C = le.current) == null ? void 0 : C.getBoundingClientRect().height) || 0), ae = re.useRef(0), be = re.useCallback((te) => {
|
17701
17701
|
o && te === ue.length - 1 && (Ee.current = /* @__PURE__ */ new Date());
|
17702
17702
|
}, []), { activeSnapPoint: Ie, activeSnapPointIndex: H, setActiveSnapPoint: K, onRelease: ne, snapPointsOffset: ue, onDrag: N, shouldFade: b, getPercentageDragged: E } = Hz({
|
17703
17703
|
snapPoints: o,
|
@@ -17710,13 +17710,13 @@ function iN({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
17710
17710
|
direction: A
|
17711
17711
|
});
|
17712
17712
|
Nz({
|
17713
|
-
isDisabled: !O || V || !y || ee || !
|
17713
|
+
isDisabled: !O || V || !y || ee || !T || k
|
17714
17714
|
});
|
17715
17715
|
const { restorePositionSetting: _ } = Fz({
|
17716
17716
|
isOpen: O,
|
17717
17717
|
modal: y,
|
17718
17718
|
nested: a,
|
17719
|
-
hasBeenOpened:
|
17719
|
+
hasBeenOpened: T,
|
17720
17720
|
preventScrollRestoration: x,
|
17721
17721
|
noBodyStyles: w
|
17722
17722
|
});
|
@@ -18114,13 +18114,13 @@ const aN = /* @__PURE__ */ re.forwardRef(function({ children: t, ...e }, n) {
|
|
18114
18114
|
});
|
18115
18115
|
aN.displayName = "Drawer.Overlay";
|
18116
18116
|
const lN = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: t, onPointerDownOutside: e, onAnimationEnd: n, style: r, ...s }, i) {
|
18117
|
-
const { drawerRef: o, onPress: a, onRelease: l, onDrag: u, dismissible: c, keyboardIsOpen: f, snapPointsOffset: d, visible: h, closeDrawer: p, modal: m, openProp: g, onOpenChange: y, setVisible: v, handleOnly: w, direction: A } = By(), x = tN(i, o), k = re.useRef(null), C = re.useRef(!1), O = (R,
|
18117
|
+
const { drawerRef: o, onPress: a, onRelease: l, onDrag: u, dismissible: c, keyboardIsOpen: f, snapPointsOffset: d, visible: h, closeDrawer: p, modal: m, openProp: g, onOpenChange: y, setVisible: v, handleOnly: w, direction: A } = By(), x = tN(i, o), k = re.useRef(null), C = re.useRef(!1), O = (R, T, M = 0) => {
|
18118
18118
|
if (C.current) return !0;
|
18119
18119
|
const I = Math.abs(R.y), B = Math.abs(R.x), $ = B > I, L = [
|
18120
18120
|
"bottom",
|
18121
18121
|
"right"
|
18122
|
-
].includes(
|
18123
|
-
if (
|
18122
|
+
].includes(T) ? 1 : -1;
|
18123
|
+
if (T === "left" || T === "right") {
|
18124
18124
|
if (!(R.x * L < 0) && B >= 0 && B <= M)
|
18125
18125
|
return $;
|
18126
18126
|
} else if (!(R.y * L < 0) && I >= 0 && I <= M)
|
@@ -18143,8 +18143,8 @@ const lN = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: t, onPointe
|
|
18143
18143
|
if (t)
|
18144
18144
|
t(R);
|
18145
18145
|
else {
|
18146
|
-
var
|
18147
|
-
R.preventDefault(), (
|
18146
|
+
var T;
|
18147
|
+
R.preventDefault(), (T = o.current) == null || T.focus();
|
18148
18148
|
}
|
18149
18149
|
},
|
18150
18150
|
onPointerDown: (R) => {
|
@@ -18174,11 +18174,11 @@ const lN = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: t, onPointe
|
|
18174
18174
|
},
|
18175
18175
|
onPointerMove: (R) => {
|
18176
18176
|
if (w || (s.onPointerMove == null || s.onPointerMove.call(s, R), !k.current)) return;
|
18177
|
-
const
|
18177
|
+
const T = R.clientY - k.current.y, M = R.clientX - k.current.x, I = R.pointerType === "touch" ? 10 : 2;
|
18178
18178
|
O({
|
18179
18179
|
x: M,
|
18180
|
-
y:
|
18181
|
-
}, A, I) ? u(R) : (Math.abs(M) > I || Math.abs(
|
18180
|
+
y: T
|
18181
|
+
}, A, I) ? u(R) : (Math.abs(M) > I || Math.abs(T) > I) && (k.current = null);
|
18182
18182
|
},
|
18183
18183
|
onPointerUp: (R) => {
|
18184
18184
|
s.onPointerUp == null || s.onPointerUp.call(s, R), k.current = null, C.current = !1, l(R);
|
@@ -18641,7 +18641,7 @@ function u$(t, e, n, r, s, i, o, a, l, u, c, f, d, h, p, m, g, y, v) {
|
|
18641
18641
|
direction: A
|
18642
18642
|
} = t, x = ["INPUT", "SELECT", "TEXTAREA"], k = {
|
18643
18643
|
passive: !1
|
18644
|
-
}, C = ah(), O = ah(), R = Zl(50, 225).constrain(h.measure(20)),
|
18644
|
+
}, C = ah(), O = ah(), R = Zl(50, 225).constrain(h.measure(20)), T = {
|
18645
18645
|
mouse: 300,
|
18646
18646
|
touch: 400
|
18647
18647
|
}, M = {
|
@@ -18671,7 +18671,7 @@ function u$(t, e, n, r, s, i, o, a, l, u, c, f, d, h, p, m, g, y, v) {
|
|
18671
18671
|
return x.includes(be);
|
18672
18672
|
}
|
18673
18673
|
function xe() {
|
18674
|
-
return (p ? M :
|
18674
|
+
return (p ? M : T)[X ? "mouse" : "touch"];
|
18675
18675
|
}
|
18676
18676
|
function He(ae, be) {
|
18677
18677
|
const Ie = f.add(t2(ae) * -1), H = c.byDistance(ae, !p).distance;
|
@@ -19122,10 +19122,10 @@ function vN(t, e) {
|
|
19122
19122
|
function C$(t, e, n, r, s, i, o, a, l) {
|
19123
19123
|
const c = ih(s), f = ih(s).reverse(), d = y().concat(v());
|
19124
19124
|
function h(C, O) {
|
19125
|
-
return C.reduce((R,
|
19125
|
+
return C.reduce((R, T) => R - s[T], O);
|
19126
19126
|
}
|
19127
19127
|
function p(C, O) {
|
19128
|
-
return C.reduce((R,
|
19128
|
+
return C.reduce((R, T) => h(R, O) > 0 ? R.concat([T]) : R, []);
|
19129
19129
|
}
|
19130
19130
|
function m(C) {
|
19131
19131
|
return i.map((O, R) => ({
|
@@ -19134,9 +19134,9 @@ function C$(t, e, n, r, s, i, o, a, l) {
|
|
19134
19134
|
}));
|
19135
19135
|
}
|
19136
19136
|
function g(C, O, R) {
|
19137
|
-
const
|
19137
|
+
const T = m(O);
|
19138
19138
|
return C.map((M) => {
|
19139
|
-
const I = R ? 0 : -n, B = R ? n : 0, $ = R ? "end" : "start", L =
|
19139
|
+
const I = R ? 0 : -n, B = R ? n : 0, $ = R ? "end" : "start", L = T[M][$];
|
19140
19140
|
return {
|
19141
19141
|
index: M,
|
19142
19142
|
loopPoint: L,
|
@@ -19167,9 +19167,9 @@ function C$(t, e, n, r, s, i, o, a, l) {
|
|
19167
19167
|
const {
|
19168
19168
|
target: O,
|
19169
19169
|
translate: R,
|
19170
|
-
slideLocation:
|
19170
|
+
slideLocation: T
|
19171
19171
|
} = C, M = O();
|
19172
|
-
M !==
|
19172
|
+
M !== T.get() && (R.to(M), T.set(M));
|
19173
19173
|
});
|
19174
19174
|
}
|
19175
19175
|
function x() {
|
@@ -19284,7 +19284,7 @@ function O$(t, e, n, r, s, i, o, a, l) {
|
|
19284
19284
|
}
|
19285
19285
|
function p(y) {
|
19286
19286
|
return y.length ? ih(y).reduce((v, w, A) => {
|
19287
|
-
const x = Ss(v) || 0, k = x === 0, C = w === yp(y), O = s[u] - i[x][u], R = s[u] - i[w][c],
|
19287
|
+
const x = Ss(v) || 0, k = x === 0, C = w === yp(y), O = s[u] - i[x][u], R = s[u] - i[w][c], T = !r && k ? f(o) : 0, M = !r && C ? f(a) : 0, I = Mt(R - M - (O + T));
|
19288
19288
|
return A && I > e + l && v.push(w), C && v.push(y.length), v;
|
19289
19289
|
}, []).map((v, w, A) => {
|
19290
19290
|
const x = Math.max(A[w - 1] || 0);
|
@@ -19315,15 +19315,15 @@ function R$(t, e, n, r, s, i, o) {
|
|
19315
19315
|
watchResize: w,
|
19316
19316
|
watchSlides: A,
|
19317
19317
|
watchDrag: x
|
19318
|
-
} = i, k = 2, C = f$(), O = C.measure(e), R = n.map(C.measure),
|
19318
|
+
} = i, k = 2, C = f$(), O = C.measure(e), R = n.map(C.measure), T = l$(l, u), M = T.measureSize(O), I = d$(M), B = o$(a, M), $ = !f && !!v, L = f || !!v, {
|
19319
19319
|
slideSizes: V,
|
19320
19320
|
slideSizesWithGaps: q,
|
19321
19321
|
startGap: ee,
|
19322
19322
|
endGap: X
|
19323
|
-
} = D$(
|
19323
|
+
} = D$(T, O, R, n, L, s), he = O$(T, M, g, f, O, R, ee, X, k), {
|
19324
19324
|
snaps: Ee,
|
19325
19325
|
snapsAligned: Ne
|
19326
|
-
} = A$(
|
19326
|
+
} = A$(T, B, O, R, he), Ce = -Ss(Ee) + Ss(q), {
|
19327
19327
|
snapsContained: xe,
|
19328
19328
|
scrollContainLimit: He
|
19329
19329
|
} = g$(M, Ce, Ne, v, k), je = $ ? xe : Ne, {
|
@@ -19363,8 +19363,8 @@ function R$(t, e, n, r, s, i, o) {
|
|
19363
19363
|
containerRect: O,
|
19364
19364
|
slideRects: R,
|
19365
19365
|
animation: be,
|
19366
|
-
axis:
|
19367
|
-
dragHandler: u$(
|
19366
|
+
axis: T,
|
19367
|
+
dragHandler: u$(T, t, r, s, ue, c$(T, s), K, be, E, N, b, Pe, o, I, h, p, y, Ie, x),
|
19368
19368
|
eventStore: F,
|
19369
19369
|
percentOfView: I,
|
19370
19370
|
index: Pe,
|
@@ -19373,7 +19373,7 @@ function R$(t, e, n, r, s, i, o) {
|
|
19373
19373
|
location: K,
|
19374
19374
|
offsetLocation: ne,
|
19375
19375
|
options: i,
|
19376
|
-
resizeHandler: h$(e, o, s, n,
|
19376
|
+
resizeHandler: h$(e, o, s, n, T, w, C),
|
19377
19377
|
scrollBody: N,
|
19378
19378
|
scrollBounds: m$(ze, ne, ue, N, I),
|
19379
19379
|
scrollLooper: b$(Ce, ze, ne, [K, ne, ue]),
|
@@ -19382,7 +19382,7 @@ function R$(t, e, n, r, s, i, o) {
|
|
19382
19382
|
scrollSnaps: je,
|
19383
19383
|
scrollTarget: b,
|
19384
19384
|
scrollTo: E,
|
19385
|
-
slideLooper: C$(
|
19385
|
+
slideLooper: C$(T, M, Ce, V, q, Ee, je, ne, n),
|
19386
19386
|
slideFocus: ye,
|
19387
19387
|
slidesHandler: S$(e, o, A),
|
19388
19388
|
slidesInView: W,
|
@@ -19390,7 +19390,7 @@ function R$(t, e, n, r, s, i, o) {
|
|
19390
19390
|
slideRegistry: J,
|
19391
19391
|
slidesToScroll: he,
|
19392
19392
|
target: ue,
|
19393
|
-
translate: vN(
|
19393
|
+
translate: vN(T, e)
|
19394
19394
|
};
|
19395
19395
|
return Se;
|
19396
19396
|
}
|
@@ -19508,14 +19508,14 @@ function Pm(t, e, n) {
|
|
19508
19508
|
}
|
19509
19509
|
return ae;
|
19510
19510
|
}
|
19511
|
-
function
|
19511
|
+
function T($e, ae) {
|
19512
19512
|
g || (v = u(v, $e), w = c(v), A = ae || A, O(), y = R(w), f([v, ...A.map(({
|
19513
19513
|
options: be
|
19514
19514
|
}) => be)]).forEach((be) => a.add(be, "change", M)), w.active && (y.translate.to(y.location.get()), y.animation.init(), y.slidesInView.init(), y.slideFocus.init(), y.eventHandler.init(le), y.resizeHandler.init(le), y.slidesHandler.init(le), y.options.loop && y.slideLooper.loop(), k.offsetParent && C.length && y.dragHandler.init(le), x = o.init(le, A)));
|
19515
19515
|
}
|
19516
19516
|
function M($e, ae) {
|
19517
19517
|
const be = Ee();
|
19518
|
-
I(),
|
19518
|
+
I(), T(u({
|
19519
19519
|
startIndex: be
|
19520
19520
|
}, $e), ae), l.emit("reInit");
|
19521
19521
|
}
|
@@ -19598,7 +19598,7 @@ function Pm(t, e, n) {
|
|
19598
19598
|
slidesInView: Ce,
|
19599
19599
|
slidesNotInView: xe
|
19600
19600
|
};
|
19601
|
-
return
|
19601
|
+
return T(e, n), setTimeout(() => l.emit("init"), 0), le;
|
19602
19602
|
}
|
19603
19603
|
Pm.globalOptions = void 0;
|
19604
19604
|
function r2(t = {}, e = []) {
|
@@ -27845,9 +27845,9 @@ var K6 = { exports: {} };
|
|
27845
27845
|
return 3 * (x + k) / 4 - k;
|
27846
27846
|
}
|
27847
27847
|
function c(A) {
|
27848
|
-
var x, k, C = l(A), O = C[0], R = C[1],
|
27849
|
-
for (k = 0; k < I; k += 4) x = m[A.charCodeAt(k)] << 18 | m[A.charCodeAt(k + 1)] << 12 | m[A.charCodeAt(k + 2)] << 6 | m[A.charCodeAt(k + 3)],
|
27850
|
-
return R === 2 && (x = m[A.charCodeAt(k)] << 2 | m[A.charCodeAt(k + 1)] >> 4,
|
27848
|
+
var x, k, C = l(A), O = C[0], R = C[1], T = new g(u(A, O, R)), M = 0, I = 0 < R ? O - 4 : O;
|
27849
|
+
for (k = 0; k < I; k += 4) x = m[A.charCodeAt(k)] << 18 | m[A.charCodeAt(k + 1)] << 12 | m[A.charCodeAt(k + 2)] << 6 | m[A.charCodeAt(k + 3)], T[M++] = 255 & x >> 16, T[M++] = 255 & x >> 8, T[M++] = 255 & x;
|
27850
|
+
return R === 2 && (x = m[A.charCodeAt(k)] << 2 | m[A.charCodeAt(k + 1)] >> 4, T[M++] = 255 & x), R === 1 && (x = m[A.charCodeAt(k)] << 10 | m[A.charCodeAt(k + 1)] << 4 | m[A.charCodeAt(k + 2)] >> 2, T[M++] = 255 & x >> 8, T[M++] = 255 & x), T;
|
27851
27851
|
}
|
27852
27852
|
function f(A) {
|
27853
27853
|
return p[63 & A >> 18] + p[63 & A >> 12] + p[63 & A >> 6] + p[63 & A];
|
@@ -27857,7 +27857,7 @@ var K6 = { exports: {} };
|
|
27857
27857
|
return O.join("");
|
27858
27858
|
}
|
27859
27859
|
function h(A) {
|
27860
|
-
for (var x, k = A.length, C = k % 3, O = [], R = 16383,
|
27860
|
+
for (var x, k = A.length, C = k % 3, O = [], R = 16383, T = 0, M = k - C; T < M; T += R) O.push(d(A, T, T + R > M ? M : T + R));
|
27861
27861
|
return C === 1 ? (x = A[k - 1], O.push(p[x >> 2] + p[63 & x << 4] + "==")) : C === 2 && (x = (A[k - 2] << 8) + A[k - 1], O.push(p[x >> 10] + p[63 & x >> 4] + p[63 & x << 2] + "=")), O.join("");
|
27862
27862
|
}
|
27863
27863
|
a.byteLength = function(A) {
|
@@ -28024,7 +28024,7 @@ var K6 = { exports: {} };
|
|
28024
28024
|
}
|
28025
28025
|
return -1;
|
28026
28026
|
}
|
28027
|
-
function
|
28027
|
+
function T(b, E, _, F) {
|
28028
28028
|
_ = +_ || 0;
|
28029
28029
|
var W = b.length - _;
|
28030
28030
|
F ? (F = +F, F > W && (F = W)) : F = W;
|
@@ -28294,7 +28294,7 @@ var K6 = { exports: {} };
|
|
28294
28294
|
F || (F = "utf8");
|
28295
28295
|
for (var J = !1; ; ) switch (F) {
|
28296
28296
|
case "hex":
|
28297
|
-
return
|
28297
|
+
return T(this, b, E, _);
|
28298
28298
|
case "utf8":
|
28299
28299
|
case "utf-8":
|
28300
28300
|
return M(this, b, E, _);
|
@@ -28588,110 +28588,110 @@ var K6 = { exports: {} };
|
|
28588
28588
|
}
|
28589
28589
|
};
|
28590
28590
|
}, {}], 7: [function(i, o) {
|
28591
|
-
function a(
|
28592
|
-
console && console.warn && console.warn(
|
28591
|
+
function a(T) {
|
28592
|
+
console && console.warn && console.warn(T);
|
28593
28593
|
}
|
28594
28594
|
function l() {
|
28595
28595
|
l.init.call(this);
|
28596
28596
|
}
|
28597
|
-
function u(
|
28598
|
-
if (typeof
|
28597
|
+
function u(T) {
|
28598
|
+
if (typeof T != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof T);
|
28599
28599
|
}
|
28600
|
-
function c(
|
28601
|
-
return
|
28600
|
+
function c(T) {
|
28601
|
+
return T._maxListeners === void 0 ? l.defaultMaxListeners : T._maxListeners;
|
28602
28602
|
}
|
28603
|
-
function f(
|
28603
|
+
function f(T, M, I, B) {
|
28604
28604
|
var $, L, V;
|
28605
|
-
if (u(I), L =
|
28606
|
-
else if (typeof V == "function" ? V = L[M] = B ? [I, V] : [V, I] : B ? V.unshift(I) : V.push(I), $ = c(
|
28605
|
+
if (u(I), L = T._events, L === void 0 ? (L = T._events = /* @__PURE__ */ Object.create(null), T._eventsCount = 0) : (L.newListener !== void 0 && (T.emit("newListener", M, I.listener ? I.listener : I), L = T._events), V = L[M]), V === void 0) V = L[M] = I, ++T._eventsCount;
|
28606
|
+
else if (typeof V == "function" ? V = L[M] = B ? [I, V] : [V, I] : B ? V.unshift(I) : V.push(I), $ = c(T), 0 < $ && V.length > $ && !V.warned) {
|
28607
28607
|
V.warned = !0;
|
28608
28608
|
var q = new Error("Possible EventEmitter memory leak detected. " + V.length + " " + (M + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
28609
|
-
q.name = "MaxListenersExceededWarning", q.emitter =
|
28609
|
+
q.name = "MaxListenersExceededWarning", q.emitter = T, q.type = M, q.count = V.length, a(q);
|
28610
28610
|
}
|
28611
|
-
return
|
28611
|
+
return T;
|
28612
28612
|
}
|
28613
28613
|
function d() {
|
28614
28614
|
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
28615
28615
|
}
|
28616
|
-
function h(
|
28617
|
-
var B = { fired: !1, wrapFn: void 0, target:
|
28616
|
+
function h(T, M, I) {
|
28617
|
+
var B = { fired: !1, wrapFn: void 0, target: T, type: M, listener: I }, $ = d.bind(B);
|
28618
28618
|
return $.listener = I, B.wrapFn = $, $;
|
28619
28619
|
}
|
28620
|
-
function p(
|
28621
|
-
var B =
|
28620
|
+
function p(T, M, I) {
|
28621
|
+
var B = T._events;
|
28622
28622
|
if (B === void 0) return [];
|
28623
28623
|
var $ = B[M];
|
28624
28624
|
return $ === void 0 ? [] : typeof $ == "function" ? I ? [$.listener || $] : [$] : I ? v($) : g($, $.length);
|
28625
28625
|
}
|
28626
|
-
function m(
|
28626
|
+
function m(T) {
|
28627
28627
|
var M = this._events;
|
28628
28628
|
if (M !== void 0) {
|
28629
|
-
var I = M[
|
28629
|
+
var I = M[T];
|
28630
28630
|
if (typeof I == "function") return 1;
|
28631
28631
|
if (I !== void 0) return I.length;
|
28632
28632
|
}
|
28633
28633
|
return 0;
|
28634
28634
|
}
|
28635
|
-
function g(
|
28636
|
-
for (var I = Array(M), B = 0; B < M; ++B) I[B] =
|
28635
|
+
function g(T, M) {
|
28636
|
+
for (var I = Array(M), B = 0; B < M; ++B) I[B] = T[B];
|
28637
28637
|
return I;
|
28638
28638
|
}
|
28639
|
-
function y(
|
28640
|
-
for (; M + 1 <
|
28641
|
-
|
28639
|
+
function y(T, M) {
|
28640
|
+
for (; M + 1 < T.length; M++) T[M] = T[M + 1];
|
28641
|
+
T.pop();
|
28642
28642
|
}
|
28643
|
-
function v(
|
28644
|
-
for (var M = Array(
|
28643
|
+
function v(T) {
|
28644
|
+
for (var M = Array(T.length), I = 0; I < M.length; ++I) M[I] = T[I].listener || T[I];
|
28645
28645
|
return M;
|
28646
28646
|
}
|
28647
|
-
function w(
|
28648
|
-
typeof
|
28647
|
+
function w(T, M, I) {
|
28648
|
+
typeof T.on == "function" && A(T, "error", M, I);
|
28649
28649
|
}
|
28650
|
-
function A(
|
28651
|
-
if (typeof
|
28652
|
-
else if (typeof
|
28653
|
-
B.once &&
|
28650
|
+
function A(T, M, I, B) {
|
28651
|
+
if (typeof T.on == "function") B.once ? T.once(M, I) : T.on(M, I);
|
28652
|
+
else if (typeof T.addEventListener == "function") T.addEventListener(M, function $(L) {
|
28653
|
+
B.once && T.removeEventListener(M, $), I(L);
|
28654
28654
|
});
|
28655
|
-
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
28655
|
+
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof T);
|
28656
28656
|
}
|
28657
|
-
var x, k = typeof Reflect == "object" ? Reflect : null, C = k && typeof k.apply == "function" ? k.apply : function(
|
28658
|
-
return Function.prototype.apply.call(
|
28657
|
+
var x, k = typeof Reflect == "object" ? Reflect : null, C = k && typeof k.apply == "function" ? k.apply : function(T, M, I) {
|
28658
|
+
return Function.prototype.apply.call(T, M, I);
|
28659
28659
|
};
|
28660
|
-
x = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(
|
28661
|
-
return Object.getOwnPropertyNames(
|
28662
|
-
} : function(
|
28663
|
-
return Object.getOwnPropertyNames(
|
28660
|
+
x = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(T) {
|
28661
|
+
return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T));
|
28662
|
+
} : function(T) {
|
28663
|
+
return Object.getOwnPropertyNames(T);
|
28664
28664
|
};
|
28665
|
-
var O = Number.isNaN || function(
|
28666
|
-
return
|
28665
|
+
var O = Number.isNaN || function(T) {
|
28666
|
+
return T !== T;
|
28667
28667
|
};
|
28668
|
-
o.exports = l, o.exports.once = function(
|
28668
|
+
o.exports = l, o.exports.once = function(T, M) {
|
28669
28669
|
return new Promise(function(I, B) {
|
28670
28670
|
function $(V) {
|
28671
|
-
|
28671
|
+
T.removeListener(M, L), B(V);
|
28672
28672
|
}
|
28673
28673
|
function L() {
|
28674
|
-
typeof
|
28674
|
+
typeof T.removeListener == "function" && T.removeListener("error", $), I([].slice.call(arguments));
|
28675
28675
|
}
|
28676
|
-
A(
|
28676
|
+
A(T, M, L, { once: !0 }), M !== "error" && w(T, $, { once: !0 });
|
28677
28677
|
});
|
28678
28678
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
28679
28679
|
var R = 10;
|
28680
28680
|
Object.defineProperty(l, "defaultMaxListeners", { enumerable: !0, get: function() {
|
28681
28681
|
return R;
|
28682
|
-
}, set: function(
|
28683
|
-
if (typeof
|
28684
|
-
R =
|
28682
|
+
}, set: function(T) {
|
28683
|
+
if (typeof T != "number" || 0 > T || O(T)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + T + ".");
|
28684
|
+
R = T;
|
28685
28685
|
} }), l.init = function() {
|
28686
28686
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
28687
|
-
}, l.prototype.setMaxListeners = function(
|
28688
|
-
if (typeof
|
28689
|
-
return this._maxListeners =
|
28687
|
+
}, l.prototype.setMaxListeners = function(T) {
|
28688
|
+
if (typeof T != "number" || 0 > T || O(T)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + T + ".");
|
28689
|
+
return this._maxListeners = T, this;
|
28690
28690
|
}, l.prototype.getMaxListeners = function() {
|
28691
28691
|
return c(this);
|
28692
|
-
}, l.prototype.emit = function(
|
28692
|
+
}, l.prototype.emit = function(T) {
|
28693
28693
|
for (var M = [], I = 1; I < arguments.length; I++) M.push(arguments[I]);
|
28694
|
-
var B =
|
28694
|
+
var B = T === "error", $ = this._events;
|
28695
28695
|
if ($ !== void 0) B = B && $.error === void 0;
|
28696
28696
|
else if (!B) return !1;
|
28697
28697
|
if (B) {
|
@@ -28700,51 +28700,51 @@ var K6 = { exports: {} };
|
|
28700
28700
|
var V = new Error("Unhandled error." + (L ? " (" + L.message + ")" : ""));
|
28701
28701
|
throw V.context = L, V;
|
28702
28702
|
}
|
28703
|
-
var q = $[
|
28703
|
+
var q = $[T];
|
28704
28704
|
if (q === void 0) return !1;
|
28705
28705
|
if (typeof q == "function") C(q, this, M);
|
28706
28706
|
else for (var ee = q.length, X = g(q, ee), I = 0; I < ee; ++I) C(X[I], this, M);
|
28707
28707
|
return !0;
|
28708
|
-
}, l.prototype.addListener = function(
|
28709
|
-
return f(this,
|
28710
|
-
}, l.prototype.on = l.prototype.addListener, l.prototype.prependListener = function(
|
28711
|
-
return f(this,
|
28712
|
-
}, l.prototype.once = function(
|
28713
|
-
return u(M), this.on(
|
28714
|
-
}, l.prototype.prependOnceListener = function(
|
28715
|
-
return u(M), this.prependListener(
|
28716
|
-
}, l.prototype.removeListener = function(
|
28708
|
+
}, l.prototype.addListener = function(T, M) {
|
28709
|
+
return f(this, T, M, !1);
|
28710
|
+
}, l.prototype.on = l.prototype.addListener, l.prototype.prependListener = function(T, M) {
|
28711
|
+
return f(this, T, M, !0);
|
28712
|
+
}, l.prototype.once = function(T, M) {
|
28713
|
+
return u(M), this.on(T, h(this, T, M)), this;
|
28714
|
+
}, l.prototype.prependOnceListener = function(T, M) {
|
28715
|
+
return u(M), this.prependListener(T, h(this, T, M)), this;
|
28716
|
+
}, l.prototype.removeListener = function(T, M) {
|
28717
28717
|
var I, B, $, L, V;
|
28718
28718
|
if (u(M), B = this._events, B === void 0) return this;
|
28719
|
-
if (I = B[
|
28720
|
-
if (I === M || I.listener === M) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[
|
28719
|
+
if (I = B[T], I === void 0) return this;
|
28720
|
+
if (I === M || I.listener === M) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[T], B.removeListener && this.emit("removeListener", T, I.listener || M));
|
28721
28721
|
else if (typeof I != "function") {
|
28722
28722
|
for ($ = -1, L = I.length - 1; 0 <= L; L--) if (I[L] === M || I[L].listener === M) {
|
28723
28723
|
V = I[L].listener, $ = L;
|
28724
28724
|
break;
|
28725
28725
|
}
|
28726
28726
|
if (0 > $) return this;
|
28727
|
-
$ === 0 ? I.shift() : y(I, $), I.length === 1 && (B[
|
28727
|
+
$ === 0 ? I.shift() : y(I, $), I.length === 1 && (B[T] = I[0]), B.removeListener !== void 0 && this.emit("removeListener", T, V || M);
|
28728
28728
|
}
|
28729
28729
|
return this;
|
28730
|
-
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(
|
28730
|
+
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(T) {
|
28731
28731
|
var M, I, B;
|
28732
28732
|
if (I = this._events, I === void 0) return this;
|
28733
|
-
if (I.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : I[
|
28733
|
+
if (I.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : I[T] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete I[T]), this;
|
28734
28734
|
if (arguments.length === 0) {
|
28735
28735
|
var $, L = Object.keys(I);
|
28736
28736
|
for (B = 0; B < L.length; ++B) $ = L[B], $ !== "removeListener" && this.removeAllListeners($);
|
28737
28737
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
28738
28738
|
}
|
28739
|
-
if (M = I[
|
28740
|
-
else if (M !== void 0) for (B = M.length - 1; 0 <= B; B--) this.removeListener(
|
28739
|
+
if (M = I[T], typeof M == "function") this.removeListener(T, M);
|
28740
|
+
else if (M !== void 0) for (B = M.length - 1; 0 <= B; B--) this.removeListener(T, M[B]);
|
28741
28741
|
return this;
|
28742
|
-
}, l.prototype.listeners = function(
|
28743
|
-
return p(this,
|
28744
|
-
}, l.prototype.rawListeners = function(
|
28745
|
-
return p(this,
|
28746
|
-
}, l.listenerCount = function(
|
28747
|
-
return typeof
|
28742
|
+
}, l.prototype.listeners = function(T) {
|
28743
|
+
return p(this, T, !0);
|
28744
|
+
}, l.prototype.rawListeners = function(T) {
|
28745
|
+
return p(this, T, !1);
|
28746
|
+
}, l.listenerCount = function(T, M) {
|
28747
|
+
return typeof T.listenerCount == "function" ? T.listenerCount(M) : m.call(T, M);
|
28748
28748
|
}, l.prototype.listenerCount = m, l.prototype.eventNames = function() {
|
28749
28749
|
return 0 < this._eventsCount ? x(this._events) : [];
|
28750
28750
|
};
|
@@ -29108,7 +29108,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29108
29108
|
var b = N._readableState;
|
29109
29109
|
b.readableListening = 0 < N.listenerCount("readable"), b.resumeScheduled && !b.paused ? b.flowing = !0 : 0 < N.listenerCount("data") && N.resume();
|
29110
29110
|
}
|
29111
|
-
function
|
29111
|
+
function T(N) {
|
29112
29112
|
X("readable nexttick read 0"), N.read(0);
|
29113
29113
|
}
|
29114
29114
|
function M(N, b) {
|
@@ -29243,7 +29243,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29243
29243
|
return J === -1 ? this : (b.pipes.splice(J, 1), b.pipesCount -= 1, b.pipesCount === 1 && (b.pipes = b.pipes[0]), N.emit("unpipe", this, E), this);
|
29244
29244
|
}, h.prototype.on = function(N, b) {
|
29245
29245
|
var E = Ee.prototype.on.call(this, N, b), _ = this._readableState;
|
29246
|
-
return N === "data" ? (_.readableListening = 0 < this.listenerCount("readable"), _.flowing !== !1 && this.resume()) : N == "readable" && !_.endEmitted && !_.readableListening && (_.readableListening = _.needReadable = !0, _.flowing = !1, _.emittedReadable = !1, X("on readable", _.length, _.reading), _.length ? A(this) : !_.reading && a.nextTick(
|
29246
|
+
return N === "data" ? (_.readableListening = 0 < this.listenerCount("readable"), _.flowing !== !1 && this.resume()) : N == "readable" && !_.endEmitted && !_.readableListening && (_.readableListening = _.needReadable = !0, _.flowing = !1, _.emittedReadable = !1, X("on readable", _.length, _.reading), _.length ? A(this) : !_.reading && a.nextTick(T, this)), E;
|
29247
29247
|
}, h.prototype.addListener = h.prototype.on, h.prototype.removeListener = function(N, b) {
|
29248
29248
|
var E = Ee.prototype.removeListener.call(this, N, b);
|
29249
29249
|
return N === "readable" && a.nextTick(R, this), E;
|
@@ -29407,7 +29407,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29407
29407
|
if (typeof N != "function") throw new ze();
|
29408
29408
|
if (x(ne), K) A(H, ne, ue, K, N);
|
29409
29409
|
else {
|
29410
|
-
var b =
|
29410
|
+
var b = T(ne) || H.destroyed;
|
29411
29411
|
b || ne.corked || ne.bufferProcessing || !ne.bufferedRequest || R(H, ne), ue ? a.nextTick(C, H, ne, b, N) : C(H, ne, b, N);
|
29412
29412
|
}
|
29413
29413
|
}
|
@@ -29434,7 +29434,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29434
29434
|
}
|
29435
29435
|
K.bufferedRequest = ne, K.bufferProcessing = !1;
|
29436
29436
|
}
|
29437
|
-
function
|
29437
|
+
function T(H) {
|
29438
29438
|
return H.ending && H.length === 0 && H.bufferedRequest === null && !H.finished && !H.writing;
|
29439
29439
|
}
|
29440
29440
|
function M(H, K) {
|
@@ -29446,7 +29446,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29446
29446
|
K.prefinished || K.finalCalled || (typeof H._final != "function" || K.destroyed ? (K.prefinished = !0, H.emit("prefinish")) : (K.pendingcb++, K.finalCalled = !0, a.nextTick(M, H, K)));
|
29447
29447
|
}
|
29448
29448
|
function B(H, K) {
|
29449
|
-
var ne =
|
29449
|
+
var ne = T(K);
|
29450
29450
|
if (ne && (I(H, K), K.pendingcb === 0 && (K.finished = !0, H.emit("finish"), K.autoDestroy))) {
|
29451
29451
|
var ue = H._readableState;
|
29452
29452
|
(!ue || ue.autoDestroy && ue.endEmitted) && H.destroy();
|
@@ -29521,8 +29521,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29521
29521
|
}, { "../errors": 15, "./_stream_duplex": 16, "./internal/streams/destroy": 23, "./internal/streams/state": 27, "./internal/streams/stream": 28, _process: 12, buffer: 3, inherits: 10, "util-deprecate": 32 }], 21: [function(i, o) {
|
29522
29522
|
(function(a) {
|
29523
29523
|
(function() {
|
29524
|
-
function l(O, R,
|
29525
|
-
return R in O ? Object.defineProperty(O, R, { value:
|
29524
|
+
function l(O, R, T) {
|
29525
|
+
return R in O ? Object.defineProperty(O, R, { value: T, enumerable: !0, configurable: !0, writable: !0 }) : O[R] = T, O;
|
29526
29526
|
}
|
29527
29527
|
function u(O, R) {
|
29528
29528
|
return { value: O, done: R };
|
@@ -29530,17 +29530,17 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29530
29530
|
function c(O) {
|
29531
29531
|
var R = O[m];
|
29532
29532
|
if (R !== null) {
|
29533
|
-
var
|
29534
|
-
|
29533
|
+
var T = O[x].read();
|
29534
|
+
T !== null && (O[w] = null, O[m] = null, O[g] = null, R(u(T, !1)));
|
29535
29535
|
}
|
29536
29536
|
}
|
29537
29537
|
function f(O) {
|
29538
29538
|
a.nextTick(c, O);
|
29539
29539
|
}
|
29540
29540
|
function d(O, R) {
|
29541
|
-
return function(
|
29541
|
+
return function(T, M) {
|
29542
29542
|
O.then(function() {
|
29543
|
-
return R[v] ? void
|
29543
|
+
return R[v] ? void T(u(void 0, !0)) : void R[A](T, M);
|
29544
29544
|
}, M);
|
29545
29545
|
};
|
29546
29546
|
}
|
@@ -29556,37 +29556,37 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29556
29556
|
O[y] ? $(O[y]) : B(u(void 0, !0));
|
29557
29557
|
});
|
29558
29558
|
});
|
29559
|
-
var
|
29560
|
-
if (M)
|
29559
|
+
var T, M = this[w];
|
29560
|
+
if (M) T = new Promise(d(M, this));
|
29561
29561
|
else {
|
29562
29562
|
var I = this[x].read();
|
29563
29563
|
if (I !== null) return Promise.resolve(u(I, !1));
|
29564
|
-
|
29564
|
+
T = new Promise(this[A]);
|
29565
29565
|
}
|
29566
|
-
return this[w] =
|
29566
|
+
return this[w] = T, T;
|
29567
29567
|
} }, l(h, Symbol.asyncIterator, function() {
|
29568
29568
|
return this;
|
29569
29569
|
}), l(h, "return", function() {
|
29570
29570
|
var O = this;
|
29571
|
-
return new Promise(function(R,
|
29571
|
+
return new Promise(function(R, T) {
|
29572
29572
|
O[x].destroy(null, function(M) {
|
29573
|
-
return M ? void
|
29573
|
+
return M ? void T(M) : void R(u(void 0, !0));
|
29574
29574
|
});
|
29575
29575
|
});
|
29576
29576
|
}), h), k);
|
29577
29577
|
o.exports = function(O) {
|
29578
|
-
var R,
|
29579
|
-
var B =
|
29580
|
-
B ? (
|
29578
|
+
var R, T = Object.create(C, (R = {}, l(R, x, { value: O, writable: !0 }), l(R, m, { value: null, writable: !0 }), l(R, g, { value: null, writable: !0 }), l(R, y, { value: null, writable: !0 }), l(R, v, { value: O._readableState.endEmitted, writable: !0 }), l(R, A, { value: function(M, I) {
|
29579
|
+
var B = T[x].read();
|
29580
|
+
B ? (T[w] = null, T[m] = null, T[g] = null, M(u(B, !1))) : (T[m] = M, T[g] = I);
|
29581
29581
|
}, writable: !0 }), R));
|
29582
|
-
return
|
29582
|
+
return T[w] = null, p(O, function(M) {
|
29583
29583
|
if (M && M.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
29584
|
-
var I =
|
29585
|
-
return I !== null && (
|
29584
|
+
var I = T[g];
|
29585
|
+
return I !== null && (T[w] = null, T[m] = null, T[g] = null, I(M)), void (T[y] = M);
|
29586
29586
|
}
|
29587
|
-
var B =
|
29588
|
-
B !== null && (
|
29589
|
-
}), O.on("readable", f.bind(null,
|
29587
|
+
var B = T[m];
|
29588
|
+
B !== null && (T[w] = null, T[m] = null, T[g] = null, B(u(void 0, !0))), T[v] = !0;
|
29589
|
+
}), O.on("readable", f.bind(null, T)), T;
|
29590
29590
|
};
|
29591
29591
|
}).call(this);
|
29592
29592
|
}).call(this, i("_process"));
|
@@ -29790,9 +29790,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29790
29790
|
var x = h(w);
|
29791
29791
|
if (Array.isArray(w[0]) && (w = w[0]), 2 > w.length) throw new g("streams");
|
29792
29792
|
var k, C = w.map(function(O, R) {
|
29793
|
-
var
|
29794
|
-
return c(O,
|
29795
|
-
k || (k = M), M && C.forEach(f),
|
29793
|
+
var T = R < w.length - 1;
|
29794
|
+
return c(O, T, 0 < R, function(M) {
|
29795
|
+
k || (k = M), M && C.forEach(f), T || (C.forEach(f), x(k));
|
29796
29796
|
});
|
29797
29797
|
});
|
29798
29798
|
return w.reduce(d);
|
@@ -29891,10 +29891,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29891
29891
|
return 127 >= C ? 0 : C >> 5 == 6 ? 2 : C >> 4 == 14 ? 3 : C >> 3 == 30 ? 4 : C >> 6 == 2 ? -1 : -2;
|
29892
29892
|
}
|
29893
29893
|
function d(C, O, R) {
|
29894
|
-
var
|
29895
|
-
if (
|
29896
|
-
var M = f(O[
|
29897
|
-
return 0 <= M ? (0 < M && (C.lastNeed = M - 1), M) : --
|
29894
|
+
var T = O.length - 1;
|
29895
|
+
if (T < R) return 0;
|
29896
|
+
var M = f(O[T]);
|
29897
|
+
return 0 <= M ? (0 < M && (C.lastNeed = M - 1), M) : --T < R || M === -2 ? 0 : (M = f(O[T]), 0 <= M ? (0 < M && (C.lastNeed = M - 2), M) : --T < R || M === -2 ? 0 : (M = f(O[T]), 0 <= M ? (0 < M && (M === 2 ? M = 0 : C.lastNeed = M - 3), M) : 0));
|
29898
29898
|
}
|
29899
29899
|
function h(C, O) {
|
29900
29900
|
if ((192 & O[0]) != 128) return C.lastNeed = 0, "�";
|
@@ -29911,8 +29911,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29911
29911
|
if ((C.length - O) % 2 == 0) {
|
29912
29912
|
var R = C.toString("utf16le", O);
|
29913
29913
|
if (R) {
|
29914
|
-
var
|
29915
|
-
if (55296 <=
|
29914
|
+
var T = R.charCodeAt(R.length - 1);
|
29915
|
+
if (55296 <= T && 56319 >= T) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = C[C.length - 2], this.lastChar[1] = C[C.length - 1], R.slice(0, -1);
|
29916
29916
|
}
|
29917
29917
|
return R;
|
29918
29918
|
}
|
@@ -29973,8 +29973,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29973
29973
|
var R = d(this, C, O);
|
29974
29974
|
if (!this.lastNeed) return C.toString("utf8", O);
|
29975
29975
|
this.lastTotal = R;
|
29976
|
-
var
|
29977
|
-
return C.copy(this.lastChar, 0,
|
29976
|
+
var T = C.length - (R - this.lastNeed);
|
29977
|
+
return C.copy(this.lastChar, 0, T), C.toString("utf8", O, T);
|
29978
29978
|
}, c.prototype.fillLast = function(C) {
|
29979
29979
|
return this.lastNeed <= C.length ? (C.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (C.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, C.length), void (this.lastNeed -= C.length));
|
29980
29980
|
};
|
@@ -30303,7 +30303,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
30303
30303
|
x.forEach((M) => {
|
30304
30304
|
(M.type === "remotecandidate" || M.type === "remote-candidate") && (k[M.id] = M), (M.type === "localcandidate" || M.type === "local-candidate") && (C[M.id] = M), (M.type === "candidatepair" || M.type === "candidate-pair") && (O[M.id] = M);
|
30305
30305
|
});
|
30306
|
-
const
|
30306
|
+
const T = (M) => {
|
30307
30307
|
R = !0;
|
30308
30308
|
let I = C[M.localCandidateId];
|
30309
30309
|
I && (I.ip || I.address) ? (this.localAddress = I.ip || I.address, this.localPort = +I.port) : I && I.ipAddress ? (this.localAddress = I.ipAddress, this.localPort = +I.portNumber) : typeof M.googLocalAddress == "string" && (I = M.googLocalAddress.split(":"), this.localAddress = I[0], this.localPort = +I[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
|
@@ -30311,7 +30311,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
30311
30311
|
B && (B.ip || B.address) ? (this.remoteAddress = B.ip || B.address, this.remotePort = +B.port) : B && B.ipAddress ? (this.remoteAddress = B.ipAddress, this.remotePort = +B.portNumber) : typeof M.googRemoteAddress == "string" && (B = M.googRemoteAddress.split(":"), this.remoteAddress = B[0], this.remotePort = +B[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
|
30312
30312
|
};
|
30313
30313
|
if (x.forEach((M) => {
|
30314
|
-
M.type === "transport" && M.selectedCandidatePairId &&
|
30314
|
+
M.type === "transport" && M.selectedCandidatePairId && T(O[M.selectedCandidatePairId]), (M.type === "googCandidatePair" && M.googActiveConnection === "true" || (M.type === "candidatepair" || M.type === "candidate-pair") && M.selected) && T(M);
|
30315
30315
|
}), !R && (!Object.keys(O).length || Object.keys(C).length)) return void setTimeout(w, 100);
|
30316
30316
|
if (this._connecting = !1, this._connected = !0, this._chunk) {
|
30317
30317
|
try {
|
@@ -34043,7 +34043,7 @@ function HQ(t) {
|
|
34043
34043
|
Ze(A, e.numeric, x);
|
34044
34044
|
const k = Wr(c0), C = Wr();
|
34045
34045
|
Ze(k, n, k), Ze(k, r, C), Ze(C, n, k), Ze(C, r, C), de(w, Gs, k), de(x, Gs, k);
|
34046
|
-
const O = de(l, Ho), R = de(u, Ho),
|
34046
|
+
const O = de(l, Ho), R = de(u, Ho), T = de(R, Gs), M = de(T, Gs);
|
34047
34047
|
Ze(l, e.domain, a), de(l, zs, v), de(l, $s, y), Ze(u, e.domain, a), de(u, zs, v), de(u, $s, y), Ze(O, e.domain, k), de(O, Gs, k), Ze(M, e.domain, k), Ze(M, n, k), de(M, Gs, k);
|
34048
34048
|
const I = [
|
34049
34049
|
[Bd, Fd],
|
@@ -34785,7 +34785,7 @@ const S4 = ({
|
|
34785
34785
|
setTimeout(() => {
|
34786
34786
|
k(V, Math.abs(L)), Nu = $;
|
34787
34787
|
});
|
34788
|
-
}, [O, R] = tt(), [
|
34788
|
+
}, [O, R] = tt(), [T, M] = tt();
|
34789
34789
|
Ye(() => {
|
34790
34790
|
i(t.attrs["media-type"]), m(), R(t.attrs.dataFloat), M(t.attrs.dataAlign);
|
34791
34791
|
}, [t.attrs]);
|
@@ -34810,7 +34810,7 @@ const S4 = ({
|
|
34810
34810
|
className: pe(
|
34811
34811
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
34812
34812
|
O && `f-${t.attrs.dataFloat}`,
|
34813
|
-
|
34813
|
+
T && `justify-${t.attrs.dataAlign}`
|
34814
34814
|
),
|
34815
34815
|
children: /* @__PURE__ */ S.jsxs("div", { className: "w-fit flex relative group transition-all ease-in-out", children: [
|
34816
34816
|
s === "img" && /* @__PURE__ */ S.jsx(
|
@@ -35534,7 +35534,7 @@ const _J = (t) => ({
|
|
35534
35534
|
}, h = K2(s), p = W2(h), m = await o.getDimensions(u), g = h === "y", y = g ? "top" : "left", v = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", A = i.reference[p] + i.reference[h] - d[h] - i.floating[p], x = d[h] - i.reference[h], k = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
|
35535
35535
|
let C = k ? k[w] : 0;
|
35536
35536
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(k))) && (C = a.floating[w] || i.floating[p]);
|
35537
|
-
const O = A / 2 - x / 2, R = C / 2 - m[p] / 2 - 1,
|
35537
|
+
const O = A / 2 - x / 2, R = C / 2 - m[p] / 2 - 1, T = li(f[y], R), M = li(f[v], R), I = T, B = C - m[p] - M, $ = C / 2 - m[p] / 2 + O, L = UA(I, $, B), V = !l.arrow && qf(s) != null && $ !== L && i.reference[p] / 2 - ($ < I ? T : M) - m[p] / 2 < 0, q = V ? $ < I ? $ - I : $ - B : 0;
|
35538
35538
|
return {
|
35539
35539
|
[h]: d[h] + q,
|
35540
35540
|
data: {
|
@@ -35583,7 +35583,7 @@ const _J = (t) => ({
|
|
35583
35583
|
placement: s,
|
35584
35584
|
overflows: C
|
35585
35585
|
}], !C.every((I) => I <= 0)) {
|
35586
|
-
var R,
|
35586
|
+
var R, T;
|
35587
35587
|
const I = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1, B = x[I];
|
35588
35588
|
if (B)
|
35589
35589
|
return {
|
@@ -35595,7 +35595,7 @@ const _J = (t) => ({
|
|
35595
35595
|
placement: B
|
35596
35596
|
}
|
35597
35597
|
};
|
35598
|
-
let $ = (
|
35598
|
+
let $ = (T = O.filter((L) => L.overflows[0] <= 0).sort((L, V) => L.overflows[1] - V.overflows[1])[0]) == null ? void 0 : T.placement;
|
35599
35599
|
if (!$)
|
35600
35600
|
switch (h) {
|
35601
35601
|
case "bestFit": {
|
@@ -35839,8 +35839,8 @@ const IJ = function(t) {
|
|
35839
35839
|
const g = h - l.top - l.bottom, y = d - l.left - l.right, v = li(h - l[p], g), w = li(d - l[m], y), A = !e.middlewareData.shift;
|
35840
35840
|
let x = v, k = w;
|
35841
35841
|
if (f ? k = c || A ? li(w, y) : y : x = c || A ? li(v, g) : g, A && !c) {
|
35842
|
-
const O = Mr(l.left, 0), R = Mr(l.right, 0),
|
35843
|
-
f ? k = d - 2 * (O !== 0 || R !== 0 ? O + R : Mr(l.left, l.right)) : x = h - 2 * (
|
35842
|
+
const O = Mr(l.left, 0), R = Mr(l.right, 0), T = Mr(l.top, 0), M = Mr(l.bottom, 0);
|
35843
|
+
f ? k = d - 2 * (O !== 0 || R !== 0 ? O + R : Mr(l.left, l.right)) : x = h - 2 * (T !== 0 || M !== 0 ? T + M : Mr(l.top, l.bottom));
|
35844
35844
|
}
|
35845
35845
|
await o({
|
35846
35846
|
...e,
|
@@ -36382,7 +36382,7 @@ function fY(t) {
|
|
36382
36382
|
q !== k.current && (k.current = q, m(q));
|
36383
36383
|
}, []), w = U.useCallback((q) => {
|
36384
36384
|
q !== C.current && (C.current = q, y(q));
|
36385
|
-
}, []), A = i || p, x = o || g, k = U.useRef(null), C = U.useRef(null), O = U.useRef(c), R = l != null,
|
36385
|
+
}, []), A = i || p, x = o || g, k = U.useRef(null), C = U.useRef(null), O = U.useRef(c), R = l != null, T = MT(l), M = MT(s), I = U.useCallback(() => {
|
36386
36386
|
if (!k.current || !C.current)
|
36387
36387
|
return;
|
36388
36388
|
const q = {
|
@@ -36411,11 +36411,11 @@ function fY(t) {
|
|
36411
36411
|
B.current = !1;
|
36412
36412
|
}), []), X0(() => {
|
36413
36413
|
if (A && (k.current = A), x && (C.current = x), A && x) {
|
36414
|
-
if (
|
36415
|
-
return
|
36414
|
+
if (T.current)
|
36415
|
+
return T.current(A, x, I);
|
36416
36416
|
I();
|
36417
36417
|
}
|
36418
|
-
}, [A, x, I,
|
36418
|
+
}, [A, x, I, T, R]);
|
36419
36419
|
const $ = U.useMemo(() => ({
|
36420
36420
|
reference: k,
|
36421
36421
|
floating: C,
|
@@ -36567,8 +36567,8 @@ var Z2 = "PopperContent", [EY, CY] = F4(Z2), $4 = U.forwardRef(
|
|
36567
36567
|
updatePositionStrategy: h = "optimized",
|
36568
36568
|
onPlaced: p,
|
36569
36569
|
...m
|
36570
|
-
} = t, g = U4(Z2, n), [y, v] = U.useState(null), w = hs(e, (be) => v(be)), [A, x] = U.useState(null), k = xY(A), C = (k == null ? void 0 : k.width) ?? 0, O = (k == null ? void 0 : k.height) ?? 0, R = r + (i !== "center" ? "-" + i : ""),
|
36571
|
-
padding:
|
36570
|
+
} = t, g = U4(Z2, n), [y, v] = U.useState(null), w = hs(e, (be) => v(be)), [A, x] = U.useState(null), k = xY(A), C = (k == null ? void 0 : k.width) ?? 0, O = (k == null ? void 0 : k.height) ?? 0, R = r + (i !== "center" ? "-" + i : ""), T = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, M = Array.isArray(u) ? u : [u], I = M.length > 0, B = {
|
36571
|
+
padding: T,
|
36572
36572
|
boundary: M.filter(TY),
|
36573
36573
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
36574
36574
|
altBoundary: I
|
@@ -36986,19 +36986,19 @@ const h0 = ({
|
|
36986
36986
|
const { content: R } = t.content;
|
36987
36987
|
return R[0].type.name === "table";
|
36988
36988
|
}, [t.content]), c = oi(() => {
|
36989
|
-
var
|
36989
|
+
var T;
|
36990
36990
|
const { content: R } = t.content;
|
36991
|
-
return (
|
36991
|
+
return (T = R[0].content.content[0]) == null ? void 0 : T.text;
|
36992
36992
|
}, [t.content]), f = oi(() => {
|
36993
|
-
var
|
36993
|
+
var T;
|
36994
36994
|
const { content: R } = t.content;
|
36995
|
-
return (
|
36995
|
+
return (T = R[0].content.content[1]) == null ? void 0 : T.text;
|
36996
36996
|
}, [t.content]), d = oi(() => {
|
36997
36997
|
const { content: R } = t.content;
|
36998
36998
|
return R[0].content.content.find(
|
36999
|
-
(
|
36999
|
+
(T) => {
|
37000
37000
|
var M;
|
37001
|
-
return (M =
|
37001
|
+
return (M = T == null ? void 0 : T.text) == null ? void 0 : M.match(/\/status\/([0-9]*)/);
|
37002
37002
|
}
|
37003
37003
|
);
|
37004
37004
|
}, [t.content]), h = () => {
|
@@ -37026,17 +37026,17 @@ const h0 = ({
|
|
37026
37026
|
default:
|
37027
37027
|
return;
|
37028
37028
|
}
|
37029
|
-
const
|
37030
|
-
R && (n == null || n.chain().focus(I).deleteRange({ from: I === 0 ? I : I + 1, to: B }).setIframe({ src: R, width:
|
37029
|
+
const T = 640, M = 360, I = e(), B = I + t.nodeSize;
|
37030
|
+
R && (n == null || n.chain().focus(I).deleteRange({ from: I === 0 ? I : I + 1, to: B }).setIframe({ src: R, width: T, height: M }).run());
|
37031
37031
|
}, p = (R) => {
|
37032
|
-
const
|
37033
|
-
return
|
37032
|
+
const T = R.match(/\/status\/([0-9]*)/);
|
37033
|
+
return T && T.length > 0 ? T[1] : null;
|
37034
37034
|
}, m = () => {
|
37035
37035
|
if (!c)
|
37036
37036
|
return;
|
37037
37037
|
let R = c;
|
37038
|
-
const
|
37039
|
-
|
37038
|
+
const T = l.some(($) => c.includes($)), M = p(c);
|
37039
|
+
T && M ? R = M : d && (R = p(d.text));
|
37040
37040
|
const I = e(), B = I + t.nodeSize;
|
37041
37041
|
R && (n == null || n.chain().focus(I).deleteRange({ from: I === 2 ? I : I + 1, to: B }).setTweetEmbed({ tweetId: R }).run());
|
37042
37042
|
}, g = () => {
|
@@ -39052,16 +39052,16 @@ function XX(t) {
|
|
39052
39052
|
container: WT(),
|
39053
39053
|
renders: 1
|
39054
39054
|
};
|
39055
|
-
}),
|
39055
|
+
}), T = Object.assign({
|
39056
39056
|
ignoreAttributes: d
|
39057
39057
|
}, h, {
|
39058
39058
|
content: R.container
|
39059
39059
|
});
|
39060
39060
|
p && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function($) {
|
39061
|
-
|
39062
|
-
}),
|
39063
|
-
var M =
|
39064
|
-
a && (M = Object.assign({},
|
39061
|
+
T[$] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + $ + "` prop in", "controlled mode (`visible` prop)"].join(" "));
|
39062
|
+
}), T.trigger = "manual", T.hideOnClick = !1), m && (c = !0);
|
39063
|
+
var M = T, I = T.plugins || [];
|
39064
|
+
a && (M = Object.assign({}, T, {
|
39065
39065
|
plugins: m && o.data != null ? [].concat(I, [{
|
39066
39066
|
fn: function() {
|
39067
39067
|
return {
|
@@ -39086,7 +39086,7 @@ function XX(t) {
|
|
39086
39086
|
var $ = l;
|
39087
39087
|
l && l.hasOwnProperty("current") && ($ = l.current);
|
39088
39088
|
var L = t($ || R.ref || WT(), Object.assign({}, M, {
|
39089
|
-
plugins: [YX].concat(
|
39089
|
+
plugins: [YX].concat(T.plugins || [])
|
39090
39090
|
}));
|
39091
39091
|
return R.instance = L, c && L.disable(), i && L.show(), m && o.hook({
|
39092
39092
|
instance: L,
|
@@ -41341,8 +41341,8 @@ function Dee(t, e, n, r) {
|
|
41341
41341
|
a = t.push("list_item_open", "li", 1), a.markup = String.fromCharCode(p);
|
41342
41342
|
const R = [l, 0];
|
41343
41343
|
a.map = R, f && (a.info = t.src.slice(o, h - 1));
|
41344
|
-
const
|
41345
|
-
if (t.listIndent = t.blkIndent, t.blkIndent = O, t.tight = !0, t.tShift[l] = k - t.bMarks[l], t.sCount[l] = x, k >= s && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || y) && (u = !1), y = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = B, t.tShift[l] = M, t.sCount[l] = I, t.tight =
|
41344
|
+
const T = t.tight, M = t.tShift[l], I = t.sCount[l], B = t.listIndent;
|
41345
|
+
if (t.listIndent = t.blkIndent, t.blkIndent = O, t.tight = !0, t.tShift[l] = k - t.bMarks[l], t.sCount[l] = x, k >= s && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || y) && (u = !1), y = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = B, t.tShift[l] = M, t.sCount[l] = I, t.tight = T, a = t.push("list_item_close", "li", -1), a.markup = String.fromCharCode(p), l = t.line, R[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
|
41346
41346
|
break;
|
41347
41347
|
let $ = !1;
|
41348
41348
|
for (let L = 0, V = v.length; L < V; L++)
|
@@ -41376,8 +41376,8 @@ function Oee(t, e, n, r) {
|
|
41376
41376
|
const C = t.md.block.ruler.getRules("reference"), O = t.parentType;
|
41377
41377
|
t.parentType = "reference";
|
41378
41378
|
let R = !1;
|
41379
|
-
for (let
|
41380
|
-
if (C[
|
41379
|
+
for (let T = 0, M = C.length; T < M; T++)
|
41380
|
+
if (C[T](t, v, w, !0)) {
|
41381
41381
|
R = !0;
|
41382
41382
|
break;
|
41383
41383
|
}
|
@@ -44866,7 +44866,7 @@ class t8 {
|
|
44866
44866
|
* Unregister the triggered listener for future events.
|
44867
44867
|
*/
|
44868
44868
|
async removeListener() {
|
44869
|
-
|
44869
|
+
D(this, wc) != null && await this.emitter.off(this.filter, D(this, wc));
|
44870
44870
|
}
|
44871
44871
|
}
|
44872
44872
|
wc = new WeakMap();
|
@@ -45051,9 +45051,9 @@ class Vre {
|
|
45051
45051
|
Q(this, fl);
|
45052
45052
|
Q(this, Go);
|
45053
45053
|
P(this, fl, []), P(this, Go, !1), o8.set(e, () => {
|
45054
|
-
if (!
|
45054
|
+
if (!D(this, Go)) {
|
45055
45055
|
P(this, Go, !0);
|
45056
|
-
for (const n of
|
45056
|
+
for (const n of D(this, fl))
|
45057
45057
|
setTimeout(() => {
|
45058
45058
|
n();
|
45059
45059
|
}, 0);
|
@@ -45062,12 +45062,12 @@ class Vre {
|
|
45062
45062
|
});
|
45063
45063
|
}
|
45064
45064
|
addListener(e) {
|
45065
|
-
Z(!
|
45065
|
+
Z(!D(this, Go), "singal already cancelled", "UNSUPPORTED_OPERATION", {
|
45066
45066
|
operation: "fetchCancelSignal.addCancelListener"
|
45067
|
-
}),
|
45067
|
+
}), D(this, fl).push(e);
|
45068
45068
|
}
|
45069
45069
|
get cancelled() {
|
45070
|
-
return
|
45070
|
+
return D(this, Go);
|
45071
45071
|
}
|
45072
45072
|
checkSignal() {
|
45073
45073
|
Z(!this.cancelled, "cancelled", "CANCELLED", {});
|
@@ -45114,7 +45114,7 @@ const oy = class oy {
|
|
45114
45114
|
* The fetch URL to request.
|
45115
45115
|
*/
|
45116
45116
|
get url() {
|
45117
|
-
return
|
45117
|
+
return D(this, kc);
|
45118
45118
|
}
|
45119
45119
|
set url(e) {
|
45120
45120
|
P(this, kc, String(e));
|
@@ -45139,7 +45139,7 @@ const oy = class oy {
|
|
45139
45139
|
* set to ``application/json``.
|
45140
45140
|
*/
|
45141
45141
|
get body() {
|
45142
|
-
return
|
45142
|
+
return D(this, cn) == null ? null : new Uint8Array(D(this, cn));
|
45143
45143
|
}
|
45144
45144
|
set body(e) {
|
45145
45145
|
if (e == null)
|
@@ -45157,7 +45157,7 @@ const oy = class oy {
|
|
45157
45157
|
* Returns true if the request has a body.
|
45158
45158
|
*/
|
45159
45159
|
hasBody() {
|
45160
|
-
return
|
45160
|
+
return D(this, cn) != null;
|
45161
45161
|
}
|
45162
45162
|
/**
|
45163
45163
|
* The HTTP method to use when requesting the URI. If no method
|
@@ -45165,7 +45165,7 @@ const oy = class oy {
|
|
45165
45165
|
* null and ``POST`` otherwise.
|
45166
45166
|
*/
|
45167
45167
|
get method() {
|
45168
|
-
return
|
45168
|
+
return D(this, Fi) ? D(this, Fi) : this.hasBody() ? "POST" : "GET";
|
45169
45169
|
}
|
45170
45170
|
set method(e) {
|
45171
45171
|
e == null && (e = ""), P(this, Fi, String(e).toUpperCase());
|
@@ -45180,8 +45180,8 @@ const oy = class oy {
|
|
45180
45180
|
* To set a header entry, use the ``setHeader`` method.
|
45181
45181
|
*/
|
45182
45182
|
get headers() {
|
45183
|
-
const e = Object.assign({},
|
45184
|
-
return
|
45183
|
+
const e = Object.assign({}, D(this, ys));
|
45184
|
+
return D(this, ji) && (e.authorization = `Basic ${_re(io(D(this, ji)))}`), this.allowGzip && (e["accept-encoding"] = "gzip"), e["content-type"] == null && D(this, Dr) && (e["content-type"] = D(this, Dr)), this.body && (e["content-length"] = String(this.body.length)), e;
|
45185
45185
|
}
|
45186
45186
|
/**
|
45187
45187
|
* Get the header for %%key%%, ignoring case.
|
@@ -45194,7 +45194,7 @@ const oy = class oy {
|
|
45194
45194
|
* to a string.
|
45195
45195
|
*/
|
45196
45196
|
setHeader(e, n) {
|
45197
|
-
|
45197
|
+
D(this, ys)[String(e).toLowerCase()] = String(n);
|
45198
45198
|
}
|
45199
45199
|
/**
|
45200
45200
|
* Clear all headers, resetting all intrinsic headers.
|
@@ -45224,7 +45224,7 @@ const oy = class oy {
|
|
45224
45224
|
* To set the credentials, use the ``setCredentials`` method.
|
45225
45225
|
*/
|
45226
45226
|
get credentials() {
|
45227
|
-
return
|
45227
|
+
return D(this, ji) || null;
|
45228
45228
|
}
|
45229
45229
|
/**
|
45230
45230
|
* Sets an ``Authorization`` for %%username%% with %%password%%.
|
@@ -45237,7 +45237,7 @@ const oy = class oy {
|
|
45237
45237
|
* automatically be decompressed. //(default: true)//
|
45238
45238
|
*/
|
45239
45239
|
get allowGzip() {
|
45240
|
-
return
|
45240
|
+
return D(this, vc);
|
45241
45241
|
}
|
45242
45242
|
set allowGzip(e) {
|
45243
45243
|
P(this, vc, !!e);
|
@@ -45247,7 +45247,7 @@ const oy = class oy {
|
|
45247
45247
|
* channels. //(default: false)//
|
45248
45248
|
*/
|
45249
45249
|
get allowInsecureAuthentication() {
|
45250
|
-
return !!
|
45250
|
+
return !!D(this, Ac);
|
45251
45251
|
}
|
45252
45252
|
set allowInsecureAuthentication(e) {
|
45253
45253
|
P(this, Ac, !!e);
|
@@ -45257,7 +45257,7 @@ const oy = class oy {
|
|
45257
45257
|
* //(default: 5 minutes)//
|
45258
45258
|
*/
|
45259
45259
|
get timeout() {
|
45260
|
-
return
|
45260
|
+
return D(this, xc);
|
45261
45261
|
}
|
45262
45262
|
set timeout(e) {
|
45263
45263
|
z(e >= 0, "timeout must be non-zero", "timeout", e), P(this, xc, e);
|
@@ -45270,7 +45270,7 @@ const oy = class oy {
|
|
45270
45270
|
* content before sending a request.
|
45271
45271
|
*/
|
45272
45272
|
get preflightFunc() {
|
45273
|
-
return
|
45273
|
+
return D(this, dl) || null;
|
45274
45274
|
}
|
45275
45275
|
set preflightFunc(e) {
|
45276
45276
|
P(this, dl, e);
|
@@ -45286,7 +45286,7 @@ const oy = class oy {
|
|
45286
45286
|
* has not been reached), use [[response.throwThrottleError]].
|
45287
45287
|
*/
|
45288
45288
|
get processFunc() {
|
45289
|
-
return
|
45289
|
+
return D(this, hl) || null;
|
45290
45290
|
}
|
45291
45291
|
set processFunc(e) {
|
45292
45292
|
P(this, hl, e);
|
@@ -45295,7 +45295,7 @@ const oy = class oy {
|
|
45295
45295
|
* This function is called on each retry attempt.
|
45296
45296
|
*/
|
45297
45297
|
get retryFunc() {
|
45298
|
-
return
|
45298
|
+
return D(this, pl) || null;
|
45299
45299
|
}
|
45300
45300
|
set retryFunc(e) {
|
45301
45301
|
P(this, pl, e);
|
@@ -45316,33 +45316,33 @@ const oy = class oy {
|
|
45316
45316
|
* configurege a proxy or other agent.
|
45317
45317
|
*/
|
45318
45318
|
get getUrlFunc() {
|
45319
|
-
return
|
45319
|
+
return D(this, Wo) || C3;
|
45320
45320
|
}
|
45321
45321
|
set getUrlFunc(e) {
|
45322
45322
|
P(this, Wo, e);
|
45323
45323
|
}
|
45324
45324
|
toString() {
|
45325
|
-
return `<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${
|
45325
|
+
return `<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${D(this, cn) ? Ae(D(this, cn)) : "null"}>`;
|
45326
45326
|
}
|
45327
45327
|
/**
|
45328
45328
|
* Update the throttle parameters used to determine maximum
|
45329
45329
|
* attempts and exponential-backoff properties.
|
45330
45330
|
*/
|
45331
45331
|
setThrottleParams(e) {
|
45332
|
-
e.slotInterval != null && (
|
45332
|
+
e.slotInterval != null && (D(this, bs).slotInterval = e.slotInterval), e.maxAttempts != null && (D(this, bs).maxAttempts = e.maxAttempts);
|
45333
45333
|
}
|
45334
45334
|
/**
|
45335
45335
|
* Resolves to the response by sending the request.
|
45336
45336
|
*/
|
45337
45337
|
send() {
|
45338
|
-
return Z(
|
45338
|
+
return Z(D(this, Ws) == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }), P(this, Ws, new Vre(this)), ce(this, ml, bd).call(this, 0, S3() + this.timeout, 0, this, new Aa(0, "", {}, null, this));
|
45339
45339
|
}
|
45340
45340
|
/**
|
45341
45341
|
* Cancels the inflight response, causing a ``CANCELLED``
|
45342
45342
|
* error to be rejected from the [[send]].
|
45343
45343
|
*/
|
45344
45344
|
cancel() {
|
45345
|
-
Z(
|
45345
|
+
Z(D(this, Ws) != null, "request has not been sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.cancel" });
|
45346
45346
|
const e = o8.get(this);
|
45347
45347
|
if (!e)
|
45348
45348
|
throw new Error("missing signal; should not happen");
|
@@ -45358,14 +45358,14 @@ const oy = class oy {
|
|
45358
45358
|
operation: `redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`
|
45359
45359
|
});
|
45360
45360
|
const s = new oy(e);
|
45361
|
-
return s.method = "GET", s.allowGzip = this.allowGzip, s.timeout = this.timeout, P(s, ys, Object.assign({},
|
45361
|
+
return s.method = "GET", s.allowGzip = this.allowGzip, s.timeout = this.timeout, P(s, ys, Object.assign({}, D(this, ys))), D(this, cn) && P(s, cn, new Uint8Array(D(this, cn))), P(s, Dr, D(this, Dr)), s;
|
45362
45362
|
}
|
45363
45363
|
/**
|
45364
45364
|
* Create a new copy of this request.
|
45365
45365
|
*/
|
45366
45366
|
clone() {
|
45367
45367
|
const e = new oy(this.url);
|
45368
|
-
return P(e, Fi,
|
45368
|
+
return P(e, Fi, D(this, Fi)), D(this, cn) && P(e, cn, D(this, cn)), P(e, Dr, D(this, Dr)), P(e, ys, Object.assign({}, D(this, ys))), P(e, ji, D(this, ji)), this.allowGzip && (e.allowGzip = !0), e.timeout = this.timeout, this.allowInsecureAuthentication && (e.allowInsecureAuthentication = !0), P(e, dl, D(this, dl)), P(e, hl, D(this, hl)), P(e, pl, D(this, pl)), P(e, bs, Object.assign({}, D(this, bs))), P(e, Wo, D(this, Wo)), e;
|
45369
45369
|
}
|
45370
45370
|
/**
|
45371
45371
|
* Locks all static configuration for gateways and FetchGetUrlFunc
|
@@ -45447,7 +45447,7 @@ const oy = class oy {
|
|
45447
45447
|
};
|
45448
45448
|
Ac = new WeakMap(), vc = new WeakMap(), ys = new WeakMap(), Fi = new WeakMap(), xc = new WeakMap(), kc = new WeakMap(), cn = new WeakMap(), Dr = new WeakMap(), ji = new WeakMap(), dl = new WeakMap(), hl = new WeakMap(), pl = new WeakMap(), Ws = new WeakMap(), bs = new WeakMap(), Wo = new WeakMap(), ml = new WeakSet(), bd = async function(e, n, r, s, i) {
|
45449
45449
|
var c, f, d;
|
45450
|
-
if (e >=
|
45450
|
+
if (e >= D(this, bs).maxAttempts)
|
45451
45451
|
return i.makeServerError("exceeded maximum retry limit");
|
45452
45452
|
Z(S3() <= n, "timeout", "TIMEOUT", {
|
45453
45453
|
operation: "request.send",
|
@@ -45457,11 +45457,11 @@ Ac = new WeakMap(), vc = new WeakMap(), ys = new WeakMap(), Fi = new WeakMap(),
|
|
45457
45457
|
let o = this.clone();
|
45458
45458
|
const a = (o.url.split(":")[0] || "").toLowerCase();
|
45459
45459
|
if (a in A0) {
|
45460
|
-
const h = await A0[a](o.url, v0(
|
45460
|
+
const h = await A0[a](o.url, v0(D(s, Ws)));
|
45461
45461
|
if (h instanceof Aa) {
|
45462
45462
|
let p = h;
|
45463
45463
|
if (this.processFunc) {
|
45464
|
-
v0(
|
45464
|
+
v0(D(s, Ws));
|
45465
45465
|
try {
|
45466
45466
|
p = await this.processFunc(o, p);
|
45467
45467
|
} catch (m) {
|
@@ -45473,7 +45473,7 @@ Ac = new WeakMap(), vc = new WeakMap(), ys = new WeakMap(), Fi = new WeakMap(),
|
|
45473
45473
|
o = h;
|
45474
45474
|
}
|
45475
45475
|
this.preflightFunc && (o = await this.preflightFunc(o));
|
45476
|
-
const l = await this.getUrlFunc(o, v0(
|
45476
|
+
const l = await this.getUrlFunc(o, v0(D(s, Ws)));
|
45477
45477
|
let u = new Aa(l.statusCode, l.statusMessage, l.headers, l.body, s);
|
45478
45478
|
if (u.statusCode === 301 || u.statusCode === 302) {
|
45479
45479
|
try {
|
@@ -45484,16 +45484,16 @@ Ac = new WeakMap(), vc = new WeakMap(), ys = new WeakMap(), Fi = new WeakMap(),
|
|
45484
45484
|
return u;
|
45485
45485
|
} else if (u.statusCode === 429 && (this.retryFunc == null || await this.retryFunc(o, u, e))) {
|
45486
45486
|
const h = u.headers["retry-after"];
|
45487
|
-
let p =
|
45487
|
+
let p = D(this, bs).slotInterval * Math.trunc(Math.random() * Math.pow(2, e));
|
45488
45488
|
return typeof h == "string" && h.match(/^[1-9][0-9]*$/) && (p = parseInt(h)), ce(f = o.clone(), ml, bd).call(f, e + 1, n, p, s, u);
|
45489
45489
|
}
|
45490
45490
|
if (this.processFunc) {
|
45491
|
-
v0(
|
45491
|
+
v0(D(s, Ws));
|
45492
45492
|
try {
|
45493
45493
|
u = await this.processFunc(o, u);
|
45494
45494
|
} catch (h) {
|
45495
45495
|
(h.throttle == null || typeof h.stall != "number") && u.makeServerError("error in post-processing function", h).assertOk();
|
45496
|
-
let p =
|
45496
|
+
let p = D(this, bs).slotInterval * Math.trunc(Math.random() * Math.pow(2, e));
|
45497
45497
|
return h.stall >= 0 && (p = h.stall), ce(d = o.clone(), ml, bd).call(d, e + 1, n, p, s, u);
|
45498
45498
|
}
|
45499
45499
|
}
|
@@ -45512,31 +45512,31 @@ const pE = class pE {
|
|
45512
45512
|
P(this, Wh, e), P(this, Kh, n), P(this, qh, Object.keys(r).reduce((o, a) => (o[a.toLowerCase()] = String(r[a]), o), {})), P(this, Or, s == null ? null : new Uint8Array(s)), P(this, Ec, i || null), P(this, gl, { message: "" });
|
45513
45513
|
}
|
45514
45514
|
toString() {
|
45515
|
-
return `<FetchResponse status=${this.statusCode} body=${
|
45515
|
+
return `<FetchResponse status=${this.statusCode} body=${D(this, Or) ? Ae(D(this, Or)) : "null"}>`;
|
45516
45516
|
}
|
45517
45517
|
/**
|
45518
45518
|
* The response status code.
|
45519
45519
|
*/
|
45520
45520
|
get statusCode() {
|
45521
|
-
return
|
45521
|
+
return D(this, Wh);
|
45522
45522
|
}
|
45523
45523
|
/**
|
45524
45524
|
* The response status message.
|
45525
45525
|
*/
|
45526
45526
|
get statusMessage() {
|
45527
|
-
return
|
45527
|
+
return D(this, Kh);
|
45528
45528
|
}
|
45529
45529
|
/**
|
45530
45530
|
* The response headers. All keys are lower-case.
|
45531
45531
|
*/
|
45532
45532
|
get headers() {
|
45533
|
-
return Object.assign({},
|
45533
|
+
return Object.assign({}, D(this, qh));
|
45534
45534
|
}
|
45535
45535
|
/**
|
45536
45536
|
* The response body, or ``null`` if there was no body.
|
45537
45537
|
*/
|
45538
45538
|
get body() {
|
45539
|
-
return
|
45539
|
+
return D(this, Or) == null ? null : new Uint8Array(D(this, Or));
|
45540
45540
|
}
|
45541
45541
|
/**
|
45542
45542
|
* The response body as a UTF-8 encoded string, or the empty
|
@@ -45546,7 +45546,7 @@ const pE = class pE {
|
|
45546
45546
|
*/
|
45547
45547
|
get bodyText() {
|
45548
45548
|
try {
|
45549
|
-
return
|
45549
|
+
return D(this, Or) == null ? "" : Of(D(this, Or));
|
45550
45550
|
} catch {
|
45551
45551
|
Z(!1, "response body is not valid UTF-8 data", "UNSUPPORTED_OPERATION", {
|
45552
45552
|
operation: "bodyText",
|
@@ -45594,7 +45594,7 @@ const pE = class pE {
|
|
45594
45594
|
makeServerError(e, n) {
|
45595
45595
|
let r;
|
45596
45596
|
e ? r = `CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})` : (e = `${this.statusCode} ${this.statusMessage}`, r = `CLIENT ESCALATED SERVER ERROR (${e})`);
|
45597
|
-
const s = new pE(599, r, this.headers, this.body,
|
45597
|
+
const s = new pE(599, r, this.headers, this.body, D(this, Ec) || void 0);
|
45598
45598
|
return P(s, gl, { message: e, error: n }), s;
|
45599
45599
|
}
|
45600
45600
|
/**
|
@@ -45617,19 +45617,19 @@ const pE = class pE {
|
|
45617
45617
|
* Returns true if the response has a body.
|
45618
45618
|
*/
|
45619
45619
|
hasBody() {
|
45620
|
-
return
|
45620
|
+
return D(this, Or) != null;
|
45621
45621
|
}
|
45622
45622
|
/**
|
45623
45623
|
* The request made for this response.
|
45624
45624
|
*/
|
45625
45625
|
get request() {
|
45626
|
-
return
|
45626
|
+
return D(this, Ec);
|
45627
45627
|
}
|
45628
45628
|
/**
|
45629
45629
|
* Returns true if this response was a success statusCode.
|
45630
45630
|
*/
|
45631
45631
|
ok() {
|
45632
|
-
return
|
45632
|
+
return D(this, gl).message === "" && this.statusCode >= 200 && this.statusCode < 300;
|
45633
45633
|
}
|
45634
45634
|
/**
|
45635
45635
|
* Throws a ``SERVER_ERROR`` if this response is not ok.
|
@@ -45637,13 +45637,13 @@ const pE = class pE {
|
|
45637
45637
|
assertOk() {
|
45638
45638
|
if (this.ok())
|
45639
45639
|
return;
|
45640
|
-
let { message: e, error: n } =
|
45640
|
+
let { message: e, error: n } = D(this, gl);
|
45641
45641
|
e === "" && (e = `server response ${this.statusCode} ${this.statusMessage}`);
|
45642
45642
|
let r = null;
|
45643
45643
|
this.request && (r = this.request.url);
|
45644
45644
|
let s = null;
|
45645
45645
|
try {
|
45646
|
-
|
45646
|
+
D(this, Or) && (s = Of(D(this, Or)));
|
45647
45647
|
} catch {
|
45648
45648
|
}
|
45649
45649
|
Z(!1, e, "SERVER_ERROR", {
|
@@ -45802,7 +45802,7 @@ const tc = class tc extends Array {
|
|
45802
45802
|
if (_3(this, Object.freeze(s.map((u, c) => {
|
45803
45803
|
const f = i[c];
|
45804
45804
|
return f != null && a.get(f) === 1 ? f : null;
|
45805
|
-
}))), P(this, Cc, []),
|
45805
|
+
}))), P(this, Cc, []), D(this, Cc) == null && D(this, Cc), !o)
|
45806
45806
|
return;
|
45807
45807
|
Object.freeze(this);
|
45808
45808
|
const l = new Proxy(this, {
|
@@ -45954,10 +45954,10 @@ class ev {
|
|
45954
45954
|
P(this, Ui, []), P(this, yl, 0);
|
45955
45955
|
}
|
45956
45956
|
get data() {
|
45957
|
-
return Yt(
|
45957
|
+
return Yt(D(this, Ui));
|
45958
45958
|
}
|
45959
45959
|
get length() {
|
45960
|
-
return
|
45960
|
+
return D(this, yl);
|
45961
45961
|
}
|
45962
45962
|
appendWriter(e) {
|
45963
45963
|
return ce(this, Sc, em).call(this, Wn(e.data));
|
@@ -45975,14 +45975,14 @@ class ev {
|
|
45975
45975
|
// Inserts a numeric place-holder, returning a callback that can
|
45976
45976
|
// be used to asjust the value later
|
45977
45977
|
writeUpdatableValue() {
|
45978
|
-
const e =
|
45979
|
-
return
|
45980
|
-
|
45978
|
+
const e = D(this, Ui).length;
|
45979
|
+
return D(this, Ui).push(XA), P(this, yl, D(this, yl) + Jn), (n) => {
|
45980
|
+
D(this, Ui)[e] = M3(n);
|
45981
45981
|
};
|
45982
45982
|
}
|
45983
45983
|
}
|
45984
45984
|
Ui = new WeakMap(), yl = new WeakMap(), Sc = new WeakSet(), em = function(e) {
|
45985
|
-
return
|
45985
|
+
return D(this, Ui).push(e), P(this, yl, D(this, yl) + e.length), e.length;
|
45986
45986
|
};
|
45987
45987
|
var lr, Rr, bl, wl, Ko, mu, nv, c8;
|
45988
45988
|
const mE = class mE {
|
@@ -46001,26 +46001,26 @@ const mE = class mE {
|
|
46001
46001
|
Oe(this, { allowLoose: !!n }), P(this, lr, Wn(e)), P(this, bl, 0), P(this, wl, null), P(this, Ko, r ?? 1024), P(this, Rr, 0);
|
46002
46002
|
}
|
46003
46003
|
get data() {
|
46004
|
-
return Ae(
|
46004
|
+
return Ae(D(this, lr));
|
46005
46005
|
}
|
46006
46006
|
get dataLength() {
|
46007
|
-
return
|
46007
|
+
return D(this, lr).length;
|
46008
46008
|
}
|
46009
46009
|
get consumed() {
|
46010
|
-
return
|
46010
|
+
return D(this, Rr);
|
46011
46011
|
}
|
46012
46012
|
get bytes() {
|
46013
|
-
return new Uint8Array(
|
46013
|
+
return new Uint8Array(D(this, lr));
|
46014
46014
|
}
|
46015
46015
|
// Create a sub-reader with the same underlying data, but offset
|
46016
46016
|
subReader(e) {
|
46017
|
-
const n = new mE(
|
46017
|
+
const n = new mE(D(this, lr).slice(D(this, Rr) + e), this.allowLoose, D(this, Ko));
|
46018
46018
|
return P(n, wl, this), n;
|
46019
46019
|
}
|
46020
46020
|
// Read bytes
|
46021
46021
|
readBytes(e, n) {
|
46022
46022
|
let r = ce(this, mu, c8).call(this, 0, e, !!n);
|
46023
|
-
return ce(this, mu, nv).call(this, e), P(this, Rr,
|
46023
|
+
return ce(this, mu, nv).call(this, e), P(this, Rr, D(this, Rr) + r.length), r.slice(0, e);
|
46024
46024
|
}
|
46025
46025
|
// Read a numeric values
|
46026
46026
|
readValue() {
|
@@ -46032,24 +46032,24 @@ const mE = class mE {
|
|
46032
46032
|
};
|
46033
46033
|
lr = new WeakMap(), Rr = new WeakMap(), bl = new WeakMap(), wl = new WeakMap(), Ko = new WeakMap(), mu = new WeakSet(), nv = function(e) {
|
46034
46034
|
var n;
|
46035
|
-
if (
|
46036
|
-
return ce(n =
|
46037
|
-
P(this, bl,
|
46038
|
-
buffer: Wn(
|
46039
|
-
offset:
|
46035
|
+
if (D(this, wl))
|
46036
|
+
return ce(n = D(this, wl), mu, nv).call(n, e);
|
46037
|
+
P(this, bl, D(this, bl) + e), Z(D(this, Ko) < 1 || D(this, bl) <= D(this, Ko) * this.dataLength, `compressed ABI data exceeds inflation ratio of ${D(this, Ko)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`, "BUFFER_OVERRUN", {
|
46038
|
+
buffer: Wn(D(this, lr)),
|
46039
|
+
offset: D(this, Rr),
|
46040
46040
|
length: e,
|
46041
46041
|
info: {
|
46042
|
-
bytesRead:
|
46042
|
+
bytesRead: D(this, bl),
|
46043
46043
|
dataLength: this.dataLength
|
46044
46044
|
}
|
46045
46045
|
});
|
46046
46046
|
}, c8 = function(e, n, r) {
|
46047
46047
|
let s = Math.ceil(n / Jn) * Jn;
|
46048
|
-
return
|
46049
|
-
buffer: Wn(
|
46050
|
-
length:
|
46051
|
-
offset:
|
46052
|
-
})),
|
46048
|
+
return D(this, Rr) + s > D(this, lr).length && (this.allowLoose && r && D(this, Rr) + n <= D(this, lr).length ? s = n : Z(!1, "data out-of-bounds", "BUFFER_OVERRUN", {
|
46049
|
+
buffer: Wn(D(this, lr)),
|
46050
|
+
length: D(this, lr).length,
|
46051
|
+
offset: D(this, Rr) + s
|
46052
|
+
})), D(this, lr).slice(D(this, Rr), D(this, Rr) + s);
|
46053
46053
|
};
|
46054
46054
|
let tv = mE;
|
46055
46055
|
function Bg(t) {
|
@@ -46458,14 +46458,14 @@ class vse extends m8 {
|
|
46458
46458
|
for (let w = 0; w < 16; w++, n += 4)
|
46459
46459
|
Do[w] = e.getUint32(n), Oo[w] = e.getUint32(n += 4);
|
46460
46460
|
for (let w = 16; w < 80; w++) {
|
46461
|
-
const A = Do[w - 15] | 0, x = Oo[w - 15] | 0, k = et.rotrSH(A, x, 1) ^ et.rotrSH(A, x, 8) ^ et.shrSH(A, x, 7), C = et.rotrSL(A, x, 1) ^ et.rotrSL(A, x, 8) ^ et.shrSL(A, x, 7), O = Do[w - 2] | 0, R = Oo[w - 2] | 0,
|
46461
|
+
const A = Do[w - 15] | 0, x = Oo[w - 15] | 0, k = et.rotrSH(A, x, 1) ^ et.rotrSH(A, x, 8) ^ et.shrSH(A, x, 7), C = et.rotrSL(A, x, 1) ^ et.rotrSL(A, x, 8) ^ et.shrSL(A, x, 7), O = Do[w - 2] | 0, R = Oo[w - 2] | 0, T = et.rotrSH(O, R, 19) ^ et.rotrBH(O, R, 61) ^ et.shrSH(O, R, 6), M = et.rotrSL(O, R, 19) ^ et.rotrBL(O, R, 61) ^ et.shrSL(O, R, 6), I = et.add4L(C, M, Oo[w - 7], Oo[w - 16]), B = et.add4H(I, k, T, Do[w - 7], Do[w - 16]);
|
46462
46462
|
Do[w] = B | 0, Oo[w] = I | 0;
|
46463
46463
|
}
|
46464
46464
|
let { Ah: r, Al: s, Bh: i, Bl: o, Ch: a, Cl: l, Dh: u, Dl: c, Eh: f, El: d, Fh: h, Fl: p, Gh: m, Gl: g, Hh: y, Hl: v } = this;
|
46465
46465
|
for (let w = 0; w < 80; w++) {
|
46466
|
-
const A = et.rotrSH(f, d, 14) ^ et.rotrSH(f, d, 18) ^ et.rotrBH(f, d, 41), x = et.rotrSL(f, d, 14) ^ et.rotrSL(f, d, 18) ^ et.rotrBL(f, d, 41), k = f & h ^ ~f & m, C = d & p ^ ~d & g, O = et.add5L(v, x, C, Ase[w], Oo[w]), R = et.add5H(O, y, A, k, wse[w], Do[w]),
|
46467
|
-
y = m | 0, v = g | 0, m = h | 0, g = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = et.add(u | 0, c | 0, R | 0,
|
46468
|
-
const L = et.add3L(
|
46466
|
+
const A = et.rotrSH(f, d, 14) ^ et.rotrSH(f, d, 18) ^ et.rotrBH(f, d, 41), x = et.rotrSL(f, d, 14) ^ et.rotrSL(f, d, 18) ^ et.rotrBL(f, d, 41), k = f & h ^ ~f & m, C = d & p ^ ~d & g, O = et.add5L(v, x, C, Ase[w], Oo[w]), R = et.add5H(O, y, A, k, wse[w], Do[w]), T = O | 0, M = et.rotrSH(r, s, 28) ^ et.rotrBH(r, s, 34) ^ et.rotrBH(r, s, 39), I = et.rotrSL(r, s, 28) ^ et.rotrBL(r, s, 34) ^ et.rotrBL(r, s, 39), B = r & i ^ r & a ^ i & a, $ = s & o ^ s & l ^ o & l;
|
46467
|
+
y = m | 0, v = g | 0, m = h | 0, g = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = et.add(u | 0, c | 0, R | 0, T | 0), u = a | 0, c = l | 0, a = i | 0, l = o | 0, i = r | 0, o = s | 0;
|
46468
|
+
const L = et.add3L(T, I, $);
|
46469
46469
|
r = et.add3H(L, R, M, B), s = L | 0;
|
46470
46470
|
}
|
46471
46471
|
({ h: r, l: s } = et.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: i, l: o } = et.add(this.Bh | 0, this.Bl | 0, i | 0, o | 0), { h: a, l } = et.add(this.Ch | 0, this.Cl | 0, a | 0, l | 0), { h: u, l: c } = et.add(this.Dh | 0, this.Dl | 0, u | 0, c | 0), { h: f, l: d } = et.add(this.Eh | 0, this.El | 0, f | 0, d | 0), { h, l: p } = et.add(this.Fh | 0, this.Fl | 0, h | 0, p | 0), { h: m, l: g } = et.add(this.Gh | 0, this.Gl | 0, m | 0, g | 0), { h: y, l: v } = et.add(this.Hh | 0, this.Hl | 0, y | 0, v | 0), this.set(r, s, i, o, a, l, u, c, f, d, h, p, m, g, y, v);
|
@@ -47305,8 +47305,8 @@ function oie(t) {
|
|
47305
47305
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
47306
47306
|
double() {
|
47307
47307
|
const { a: m, b: g } = e, y = n.mul(g, j3), { px: v, py: w, pz: A } = this;
|
47308
|
-
let x = n.ZERO, k = n.ZERO, C = n.ZERO, O = n.mul(v, v), R = n.mul(w, w),
|
47309
|
-
return M = n.add(M, M), C = n.mul(v, A), C = n.add(C, C), x = n.mul(m, C), k = n.mul(y,
|
47308
|
+
let x = n.ZERO, k = n.ZERO, C = n.ZERO, O = n.mul(v, v), R = n.mul(w, w), T = n.mul(A, A), M = n.mul(v, w);
|
47309
|
+
return M = n.add(M, M), C = n.mul(v, A), C = n.add(C, C), x = n.mul(m, C), k = n.mul(y, T), k = n.add(x, k), x = n.sub(R, k), k = n.add(R, k), k = n.mul(x, k), x = n.mul(M, x), C = n.mul(y, C), T = n.mul(m, T), M = n.sub(O, T), M = n.mul(m, M), M = n.add(M, C), C = n.add(O, O), O = n.add(C, O), O = n.add(O, T), O = n.mul(O, M), k = n.add(k, O), T = n.mul(w, A), T = n.add(T, T), O = n.mul(T, M), x = n.sub(x, O), C = n.mul(T, R), C = n.add(C, C), C = n.add(C, C), new f(x, k, C);
|
47310
47310
|
}
|
47311
47311
|
// Renes-Costello-Batina exception-free addition formula.
|
47312
47312
|
// There is 30% faster Jacobian formula, but it is not complete.
|
@@ -47316,11 +47316,11 @@ function oie(t) {
|
|
47316
47316
|
c(m);
|
47317
47317
|
const { px: g, py: y, pz: v } = this, { px: w, py: A, pz: x } = m;
|
47318
47318
|
let k = n.ZERO, C = n.ZERO, O = n.ZERO;
|
47319
|
-
const R = e.a,
|
47319
|
+
const R = e.a, T = n.mul(e.b, j3);
|
47320
47320
|
let M = n.mul(g, w), I = n.mul(y, A), B = n.mul(v, x), $ = n.add(g, y), L = n.add(w, A);
|
47321
47321
|
$ = n.mul($, L), L = n.add(M, I), $ = n.sub($, L), L = n.add(g, v);
|
47322
47322
|
let V = n.add(w, x);
|
47323
|
-
return L = n.mul(L, V), V = n.add(M, B), L = n.sub(L, V), V = n.add(y, v), k = n.add(A, x), V = n.mul(V, k), k = n.add(I, B), V = n.sub(V, k), O = n.mul(R, L), k = n.mul(
|
47323
|
+
return L = n.mul(L, V), V = n.add(M, B), L = n.sub(L, V), V = n.add(y, v), k = n.add(A, x), V = n.mul(V, k), k = n.add(I, B), V = n.sub(V, k), O = n.mul(R, L), k = n.mul(T, B), O = n.add(k, O), k = n.sub(I, O), O = n.add(I, O), C = n.mul(k, O), I = n.add(M, M), I = n.add(I, M), B = n.mul(R, B), L = n.mul(T, L), I = n.add(I, B), B = n.sub(M, B), B = n.mul(R, B), L = n.add(L, B), M = n.mul(I, L), C = n.add(C, M), M = n.mul(V, L), k = n.mul($, k), k = n.sub(k, M), M = n.mul($, I), O = n.mul(V, O), O = n.add(O, M), new f(k, C, O);
|
47324
47324
|
}
|
47325
47325
|
subtract(m) {
|
47326
47326
|
return this.add(m.negate());
|
@@ -47368,8 +47368,8 @@ function oie(t) {
|
|
47368
47368
|
const { endo: w } = e;
|
47369
47369
|
if (w) {
|
47370
47370
|
const { k1neg: A, k1: x, k2neg: k, k2: C } = w.splitScalar(g);
|
47371
|
-
let { p: O, f: R } = this.wNAF(x), { p:
|
47372
|
-
O = h.constTimeNegate(A, O),
|
47371
|
+
let { p: O, f: R } = this.wNAF(x), { p: T, f: M } = this.wNAF(C);
|
47372
|
+
O = h.constTimeNegate(A, O), T = h.constTimeNegate(k, T), T = new f(n.mul(T.px, w.beta), T.py, T.pz), y = O.add(T), v = R.add(M);
|
47373
47373
|
} else {
|
47374
47374
|
const { p: A, f: x } = this.wNAF(g);
|
47375
47375
|
y = A, v = x;
|
@@ -47596,7 +47596,7 @@ function lie(t) {
|
|
47596
47596
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
47597
47597
|
return Pf(L, e.nByteLength);
|
47598
47598
|
}
|
47599
|
-
function
|
47599
|
+
function T(L, V, q = M) {
|
47600
47600
|
if (["recovered", "canonical"].some((nt) => nt in q))
|
47601
47601
|
throw new Error("sign() legacy options not supported");
|
47602
47602
|
const { hash: ee, randomBytes: X } = e;
|
@@ -47625,7 +47625,7 @@ function lie(t) {
|
|
47625
47625
|
}
|
47626
47626
|
const M = { lowS: e.lowS, prehash: !1 }, I = { lowS: e.lowS, prehash: !1 };
|
47627
47627
|
function B(L, V, q = M) {
|
47628
|
-
const { seed: ee, k2sig: X } =
|
47628
|
+
const { seed: ee, k2sig: X } = T(L, V, q), he = e;
|
47629
47629
|
return P8(he.hash.outputLen, he.nByteLength, he.hmac)(ee, X);
|
47630
47630
|
}
|
47631
47631
|
u.BASE._setWindowSize(8);
|
@@ -47746,7 +47746,7 @@ const ms = class ms {
|
|
47746
47746
|
* challenge point, from which the ``y`` can be computed.
|
47747
47747
|
*/
|
47748
47748
|
get r() {
|
47749
|
-
return
|
47749
|
+
return D(this, Tc);
|
47750
47750
|
}
|
47751
47751
|
set r(e) {
|
47752
47752
|
z(mc(e) === 32, "invalid r", "value", e), P(this, Tc, Ae(e));
|
@@ -47755,7 +47755,7 @@ const ms = class ms {
|
|
47755
47755
|
* The ``s`` value for a signature.
|
47756
47756
|
*/
|
47757
47757
|
get s() {
|
47758
|
-
return
|
47758
|
+
return D(this, Dc);
|
47759
47759
|
}
|
47760
47760
|
set s(e) {
|
47761
47761
|
z(mc(e) === 32, "invalid s", "value", e);
|
@@ -47773,7 +47773,7 @@ const ms = class ms {
|
|
47773
47773
|
* purposes.
|
47774
47774
|
*/
|
47775
47775
|
get v() {
|
47776
|
-
return
|
47776
|
+
return D(this, Oc);
|
47777
47777
|
}
|
47778
47778
|
set v(e) {
|
47779
47779
|
const n = Je(e, "value");
|
@@ -47784,7 +47784,7 @@ const ms = class ms {
|
|
47784
47784
|
* transactions, this value is ``null``.
|
47785
47785
|
*/
|
47786
47786
|
get networkV() {
|
47787
|
-
return
|
47787
|
+
return D(this, Al);
|
47788
47788
|
}
|
47789
47789
|
/**
|
47790
47790
|
* The chain ID for EIP-155 legacy transactions. For non-legacy
|
@@ -47983,7 +47983,7 @@ const tl = class tl {
|
|
47983
47983
|
* The private key.
|
47984
47984
|
*/
|
47985
47985
|
get privateKey() {
|
47986
|
-
return
|
47986
|
+
return D(this, Vi);
|
47987
47987
|
}
|
47988
47988
|
/**
|
47989
47989
|
* The uncompressed public key.
|
@@ -47992,7 +47992,7 @@ const tl = class tl {
|
|
47992
47992
|
* characters long (the ``0x`` prefix and 130 hexadecimal nibbles).
|
47993
47993
|
*/
|
47994
47994
|
get publicKey() {
|
47995
|
-
return tl.computePublicKey(
|
47995
|
+
return tl.computePublicKey(D(this, Vi));
|
47996
47996
|
}
|
47997
47997
|
/**
|
47998
47998
|
* The compressed public key.
|
@@ -48002,14 +48002,14 @@ const tl = class tl {
|
|
48002
48002
|
* nibbles)
|
48003
48003
|
*/
|
48004
48004
|
get compressedPublicKey() {
|
48005
|
-
return tl.computePublicKey(
|
48005
|
+
return tl.computePublicKey(D(this, Vi), !0);
|
48006
48006
|
}
|
48007
48007
|
/**
|
48008
48008
|
* Return the signature of the signed %%digest%%.
|
48009
48009
|
*/
|
48010
48010
|
sign(e) {
|
48011
48011
|
z(mc(e) === 32, "invalid digest length", "digest", e);
|
48012
|
-
const n = Mo.sign(Wn(e), Wn(
|
48012
|
+
const n = Mo.sign(Wn(e), Wn(D(this, Vi)), {
|
48013
48013
|
lowS: !0
|
48014
48014
|
});
|
48015
48015
|
return Ns.from({
|
@@ -48042,7 +48042,7 @@ const tl = class tl {
|
|
48042
48042
|
*/
|
48043
48043
|
computeSharedSecret(e) {
|
48044
48044
|
const n = tl.computePublicKey(e);
|
48045
|
-
return Ae(Mo.getSharedSecret(Wn(
|
48045
|
+
return Ae(Mo.getSharedSecret(Wn(D(this, Vi)), ht(n), !1));
|
48046
48046
|
}
|
48047
48047
|
/**
|
48048
48048
|
* Compute the public key for %%key%%, optionally %%compressed%%.
|
@@ -48294,7 +48294,7 @@ const Ii = class Ii {
|
|
48294
48294
|
get tupleName() {
|
48295
48295
|
if (this.type !== "tuple")
|
48296
48296
|
throw TypeError("not a tuple");
|
48297
|
-
return
|
48297
|
+
return D(this, vl);
|
48298
48298
|
}
|
48299
48299
|
// Returns the length of this type as an array
|
48300
48300
|
// - `null` indicates the length is unforced, it could be dynamic
|
@@ -48308,7 +48308,7 @@ const Ii = class Ii {
|
|
48308
48308
|
get arrayLength() {
|
48309
48309
|
if (this.type !== "array")
|
48310
48310
|
throw TypeError("not an array");
|
48311
|
-
return
|
48311
|
+
return D(this, vl) === !0 ? -1 : D(this, vl) === !1 ? this.value.length : null;
|
48312
48312
|
}
|
48313
48313
|
/**
|
48314
48314
|
* Returns a new **Typed** of %%type%% with the %%value%%.
|
@@ -49267,8 +49267,8 @@ function Pie(t) {
|
|
49267
49267
|
for (; ; ) {
|
49268
49268
|
let x = Math.floor(((g - v + 1) * s - 1) / w), k = 0, C = r;
|
49269
49269
|
for (; C - k > 1; ) {
|
49270
|
-
let
|
49271
|
-
x < i[
|
49270
|
+
let T = k + C >>> 1;
|
49271
|
+
x < i[T] ? C = T : k = T;
|
49272
49272
|
}
|
49273
49273
|
if (k == 0) break;
|
49274
49274
|
y.push(k);
|
@@ -50086,7 +50086,7 @@ const Li = class Li {
|
|
50086
50086
|
* explicit properties.
|
50087
50087
|
*/
|
50088
50088
|
get type() {
|
50089
|
-
return
|
50089
|
+
return D(this, Ks);
|
50090
50090
|
}
|
50091
50091
|
set type(e) {
|
50092
50092
|
switch (e) {
|
@@ -50137,7 +50137,7 @@ const Li = class Li {
|
|
50137
50137
|
* transaction is an ``init`` transaction.
|
50138
50138
|
*/
|
50139
50139
|
get to() {
|
50140
|
-
const e =
|
50140
|
+
const e = D(this, Rc);
|
50141
50141
|
return e == null && this.type === 3 ? Mh : e;
|
50142
50142
|
}
|
50143
50143
|
set to(e) {
|
@@ -50147,7 +50147,7 @@ const Li = class Li {
|
|
50147
50147
|
* The transaction nonce.
|
50148
50148
|
*/
|
50149
50149
|
get nonce() {
|
50150
|
-
return
|
50150
|
+
return D(this, Mc);
|
50151
50151
|
}
|
50152
50152
|
set nonce(e) {
|
50153
50153
|
P(this, Mc, Je(e, "value"));
|
@@ -50156,7 +50156,7 @@ const Li = class Li {
|
|
50156
50156
|
* The gas limit.
|
50157
50157
|
*/
|
50158
50158
|
get gasLimit() {
|
50159
|
-
return
|
50159
|
+
return D(this, Nc);
|
50160
50160
|
}
|
50161
50161
|
set gasLimit(e) {
|
50162
50162
|
P(this, Nc, ke(e));
|
@@ -50168,7 +50168,7 @@ const Li = class Li {
|
|
50168
50168
|
* EIP-1559 networks, this should be ``null``.
|
50169
50169
|
*/
|
50170
50170
|
get gasPrice() {
|
50171
|
-
const e =
|
50171
|
+
const e = D(this, Pc);
|
50172
50172
|
return e == null && (this.type === 0 || this.type === 1) ? pn : e;
|
50173
50173
|
}
|
50174
50174
|
set gasPrice(e) {
|
@@ -50179,7 +50179,7 @@ const Li = class Li {
|
|
50179
50179
|
* networks this should be ``null``.
|
50180
50180
|
*/
|
50181
50181
|
get maxPriorityFeePerGas() {
|
50182
|
-
const e =
|
50182
|
+
const e = D(this, Ic);
|
50183
50183
|
return e ?? (this.type === 2 || this.type === 3 ? pn : null);
|
50184
50184
|
}
|
50185
50185
|
set maxPriorityFeePerGas(e) {
|
@@ -50190,7 +50190,7 @@ const Li = class Li {
|
|
50190
50190
|
* networks this should be ``null``.
|
50191
50191
|
*/
|
50192
50192
|
get maxFeePerGas() {
|
50193
|
-
const e =
|
50193
|
+
const e = D(this, Lc);
|
50194
50194
|
return e ?? (this.type === 2 || this.type === 3 ? pn : null);
|
50195
50195
|
}
|
50196
50196
|
set maxFeePerGas(e) {
|
@@ -50201,7 +50201,7 @@ const Li = class Li {
|
|
50201
50201
|
* deployment code.
|
50202
50202
|
*/
|
50203
50203
|
get data() {
|
50204
|
-
return
|
50204
|
+
return D(this, _c);
|
50205
50205
|
}
|
50206
50206
|
set data(e) {
|
50207
50207
|
P(this, _c, Ae(e));
|
@@ -50210,7 +50210,7 @@ const Li = class Li {
|
|
50210
50210
|
* The amount of ether (in wei) to send in this transactions.
|
50211
50211
|
*/
|
50212
50212
|
get value() {
|
50213
|
-
return
|
50213
|
+
return D(this, Bc);
|
50214
50214
|
}
|
50215
50215
|
set value(e) {
|
50216
50216
|
P(this, Bc, ke(e, "value"));
|
@@ -50219,7 +50219,7 @@ const Li = class Li {
|
|
50219
50219
|
* The chain ID this transaction is valid on.
|
50220
50220
|
*/
|
50221
50221
|
get chainId() {
|
50222
|
-
return
|
50222
|
+
return D(this, Fc);
|
50223
50223
|
}
|
50224
50224
|
set chainId(e) {
|
50225
50225
|
P(this, Fc, ke(e));
|
@@ -50228,7 +50228,7 @@ const Li = class Li {
|
|
50228
50228
|
* If signed, the signature for this transaction.
|
50229
50229
|
*/
|
50230
50230
|
get signature() {
|
50231
|
-
return
|
50231
|
+
return D(this, jc) || null;
|
50232
50232
|
}
|
50233
50233
|
set signature(e) {
|
50234
50234
|
P(this, jc, e == null ? null : Ns.from(e));
|
@@ -50240,7 +50240,7 @@ const Li = class Li {
|
|
50240
50240
|
* bytecode and state variable access within contract execution.
|
50241
50241
|
*/
|
50242
50242
|
get accessList() {
|
50243
|
-
const e =
|
50243
|
+
const e = D(this, Uc) || null;
|
50244
50244
|
return e ?? (this.type === 1 || this.type === 2 || this.type === 3 ? [] : null);
|
50245
50245
|
}
|
50246
50246
|
set accessList(e) {
|
@@ -50250,7 +50250,7 @@ const Li = class Li {
|
|
50250
50250
|
* The max fee per blob gas for Cancun transactions.
|
50251
50251
|
*/
|
50252
50252
|
get maxFeePerBlobGas() {
|
50253
|
-
const e =
|
50253
|
+
const e = D(this, xl);
|
50254
50254
|
return e == null && this.type === 3 ? pn : e;
|
50255
50255
|
}
|
50256
50256
|
set maxFeePerBlobGas(e) {
|
@@ -50260,7 +50260,7 @@ const Li = class Li {
|
|
50260
50260
|
* The BLOb versioned hashes for Cancun transactions.
|
50261
50261
|
*/
|
50262
50262
|
get blobVersionedHashes() {
|
50263
|
-
let e =
|
50263
|
+
let e = D(this, qo);
|
50264
50264
|
return e == null && this.type === 3 ? [] : e;
|
50265
50265
|
}
|
50266
50266
|
set blobVersionedHashes(e) {
|
@@ -50300,7 +50300,7 @@ const Li = class Li {
|
|
50300
50300
|
* present.
|
50301
50301
|
*/
|
50302
50302
|
get blobs() {
|
50303
|
-
return
|
50303
|
+
return D(this, Qo) == null ? null : D(this, Qo).map((e) => Object.assign({}, e));
|
50304
50304
|
}
|
50305
50305
|
set blobs(e) {
|
50306
50306
|
if (e == null) {
|
@@ -50311,7 +50311,7 @@ const Li = class Li {
|
|
50311
50311
|
for (let s = 0; s < e.length; s++) {
|
50312
50312
|
const i = e[s];
|
50313
50313
|
if (hk(i)) {
|
50314
|
-
Z(
|
50314
|
+
Z(D(this, Hi), "adding a raw blob requires a KZG library", "UNSUPPORTED_OPERATION", {
|
50315
50315
|
operation: "set blobs()"
|
50316
50316
|
});
|
50317
50317
|
let o = ht(i);
|
@@ -50319,7 +50319,7 @@ const Li = class Li {
|
|
50319
50319
|
const u = new Uint8Array(Y1);
|
50320
50320
|
u.set(o), o = u;
|
50321
50321
|
}
|
50322
|
-
const a =
|
50322
|
+
const a = D(this, Hi).blobToKzgCommitment(o), l = Ae(D(this, Hi).computeBlobKzgProof(o, a));
|
50323
50323
|
n.push({
|
50324
50324
|
data: Ae(o),
|
50325
50325
|
commitment: Ae(a),
|
@@ -50337,7 +50337,7 @@ const Li = class Li {
|
|
50337
50337
|
P(this, Qo, n), P(this, qo, r);
|
50338
50338
|
}
|
50339
50339
|
get kzg() {
|
50340
|
-
return
|
50340
|
+
return D(this, Hi);
|
50341
50341
|
}
|
50342
50342
|
set kzg(e) {
|
50343
50343
|
P(this, Hi, e);
|
@@ -50409,7 +50409,7 @@ const Li = class Li {
|
|
50409
50409
|
* transaction types.
|
50410
50410
|
*/
|
50411
50411
|
inferTypes() {
|
50412
|
-
const e = this.gasPrice != null, n = this.maxFeePerGas != null || this.maxPriorityFeePerGas != null, r = this.accessList != null, s =
|
50412
|
+
const e = this.gasPrice != null, n = this.maxFeePerGas != null || this.maxPriorityFeePerGas != null, r = this.accessList != null, s = D(this, xl) != null || D(this, qo);
|
50413
50413
|
this.maxFeePerGas != null && this.maxPriorityFeePerGas != null && Z(this.maxFeePerGas >= this.maxPriorityFeePerGas, "priorityFee cannot be more than maxFee", "BAD_DATA", { value: this }), Z(!n || this.type !== 0 && this.type !== 1, "transaction type cannot have maxFeePerGas or maxPriorityFeePerGas", "BAD_DATA", { value: this }), Z(this.type !== 0 || !r, "legacy transaction cannot have accessList", "BAD_DATA", { value: this });
|
50414
50414
|
const i = [];
|
50415
50415
|
return this.type != null ? i.push(this.type) : n ? i.push(2) : e ? (i.push(1), r || i.push(0)) : r ? (i.push(1), i.push(2)) : (s && this.to || (i.push(0), i.push(1), i.push(2)), i.push(3)), i.sort(), i;
|
@@ -50678,27 +50678,27 @@ const Jr = class Jr {
|
|
50678
50678
|
a(this.primaryType, /* @__PURE__ */ new Set());
|
50679
50679
|
for (const [l, u] of s) {
|
50680
50680
|
const c = Array.from(u);
|
50681
|
-
c.sort(),
|
50681
|
+
c.sort(), D(this, zi).set(l, aD(l, i[l]) + c.map((f) => aD(f, i[f])).join(""));
|
50682
50682
|
}
|
50683
50683
|
}
|
50684
50684
|
/**
|
50685
50685
|
* The types.
|
50686
50686
|
*/
|
50687
50687
|
get types() {
|
50688
|
-
return JSON.parse(
|
50688
|
+
return JSON.parse(D(this, Qh));
|
50689
50689
|
}
|
50690
50690
|
/**
|
50691
50691
|
* Returnthe encoder for the specific %%type%%.
|
50692
50692
|
*/
|
50693
50693
|
getEncoder(e) {
|
50694
|
-
let n =
|
50695
|
-
return n || (n = ce(this, ay, pI).call(this, e),
|
50694
|
+
let n = D(this, Hc).get(e);
|
50695
|
+
return n || (n = ce(this, ay, pI).call(this, e), D(this, Hc).set(e, n)), n;
|
50696
50696
|
}
|
50697
50697
|
/**
|
50698
50698
|
* Return the full type for %%name%%.
|
50699
50699
|
*/
|
50700
50700
|
encodeType(e) {
|
50701
|
-
const n =
|
50701
|
+
const n = D(this, zi).get(e);
|
50702
50702
|
return z(n, `unknown type: ${JSON.stringify(e)}`, "name", e), n;
|
50703
50703
|
}
|
50704
50704
|
/**
|
@@ -50861,16 +50861,16 @@ Qh = new WeakMap(), zi = new WeakMap(), Hc = new WeakMap(), ay = new WeakSet(),
|
|
50861
50861
|
return (o) => {
|
50862
50862
|
z(n.count === -1 || n.count === o.length, `array length mismatch; expected length ${n.count}`, "value", o);
|
50863
50863
|
let a = o.map(i);
|
50864
|
-
return
|
50864
|
+
return D(this, zi).has(s) && (a = a.map(tn)), tn(Yt(a));
|
50865
50865
|
};
|
50866
50866
|
}
|
50867
50867
|
const r = this.types[e];
|
50868
50868
|
if (r) {
|
50869
|
-
const s = fu(
|
50869
|
+
const s = fu(D(this, zi).get(e));
|
50870
50870
|
return (i) => {
|
50871
50871
|
const o = r.map(({ name: a, type: l }) => {
|
50872
50872
|
const u = this.getEncoder(l)(i[a]);
|
50873
|
-
return
|
50873
|
+
return D(this, zi).has(l) ? tn(u) : u;
|
50874
50874
|
});
|
50875
50875
|
return o.unshift(s), Yt(o);
|
50876
50876
|
};
|
@@ -50899,13 +50899,13 @@ const ly = class ly {
|
|
50899
50899
|
P(this, kn, 0), P(this, ws, e.slice());
|
50900
50900
|
}
|
50901
50901
|
get offset() {
|
50902
|
-
return
|
50902
|
+
return D(this, kn);
|
50903
50903
|
}
|
50904
50904
|
get length() {
|
50905
|
-
return
|
50905
|
+
return D(this, ws).length - D(this, kn);
|
50906
50906
|
}
|
50907
50907
|
clone() {
|
50908
|
-
return new ly(
|
50908
|
+
return new ly(D(this, ws));
|
50909
50909
|
}
|
50910
50910
|
reset() {
|
50911
50911
|
P(this, kn, 0);
|
@@ -50930,7 +50930,7 @@ const ly = class ly {
|
|
50930
50930
|
const e = this.peek();
|
50931
50931
|
if (e.type !== "OPEN_PAREN")
|
50932
50932
|
throw new Error("bad start");
|
50933
|
-
const n = ce(this, Jh, pv).call(this,
|
50933
|
+
const n = ce(this, Jh, pv).call(this, D(this, kn) + 1, e.match + 1);
|
50934
50934
|
return P(this, kn, e.match + 1), n;
|
50935
50935
|
}
|
50936
50936
|
// Pops and returns the items within "(" ITEM1 "," ITEM2 "," ... ")"
|
@@ -50939,17 +50939,17 @@ const ly = class ly {
|
|
50939
50939
|
if (e.type !== "OPEN_PAREN")
|
50940
50940
|
throw new Error("bad start");
|
50941
50941
|
const n = [];
|
50942
|
-
for (;
|
50942
|
+
for (; D(this, kn) < e.match - 1; ) {
|
50943
50943
|
const r = this.peek().linkNext;
|
50944
|
-
n.push(ce(this, Jh, pv).call(this,
|
50944
|
+
n.push(ce(this, Jh, pv).call(this, D(this, kn) + 1, r)), P(this, kn, r);
|
50945
50945
|
}
|
50946
50946
|
return P(this, kn, e.match + 1), n;
|
50947
50947
|
}
|
50948
50948
|
// Returns the top Token, throwing if out of tokens
|
50949
50949
|
peek() {
|
50950
|
-
if (
|
50950
|
+
if (D(this, kn) >= D(this, ws).length)
|
50951
50951
|
throw new Error("out-of-bounds");
|
50952
|
-
return
|
50952
|
+
return D(this, ws)[D(this, kn)];
|
50953
50953
|
}
|
50954
50954
|
// Returns the next value, if it is a keyword in `allowed`
|
50955
50955
|
peekKeyword(e) {
|
@@ -50970,15 +50970,15 @@ const ly = class ly {
|
|
50970
50970
|
}
|
50971
50971
|
toString() {
|
50972
50972
|
const e = [];
|
50973
|
-
for (let n =
|
50974
|
-
const r =
|
50973
|
+
for (let n = D(this, kn); n < D(this, ws).length; n++) {
|
50974
|
+
const r = D(this, ws)[n];
|
50975
50975
|
e.push(`${r.type}:${r.text}`);
|
50976
50976
|
}
|
50977
50977
|
return `<TokenString ${e.join(" ")}>`;
|
50978
50978
|
}
|
50979
50979
|
};
|
50980
50980
|
kn = new WeakMap(), ws = new WeakMap(), Jh = new WeakSet(), pv = function(e = 0, n = 0) {
|
50981
|
-
return new ly(
|
50981
|
+
return new ly(D(this, ws).slice(e, n).map((r) => Object.freeze(Object.assign({}, r, {
|
50982
50982
|
match: r.match - e,
|
50983
50983
|
linkBack: r.linkBack - e,
|
50984
50984
|
linkNext: r.linkNext - e
|
@@ -52202,13 +52202,13 @@ const nl = class nl {
|
|
52202
52202
|
o.inputs.length === 0 ? i = !0 : (z(!s || o.payable !== s.payable, "conflicting fallback fragments", `fragments[${a}]`, o), s = o, i = s.payable);
|
52203
52203
|
return;
|
52204
52204
|
case "function":
|
52205
|
-
l =
|
52205
|
+
l = D(this, Js);
|
52206
52206
|
break;
|
52207
52207
|
case "event":
|
52208
|
-
l =
|
52208
|
+
l = D(this, Qs);
|
52209
52209
|
break;
|
52210
52210
|
case "error":
|
52211
|
-
l =
|
52211
|
+
l = D(this, qs);
|
52212
52212
|
break;
|
52213
52213
|
default:
|
52214
52214
|
return;
|
@@ -52278,11 +52278,11 @@ const nl = class nl {
|
|
52278
52278
|
* Iterate over all functions, calling %%callback%%, sorted by their name.
|
52279
52279
|
*/
|
52280
52280
|
forEachFunction(e) {
|
52281
|
-
const n = Array.from(
|
52281
|
+
const n = Array.from(D(this, Js).keys());
|
52282
52282
|
n.sort((r, s) => r.localeCompare(s));
|
52283
52283
|
for (let r = 0; r < n.length; r++) {
|
52284
52284
|
const s = n[r];
|
52285
|
-
e(
|
52285
|
+
e(D(this, Js).get(s), r);
|
52286
52286
|
}
|
52287
52287
|
}
|
52288
52288
|
/**
|
@@ -52320,11 +52320,11 @@ const nl = class nl {
|
|
52320
52320
|
* Iterate over all events, calling %%callback%%, sorted by their name.
|
52321
52321
|
*/
|
52322
52322
|
forEachEvent(e) {
|
52323
|
-
const n = Array.from(
|
52323
|
+
const n = Array.from(D(this, Qs).keys());
|
52324
52324
|
n.sort((r, s) => r.localeCompare(s));
|
52325
52325
|
for (let r = 0; r < n.length; r++) {
|
52326
52326
|
const s = n[r];
|
52327
|
-
e(
|
52327
|
+
e(D(this, Qs).get(s), r);
|
52328
52328
|
}
|
52329
52329
|
}
|
52330
52330
|
/**
|
@@ -52342,14 +52342,14 @@ const nl = class nl {
|
|
52342
52342
|
const s = e.toLowerCase();
|
52343
52343
|
if (AD[s])
|
52344
52344
|
return pr.from(AD[s].signature);
|
52345
|
-
for (const i of
|
52345
|
+
for (const i of D(this, qs).values())
|
52346
52346
|
if (s === i.selector)
|
52347
52347
|
return i;
|
52348
52348
|
return null;
|
52349
52349
|
}
|
52350
52350
|
if (e.indexOf("(") === -1) {
|
52351
52351
|
const s = [];
|
52352
|
-
for (const [i, o] of
|
52352
|
+
for (const [i, o] of D(this, qs))
|
52353
52353
|
i.split(
|
52354
52354
|
"("
|
52355
52355
|
/* fix:) */
|
@@ -52366,18 +52366,18 @@ const nl = class nl {
|
|
52366
52366
|
return pr.from("error Error(string)");
|
52367
52367
|
if (e === "Panic(uint256)")
|
52368
52368
|
return pr.from("error Panic(uint256)");
|
52369
|
-
const r =
|
52369
|
+
const r = D(this, qs).get(e);
|
52370
52370
|
return r || null;
|
52371
52371
|
}
|
52372
52372
|
/**
|
52373
52373
|
* Iterate over all errors, calling %%callback%%, sorted by their name.
|
52374
52374
|
*/
|
52375
52375
|
forEachError(e) {
|
52376
|
-
const n = Array.from(
|
52376
|
+
const n = Array.from(D(this, qs).keys());
|
52377
52377
|
n.sort((r, s) => r.localeCompare(s));
|
52378
52378
|
for (let r = 0; r < n.length; r++) {
|
52379
52379
|
const s = n[r];
|
52380
|
-
e(
|
52380
|
+
e(D(this, qs).get(s), r);
|
52381
52381
|
}
|
52382
52382
|
}
|
52383
52383
|
// Get the 4-byte selector used by Solidity to identify a function
|
@@ -52409,10 +52409,10 @@ const nl = class nl {
|
|
52409
52409
|
}
|
52410
52410
|
*/
|
52411
52411
|
_decodeParams(e, n) {
|
52412
|
-
return
|
52412
|
+
return D(this, Mn).decode(e, n);
|
52413
52413
|
}
|
52414
52414
|
_encodeParams(e, n) {
|
52415
|
-
return
|
52415
|
+
return D(this, Mn).encode(e, n);
|
52416
52416
|
}
|
52417
52417
|
/**
|
52418
52418
|
* Encodes a ``tx.data`` object for deploying the Contract with
|
@@ -52503,7 +52503,7 @@ const nl = class nl {
|
|
52503
52503
|
const s = Wn(n);
|
52504
52504
|
if (s.length % 32 === 0)
|
52505
52505
|
try {
|
52506
|
-
return
|
52506
|
+
return D(this, Mn).decode(e.outputs, s);
|
52507
52507
|
} catch {
|
52508
52508
|
r = "could not decode result data";
|
52509
52509
|
}
|
@@ -52518,7 +52518,7 @@ const nl = class nl {
|
|
52518
52518
|
const a = Ae(r.slice(0, 4)), l = this.getError(a);
|
52519
52519
|
if (l)
|
52520
52520
|
try {
|
52521
|
-
const u =
|
52521
|
+
const u = D(this, Mn).decode(l.inputs, r.slice(4));
|
52522
52522
|
s.revert = {
|
52523
52523
|
name: l.name,
|
52524
52524
|
signature: l.format(),
|
@@ -52548,7 +52548,7 @@ const nl = class nl {
|
|
52548
52548
|
const r = this.getFunction(e);
|
52549
52549
|
z(r, "unknown function", "fragment", e), e = r;
|
52550
52550
|
}
|
52551
|
-
return Ae(
|
52551
|
+
return Ae(D(this, Mn).encode(e.outputs, n || []));
|
52552
52552
|
}
|
52553
52553
|
/*
|
52554
52554
|
spelunk(inputs: Array<ParamType>, values: ReadonlyArray<any>, processfunc: (type: string, value: any) => Promise<any>): Promise<Array<any>> {
|
@@ -52589,7 +52589,7 @@ const nl = class nl {
|
|
52589
52589
|
Z(n.length <= e.inputs.length, `too many arguments for ${e.format()}`, "UNEXPECTED_ARGUMENT", { count: n.length, expectedCount: e.inputs.length });
|
52590
52590
|
const r = [];
|
52591
52591
|
e.anonymous || r.push(e.topicHash);
|
52592
|
-
const s = (i, o) => i.type === "string" ? fu(o) : i.type === "bytes" ? tn(Ae(o)) : (i.type === "bool" && typeof o == "boolean" ? o = o ? "0x01" : "0x00" : i.type.match(/^u?int/) ? o = Oa(o) : i.type.match(/^bytes/) ? o = Sre(o, 32) : i.type === "address" &&
|
52592
|
+
const s = (i, o) => i.type === "string" ? fu(o) : i.type === "bytes" ? tn(Ae(o)) : (i.type === "bool" && typeof o == "boolean" ? o = o ? "0x01" : "0x00" : i.type.match(/^u?int/) ? o = Oa(o) : i.type.match(/^bytes/) ? o = Sre(o, 32) : i.type === "address" && D(this, Mn).encode(["address"], [o]), uu(Ae(o), 32));
|
52593
52593
|
for (n.forEach((i, o) => {
|
52594
52594
|
const a = e.inputs[o];
|
52595
52595
|
if (!a.indexed) {
|
@@ -52617,12 +52617,12 @@ const nl = class nl {
|
|
52617
52617
|
else {
|
52618
52618
|
if (o.baseType === "tuple" || o.baseType === "array")
|
52619
52619
|
throw new Error("not implemented");
|
52620
|
-
r.push(
|
52620
|
+
r.push(D(this, Mn).encode([o.type], [l]));
|
52621
52621
|
}
|
52622
52622
|
else
|
52623
52623
|
s.push(o), i.push(l);
|
52624
52624
|
}), {
|
52625
|
-
data:
|
52625
|
+
data: D(this, Mn).encode(s, i),
|
52626
52626
|
topics: r
|
52627
52627
|
};
|
52628
52628
|
}
|
@@ -52640,7 +52640,7 @@ const nl = class nl {
|
|
52640
52640
|
e.inputs.forEach((h, p) => {
|
52641
52641
|
h.indexed ? h.type === "string" || h.type === "bytes" || h.baseType === "tuple" || h.baseType === "array" ? (s.push(Rn.from({ type: "bytes32", name: h.name })), o.push(!0)) : (s.push(h), o.push(!1)) : (i.push(h), o.push(!1));
|
52642
52642
|
});
|
52643
|
-
const a = r != null ?
|
52643
|
+
const a = r != null ? D(this, Mn).decode(s, Yt(r)) : null, l = D(this, Mn).decode(i, n, !0), u = [], c = [];
|
52644
52644
|
let f = 0, d = 0;
|
52645
52645
|
return e.inputs.forEach((h, p) => {
|
52646
52646
|
let m = null;
|
@@ -52674,7 +52674,7 @@ const nl = class nl {
|
|
52674
52674
|
const n = ht(e.data, "tx.data"), r = ke(e.value != null ? e.value : 0, "tx.value"), s = this.getFunction(Ae(n.slice(0, 4)));
|
52675
52675
|
if (!s)
|
52676
52676
|
return null;
|
52677
|
-
const i =
|
52677
|
+
const i = D(this, Mn).decode(s.inputs, n.slice(4));
|
52678
52678
|
return new tae(s, s.selector, i, r);
|
52679
52679
|
}
|
52680
52680
|
parseCallResult(e) {
|
@@ -52700,7 +52700,7 @@ const nl = class nl {
|
|
52700
52700
|
const n = Ae(e), r = this.getError(Vt(n, 0, 4));
|
52701
52701
|
if (!r)
|
52702
52702
|
return null;
|
52703
|
-
const s =
|
52703
|
+
const s = D(this, Mn).decode(r.inputs, Vt(n, 4));
|
52704
52704
|
return new nae(r, r.selector, s);
|
52705
52705
|
}
|
52706
52706
|
/**
|
@@ -52717,14 +52717,14 @@ qs = new WeakMap(), Qs = new WeakMap(), Js = new WeakMap(), Mn = new WeakMap(),
|
|
52717
52717
|
sm = function(e, n, r) {
|
52718
52718
|
if (Dt(e)) {
|
52719
52719
|
const i = e.toLowerCase();
|
52720
|
-
for (const o of
|
52720
|
+
for (const o of D(this, Js).values())
|
52721
52721
|
if (i === o.selector)
|
52722
52722
|
return o;
|
52723
52723
|
return null;
|
52724
52724
|
}
|
52725
52725
|
if (e.indexOf("(") === -1) {
|
52726
52726
|
const i = [];
|
52727
|
-
for (const [o, a] of
|
52727
|
+
for (const [o, a] of D(this, Js))
|
52728
52728
|
o.split(
|
52729
52729
|
"("
|
52730
52730
|
/* fix:) */
|
@@ -52766,20 +52766,20 @@ sm = function(e, n, r) {
|
|
52766
52766
|
}
|
52767
52767
|
return i[0];
|
52768
52768
|
}
|
52769
|
-
const s =
|
52769
|
+
const s = D(this, Js).get(ii.from(e).format());
|
52770
52770
|
return s || null;
|
52771
52771
|
}, // Find an event definition by any means necessary (unless it is ambiguous)
|
52772
52772
|
im = function(e, n, r) {
|
52773
52773
|
if (Dt(e)) {
|
52774
52774
|
const i = e.toLowerCase();
|
52775
|
-
for (const o of
|
52775
|
+
for (const o of D(this, Qs).values())
|
52776
52776
|
if (i === o.topicHash)
|
52777
52777
|
return o;
|
52778
52778
|
return null;
|
52779
52779
|
}
|
52780
52780
|
if (e.indexOf("(") === -1) {
|
52781
52781
|
const i = [];
|
52782
|
-
for (const [o, a] of
|
52782
|
+
for (const [o, a] of D(this, Qs))
|
52783
52783
|
o.split(
|
52784
52784
|
"("
|
52785
52785
|
/* fix:) */
|
@@ -52804,7 +52804,7 @@ im = function(e, n, r) {
|
|
52804
52804
|
}
|
52805
52805
|
return i[0];
|
52806
52806
|
}
|
52807
|
-
const s =
|
52807
|
+
const s = D(this, Qs).get(si.from(e).format());
|
52808
52808
|
return s || null;
|
52809
52809
|
};
|
52810
52810
|
let mv = nl;
|
@@ -53011,7 +53011,7 @@ class rae {
|
|
53011
53011
|
* they were executed within the block.
|
53012
53012
|
*/
|
53013
53013
|
get transactions() {
|
53014
|
-
return
|
53014
|
+
return D(this, $i).map((e) => typeof e == "string" ? e : e.hash);
|
53015
53015
|
}
|
53016
53016
|
/**
|
53017
53017
|
* Returns the complete transactions, in the order they
|
@@ -53022,7 +53022,7 @@ class rae {
|
|
53022
53022
|
* into [[Provider-getBlock]].
|
53023
53023
|
*/
|
53024
53024
|
get prefetchedTransactions() {
|
53025
|
-
const e =
|
53025
|
+
const e = D(this, $i).slice();
|
53026
53026
|
return e.length === 0 ? [] : (Z(typeof e[0] == "object", "transactions were not prefetched with block request", "UNSUPPORTED_OPERATION", {
|
53027
53027
|
operation: "transactionResponses()"
|
53028
53028
|
}), e);
|
@@ -53068,7 +53068,7 @@ class rae {
|
|
53068
53068
|
* The number of transactions in this block.
|
53069
53069
|
*/
|
53070
53070
|
get length() {
|
53071
|
-
return
|
53071
|
+
return D(this, $i).length;
|
53072
53072
|
}
|
53073
53073
|
/**
|
53074
53074
|
* The [[link-js-date]] this block was included at.
|
@@ -53082,10 +53082,10 @@ class rae {
|
|
53082
53082
|
async getTransaction(e) {
|
53083
53083
|
let n;
|
53084
53084
|
if (typeof e == "number")
|
53085
|
-
n =
|
53085
|
+
n = D(this, $i)[e];
|
53086
53086
|
else {
|
53087
53087
|
const r = e.toLowerCase();
|
53088
|
-
for (const s of
|
53088
|
+
for (const s of D(this, $i))
|
53089
53089
|
if (typeof s == "string") {
|
53090
53090
|
if (s !== r)
|
53091
53091
|
continue;
|
@@ -53390,7 +53390,7 @@ class EI {
|
|
53390
53390
|
* The logs for this transaction.
|
53391
53391
|
*/
|
53392
53392
|
get logs() {
|
53393
|
-
return
|
53393
|
+
return D(this, Yh);
|
53394
53394
|
}
|
53395
53395
|
/**
|
53396
53396
|
* Returns a JSON-compatible representation.
|
@@ -53697,7 +53697,7 @@ const gE = class gE {
|
|
53697
53697
|
*/
|
53698
53698
|
async wait(e, n) {
|
53699
53699
|
const r = e ?? 1, s = n ?? 0;
|
53700
|
-
let i =
|
53700
|
+
let i = D(this, Yo), o = -1, a = i === -1;
|
53701
53701
|
const l = async () => {
|
53702
53702
|
if (a)
|
53703
53703
|
return null;
|
@@ -53713,7 +53713,7 @@ const gE = class gE {
|
|
53713
53713
|
return null;
|
53714
53714
|
const p = await this.getTransaction();
|
53715
53715
|
if (!(p && p.blockNumber != null))
|
53716
|
-
for (o === -1 && (o = i - 3, o <
|
53716
|
+
for (o === -1 && (o = i - 3, o < D(this, Yo) && (o = D(this, Yo))); o <= d; ) {
|
53717
53717
|
if (a)
|
53718
53718
|
return null;
|
53719
53719
|
const m = await this.provider.getBlock(o, !0);
|
@@ -53976,10 +53976,10 @@ class oae extends EI {
|
|
53976
53976
|
*/
|
53977
53977
|
get logs() {
|
53978
53978
|
return super.logs.map((n) => {
|
53979
|
-
const r = n.topics.length ?
|
53979
|
+
const r = n.topics.length ? D(this, $c).getEvent(n.topics[0]) : null;
|
53980
53980
|
if (r)
|
53981
53981
|
try {
|
53982
|
-
return new Rk(n,
|
53982
|
+
return new Rk(n, D(this, $c), r);
|
53983
53983
|
} catch (s) {
|
53984
53984
|
return new TI(n, s);
|
53985
53985
|
}
|
@@ -54009,7 +54009,7 @@ class _k extends Uh {
|
|
54009
54009
|
*/
|
54010
54010
|
async wait(n, r) {
|
54011
54011
|
const s = await super.wait(n, r);
|
54012
|
-
return s == null ? null : new oae(
|
54012
|
+
return s == null ? null : new oae(D(this, Xh), this.provider, s);
|
54013
54013
|
}
|
54014
54014
|
}
|
54015
54015
|
Xh = new WeakMap();
|
@@ -54101,7 +54101,7 @@ class lae {
|
|
54101
54101
|
}());
|
54102
54102
|
}
|
54103
54103
|
getTopicFilter() {
|
54104
|
-
return
|
54104
|
+
return D(this, Zh);
|
54105
54105
|
}
|
54106
54106
|
}
|
54107
54107
|
Zh = new WeakMap();
|
@@ -54759,15 +54759,15 @@ const nc = class nc {
|
|
54759
54759
|
* Resolves to true if the resolver supports wildcard resolution.
|
54760
54760
|
*/
|
54761
54761
|
async supportsWildcard() {
|
54762
|
-
return
|
54762
|
+
return D(this, Xo) == null && P(this, Xo, (async () => {
|
54763
54763
|
try {
|
54764
|
-
return await
|
54764
|
+
return await D(this, kl).supportsInterface("0x9061b923");
|
54765
54765
|
} catch (e) {
|
54766
54766
|
if (yn(e, "CALL_EXCEPTION"))
|
54767
54767
|
return !1;
|
54768
54768
|
throw P(this, Xo, null), e;
|
54769
54769
|
}
|
54770
|
-
})()), await
|
54770
|
+
})()), await D(this, Xo);
|
54771
54771
|
}
|
54772
54772
|
/**
|
54773
54773
|
* Resolves to the address for %%coinType%% or null if the
|
@@ -54970,7 +54970,7 @@ const nc = class nc {
|
|
54970
54970
|
};
|
54971
54971
|
Xo = new WeakMap(), kl = new WeakMap(), Zo = new WeakSet(), Gu = async function(e, n) {
|
54972
54972
|
n = (n || []).slice();
|
54973
|
-
const r =
|
54973
|
+
const r = D(this, kl).interface;
|
54974
54974
|
n.unshift(hv(this.name));
|
54975
54975
|
let s = null;
|
54976
54976
|
await this.supportsWildcard() && (s = r.getFunction(e), Z(s, "missing fragment", "UNKNOWN_ERROR", {
|
@@ -54982,7 +54982,7 @@ Xo = new WeakMap(), kl = new WeakMap(), Zo = new WeakSet(), Gu = async function(
|
|
54982
54982
|
enableCcipRead: !0
|
54983
54983
|
});
|
54984
54984
|
try {
|
54985
|
-
const i = await
|
54985
|
+
const i = await D(this, kl)[e](...n);
|
54986
54986
|
return s ? r.decodeFunctionResult(s, i)[0] : i;
|
54987
54987
|
} catch (i) {
|
54988
54988
|
if (!yn(i, "CALL_EXCEPTION"))
|
@@ -55293,13 +55293,13 @@ class Dae extends Np {
|
|
55293
55293
|
* The URL to initialize the FetchRequest with in %%processFunc%%.
|
55294
55294
|
*/
|
55295
55295
|
get url() {
|
55296
|
-
return
|
55296
|
+
return D(this, ep);
|
55297
55297
|
}
|
55298
55298
|
/**
|
55299
55299
|
* The callback to use when computing the FeeData.
|
55300
55300
|
*/
|
55301
55301
|
get processFunc() {
|
55302
|
-
return
|
55302
|
+
return D(this, tp);
|
55303
55303
|
}
|
55304
55304
|
// We are immutable, so we can serve as our own clone
|
55305
55305
|
clone() {
|
@@ -55332,7 +55332,7 @@ const rc = class rc {
|
|
55332
55332
|
* names.
|
55333
55333
|
*/
|
55334
55334
|
get name() {
|
55335
|
-
return
|
55335
|
+
return D(this, Gc);
|
55336
55336
|
}
|
55337
55337
|
set name(e) {
|
55338
55338
|
P(this, Gc, e);
|
@@ -55341,7 +55341,7 @@ const rc = class rc {
|
|
55341
55341
|
* The network chain ID.
|
55342
55342
|
*/
|
55343
55343
|
get chainId() {
|
55344
|
-
return
|
55344
|
+
return D(this, Wc);
|
55345
55345
|
}
|
55346
55346
|
set chainId(e) {
|
55347
55347
|
P(this, Wc, ke(e, "chainId"));
|
@@ -55386,16 +55386,16 @@ const rc = class rc {
|
|
55386
55386
|
* Returns the list of plugins currently attached to this Network.
|
55387
55387
|
*/
|
55388
55388
|
get plugins() {
|
55389
|
-
return Array.from(
|
55389
|
+
return Array.from(D(this, ea).values());
|
55390
55390
|
}
|
55391
55391
|
/**
|
55392
55392
|
* Attach a new %%plugin%% to this Network. The network name
|
55393
55393
|
* must be unique, excluding any fragment.
|
55394
55394
|
*/
|
55395
55395
|
attachPlugin(e) {
|
55396
|
-
if (
|
55396
|
+
if (D(this, ea).get(e.name))
|
55397
55397
|
throw new Error(`cannot replace existing plugin: ${e.name} `);
|
55398
|
-
return
|
55398
|
+
return D(this, ea).set(e.name, e.clone()), this;
|
55399
55399
|
}
|
55400
55400
|
/**
|
55401
55401
|
* Return the plugin, if any, matching %%name%% exactly. Plugins
|
@@ -55403,7 +55403,7 @@ const rc = class rc {
|
|
55403
55403
|
* a fragment.
|
55404
55404
|
*/
|
55405
55405
|
getPlugin(e) {
|
55406
|
-
return
|
55406
|
+
return D(this, ea).get(e) || null;
|
55407
55407
|
}
|
55408
55408
|
/**
|
55409
55409
|
* Gets a list of all plugins that match %%name%%, with otr without
|
@@ -55566,16 +55566,16 @@ class Rae {
|
|
55566
55566
|
* The polling interval.
|
55567
55567
|
*/
|
55568
55568
|
get pollingInterval() {
|
55569
|
-
return
|
55569
|
+
return D(this, ta);
|
55570
55570
|
}
|
55571
55571
|
set pollingInterval(e) {
|
55572
55572
|
P(this, ta, e);
|
55573
55573
|
}
|
55574
55574
|
start() {
|
55575
|
-
|
55575
|
+
D(this, Xr) || (P(this, Xr, D(this, Gi)._setTimeout(ce(this, Kc, om).bind(this), D(this, ta))), ce(this, Kc, om).call(this));
|
55576
55576
|
}
|
55577
55577
|
stop() {
|
55578
|
-
|
55578
|
+
D(this, Xr) && (D(this, Gi)._clearTimeout(D(this, Xr)), P(this, Xr, null));
|
55579
55579
|
}
|
55580
55580
|
pause(e) {
|
55581
55581
|
this.stop(), e && P(this, Ys, -2);
|
@@ -55586,22 +55586,22 @@ class Rae {
|
|
55586
55586
|
}
|
55587
55587
|
Gi = new WeakMap(), Xr = new WeakMap(), ta = new WeakMap(), Ys = new WeakMap(), Kc = new WeakSet(), om = async function() {
|
55588
55588
|
try {
|
55589
|
-
const e = await
|
55590
|
-
if (
|
55589
|
+
const e = await D(this, Gi).getBlockNumber();
|
55590
|
+
if (D(this, Ys) === -2) {
|
55591
55591
|
P(this, Ys, e);
|
55592
55592
|
return;
|
55593
55593
|
}
|
55594
|
-
if (e !==
|
55595
|
-
for (let n =
|
55596
|
-
if (
|
55594
|
+
if (e !== D(this, Ys)) {
|
55595
|
+
for (let n = D(this, Ys) + 1; n <= e; n++) {
|
55596
|
+
if (D(this, Xr) == null)
|
55597
55597
|
return;
|
55598
|
-
await
|
55598
|
+
await D(this, Gi).emit("block", n);
|
55599
55599
|
}
|
55600
55600
|
P(this, Ys, e);
|
55601
55601
|
}
|
55602
55602
|
} catch {
|
55603
55603
|
}
|
55604
|
-
|
55604
|
+
D(this, Xr) != null && P(this, Xr, D(this, Gi)._setTimeout(ce(this, Kc, om).bind(this), D(this, ta)));
|
55605
55605
|
};
|
55606
55606
|
var El, Cl, na;
|
55607
55607
|
class Nk {
|
@@ -55613,7 +55613,7 @@ class Nk {
|
|
55613
55613
|
Q(this, Cl);
|
55614
55614
|
Q(this, na);
|
55615
55615
|
P(this, El, e), P(this, na, !1), P(this, Cl, (n) => {
|
55616
|
-
this._poll(n,
|
55616
|
+
this._poll(n, D(this, El));
|
55617
55617
|
});
|
55618
55618
|
}
|
55619
55619
|
/**
|
@@ -55623,10 +55623,10 @@ class Nk {
|
|
55623
55623
|
throw new Error("sub-classes must override this");
|
55624
55624
|
}
|
55625
55625
|
start() {
|
55626
|
-
|
55626
|
+
D(this, na) || (P(this, na, !0), D(this, Cl).call(this, -2), D(this, El).on("block", D(this, Cl)));
|
55627
55627
|
}
|
55628
55628
|
stop() {
|
55629
|
-
|
55629
|
+
D(this, na) && (P(this, na, !1), D(this, El).off("block", D(this, Cl)));
|
55630
55630
|
}
|
55631
55631
|
pause(e) {
|
55632
55632
|
this.stop();
|
@@ -55648,8 +55648,8 @@ class _ae extends Nk {
|
|
55648
55648
|
n && P(this, Wi, -2), super.pause(n);
|
55649
55649
|
}
|
55650
55650
|
async _poll(n, r) {
|
55651
|
-
const s = await r.getBlock(
|
55652
|
-
s != null && (
|
55651
|
+
const s = await r.getBlock(D(this, qc));
|
55652
|
+
s != null && (D(this, Wi) === -2 ? P(this, Wi, s.number) : s.number > D(this, Wi) && (r.emit(D(this, qc), s.number), P(this, Wi, s.number)));
|
55653
55653
|
}
|
55654
55654
|
}
|
55655
55655
|
qc = new WeakMap(), Wi = new WeakMap();
|
@@ -55677,8 +55677,8 @@ class Nae extends Nk {
|
|
55677
55677
|
P(this, Qc, r);
|
55678
55678
|
}
|
55679
55679
|
async _poll(n, r) {
|
55680
|
-
const s = await r.getTransactionReceipt(
|
55681
|
-
s && r.emit(
|
55680
|
+
const s = await r.getTransactionReceipt(D(this, Qc));
|
55681
|
+
s && r.emit(D(this, Qc), s);
|
55682
55682
|
}
|
55683
55683
|
}
|
55684
55684
|
Qc = new WeakMap();
|
@@ -55700,12 +55700,12 @@ class Pk {
|
|
55700
55700
|
P(this, Ki, e), P(this, Jc, wv(n)), P(this, Yc, ce(this, dy, FI).bind(this)), P(this, ra, !1), P(this, Zr, -2);
|
55701
55701
|
}
|
55702
55702
|
start() {
|
55703
|
-
|
55703
|
+
D(this, ra) || (P(this, ra, !0), D(this, Zr) === -2 && D(this, Ki).getBlockNumber().then((e) => {
|
55704
55704
|
P(this, Zr, e);
|
55705
|
-
}),
|
55705
|
+
}), D(this, Ki).on("block", D(this, Yc)));
|
55706
55706
|
}
|
55707
55707
|
stop() {
|
55708
|
-
|
55708
|
+
D(this, ra) && (P(this, ra, !1), D(this, Ki).off("block", D(this, Yc)));
|
55709
55709
|
}
|
55710
55710
|
pause(e) {
|
55711
55711
|
this.stop(), e && P(this, Zr, -2);
|
@@ -55715,17 +55715,17 @@ class Pk {
|
|
55715
55715
|
}
|
55716
55716
|
}
|
55717
55717
|
Ki = new WeakMap(), Jc = new WeakMap(), Yc = new WeakMap(), ra = new WeakMap(), Zr = new WeakMap(), dy = new WeakSet(), FI = async function(e) {
|
55718
|
-
if (
|
55718
|
+
if (D(this, Zr) === -2)
|
55719
55719
|
return;
|
55720
|
-
const n = wv(
|
55721
|
-
n.fromBlock =
|
55722
|
-
const r = await
|
55720
|
+
const n = wv(D(this, Jc));
|
55721
|
+
n.fromBlock = D(this, Zr) + 1, n.toBlock = e;
|
55722
|
+
const r = await D(this, Ki).getLogs(n);
|
55723
55723
|
if (r.length === 0) {
|
55724
|
-
|
55724
|
+
D(this, Zr) < e - 60 && P(this, Zr, e - 60);
|
55725
55725
|
return;
|
55726
55726
|
}
|
55727
55727
|
for (const s of r)
|
55728
|
-
|
55728
|
+
D(this, Ki).emit(D(this, Jc), s), P(this, Zr, s.blockNumber);
|
55729
55729
|
};
|
55730
55730
|
const Pae = BigInt(2), Iae = 10;
|
55731
55731
|
function D0(t) {
|
@@ -55852,7 +55852,7 @@ class qg {
|
|
55852
55852
|
P(this, qi, -1), P(this, ia, /* @__PURE__ */ new Map()), P(this, Nn, /* @__PURE__ */ new Map()), P(this, sa, /* @__PURE__ */ new Map()), P(this, Pn, null), P(this, Xc, !1), P(this, np, 1), P(this, es, /* @__PURE__ */ new Map()), P(this, Zc, !1);
|
55853
55853
|
}
|
55854
55854
|
get pollingInterval() {
|
55855
|
-
return
|
55855
|
+
return D(this, ef).pollingInterval;
|
55856
55856
|
}
|
55857
55857
|
/**
|
55858
55858
|
* Returns ``this``, to allow an **AbstractProvider** to implement
|
@@ -55865,28 +55865,28 @@ class qg {
|
|
55865
55865
|
* Returns all the registered plug-ins.
|
55866
55866
|
*/
|
55867
55867
|
get plugins() {
|
55868
|
-
return Array.from(
|
55868
|
+
return Array.from(D(this, sa).values());
|
55869
55869
|
}
|
55870
55870
|
/**
|
55871
55871
|
* Attach a new plug-in.
|
55872
55872
|
*/
|
55873
55873
|
attachPlugin(e) {
|
55874
|
-
if (
|
55874
|
+
if (D(this, sa).get(e.name))
|
55875
55875
|
throw new Error(`cannot replace existing plugin: ${e.name} `);
|
55876
|
-
return
|
55876
|
+
return D(this, sa).set(e.name, e.connect(this)), this;
|
55877
55877
|
}
|
55878
55878
|
/**
|
55879
55879
|
* Get a plugin by name.
|
55880
55880
|
*/
|
55881
55881
|
getPlugin(e) {
|
55882
|
-
return
|
55882
|
+
return D(this, sa).get(e) || null;
|
55883
55883
|
}
|
55884
55884
|
/**
|
55885
55885
|
* Prevent any CCIP-read operation, regardless of whether requested
|
55886
55886
|
* in a [[call]] using ``enableCcipRead``.
|
55887
55887
|
*/
|
55888
55888
|
get disableCcipRead() {
|
55889
|
-
return
|
55889
|
+
return D(this, Zc);
|
55890
55890
|
}
|
55891
55891
|
set disableCcipRead(e) {
|
55892
55892
|
P(this, Zc, !!e);
|
@@ -55976,7 +55976,7 @@ class qg {
|
|
55976
55976
|
// State
|
55977
55977
|
async getBlockNumber() {
|
55978
55978
|
const e = Je(await ce(this, it, Sr).call(this, { method: "getBlockNumber" }), "%response");
|
55979
|
-
return
|
55979
|
+
return D(this, qi) >= 0 && P(this, qi, e), e;
|
55980
55980
|
}
|
55981
55981
|
/**
|
55982
55982
|
* Returns or resolves to the address for %%address%%, resolving ENS
|
@@ -56005,7 +56005,7 @@ class qg {
|
|
56005
56005
|
if (Dt(e))
|
56006
56006
|
return Dt(e, 32) ? e : ol(e);
|
56007
56007
|
if (typeof e == "bigint" && (e = Je(e, "blockTag")), typeof e == "number")
|
56008
|
-
return e >= 0 ? ol(e) :
|
56008
|
+
return e >= 0 ? ol(e) : D(this, qi) >= 0 ? ol(D(this, qi) + e) : this.getBlockNumber().then((n) => ol(n + e));
|
56009
56009
|
z(!1, "invalid blockTag", "blockTag", e);
|
56010
56010
|
}
|
56011
56011
|
/**
|
@@ -56067,23 +56067,23 @@ class qg {
|
|
56067
56067
|
}() : n;
|
56068
56068
|
}
|
56069
56069
|
async getNetwork() {
|
56070
|
-
if (
|
56070
|
+
if (D(this, _r) == null) {
|
56071
56071
|
const s = (async () => {
|
56072
56072
|
try {
|
56073
56073
|
const i = await this._detectNetwork();
|
56074
56074
|
return this.emit("network", i, null), i;
|
56075
56075
|
} catch (i) {
|
56076
|
-
throw
|
56076
|
+
throw D(this, _r) === s && P(this, _r, null), i;
|
56077
56077
|
}
|
56078
56078
|
})();
|
56079
56079
|
return P(this, _r, s), (await s).clone();
|
56080
56080
|
}
|
56081
|
-
const e =
|
56081
|
+
const e = D(this, _r), [n, r] = await Promise.all([
|
56082
56082
|
e,
|
56083
56083
|
this._detectNetwork()
|
56084
56084
|
// The actual connected network
|
56085
56085
|
]);
|
56086
|
-
return n.chainId !== r.chainId && (
|
56086
|
+
return n.chainId !== r.chainId && (D(this, Sl) ? (this.emit("network", r, n), D(this, _r) === e && P(this, _r, Promise.resolve(r))) : Z(!1, `network changed: ${n.chainId} => ${r.chainId} `, "NETWORK_ERROR", {
|
56087
56087
|
event: "changed"
|
56088
56088
|
})), n.clone();
|
56089
56089
|
}
|
@@ -56273,8 +56273,8 @@ class qg {
|
|
56273
56273
|
* Clear a timer created using the [[_setTimeout]] method.
|
56274
56274
|
*/
|
56275
56275
|
_clearTimeout(e) {
|
56276
|
-
const n =
|
56277
|
-
n && (n.timer && clearTimeout(n.timer),
|
56276
|
+
const n = D(this, es).get(e);
|
56277
|
+
n && (n.timer && clearTimeout(n.timer), D(this, es).delete(e));
|
56278
56278
|
}
|
56279
56279
|
/**
|
56280
56280
|
* Create a timer that will execute %%func%% after at least %%timeout%%
|
@@ -56287,13 +56287,13 @@ class qg {
|
|
56287
56287
|
_setTimeout(e, n) {
|
56288
56288
|
n == null && (n = 0);
|
56289
56289
|
const r = rd(this, np)._++, s = () => {
|
56290
|
-
|
56290
|
+
D(this, es).delete(r), e();
|
56291
56291
|
};
|
56292
56292
|
if (this.paused)
|
56293
|
-
|
56293
|
+
D(this, es).set(r, { timer: null, func: s, time: n });
|
56294
56294
|
else {
|
56295
56295
|
const i = setTimeout(s, n);
|
56296
|
-
|
56296
|
+
D(this, es).set(r, { timer: i, func: s, time: sw() });
|
56297
56297
|
}
|
56298
56298
|
return r;
|
56299
56299
|
}
|
@@ -56301,7 +56301,7 @@ class qg {
|
|
56301
56301
|
* Perform %%func%% on each subscriber.
|
56302
56302
|
*/
|
56303
56303
|
_forEachSubscriber(e) {
|
56304
|
-
for (const n of
|
56304
|
+
for (const n of D(this, Nn).values())
|
56305
56305
|
e(n.subscriber);
|
56306
56306
|
}
|
56307
56307
|
/**
|
@@ -56340,19 +56340,19 @@ class qg {
|
|
56340
56340
|
* to swap in a [[PollingEventSubscriber]].
|
56341
56341
|
*/
|
56342
56342
|
_recoverSubscriber(e, n) {
|
56343
|
-
for (const r of
|
56343
|
+
for (const r of D(this, Nn).values())
|
56344
56344
|
if (r.subscriber === e) {
|
56345
|
-
r.started && r.subscriber.stop(), r.subscriber = n, r.started && n.start(),
|
56345
|
+
r.started && r.subscriber.stop(), r.subscriber = n, r.started && n.start(), D(this, Pn) != null && n.pause(D(this, Pn));
|
56346
56346
|
break;
|
56347
56347
|
}
|
56348
56348
|
}
|
56349
56349
|
async on(e, n) {
|
56350
56350
|
const r = await ce(this, it, lm).call(this, e);
|
56351
|
-
return r.listeners.push({ listener: n, once: !1 }), r.started || (r.subscriber.start(), r.started = !0,
|
56351
|
+
return r.listeners.push({ listener: n, once: !1 }), r.started || (r.subscriber.start(), r.started = !0, D(this, Pn) != null && r.subscriber.pause(D(this, Pn))), this;
|
56352
56352
|
}
|
56353
56353
|
async once(e, n) {
|
56354
56354
|
const r = await ce(this, it, lm).call(this, e);
|
56355
|
-
return r.listeners.push({ listener: n, once: !0 }), r.started || (r.subscriber.start(), r.started = !0,
|
56355
|
+
return r.listeners.push({ listener: n, once: !0 }), r.started || (r.subscriber.start(), r.started = !0, D(this, Pn) != null && r.subscriber.pause(D(this, Pn))), this;
|
56356
56356
|
}
|
56357
56357
|
async emit(e, ...n) {
|
56358
56358
|
const r = await ce(this, it, xd).call(this, e, n);
|
@@ -56366,7 +56366,7 @@ class qg {
|
|
56366
56366
|
} catch {
|
56367
56367
|
}
|
56368
56368
|
return !o;
|
56369
|
-
}), r.listeners.length === 0 && (r.started && r.subscriber.stop(),
|
56369
|
+
}), r.listeners.length === 0 && (r.started && r.subscriber.stop(), D(this, Nn).delete(r.tag)), s > 0;
|
56370
56370
|
}
|
56371
56371
|
async listenerCount(e) {
|
56372
56372
|
if (e) {
|
@@ -56374,7 +56374,7 @@ class qg {
|
|
56374
56374
|
return r ? r.listeners.length : 0;
|
56375
56375
|
}
|
56376
56376
|
let n = 0;
|
56377
|
-
for (const { listeners: r } of
|
56377
|
+
for (const { listeners: r } of D(this, Nn).values())
|
56378
56378
|
n += r.length;
|
56379
56379
|
return n;
|
56380
56380
|
}
|
@@ -56384,7 +56384,7 @@ class qg {
|
|
56384
56384
|
return r ? r.listeners.map(({ listener: s }) => s) : [];
|
56385
56385
|
}
|
56386
56386
|
let n = [];
|
56387
|
-
for (const { listeners: r } of
|
56387
|
+
for (const { listeners: r } of D(this, Nn).values())
|
56388
56388
|
n = n.concat(r.map(({ listener: s }) => s));
|
56389
56389
|
return n;
|
56390
56390
|
}
|
@@ -56396,15 +56396,15 @@ class qg {
|
|
56396
56396
|
const s = r.listeners.map(({ listener: i }) => i).indexOf(n);
|
56397
56397
|
s >= 0 && r.listeners.splice(s, 1);
|
56398
56398
|
}
|
56399
|
-
return (!n || r.listeners.length === 0) && (r.started && r.subscriber.stop(),
|
56399
|
+
return (!n || r.listeners.length === 0) && (r.started && r.subscriber.stop(), D(this, Nn).delete(r.tag)), this;
|
56400
56400
|
}
|
56401
56401
|
async removeAllListeners(e) {
|
56402
56402
|
if (e) {
|
56403
56403
|
const { tag: n, started: r, subscriber: s } = await ce(this, it, lm).call(this, e);
|
56404
|
-
r && s.stop(),
|
56404
|
+
r && s.stop(), D(this, Nn).delete(n);
|
56405
56405
|
} else
|
56406
|
-
for (const [n, { started: r, subscriber: s }] of
|
56407
|
-
r && s.stop(),
|
56406
|
+
for (const [n, { started: r, subscriber: s }] of D(this, Nn))
|
56407
|
+
r && s.stop(), D(this, Nn).delete(n);
|
56408
56408
|
return this;
|
56409
56409
|
}
|
56410
56410
|
// Alias for "on"
|
@@ -56423,7 +56423,7 @@ class qg {
|
|
56423
56423
|
* the provider.
|
56424
56424
|
*/
|
56425
56425
|
get destroyed() {
|
56426
|
-
return
|
56426
|
+
return D(this, Xc);
|
56427
56427
|
}
|
56428
56428
|
/**
|
56429
56429
|
* Sub-classes may use this to shutdown any sockets or release their
|
@@ -56433,7 +56433,7 @@ class qg {
|
|
56433
56433
|
*/
|
56434
56434
|
destroy() {
|
56435
56435
|
this.removeAllListeners();
|
56436
|
-
for (const e of
|
56436
|
+
for (const e of D(this, es).keys())
|
56437
56437
|
this._clearTimeout(e);
|
56438
56438
|
P(this, Xc, !0);
|
56439
56439
|
}
|
@@ -56449,7 +56449,7 @@ class qg {
|
|
56449
56449
|
* provider is unpaused.
|
56450
56450
|
*/
|
56451
56451
|
get paused() {
|
56452
|
-
return
|
56452
|
+
return D(this, Pn) != null;
|
56453
56453
|
}
|
56454
56454
|
set paused(e) {
|
56455
56455
|
!!e !== this.paused && (this.paused ? this.resume() : this.pause(!1));
|
@@ -56460,24 +56460,24 @@ class qg {
|
|
56460
56460
|
* the provider is unpaused.
|
56461
56461
|
*/
|
56462
56462
|
pause(e) {
|
56463
|
-
if (P(this, qi, -1),
|
56464
|
-
if (
|
56463
|
+
if (P(this, qi, -1), D(this, Pn) != null) {
|
56464
|
+
if (D(this, Pn) == !!e)
|
56465
56465
|
return;
|
56466
56466
|
Z(!1, "cannot change pause type; resume first", "UNSUPPORTED_OPERATION", {
|
56467
56467
|
operation: "pause"
|
56468
56468
|
});
|
56469
56469
|
}
|
56470
56470
|
this._forEachSubscriber((n) => n.pause(e)), P(this, Pn, !!e);
|
56471
|
-
for (const n of
|
56471
|
+
for (const n of D(this, es).values())
|
56472
56472
|
n.timer && clearTimeout(n.timer), n.time = sw() - n.time;
|
56473
56473
|
}
|
56474
56474
|
/**
|
56475
56475
|
* Resume the provider.
|
56476
56476
|
*/
|
56477
56477
|
resume() {
|
56478
|
-
if (
|
56478
|
+
if (D(this, Pn) != null) {
|
56479
56479
|
this._forEachSubscriber((e) => e.resume()), P(this, Pn, null);
|
56480
|
-
for (const e of
|
56480
|
+
for (const e of D(this, es).values()) {
|
56481
56481
|
let n = e.time;
|
56482
56482
|
n < 0 && (n = 0), e.time = sw(), setTimeout(e.func, n);
|
56483
56483
|
}
|
@@ -56485,13 +56485,13 @@ class qg {
|
|
56485
56485
|
}
|
56486
56486
|
}
|
56487
56487
|
Nn = new WeakMap(), sa = new WeakMap(), Pn = new WeakMap(), Xc = new WeakMap(), _r = new WeakMap(), Sl = new WeakMap(), ia = new WeakMap(), qi = new WeakMap(), np = new WeakMap(), es = new WeakMap(), Zc = new WeakMap(), ef = new WeakMap(), it = new WeakSet(), Sr = async function(e) {
|
56488
|
-
const n =
|
56488
|
+
const n = D(this, ef).cacheTimeout;
|
56489
56489
|
if (n < 0)
|
56490
56490
|
return await this._perform(e);
|
56491
56491
|
const r = am(e.method, e);
|
56492
|
-
let s =
|
56493
|
-
return s || (s = this._perform(e),
|
56494
|
-
|
56492
|
+
let s = D(this, ia).get(r);
|
56493
|
+
return s || (s = this._perform(e), D(this, ia).set(r, s), setTimeout(() => {
|
56494
|
+
D(this, ia).get(r) === s && D(this, ia).delete(r);
|
56495
56495
|
}, n)), await s;
|
56496
56496
|
}, vv = async function(e, n, r) {
|
56497
56497
|
Z(r < Iae, "CCIP read exceeded maximum redirections", "OFFCHAIN_FAULT", {
|
@@ -56570,11 +56570,11 @@ Nn = new WeakMap(), sa = new WeakMap(), Pn = new WeakMap(), Xc = new WeakMap(),
|
|
56570
56570
|
});
|
56571
56571
|
}, xd = async function(e, n) {
|
56572
56572
|
let r = await rw(e, this);
|
56573
|
-
return r.type === "event" && n && n.length > 0 && n[0].removed === !0 && (r = await rw({ orphan: "drop-log", log: n[0] }, this)),
|
56573
|
+
return r.type === "event" && n && n.length > 0 && n[0].removed === !0 && (r = await rw({ orphan: "drop-log", log: n[0] }, this)), D(this, Nn).get(r.tag) || null;
|
56574
56574
|
}, lm = async function(e) {
|
56575
56575
|
const n = await rw(e, this), r = n.tag;
|
56576
|
-
let s =
|
56577
|
-
return s || (s = { subscriber: this._getSubscriber(n), tag: r, addressableMap: /* @__PURE__ */ new WeakMap(), nameMap: /* @__PURE__ */ new Map(), started: !1, listeners: [] },
|
56576
|
+
let s = D(this, Nn).get(r);
|
56577
|
+
return s || (s = { subscriber: this._getSubscriber(n), tag: r, addressableMap: /* @__PURE__ */ new WeakMap(), nameMap: /* @__PURE__ */ new Map(), started: !1, listeners: [] }, D(this, Nn).set(r, s)), s;
|
56578
56578
|
};
|
56579
56579
|
function Fae(t, e) {
|
56580
56580
|
try {
|
@@ -56804,13 +56804,13 @@ class jI {
|
|
56804
56804
|
throw new Error("subclasses must override this");
|
56805
56805
|
}
|
56806
56806
|
start() {
|
56807
|
-
|
56807
|
+
D(this, oa) || (P(this, oa, !0), ce(this, Ma, Cv).call(this, -2));
|
56808
56808
|
}
|
56809
56809
|
stop() {
|
56810
|
-
|
56810
|
+
D(this, oa) && (P(this, oa, !1), P(this, tf, !0), ce(this, Ma, Sv).call(this), D(this, Gn).off("block", D(this, Tl)));
|
56811
56811
|
}
|
56812
56812
|
pause(e) {
|
56813
|
-
e && ce(this, Ma, Sv).call(this),
|
56813
|
+
e && ce(this, Ma, Sv).call(this), D(this, Gn).off("block", D(this, Tl));
|
56814
56814
|
}
|
56815
56815
|
resume() {
|
56816
56816
|
this.start();
|
@@ -56818,33 +56818,33 @@ class jI {
|
|
56818
56818
|
}
|
56819
56819
|
Gn = new WeakMap(), Xs = new WeakMap(), Tl = new WeakMap(), oa = new WeakMap(), Dl = new WeakMap(), tf = new WeakMap(), Ma = new WeakSet(), Cv = async function(e) {
|
56820
56820
|
try {
|
56821
|
-
|
56821
|
+
D(this, Xs) == null && P(this, Xs, this._subscribe(D(this, Gn)));
|
56822
56822
|
let n = null;
|
56823
56823
|
try {
|
56824
|
-
n = await
|
56824
|
+
n = await D(this, Xs);
|
56825
56825
|
} catch (i) {
|
56826
56826
|
if (!yn(i, "UNSUPPORTED_OPERATION") || i.operation !== "eth_newFilter")
|
56827
56827
|
throw i;
|
56828
56828
|
}
|
56829
56829
|
if (n == null) {
|
56830
|
-
P(this, Xs, null),
|
56830
|
+
P(this, Xs, null), D(this, Gn)._recoverSubscriber(this, this._recover(D(this, Gn)));
|
56831
56831
|
return;
|
56832
56832
|
}
|
56833
|
-
const r = await
|
56834
|
-
if (
|
56833
|
+
const r = await D(this, Gn).getNetwork();
|
56834
|
+
if (D(this, Dl) || P(this, Dl, r), D(this, Dl).chainId !== r.chainId)
|
56835
56835
|
throw new Error("chaid changed");
|
56836
|
-
if (
|
56836
|
+
if (D(this, tf))
|
56837
56837
|
return;
|
56838
|
-
const s = await
|
56839
|
-
await this._emitResults(
|
56838
|
+
const s = await D(this, Gn).send("eth_getFilterChanges", [n]);
|
56839
|
+
await this._emitResults(D(this, Gn), s);
|
56840
56840
|
} catch (n) {
|
56841
56841
|
console.log("@TODO", n);
|
56842
56842
|
}
|
56843
|
-
|
56843
|
+
D(this, Gn).once("block", D(this, Tl));
|
56844
56844
|
}, Sv = function() {
|
56845
|
-
const e =
|
56845
|
+
const e = D(this, Xs);
|
56846
56846
|
e && (P(this, Xs, null), e.then((n) => {
|
56847
|
-
|
56847
|
+
D(this, Gn).destroyed || D(this, Gn).send("eth_uninstallFilter", [n]);
|
56848
56848
|
}));
|
56849
56849
|
};
|
56850
56850
|
var Ol;
|
@@ -56859,14 +56859,14 @@ class Gae extends jI {
|
|
56859
56859
|
P(this, Ol, $ae(r));
|
56860
56860
|
}
|
56861
56861
|
_recover(n) {
|
56862
|
-
return new Pk(n,
|
56862
|
+
return new Pk(n, D(this, Ol));
|
56863
56863
|
}
|
56864
56864
|
async _subscribe(n) {
|
56865
|
-
return await n.send("eth_newFilter", [
|
56865
|
+
return await n.send("eth_newFilter", [D(this, Ol)]);
|
56866
56866
|
}
|
56867
56867
|
async _emitResults(n, r) {
|
56868
56868
|
for (const s of r)
|
56869
|
-
n.emit(
|
56869
|
+
n.emit(D(this, Ol), n._wrapLog(s, n._network));
|
56870
56870
|
}
|
56871
56871
|
}
|
56872
56872
|
Ol = new WeakMap();
|
@@ -57055,14 +57055,14 @@ class VI extends qg {
|
|
57055
57055
|
* Sub-classes can use this to inquire about configuration options.
|
57056
57056
|
*/
|
57057
57057
|
_getOption(n) {
|
57058
|
-
return
|
57058
|
+
return D(this, Rl)[n];
|
57059
57059
|
}
|
57060
57060
|
/**
|
57061
57061
|
* Gets the [[Network]] this provider has committed to. On each call, the network
|
57062
57062
|
* is detected, and if it has changed, the call will reject.
|
57063
57063
|
*/
|
57064
57064
|
get _network() {
|
57065
|
-
return Z(
|
57065
|
+
return Z(D(this, ts), "network is not available yet", "NETWORK_ERROR"), D(this, ts);
|
57066
57066
|
}
|
57067
57067
|
/**
|
57068
57068
|
* Resolves to the non-normalized value by performing %%req%%.
|
@@ -57094,18 +57094,18 @@ class VI extends qg {
|
|
57094
57094
|
const n = this._getOption("staticNetwork");
|
57095
57095
|
if (n)
|
57096
57096
|
if (n === !0) {
|
57097
|
-
if (
|
57098
|
-
return
|
57097
|
+
if (D(this, ts))
|
57098
|
+
return D(this, ts);
|
57099
57099
|
} else
|
57100
57100
|
return n;
|
57101
|
-
return
|
57101
|
+
return D(this, ur) ? await D(this, ur) : this.ready ? (P(this, ur, (async () => {
|
57102
57102
|
try {
|
57103
57103
|
const r = ln.from(ke(await this.send("eth_chainId", [])));
|
57104
57104
|
return P(this, ur, null), r;
|
57105
57105
|
} catch (r) {
|
57106
57106
|
throw P(this, ur, null), r;
|
57107
57107
|
}
|
57108
|
-
})()), await
|
57108
|
+
})()), await D(this, ur)) : (P(this, ur, (async () => {
|
57109
57109
|
const r = {
|
57110
57110
|
id: rd(this, nf)._++,
|
57111
57111
|
method: "eth_chainId",
|
@@ -57122,7 +57122,7 @@ class VI extends qg {
|
|
57122
57122
|
if (this.emit("debug", { action: "receiveRpcResult", result: s }), "result" in s)
|
57123
57123
|
return ln.from(ke(s.result));
|
57124
57124
|
throw this.getRpcError(r, s);
|
57125
|
-
})()), await
|
57125
|
+
})()), await D(this, ur));
|
57126
57126
|
}
|
57127
57127
|
/**
|
57128
57128
|
* Sub-classes **MUST** call this. Until [[_start]] has been called, no calls
|
@@ -57132,8 +57132,8 @@ class VI extends qg {
|
|
57132
57132
|
* Calling it multiple times is safe and has no effect.
|
57133
57133
|
*/
|
57134
57134
|
_start() {
|
57135
|
-
|
57136
|
-
for (;
|
57135
|
+
D(this, As) == null || D(this, As).resolve == null || (D(this, As).resolve(), P(this, As, null), (async () => {
|
57136
|
+
for (; D(this, ts) == null && !this.destroyed; )
|
57137
57137
|
try {
|
57138
57138
|
P(this, ts, await this._detectNetwork());
|
57139
57139
|
} catch (n) {
|
@@ -57150,8 +57150,8 @@ class VI extends qg {
|
|
57150
57150
|
* established.
|
57151
57151
|
*/
|
57152
57152
|
async _waitUntilReady() {
|
57153
|
-
if (
|
57154
|
-
return await
|
57153
|
+
if (D(this, As) != null)
|
57154
|
+
return await D(this, As).promise;
|
57155
57155
|
}
|
57156
57156
|
/**
|
57157
57157
|
* Return a Subscriber that will manage the %%sub%%.
|
@@ -57166,7 +57166,7 @@ class VI extends qg {
|
|
57166
57166
|
* Returns true only if the [[_start]] has been called.
|
57167
57167
|
*/
|
57168
57168
|
get ready() {
|
57169
|
-
return
|
57169
|
+
return D(this, As) == null;
|
57170
57170
|
}
|
57171
57171
|
/**
|
57172
57172
|
* Returns %%tx%% as a normalized JSON-RPC transaction request,
|
@@ -57339,7 +57339,7 @@ class VI extends qg {
|
|
57339
57339
|
if (this.destroyed)
|
57340
57340
|
return Promise.reject(_t("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: n }));
|
57341
57341
|
const s = rd(this, nf)._++, i = new Promise((o, a) => {
|
57342
|
-
|
57342
|
+
D(this, Qi).push({
|
57343
57343
|
resolve: o,
|
57344
57344
|
reject: a,
|
57345
57345
|
payload: { method: n, params: r, id: s, jsonrpc: "2.0" }
|
@@ -57382,23 +57382,23 @@ class VI extends qg {
|
|
57382
57382
|
return (await this.send("eth_accounts", [])).map((r) => new iw(this, r));
|
57383
57383
|
}
|
57384
57384
|
destroy() {
|
57385
|
-
|
57386
|
-
for (const { payload: n, reject: r } of
|
57385
|
+
D(this, Zs) && (clearTimeout(D(this, Zs)), P(this, Zs, null));
|
57386
|
+
for (const { payload: n, reject: r } of D(this, Qi))
|
57387
57387
|
r(_t("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: n.method }));
|
57388
57388
|
P(this, Qi, []), super.destroy();
|
57389
57389
|
}
|
57390
57390
|
}
|
57391
57391
|
Rl = new WeakMap(), nf = new WeakMap(), Qi = new WeakMap(), Zs = new WeakMap(), As = new WeakMap(), ts = new WeakMap(), ur = new WeakMap(), rp = new WeakSet(), Tv = function() {
|
57392
|
-
if (
|
57392
|
+
if (D(this, Zs))
|
57393
57393
|
return;
|
57394
57394
|
const n = this._getOption("batchMaxCount") === 1 ? 0 : this._getOption("batchStallTime");
|
57395
57395
|
P(this, Zs, setTimeout(() => {
|
57396
57396
|
P(this, Zs, null);
|
57397
|
-
const r =
|
57397
|
+
const r = D(this, Qi);
|
57398
57398
|
for (P(this, Qi, []); r.length; ) {
|
57399
57399
|
const s = [r.shift()];
|
57400
|
-
for (; r.length && s.length !==
|
57401
|
-
if (s.push(r.shift()), JSON.stringify(s.map((o) => o.payload)).length >
|
57400
|
+
for (; r.length && s.length !== D(this, Rl).batchMaxCount; )
|
57401
|
+
if (s.push(r.shift()), JSON.stringify(s.map((o) => o.payload)).length > D(this, Rl).batchMaxSize) {
|
57402
57402
|
r.unshift(s.pop());
|
57403
57403
|
break;
|
57404
57404
|
}
|
@@ -57447,19 +57447,19 @@ class Qae extends VI {
|
|
57447
57447
|
}
|
57448
57448
|
_getSubscriber(n) {
|
57449
57449
|
const r = super._getSubscriber(n);
|
57450
|
-
return ND(r) && (r.pollingInterval =
|
57450
|
+
return ND(r) && (r.pollingInterval = D(this, aa)), r;
|
57451
57451
|
}
|
57452
57452
|
/**
|
57453
57453
|
* The polling interval (default: 4000 ms)
|
57454
57454
|
*/
|
57455
57455
|
get pollingInterval() {
|
57456
|
-
return
|
57456
|
+
return D(this, aa);
|
57457
57457
|
}
|
57458
57458
|
set pollingInterval(n) {
|
57459
57459
|
if (!Number.isInteger(n) || n < 0)
|
57460
57460
|
throw new Error("invalid interval");
|
57461
57461
|
P(this, aa, n), this._forEachSubscriber((r) => {
|
57462
|
-
ND(r) && (r.pollingInterval =
|
57462
|
+
ND(r) && (r.pollingInterval = D(this, aa));
|
57463
57463
|
});
|
57464
57464
|
}
|
57465
57465
|
}
|
@@ -57473,7 +57473,7 @@ class ao extends Qae {
|
|
57473
57473
|
typeof n == "string" ? P(this, rf, new rr(n)) : P(this, rf, n.clone());
|
57474
57474
|
}
|
57475
57475
|
_getConnection() {
|
57476
|
-
return
|
57476
|
+
return D(this, rf).clone();
|
57477
57477
|
}
|
57478
57478
|
async send(n, r) {
|
57479
57479
|
return await this._start(), await super.send(n, r);
|
@@ -57792,8 +57792,8 @@ class ile extends qg {
|
|
57792
57792
|
* baseUrl.
|
57793
57793
|
*/
|
57794
57794
|
getBaseUrl() {
|
57795
|
-
if (
|
57796
|
-
return
|
57795
|
+
if (D(this, sf))
|
57796
|
+
return D(this, sf).baseUrl;
|
57797
57797
|
switch (this.network.name) {
|
57798
57798
|
case "mainnet":
|
57799
57799
|
return "https://api.etherscan.io";
|
@@ -58094,14 +58094,14 @@ class Ik {
|
|
58094
58094
|
* The filter.
|
58095
58095
|
*/
|
58096
58096
|
get filter() {
|
58097
|
-
return JSON.parse(
|
58097
|
+
return JSON.parse(D(this, sp));
|
58098
58098
|
}
|
58099
58099
|
start() {
|
58100
|
-
P(this, la,
|
58100
|
+
P(this, la, D(this, ei).send("eth_subscribe", this.filter).then((e) => (D(this, ei)._register(e, this), e)));
|
58101
58101
|
}
|
58102
58102
|
stop() {
|
58103
|
-
|
58104
|
-
|
58103
|
+
D(this, la).then((e) => {
|
58104
|
+
D(this, ei).destroyed || D(this, ei).send("eth_unsubscribe", [e]);
|
58105
58105
|
}), P(this, la, null);
|
58106
58106
|
}
|
58107
58107
|
// @TODO: pause should trap the current blockNumber, unsub, and on resume use getLogs
|
@@ -58116,12 +58116,12 @@ class Ik {
|
|
58116
58116
|
* @_ignore:
|
58117
58117
|
*/
|
58118
58118
|
_handleMessage(e) {
|
58119
|
-
if (
|
58120
|
-
let n =
|
58121
|
-
n == null ? n = this._emit(
|
58122
|
-
await this._emit(
|
58119
|
+
if (D(this, la) != null && D(this, _l) === null) {
|
58120
|
+
let n = D(this, ua);
|
58121
|
+
n == null ? n = this._emit(D(this, ei), e) : n = n.then(async () => {
|
58122
|
+
await this._emit(D(this, ei), e);
|
58123
58123
|
}), P(this, ua, n.then(() => {
|
58124
|
-
|
58124
|
+
D(this, ua) === n && P(this, ua, null);
|
58125
58125
|
}));
|
58126
58126
|
}
|
58127
58127
|
}
|
@@ -58170,7 +58170,7 @@ class cle extends Ik {
|
|
58170
58170
|
* The filter.
|
58171
58171
|
*/
|
58172
58172
|
get logFilter() {
|
58173
|
-
return JSON.parse(
|
58173
|
+
return JSON.parse(D(this, ip));
|
58174
58174
|
}
|
58175
58175
|
async _emit(n, r) {
|
58176
58176
|
n.emit(this.logFilter, n._wrapLog(r, n._network));
|
@@ -58226,18 +58226,18 @@ class fle extends VI {
|
|
58226
58226
|
* and generally is unecessary unless extending capabilities.
|
58227
58227
|
*/
|
58228
58228
|
_register(n, r) {
|
58229
|
-
|
58230
|
-
const s =
|
58229
|
+
D(this, of).set(n, r);
|
58230
|
+
const s = D(this, ca).get(n);
|
58231
58231
|
if (s) {
|
58232
58232
|
for (const i of s)
|
58233
58233
|
r._handleMessage(i);
|
58234
|
-
|
58234
|
+
D(this, ca).delete(n);
|
58235
58235
|
}
|
58236
58236
|
}
|
58237
58237
|
async _send(n) {
|
58238
58238
|
z(!Array.isArray(n), "WebSocket does not support batch send", "payload", n);
|
58239
58239
|
const r = new Promise((s, i) => {
|
58240
|
-
|
58240
|
+
D(this, Ml).set(n.id, { payload: n, resolve: s, reject: i });
|
58241
58241
|
});
|
58242
58242
|
return await this._waitUntilReady(), await this._write(JSON.stringify(n)), [await r];
|
58243
58243
|
}
|
@@ -58262,7 +58262,7 @@ class fle extends VI {
|
|
58262
58262
|
async _processMessage(n) {
|
58263
58263
|
const r = JSON.parse(n);
|
58264
58264
|
if (r && typeof r == "object" && "id" in r) {
|
58265
|
-
const s =
|
58265
|
+
const s = D(this, Ml).get(r.id);
|
58266
58266
|
if (s == null) {
|
58267
58267
|
this.emit("error", _t("received result for unknown id", "UNKNOWN_ERROR", {
|
58268
58268
|
reasonCode: "UNKNOWN_ID",
|
@@ -58270,14 +58270,14 @@ class fle extends VI {
|
|
58270
58270
|
}));
|
58271
58271
|
return;
|
58272
58272
|
}
|
58273
|
-
|
58273
|
+
D(this, Ml).delete(r.id), s.resolve(r);
|
58274
58274
|
} else if (r && r.method === "eth_subscription") {
|
58275
|
-
const s = r.params.subscription, i =
|
58275
|
+
const s = r.params.subscription, i = D(this, of).get(s);
|
58276
58276
|
if (i)
|
58277
58277
|
i._handleMessage(r.params.result);
|
58278
58278
|
else {
|
58279
|
-
let o =
|
58280
|
-
o == null && (o = [],
|
58279
|
+
let o = D(this, ca).get(s);
|
58280
|
+
o == null && (o = [], D(this, ca).set(s, o)), o.push(r.params.result);
|
58281
58281
|
}
|
58282
58282
|
} else {
|
58283
58283
|
this.emit("error", _t("received unexpected message", "UNKNOWN_ERROR", {
|
@@ -58302,7 +58302,7 @@ class HI extends fle {
|
|
58302
58302
|
super(r, s);
|
58303
58303
|
Q(this, Nl);
|
58304
58304
|
Q(this, vs);
|
58305
|
-
typeof n == "string" ? (P(this, Nl, () => new ale(n)), P(this, vs,
|
58305
|
+
typeof n == "string" ? (P(this, Nl, () => new ale(n)), P(this, vs, D(this, Nl).call(this))) : typeof n == "function" ? (P(this, Nl, n), P(this, vs, n())) : (P(this, Nl, null), P(this, vs, n)), this.websocket.onopen = async () => {
|
58306
58306
|
try {
|
58307
58307
|
await this._start(), this.resume();
|
58308
58308
|
} catch (i) {
|
@@ -58313,15 +58313,15 @@ class HI extends fle {
|
|
58313
58313
|
};
|
58314
58314
|
}
|
58315
58315
|
get websocket() {
|
58316
|
-
if (
|
58316
|
+
if (D(this, vs) == null)
|
58317
58317
|
throw new Error("websocket closed");
|
58318
|
-
return
|
58318
|
+
return D(this, vs);
|
58319
58319
|
}
|
58320
58320
|
async _write(n) {
|
58321
58321
|
this.websocket.send(n);
|
58322
58322
|
}
|
58323
58323
|
async destroy() {
|
58324
|
-
|
58324
|
+
D(this, vs) != null && (D(this, vs).close(), P(this, vs, null)), super.destroy();
|
58325
58325
|
}
|
58326
58326
|
}
|
58327
58327
|
Nl = new WeakMap(), vs = new WeakMap();
|
@@ -58684,10 +58684,10 @@ class vle extends qg {
|
|
58684
58684
|
Q(this, cr);
|
58685
58685
|
Q(this, Ji);
|
58686
58686
|
Q(this, af);
|
58687
|
-
P(this, cr, n.map((i) => i instanceof qg ? Object.assign({ provider: i }, ID, LD) : Object.assign({}, ID, i, LD))), P(this, Ji, -2), P(this, af, null), s && s.quorum != null ? this.quorum = s.quorum : this.quorum = Math.ceil(
|
58687
|
+
P(this, cr, n.map((i) => i instanceof qg ? Object.assign({ provider: i }, ID, LD) : Object.assign({}, ID, i, LD))), P(this, Ji, -2), P(this, af, null), s && s.quorum != null ? this.quorum = s.quorum : this.quorum = Math.ceil(D(this, cr).reduce((i, o) => (i += o.weight, i), 0) / 2), this.eventQuorum = 1, this.eventWorkers = 1, z(this.quorum <= D(this, cr).reduce((i, o) => i + o.weight, 0), "quorum exceed provider weight", "quorum", this.quorum);
|
58688
58688
|
}
|
58689
58689
|
get providerConfigs() {
|
58690
|
-
return
|
58690
|
+
return D(this, cr).map((n) => {
|
58691
58691
|
const r = Object.assign({}, n);
|
58692
58692
|
for (const s in r)
|
58693
58693
|
s[0] === "_" && delete r[s];
|
@@ -58744,7 +58744,7 @@ class vle extends qg {
|
|
58744
58744
|
}
|
58745
58745
|
async _perform(n) {
|
58746
58746
|
if (n.method === "broadcastTransaction") {
|
58747
|
-
const o =
|
58747
|
+
const o = D(this, cr).map((u) => null), a = D(this, cr).map(async ({ provider: u, weight: c }, f) => {
|
58748
58748
|
try {
|
58749
58749
|
const d = await u._perform(n);
|
58750
58750
|
o[f] = Object.assign(aw({ result: d }), { weight: c });
|
@@ -58787,7 +58787,7 @@ class vle extends qg {
|
|
58787
58787
|
return i;
|
58788
58788
|
}
|
58789
58789
|
async destroy() {
|
58790
|
-
for (const { provider: n } of
|
58790
|
+
for (const { provider: n } of D(this, cr))
|
58791
58791
|
n.destroy();
|
58792
58792
|
super.destroy();
|
58793
58793
|
}
|
@@ -58795,7 +58795,7 @@ class vle extends qg {
|
|
58795
58795
|
cr = new WeakMap(), Ji = new WeakMap(), af = new WeakMap(), kr = new WeakSet(), // Grab the next (random) config that is not already part of
|
58796
58796
|
// the running set
|
58797
58797
|
zI = function(n) {
|
58798
|
-
const r = Array.from(n).map((i) => i.config), s =
|
58798
|
+
const r = Array.from(n).map((i) => i.config), s = D(this, cr).slice();
|
58799
58799
|
yle(s), s.sort((i, o) => i.priority - o.priority);
|
58800
58800
|
for (const i of s)
|
58801
58801
|
if (!i._lastFatalError && r.indexOf(i) === -1)
|
@@ -58827,17 +58827,17 @@ Mv = function(n, r) {
|
|
58827
58827
|
await ble(s.stallTimeout), i.staller = null;
|
58828
58828
|
})(), n.add(i), i;
|
58829
58829
|
}, $I = async function() {
|
58830
|
-
let n =
|
58830
|
+
let n = D(this, af);
|
58831
58831
|
if (!n) {
|
58832
58832
|
const r = [];
|
58833
|
-
|
58833
|
+
D(this, cr).forEach((s) => {
|
58834
58834
|
r.push((async () => {
|
58835
58835
|
await wle(s, 0), s._lastFatalError || (s._network = await s.provider.getNetwork());
|
58836
58836
|
})());
|
58837
58837
|
}), P(this, af, n = (async () => {
|
58838
58838
|
await Promise.all(r);
|
58839
58839
|
let s = null;
|
58840
|
-
for (const i of
|
58840
|
+
for (const i of D(this, cr)) {
|
58841
58841
|
if (i._lastFatalError)
|
58842
58842
|
continue;
|
58843
58843
|
const o = i._network;
|
@@ -58858,13 +58858,13 @@ Mv = function(n, r) {
|
|
58858
58858
|
if (!(s.reduce((i, o) => i + o.weight, 0) < this.quorum)) {
|
58859
58859
|
switch (r.method) {
|
58860
58860
|
case "getBlockNumber": {
|
58861
|
-
|
58861
|
+
D(this, Ji) === -2 && P(this, Ji, Math.ceil(Je(_v(this.quorum, D(this, cr).filter((o) => !o._lastFatalError).map((o) => ({
|
58862
58862
|
value: o.blockNumber,
|
58863
58863
|
tag: Je(o.blockNumber).toString(),
|
58864
58864
|
weight: o.weight
|
58865
58865
|
}))))));
|
58866
58866
|
const i = Ale(this.quorum, s);
|
58867
|
-
return i === void 0 ? void 0 : (i >
|
58867
|
+
return i === void 0 ? void 0 : (i > D(this, Ji) && P(this, Ji, i), D(this, Ji));
|
58868
58868
|
}
|
58869
58869
|
case "getGasPrice":
|
58870
58870
|
case "getPriorityFee":
|
@@ -59028,10 +59028,10 @@ function _le({ pluginKey: t = Rle, editor: e, char: n = "@", allowSpaces: r = !1
|
|
59028
59028
|
return {
|
59029
59029
|
update: async (g, y) => {
|
59030
59030
|
var v, w, A, x, k, C, O;
|
59031
|
-
const R = (v = this.key) === null || v === void 0 ? void 0 : v.getState(y),
|
59031
|
+
const R = (v = this.key) === null || v === void 0 ? void 0 : v.getState(y), T = (w = this.key) === null || w === void 0 ? void 0 : w.getState(g.state), M = R.active && T.active && R.range.from !== T.range.from, I = !R.active && T.active, B = R.active && !T.active, $ = !I && !B && R.query !== T.query, L = I, V = $ || M, q = B;
|
59032
59032
|
if (!L && !V && !q)
|
59033
59033
|
return;
|
59034
|
-
const ee = q && !L ? R :
|
59034
|
+
const ee = q && !L ? R : T, X = g.dom.querySelector(`[data-decoration-id="${ee.decorationId}"]`);
|
59035
59035
|
h = {
|
59036
59036
|
editor: e,
|
59037
59037
|
range: ee.range,
|
@@ -59081,19 +59081,19 @@ function _le({ pluginKey: t = Rle, editor: e, char: n = "@", allowSpaces: r = !1
|
|
59081
59081
|
const { isEditable: A } = e, { composing: x } = e.view, { selection: k } = g, { empty: C, from: O } = k, R = { ...y };
|
59082
59082
|
if (R.composing = x, A && (C || e.view.composing)) {
|
59083
59083
|
(O < y.range.from || O > y.range.to) && !x && !y.composing && (R.active = !1);
|
59084
|
-
const
|
59084
|
+
const T = d({
|
59085
59085
|
char: n,
|
59086
59086
|
allowSpaces: r,
|
59087
59087
|
allowedPrefixes: s,
|
59088
59088
|
startOfLine: i,
|
59089
59089
|
$position: k.$from
|
59090
59090
|
}), M = `id_${Math.floor(Math.random() * 4294967295)}`;
|
59091
|
-
|
59091
|
+
T && f({
|
59092
59092
|
editor: e,
|
59093
59093
|
state: w,
|
59094
|
-
range:
|
59094
|
+
range: T.range,
|
59095
59095
|
isActive: y.active
|
59096
|
-
}) ? (R.active = !0, R.decorationId = y.decorationId ? y.decorationId : M, R.range =
|
59096
|
+
}) ? (R.active = !0, R.decorationId = y.decorationId ? y.decorationId : M, R.range = T.range, R.query = T.query, R.text = T.text) : R.active = !1;
|
59097
59097
|
} else
|
59098
59098
|
R.active = !1;
|
59099
59099
|
return R.active || (R.decorationId = null, R.range = { from: 0, to: 0 }, R.query = null, R.text = null), R;
|
@@ -59468,20 +59468,20 @@ const Lle = kt.create({
|
|
59468
59468
|
const [d] = tt(new wu()), [h, p] = tt([
|
59469
59469
|
...bre,
|
59470
59470
|
Vle(f)
|
59471
|
-
]), m = ft(!1), g = (
|
59471
|
+
]), m = ft(!1), g = (T, M, I) => {
|
59472
59472
|
let B = !1;
|
59473
|
-
return
|
59473
|
+
return T.doc.nodesBetween(M, I, ($) => {
|
59474
59474
|
$.marks && $.marks.some(
|
59475
59475
|
(L) => L.type.name === "highlight" && L.attrs.color === "yellow"
|
59476
59476
|
) && (B = !0);
|
59477
59477
|
}), B;
|
59478
|
-
}, y = (
|
59478
|
+
}, y = (T, M) => {
|
59479
59479
|
var B;
|
59480
59480
|
const I = M.target;
|
59481
59481
|
if (I && I.nodeName === "MARK" && I.dataset.color && ((B = I == null ? void 0 : I.dataset) == null ? void 0 : B.color) === "yellow") {
|
59482
|
-
const $ = I.textContent, L =
|
59482
|
+
const $ = I.textContent, L = T.posAtCoords({ left: M.clientX, top: M.clientY });
|
59483
59483
|
if (L) {
|
59484
|
-
const { state: V } =
|
59484
|
+
const { state: V } = T;
|
59485
59485
|
let q = L.pos, ee = L.pos;
|
59486
59486
|
if (V.doc.nodesBetween(q, ee, (X, he) => {
|
59487
59487
|
X.marks && X.marks.length && X.marks.forEach((Ee) => {
|
@@ -59505,25 +59505,25 @@ const Lle = kt.create({
|
|
59505
59505
|
...iq,
|
59506
59506
|
handleDOMEvents: {
|
59507
59507
|
mouseover: y,
|
59508
|
-
keydown: (
|
59508
|
+
keydown: (T, M) => {
|
59509
59509
|
if (["ArrowUp", "ArrowDown", "Enter"].includes(M.key) && document.querySelector("#slash-command"))
|
59510
59510
|
return !0;
|
59511
59511
|
}
|
59512
59512
|
},
|
59513
|
-
handleClick: (
|
59514
|
-
y(
|
59513
|
+
handleClick: (T, M, I) => {
|
59514
|
+
y(T, I);
|
59515
59515
|
}
|
59516
59516
|
},
|
59517
59517
|
autofocus: "start",
|
59518
|
-
onTransaction: ({ editor:
|
59519
|
-
|
59518
|
+
onTransaction: ({ editor: T, transaction: M }) => {
|
59519
|
+
T != null && T.isEmpty || (console.log(M.docChanged, T.getJSON()), M.docChanged && (o == null || o(T.getJSON())));
|
59520
59520
|
},
|
59521
59521
|
shouldRerenderOnTransaction: !0,
|
59522
59522
|
immediatelyRender: !1
|
59523
59523
|
},
|
59524
59524
|
[h]
|
59525
59525
|
), A = ft(() => {
|
59526
|
-
}), x = (
|
59526
|
+
}), x = (T, M = !1) => {
|
59527
59527
|
if (!n || !r)
|
59528
59528
|
throw new Error("docId or username is not provided");
|
59529
59529
|
const I = new sq(r, d, {
|
@@ -59539,7 +59539,7 @@ const Lle = kt.create({
|
|
59539
59539
|
Nq.configure({
|
59540
59540
|
provider: I,
|
59541
59541
|
user: {
|
59542
|
-
name:
|
59542
|
+
name: T && T.length > 20 ? Dle(T, 7, 15) : T,
|
59543
59543
|
color: BD[Math.floor(Math.random() * BD.length)],
|
59544
59544
|
isEns: M
|
59545
59545
|
},
|
@@ -59560,7 +59560,7 @@ const Lle = kt.create({
|
|
59560
59560
|
}, [e, w]), Ye(() => {
|
59561
59561
|
if (!w)
|
59562
59562
|
return;
|
59563
|
-
const
|
59563
|
+
const T = () => {
|
59564
59564
|
const { state: M } = w, { from: I, to: B } = M.selection, $ = M.doc.textBetween(I, B, " ");
|
59565
59565
|
u == null || u({
|
59566
59566
|
text: $,
|
@@ -59569,28 +59569,28 @@ const Lle = kt.create({
|
|
59569
59569
|
isHighlightedYellow: g(M, I, B)
|
59570
59570
|
});
|
59571
59571
|
};
|
59572
|
-
return w.on("selectionUpdate",
|
59573
|
-
w.off("selectionUpdate",
|
59572
|
+
return w.on("selectionUpdate", T), () => {
|
59573
|
+
w.off("selectionUpdate", T);
|
59574
59574
|
};
|
59575
59575
|
}, [w]);
|
59576
59576
|
const C = async () => {
|
59577
|
-
let
|
59577
|
+
let T = i, M = !1;
|
59578
59578
|
if (s && c) {
|
59579
59579
|
const { name: I, isEns: B } = await Cle(
|
59580
59580
|
s,
|
59581
59581
|
c
|
59582
59582
|
);
|
59583
|
-
|
59583
|
+
T = I, M = B;
|
59584
59584
|
}
|
59585
|
-
if (!
|
59585
|
+
if (!T)
|
59586
59586
|
throw new Error("Cannot start collaboration without a username");
|
59587
|
-
x(
|
59587
|
+
x(T, M);
|
59588
59588
|
};
|
59589
59589
|
return Ye(() => {
|
59590
59590
|
n ? C() : A.current();
|
59591
59591
|
}, [n]), Ye(() => {
|
59592
|
-
var
|
59593
|
-
a == null || a((M = (
|
59592
|
+
var T, M;
|
59593
|
+
a == null || a((M = (T = w == null ? void 0 : w.storage) == null ? void 0 : T.collaborationCursor) == null ? void 0 : M.users);
|
59594
59594
|
}, [(R = (O = w == null ? void 0 : w.storage) == null ? void 0 : O.collaborationCursor) == null ? void 0 : R.users]), {
|
59595
59595
|
editor: w,
|
59596
59596
|
ref: k,
|
@@ -61396,8 +61396,8 @@ function rO({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
61396
61396
|
const g = f + m, y = o === void 0 ? g : o(g);
|
61397
61397
|
y !== g && (m = y - f);
|
61398
61398
|
const v = (O) => -m * Math.exp(-O / r), w = (O) => y + v(O), A = (O) => {
|
61399
|
-
const R = v(O),
|
61400
|
-
d.done = Math.abs(R) <= u, d.value = d.done ? y :
|
61399
|
+
const R = v(O), T = w(O);
|
61400
|
+
d.done = Math.abs(R) <= u, d.value = d.done ? y : T;
|
61401
61401
|
};
|
61402
61402
|
let x, k;
|
61403
61403
|
const C = (O) => {
|
@@ -61682,8 +61682,8 @@ class aE extends ML {
|
|
61682
61682
|
let w = this.currentTime, A = i;
|
61683
61683
|
if (h) {
|
61684
61684
|
const O = Math.min(this.currentTime, c) / f;
|
61685
|
-
let R = Math.floor(O),
|
61686
|
-
!
|
61685
|
+
let R = Math.floor(O), T = O % 1;
|
61686
|
+
!T && O >= 1 && (T = 1), T === 1 && R--, R = Math.min(R, h + 1), !!(R % 2) && (p === "reverse" ? (T = 1 - T, m && (T -= m / f)) : p === "mirror" && (A = o)), w = Ra(0, 1, T) * f;
|
61687
61687
|
}
|
61688
61688
|
const x = v ? { done: !1, value: l[0] } : A.next(w);
|
61689
61689
|
a && (x.value = a(x.value));
|
@@ -62435,8 +62435,8 @@ function Lfe(t) {
|
|
62435
62435
|
let O = Bfe(v.prevProp, w) || // If we're making this variant active, we want to always make it active
|
62436
62436
|
y === l && v.isActive && !k && A || // If we removed a higher-priority variant (i is in reverse order)
|
62437
62437
|
g > p && A, R = !1;
|
62438
|
-
const
|
62439
|
-
let M =
|
62438
|
+
const T = Array.isArray(w) ? w : [w];
|
62439
|
+
let M = T.reduce(s(y), {});
|
62440
62440
|
x === !1 && (M = {});
|
62441
62441
|
const { prevResolvedValues: I = {} } = v, B = {
|
62442
62442
|
...I,
|
@@ -62453,7 +62453,7 @@ function Lfe(t) {
|
|
62453
62453
|
let ee = !1;
|
62454
62454
|
Pv(V) && Pv(q) ? ee = !gL(V, q) : ee = V !== q, ee ? V != null ? $(L) : d.add(L) : V !== void 0 && d.has(L) ? $(L) : v.protectedKeys[L] = !0;
|
62455
62455
|
}
|
62456
|
-
v.prevProp = w, v.prevResolvedValues = M, v.isActive && (h = { ...h, ...M }), r && t.blockInitialAnimation && (O = !1), O && (!k || R) && f.push(...
|
62456
|
+
v.prevProp = w, v.prevResolvedValues = M, v.isActive && (h = { ...h, ...M }), r && t.blockInitialAnimation && (O = !1), O && (!k || R) && f.push(...T.map((L) => ({
|
62457
62457
|
animation: L,
|
62458
62458
|
options: { type: y }
|
62459
62459
|
})));
|
@@ -64426,11 +64426,11 @@ const hhe = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, exitB
|
|
64426
64426
|
f.delete(w);
|
64427
64427
|
const O = Array.from(h.keys()).filter((R) => !g.includes(R));
|
64428
64428
|
if (O.forEach((R) => h.delete(R)), d.current = u.filter((R) => {
|
64429
|
-
const
|
64429
|
+
const T = Qa(R);
|
64430
64430
|
return (
|
64431
64431
|
// filter out the node exiting
|
64432
|
-
|
64433
|
-
O.includes(
|
64432
|
+
T === w || // filter out the leftover children
|
64433
|
+
O.includes(T)
|
64434
64434
|
);
|
64435
64435
|
}), !f.size) {
|
64436
64436
|
if (l.current === !1)
|
@@ -64492,11 +64492,11 @@ const hhe = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, exitB
|
|
64492
64492
|
[C, R]
|
64493
64493
|
), Ye(() => {
|
64494
64494
|
if (!C) return;
|
64495
|
-
const
|
64495
|
+
const T = (B) => {
|
64496
64496
|
const { key: $ } = B;
|
64497
64497
|
return $.length === 1;
|
64498
64498
|
}, M = (B) => {
|
64499
|
-
|
64499
|
+
T(B) && (A.current && clearTimeout(A.current), w(!0), A.current = setTimeout(() => {
|
64500
64500
|
w(!1);
|
64501
64501
|
}, 500));
|
64502
64502
|
}, I = C.view.dom;
|