@machinemetrics/mm-react-tools 3.1.0-beta-2 → 3.1.0-beta-3
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/mm-react-tools.es.js +1034 -1025
- package/dist/mm-react-tools.umd.js +29 -29
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var dk = Object.defineProperty;
|
|
2
2
|
var pk = (r, e, t) => e in r ? dk(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var O = (r, e, t) => pk(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import Fs, { createContext as mk, useState as Ut, useEffect as vr, useMemo as Ao, useContext as ds, useRef as xa, useCallback as yk, forwardRef as gk } from "react";
|
|
5
5
|
import { useSearchParams as vk, Outlet as bk, useNavigate as wk, useLocation as _k, useBlocker as xk, Navigate as Sk, createBrowserRouter as Ek, RouterProvider as Ok } from "react-router-dom";
|
|
6
6
|
import W0 from "styled-components";
|
|
@@ -80,15 +80,15 @@ var ro = {};
|
|
|
80
80
|
var rg;
|
|
81
81
|
function kk() {
|
|
82
82
|
return rg || (rg = 1, process.env.NODE_ENV !== "production" && function() {
|
|
83
|
-
var r = Fs, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"),
|
|
83
|
+
var r = Fs, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, A = "@@iterator";
|
|
84
84
|
function x(N) {
|
|
85
85
|
if (N === null || typeof N != "object")
|
|
86
86
|
return null;
|
|
87
|
-
var se =
|
|
87
|
+
var se = b && N[b] || N[A];
|
|
88
88
|
return typeof se == "function" ? se : null;
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
90
|
+
var w = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
91
|
+
function E(N) {
|
|
92
92
|
{
|
|
93
93
|
for (var se = arguments.length, ye = new Array(se > 1 ? se - 1 : 0), Ae = 1; Ae < se; Ae++)
|
|
94
94
|
ye[Ae - 1] = arguments[Ae];
|
|
@@ -97,7 +97,7 @@ function kk() {
|
|
|
97
97
|
}
|
|
98
98
|
function P(N, se, ye) {
|
|
99
99
|
{
|
|
100
|
-
var Ae =
|
|
100
|
+
var Ae = w.ReactDebugCurrentFrame, je = Ae.getStackAddendum();
|
|
101
101
|
je !== "" && (se += "%s", ye = ye.concat([je]));
|
|
102
102
|
var at = ye.map(function(it) {
|
|
103
103
|
return String(it);
|
|
@@ -127,7 +127,7 @@ function kk() {
|
|
|
127
127
|
function Ne(N) {
|
|
128
128
|
if (N == null)
|
|
129
129
|
return null;
|
|
130
|
-
if (typeof N.tag == "number" &&
|
|
130
|
+
if (typeof N.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof N == "function")
|
|
131
131
|
return N.displayName || N.name || null;
|
|
132
132
|
if (typeof N == "string")
|
|
133
133
|
return N;
|
|
@@ -228,10 +228,10 @@ function kk() {
|
|
|
228
228
|
})
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
me < 0 &&
|
|
231
|
+
me < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
var Xe =
|
|
234
|
+
var Xe = w.ReactCurrentDispatcher, Je;
|
|
235
235
|
function dt(N, se, ye) {
|
|
236
236
|
{
|
|
237
237
|
if (Je === void 0)
|
|
@@ -357,7 +357,7 @@ function kk() {
|
|
|
357
357
|
}
|
|
358
358
|
return "";
|
|
359
359
|
}
|
|
360
|
-
var G = Object.prototype.hasOwnProperty, Te = {}, ze =
|
|
360
|
+
var G = Object.prototype.hasOwnProperty, Te = {}, ze = w.ReactDebugCurrentFrame;
|
|
361
361
|
function $e(N) {
|
|
362
362
|
if (N) {
|
|
363
363
|
var se = N._owner, ye = X(N.type, N._source, se ? se.type : null);
|
|
@@ -380,7 +380,7 @@ function kk() {
|
|
|
380
380
|
} catch (_t) {
|
|
381
381
|
et = _t;
|
|
382
382
|
}
|
|
383
|
-
et && !(et instanceof Error) && ($e(je),
|
|
383
|
+
et && !(et instanceof Error) && ($e(je), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ae || "React class", ye, it, typeof et), $e(null)), et instanceof Error && !(et.message in Te) && (Te[et.message] = !0, $e(je), E("Failed %s type: %s", ye, et.message), $e(null));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
}
|
|
@@ -406,9 +406,9 @@ function kk() {
|
|
|
406
406
|
}
|
|
407
407
|
function pt(N) {
|
|
408
408
|
if (wt(N))
|
|
409
|
-
return
|
|
409
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(N)), Gt(N);
|
|
410
410
|
}
|
|
411
|
-
var Ft =
|
|
411
|
+
var Ft = w.ReactCurrentOwner, er = {
|
|
412
412
|
key: !0,
|
|
413
413
|
ref: !0,
|
|
414
414
|
__self: !0,
|
|
@@ -434,13 +434,13 @@ function kk() {
|
|
|
434
434
|
function H(N, se) {
|
|
435
435
|
if (typeof N.ref == "string" && Ft.current && se && Ft.current.stateNode !== se) {
|
|
436
436
|
var ye = Ne(Ft.current.type);
|
|
437
|
-
Qt[ye] || (
|
|
437
|
+
Qt[ye] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Ne(Ft.current.type), N.ref), Qt[ye] = !0);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
function Ve(N, se) {
|
|
441
441
|
{
|
|
442
442
|
var ye = function() {
|
|
443
|
-
Cr || (Cr = !0,
|
|
443
|
+
Cr || (Cr = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
|
|
444
444
|
};
|
|
445
445
|
ye.isReactWarning = !0, Object.defineProperty(N, "key", {
|
|
446
446
|
get: ye,
|
|
@@ -451,7 +451,7 @@ function kk() {
|
|
|
451
451
|
function Be(N, se) {
|
|
452
452
|
{
|
|
453
453
|
var ye = function() {
|
|
454
|
-
Wt || (Wt = !0,
|
|
454
|
+
Wt || (Wt = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
|
|
455
455
|
};
|
|
456
456
|
ye.isReactWarning = !0, Object.defineProperty(N, "ref", {
|
|
457
457
|
get: ye,
|
|
@@ -506,7 +506,7 @@ function kk() {
|
|
|
506
506
|
return Ot(N, et, tt, je, Ae, Ft.current, it);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var tr =
|
|
509
|
+
var tr = w.ReactCurrentOwner, lr = w.ReactDebugCurrentFrame;
|
|
510
510
|
function Rt(N) {
|
|
511
511
|
if (N) {
|
|
512
512
|
var se = N._owner, ye = X(N.type, N._source, se ? se.type : null);
|
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
557
557
|
return;
|
|
558
558
|
an[ye] = !0;
|
|
559
559
|
var Ae = "";
|
|
560
|
-
N && N._owner && N._owner !== tr.current && (Ae = " It was passed a child from " + Ne(N._owner.type) + "."), Rt(N),
|
|
560
|
+
N && N._owner && N._owner !== tr.current && (Ae = " It was passed a child from " + Ne(N._owner.type) + "."), Rt(N), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ye, Ae), Rt(null);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function _r(N, se) {
|
|
@@ -599,9 +599,9 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
599
599
|
} else if (se.PropTypes !== void 0 && !zt) {
|
|
600
600
|
zt = !0;
|
|
601
601
|
var je = Ne(se);
|
|
602
|
-
|
|
602
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", je || "Unknown");
|
|
603
603
|
}
|
|
604
|
-
typeof se.getDefaultProps == "function" && !se.getDefaultProps.isReactClassApproved &&
|
|
604
|
+
typeof se.getDefaultProps == "function" && !se.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
function sr(N) {
|
|
@@ -609,11 +609,11 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
609
609
|
for (var se = Object.keys(N.props), ye = 0; ye < se.length; ye++) {
|
|
610
610
|
var Ae = se[ye];
|
|
611
611
|
if (Ae !== "children" && Ae !== "key") {
|
|
612
|
-
Rt(N),
|
|
612
|
+
Rt(N), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ae), Rt(null);
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
N.ref !== null && (Rt(N),
|
|
616
|
+
N.ref !== null && (Rt(N), E("Invalid attribute `ref` supplied to `React.Fragment`."), Rt(null));
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
var Wr = {};
|
|
@@ -626,7 +626,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
626
626
|
var tt = rr();
|
|
627
627
|
tt ? et += tt : et += qr();
|
|
628
628
|
var _t;
|
|
629
|
-
N === null ? _t = "null" : Ke(N) ? _t = "array" : N !== void 0 && N.$$typeof === e ? (_t = "<" + (Ne(N.type) || "Unknown") + " />", et = " Did you accidentally export a JSX literal instead of a component?") : _t = typeof N,
|
|
629
|
+
N === null ? _t = "null" : Ke(N) ? _t = "array" : N !== void 0 && N.$$typeof === e ? (_t = "<" + (Ne(N.type) || "Unknown") + " />", et = " Did you accidentally export a JSX literal instead of a component?") : _t = typeof N, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _t, et);
|
|
630
630
|
}
|
|
631
631
|
var _ = Ye(N, se, ye, je, at);
|
|
632
632
|
if (_ == null)
|
|
@@ -640,7 +640,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
640
640
|
_r(I[k], N);
|
|
641
641
|
Object.freeze && Object.freeze(I);
|
|
642
642
|
} else
|
|
643
|
-
|
|
643
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
644
644
|
else
|
|
645
645
|
_r(I, N);
|
|
646
646
|
}
|
|
@@ -650,7 +650,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
650
650
|
}), U = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
651
651
|
if (!Wr[C + U]) {
|
|
652
652
|
var ne = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
|
|
653
|
-
|
|
653
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
654
654
|
let props = %s;
|
|
655
655
|
<%s {...props} />
|
|
656
656
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -952,14 +952,14 @@ function J0(r, e) {
|
|
|
952
952
|
const t = r.locationOffset.column - 1, n = "".padStart(t) + r.body, i = e.line - 1, a = r.locationOffset.line - 1, u = e.line + a, c = e.line === 1 ? t : 0, f = e.column + c, h = `${r.name}:${u}:${f}
|
|
953
953
|
`, d = n.split(/\r\n|[\n\r]/g), y = d[i];
|
|
954
954
|
if (y.length > 120) {
|
|
955
|
-
const g = Math.floor(f / 80), m = f % 80,
|
|
955
|
+
const g = Math.floor(f / 80), m = f % 80, b = [];
|
|
956
956
|
for (let A = 0; A < y.length; A += 80)
|
|
957
|
-
|
|
957
|
+
b.push(y.slice(A, A + 80));
|
|
958
958
|
return h + ag([
|
|
959
|
-
[`${u} |`,
|
|
960
|
-
...
|
|
959
|
+
[`${u} |`, b[0]],
|
|
960
|
+
...b.slice(1, g + 1).map((A) => ["|", A]),
|
|
961
961
|
["|", "^".padStart(m)],
|
|
962
|
-
["|",
|
|
962
|
+
["|", b[g + 1]]
|
|
963
963
|
]);
|
|
964
964
|
}
|
|
965
965
|
return h + ag([
|
|
@@ -1032,9 +1032,9 @@ class Td extends Error {
|
|
|
1032
1032
|
Array.isArray(u) ? u : u ? [u] : void 0
|
|
1033
1033
|
);
|
|
1034
1034
|
const g = og(
|
|
1035
|
-
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((
|
|
1035
|
+
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((b) => b.loc).filter((b) => b != null)
|
|
1036
1036
|
);
|
|
1037
|
-
this.source = c ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = f ?? (g == null ? void 0 : g.map((
|
|
1037
|
+
this.source = c ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = f ?? (g == null ? void 0 : g.map((b) => b.start)), this.locations = f && c ? f.map((b) => Ph(c, b)) : g == null ? void 0 : g.map((b) => Ph(b.source, b.start));
|
|
1038
1038
|
const m = Ck(
|
|
1039
1039
|
d == null ? void 0 : d.extensions
|
|
1040
1040
|
) ? d == null ? void 0 : d.extensions : void 0;
|
|
@@ -3118,15 +3118,15 @@ const dI = [
|
|
|
3118
3118
|
], kd = Object.freeze({});
|
|
3119
3119
|
function Hn(r, e, t = K0) {
|
|
3120
3120
|
const n = /* @__PURE__ */ new Map();
|
|
3121
|
-
for (const
|
|
3122
|
-
n.set(
|
|
3121
|
+
for (const w of Object.values(Re))
|
|
3122
|
+
n.set(w, pI(e, w));
|
|
3123
3123
|
let i, a = Array.isArray(r), u = [r], c = -1, f = [], h = r, d, y;
|
|
3124
3124
|
const g = [], m = [];
|
|
3125
3125
|
do {
|
|
3126
3126
|
c++;
|
|
3127
|
-
const
|
|
3128
|
-
if (
|
|
3129
|
-
if (d = m.length === 0 ? void 0 : g[g.length - 1], h = y, y = m.pop(),
|
|
3127
|
+
const w = c === u.length, E = w && f.length !== 0;
|
|
3128
|
+
if (w) {
|
|
3129
|
+
if (d = m.length === 0 ? void 0 : g[g.length - 1], h = y, y = m.pop(), E)
|
|
3130
3130
|
if (a) {
|
|
3131
3131
|
h = h.slice();
|
|
3132
3132
|
let D = 0;
|
|
@@ -3150,17 +3150,17 @@ function Hn(r, e, t = K0) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
let P;
|
|
3152
3152
|
if (!Array.isArray(h)) {
|
|
3153
|
-
var
|
|
3153
|
+
var b, A;
|
|
3154
3154
|
ug(h) || Xu(!1, `Invalid AST Node: ${Ad(h)}.`);
|
|
3155
|
-
const D =
|
|
3155
|
+
const D = w ? (b = n.get(h.kind)) === null || b === void 0 ? void 0 : b.leave : (A = n.get(h.kind)) === null || A === void 0 ? void 0 : A.enter;
|
|
3156
3156
|
if (P = D == null ? void 0 : D.call(e, h, d, y, g, m), P === kd)
|
|
3157
3157
|
break;
|
|
3158
3158
|
if (P === !1) {
|
|
3159
|
-
if (!
|
|
3159
|
+
if (!w) {
|
|
3160
3160
|
g.pop();
|
|
3161
3161
|
continue;
|
|
3162
3162
|
}
|
|
3163
|
-
} else if (P !== void 0 && (f.push([d, P]), !
|
|
3163
|
+
} else if (P !== void 0 && (f.push([d, P]), !w))
|
|
3164
3164
|
if (ug(P))
|
|
3165
3165
|
h = P;
|
|
3166
3166
|
else {
|
|
@@ -3168,7 +3168,7 @@ function Hn(r, e, t = K0) {
|
|
|
3168
3168
|
continue;
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
|
-
if (P === void 0 &&
|
|
3171
|
+
if (P === void 0 && E && f.push([d, h]), w)
|
|
3172
3172
|
g.pop();
|
|
3173
3173
|
else {
|
|
3174
3174
|
var x;
|
|
@@ -4414,8 +4414,8 @@ function Po(r, { max: e = Math.pow(2, 16), keyArgs: t, makeCacheKey: n = dP, nor
|
|
|
4414
4414
|
return r.apply(null, arguments);
|
|
4415
4415
|
let m = c.get(g);
|
|
4416
4416
|
m || (c.set(g, m = new Gc(r)), m.normalizeResult = i, m.subscribe = a, m.forget = () => c.delete(g));
|
|
4417
|
-
const
|
|
4418
|
-
return c.set(g, m), Sf.add(c), Hc.hasValue() || (Sf.forEach((A) => A.clean()), Sf.clear()),
|
|
4417
|
+
const b = m.recompute(Array.prototype.slice.call(arguments));
|
|
4418
|
+
return c.set(g, m), Sf.add(c), Hc.hasValue() || (Sf.forEach((A) => A.clean()), Sf.clear()), b;
|
|
4419
4419
|
};
|
|
4420
4420
|
Object.defineProperty(f, "size", {
|
|
4421
4421
|
get: () => c.size,
|
|
@@ -4572,8 +4572,8 @@ function wg(r) {
|
|
|
4572
4572
|
}
|
|
4573
4573
|
function Jc(r, e) {
|
|
4574
4574
|
Ls(e);
|
|
4575
|
-
for (var t = wg(""), n = wg(""), i = function(
|
|
4576
|
-
for (var
|
|
4575
|
+
for (var t = wg(""), n = wg(""), i = function(w) {
|
|
4576
|
+
for (var E = 0, P = void 0; E < w.length && (P = w[E]); ++E)
|
|
4577
4577
|
if (!cr(P)) {
|
|
4578
4578
|
if (P.kind === Re.OPERATION_DEFINITION)
|
|
4579
4579
|
return t(P.name && P.name.value);
|
|
@@ -4583,13 +4583,13 @@ function Jc(r, e) {
|
|
|
4583
4583
|
return globalThis.__DEV__ !== !1 && Me.error(86), null;
|
|
4584
4584
|
}, a = 0, u = e.definitions.length - 1; u >= 0; --u)
|
|
4585
4585
|
e.definitions[u].kind === Re.OPERATION_DEFINITION && ++a;
|
|
4586
|
-
var c = mP(r), f = function(
|
|
4587
|
-
return kn(
|
|
4588
|
-
return
|
|
4586
|
+
var c = mP(r), f = function(w) {
|
|
4587
|
+
return kn(w) && w.map(c).some(function(E) {
|
|
4588
|
+
return E && E.remove;
|
|
4589
4589
|
});
|
|
4590
4590
|
}, h = /* @__PURE__ */ new Map(), d = !1, y = {
|
|
4591
|
-
enter: function(
|
|
4592
|
-
if (f(
|
|
4591
|
+
enter: function(w) {
|
|
4592
|
+
if (f(w.directives))
|
|
4593
4593
|
return d = !0, null;
|
|
4594
4594
|
}
|
|
4595
4595
|
}, g = Hn(e, {
|
|
@@ -4602,75 +4602,75 @@ function Jc(r, e) {
|
|
|
4602
4602
|
}
|
|
4603
4603
|
},
|
|
4604
4604
|
Variable: {
|
|
4605
|
-
enter: function(
|
|
4605
|
+
enter: function(w, E, P, D, L) {
|
|
4606
4606
|
var V = i(L);
|
|
4607
|
-
V && V.variables.add(
|
|
4607
|
+
V && V.variables.add(w.name.value);
|
|
4608
4608
|
}
|
|
4609
4609
|
},
|
|
4610
4610
|
FragmentSpread: {
|
|
4611
|
-
enter: function(
|
|
4612
|
-
if (f(
|
|
4611
|
+
enter: function(w, E, P, D, L) {
|
|
4612
|
+
if (f(w.directives))
|
|
4613
4613
|
return d = !0, null;
|
|
4614
4614
|
var V = i(L);
|
|
4615
|
-
V && V.fragmentSpreads.add(
|
|
4615
|
+
V && V.fragmentSpreads.add(w.name.value);
|
|
4616
4616
|
}
|
|
4617
4617
|
},
|
|
4618
4618
|
FragmentDefinition: {
|
|
4619
|
-
enter: function(
|
|
4620
|
-
h.set(JSON.stringify(D),
|
|
4619
|
+
enter: function(w, E, P, D) {
|
|
4620
|
+
h.set(JSON.stringify(D), w);
|
|
4621
4621
|
},
|
|
4622
|
-
leave: function(
|
|
4622
|
+
leave: function(w, E, P, D) {
|
|
4623
4623
|
var L = h.get(JSON.stringify(D));
|
|
4624
|
-
if (
|
|
4625
|
-
return
|
|
4624
|
+
if (w === L)
|
|
4625
|
+
return w;
|
|
4626
4626
|
if (
|
|
4627
4627
|
// This logic applies only if the document contains one or more
|
|
4628
4628
|
// operations, since removing all fragments from a document containing
|
|
4629
4629
|
// only fragments makes the document useless.
|
|
4630
|
-
a > 0 &&
|
|
4630
|
+
a > 0 && w.selectionSet.selections.every(function(V) {
|
|
4631
4631
|
return V.kind === Re.FIELD && V.name.value === "__typename";
|
|
4632
4632
|
})
|
|
4633
4633
|
)
|
|
4634
|
-
return n(
|
|
4634
|
+
return n(w.name.value).removed = !0, d = !0, null;
|
|
4635
4635
|
}
|
|
4636
4636
|
},
|
|
4637
4637
|
Directive: {
|
|
4638
|
-
leave: function(
|
|
4639
|
-
if (c(
|
|
4638
|
+
leave: function(w) {
|
|
4639
|
+
if (c(w))
|
|
4640
4640
|
return d = !0, null;
|
|
4641
4641
|
}
|
|
4642
4642
|
}
|
|
4643
4643
|
});
|
|
4644
4644
|
if (!d)
|
|
4645
4645
|
return e;
|
|
4646
|
-
var m = function(
|
|
4647
|
-
return
|
|
4648
|
-
m(n(
|
|
4649
|
-
|
|
4646
|
+
var m = function(w) {
|
|
4647
|
+
return w.transitiveVars || (w.transitiveVars = new Set(w.variables), w.removed || w.fragmentSpreads.forEach(function(E) {
|
|
4648
|
+
m(n(E)).transitiveVars.forEach(function(P) {
|
|
4649
|
+
w.transitiveVars.add(P);
|
|
4650
4650
|
});
|
|
4651
|
-
})),
|
|
4652
|
-
},
|
|
4653
|
-
g.definitions.forEach(function(
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
}) :
|
|
4651
|
+
})), w;
|
|
4652
|
+
}, b = /* @__PURE__ */ new Set();
|
|
4653
|
+
g.definitions.forEach(function(w) {
|
|
4654
|
+
w.kind === Re.OPERATION_DEFINITION ? m(t(w.name && w.name.value)).fragmentSpreads.forEach(function(E) {
|
|
4655
|
+
b.add(E);
|
|
4656
|
+
}) : w.kind === Re.FRAGMENT_DEFINITION && // If there are no operations in the document, then all fragment
|
|
4657
4657
|
// definitions count as usages of their own fragment names. This heuristic
|
|
4658
4658
|
// prevents accidentally removing all fragment definitions from the
|
|
4659
4659
|
// document just because it contains no operations that use the fragments.
|
|
4660
|
-
a === 0 && !n(
|
|
4661
|
-
}),
|
|
4662
|
-
m(n(
|
|
4663
|
-
|
|
4660
|
+
a === 0 && !n(w.name.value).removed && b.add(w.name.value);
|
|
4661
|
+
}), b.forEach(function(w) {
|
|
4662
|
+
m(n(w)).fragmentSpreads.forEach(function(E) {
|
|
4663
|
+
b.add(E);
|
|
4664
4664
|
});
|
|
4665
4665
|
});
|
|
4666
|
-
var A = function(
|
|
4666
|
+
var A = function(w) {
|
|
4667
4667
|
return !!// A fragment definition will be removed if there are no spreads that refer
|
|
4668
4668
|
// to it, or the fragment was explicitly removed because it had no fields
|
|
4669
4669
|
// other than __typename.
|
|
4670
|
-
(!
|
|
4670
|
+
(!b.has(w) || n(w).removed);
|
|
4671
4671
|
}, x = {
|
|
4672
|
-
enter: function(
|
|
4673
|
-
if (A(
|
|
4672
|
+
enter: function(w) {
|
|
4673
|
+
if (A(w.name.value))
|
|
4674
4674
|
return null;
|
|
4675
4675
|
}
|
|
4676
4676
|
};
|
|
@@ -4681,15 +4681,15 @@ function Jc(r, e) {
|
|
|
4681
4681
|
// This is where the fragment definition is actually removed.
|
|
4682
4682
|
FragmentDefinition: x,
|
|
4683
4683
|
OperationDefinition: {
|
|
4684
|
-
leave: function(
|
|
4685
|
-
if (
|
|
4686
|
-
var
|
|
4684
|
+
leave: function(w) {
|
|
4685
|
+
if (w.variableDefinitions) {
|
|
4686
|
+
var E = m(
|
|
4687
4687
|
// If an operation is anonymous, we use the empty string as its key.
|
|
4688
|
-
t(
|
|
4688
|
+
t(w.name && w.name.value)
|
|
4689
4689
|
).transitiveVars;
|
|
4690
|
-
if (
|
|
4691
|
-
return j(j({},
|
|
4692
|
-
return
|
|
4690
|
+
if (E.size < w.variableDefinitions.length)
|
|
4691
|
+
return j(j({}, w), { variableDefinitions: w.variableDefinitions.filter(function(P) {
|
|
4692
|
+
return E.has(P.variable.name.value);
|
|
4693
4693
|
}) });
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
@@ -4928,31 +4928,31 @@ function kP(r) {
|
|
|
4928
4928
|
startCursor: m
|
|
4929
4929
|
}
|
|
4930
4930
|
}));
|
|
4931
|
-
var
|
|
4932
|
-
|
|
4931
|
+
var b = g && g.cursor;
|
|
4932
|
+
b && !d && (t = Co(t, {
|
|
4933
4933
|
pageInfo: {
|
|
4934
|
-
endCursor:
|
|
4934
|
+
endCursor: b
|
|
4935
4935
|
}
|
|
4936
4936
|
}));
|
|
4937
4937
|
}
|
|
4938
4938
|
var A = e.edges, x = [];
|
|
4939
4939
|
if (i && i.after) {
|
|
4940
|
-
var
|
|
4940
|
+
var w = A.findIndex(function(Y) {
|
|
4941
4941
|
return Y.cursor === i.after;
|
|
4942
4942
|
});
|
|
4943
|
-
|
|
4943
|
+
w >= 0 && (A = A.slice(0, w + 1));
|
|
4944
4944
|
} else if (i && i.before) {
|
|
4945
|
-
var
|
|
4945
|
+
var w = A.findIndex(function(ue) {
|
|
4946
4946
|
return ue.cursor === i.before;
|
|
4947
4947
|
});
|
|
4948
|
-
x =
|
|
4948
|
+
x = w < 0 ? A : A.slice(w), A = [];
|
|
4949
4949
|
} else t.edges && (A = []);
|
|
4950
|
-
var
|
|
4950
|
+
var E = Tr(Tr(Tr([], A, !0), c, !0), x, !0), P = j(j({}, t.pageInfo), e.pageInfo);
|
|
4951
4951
|
if (t.pageInfo) {
|
|
4952
4952
|
var D = t.pageInfo, L = D.hasPreviousPage, V = D.hasNextPage, h = D.startCursor, d = D.endCursor, te = dn(D, ["hasPreviousPage", "hasNextPage", "startCursor", "endCursor"]);
|
|
4953
4953
|
Object.assign(P, te), A.length || (L !== void 0 && (P.hasPreviousPage = L), h !== void 0 && (P.startCursor = h)), x.length || (V !== void 0 && (P.hasNextPage = V), d !== void 0 && (P.endCursor = d));
|
|
4954
4954
|
}
|
|
4955
|
-
return j(j(j({}, Ef(e)), Ef(t)), { edges:
|
|
4955
|
+
return j(j(j({}, Ef(e)), Ef(t)), { edges: E, pageInfo: P });
|
|
4956
4956
|
}
|
|
4957
4957
|
};
|
|
4958
4958
|
}
|
|
@@ -6036,7 +6036,7 @@ var dC = function(r) {
|
|
|
6036
6036
|
), Tg = Object.prototype.hasOwnProperty;
|
|
6037
6037
|
function pC(r, e) {
|
|
6038
6038
|
return Qi(this, void 0, void 0, function() {
|
|
6039
|
-
var t, n, i, a, u, c, f, h, d, y, g, m,
|
|
6039
|
+
var t, n, i, a, u, c, f, h, d, y, g, m, b, A, x, w, E, P, D, L, V, te, Y, ue;
|
|
6040
6040
|
return Ji(this, function(fe) {
|
|
6041
6041
|
switch (fe.label) {
|
|
6042
6042
|
case 0:
|
|
@@ -6047,15 +6047,15 @@ function pC(r, e) {
|
|
|
6047
6047
|
case 1:
|
|
6048
6048
|
return h ? [4, f.next()] : [3, 3];
|
|
6049
6049
|
case 2:
|
|
6050
|
-
for (d = fe.sent(), y = d.value, g = d.done, m = typeof y == "string" ? y : t.decode(y),
|
|
6050
|
+
for (d = fe.sent(), y = d.value, g = d.done, m = typeof y == "string" ? y : t.decode(y), b = c.length - u.length + 1, h = !g, c += m, A = c.indexOf(u, b); A > -1; ) {
|
|
6051
6051
|
if (x = void 0, te = [
|
|
6052
6052
|
c.slice(0, A),
|
|
6053
6053
|
c.slice(A + u.length)
|
|
6054
|
-
], x = te[0], c = te[1],
|
|
6054
|
+
], x = te[0], c = te[1], w = x.indexOf(`\r
|
|
6055
6055
|
\r
|
|
6056
|
-
`),
|
|
6056
|
+
`), E = mC(x.slice(0, w)), P = E["content-type"], P && P.toLowerCase().indexOf("application/json") === -1)
|
|
6057
6057
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
6058
|
-
if (D = x.slice(
|
|
6058
|
+
if (D = x.slice(w), D) {
|
|
6059
6059
|
if (L = Vb(r, D), Object.keys(L).length > 1 || "data" in L || "incremental" in L || "errors" in L || "payload" in L)
|
|
6060
6060
|
if ($b(L)) {
|
|
6061
6061
|
if (V = {}, "payload" in L) {
|
|
@@ -6264,10 +6264,10 @@ var Ag = Bn(function() {
|
|
|
6264
6264
|
headers: y.headers
|
|
6265
6265
|
};
|
|
6266
6266
|
return new sn(function(m) {
|
|
6267
|
-
var
|
|
6267
|
+
var b = Gb(m, t), A = m.getContext(), x = {};
|
|
6268
6268
|
if (A.clientAwareness) {
|
|
6269
|
-
var
|
|
6270
|
-
|
|
6269
|
+
var w = A.clientAwareness, E = w.name, P = w.version;
|
|
6270
|
+
E && (x["apollographql-client-name"] = E), P && (x["apollographql-client-version"] = P);
|
|
6271
6271
|
}
|
|
6272
6272
|
var D = j(j({}, x), A.headers), L = {
|
|
6273
6273
|
http: A.http,
|
|
@@ -6296,10 +6296,10 @@ var Ag = Bn(function() {
|
|
|
6296
6296
|
Ne && Le && globalThis.__DEV__ !== !1 && Me.warn(39), Ne ? me += "boundary=graphql;subscriptionSpec=1.0,application/json" : Le && (me += "deferSpec=20220824,application/json"), Y.headers.accept = me;
|
|
6297
6297
|
}
|
|
6298
6298
|
if (Y.method === "GET") {
|
|
6299
|
-
var Qe = Qb(
|
|
6299
|
+
var Qe = Qb(b, ue), ve = Qe.newURI, ce = Qe.parseError;
|
|
6300
6300
|
if (ce)
|
|
6301
6301
|
return nc(ce);
|
|
6302
|
-
|
|
6302
|
+
b = ve;
|
|
6303
6303
|
} else
|
|
6304
6304
|
try {
|
|
6305
6305
|
Y.body = xc(ue, "Payload");
|
|
@@ -6310,7 +6310,7 @@ var Ag = Bn(function() {
|
|
|
6310
6310
|
var Pe = n || Bn(function() {
|
|
6311
6311
|
return fetch;
|
|
6312
6312
|
}) || Ag, we = Se.next.bind(Se);
|
|
6313
|
-
return Pe(
|
|
6313
|
+
return Pe(b, Y).then(function(Ze) {
|
|
6314
6314
|
var St;
|
|
6315
6315
|
m.setContext({ response: Ze });
|
|
6316
6316
|
var lt = (St = Ze.headers) === null || St === void 0 ? void 0 : St.get("content-type");
|
|
@@ -6475,10 +6475,10 @@ function ic(r, e, t, n) {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
return ic(h, c, f, n);
|
|
6477
6477
|
} else {
|
|
6478
|
-
var
|
|
6479
|
-
if (
|
|
6480
|
-
return Rg(
|
|
6481
|
-
|
|
6478
|
+
var b = $o(a, n.fragmentMap);
|
|
6479
|
+
if (b)
|
|
6480
|
+
return Rg(b) ? !0 : ic(
|
|
6481
|
+
b.selectionSet,
|
|
6482
6482
|
// Notice that we reuse the same aResult and bResult values here,
|
|
6483
6483
|
// since the fragment ...spread does not specify a field name, but
|
|
6484
6484
|
// consists of multiple fields (within the fragment's selection set)
|
|
@@ -6539,13 +6539,13 @@ var ep = (
|
|
|
6539
6539
|
// Always ensure we deliver the first result
|
|
6540
6540
|
!(y && Yb(h, { data: y == null ? void 0 : y.result }, { data: m.result }))
|
|
6541
6541
|
) {
|
|
6542
|
-
var
|
|
6542
|
+
var b = {
|
|
6543
6543
|
data: m.result,
|
|
6544
6544
|
complete: !!m.complete
|
|
6545
6545
|
};
|
|
6546
|
-
m.missing && (
|
|
6546
|
+
m.missing && (b.missing = Wo(m.missing.map(function(A) {
|
|
6547
6547
|
return A.missing;
|
|
6548
|
-
}))), y = m, g.next(
|
|
6548
|
+
}))), y = m, g.next(b);
|
|
6549
6549
|
}
|
|
6550
6550
|
} }));
|
|
6551
6551
|
});
|
|
@@ -6752,17 +6752,17 @@ var sc = /* @__PURE__ */ Object.create(null), Tf = function() {
|
|
|
6752
6752
|
if (m === Ng)
|
|
6753
6753
|
n.group.dirty(e, h);
|
|
6754
6754
|
else if (m === sc && (m = void 0), m !== y && (a[h] = m, u = !0, y = m, globalThis.__DEV__ !== !1)) {
|
|
6755
|
-
var
|
|
6755
|
+
var b = function(L) {
|
|
6756
6756
|
if (n.lookup(L.__ref) === void 0)
|
|
6757
6757
|
return globalThis.__DEV__ !== !1 && Me.warn(2, L), !0;
|
|
6758
6758
|
};
|
|
6759
6759
|
if (Ct(m))
|
|
6760
|
-
|
|
6760
|
+
b(m);
|
|
6761
6761
|
else if (Array.isArray(m))
|
|
6762
|
-
for (var A = !1, x = void 0,
|
|
6763
|
-
var P =
|
|
6762
|
+
for (var A = !1, x = void 0, w = 0, E = m; w < E.length; w++) {
|
|
6763
|
+
var P = E[w];
|
|
6764
6764
|
if (Ct(P)) {
|
|
6765
|
-
if (A = !0,
|
|
6765
|
+
if (A = !0, b(P))
|
|
6766
6766
|
break;
|
|
6767
6767
|
} else if (typeof P == "object" && P) {
|
|
6768
6768
|
var D = n.policies.identify(P)[0];
|
|
@@ -7006,8 +7006,8 @@ var Fg = (
|
|
|
7006
7006
|
var u = this.pool.lookupArray(f);
|
|
7007
7007
|
if (!u.object) {
|
|
7008
7008
|
var y = u.object = Object.create(c);
|
|
7009
|
-
this.known.add(y), h.sorted.forEach(function(m,
|
|
7010
|
-
y[m] = f[d +
|
|
7009
|
+
this.known.add(y), h.sorted.forEach(function(m, b) {
|
|
7010
|
+
y[m] = f[d + b];
|
|
7011
7011
|
}), globalThis.__DEV__ !== !1 && Object.freeze(y);
|
|
7012
7012
|
}
|
|
7013
7013
|
return u.object;
|
|
@@ -7083,15 +7083,15 @@ var DC = (
|
|
|
7083
7083
|
objectOrReference: g,
|
|
7084
7084
|
enclosingRef: g,
|
|
7085
7085
|
context: j({ store: t, query: n, policies: y, variables: u, varString: Ti(u), canonizeResults: d }, ew(n, this.config.fragments))
|
|
7086
|
-
}),
|
|
7087
|
-
if (m.missing && (
|
|
7086
|
+
}), b;
|
|
7087
|
+
if (m.missing && (b = [
|
|
7088
7088
|
new tp(FC(m.missing), m.missing, n, u)
|
|
7089
7089
|
], !f))
|
|
7090
|
-
throw
|
|
7090
|
+
throw b[0];
|
|
7091
7091
|
return {
|
|
7092
7092
|
result: m.result,
|
|
7093
|
-
complete: !
|
|
7094
|
-
missing:
|
|
7093
|
+
complete: !b,
|
|
7094
|
+
missing: b
|
|
7095
7095
|
};
|
|
7096
7096
|
}, r.prototype.isFresh = function(e, t, n, i) {
|
|
7097
7097
|
if (bo(i.store) && this.knownResults.get(e) === n) {
|
|
@@ -7117,7 +7117,7 @@ var DC = (
|
|
|
7117
7117
|
};
|
|
7118
7118
|
var c = u.variables, f = u.policies, h = u.store, d = h.getFieldValue(i, "__typename"), y = [], g, m = new Ci();
|
|
7119
7119
|
this.config.addTypename && typeof d == "string" && !f.rootIdsByTypename[d] && y.push({ __typename: d });
|
|
7120
|
-
function
|
|
7120
|
+
function b(P, D) {
|
|
7121
7121
|
var L;
|
|
7122
7122
|
return P.missing && (g = m.merge(g, (L = {}, L[D] = P.missing, L))), P.result;
|
|
7123
7123
|
}
|
|
@@ -7132,12 +7132,12 @@ var DC = (
|
|
|
7132
7132
|
variables: u.variables,
|
|
7133
7133
|
from: i
|
|
7134
7134
|
}, u), te = Ii(P);
|
|
7135
|
-
V === void 0 ? Yc.added(P) || (g = m.merge(g, (D = {}, D[te] = "Can't find field '".concat(P.name.value, "' on ").concat(Ct(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) : cr(V) ? V.length > 0 && (V =
|
|
7135
|
+
V === void 0 ? Yc.added(P) || (g = m.merge(g, (D = {}, D[te] = "Can't find field '".concat(P.name.value, "' on ").concat(Ct(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) : cr(V) ? V.length > 0 && (V = b(t.executeSubSelectedArray({
|
|
7136
7136
|
field: P,
|
|
7137
7137
|
array: V,
|
|
7138
7138
|
enclosingRef: a,
|
|
7139
7139
|
context: u
|
|
7140
|
-
}), te)) : P.selectionSet ? V != null && (V =
|
|
7140
|
+
}), te)) : P.selectionSet ? V != null && (V = b(t.executeSelectionSet({
|
|
7141
7141
|
selectionSet: P.selectionSet,
|
|
7142
7142
|
objectOrReference: V,
|
|
7143
7143
|
enclosingRef: Ct(V) ? V : a,
|
|
@@ -7150,8 +7150,8 @@ var DC = (
|
|
|
7150
7150
|
Y && f.fragmentMatches(Y, d) && Y.selectionSet.selections.forEach(A.add, A);
|
|
7151
7151
|
}
|
|
7152
7152
|
});
|
|
7153
|
-
var x = Wo(y),
|
|
7154
|
-
return
|
|
7153
|
+
var x = Wo(y), w = { result: x, missing: g }, E = u.canonizeResults ? this.canon.admit(w) : Oa(w);
|
|
7154
|
+
return E.result && this.knownResults.set(E.result, n), E;
|
|
7155
7155
|
}, r.prototype.execSubSelectedArrayImpl = function(e) {
|
|
7156
7156
|
var t = this, n = e.field, i = e.array, a = e.enclosingRef, u = e.context, c, f = new Ci();
|
|
7157
7157
|
function h(d, y) {
|
|
@@ -7283,11 +7283,11 @@ function $g(r) {
|
|
|
7283
7283
|
var d = h[0], y = d.charAt(0);
|
|
7284
7284
|
if (y === "@") {
|
|
7285
7285
|
if (i && kn(i.directives)) {
|
|
7286
|
-
var g = d.slice(1), m = i.directives.find(function(
|
|
7287
|
-
return
|
|
7288
|
-
}),
|
|
7289
|
-
return
|
|
7290
|
-
|
|
7286
|
+
var g = d.slice(1), m = i.directives.find(function(w) {
|
|
7287
|
+
return w.name.value === g;
|
|
7288
|
+
}), b = m && Bo(m, a);
|
|
7289
|
+
return b && pa(
|
|
7290
|
+
b,
|
|
7291
7291
|
// If keyPath.length === 1, this code calls extractKeyPath with an
|
|
7292
7292
|
// empty path, which works because it uses directiveArgs as the
|
|
7293
7293
|
// extracted value.
|
|
@@ -7463,8 +7463,8 @@ var qC = function() {
|
|
|
7463
7463
|
if (t === u)
|
|
7464
7464
|
return !0;
|
|
7465
7465
|
if (this.usingPossibleTypes && this.supertypeMap.has(u))
|
|
7466
|
-
for (var c = this.getSupertypeSet(t, !0), f = [c], h = function(
|
|
7467
|
-
var A = a.getSupertypeSet(
|
|
7466
|
+
for (var c = this.getSupertypeSet(t, !0), f = [c], h = function(b) {
|
|
7467
|
+
var A = a.getSupertypeSet(b, !1);
|
|
7468
7468
|
A && A.size && f.indexOf(A) < 0 && f.push(A);
|
|
7469
7469
|
}, d = !!(n && this.fuzzySubtypes.size), y = !1, g = 0; g < f.length; ++g) {
|
|
7470
7470
|
var m = f[g];
|
|
@@ -7476,8 +7476,8 @@ var qC = function() {
|
|
|
7476
7476
|
// after we verify the supertype, but this check is often less
|
|
7477
7477
|
// expensive than that search, and we will have to do the
|
|
7478
7478
|
// comparison anyway whenever we find a potential match.
|
|
7479
|
-
Wh(e.selectionSet, n, i) && (d = !1, y = !0, this.fuzzySubtypes.forEach(function(
|
|
7480
|
-
var x = t.match(
|
|
7479
|
+
Wh(e.selectionSet, n, i) && (d = !1, y = !0, this.fuzzySubtypes.forEach(function(b, A) {
|
|
7480
|
+
var x = t.match(b);
|
|
7481
7481
|
x && x[0] === t && h(A);
|
|
7482
7482
|
}));
|
|
7483
7483
|
}
|
|
@@ -7617,8 +7617,8 @@ var $C = (
|
|
|
7617
7617
|
return r.prototype.writeToStore = function(e, t) {
|
|
7618
7618
|
var n = this, i = t.query, a = t.result, u = t.dataId, c = t.variables, f = t.overwrite, h = js(i), d = PC();
|
|
7619
7619
|
c = j(j({}, zc(h)), c);
|
|
7620
|
-
var y = j(j({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(m,
|
|
7621
|
-
return d.merge(m,
|
|
7620
|
+
var y = j(j({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(m, b) {
|
|
7621
|
+
return d.merge(m, b);
|
|
7622
7622
|
}, variables: c, varString: Ti(c) }, ew(i, this.fragments)), { overwrite: !!f, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), g = this.processSelectionSet({
|
|
7623
7623
|
result: a || /* @__PURE__ */ Object.create(null),
|
|
7624
7624
|
dataId: u,
|
|
@@ -7628,17 +7628,17 @@ var $C = (
|
|
|
7628
7628
|
});
|
|
7629
7629
|
if (!Ct(g))
|
|
7630
7630
|
throw nn(11, a);
|
|
7631
|
-
return y.incomingById.forEach(function(m,
|
|
7632
|
-
var A = m.storeObject, x = m.mergeTree,
|
|
7631
|
+
return y.incomingById.forEach(function(m, b) {
|
|
7632
|
+
var A = m.storeObject, x = m.mergeTree, w = m.fieldNodeSet, E = es(b);
|
|
7633
7633
|
if (x && x.map.size) {
|
|
7634
|
-
var P = n.applyMerges(x,
|
|
7634
|
+
var P = n.applyMerges(x, E, A, y);
|
|
7635
7635
|
if (Ct(P))
|
|
7636
7636
|
return;
|
|
7637
7637
|
A = P;
|
|
7638
7638
|
}
|
|
7639
7639
|
if (globalThis.__DEV__ !== !1 && !y.overwrite) {
|
|
7640
7640
|
var D = /* @__PURE__ */ Object.create(null);
|
|
7641
|
-
|
|
7641
|
+
w.forEach(function(te) {
|
|
7642
7642
|
te.selectionSet && (D[te.name.value] = !0);
|
|
7643
7643
|
});
|
|
7644
7644
|
var L = function(te) {
|
|
@@ -7648,10 +7648,10 @@ var $C = (
|
|
|
7648
7648
|
return !!(Y && Y.info && Y.info.merge);
|
|
7649
7649
|
};
|
|
7650
7650
|
Object.keys(A).forEach(function(te) {
|
|
7651
|
-
L(te) && !V(te) && BC(
|
|
7651
|
+
L(te) && !V(te) && BC(E, A, te, y.store);
|
|
7652
7652
|
});
|
|
7653
7653
|
}
|
|
7654
|
-
e.merge(
|
|
7654
|
+
e.merge(b, A);
|
|
7655
7655
|
}), e.retain(g.__ref), g;
|
|
7656
7656
|
}, r.prototype.processSelectionSet = function(e) {
|
|
7657
7657
|
var t = this, n = e.dataId, i = e.result, a = e.selectionSet, u = e.context, c = e.mergeTree, f = this.cache.policies, h = /* @__PURE__ */ Object.create(null), d = n && f.rootTypenamesById[n] || gc(i, a, u.fragmentMap) || n && u.store.get(n, "__typename");
|
|
@@ -7712,19 +7712,19 @@ var $C = (
|
|
|
7712
7712
|
fragmentMap: u.fragmentMap,
|
|
7713
7713
|
storeObject: h,
|
|
7714
7714
|
readField: y
|
|
7715
|
-
}),
|
|
7716
|
-
n = n ||
|
|
7715
|
+
}), b = m[0], A = m[1];
|
|
7716
|
+
n = n || b, A && (h = u.merge(h, A));
|
|
7717
7717
|
} catch (P) {
|
|
7718
7718
|
if (!n)
|
|
7719
7719
|
throw P;
|
|
7720
7720
|
}
|
|
7721
7721
|
if (typeof n == "string") {
|
|
7722
|
-
var x = es(n),
|
|
7723
|
-
if (
|
|
7722
|
+
var x = es(n), w = u.written[n] || (u.written[n] = []);
|
|
7723
|
+
if (w.indexOf(a) >= 0 || (w.push(a), this.reader && this.reader.isFresh(i, x, a, u)))
|
|
7724
7724
|
return x;
|
|
7725
|
-
var
|
|
7726
|
-
return
|
|
7727
|
-
return
|
|
7725
|
+
var E = u.incomingById.get(n);
|
|
7726
|
+
return E ? (E.storeObject = u.merge(E.storeObject, h), E.mergeTree = Hh(E.mergeTree, c), g.forEach(function(P) {
|
|
7727
|
+
return E.fieldNodeSet.add(P);
|
|
7728
7728
|
})) : u.incomingById.set(n, {
|
|
7729
7729
|
storeObject: h,
|
|
7730
7730
|
// Save a reference to mergeTree only if it is not empty, because
|
|
@@ -7761,26 +7761,26 @@ var $C = (
|
|
|
7761
7761
|
);
|
|
7762
7762
|
y.visited || (y.visited = !0, h.selections.forEach(function(g) {
|
|
7763
7763
|
if (Ca(g, n.variables)) {
|
|
7764
|
-
var m = d.clientOnly,
|
|
7764
|
+
var m = d.clientOnly, b = d.deferred;
|
|
7765
7765
|
if (
|
|
7766
7766
|
// Since the presence of @client or @defer on this field can only
|
|
7767
7767
|
// cause clientOnly or deferred to become true, we can skip the
|
|
7768
7768
|
// forEach loop if both clientOnly and deferred are already true.
|
|
7769
|
-
!(m &&
|
|
7770
|
-
var
|
|
7771
|
-
if (
|
|
7772
|
-
var P = Bo(
|
|
7773
|
-
(!P || P.if !== !1) && (
|
|
7769
|
+
!(m && b) && kn(g.directives) && g.directives.forEach(function(w) {
|
|
7770
|
+
var E = w.name.value;
|
|
7771
|
+
if (E === "client" && (m = !0), E === "defer") {
|
|
7772
|
+
var P = Bo(w, n.variables);
|
|
7773
|
+
(!P || P.if !== !1) && (b = !0);
|
|
7774
7774
|
}
|
|
7775
7775
|
}), Pi(g)
|
|
7776
7776
|
) {
|
|
7777
7777
|
var A = a.get(g);
|
|
7778
|
-
A && (m = m && A.clientOnly,
|
|
7778
|
+
A && (m = m && A.clientOnly, b = b && A.deferred), a.set(g, kf(n, m, b));
|
|
7779
7779
|
} else {
|
|
7780
7780
|
var x = $o(g, n.lookupFragment);
|
|
7781
7781
|
if (!x && g.kind === Re.FRAGMENT_SPREAD)
|
|
7782
7782
|
throw nn(13, g.name.value);
|
|
7783
|
-
x && u.fragmentMatches(x, i, t, n.variables) && f(x.selectionSet, kf(n, m,
|
|
7783
|
+
x && u.fragmentMatches(x, i, t, n.variables) && f(x.selectionSet, kf(n, m, b));
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
7786
|
}));
|
|
@@ -7802,10 +7802,10 @@ var $C = (
|
|
|
7802
7802
|
return cr(g) ? typeof m == "number" ? g[m] : void 0 : i.store.getFieldValue(g, String(m));
|
|
7803
7803
|
};
|
|
7804
7804
|
e.map.forEach(function(g, m) {
|
|
7805
|
-
var
|
|
7805
|
+
var b = y(f, m), A = y(h, m);
|
|
7806
7806
|
if (A !== void 0) {
|
|
7807
7807
|
a && a.push(m);
|
|
7808
|
-
var x = c.applyMerges(g,
|
|
7808
|
+
var x = c.applyMerges(g, b, A, i, a);
|
|
7809
7809
|
x !== A && (d = d || /* @__PURE__ */ new Map(), d.set(m, x)), a && Me(a.pop() === m);
|
|
7810
7810
|
}
|
|
7811
7811
|
}), d && (n = cr(h) ? h.slice(0) : j({}, h), d.forEach(function(g, m) {
|
|
@@ -7992,19 +7992,19 @@ var op = (
|
|
|
7992
7992
|
n !== this.optimisticData && (this.optimisticData = n, this.broadcastWatches());
|
|
7993
7993
|
}, e.prototype.batch = function(t) {
|
|
7994
7994
|
var n = this, i = t.update, a = t.optimistic, u = a === void 0 ? !0 : a, c = t.removeOptimistic, f = t.onWatchUpdated, h, d = function(g) {
|
|
7995
|
-
var m = n,
|
|
7995
|
+
var m = n, b = m.data, A = m.optimisticData;
|
|
7996
7996
|
++n.txCount, g && (n.data = n.optimisticData = g);
|
|
7997
7997
|
try {
|
|
7998
7998
|
return h = i(n);
|
|
7999
7999
|
} finally {
|
|
8000
|
-
--n.txCount, n.data =
|
|
8000
|
+
--n.txCount, n.data = b, n.optimisticData = A;
|
|
8001
8001
|
}
|
|
8002
8002
|
}, y = /* @__PURE__ */ new Set();
|
|
8003
8003
|
return f && !this.txCount && this.broadcastWatches(j(j({}, t), { onWatchUpdated: function(g) {
|
|
8004
8004
|
return y.add(g), !1;
|
|
8005
8005
|
} })), typeof u == "string" ? this.optimisticData = this.optimisticData.addLayer(u, d) : u === !1 ? d(this.data) : d(), typeof c == "string" && (this.optimisticData = this.optimisticData.removeLayer(c)), f && y.size ? (this.broadcastWatches(j(j({}, t), { onWatchUpdated: function(g, m) {
|
|
8006
|
-
var
|
|
8007
|
-
return
|
|
8006
|
+
var b = f.call(this, g, m);
|
|
8007
|
+
return b !== !1 && y.delete(g), b;
|
|
8008
8008
|
} })), y.size && y.forEach(function(g) {
|
|
8009
8009
|
return n.maybeBroadcastWatch.dirty(g);
|
|
8010
8010
|
})) : this.broadcastWatches(t), h;
|
|
@@ -8049,25 +8049,25 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8049
8049
|
function e(t) {
|
|
8050
8050
|
var n = t.queryManager, i = t.queryInfo, a = t.options, u = r.call(this, function(x) {
|
|
8051
8051
|
try {
|
|
8052
|
-
var
|
|
8053
|
-
|
|
8052
|
+
var w = x._subscription._observer;
|
|
8053
|
+
w && !w.error && (w.error = zC);
|
|
8054
8054
|
} catch {
|
|
8055
8055
|
}
|
|
8056
|
-
var
|
|
8056
|
+
var E = !u.observers.size;
|
|
8057
8057
|
u.observers.add(x);
|
|
8058
8058
|
var P = u.last;
|
|
8059
|
-
return P && P.error ? x.error && x.error(P.error) : P && P.result && x.next && x.next(P.result),
|
|
8059
|
+
return P && P.error ? x.error && x.error(P.error) : P && P.result && x.next && x.next(P.result), E && u.reobserve().catch(function() {
|
|
8060
8060
|
}), function() {
|
|
8061
8061
|
u.observers.delete(x) && !u.observers.size && u.tearDownQuery();
|
|
8062
8062
|
};
|
|
8063
8063
|
}) || this;
|
|
8064
8064
|
u.observers = /* @__PURE__ */ new Set(), u.subscriptions = /* @__PURE__ */ new Set(), u.queryInfo = i, u.queryManager = n, u.waitForOwnResult = If(a.fetchPolicy), u.isTornDown = !1, u.subscribeToMore = u.subscribeToMore.bind(u);
|
|
8065
|
-
var c = n.defaultOptions.watchQuery, f = c === void 0 ? {} : c, h = f.fetchPolicy, d = h === void 0 ? "cache-first" : h, y = a.fetchPolicy, g = y === void 0 ? d : y, m = a.initialFetchPolicy,
|
|
8065
|
+
var c = n.defaultOptions.watchQuery, f = c === void 0 ? {} : c, h = f.fetchPolicy, d = h === void 0 ? "cache-first" : h, y = a.fetchPolicy, g = y === void 0 ? d : y, m = a.initialFetchPolicy, b = m === void 0 ? g === "standby" ? d : g : m;
|
|
8066
8066
|
u.options = j(j({}, a), {
|
|
8067
8067
|
// Remember the initial options.fetchPolicy so we can revert back to this
|
|
8068
8068
|
// policy when variables change. This information can also be specified
|
|
8069
8069
|
// (or overridden) by providing options.initialFetchPolicy explicitly.
|
|
8070
|
-
initialFetchPolicy:
|
|
8070
|
+
initialFetchPolicy: b,
|
|
8071
8071
|
// This ensures this.options.fetchPolicy always has a string value, in
|
|
8072
8072
|
// case options.fetchPolicy was not provided.
|
|
8073
8073
|
fetchPolicy: g
|
|
@@ -8179,9 +8179,9 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8179
8179
|
return d || Me(h, 21), this.queryManager.fetchQuery(a, i, Tt.fetchMore).then(function(y) {
|
|
8180
8180
|
if (n.queryManager.removeQuery(a), u.networkStatus === Tt.fetchMore && (u.networkStatus = c), d)
|
|
8181
8181
|
n.queryManager.cache.batch({
|
|
8182
|
-
update: function(
|
|
8182
|
+
update: function(b) {
|
|
8183
8183
|
var A = t.updateQuery;
|
|
8184
|
-
A ?
|
|
8184
|
+
A ? b.updateQuery({
|
|
8185
8185
|
query: n.query,
|
|
8186
8186
|
variables: n.variables,
|
|
8187
8187
|
returnPartialData: !0,
|
|
@@ -8191,14 +8191,14 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8191
8191
|
fetchMoreResult: y.data,
|
|
8192
8192
|
variables: i.variables
|
|
8193
8193
|
});
|
|
8194
|
-
}) :
|
|
8194
|
+
}) : b.writeQuery({
|
|
8195
8195
|
query: i.query,
|
|
8196
8196
|
variables: i.variables,
|
|
8197
8197
|
data: y.data
|
|
8198
8198
|
});
|
|
8199
8199
|
},
|
|
8200
|
-
onWatchUpdated: function(
|
|
8201
|
-
f.add(
|
|
8200
|
+
onWatchUpdated: function(b) {
|
|
8201
|
+
f.add(b.query);
|
|
8202
8202
|
}
|
|
8203
8203
|
});
|
|
8204
8204
|
else {
|
|
@@ -8337,16 +8337,16 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8337
8337
|
// so in that case `applyNextFetchPolicy` must be called.
|
|
8338
8338
|
typeof h.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", h), n === void 0 && (n = Tt.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = If(h.fetchPolicy));
|
|
8339
8339
|
var y = function() {
|
|
8340
|
-
i.concast ===
|
|
8341
|
-
}, g = h.variables && j({}, h.variables), m = this.fetch(h, n, d),
|
|
8342
|
-
next: function(
|
|
8343
|
-
qt(i.variables, g) && (y(), i.reportResult(
|
|
8340
|
+
i.concast === b && (i.waitForOwnResult = !1);
|
|
8341
|
+
}, g = h.variables && j({}, h.variables), m = this.fetch(h, n, d), b = m.concast, A = m.fromLink, x = {
|
|
8342
|
+
next: function(w) {
|
|
8343
|
+
qt(i.variables, g) && (y(), i.reportResult(w, g));
|
|
8344
8344
|
},
|
|
8345
|
-
error: function(
|
|
8346
|
-
qt(i.variables, g) && (Yd(
|
|
8345
|
+
error: function(w) {
|
|
8346
|
+
qt(i.variables, g) && (Yd(w) || (w = new On({ networkError: w })), y(), i.reportError(w, g));
|
|
8347
8347
|
}
|
|
8348
8348
|
};
|
|
8349
|
-
return !a && (A || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast =
|
|
8349
|
+
return !a && (A || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = b, this.observer = x), b.addObserver(x), b;
|
|
8350
8350
|
}, e.prototype.reobserve = function(t, n) {
|
|
8351
8351
|
return this.reobserveAsConcast(t, n).promise;
|
|
8352
8352
|
}, e.prototype.resubscribeAfterError = function() {
|
|
@@ -8586,7 +8586,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8586
8586
|
}), this.fetchCancelFns.clear();
|
|
8587
8587
|
}, r.prototype.mutate = function(e) {
|
|
8588
8588
|
return Qi(this, arguments, void 0, function(t) {
|
|
8589
|
-
var n, i, a, u, c, f, h, d = t.mutation, y = t.variables, g = t.optimisticResponse, m = t.updateQueries,
|
|
8589
|
+
var n, i, a, u, c, f, h, d = t.mutation, y = t.variables, g = t.optimisticResponse, m = t.updateQueries, b = t.refetchQueries, A = b === void 0 ? [] : b, x = t.awaitRefetchQueries, w = x === void 0 ? !1 : x, E = t.update, P = t.onQueryUpdated, D = t.fetchPolicy, L = D === void 0 ? ((f = this.defaultOptions.mutate) === null || f === void 0 ? void 0 : f.fetchPolicy) || "network-only" : D, V = t.errorPolicy, te = V === void 0 ? ((h = this.defaultOptions.mutate) === null || h === void 0 ? void 0 : h.errorPolicy) || "none" : V, Y = t.keepRootFields, ue = t.context;
|
|
8590
8590
|
return Ji(this, function(fe) {
|
|
8591
8591
|
switch (fe.label) {
|
|
8592
8592
|
case 0:
|
|
@@ -8607,7 +8607,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8607
8607
|
errorPolicy: te,
|
|
8608
8608
|
context: ue,
|
|
8609
8609
|
updateQueries: m,
|
|
8610
|
-
update:
|
|
8610
|
+
update: E,
|
|
8611
8611
|
keepRootFields: Y
|
|
8612
8612
|
}), this.broadcastQueries(), c = this, [2, new Promise(function(qe, ge) {
|
|
8613
8613
|
return rc(c.getObservableFromLink(d, j(j({}, ue), { optimisticResponse: u ? g : void 0 }), y, {}, !1), function(Ne) {
|
|
@@ -8625,9 +8625,9 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8625
8625
|
fetchPolicy: L,
|
|
8626
8626
|
errorPolicy: te,
|
|
8627
8627
|
context: ue,
|
|
8628
|
-
update:
|
|
8628
|
+
update: E,
|
|
8629
8629
|
updateQueries: m,
|
|
8630
|
-
awaitRefetchQueries:
|
|
8630
|
+
awaitRefetchQueries: w,
|
|
8631
8631
|
refetchQueries: A,
|
|
8632
8632
|
removeOptimistic: u ? n : void 0,
|
|
8633
8633
|
onQueryUpdated: P,
|
|
@@ -8677,25 +8677,25 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8677
8677
|
}
|
|
8678
8678
|
var h = e.updateQueries;
|
|
8679
8679
|
h && this.queries.forEach(function(y, g) {
|
|
8680
|
-
var m = y.observableQuery,
|
|
8681
|
-
if (!(!
|
|
8682
|
-
var A = h[
|
|
8683
|
-
query:
|
|
8684
|
-
variables:
|
|
8680
|
+
var m = y.observableQuery, b = m && m.queryName;
|
|
8681
|
+
if (!(!b || !HC.call(h, b))) {
|
|
8682
|
+
var A = h[b], x = n.queries.get(g), w = x.document, E = x.variables, P = t.diff({
|
|
8683
|
+
query: w,
|
|
8684
|
+
variables: E,
|
|
8685
8685
|
returnPartialData: !0,
|
|
8686
8686
|
optimistic: !1
|
|
8687
8687
|
}), D = P.result, L = P.complete;
|
|
8688
8688
|
if (L && D) {
|
|
8689
8689
|
var V = A(D, {
|
|
8690
8690
|
mutationResult: i,
|
|
8691
|
-
queryName:
|
|
8692
|
-
queryVariables:
|
|
8691
|
+
queryName: w && vc(w) || void 0,
|
|
8692
|
+
queryVariables: E
|
|
8693
8693
|
});
|
|
8694
8694
|
V && a.push({
|
|
8695
8695
|
result: V,
|
|
8696
8696
|
dataId: "ROOT_QUERY",
|
|
8697
|
-
query:
|
|
8698
|
-
variables:
|
|
8697
|
+
query: w,
|
|
8698
|
+
variables: E
|
|
8699
8699
|
});
|
|
8700
8700
|
}
|
|
8701
8701
|
}
|
|
@@ -8711,7 +8711,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8711
8711
|
var g = e.update, m = !Ub(i) || Cs(i) && !i.hasNext;
|
|
8712
8712
|
if (g) {
|
|
8713
8713
|
if (!u) {
|
|
8714
|
-
var
|
|
8714
|
+
var b = y.diff({
|
|
8715
8715
|
id: "ROOT_MUTATION",
|
|
8716
8716
|
// The cache complains if passed a mutation where it expects a
|
|
8717
8717
|
// query, so we transform mutations and subscriptions to queries
|
|
@@ -8721,7 +8721,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8721
8721
|
optimistic: !1,
|
|
8722
8722
|
returnPartialData: !0
|
|
8723
8723
|
});
|
|
8724
|
-
|
|
8724
|
+
b.complete && (i = j(j({}, i), { data: b.result }), "incremental" in i && delete i.incremental, "hasNext" in i && delete i.hasNext);
|
|
8725
8725
|
}
|
|
8726
8726
|
m && g(y, i, {
|
|
8727
8727
|
context: e.context,
|
|
@@ -8731,8 +8731,8 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8731
8731
|
!u && !e.keepRootFields && m && y.modify({
|
|
8732
8732
|
id: "ROOT_MUTATION",
|
|
8733
8733
|
fields: function(A, x) {
|
|
8734
|
-
var
|
|
8735
|
-
return
|
|
8734
|
+
var w = x.fieldName, E = x.DELETE;
|
|
8735
|
+
return w === "__typename" ? A : E;
|
|
8736
8736
|
}
|
|
8737
8737
|
});
|
|
8738
8738
|
},
|
|
@@ -8890,30 +8890,30 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8890
8890
|
}, r.prototype.startGraphQLSubscription = function(e) {
|
|
8891
8891
|
var t = this, n = e.query, i = e.fetchPolicy, a = e.errorPolicy, u = a === void 0 ? "none" : a, c = e.variables, f = e.context, h = f === void 0 ? {} : f, d = e.extensions, y = d === void 0 ? {} : d;
|
|
8892
8892
|
n = this.transform(n), c = this.getVariables(n, c);
|
|
8893
|
-
var g = function(
|
|
8894
|
-
return t.getObservableFromLink(n, h,
|
|
8893
|
+
var g = function(b) {
|
|
8894
|
+
return t.getObservableFromLink(n, h, b, y).map(function(A) {
|
|
8895
8895
|
i !== "no-cache" && (Gh(A, u) && t.cache.write({
|
|
8896
8896
|
query: n,
|
|
8897
8897
|
result: A.data,
|
|
8898
8898
|
dataId: "ROOT_SUBSCRIPTION",
|
|
8899
|
-
variables:
|
|
8899
|
+
variables: b
|
|
8900
8900
|
}), t.broadcastQueries());
|
|
8901
|
-
var x = vo(A),
|
|
8902
|
-
if (x ||
|
|
8903
|
-
var
|
|
8904
|
-
if (x && (
|
|
8905
|
-
throw new On(
|
|
8901
|
+
var x = vo(A), w = hC(A);
|
|
8902
|
+
if (x || w) {
|
|
8903
|
+
var E = {};
|
|
8904
|
+
if (x && (E.graphQLErrors = A.errors), w && (E.protocolErrors = A.extensions[Jd]), u === "none" || w)
|
|
8905
|
+
throw new On(E);
|
|
8906
8906
|
}
|
|
8907
8907
|
return u === "ignore" && delete A.errors, A;
|
|
8908
8908
|
});
|
|
8909
8909
|
};
|
|
8910
8910
|
if (this.getDocumentInfo(n).hasClientExports) {
|
|
8911
8911
|
var m = this.localState.addExportedVariables(n, c, h).then(g);
|
|
8912
|
-
return new Pt(function(
|
|
8912
|
+
return new Pt(function(b) {
|
|
8913
8913
|
var A = null;
|
|
8914
8914
|
return m.then(function(x) {
|
|
8915
|
-
return A = x.subscribe(
|
|
8916
|
-
},
|
|
8915
|
+
return A = x.subscribe(b);
|
|
8916
|
+
}, b.error), function() {
|
|
8917
8917
|
return A && A.unsubscribe();
|
|
8918
8918
|
};
|
|
8919
8919
|
});
|
|
@@ -8936,7 +8936,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8936
8936
|
a === void 0 && (a = (c = t == null ? void 0 : t.queryDeduplication) !== null && c !== void 0 ? c : this.queryDeduplication);
|
|
8937
8937
|
var f, h = this.getDocumentInfo(e), d = h.serverQuery, y = h.clientQuery;
|
|
8938
8938
|
if (d) {
|
|
8939
|
-
var g = this, m = g.inFlightLinkObservables,
|
|
8939
|
+
var g = this, m = g.inFlightLinkObservables, b = g.link, A = {
|
|
8940
8940
|
query: d,
|
|
8941
8941
|
variables: n,
|
|
8942
8942
|
operationName: vc(d) || void 0,
|
|
@@ -8944,18 +8944,18 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8944
8944
|
extensions: i
|
|
8945
8945
|
};
|
|
8946
8946
|
if (t = A.context, a) {
|
|
8947
|
-
var x = Na(d),
|
|
8948
|
-
if (f =
|
|
8947
|
+
var x = Na(d), w = Ti(n), E = m.lookup(x, w);
|
|
8948
|
+
if (f = E.observable, !f) {
|
|
8949
8949
|
var P = new ks([
|
|
8950
|
-
_c(
|
|
8950
|
+
_c(b, A)
|
|
8951
8951
|
]);
|
|
8952
|
-
f =
|
|
8953
|
-
m.remove(x,
|
|
8952
|
+
f = E.observable = P, P.beforeNext(function() {
|
|
8953
|
+
m.remove(x, w);
|
|
8954
8954
|
});
|
|
8955
8955
|
}
|
|
8956
8956
|
} else
|
|
8957
8957
|
f = new ks([
|
|
8958
|
-
_c(
|
|
8958
|
+
_c(b, A)
|
|
8959
8959
|
]);
|
|
8960
8960
|
} else
|
|
8961
8961
|
f = new ks([Pt.of({ data: {} })]), t = this.prepareContext(t);
|
|
@@ -8991,14 +8991,14 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8991
8991
|
}, r.prototype.fetchConcastWithInfo = function(e, t, n, i) {
|
|
8992
8992
|
var a = this;
|
|
8993
8993
|
n === void 0 && (n = Tt.loading), i === void 0 && (i = t.query);
|
|
8994
|
-
var u = this.getVariables(i, t.variables), c = this.getQuery(e), f = this.defaultOptions.watchQuery, h = t.fetchPolicy, d = h === void 0 ? f && f.fetchPolicy || "cache-first" : h, y = t.errorPolicy, g = y === void 0 ? f && f.errorPolicy || "none" : y, m = t.returnPartialData,
|
|
8994
|
+
var u = this.getVariables(i, t.variables), c = this.getQuery(e), f = this.defaultOptions.watchQuery, h = t.fetchPolicy, d = h === void 0 ? f && f.fetchPolicy || "cache-first" : h, y = t.errorPolicy, g = y === void 0 ? f && f.errorPolicy || "none" : y, m = t.returnPartialData, b = m === void 0 ? !1 : m, A = t.notifyOnNetworkStatusChange, x = A === void 0 ? !1 : A, w = t.context, E = w === void 0 ? {} : w, P = Object.assign({}, t, {
|
|
8995
8995
|
query: i,
|
|
8996
8996
|
variables: u,
|
|
8997
8997
|
fetchPolicy: d,
|
|
8998
8998
|
errorPolicy: g,
|
|
8999
|
-
returnPartialData:
|
|
8999
|
+
returnPartialData: b,
|
|
9000
9000
|
notifyOnNetworkStatusChange: x,
|
|
9001
|
-
context:
|
|
9001
|
+
context: E
|
|
9002
9002
|
}), D = function(ue) {
|
|
9003
9003
|
P.variables = ue;
|
|
9004
9004
|
var fe = a.fetchQueryByPolicy(c, P, n);
|
|
@@ -9079,27 +9079,27 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9079
9079
|
// true, the removeOptimistic string will determine the ID of the
|
|
9080
9080
|
// temporary optimistic layer, in case that ever matters.
|
|
9081
9081
|
removeOptimistic: f,
|
|
9082
|
-
onWatchUpdated: function(g, m,
|
|
9082
|
+
onWatchUpdated: function(g, m, b) {
|
|
9083
9083
|
var A = g.watcher instanceof Cf && g.watcher.observableQuery;
|
|
9084
9084
|
if (A) {
|
|
9085
9085
|
if (h) {
|
|
9086
9086
|
d.delete(A.queryId);
|
|
9087
|
-
var x = h(A, m,
|
|
9087
|
+
var x = h(A, m, b);
|
|
9088
9088
|
return x === !0 && (x = A.refetch()), x !== !1 && y.set(A, x), x;
|
|
9089
9089
|
}
|
|
9090
|
-
h !== null && d.set(A.queryId, { oq: A, lastDiff:
|
|
9090
|
+
h !== null && d.set(A.queryId, { oq: A, lastDiff: b, diff: m });
|
|
9091
9091
|
}
|
|
9092
9092
|
}
|
|
9093
9093
|
}), d.size && d.forEach(function(g, m) {
|
|
9094
|
-
var
|
|
9094
|
+
var b = g.oq, A = g.lastDiff, x = g.diff, w;
|
|
9095
9095
|
if (h) {
|
|
9096
9096
|
if (!x) {
|
|
9097
|
-
var
|
|
9098
|
-
|
|
9097
|
+
var E = b.queryInfo;
|
|
9098
|
+
E.reset(), x = E.getDiff();
|
|
9099
9099
|
}
|
|
9100
|
-
|
|
9100
|
+
w = h(b, x, A);
|
|
9101
9101
|
}
|
|
9102
|
-
(!h ||
|
|
9102
|
+
(!h || w === !0) && (w = b.refetch()), w !== !1 && y.set(b, w), m.indexOf("legacyOneTimeQuery") >= 0 && t.stopQueryNoBroadcast(m);
|
|
9103
9103
|
}), f && this.cache.removeOptimistic(f), y;
|
|
9104
9104
|
}, r.prototype.fetchQueryByPolicy = function(e, t, n) {
|
|
9105
9105
|
var i = this, a = t.query, u = t.variables, c = t.fetchPolicy, f = t.refetchWritePolicy, h = t.errorPolicy, d = t.returnPartialData, y = t.context, g = t.notifyOnNetworkStatusChange, m = e.networkStatus;
|
|
@@ -9108,7 +9108,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9108
9108
|
variables: u,
|
|
9109
9109
|
networkStatus: n
|
|
9110
9110
|
});
|
|
9111
|
-
var
|
|
9111
|
+
var b = function() {
|
|
9112
9112
|
return e.getDiff();
|
|
9113
9113
|
}, A = function(D, L) {
|
|
9114
9114
|
L === void 0 && (L = e.networkStatus || Tt.loading);
|
|
@@ -9126,7 +9126,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9126
9126
|
}).then(function(Y) {
|
|
9127
9127
|
return te(Y.data || void 0);
|
|
9128
9128
|
}) : h === "none" && L === Tt.refetch && Array.isArray(D.missing) ? te(void 0) : te(V);
|
|
9129
|
-
}, x = c === "no-cache" ? 0 : n === Tt.refetch && f !== "merge" ? 1 : 2,
|
|
9129
|
+
}, x = c === "no-cache" ? 0 : n === Tt.refetch && f !== "merge" ? 1 : 2, w = function() {
|
|
9130
9130
|
return i.getResultsFromLink(e, x, {
|
|
9131
9131
|
query: a,
|
|
9132
9132
|
variables: u,
|
|
@@ -9134,44 +9134,44 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9134
9134
|
fetchPolicy: c,
|
|
9135
9135
|
errorPolicy: h
|
|
9136
9136
|
});
|
|
9137
|
-
},
|
|
9137
|
+
}, E = g && typeof m == "number" && m !== n && No(n);
|
|
9138
9138
|
switch (c) {
|
|
9139
9139
|
default:
|
|
9140
9140
|
case "cache-first": {
|
|
9141
|
-
var P =
|
|
9141
|
+
var P = b();
|
|
9142
9142
|
return P.complete ? {
|
|
9143
9143
|
fromLink: !1,
|
|
9144
9144
|
sources: [A(P, e.markReady())]
|
|
9145
|
-
} : d ||
|
|
9145
|
+
} : d || E ? {
|
|
9146
9146
|
fromLink: !0,
|
|
9147
|
-
sources: [A(P),
|
|
9148
|
-
} : { fromLink: !0, sources: [
|
|
9147
|
+
sources: [A(P), w()]
|
|
9148
|
+
} : { fromLink: !0, sources: [w()] };
|
|
9149
9149
|
}
|
|
9150
9150
|
case "cache-and-network": {
|
|
9151
|
-
var P =
|
|
9152
|
-
return P.complete || d ||
|
|
9151
|
+
var P = b();
|
|
9152
|
+
return P.complete || d || E ? {
|
|
9153
9153
|
fromLink: !0,
|
|
9154
|
-
sources: [A(P),
|
|
9155
|
-
} : { fromLink: !0, sources: [
|
|
9154
|
+
sources: [A(P), w()]
|
|
9155
|
+
} : { fromLink: !0, sources: [w()] };
|
|
9156
9156
|
}
|
|
9157
9157
|
case "cache-only":
|
|
9158
9158
|
return {
|
|
9159
9159
|
fromLink: !1,
|
|
9160
|
-
sources: [A(
|
|
9160
|
+
sources: [A(b(), e.markReady())]
|
|
9161
9161
|
};
|
|
9162
9162
|
case "network-only":
|
|
9163
|
-
return
|
|
9163
|
+
return E ? {
|
|
9164
9164
|
fromLink: !0,
|
|
9165
|
-
sources: [A(
|
|
9166
|
-
} : { fromLink: !0, sources: [
|
|
9165
|
+
sources: [A(b()), w()]
|
|
9166
|
+
} : { fromLink: !0, sources: [w()] };
|
|
9167
9167
|
case "no-cache":
|
|
9168
|
-
return
|
|
9168
|
+
return E ? {
|
|
9169
9169
|
fromLink: !0,
|
|
9170
9170
|
// Note that queryInfo.getDiff() for no-cache queries does not call
|
|
9171
9171
|
// cache.diff, but instead returns a { complete: false } stub result
|
|
9172
9172
|
// when there is no queryInfo.diff already defined.
|
|
9173
|
-
sources: [A(e.getDiff()),
|
|
9174
|
-
} : { fromLink: !0, sources: [
|
|
9173
|
+
sources: [A(e.getDiff()), w()]
|
|
9174
|
+
} : { fromLink: !0, sources: [w()] };
|
|
9175
9175
|
case "standby":
|
|
9176
9176
|
return { fromLink: !1, sources: [] };
|
|
9177
9177
|
}
|
|
@@ -9254,23 +9254,23 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9254
9254
|
}).result;
|
|
9255
9255
|
}, r.prototype.resolveDocument = function(e, t) {
|
|
9256
9256
|
return Qi(this, arguments, void 0, function(n, i, a, u, c, f) {
|
|
9257
|
-
var h, d, y, g, m,
|
|
9257
|
+
var h, d, y, g, m, b, A, x, w, E, P;
|
|
9258
9258
|
return a === void 0 && (a = {}), u === void 0 && (u = {}), c === void 0 && (c = function() {
|
|
9259
9259
|
return !0;
|
|
9260
9260
|
}), f === void 0 && (f = !1), Ji(this, function(D) {
|
|
9261
|
-
return h = os(n), d = Vo(n), y = Uo(d), g = this.collectSelectionsToResolve(h, y), m = h.operation,
|
|
9261
|
+
return h = os(n), d = Vo(n), y = Uo(d), g = this.collectSelectionsToResolve(h, y), m = h.operation, b = m ? m.charAt(0).toUpperCase() + m.slice(1) : "Query", A = this, x = A.cache, w = A.client, E = {
|
|
9262
9262
|
fragmentMap: y,
|
|
9263
|
-
context: j(j({}, a), { cache: x, client:
|
|
9263
|
+
context: j(j({}, a), { cache: x, client: w }),
|
|
9264
9264
|
variables: u,
|
|
9265
9265
|
fragmentMatcher: c,
|
|
9266
|
-
defaultOperationType:
|
|
9266
|
+
defaultOperationType: b,
|
|
9267
9267
|
exportedVariables: {},
|
|
9268
9268
|
selectionsToResolve: g,
|
|
9269
9269
|
onlyRunForcedResolvers: f
|
|
9270
|
-
}, P = !1, [2, this.resolveSelectionSet(h.selectionSet, P, i,
|
|
9270
|
+
}, P = !1, [2, this.resolveSelectionSet(h.selectionSet, P, i, E).then(function(L) {
|
|
9271
9271
|
return {
|
|
9272
9272
|
result: L,
|
|
9273
|
-
exportedVariables:
|
|
9273
|
+
exportedVariables: E.exportedVariables
|
|
9274
9274
|
};
|
|
9275
9275
|
})];
|
|
9276
9276
|
});
|
|
@@ -9281,15 +9281,15 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9281
9281
|
return Ji(this, function(y) {
|
|
9282
9282
|
return a = i.fragmentMap, u = i.context, c = i.variables, f = [n], h = function(g) {
|
|
9283
9283
|
return Qi(d, void 0, void 0, function() {
|
|
9284
|
-
var m,
|
|
9284
|
+
var m, b;
|
|
9285
9285
|
return Ji(this, function(A) {
|
|
9286
9286
|
return !t && !i.selectionsToResolve.has(g) ? [
|
|
9287
9287
|
2
|
|
9288
9288
|
/*return*/
|
|
9289
9289
|
] : Ca(g, c) ? Pi(g) ? [2, this.resolveField(g, t, n, i).then(function(x) {
|
|
9290
|
-
var
|
|
9291
|
-
typeof x < "u" && f.push((
|
|
9292
|
-
})] : (bb(g) ? m = g : (m = a[g.name.value], Me(m, 18, g.name.value)), m && m.typeCondition && (
|
|
9290
|
+
var w;
|
|
9291
|
+
typeof x < "u" && f.push((w = {}, w[Ii(g)] = x, w));
|
|
9292
|
+
})] : (bb(g) ? m = g : (m = a[g.name.value], Me(m, 18, g.name.value)), m && m.typeCondition && (b = m.typeCondition.name.value, i.fragmentMatcher(n, b, u)) ? [2, this.resolveSelectionSet(m.selectionSet, t, n, i).then(function(x) {
|
|
9293
9293
|
f.push(x);
|
|
9294
9294
|
})] : [
|
|
9295
9295
|
2
|
|
@@ -9307,7 +9307,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9307
9307
|
});
|
|
9308
9308
|
}, r.prototype.resolveField = function(e, t, n, i) {
|
|
9309
9309
|
return Qi(this, void 0, void 0, function() {
|
|
9310
|
-
var a, u, c, f, h, d, y, g, m,
|
|
9310
|
+
var a, u, c, f, h, d, y, g, m, b = this;
|
|
9311
9311
|
return Ji(this, function(A) {
|
|
9312
9312
|
return n ? (a = i.variables, u = e.name.value, c = Ii(e), f = u !== c, h = n[c] || n[u], d = Promise.resolve(h), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (y = n.__typename || i.defaultOperationType, g = this.resolvers && this.resolvers[y], g && (m = g[f ? u : c], m && (d = Promise.resolve(
|
|
9313
9313
|
// In case the resolve function accesses reactive variables,
|
|
@@ -9319,20 +9319,20 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9319
9319
|
{ field: e, fragmentMap: i.fragmentMap }
|
|
9320
9320
|
])
|
|
9321
9321
|
)))), [2, d.then(function(x) {
|
|
9322
|
-
var
|
|
9322
|
+
var w, E;
|
|
9323
9323
|
if (x === void 0 && (x = h), e.directives && e.directives.forEach(function(D) {
|
|
9324
9324
|
D.name.value === "export" && D.arguments && D.arguments.forEach(function(L) {
|
|
9325
9325
|
L.name.value === "as" && L.value.kind === "StringValue" && (i.exportedVariables[L.value.value] = x);
|
|
9326
9326
|
});
|
|
9327
9327
|
}), !e.selectionSet || x == null)
|
|
9328
9328
|
return x;
|
|
9329
|
-
var P = (
|
|
9329
|
+
var P = (E = (w = e.directives) === null || w === void 0 ? void 0 : w.some(function(D) {
|
|
9330
9330
|
return D.name.value === "client";
|
|
9331
|
-
})) !== null &&
|
|
9331
|
+
})) !== null && E !== void 0 ? E : !1;
|
|
9332
9332
|
if (Array.isArray(x))
|
|
9333
|
-
return
|
|
9333
|
+
return b.resolveSubSelectedArray(e, t || P, x, i);
|
|
9334
9334
|
if (e.selectionSet)
|
|
9335
|
-
return
|
|
9335
|
+
return b.resolveSelectionSet(e.selectionSet, t || P, x, i);
|
|
9336
9336
|
})]) : [2, null];
|
|
9337
9337
|
});
|
|
9338
9338
|
});
|
|
@@ -9362,10 +9362,10 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9362
9362
|
FragmentSpread: function(f, h, d, y, g) {
|
|
9363
9363
|
var m = t[f.name.value];
|
|
9364
9364
|
Me(m, 19, f.name.value);
|
|
9365
|
-
var
|
|
9366
|
-
|
|
9365
|
+
var b = a(m);
|
|
9366
|
+
b.size > 0 && (g.forEach(function(A) {
|
|
9367
9367
|
n(A) && fg(A) && c.add(A);
|
|
9368
|
-
}), c.add(f),
|
|
9368
|
+
}), c.add(f), b.forEach(function(A) {
|
|
9369
9369
|
c.add(A);
|
|
9370
9370
|
}));
|
|
9371
9371
|
}
|
|
@@ -9383,8 +9383,8 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9383
9383
|
var t = this;
|
|
9384
9384
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
|
|
9385
9385
|
throw nn(15);
|
|
9386
|
-
var n = e.uri, i = e.credentials, a = e.headers, u = e.cache, c = e.documentTransform, f = e.ssrMode, h = f === void 0 ? !1 : f, d = e.ssrForceFetchDelay, y = d === void 0 ? 0 : d, g = e.connectToDevTools, m = e.queryDeduplication,
|
|
9387
|
-
ue || (ue = n ? new Jb({ uri: n, credentials: i, headers: a }) : sn.empty()), this.link = ue, this.cache = u, this.disableNetworkFetches = h || y > 0, this.queryDeduplication =
|
|
9386
|
+
var n = e.uri, i = e.credentials, a = e.headers, u = e.cache, c = e.documentTransform, f = e.ssrMode, h = f === void 0 ? !1 : f, d = e.ssrForceFetchDelay, y = d === void 0 ? 0 : d, g = e.connectToDevTools, m = e.queryDeduplication, b = m === void 0 ? !0 : m, A = e.defaultOptions, x = e.defaultContext, w = e.assumeImmutableResults, E = w === void 0 ? u.assumeImmutableResults : w, P = e.resolvers, D = e.typeDefs, L = e.fragmentMatcher, V = e.name, te = e.version, Y = e.devtools, ue = e.link;
|
|
9387
|
+
ue || (ue = n ? new Jb({ uri: n, credentials: i, headers: a }) : sn.empty()), this.link = ue, this.cache = u, this.disableNetworkFetches = h || y > 0, this.queryDeduplication = b, this.defaultOptions = A || /* @__PURE__ */ Object.create(null), this.typeDefs = D, this.devtoolsConfig = j(j({}, Y), { enabled: (Y == null ? void 0 : Y.enabled) || g }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), y && setTimeout(function() {
|
|
9388
9388
|
return t.disableNetworkFetches = !1;
|
|
9389
9389
|
}, y), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = xd, this.localState = new QC({
|
|
9390
9390
|
cache: u,
|
|
@@ -9397,14 +9397,14 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9397
9397
|
defaultOptions: this.defaultOptions,
|
|
9398
9398
|
defaultContext: x,
|
|
9399
9399
|
documentTransform: c,
|
|
9400
|
-
queryDeduplication:
|
|
9400
|
+
queryDeduplication: b,
|
|
9401
9401
|
ssrMode: h,
|
|
9402
9402
|
clientAwareness: {
|
|
9403
9403
|
name: V,
|
|
9404
9404
|
version: te
|
|
9405
9405
|
},
|
|
9406
9406
|
localState: this.localState,
|
|
9407
|
-
assumeImmutableResults:
|
|
9407
|
+
assumeImmutableResults: E,
|
|
9408
9408
|
onBroadcast: this.devtoolsConfig.enabled ? function() {
|
|
9409
9409
|
t.devToolsHookCb && t.devToolsHookCb({
|
|
9410
9410
|
action: {},
|
|
@@ -9785,8 +9785,8 @@ function ww(r) {
|
|
|
9785
9785
|
Me(g.length === 1, 65, r, g.length);
|
|
9786
9786
|
var m = g[0];
|
|
9787
9787
|
t = m.variableDefinitions || [], m.name && m.name.kind === "Name" ? i = m.name.value : i = "data";
|
|
9788
|
-
var
|
|
9789
|
-
return Is.set(r,
|
|
9788
|
+
var b = { name: i, type: n, variables: t };
|
|
9789
|
+
return Is.set(r, b), b;
|
|
9790
9790
|
}
|
|
9791
9791
|
ww.resetCache = function() {
|
|
9792
9792
|
Is = void 0;
|
|
@@ -9837,14 +9837,14 @@ function aR(r, e, t, n, i) {
|
|
|
9837
9837
|
function h(y) {
|
|
9838
9838
|
var g, m;
|
|
9839
9839
|
Object.assign(c.observable, (g = {}, g[oc] = y, g));
|
|
9840
|
-
var
|
|
9840
|
+
var b = c.resultData;
|
|
9841
9841
|
f(j(j({}, c), {
|
|
9842
9842
|
// might be a different query
|
|
9843
9843
|
query: y.query,
|
|
9844
|
-
resultData: Object.assign(
|
|
9844
|
+
resultData: Object.assign(b, {
|
|
9845
9845
|
// We need to modify the previous `resultData` object as we rely on the
|
|
9846
9846
|
// object reference in other places
|
|
9847
|
-
previousData: ((m =
|
|
9847
|
+
previousData: ((m = b.current) === null || m === void 0 ? void 0 : m.data) || b.previousData,
|
|
9848
9848
|
current: void 0
|
|
9849
9849
|
})
|
|
9850
9850
|
}));
|
|
@@ -9856,7 +9856,7 @@ function aR(r, e, t, n, i) {
|
|
|
9856
9856
|
return [c, h];
|
|
9857
9857
|
}
|
|
9858
9858
|
function oR(r, e) {
|
|
9859
|
-
var t = vw(e.client), n = ct.useContext(cp()).renderPromises, i = !!n, a = t.disableNetworkFetches, u = e.ssr !== !1 && !e.skip, c = e.partialRefetch, f = xw(t, r, e, i), h = aR(t, r, e, n, f), d = h[0], y = d.observable, g = d.resultData, m = h[1],
|
|
9859
|
+
var t = vw(e.client), n = ct.useContext(cp()).renderPromises, i = !!n, a = t.disableNetworkFetches, u = e.ssr !== !1 && !e.skip, c = e.partialRefetch, f = xw(t, r, e, i), h = aR(t, r, e, n, f), d = h[0], y = d.observable, g = d.resultData, m = h[1], b = f(y);
|
|
9860
9860
|
lR(
|
|
9861
9861
|
g,
|
|
9862
9862
|
// might get mutated during render
|
|
@@ -9864,13 +9864,13 @@ function oR(r, e) {
|
|
|
9864
9864
|
// might get mutated during render
|
|
9865
9865
|
t,
|
|
9866
9866
|
e,
|
|
9867
|
-
|
|
9867
|
+
b
|
|
9868
9868
|
);
|
|
9869
9869
|
var A = ct.useMemo(function() {
|
|
9870
9870
|
return dR(y);
|
|
9871
9871
|
}, [y]);
|
|
9872
9872
|
cR(y, n, u);
|
|
9873
|
-
var x = uR(g, y, t, e,
|
|
9873
|
+
var x = uR(g, y, t, e, b, a, c, i, {
|
|
9874
9874
|
onCompleted: e.onCompleted || rv,
|
|
9875
9875
|
onError: e.onError || rv
|
|
9876
9876
|
});
|
|
@@ -9911,20 +9911,20 @@ function uR(r, e, t, n, i, a, u, c, f) {
|
|
|
9911
9911
|
if (c)
|
|
9912
9912
|
return function() {
|
|
9913
9913
|
};
|
|
9914
|
-
var
|
|
9915
|
-
var
|
|
9916
|
-
|
|
9917
|
-
}, A = function(
|
|
9918
|
-
if (x.current.unsubscribe(), x.current = e.resubscribeAfterError(
|
|
9919
|
-
throw
|
|
9920
|
-
var
|
|
9921
|
-
(!
|
|
9922
|
-
data:
|
|
9923
|
-
error:
|
|
9914
|
+
var b = function() {
|
|
9915
|
+
var w = r.current, E = e.getCurrentResult();
|
|
9916
|
+
w && w.loading === E.loading && w.networkStatus === E.networkStatus && qt(w.data, E.data) || Yh(E, r, e, t, u, m, h.current);
|
|
9917
|
+
}, A = function(w) {
|
|
9918
|
+
if (x.current.unsubscribe(), x.current = e.resubscribeAfterError(b, A), !sR.call(w, "graphQLErrors"))
|
|
9919
|
+
throw w;
|
|
9920
|
+
var E = r.current;
|
|
9921
|
+
(!E || E && E.loading || !qt(w, E.error)) && Yh({
|
|
9922
|
+
data: E && E.data,
|
|
9923
|
+
error: w,
|
|
9924
9924
|
loading: !1,
|
|
9925
9925
|
networkStatus: Tt.error
|
|
9926
9926
|
}, r, e, t, u, m, h.current);
|
|
9927
|
-
}, x = { current: e.subscribe(
|
|
9927
|
+
}, x = { current: e.subscribe(b, A) };
|
|
9928
9928
|
return function() {
|
|
9929
9929
|
setTimeout(function() {
|
|
9930
9930
|
return x.current.unsubscribe();
|
|
@@ -10032,36 +10032,36 @@ var pR = [
|
|
|
10032
10032
|
function mR(r, e) {
|
|
10033
10033
|
var t, n = ct.useRef(), i = ct.useRef(), a = ct.useRef(), u = ts(e, n.current || {}), c = (t = u == null ? void 0 : u.query) !== null && t !== void 0 ? t : r;
|
|
10034
10034
|
i.current = e, a.current = c;
|
|
10035
|
-
var f = j(j({}, u), { skip: !n.current }), h = oR(c, f), d = h.obsQueryFields, y = h.result, g = h.client, m = h.resultData,
|
|
10035
|
+
var f = j(j({}, u), { skip: !n.current }), h = oR(c, f), d = h.obsQueryFields, y = h.result, g = h.client, m = h.resultData, b = h.observable, A = h.onQueryExecuted, x = b.options.initialFetchPolicy || Kh(f.defaultOptions, g.defaultOptions), w = ct.useReducer(function(Y) {
|
|
10036
10036
|
return Y + 1;
|
|
10037
|
-
}, 0)[1],
|
|
10037
|
+
}, 0)[1], E = ct.useMemo(function() {
|
|
10038
10038
|
for (var Y = {}, ue = function(Ne) {
|
|
10039
10039
|
var Le = d[Ne];
|
|
10040
10040
|
Y[Ne] = function() {
|
|
10041
|
-
return n.current || (n.current = /* @__PURE__ */ Object.create(null),
|
|
10041
|
+
return n.current || (n.current = /* @__PURE__ */ Object.create(null), w()), Le.apply(this, arguments);
|
|
10042
10042
|
};
|
|
10043
10043
|
}, fe = 0, qe = pR; fe < qe.length; fe++) {
|
|
10044
10044
|
var ge = qe[fe];
|
|
10045
10045
|
ue(ge);
|
|
10046
10046
|
}
|
|
10047
10047
|
return Y;
|
|
10048
|
-
}, [
|
|
10049
|
-
return j(j(j({}, y),
|
|
10050
|
-
}, [y,
|
|
10048
|
+
}, [w, d]), P = !!n.current, D = ct.useMemo(function() {
|
|
10049
|
+
return j(j(j({}, y), E), { called: P });
|
|
10050
|
+
}, [y, E, P]), L = ct.useCallback(function(Y) {
|
|
10051
10051
|
n.current = Y ? j(j({}, Y), { fetchPolicy: Y.fetchPolicy || x }) : {
|
|
10052
10052
|
fetchPolicy: x
|
|
10053
10053
|
};
|
|
10054
|
-
var ue = ts(i.current, j({ query: a.current }, n.current)), fe = yR(m,
|
|
10055
|
-
return Object.assign(qe,
|
|
10054
|
+
var ue = ts(i.current, j({ query: a.current }, n.current)), fe = yR(m, b, g, c, j(j({}, ue), { skip: !1 }), A).then(function(qe) {
|
|
10055
|
+
return Object.assign(qe, E);
|
|
10056
10056
|
});
|
|
10057
10057
|
return fe.catch(function() {
|
|
10058
10058
|
}), fe;
|
|
10059
10059
|
}, [
|
|
10060
10060
|
g,
|
|
10061
10061
|
c,
|
|
10062
|
-
|
|
10062
|
+
E,
|
|
10063
10063
|
x,
|
|
10064
|
-
|
|
10064
|
+
b,
|
|
10065
10065
|
m,
|
|
10066
10066
|
A
|
|
10067
10067
|
]), V = ct.useRef(L);
|
|
@@ -10100,30 +10100,30 @@ function gR(r, e) {
|
|
|
10100
10100
|
return e.variables;
|
|
10101
10101
|
}, [e.variables]), g = function() {
|
|
10102
10102
|
return vR(n, r, y, a, u, f, h);
|
|
10103
|
-
}, m = ct.useState(e.skip ? null : g),
|
|
10103
|
+
}, m = ct.useState(e.skip ? null : g), b = m[0], A = m[1], x = ct.useRef(g);
|
|
10104
10104
|
Jh(function() {
|
|
10105
10105
|
x.current = g;
|
|
10106
|
-
}), i ?
|
|
10107
|
-
var
|
|
10106
|
+
}), i ? b && A(b = null) : (!b || (n !== b.__.client || r !== b.__.query || a !== b.__.fetchPolicy || u !== b.__.errorPolicy || !qt(y, b.__.variables)) && (typeof c == "function" ? !!c(e) : c) !== !1) && A(b = g());
|
|
10107
|
+
var w = ct.useRef(e);
|
|
10108
10108
|
ct.useEffect(function() {
|
|
10109
|
-
|
|
10109
|
+
w.current = e;
|
|
10110
10110
|
});
|
|
10111
|
-
var
|
|
10111
|
+
var E = !i && !d, P = ct.useMemo(function() {
|
|
10112
10112
|
return {
|
|
10113
|
-
loading:
|
|
10113
|
+
loading: E,
|
|
10114
10114
|
error: void 0,
|
|
10115
10115
|
data: void 0,
|
|
10116
10116
|
variables: y
|
|
10117
10117
|
};
|
|
10118
|
-
}, [
|
|
10118
|
+
}, [E, y]), D = ct.useRef(d);
|
|
10119
10119
|
Jh(function() {
|
|
10120
10120
|
D.current = d;
|
|
10121
10121
|
});
|
|
10122
10122
|
var L = bw(ct.useCallback(function(te) {
|
|
10123
|
-
if (!
|
|
10123
|
+
if (!b)
|
|
10124
10124
|
return function() {
|
|
10125
10125
|
};
|
|
10126
|
-
var Y = !1, ue =
|
|
10126
|
+
var Y = !1, ue = b.__.variables, fe = b.__.client, qe = b.subscribe({
|
|
10127
10127
|
next: function(ge) {
|
|
10128
10128
|
var Ne, Le;
|
|
10129
10129
|
if (!Y) {
|
|
@@ -10135,10 +10135,10 @@ function gR(r, e) {
|
|
|
10135
10135
|
error: Sw(ge),
|
|
10136
10136
|
variables: ue
|
|
10137
10137
|
};
|
|
10138
|
-
|
|
10138
|
+
b.__.setResult(me), D.current || te(), me.error ? (Le = (Ne = w.current).onError) === null || Le === void 0 || Le.call(Ne, me.error) : w.current.onData ? w.current.onData({
|
|
10139
10139
|
client: fe,
|
|
10140
10140
|
data: me
|
|
10141
|
-
}) :
|
|
10141
|
+
}) : w.current.onSubscriptionData && w.current.onSubscriptionData({
|
|
10142
10142
|
client: fe,
|
|
10143
10143
|
subscriptionData: me
|
|
10144
10144
|
});
|
|
@@ -10146,15 +10146,15 @@ function gR(r, e) {
|
|
|
10146
10146
|
},
|
|
10147
10147
|
error: function(ge) {
|
|
10148
10148
|
var Ne, Le;
|
|
10149
|
-
ge = ge instanceof On ? ge : new On({ protocolErrors: [ge] }), Y || (
|
|
10149
|
+
ge = ge instanceof On ? ge : new On({ protocolErrors: [ge] }), Y || (b.__.setResult({
|
|
10150
10150
|
loading: !1,
|
|
10151
10151
|
data: void 0,
|
|
10152
10152
|
error: ge,
|
|
10153
10153
|
variables: ue
|
|
10154
|
-
}), D.current || te(), (Le = (Ne =
|
|
10154
|
+
}), D.current || te(), (Le = (Ne = w.current).onError) === null || Le === void 0 || Le.call(Ne, ge));
|
|
10155
10155
|
},
|
|
10156
10156
|
complete: function() {
|
|
10157
|
-
Y || (
|
|
10157
|
+
Y || (w.current.onComplete ? w.current.onComplete() : w.current.onSubscriptionComplete && w.current.onSubscriptionComplete());
|
|
10158
10158
|
}
|
|
10159
10159
|
});
|
|
10160
10160
|
return function() {
|
|
@@ -10162,13 +10162,13 @@ function gR(r, e) {
|
|
|
10162
10162
|
qe.unsubscribe();
|
|
10163
10163
|
});
|
|
10164
10164
|
};
|
|
10165
|
-
}, [
|
|
10166
|
-
return
|
|
10165
|
+
}, [b]), function() {
|
|
10166
|
+
return b && !i && !d ? b.__.result : P;
|
|
10167
10167
|
}, function() {
|
|
10168
10168
|
return P;
|
|
10169
10169
|
}), V = ct.useCallback(function() {
|
|
10170
|
-
Me(!
|
|
10171
|
-
}, [
|
|
10170
|
+
Me(!w.current.skip, 57), A(x.current());
|
|
10171
|
+
}, [w, x]);
|
|
10172
10172
|
return ct.useMemo(function() {
|
|
10173
10173
|
return j(j({}, L), { restart: V });
|
|
10174
10174
|
}, [L, V]);
|
|
@@ -10637,8 +10637,8 @@ class Ri extends zo {
|
|
|
10637
10637
|
millisecond: 0
|
|
10638
10638
|
});
|
|
10639
10639
|
let m = +t;
|
|
10640
|
-
const
|
|
10641
|
-
return m -=
|
|
10640
|
+
const b = m % 1e3;
|
|
10641
|
+
return m -= b >= 0 ? b : 1e3 + b, (g - m) / (60 * 1e3);
|
|
10642
10642
|
}
|
|
10643
10643
|
/**
|
|
10644
10644
|
* Return whether this Zone is equal to another zone
|
|
@@ -11750,12 +11750,12 @@ class Qr {
|
|
|
11750
11750
|
return t > 0 && (n.padTo = t), this.loc.numberFormatter(n).format(e);
|
|
11751
11751
|
}
|
|
11752
11752
|
formatDateTimeFromString(e, t) {
|
|
11753
|
-
const n = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (m,
|
|
11754
|
-
|
|
11753
|
+
const n = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (m, b) => this.loc.extract(e, m, b), u = (m) => e.isOffsetFixed && e.offset === 0 && m.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, m.format) : "", c = () => n ? sN(e) : a({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), f = (m, b) => n ? oN(e, m) : a(b ? { month: m } : { month: m, day: "numeric" }, "month"), h = (m, b) => n ? aN(e, m) : a(
|
|
11754
|
+
b ? { weekday: m } : { weekday: m, month: "long", day: "numeric" },
|
|
11755
11755
|
"weekday"
|
|
11756
11756
|
), d = (m) => {
|
|
11757
|
-
const
|
|
11758
|
-
return
|
|
11757
|
+
const b = Qr.macroTokenToFormatOpts(m);
|
|
11758
|
+
return b ? this.formatWithSystemDefault(e, b) : m;
|
|
11759
11759
|
}, y = (m) => n ? uN(e, m) : a({ era: m }, "era"), g = (m) => {
|
|
11760
11760
|
switch (m) {
|
|
11761
11761
|
case "S":
|
|
@@ -11982,7 +11982,7 @@ function Qo(r, e) {
|
|
|
11982
11982
|
}
|
|
11983
11983
|
const wN = RegExp(`^T?${yp.source}$`), _N = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
11984
11984
|
function xN(r) {
|
|
11985
|
-
const [e, t, n, i, a, u, c, f, h] = r, d = e[0] === "-", y = f && f[0] === "-", g = (m,
|
|
11985
|
+
const [e, t, n, i, a, u, c, f, h] = r, d = e[0] === "-", y = f && f[0] === "-", g = (m, b = !1) => m !== void 0 && (b || m && d) ? -m : m;
|
|
11986
11986
|
return [
|
|
11987
11987
|
{
|
|
11988
11988
|
years: g(Ss(t)),
|
|
@@ -13500,7 +13500,7 @@ function iD(r) {
|
|
|
13500
13500
|
return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
13501
13501
|
}
|
|
13502
13502
|
function sD(r, e) {
|
|
13503
|
-
const t = Xn(e), n = Xn(e, "{2}"), i = Xn(e, "{3}"), a = Xn(e, "{4}"), u = Xn(e, "{6}"), c = Xn(e, "{1,2}"), f = Xn(e, "{1,3}"), h = Xn(e, "{1,6}"), d = Xn(e, "{1,9}"), y = Xn(e, "{2,4}"), g = Xn(e, "{4,6}"), m = (x) => ({ regex: RegExp(iD(x.val)), deser: ([
|
|
13503
|
+
const t = Xn(e), n = Xn(e, "{2}"), i = Xn(e, "{3}"), a = Xn(e, "{4}"), u = Xn(e, "{6}"), c = Xn(e, "{1,2}"), f = Xn(e, "{1,3}"), h = Xn(e, "{1,6}"), d = Xn(e, "{1,9}"), y = Xn(e, "{2,4}"), g = Xn(e, "{4,6}"), m = (x) => ({ regex: RegExp(iD(x.val)), deser: ([w]) => w, literal: !0 }), A = ((x) => {
|
|
13504
13504
|
if (r.literal)
|
|
13505
13505
|
return m(x);
|
|
13506
13506
|
switch (x.val) {
|
|
@@ -14180,20 +14180,20 @@ class rt {
|
|
|
14180
14180
|
const n = Xi(t.zone, dr.defaultZone);
|
|
14181
14181
|
if (!n.isValid)
|
|
14182
14182
|
return rt.invalid(po(n));
|
|
14183
|
-
const i = jt.fromObject(t), a = Pc(e, Pv), { minDaysInFirstWeek: u, startOfWeek: c } = gv(a, i), f = dr.now(), h = nt(t.specificOffset) ? n.offset(f) : t.specificOffset, d = !nt(a.ordinal), y = !nt(a.year), g = !nt(a.month) || !nt(a.day), m = y || g,
|
|
14184
|
-
if ((m || d) &&
|
|
14183
|
+
const i = jt.fromObject(t), a = Pc(e, Pv), { minDaysInFirstWeek: u, startOfWeek: c } = gv(a, i), f = dr.now(), h = nt(t.specificOffset) ? n.offset(f) : t.specificOffset, d = !nt(a.ordinal), y = !nt(a.year), g = !nt(a.month) || !nt(a.day), m = y || g, b = a.weekYear || a.weekNumber;
|
|
14184
|
+
if ((m || d) && b)
|
|
14185
14185
|
throw new la(
|
|
14186
14186
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
14187
14187
|
);
|
|
14188
14188
|
if (g && d)
|
|
14189
14189
|
throw new la("Can't mix ordinal dates with month/day");
|
|
14190
|
-
const A =
|
|
14191
|
-
let x,
|
|
14192
|
-
A ? (x = yD,
|
|
14190
|
+
const A = b || a.weekday && !m;
|
|
14191
|
+
let x, w, E = Hu(f, h);
|
|
14192
|
+
A ? (x = yD, w = pD, E = kc(E, u, c)) : d ? (x = gD, w = mD, E = Ff(E)) : (x = O_, w = E_);
|
|
14193
14193
|
let P = !1;
|
|
14194
14194
|
for (const fe of x) {
|
|
14195
14195
|
const qe = a[fe];
|
|
14196
|
-
nt(qe) ? P ? a[fe] =
|
|
14196
|
+
nt(qe) ? P ? a[fe] = w[fe] : a[fe] = E[fe] : P = !0;
|
|
14197
14197
|
}
|
|
14198
14198
|
const D = A ? HR(a, u, c) : d ? GR(a) : Yw(a), L = D || Kw(a);
|
|
14199
14199
|
if (L)
|
|
@@ -15573,10 +15573,10 @@ var Cc = { exports: {} };
|
|
|
15573
15573
|
Cc.exports;
|
|
15574
15574
|
(function(r, e) {
|
|
15575
15575
|
(function() {
|
|
15576
|
-
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", y = 1, g = 2, m = 4,
|
|
15576
|
+
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", y = 1, g = 2, m = 4, b = 1, A = 2, x = 1, w = 2, E = 4, P = 8, D = 16, L = 32, V = 64, te = 128, Y = 256, ue = 512, fe = 30, qe = "...", ge = 800, Ne = 16, Le = 1, me = 2, Qe = 3, ve = 1 / 0, ce = 9007199254740991, Se = 17976931348623157e292, Pe = NaN, we = 4294967295, Ze = we - 1, St = we >>> 1, lt = [
|
|
15577
15577
|
["ary", te],
|
|
15578
15578
|
["bind", x],
|
|
15579
|
-
["bindKey",
|
|
15579
|
+
["bindKey", w],
|
|
15580
15580
|
["curry", P],
|
|
15581
15581
|
["curryRight", D],
|
|
15582
15582
|
["flip", ue],
|
|
@@ -16632,7 +16632,7 @@ Cc.exports;
|
|
|
16632
16632
|
}
|
|
16633
16633
|
if (Ee && !ae)
|
|
16634
16634
|
return T || (T = new Jn()), R || Xs(s) ? uy(s, o, l, p, v, T) : LE(s, o, $, l, p, v, T);
|
|
16635
|
-
if (!(l &
|
|
16635
|
+
if (!(l & b)) {
|
|
16636
16636
|
var Ue = ae && $t.call(s, "__wrapped__"), He = de && $t.call(o, "__wrapped__");
|
|
16637
16637
|
if (Ue || He) {
|
|
16638
16638
|
var ft = Ue ? s.value() : s, Ge = He ? o.value() : o;
|
|
@@ -16663,7 +16663,7 @@ Cc.exports;
|
|
|
16663
16663
|
var de = new Jn();
|
|
16664
16664
|
if (p)
|
|
16665
16665
|
var Ee = p(ie, ae, $, s, o, de);
|
|
16666
|
-
if (!(Ee === t ? Ja(ae, ie,
|
|
16666
|
+
if (!(Ee === t ? Ja(ae, ie, b | A, p, de) : Ee))
|
|
16667
16667
|
return !1;
|
|
16668
16668
|
}
|
|
16669
16669
|
}
|
|
@@ -16721,7 +16721,7 @@ Cc.exports;
|
|
|
16721
16721
|
function Dm(s, o) {
|
|
16722
16722
|
return Xl(s) && hy(o) ? dy(ui(s), o) : function(l) {
|
|
16723
16723
|
var p = lf(l, s);
|
|
16724
|
-
return p === t && p === o ? ff(l, s) : Ja(o, p,
|
|
16724
|
+
return p === t && p === o ? ff(l, s) : Ja(o, p, b | A);
|
|
16725
16725
|
};
|
|
16726
16726
|
}
|
|
16727
16727
|
function bu(s, o, l, p, v) {
|
|
@@ -17225,7 +17225,7 @@ Cc.exports;
|
|
|
17225
17225
|
});
|
|
17226
17226
|
}
|
|
17227
17227
|
function Su(s, o, l, p, v, T, R, M, $, ie) {
|
|
17228
|
-
var ae = o & te, de = o & x, Ee = o &
|
|
17228
|
+
var ae = o & te, de = o & x, Ee = o & w, Ue = o & (P | D), He = o & ue, ft = Ee ? t : Ka(s);
|
|
17229
17229
|
function Ge() {
|
|
17230
17230
|
for (var yt = arguments.length, xt = Z(yt), wn = yt; wn--; )
|
|
17231
17231
|
xt[wn] = arguments[wn];
|
|
@@ -17310,7 +17310,7 @@ Cc.exports;
|
|
|
17310
17310
|
}
|
|
17311
17311
|
function iy(s, o, l, p, v, T, R, M, $, ie) {
|
|
17312
17312
|
var ae = o & P, de = ae ? R : t, Ee = ae ? t : R, Ue = ae ? T : t, He = ae ? t : T;
|
|
17313
|
-
o |= ae ? L : V, o &= ~(ae ? V : L), o &
|
|
17313
|
+
o |= ae ? L : V, o &= ~(ae ? V : L), o & E || (o &= ~(x | w));
|
|
17314
17314
|
var ft = [
|
|
17315
17315
|
s,
|
|
17316
17316
|
o,
|
|
@@ -17345,7 +17345,7 @@ Cc.exports;
|
|
|
17345
17345
|
};
|
|
17346
17346
|
}
|
|
17347
17347
|
function yi(s, o, l, p, v, T, R, M) {
|
|
17348
|
-
var $ = o &
|
|
17348
|
+
var $ = o & w;
|
|
17349
17349
|
if (!$ && typeof s != "function")
|
|
17350
17350
|
throw new Nn(u);
|
|
17351
17351
|
var ie = p ? p.length : 0;
|
|
@@ -17381,7 +17381,7 @@ Cc.exports;
|
|
|
17381
17381
|
return eo(s) ? t : s;
|
|
17382
17382
|
}
|
|
17383
17383
|
function uy(s, o, l, p, v, T) {
|
|
17384
|
-
var R = l &
|
|
17384
|
+
var R = l & b, M = s.length, $ = o.length;
|
|
17385
17385
|
if (M != $ && !(R && $ > M))
|
|
17386
17386
|
return !1;
|
|
17387
17387
|
var ie = T.get(s), ae = T.get(o);
|
|
@@ -17433,7 +17433,7 @@ Cc.exports;
|
|
|
17433
17433
|
case Q:
|
|
17434
17434
|
var M = Sl;
|
|
17435
17435
|
case be:
|
|
17436
|
-
var $ = p &
|
|
17436
|
+
var $ = p & b;
|
|
17437
17437
|
if (M || (M = tu), s.size != o.size && !$)
|
|
17438
17438
|
return !1;
|
|
17439
17439
|
var ie = R.get(s);
|
|
@@ -17449,7 +17449,7 @@ Cc.exports;
|
|
|
17449
17449
|
return !1;
|
|
17450
17450
|
}
|
|
17451
17451
|
function jE(s, o, l, p, v, T) {
|
|
17452
|
-
var R = l &
|
|
17452
|
+
var R = l & b, M = Ql(s), $ = M.length, ie = Ql(o), ae = ie.length;
|
|
17453
17453
|
if ($ != ae && !R)
|
|
17454
17454
|
return !1;
|
|
17455
17455
|
for (var de = $; de--; ) {
|
|
@@ -17696,10 +17696,10 @@ Cc.exports;
|
|
|
17696
17696
|
return o;
|
|
17697
17697
|
}
|
|
17698
17698
|
function YE(s, o) {
|
|
17699
|
-
var l = s[1], p = o[1], v = l | p, T = v < (x |
|
|
17699
|
+
var l = s[1], p = o[1], v = l | p, T = v < (x | w | te), R = p == te && l == P || p == te && l == Y && s[7].length <= o[8] || p == (te | Y) && o[7].length <= o[8] && l == P;
|
|
17700
17700
|
if (!(T || R))
|
|
17701
17701
|
return s;
|
|
17702
|
-
p & x && (s[2] = o[2], v |= l & x ? 0 :
|
|
17702
|
+
p & x && (s[2] = o[2], v |= l & x ? 0 : E);
|
|
17703
17703
|
var M = o[3];
|
|
17704
17704
|
if (M) {
|
|
17705
17705
|
var $ = s[3];
|
|
@@ -18264,7 +18264,7 @@ Cc.exports;
|
|
|
18264
18264
|
}
|
|
18265
18265
|
return yi(s, p, o, l, v);
|
|
18266
18266
|
}), Ry = ht(function(s, o, l) {
|
|
18267
|
-
var p = x |
|
|
18267
|
+
var p = x | w;
|
|
18268
18268
|
if (l.length) {
|
|
18269
18269
|
var v = ji(l, Zs(Ry));
|
|
18270
18270
|
p |= L;
|
|
@@ -19224,7 +19224,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
19224
19224
|
var p = l.name + "";
|
|
19225
19225
|
$t.call(Qs, p) || (Qs[p] = []), Qs[p].push({ name: o, func: l });
|
|
19226
19226
|
}
|
|
19227
|
-
}), Qs[Su(t,
|
|
19227
|
+
}), Qs[Su(t, w).name] = [{
|
|
19228
19228
|
name: "wrapper",
|
|
19229
19229
|
func: t
|
|
19230
19230
|
}], gt.prototype.clone = TS, gt.prototype.reverse = AS, gt.prototype.value = kS, S.prototype.at = n1, S.prototype.chain = i1, S.prototype.commit = s1, S.prototype.next = a1, S.prototype.plant = u1, S.prototype.reverse = c1, S.prototype.toJSON = S.prototype.valueOf = S.prototype.value = l1, S.prototype.first = S.prototype.head, $a && (S.prototype[$a] = o1), S;
|
|
@@ -19331,7 +19331,7 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19331
19331
|
try {
|
|
19332
19332
|
if (!r)
|
|
19333
19333
|
return;
|
|
19334
|
-
c((
|
|
19334
|
+
c((b) => (b || 0) + 1);
|
|
19335
19335
|
const m = await y(`${d.apiUrl}/reports/production`, {
|
|
19336
19336
|
method: "POST",
|
|
19337
19337
|
body: r,
|
|
@@ -19347,7 +19347,7 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19347
19347
|
[r]
|
|
19348
19348
|
), { data: t, error: f, loading: i };
|
|
19349
19349
|
}, rL = ({ machineRef: r, key: e, skip: t }) => {
|
|
19350
|
-
const [n, i] = Ut(), [a, u] = Ut(), [c, f] = Ut(), [h, d] = Ut(), [y, g] = Ut(), [m,
|
|
19350
|
+
const [n, i] = Ut(), [a, u] = Ut(), [c, f] = Ut(), [h, d] = Ut(), [y, g] = Ut(), [m, b] = Ut(), A = fs`
|
|
19351
19351
|
subscription MMToolsQuantityStreamSubscription {
|
|
19352
19352
|
currentQuantities(
|
|
19353
19353
|
where: { machineRef: { _eq: ${y} }, key: { _eq: "${m}" } }
|
|
@@ -19356,9 +19356,9 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19356
19356
|
eventTime
|
|
19357
19357
|
}
|
|
19358
19358
|
}
|
|
19359
|
-
`, { data: x } = gR(A, { skip: t }), [
|
|
19359
|
+
`, { data: x } = gR(A, { skip: t }), [w, E] = Ut();
|
|
19360
19360
|
vr(() => {
|
|
19361
|
-
r !== y && g(r), e !== m &&
|
|
19361
|
+
r !== y && g(r), e !== m && b(e), d(), i(), f(), u();
|
|
19362
19362
|
}, [r, e, m, y]), vr(() => {
|
|
19363
19363
|
if (L || !r || !e)
|
|
19364
19364
|
return;
|
|
@@ -19370,12 +19370,12 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19370
19370
|
}
|
|
19371
19371
|
}
|
|
19372
19372
|
`;
|
|
19373
|
-
|
|
19373
|
+
E(te);
|
|
19374
19374
|
}, [y, m, h]), vr(() => {
|
|
19375
|
-
|
|
19376
|
-
}, [
|
|
19375
|
+
w && P();
|
|
19376
|
+
}, [w, x]);
|
|
19377
19377
|
const [P, { data: D, loading: L }] = mR(
|
|
19378
|
-
|
|
19378
|
+
w,
|
|
19379
19379
|
{
|
|
19380
19380
|
fetchPolicy: "no-cache"
|
|
19381
19381
|
}
|
|
@@ -19418,27 +19418,27 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19418
19418
|
const m = Ai.filter(c.templates, { namespace: u });
|
|
19419
19419
|
t(m);
|
|
19420
19420
|
}, [c]), [
|
|
19421
|
-
async ({ name: m, public:
|
|
19421
|
+
async ({ name: m, public: b, config: A }) => {
|
|
19422
19422
|
const x = {
|
|
19423
19423
|
name: m,
|
|
19424
|
-
public:
|
|
19424
|
+
public: b,
|
|
19425
19425
|
namespace: u,
|
|
19426
19426
|
config: JSON.stringify(A)
|
|
19427
|
-
},
|
|
19427
|
+
}, w = JSON.stringify(x), E = await i(`${n.apiUrl}/templates`, {
|
|
19428
19428
|
method: "POST",
|
|
19429
|
-
body:
|
|
19429
|
+
body: w
|
|
19430
19430
|
});
|
|
19431
|
-
return t([...e,
|
|
19431
|
+
return t([...e, E.template]), E.template;
|
|
19432
19432
|
},
|
|
19433
|
-
async (m, { name:
|
|
19434
|
-
const
|
|
19435
|
-
name:
|
|
19433
|
+
async (m, { name: b, public: A, config: x }) => {
|
|
19434
|
+
const w = {
|
|
19435
|
+
name: b,
|
|
19436
19436
|
public: A,
|
|
19437
19437
|
namespace: u,
|
|
19438
19438
|
config: JSON.stringify(x)
|
|
19439
|
-
},
|
|
19439
|
+
}, E = JSON.stringify(w), P = await i(`${n.apiUrl}/templates/${m}`, {
|
|
19440
19440
|
method: "PUT",
|
|
19441
|
-
body:
|
|
19441
|
+
body: E
|
|
19442
19442
|
}), D = Ai.findIndex(e, { id: m }), L = e.slice(0, D), V = e.slice(D + 1);
|
|
19443
19443
|
return t([...L, P.template, ...V]), P.template;
|
|
19444
19444
|
},
|
|
@@ -19989,16 +19989,16 @@ var ga = function(r) {
|
|
|
19989
19989
|
}, i;
|
|
19990
19990
|
function u(g) {
|
|
19991
19991
|
n[g] && (i[g] = function(m) {
|
|
19992
|
-
return new Promise(function(
|
|
19993
|
-
a.push([g, m,
|
|
19992
|
+
return new Promise(function(b, A) {
|
|
19993
|
+
a.push([g, m, b, A]) > 1 || c(g, m);
|
|
19994
19994
|
});
|
|
19995
19995
|
});
|
|
19996
19996
|
}
|
|
19997
19997
|
function c(g, m) {
|
|
19998
19998
|
try {
|
|
19999
19999
|
f(n[g](m));
|
|
20000
|
-
} catch (
|
|
20001
|
-
y(a[0][3],
|
|
20000
|
+
} catch (b) {
|
|
20001
|
+
y(a[0][3], b);
|
|
20002
20002
|
}
|
|
20003
20003
|
}
|
|
20004
20004
|
function f(g) {
|
|
@@ -20035,7 +20035,7 @@ function YD(r) {
|
|
|
20035
20035
|
shouldRetry: y = Bf,
|
|
20036
20036
|
isFatalConnectionProblem: g,
|
|
20037
20037
|
on: m,
|
|
20038
|
-
webSocketImpl:
|
|
20038
|
+
webSocketImpl: b,
|
|
20039
20039
|
/**
|
|
20040
20040
|
* Generates a v4 UUID to be used as the ID using `Math`
|
|
20041
20041
|
* as the random number generator. Supply your own generator
|
|
@@ -20050,19 +20050,19 @@ function YD(r) {
|
|
|
20050
20050
|
});
|
|
20051
20051
|
},
|
|
20052
20052
|
jsonMessageReplacer: x,
|
|
20053
|
-
jsonMessageReviver:
|
|
20053
|
+
jsonMessageReviver: w
|
|
20054
20054
|
} = r;
|
|
20055
|
-
let
|
|
20056
|
-
if (
|
|
20057
|
-
if (!ZD(
|
|
20055
|
+
let E;
|
|
20056
|
+
if (b) {
|
|
20057
|
+
if (!ZD(b))
|
|
20058
20058
|
throw new Error("Invalid WebSocket implementation provided");
|
|
20059
|
-
|
|
20060
|
-
} else typeof WebSocket < "u" ?
|
|
20061
|
-
global.MozWebSocket : typeof window < "u" && (
|
|
20059
|
+
E = b;
|
|
20060
|
+
} else typeof WebSocket < "u" ? E = WebSocket : typeof global < "u" ? E = global.WebSocket || // @ts-expect-error: Support more browsers
|
|
20061
|
+
global.MozWebSocket : typeof window < "u" && (E = window.WebSocket || // @ts-expect-error: Support more browsers
|
|
20062
20062
|
window.MozWebSocket);
|
|
20063
|
-
if (!
|
|
20063
|
+
if (!E)
|
|
20064
20064
|
throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");
|
|
20065
|
-
const P =
|
|
20065
|
+
const P = E, D = (() => {
|
|
20066
20066
|
const me = /* @__PURE__ */ (() => {
|
|
20067
20067
|
const ve = {};
|
|
20068
20068
|
return {
|
|
@@ -20153,7 +20153,7 @@ function YD(r) {
|
|
|
20153
20153
|
let At = !1;
|
|
20154
20154
|
we.onmessage = ({ data: Xe }) => {
|
|
20155
20155
|
try {
|
|
20156
|
-
const Je = QD(Xe,
|
|
20156
|
+
const Je = QD(Xe, w);
|
|
20157
20157
|
if (D.emit("message", Je), Je.type === "ping" || Je.type === "pong") {
|
|
20158
20158
|
D.emit(Je.type, !0, Je.payload), Je.type === "pong" ? lt() : c || (we.send(co(Je.payload ? {
|
|
20159
20159
|
type: yr.Pong,
|
|
@@ -20538,19 +20538,19 @@ function cF() {
|
|
|
20538
20538
|
throw new TypeError(r + h);
|
|
20539
20539
|
for (var d = a(arguments, 1), y, g = function() {
|
|
20540
20540
|
if (this instanceof y) {
|
|
20541
|
-
var
|
|
20541
|
+
var w = h.apply(
|
|
20542
20542
|
this,
|
|
20543
20543
|
i(d, arguments)
|
|
20544
20544
|
);
|
|
20545
|
-
return Object(
|
|
20545
|
+
return Object(w) === w ? w : this;
|
|
20546
20546
|
}
|
|
20547
20547
|
return h.apply(
|
|
20548
20548
|
f,
|
|
20549
20549
|
i(d, arguments)
|
|
20550
20550
|
);
|
|
20551
|
-
}, m = t(0, h.length - d.length),
|
|
20552
|
-
|
|
20553
|
-
if (y = Function("binder", "return function (" + u(
|
|
20551
|
+
}, m = t(0, h.length - d.length), b = [], A = 0; A < m; A++)
|
|
20552
|
+
b[A] = "$" + A;
|
|
20553
|
+
if (y = Function("binder", "return function (" + u(b, ",") + "){ return binder.apply(this,arguments); }")(g), h.prototype) {
|
|
20554
20554
|
var x = function() {
|
|
20555
20555
|
};
|
|
20556
20556
|
x.prototype = h.prototype, y.prototype = new x(), x.prototype = null;
|
|
@@ -20600,9 +20600,9 @@ function ja() {
|
|
|
20600
20600
|
return y;
|
|
20601
20601
|
}
|
|
20602
20602
|
}
|
|
20603
|
-
}() : y, m = oF()(),
|
|
20603
|
+
}() : y, m = oF()(), b = uF()(), A = Object.getPrototypeOf || (b ? function(ve) {
|
|
20604
20604
|
return ve.__proto__;
|
|
20605
|
-
} : null), x = {},
|
|
20605
|
+
} : null), x = {}, w = typeof Uint8Array > "u" || !A ? r : A(Uint8Array), E = {
|
|
20606
20606
|
__proto__: null,
|
|
20607
20607
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
20608
20608
|
"%Array%": Array,
|
|
@@ -20661,7 +20661,7 @@ function ja() {
|
|
|
20661
20661
|
"%Symbol%": m ? Symbol : r,
|
|
20662
20662
|
"%SyntaxError%": a,
|
|
20663
20663
|
"%ThrowTypeError%": g,
|
|
20664
|
-
"%TypedArray%":
|
|
20664
|
+
"%TypedArray%": w,
|
|
20665
20665
|
"%TypeError%": u,
|
|
20666
20666
|
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
|
|
20667
20667
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
|
|
@@ -20677,7 +20677,7 @@ function ja() {
|
|
|
20677
20677
|
null.error;
|
|
20678
20678
|
} catch (ve) {
|
|
20679
20679
|
var P = A(A(ve));
|
|
20680
|
-
|
|
20680
|
+
E["%Error.prototype%"] = P;
|
|
20681
20681
|
}
|
|
20682
20682
|
var D = function ve(ce) {
|
|
20683
20683
|
var Se;
|
|
@@ -20694,7 +20694,7 @@ function ja() {
|
|
|
20694
20694
|
var we = ve("%AsyncGenerator%");
|
|
20695
20695
|
we && A && (Se = A(we.prototype));
|
|
20696
20696
|
}
|
|
20697
|
-
return
|
|
20697
|
+
return E[ce] = Se, Se;
|
|
20698
20698
|
}, L = {
|
|
20699
20699
|
__proto__: null,
|
|
20700
20700
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -20760,8 +20760,8 @@ function ja() {
|
|
|
20760
20760
|
}), we;
|
|
20761
20761
|
}, Qe = function(ce, Se) {
|
|
20762
20762
|
var Pe = ce, we;
|
|
20763
|
-
if (te(L, Pe) && (we = L[Pe], Pe = "%" + we[0] + "%"), te(
|
|
20764
|
-
var Ze =
|
|
20763
|
+
if (te(L, Pe) && (we = L[Pe], Pe = "%" + we[0] + "%"), te(E, Pe)) {
|
|
20764
|
+
var Ze = E[Pe];
|
|
20765
20765
|
if (Ze === x && (Ze = D(Pe)), typeof Ze > "u" && !Se)
|
|
20766
20766
|
throw new u("intrinsic " + ce + " exists, but is not available. Please file an issue!");
|
|
20767
20767
|
return {
|
|
@@ -20785,8 +20785,8 @@ function ja() {
|
|
|
20785
20785
|
var Ce = Pe[Je], bt = qe(Ce, 0, 1), z = qe(Ce, -1);
|
|
20786
20786
|
if ((bt === '"' || bt === "'" || bt === "`" || z === '"' || z === "'" || z === "`") && bt !== z)
|
|
20787
20787
|
throw new a("property names with quotes must have matching quotes");
|
|
20788
|
-
if ((Ce === "constructor" || !dt) && (At = !0), we += "." + Ce, St = "%" + we + "%", te(
|
|
20789
|
-
lt =
|
|
20788
|
+
if ((Ce === "constructor" || !dt) && (At = !0), we += "." + Ce, St = "%" + we + "%", te(E, St))
|
|
20789
|
+
lt = E[St];
|
|
20790
20790
|
else if (lt != null) {
|
|
20791
20791
|
if (!(Ce in lt)) {
|
|
20792
20792
|
if (!Se)
|
|
@@ -20798,7 +20798,7 @@ function ja() {
|
|
|
20798
20798
|
dt = !!K, dt && "get" in K && !("originalValue" in K.get) ? lt = K.get : lt = lt[Ce];
|
|
20799
20799
|
} else
|
|
20800
20800
|
dt = te(lt, Ce), lt = lt[Ce];
|
|
20801
|
-
dt && !At && (
|
|
20801
|
+
dt && !At && (E[St] = lt);
|
|
20802
20802
|
}
|
|
20803
20803
|
}
|
|
20804
20804
|
return lt;
|
|
@@ -20947,7 +20947,7 @@ var lh, l0;
|
|
|
20947
20947
|
function bF() {
|
|
20948
20948
|
if (l0) return lh;
|
|
20949
20949
|
l0 = 1;
|
|
20950
|
-
var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, n = r && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, a = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = i && a && typeof a.get == "function" ? a.get : null, c = i && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, h = f ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null,
|
|
20950
|
+
var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, n = r && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, a = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = i && a && typeof a.get == "function" ? a.get : null, c = i && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, h = f ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null, b = Boolean.prototype.valueOf, A = Object.prototype.toString, x = Function.prototype.toString, w = String.prototype.match, E = String.prototype.slice, P = String.prototype.replace, D = String.prototype.toUpperCase, L = String.prototype.toLowerCase, V = RegExp.prototype.test, te = Array.prototype.concat, Y = Array.prototype.join, ue = Array.prototype.slice, fe = Math.floor, qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ge = Object.getOwnPropertySymbols, Ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Le = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Le || !0) ? Symbol.toStringTag : null, Qe = Object.prototype.propertyIsEnumerable, ve = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(W) {
|
|
20951
20951
|
return W.__proto__;
|
|
20952
20952
|
} : null);
|
|
20953
20953
|
function ce(W, H) {
|
|
@@ -20957,7 +20957,7 @@ function bF() {
|
|
|
20957
20957
|
if (typeof W == "number") {
|
|
20958
20958
|
var Be = W < 0 ? -fe(-W) : fe(W);
|
|
20959
20959
|
if (Be !== W) {
|
|
20960
|
-
var Ot = String(Be), Ye =
|
|
20960
|
+
var Ot = String(Be), Ye = E.call(H, Ot.length + 1);
|
|
20961
20961
|
return P.call(Ot, Ve, "$&_") + "." + P.call(P.call(Ye, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
20962
20962
|
}
|
|
20963
20963
|
}
|
|
@@ -21065,7 +21065,7 @@ function bF() {
|
|
|
21065
21065
|
if (K(H))
|
|
21066
21066
|
return pt(rr(qe.call(H)));
|
|
21067
21067
|
if (bt(H))
|
|
21068
|
-
return pt(
|
|
21068
|
+
return pt(b.call(H));
|
|
21069
21069
|
if (dt(H))
|
|
21070
21070
|
return pt(rr(String(H)));
|
|
21071
21071
|
if (typeof window < "u" && H === window)
|
|
@@ -21073,7 +21073,7 @@ function bF() {
|
|
|
21073
21073
|
if (typeof globalThis < "u" && H === globalThis || typeof Si < "u" && H === Si)
|
|
21074
21074
|
return "{ [object globalThis] }";
|
|
21075
21075
|
if (!At(H) && !Xe(H)) {
|
|
21076
|
-
var on = Yt(H, rr), Pn = ve ? ve(H) === Object.prototype : H instanceof Object || H.constructor === Object, N = H instanceof Object ? "" : "null prototype", se = !Pn && me && Object(H) === H && me in H ?
|
|
21076
|
+
var on = Yt(H, rr), Pn = ve ? ve(H) === Object.prototype : H instanceof Object || H.constructor === Object, N = H instanceof Object ? "" : "null prototype", se = !Pn && me && Object(H) === H && me in H ? E.call(X(H), 8, -1) : N ? "Object" : "", ye = Pn || typeof H.constructor != "function" ? "" : H.constructor.name ? H.constructor.name + " " : "", Ae = ye + (se || N ? "[" + Y.call(te.call([], se || [], N || []), ": ") + "] " : "");
|
|
21077
21077
|
return on.length === 0 ? Ae + "{}" : qr ? Ae + "{" + Qt(on, qr) + "}" : Ae + "{ " + Y.call(on, ", ") + " }";
|
|
21078
21078
|
}
|
|
21079
21079
|
return String(H);
|
|
@@ -21140,7 +21140,7 @@ function bF() {
|
|
|
21140
21140
|
function G(W) {
|
|
21141
21141
|
if (W.name)
|
|
21142
21142
|
return W.name;
|
|
21143
|
-
var H =
|
|
21143
|
+
var H = w.call(x.call(W), /^function\s*([\w$]+)/);
|
|
21144
21144
|
return H ? H[1] : null;
|
|
21145
21145
|
}
|
|
21146
21146
|
function Te(W, H) {
|
|
@@ -21226,7 +21226,7 @@ function bF() {
|
|
|
21226
21226
|
function wt(W, H) {
|
|
21227
21227
|
if (W.length > H.maxStringLength) {
|
|
21228
21228
|
var Ve = W.length - H.maxStringLength, Be = "... " + Ve + " more character" + (Ve > 1 ? "s" : "");
|
|
21229
|
-
return wt(
|
|
21229
|
+
return wt(E.call(W, 0, H.maxStringLength), H) + Be;
|
|
21230
21230
|
}
|
|
21231
21231
|
var Ot = P.call(P.call(W, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Gt);
|
|
21232
21232
|
return Ze(Ot, "single", H);
|
|
@@ -21305,55 +21305,55 @@ var fh, f0;
|
|
|
21305
21305
|
function wF() {
|
|
21306
21306
|
if (f0) return fh;
|
|
21307
21307
|
f0 = 1;
|
|
21308
|
-
var r = ja(), e = mF(), t = bF(), n = Jo(), i = r("%WeakMap%", !0), a = r("%Map%", !0), u = e("WeakMap.prototype.get", !0), c = e("WeakMap.prototype.set", !0), f = e("WeakMap.prototype.has", !0), h = e("Map.prototype.get", !0), d = e("Map.prototype.set", !0), y = e("Map.prototype.has", !0), g = function(x,
|
|
21309
|
-
for (var
|
|
21310
|
-
if (P.key ===
|
|
21311
|
-
return
|
|
21308
|
+
var r = ja(), e = mF(), t = bF(), n = Jo(), i = r("%WeakMap%", !0), a = r("%Map%", !0), u = e("WeakMap.prototype.get", !0), c = e("WeakMap.prototype.set", !0), f = e("WeakMap.prototype.has", !0), h = e("Map.prototype.get", !0), d = e("Map.prototype.set", !0), y = e("Map.prototype.has", !0), g = function(x, w) {
|
|
21309
|
+
for (var E = x, P; (P = E.next) !== null; E = P)
|
|
21310
|
+
if (P.key === w)
|
|
21311
|
+
return E.next = P.next, P.next = /** @type {NonNullable<typeof list.next>} */
|
|
21312
21312
|
x.next, x.next = P, P;
|
|
21313
|
-
}, m = function(x,
|
|
21314
|
-
var
|
|
21315
|
-
return
|
|
21316
|
-
},
|
|
21317
|
-
var P = g(x,
|
|
21318
|
-
P ? P.value =
|
|
21313
|
+
}, m = function(x, w) {
|
|
21314
|
+
var E = g(x, w);
|
|
21315
|
+
return E && E.value;
|
|
21316
|
+
}, b = function(x, w, E) {
|
|
21317
|
+
var P = g(x, w);
|
|
21318
|
+
P ? P.value = E : x.next = /** @type {import('.').ListNode<typeof value>} */
|
|
21319
21319
|
{
|
|
21320
21320
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
21321
|
-
key:
|
|
21321
|
+
key: w,
|
|
21322
21322
|
next: x.next,
|
|
21323
|
-
value:
|
|
21323
|
+
value: E
|
|
21324
21324
|
};
|
|
21325
|
-
}, A = function(x,
|
|
21326
|
-
return !!g(x,
|
|
21325
|
+
}, A = function(x, w) {
|
|
21326
|
+
return !!g(x, w);
|
|
21327
21327
|
};
|
|
21328
21328
|
return fh = function() {
|
|
21329
|
-
var
|
|
21329
|
+
var w, E, P, D = {
|
|
21330
21330
|
assert: function(L) {
|
|
21331
21331
|
if (!D.has(L))
|
|
21332
21332
|
throw new n("Side channel does not contain " + t(L));
|
|
21333
21333
|
},
|
|
21334
21334
|
get: function(L) {
|
|
21335
21335
|
if (i && L && (typeof L == "object" || typeof L == "function")) {
|
|
21336
|
-
if (
|
|
21337
|
-
return u(
|
|
21336
|
+
if (w)
|
|
21337
|
+
return u(w, L);
|
|
21338
21338
|
} else if (a) {
|
|
21339
|
-
if (
|
|
21340
|
-
return h(
|
|
21339
|
+
if (E)
|
|
21340
|
+
return h(E, L);
|
|
21341
21341
|
} else if (P)
|
|
21342
21342
|
return m(P, L);
|
|
21343
21343
|
},
|
|
21344
21344
|
has: function(L) {
|
|
21345
21345
|
if (i && L && (typeof L == "object" || typeof L == "function")) {
|
|
21346
|
-
if (
|
|
21347
|
-
return f(
|
|
21346
|
+
if (w)
|
|
21347
|
+
return f(w, L);
|
|
21348
21348
|
} else if (a) {
|
|
21349
|
-
if (
|
|
21350
|
-
return y(
|
|
21349
|
+
if (E)
|
|
21350
|
+
return y(E, L);
|
|
21351
21351
|
} else if (P)
|
|
21352
21352
|
return A(P, L);
|
|
21353
21353
|
return !1;
|
|
21354
21354
|
},
|
|
21355
21355
|
set: function(L, V) {
|
|
21356
|
-
i && L && (typeof L == "object" || typeof L == "function") ? (
|
|
21356
|
+
i && L && (typeof L == "object" || typeof L == "function") ? (w || (w = new i()), c(w, L, V)) : a ? (E || (E = new a()), d(E, L, V)) : (P || (P = { key: {}, next: null }), b(P, L, V));
|
|
21357
21357
|
}
|
|
21358
21358
|
};
|
|
21359
21359
|
return D;
|
|
@@ -21386,65 +21386,65 @@ function V_() {
|
|
|
21386
21386
|
if (d0) return dh;
|
|
21387
21387
|
d0 = 1;
|
|
21388
21388
|
var r = Ep(), e = Object.prototype.hasOwnProperty, t = Array.isArray, n = function() {
|
|
21389
|
-
for (var x = [],
|
|
21390
|
-
x.push("%" + ((
|
|
21389
|
+
for (var x = [], w = 0; w < 256; ++w)
|
|
21390
|
+
x.push("%" + ((w < 16 ? "0" : "") + w.toString(16)).toUpperCase());
|
|
21391
21391
|
return x;
|
|
21392
|
-
}(), i = function(
|
|
21393
|
-
for (;
|
|
21394
|
-
var
|
|
21392
|
+
}(), i = function(w) {
|
|
21393
|
+
for (; w.length > 1; ) {
|
|
21394
|
+
var E = w.pop(), P = E.obj[E.prop];
|
|
21395
21395
|
if (t(P)) {
|
|
21396
21396
|
for (var D = [], L = 0; L < P.length; ++L)
|
|
21397
21397
|
typeof P[L] < "u" && D.push(P[L]);
|
|
21398
|
-
|
|
21398
|
+
E.obj[E.prop] = D;
|
|
21399
21399
|
}
|
|
21400
21400
|
}
|
|
21401
|
-
}, a = function(
|
|
21402
|
-
for (var P =
|
|
21403
|
-
typeof
|
|
21401
|
+
}, a = function(w, E) {
|
|
21402
|
+
for (var P = E && E.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, D = 0; D < w.length; ++D)
|
|
21403
|
+
typeof w[D] < "u" && (P[D] = w[D]);
|
|
21404
21404
|
return P;
|
|
21405
|
-
}, u = function x(
|
|
21406
|
-
if (!
|
|
21407
|
-
return
|
|
21408
|
-
if (typeof
|
|
21409
|
-
if (t(
|
|
21410
|
-
|
|
21411
|
-
else if (
|
|
21412
|
-
(P && (P.plainObjects || P.allowPrototypes) || !e.call(Object.prototype,
|
|
21405
|
+
}, u = function x(w, E, P) {
|
|
21406
|
+
if (!E)
|
|
21407
|
+
return w;
|
|
21408
|
+
if (typeof E != "object") {
|
|
21409
|
+
if (t(w))
|
|
21410
|
+
w.push(E);
|
|
21411
|
+
else if (w && typeof w == "object")
|
|
21412
|
+
(P && (P.plainObjects || P.allowPrototypes) || !e.call(Object.prototype, E)) && (w[E] = !0);
|
|
21413
21413
|
else
|
|
21414
|
-
return [
|
|
21415
|
-
return
|
|
21416
|
-
}
|
|
21417
|
-
if (!
|
|
21418
|
-
return [
|
|
21419
|
-
var D =
|
|
21420
|
-
return t(
|
|
21421
|
-
if (e.call(
|
|
21422
|
-
var te =
|
|
21423
|
-
te && typeof te == "object" && L && typeof L == "object" ?
|
|
21414
|
+
return [w, E];
|
|
21415
|
+
return w;
|
|
21416
|
+
}
|
|
21417
|
+
if (!w || typeof w != "object")
|
|
21418
|
+
return [w].concat(E);
|
|
21419
|
+
var D = w;
|
|
21420
|
+
return t(w) && !t(E) && (D = a(w, P)), t(w) && t(E) ? (E.forEach(function(L, V) {
|
|
21421
|
+
if (e.call(w, V)) {
|
|
21422
|
+
var te = w[V];
|
|
21423
|
+
te && typeof te == "object" && L && typeof L == "object" ? w[V] = x(te, L, P) : w.push(L);
|
|
21424
21424
|
} else
|
|
21425
|
-
|
|
21426
|
-
}),
|
|
21427
|
-
var te =
|
|
21425
|
+
w[V] = L;
|
|
21426
|
+
}), w) : Object.keys(E).reduce(function(L, V) {
|
|
21427
|
+
var te = E[V];
|
|
21428
21428
|
return e.call(L, V) ? L[V] = x(L[V], te, P) : L[V] = te, L;
|
|
21429
21429
|
}, D);
|
|
21430
|
-
}, c = function(
|
|
21431
|
-
return Object.keys(
|
|
21432
|
-
return P[D] =
|
|
21433
|
-
},
|
|
21434
|
-
}, f = function(x,
|
|
21430
|
+
}, c = function(w, E) {
|
|
21431
|
+
return Object.keys(E).reduce(function(P, D) {
|
|
21432
|
+
return P[D] = E[D], P;
|
|
21433
|
+
}, w);
|
|
21434
|
+
}, f = function(x, w, E) {
|
|
21435
21435
|
var P = x.replace(/\+/g, " ");
|
|
21436
|
-
if (
|
|
21436
|
+
if (E === "iso-8859-1")
|
|
21437
21437
|
return P.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21438
21438
|
try {
|
|
21439
21439
|
return decodeURIComponent(P);
|
|
21440
21440
|
} catch {
|
|
21441
21441
|
return P;
|
|
21442
21442
|
}
|
|
21443
|
-
}, h = 1024, d = function(
|
|
21444
|
-
if (
|
|
21445
|
-
return
|
|
21446
|
-
var V =
|
|
21447
|
-
if (typeof
|
|
21443
|
+
}, h = 1024, d = function(w, E, P, D, L) {
|
|
21444
|
+
if (w.length === 0)
|
|
21445
|
+
return w;
|
|
21446
|
+
var V = w;
|
|
21447
|
+
if (typeof w == "symbol" ? V = Symbol.prototype.toString.call(w) : typeof w != "string" && (V = String(w)), P === "iso-8859-1")
|
|
21448
21448
|
return escape(V).replace(/%u[0-9a-f]{4}/gi, function(Ne) {
|
|
21449
21449
|
return "%26%23" + parseInt(Ne.slice(2), 16) + "%3B";
|
|
21450
21450
|
});
|
|
@@ -21472,31 +21472,31 @@ function V_() {
|
|
|
21472
21472
|
te += fe.join("");
|
|
21473
21473
|
}
|
|
21474
21474
|
return te;
|
|
21475
|
-
}, y = function(
|
|
21476
|
-
for (var
|
|
21477
|
-
for (var L =
|
|
21475
|
+
}, y = function(w) {
|
|
21476
|
+
for (var E = [{ obj: { o: w }, prop: "o" }], P = [], D = 0; D < E.length; ++D)
|
|
21477
|
+
for (var L = E[D], V = L.obj[L.prop], te = Object.keys(V), Y = 0; Y < te.length; ++Y) {
|
|
21478
21478
|
var ue = te[Y], fe = V[ue];
|
|
21479
|
-
typeof fe == "object" && fe !== null && P.indexOf(fe) === -1 && (
|
|
21480
|
-
}
|
|
21481
|
-
return i(
|
|
21482
|
-
}, g = function(
|
|
21483
|
-
return Object.prototype.toString.call(
|
|
21484
|
-
}, m = function(
|
|
21485
|
-
return !
|
|
21486
|
-
},
|
|
21487
|
-
return [].concat(
|
|
21488
|
-
}, A = function(
|
|
21489
|
-
if (t(
|
|
21490
|
-
for (var P = [], D = 0; D <
|
|
21491
|
-
P.push(
|
|
21479
|
+
typeof fe == "object" && fe !== null && P.indexOf(fe) === -1 && (E.push({ obj: V, prop: ue }), P.push(fe));
|
|
21480
|
+
}
|
|
21481
|
+
return i(E), w;
|
|
21482
|
+
}, g = function(w) {
|
|
21483
|
+
return Object.prototype.toString.call(w) === "[object RegExp]";
|
|
21484
|
+
}, m = function(w) {
|
|
21485
|
+
return !w || typeof w != "object" ? !1 : !!(w.constructor && w.constructor.isBuffer && w.constructor.isBuffer(w));
|
|
21486
|
+
}, b = function(w, E) {
|
|
21487
|
+
return [].concat(w, E);
|
|
21488
|
+
}, A = function(w, E) {
|
|
21489
|
+
if (t(w)) {
|
|
21490
|
+
for (var P = [], D = 0; D < w.length; D += 1)
|
|
21491
|
+
P.push(E(w[D]));
|
|
21492
21492
|
return P;
|
|
21493
21493
|
}
|
|
21494
|
-
return
|
|
21494
|
+
return E(w);
|
|
21495
21495
|
};
|
|
21496
21496
|
return dh = {
|
|
21497
21497
|
arrayToObject: a,
|
|
21498
21498
|
assign: c,
|
|
21499
|
-
combine:
|
|
21499
|
+
combine: b,
|
|
21500
21500
|
compact: y,
|
|
21501
21501
|
decode: f,
|
|
21502
21502
|
encode: d,
|
|
@@ -21515,8 +21515,8 @@ function _F() {
|
|
|
21515
21515
|
return x + "[]";
|
|
21516
21516
|
},
|
|
21517
21517
|
comma: "comma",
|
|
21518
|
-
indices: function(x,
|
|
21519
|
-
return x + "[" +
|
|
21518
|
+
indices: function(x, w) {
|
|
21519
|
+
return x + "[" + w + "]";
|
|
21520
21520
|
},
|
|
21521
21521
|
repeat: function(x) {
|
|
21522
21522
|
return x;
|
|
@@ -21546,7 +21546,7 @@ function _F() {
|
|
|
21546
21546
|
strictNullHandling: !1
|
|
21547
21547
|
}, y = function(x) {
|
|
21548
21548
|
return typeof x == "string" || typeof x == "number" || typeof x == "boolean" || typeof x == "symbol" || typeof x == "bigint";
|
|
21549
|
-
}, g = {}, m = function A(x,
|
|
21549
|
+
}, g = {}, m = function A(x, w, E, P, D, L, V, te, Y, ue, fe, qe, ge, Ne, Le, me, Qe, ve) {
|
|
21550
21550
|
for (var ce = x, Se = ve, Pe = 0, we = !1; (Se = Se.get(g)) !== void 0 && !we; ) {
|
|
21551
21551
|
var Ze = Se.get(x);
|
|
21552
21552
|
if (Pe += 1, typeof Ze < "u") {
|
|
@@ -21556,25 +21556,25 @@ function _F() {
|
|
|
21556
21556
|
}
|
|
21557
21557
|
typeof Se.get(g) > "u" && (Pe = 0);
|
|
21558
21558
|
}
|
|
21559
|
-
if (typeof ue == "function" ? ce = ue(
|
|
21559
|
+
if (typeof ue == "function" ? ce = ue(w, ce) : ce instanceof Date ? ce = ge(ce) : E === "comma" && a(ce) && (ce = e.maybeMap(ce, function(X) {
|
|
21560
21560
|
return X instanceof Date ? ge(X) : X;
|
|
21561
21561
|
})), ce === null) {
|
|
21562
21562
|
if (L)
|
|
21563
|
-
return Y && !me ? Y(
|
|
21563
|
+
return Y && !me ? Y(w, d.encoder, Qe, "key", Ne) : w;
|
|
21564
21564
|
ce = "";
|
|
21565
21565
|
}
|
|
21566
21566
|
if (y(ce) || e.isBuffer(ce)) {
|
|
21567
21567
|
if (Y) {
|
|
21568
|
-
var St = me ?
|
|
21568
|
+
var St = me ? w : Y(w, d.encoder, Qe, "key", Ne);
|
|
21569
21569
|
return [Le(St) + "=" + Le(Y(ce, d.encoder, Qe, "value", Ne))];
|
|
21570
21570
|
}
|
|
21571
|
-
return [Le(
|
|
21571
|
+
return [Le(w) + "=" + Le(String(ce))];
|
|
21572
21572
|
}
|
|
21573
21573
|
var lt = [];
|
|
21574
21574
|
if (typeof ce > "u")
|
|
21575
21575
|
return lt;
|
|
21576
21576
|
var At;
|
|
21577
|
-
if (
|
|
21577
|
+
if (E === "comma" && a(ce))
|
|
21578
21578
|
me && Y && (ce = e.maybeMap(ce, Y)), At = [{ value: ce.length > 0 ? ce.join(",") || null : void 0 }];
|
|
21579
21579
|
else if (a(ue))
|
|
21580
21580
|
At = ue;
|
|
@@ -21582,25 +21582,25 @@ function _F() {
|
|
|
21582
21582
|
var Xe = Object.keys(ce);
|
|
21583
21583
|
At = fe ? Xe.sort(fe) : Xe;
|
|
21584
21584
|
}
|
|
21585
|
-
var Je = te ?
|
|
21585
|
+
var Je = te ? w.replace(/\./g, "%2E") : w, dt = P && a(ce) && ce.length === 1 ? Je + "[]" : Je;
|
|
21586
21586
|
if (D && a(ce) && ce.length === 0)
|
|
21587
21587
|
return dt + "[]";
|
|
21588
21588
|
for (var Ce = 0; Ce < At.length; ++Ce) {
|
|
21589
21589
|
var bt = At[Ce], z = typeof bt == "object" && typeof bt.value < "u" ? bt.value : ce[bt];
|
|
21590
21590
|
if (!(V && z === null)) {
|
|
21591
|
-
var K = qe && te ? bt.replace(/\./g, "%2E") : bt, B = a(ce) ? typeof
|
|
21591
|
+
var K = qe && te ? bt.replace(/\./g, "%2E") : bt, B = a(ce) ? typeof E == "function" ? E(dt, K) : dt : dt + (qe ? "." + K : "[" + K + "]");
|
|
21592
21592
|
ve.set(x, Pe);
|
|
21593
21593
|
var Q = r();
|
|
21594
21594
|
Q.set(g, ve), c(lt, A(
|
|
21595
21595
|
z,
|
|
21596
21596
|
B,
|
|
21597
|
-
|
|
21597
|
+
E,
|
|
21598
21598
|
P,
|
|
21599
21599
|
D,
|
|
21600
21600
|
L,
|
|
21601
21601
|
V,
|
|
21602
21602
|
te,
|
|
21603
|
-
|
|
21603
|
+
E === "comma" && me && a(ce) ? null : Y,
|
|
21604
21604
|
ue,
|
|
21605
21605
|
fe,
|
|
21606
21606
|
qe,
|
|
@@ -21614,7 +21614,7 @@ function _F() {
|
|
|
21614
21614
|
}
|
|
21615
21615
|
}
|
|
21616
21616
|
return lt;
|
|
21617
|
-
},
|
|
21617
|
+
}, b = function(x) {
|
|
21618
21618
|
if (!x)
|
|
21619
21619
|
return d;
|
|
21620
21620
|
if (typeof x.allowEmptyArrays < "u" && typeof x.allowEmptyArrays != "boolean")
|
|
@@ -21623,16 +21623,16 @@ function _F() {
|
|
|
21623
21623
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
21624
21624
|
if (x.encoder !== null && typeof x.encoder < "u" && typeof x.encoder != "function")
|
|
21625
21625
|
throw new TypeError("Encoder has to be a function.");
|
|
21626
|
-
var
|
|
21626
|
+
var w = x.charset || d.charset;
|
|
21627
21627
|
if (typeof x.charset < "u" && x.charset !== "utf-8" && x.charset !== "iso-8859-1")
|
|
21628
21628
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
21629
|
-
var
|
|
21629
|
+
var E = t.default;
|
|
21630
21630
|
if (typeof x.format < "u") {
|
|
21631
21631
|
if (!n.call(t.formatters, x.format))
|
|
21632
21632
|
throw new TypeError("Unknown format option provided.");
|
|
21633
|
-
|
|
21633
|
+
E = x.format;
|
|
21634
21634
|
}
|
|
21635
|
-
var P = t.formatters[
|
|
21635
|
+
var P = t.formatters[E], D = d.filter;
|
|
21636
21636
|
(typeof x.filter == "function" || a(x.filter)) && (D = x.filter);
|
|
21637
21637
|
var L;
|
|
21638
21638
|
if (x.arrayFormat in i ? L = x.arrayFormat : "indices" in x ? L = x.indices ? "indices" : "repeat" : L = d.arrayFormat, "commaRoundTrip" in x && typeof x.commaRoundTrip != "boolean")
|
|
@@ -21643,7 +21643,7 @@ function _F() {
|
|
|
21643
21643
|
allowDots: V,
|
|
21644
21644
|
allowEmptyArrays: typeof x.allowEmptyArrays == "boolean" ? !!x.allowEmptyArrays : d.allowEmptyArrays,
|
|
21645
21645
|
arrayFormat: L,
|
|
21646
|
-
charset:
|
|
21646
|
+
charset: w,
|
|
21647
21647
|
charsetSentinel: typeof x.charsetSentinel == "boolean" ? x.charsetSentinel : d.charsetSentinel,
|
|
21648
21648
|
commaRoundTrip: x.commaRoundTrip,
|
|
21649
21649
|
delimiter: typeof x.delimiter > "u" ? d.delimiter : x.delimiter,
|
|
@@ -21652,7 +21652,7 @@ function _F() {
|
|
|
21652
21652
|
encoder: typeof x.encoder == "function" ? x.encoder : d.encoder,
|
|
21653
21653
|
encodeValuesOnly: typeof x.encodeValuesOnly == "boolean" ? x.encodeValuesOnly : d.encodeValuesOnly,
|
|
21654
21654
|
filter: D,
|
|
21655
|
-
format:
|
|
21655
|
+
format: E,
|
|
21656
21656
|
formatter: P,
|
|
21657
21657
|
serializeDate: typeof x.serializeDate == "function" ? x.serializeDate : d.serializeDate,
|
|
21658
21658
|
skipNulls: typeof x.skipNulls == "boolean" ? x.skipNulls : d.skipNulls,
|
|
@@ -21661,38 +21661,38 @@ function _F() {
|
|
|
21661
21661
|
};
|
|
21662
21662
|
};
|
|
21663
21663
|
return ph = function(A, x) {
|
|
21664
|
-
var
|
|
21665
|
-
typeof
|
|
21664
|
+
var w = A, E = b(x), P, D;
|
|
21665
|
+
typeof E.filter == "function" ? (D = E.filter, w = D("", w)) : a(E.filter) && (D = E.filter, P = D);
|
|
21666
21666
|
var L = [];
|
|
21667
|
-
if (typeof
|
|
21667
|
+
if (typeof w != "object" || w === null)
|
|
21668
21668
|
return "";
|
|
21669
|
-
var V = i[
|
|
21670
|
-
P || (P = Object.keys(
|
|
21669
|
+
var V = i[E.arrayFormat], te = V === "comma" && E.commaRoundTrip;
|
|
21670
|
+
P || (P = Object.keys(w)), E.sort && P.sort(E.sort);
|
|
21671
21671
|
for (var Y = r(), ue = 0; ue < P.length; ++ue) {
|
|
21672
21672
|
var fe = P[ue];
|
|
21673
|
-
|
|
21674
|
-
|
|
21673
|
+
E.skipNulls && w[fe] === null || c(L, m(
|
|
21674
|
+
w[fe],
|
|
21675
21675
|
fe,
|
|
21676
21676
|
V,
|
|
21677
21677
|
te,
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21678
|
+
E.allowEmptyArrays,
|
|
21679
|
+
E.strictNullHandling,
|
|
21680
|
+
E.skipNulls,
|
|
21681
|
+
E.encodeDotInKeys,
|
|
21682
|
+
E.encode ? E.encoder : null,
|
|
21683
|
+
E.filter,
|
|
21684
|
+
E.sort,
|
|
21685
|
+
E.allowDots,
|
|
21686
|
+
E.serializeDate,
|
|
21687
|
+
E.format,
|
|
21688
|
+
E.formatter,
|
|
21689
|
+
E.encodeValuesOnly,
|
|
21690
|
+
E.charset,
|
|
21691
21691
|
Y
|
|
21692
21692
|
));
|
|
21693
21693
|
}
|
|
21694
|
-
var qe = L.join(
|
|
21695
|
-
return
|
|
21694
|
+
var qe = L.join(E.delimiter), ge = E.addQueryPrefix === !0 ? "?" : "";
|
|
21695
|
+
return E.charsetSentinel && (E.charset === "iso-8859-1" ? ge += "utf8=%26%2310003%3B&" : ge += "utf8=%E2%9C%93&"), qe.length > 0 ? ge + qe : "";
|
|
21696
21696
|
}, ph;
|
|
21697
21697
|
}
|
|
21698
21698
|
var mh, m0;
|
|
@@ -21721,53 +21721,53 @@ function xF() {
|
|
|
21721
21721
|
strictDepth: !1,
|
|
21722
21722
|
strictNullHandling: !1
|
|
21723
21723
|
}, i = function(g) {
|
|
21724
|
-
return g.replace(/&#(\d+);/g, function(m,
|
|
21725
|
-
return String.fromCharCode(parseInt(
|
|
21724
|
+
return g.replace(/&#(\d+);/g, function(m, b) {
|
|
21725
|
+
return String.fromCharCode(parseInt(b, 10));
|
|
21726
21726
|
});
|
|
21727
21727
|
}, a = function(g, m) {
|
|
21728
21728
|
return g && typeof g == "string" && m.comma && g.indexOf(",") > -1 ? g.split(",") : g;
|
|
21729
|
-
}, u = "utf8=%26%2310003%3B", c = "utf8=%E2%9C%93", f = function(m,
|
|
21730
|
-
var A = { __proto__: null }, x =
|
|
21729
|
+
}, u = "utf8=%26%2310003%3B", c = "utf8=%E2%9C%93", f = function(m, b) {
|
|
21730
|
+
var A = { __proto__: null }, x = b.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
|
|
21731
21731
|
x = x.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
21732
|
-
var
|
|
21733
|
-
if (
|
|
21734
|
-
for (D = 0; D <
|
|
21735
|
-
|
|
21736
|
-
for (D = 0; D <
|
|
21732
|
+
var w = b.parameterLimit === 1 / 0 ? void 0 : b.parameterLimit, E = x.split(b.delimiter, w), P = -1, D, L = b.charset;
|
|
21733
|
+
if (b.charsetSentinel)
|
|
21734
|
+
for (D = 0; D < E.length; ++D)
|
|
21735
|
+
E[D].indexOf("utf8=") === 0 && (E[D] === c ? L = "utf-8" : E[D] === u && (L = "iso-8859-1"), P = D, D = E.length);
|
|
21736
|
+
for (D = 0; D < E.length; ++D)
|
|
21737
21737
|
if (D !== P) {
|
|
21738
|
-
var V =
|
|
21739
|
-
Y === -1 ? (ue =
|
|
21740
|
-
a(V.slice(Y + 1),
|
|
21738
|
+
var V = E[D], te = V.indexOf("]="), Y = te === -1 ? V.indexOf("=") : te + 1, ue, fe;
|
|
21739
|
+
Y === -1 ? (ue = b.decoder(V, n.decoder, L, "key"), fe = b.strictNullHandling ? null : "") : (ue = b.decoder(V.slice(0, Y), n.decoder, L, "key"), fe = r.maybeMap(
|
|
21740
|
+
a(V.slice(Y + 1), b),
|
|
21741
21741
|
function(ge) {
|
|
21742
|
-
return
|
|
21742
|
+
return b.decoder(ge, n.decoder, L, "value");
|
|
21743
21743
|
}
|
|
21744
|
-
)), fe &&
|
|
21744
|
+
)), fe && b.interpretNumericEntities && L === "iso-8859-1" && (fe = i(fe)), V.indexOf("[]=") > -1 && (fe = t(fe) ? [fe] : fe);
|
|
21745
21745
|
var qe = e.call(A, ue);
|
|
21746
|
-
qe &&
|
|
21746
|
+
qe && b.duplicates === "combine" ? A[ue] = r.combine(A[ue], fe) : (!qe || b.duplicates === "last") && (A[ue] = fe);
|
|
21747
21747
|
}
|
|
21748
21748
|
return A;
|
|
21749
|
-
}, h = function(g, m,
|
|
21750
|
-
for (var x = A ? m : a(m,
|
|
21751
|
-
var
|
|
21752
|
-
if (P === "[]" &&
|
|
21753
|
-
|
|
21749
|
+
}, h = function(g, m, b, A) {
|
|
21750
|
+
for (var x = A ? m : a(m, b), w = g.length - 1; w >= 0; --w) {
|
|
21751
|
+
var E, P = g[w];
|
|
21752
|
+
if (P === "[]" && b.parseArrays)
|
|
21753
|
+
E = b.allowEmptyArrays && (x === "" || b.strictNullHandling && x === null) ? [] : [].concat(x);
|
|
21754
21754
|
else {
|
|
21755
|
-
|
|
21756
|
-
var D = P.charAt(0) === "[" && P.charAt(P.length - 1) === "]" ? P.slice(1, -1) : P, L =
|
|
21757
|
-
!
|
|
21755
|
+
E = b.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
21756
|
+
var D = P.charAt(0) === "[" && P.charAt(P.length - 1) === "]" ? P.slice(1, -1) : P, L = b.decodeDotInKeys ? D.replace(/%2E/g, ".") : D, V = parseInt(L, 10);
|
|
21757
|
+
!b.parseArrays && L === "" ? E = { 0: x } : !isNaN(V) && P !== L && String(V) === L && V >= 0 && b.parseArrays && V <= b.arrayLimit ? (E = [], E[V] = x) : L !== "__proto__" && (E[L] = x);
|
|
21758
21758
|
}
|
|
21759
|
-
x =
|
|
21759
|
+
x = E;
|
|
21760
21760
|
}
|
|
21761
21761
|
return x;
|
|
21762
|
-
}, d = function(m,
|
|
21762
|
+
}, d = function(m, b, A, x) {
|
|
21763
21763
|
if (m) {
|
|
21764
|
-
var
|
|
21764
|
+
var w = A.allowDots ? m.replace(/\.([^.[]+)/g, "[$1]") : m, E = /(\[[^[\]]*])/, P = /(\[[^[\]]*])/g, D = A.depth > 0 && E.exec(w), L = D ? w.slice(0, D.index) : w, V = [];
|
|
21765
21765
|
if (L) {
|
|
21766
21766
|
if (!A.plainObjects && e.call(Object.prototype, L) && !A.allowPrototypes)
|
|
21767
21767
|
return;
|
|
21768
21768
|
V.push(L);
|
|
21769
21769
|
}
|
|
21770
|
-
for (var te = 0; A.depth > 0 && (D = P.exec(
|
|
21770
|
+
for (var te = 0; A.depth > 0 && (D = P.exec(w)) !== null && te < A.depth; ) {
|
|
21771
21771
|
if (te += 1, !A.plainObjects && e.call(Object.prototype, D[1].slice(1, -1)) && !A.allowPrototypes)
|
|
21772
21772
|
return;
|
|
21773
21773
|
V.push(D[1]);
|
|
@@ -21775,9 +21775,9 @@ function xF() {
|
|
|
21775
21775
|
if (D) {
|
|
21776
21776
|
if (A.strictDepth === !0)
|
|
21777
21777
|
throw new RangeError("Input depth exceeded depth option of " + A.depth + " and strictDepth is true");
|
|
21778
|
-
V.push("[" +
|
|
21778
|
+
V.push("[" + w.slice(D.index) + "]");
|
|
21779
21779
|
}
|
|
21780
|
-
return h(V,
|
|
21780
|
+
return h(V, b, A, x);
|
|
21781
21781
|
}
|
|
21782
21782
|
}, y = function(m) {
|
|
21783
21783
|
if (!m)
|
|
@@ -21790,7 +21790,7 @@ function xF() {
|
|
|
21790
21790
|
throw new TypeError("Decoder has to be a function.");
|
|
21791
21791
|
if (typeof m.charset < "u" && m.charset !== "utf-8" && m.charset !== "iso-8859-1")
|
|
21792
21792
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
21793
|
-
var
|
|
21793
|
+
var b = typeof m.charset > "u" ? n.charset : m.charset, A = typeof m.duplicates > "u" ? n.duplicates : m.duplicates;
|
|
21794
21794
|
if (A !== "combine" && A !== "first" && A !== "last")
|
|
21795
21795
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
21796
21796
|
var x = typeof m.allowDots > "u" ? m.decodeDotInKeys === !0 ? !0 : n.allowDots : !!m.allowDots;
|
|
@@ -21800,7 +21800,7 @@ function xF() {
|
|
|
21800
21800
|
allowPrototypes: typeof m.allowPrototypes == "boolean" ? m.allowPrototypes : n.allowPrototypes,
|
|
21801
21801
|
allowSparse: typeof m.allowSparse == "boolean" ? m.allowSparse : n.allowSparse,
|
|
21802
21802
|
arrayLimit: typeof m.arrayLimit == "number" ? m.arrayLimit : n.arrayLimit,
|
|
21803
|
-
charset:
|
|
21803
|
+
charset: b,
|
|
21804
21804
|
charsetSentinel: typeof m.charsetSentinel == "boolean" ? m.charsetSentinel : n.charsetSentinel,
|
|
21805
21805
|
comma: typeof m.comma == "boolean" ? m.comma : n.comma,
|
|
21806
21806
|
decodeDotInKeys: typeof m.decodeDotInKeys == "boolean" ? m.decodeDotInKeys : n.decodeDotInKeys,
|
|
@@ -21819,14 +21819,14 @@ function xF() {
|
|
|
21819
21819
|
};
|
|
21820
21820
|
};
|
|
21821
21821
|
return mh = function(g, m) {
|
|
21822
|
-
var
|
|
21822
|
+
var b = y(m);
|
|
21823
21823
|
if (g === "" || g === null || typeof g > "u")
|
|
21824
|
-
return
|
|
21825
|
-
for (var A = typeof g == "string" ? f(g,
|
|
21826
|
-
var P =
|
|
21827
|
-
x = r.merge(x, D,
|
|
21824
|
+
return b.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
21825
|
+
for (var A = typeof g == "string" ? f(g, b) : g, x = b.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(A), E = 0; E < w.length; ++E) {
|
|
21826
|
+
var P = w[E], D = d(P, A[P], b, typeof g == "string");
|
|
21827
|
+
x = r.merge(x, D, b);
|
|
21828
21828
|
}
|
|
21829
|
-
return
|
|
21829
|
+
return b.allowSparse === !0 ? x : r.compact(x);
|
|
21830
21830
|
}, mh;
|
|
21831
21831
|
}
|
|
21832
21832
|
var yh, y0;
|
|
@@ -22017,14 +22017,14 @@ function SF() {
|
|
|
22017
22017
|
field: z
|
|
22018
22018
|
}, [4, G(Te, K, ze, X, $e)];
|
|
22019
22019
|
case 1:
|
|
22020
|
-
return le = be.sent(), z.selectionSet ? le == null ? [2, le] : Array.isArray(le) ? [2,
|
|
22020
|
+
return le = be.sent(), z.selectionSet ? le == null ? [2, le] : Array.isArray(le) ? [2, b(z, le, B)] : [2, g(z.selectionSet, le, B)] : [2, le];
|
|
22021
22021
|
}
|
|
22022
22022
|
});
|
|
22023
22023
|
});
|
|
22024
22024
|
}
|
|
22025
|
-
function
|
|
22025
|
+
function b(z, K, B) {
|
|
22026
22026
|
return Promise.all(K.map(function(Q) {
|
|
22027
|
-
return Q === null ? null : Array.isArray(Q) ?
|
|
22027
|
+
return Q === null ? null : Array.isArray(Q) ? b(z, Q, B) : g(z.selectionSet, Q, B);
|
|
22028
22028
|
}));
|
|
22029
22029
|
}
|
|
22030
22030
|
var A = /* @__PURE__ */ function() {
|
|
@@ -22050,7 +22050,7 @@ function SF() {
|
|
|
22050
22050
|
}
|
|
22051
22051
|
return z;
|
|
22052
22052
|
}, x.apply(this, arguments);
|
|
22053
|
-
},
|
|
22053
|
+
}, w = function(z, K, B, Q) {
|
|
22054
22054
|
function X(G) {
|
|
22055
22055
|
return G instanceof B ? G : new B(function(Te) {
|
|
22056
22056
|
Te(G);
|
|
@@ -22076,7 +22076,7 @@ function SF() {
|
|
|
22076
22076
|
}
|
|
22077
22077
|
le((Q = Q.apply(z, K || [])).next());
|
|
22078
22078
|
});
|
|
22079
|
-
},
|
|
22079
|
+
}, E = function(z, K) {
|
|
22080
22080
|
var B = { label: 0, sent: function() {
|
|
22081
22081
|
if (G[0] & 1) throw G[1];
|
|
22082
22082
|
return G[1];
|
|
@@ -22307,9 +22307,9 @@ function SF() {
|
|
|
22307
22307
|
return lt(B, K);
|
|
22308
22308
|
}) : (z.__typename = K, z);
|
|
22309
22309
|
}, At = function(z, K, B, Q, X) {
|
|
22310
|
-
return
|
|
22310
|
+
return w(void 0, void 0, void 0, function() {
|
|
22311
22311
|
var G, Te, ze, $e, le, be, Ke, Et, wt, Gt, pt, Ft, er, Cr, Wt, Qt, Yt, W, H, Ve, Be, Ot, Ye, tr, lr, Rt, zt, jr, qr, rr, an, br, wr, _r, Ar, sr, Wr, kr, xr, Rr, on, Pn, N, se, ye, Ae, je, at, it, et;
|
|
22312
|
-
return
|
|
22312
|
+
return E(this, function(tt) {
|
|
22313
22313
|
switch (tt.label) {
|
|
22314
22314
|
case 0:
|
|
22315
22315
|
if (G = X.directives, Te = X.isLeaf, ze = X.resultKey, $e = Q.exportVariablesByNode, le = $e.get(K) || {}, be = function(_t) {
|
|
@@ -22504,16 +22504,16 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22504
22504
|
t();
|
|
22505
22505
|
return;
|
|
22506
22506
|
}
|
|
22507
|
-
const
|
|
22508
|
-
|
|
22509
|
-
}, [c, e]), xk(({ nextLocation:
|
|
22510
|
-
var
|
|
22511
|
-
return i ? (
|
|
22507
|
+
const P = new URLSearchParams(c.search).get("id");
|
|
22508
|
+
P && g(P), a(!0);
|
|
22509
|
+
}, [c, e]), xk(({ nextLocation: E }) => {
|
|
22510
|
+
var P;
|
|
22511
|
+
return i ? (P = E.state) != null && P.fromParent ? (h(!0), !1) : (m(`${E.pathname}${E.search}`), !0) : !1;
|
|
22512
22512
|
}), vr(() => {
|
|
22513
22513
|
if (!i)
|
|
22514
22514
|
return;
|
|
22515
|
-
const
|
|
22516
|
-
|
|
22515
|
+
const E = (P) => {
|
|
22516
|
+
P.metaKey && P.key === "k" && window.parent.postMessage(
|
|
22517
22517
|
{
|
|
22518
22518
|
type: "open-search",
|
|
22519
22519
|
instanceId: y
|
|
@@ -22521,62 +22521,71 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22521
22521
|
d
|
|
22522
22522
|
);
|
|
22523
22523
|
};
|
|
22524
|
-
return window.addEventListener("keydown",
|
|
22525
|
-
window.removeEventListener("keydown",
|
|
22524
|
+
return window.addEventListener("keydown", E), () => {
|
|
22525
|
+
window.removeEventListener("keydown", E);
|
|
22526
22526
|
};
|
|
22527
22527
|
}, [i]), vr(() => {
|
|
22528
22528
|
if (!i)
|
|
22529
22529
|
return;
|
|
22530
|
-
const
|
|
22531
|
-
if (
|
|
22532
|
-
switch (
|
|
22530
|
+
const E = ({ origin: P, data: D }) => {
|
|
22531
|
+
if (P === d)
|
|
22532
|
+
switch (D.type) {
|
|
22533
22533
|
case "navigate":
|
|
22534
|
-
u(
|
|
22534
|
+
u(D.path, { replace: !0, state: { fromParent: !0 } });
|
|
22535
22535
|
break;
|
|
22536
22536
|
}
|
|
22537
22537
|
};
|
|
22538
|
-
return window.addEventListener("message",
|
|
22538
|
+
return window.addEventListener("message", E), !f && e && window.parent.postMessage(
|
|
22539
22539
|
{
|
|
22540
22540
|
type: "ready",
|
|
22541
22541
|
instanceId: y
|
|
22542
22542
|
},
|
|
22543
22543
|
d
|
|
22544
22544
|
), () => {
|
|
22545
|
-
window.removeEventListener("message",
|
|
22545
|
+
window.removeEventListener("message", E);
|
|
22546
22546
|
};
|
|
22547
22547
|
}, [u, f, i, e]);
|
|
22548
|
-
const m = (
|
|
22548
|
+
const m = (E) => {
|
|
22549
22549
|
!f && !e || window.parent.postMessage(
|
|
22550
22550
|
{
|
|
22551
22551
|
type: "set-path",
|
|
22552
22552
|
instanceId: y,
|
|
22553
|
-
path:
|
|
22553
|
+
path: E
|
|
22554
22554
|
},
|
|
22555
22555
|
d
|
|
22556
22556
|
);
|
|
22557
|
-
},
|
|
22557
|
+
}, b = (E) => {
|
|
22558
22558
|
f && window.parent.postMessage(
|
|
22559
22559
|
{
|
|
22560
22560
|
type: "set-summary",
|
|
22561
22561
|
instanceId: y,
|
|
22562
|
-
summary:
|
|
22562
|
+
summary: E
|
|
22563
22563
|
},
|
|
22564
22564
|
d
|
|
22565
22565
|
);
|
|
22566
|
-
}, A = (
|
|
22566
|
+
}, A = (E) => {
|
|
22567
22567
|
f && window.parent.postMessage(
|
|
22568
22568
|
{
|
|
22569
22569
|
type: "toast",
|
|
22570
22570
|
instanceId: y,
|
|
22571
|
-
message:
|
|
22571
|
+
message: E
|
|
22572
|
+
},
|
|
22573
|
+
d
|
|
22574
|
+
);
|
|
22575
|
+
}, x = (E) => {
|
|
22576
|
+
f && window.parent.postMessage(
|
|
22577
|
+
{
|
|
22578
|
+
type: "popup",
|
|
22579
|
+
instanceId: y,
|
|
22580
|
+
message: E
|
|
22572
22581
|
},
|
|
22573
22582
|
d
|
|
22574
22583
|
);
|
|
22575
|
-
},
|
|
22576
|
-
() => ({ isEmbedded: i, navigateParent: m, setSummary:
|
|
22577
|
-
[i, m,
|
|
22584
|
+
}, w = Ao(
|
|
22585
|
+
() => ({ isEmbedded: i, navigateParent: m, setSummary: b, toast: A, popup: x }),
|
|
22586
|
+
[i, m, b, A, x]
|
|
22578
22587
|
);
|
|
22579
|
-
return /* @__PURE__ */ ur.jsx(bp.Provider, { value:
|
|
22588
|
+
return /* @__PURE__ */ ur.jsx(bp.Provider, { value: w, children: c.pathname !== "/mm-embedded-interop" ? n : /* @__PURE__ */ ur.jsx(ur.Fragment, {}) });
|
|
22580
22589
|
}, TF = () => {
|
|
22581
22590
|
const { urls: r, jwtRef: e, accessToken: t } = fi(), { graphQLRoleOverride: n, children: i } = ds(nl), [a, u] = Ut(), [c, f] = Ut(), h = () => {
|
|
22582
22591
|
const g = new URL(r.graphQLUrl);
|
|
@@ -22613,7 +22622,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22613
22622
|
},
|
|
22614
22623
|
g,
|
|
22615
22624
|
A
|
|
22616
|
-
),
|
|
22625
|
+
), E = Bv(async (P, { headers: D }) => ({
|
|
22617
22626
|
headers: {
|
|
22618
22627
|
...D,
|
|
22619
22628
|
Authorization: `Bearer ${t}`
|
|
@@ -22621,7 +22630,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22621
22630
|
})).concat(
|
|
22622
22631
|
new EF.RestLink({ uri: r.apiUrl })
|
|
22623
22632
|
);
|
|
22624
|
-
f(sn.from([
|
|
22633
|
+
f(sn.from([E, x]));
|
|
22625
22634
|
}, []), vr(() => {
|
|
22626
22635
|
c && u(
|
|
22627
22636
|
new up({
|
|
@@ -22729,7 +22738,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22729
22738
|
redirect_uri: `${window.location.origin}/authorize/mm/callback`
|
|
22730
22739
|
}), qe = `${d.loginUrl}/oauth/authorize?${fe}`;
|
|
22731
22740
|
window.location = qe;
|
|
22732
|
-
},
|
|
22741
|
+
}, b = async (Y) => {
|
|
22733
22742
|
const ue = ND.parse(window.location.search), fe = ue.code;
|
|
22734
22743
|
if (ue.state !== BD())
|
|
22735
22744
|
throw Error("Oops");
|
|
@@ -22758,13 +22767,13 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22758
22767
|
};
|
|
22759
22768
|
const fe = await qv(Y, ue);
|
|
22760
22769
|
if (fe.error && fe.error.status === 401)
|
|
22761
|
-
throw await
|
|
22770
|
+
throw await w(), Error("UNAUTHORIZED");
|
|
22762
22771
|
return fe;
|
|
22763
|
-
},
|
|
22772
|
+
}, w = async () => {
|
|
22764
22773
|
await x(`${d.loginUrl}/logout`, {
|
|
22765
22774
|
method: "DELETE"
|
|
22766
22775
|
}), A();
|
|
22767
|
-
}, [
|
|
22776
|
+
}, [E, P] = Ut(), D = xa(), L = xa();
|
|
22768
22777
|
Rc(
|
|
22769
22778
|
async () => {
|
|
22770
22779
|
if (!y) {
|
|
@@ -22800,19 +22809,19 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22800
22809
|
accessToken: y,
|
|
22801
22810
|
jwtRef: D,
|
|
22802
22811
|
natsCredsRef: L,
|
|
22803
|
-
isAuthenticated:
|
|
22812
|
+
isAuthenticated: E,
|
|
22804
22813
|
login: m,
|
|
22805
|
-
logout:
|
|
22814
|
+
logout: w,
|
|
22806
22815
|
request: x,
|
|
22807
22816
|
urls: d
|
|
22808
22817
|
}),
|
|
22809
22818
|
[
|
|
22810
22819
|
y,
|
|
22811
22820
|
n,
|
|
22812
|
-
|
|
22821
|
+
E,
|
|
22813
22822
|
D,
|
|
22814
22823
|
m,
|
|
22815
|
-
|
|
22824
|
+
w,
|
|
22816
22825
|
L,
|
|
22817
22826
|
x,
|
|
22818
22827
|
d
|
|
@@ -22821,11 +22830,11 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22821
22830
|
() => ({
|
|
22822
22831
|
children: e,
|
|
22823
22832
|
graphQLRoleOverride: u,
|
|
22824
|
-
authorize:
|
|
22833
|
+
authorize: b,
|
|
22825
22834
|
isEmbedded: f,
|
|
22826
22835
|
setIsEmbedded: h
|
|
22827
22836
|
}),
|
|
22828
|
-
[e, u,
|
|
22837
|
+
[e, u, b, f, h]
|
|
22829
22838
|
);
|
|
22830
22839
|
return /* @__PURE__ */ ur.jsx(A_.Provider, { value: V, children: /* @__PURE__ */ ur.jsx(nl.Provider, { value: te, children: /* @__PURE__ */ ur.jsx(Ok, { router: PF }) }) });
|
|
22831
22840
|
}, In = new Uint8Array(0), Fi = new TextEncoder(), pn = new TextDecoder();
|
|
@@ -22859,10 +22868,10 @@ function FF(r) {
|
|
|
22859
22868
|
}
|
|
22860
22869
|
class MF {
|
|
22861
22870
|
constructor() {
|
|
22862
|
-
|
|
22863
|
-
|
|
22864
|
-
|
|
22865
|
-
|
|
22871
|
+
O(this, "buf");
|
|
22872
|
+
O(this, "seq");
|
|
22873
|
+
O(this, "inc");
|
|
22874
|
+
O(this, "inited");
|
|
22866
22875
|
this.buf = new Uint8Array(x0), this.inited = !1;
|
|
22867
22876
|
}
|
|
22868
22877
|
init() {
|
|
@@ -22909,7 +22918,7 @@ function LF(r) {
|
|
|
22909
22918
|
}
|
|
22910
22919
|
class W_ {
|
|
22911
22920
|
constructor() {
|
|
22912
|
-
|
|
22921
|
+
O(this, "messages");
|
|
22913
22922
|
this.messages = /* @__PURE__ */ new Map(), this.messages.set(pe.InvalidPayload, "Invalid payload type - payloads can be 'binary', 'string', or 'json'"), this.messages.set(pe.BadJson, "Bad JSON"), this.messages.set(pe.WssRequired, "TLS is required, therefore a secure websocket connection is also required");
|
|
22914
22923
|
}
|
|
22915
22924
|
static getMessage(e) {
|
|
@@ -22923,12 +22932,12 @@ const jF = new W_();
|
|
|
22923
22932
|
class ke extends Error {
|
|
22924
22933
|
constructor(t, n, i) {
|
|
22925
22934
|
super(t);
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22935
|
+
O(this, "name");
|
|
22936
|
+
O(this, "message");
|
|
22937
|
+
O(this, "code");
|
|
22938
|
+
O(this, "permissionContext");
|
|
22939
|
+
O(this, "chainedError");
|
|
22940
|
+
O(this, "api_error");
|
|
22932
22941
|
this.name = "NatsError", this.message = t, this.code = n, this.chainedError = i;
|
|
22933
22942
|
}
|
|
22934
22943
|
static errorForCode(t, n) {
|
|
@@ -22970,7 +22979,7 @@ const Nc = "Nats-Service-Error", Dc = "Nats-Service-Error-Code";
|
|
|
22970
22979
|
class Fc extends Error {
|
|
22971
22980
|
constructor(t, n) {
|
|
22972
22981
|
super(n);
|
|
22973
|
-
|
|
22982
|
+
O(this, "code");
|
|
22974
22983
|
this.code = t;
|
|
22975
22984
|
}
|
|
22976
22985
|
static isServiceError(t) {
|
|
@@ -23112,9 +23121,9 @@ function Di(r = 0, e = "") {
|
|
|
23112
23121
|
const vh = "NATS/1.0";
|
|
23113
23122
|
class is {
|
|
23114
23123
|
constructor(e = 0, t = "") {
|
|
23115
|
-
|
|
23116
|
-
|
|
23117
|
-
|
|
23124
|
+
O(this, "_code");
|
|
23125
|
+
O(this, "headers");
|
|
23126
|
+
O(this, "_description");
|
|
23118
23127
|
this._code = e, this._description = t, this.headers = /* @__PURE__ */ new Map();
|
|
23119
23128
|
}
|
|
23120
23129
|
[Symbol.iterator]() {
|
|
@@ -23307,12 +23316,12 @@ function H_(r) {
|
|
|
23307
23316
|
}
|
|
23308
23317
|
class Ap {
|
|
23309
23318
|
constructor(e, t, n) {
|
|
23310
|
-
|
|
23311
|
-
|
|
23312
|
-
|
|
23313
|
-
|
|
23314
|
-
|
|
23315
|
-
|
|
23319
|
+
O(this, "_headers");
|
|
23320
|
+
O(this, "_msg");
|
|
23321
|
+
O(this, "_rdata");
|
|
23322
|
+
O(this, "_reply");
|
|
23323
|
+
O(this, "_subject");
|
|
23324
|
+
O(this, "publisher");
|
|
23316
23325
|
this._msg = e, this._rdata = t, this.publisher = n;
|
|
23317
23326
|
}
|
|
23318
23327
|
get subject() {
|
|
@@ -23356,7 +23365,7 @@ class Ap {
|
|
|
23356
23365
|
}) : null;
|
|
23357
23366
|
}
|
|
23358
23367
|
}
|
|
23359
|
-
|
|
23368
|
+
O(Ap, "jc");
|
|
23360
23369
|
function ba(r) {
|
|
23361
23370
|
return sl("durable", r);
|
|
23362
23371
|
}
|
|
@@ -23472,24 +23481,24 @@ function G_(r, e = "") {
|
|
|
23472
23481
|
}
|
|
23473
23482
|
class Lr {
|
|
23474
23483
|
constructor() {
|
|
23475
|
-
|
|
23476
|
-
|
|
23477
|
-
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23481
|
-
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
|
-
|
|
23485
|
-
|
|
23486
|
-
|
|
23487
|
-
|
|
23488
|
-
|
|
23489
|
-
|
|
23490
|
-
|
|
23491
|
-
|
|
23492
|
-
|
|
23484
|
+
O(this, "inflight");
|
|
23485
|
+
O(this, "processed");
|
|
23486
|
+
O(this, "received");
|
|
23487
|
+
O(this, "noIterator");
|
|
23488
|
+
O(this, "iterClosed");
|
|
23489
|
+
O(this, "done");
|
|
23490
|
+
O(this, "signal");
|
|
23491
|
+
O(this, "yields");
|
|
23492
|
+
O(this, "filtered");
|
|
23493
|
+
O(this, "pendingFiltered");
|
|
23494
|
+
O(this, "ingestionFilterFn");
|
|
23495
|
+
O(this, "protocolFilterFn");
|
|
23496
|
+
O(this, "dispatchedFn");
|
|
23497
|
+
O(this, "ctx");
|
|
23498
|
+
O(this, "_data");
|
|
23499
|
+
O(this, "err");
|
|
23500
|
+
O(this, "time");
|
|
23501
|
+
O(this, "yielding");
|
|
23493
23502
|
this.inflight = 0, this.filtered = 0, this.pendingFiltered = 0, this.processed = 0, this.received = 0, this.noIterator = !1, this.done = !1, this.signal = ir(), this.yields = [], this.iterClosed = ir(), this.time = 0, this.yielding = !1;
|
|
23494
23503
|
}
|
|
23495
23504
|
[Symbol.asyncIterator]() {
|
|
@@ -23565,15 +23574,15 @@ class kp {
|
|
|
23565
23574
|
constructor(e, t, n = {
|
|
23566
23575
|
maxOut: 2
|
|
23567
23576
|
}) {
|
|
23568
|
-
|
|
23569
|
-
|
|
23570
|
-
|
|
23571
|
-
|
|
23572
|
-
|
|
23573
|
-
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
+
O(this, "interval");
|
|
23578
|
+
O(this, "maxOut");
|
|
23579
|
+
O(this, "cancelAfter");
|
|
23580
|
+
O(this, "timer");
|
|
23581
|
+
O(this, "autoCancelTimer");
|
|
23582
|
+
O(this, "last");
|
|
23583
|
+
O(this, "missed");
|
|
23584
|
+
O(this, "count");
|
|
23585
|
+
O(this, "callback");
|
|
23577
23586
|
this.interval = e, this.maxOut = (n == null ? void 0 : n.maxOut) || 2, this.cancelAfter = (n == null ? void 0 : n.cancelAfter) || 0, this.last = Date.now(), this.missed = 0, this.count = 0, this.callback = t, this._schedule();
|
|
23578
23587
|
}
|
|
23579
23588
|
cancel() {
|
|
@@ -23665,15 +23674,15 @@ var T0;
|
|
|
23665
23674
|
const En = "KV_";
|
|
23666
23675
|
class WF {
|
|
23667
23676
|
constructor(e) {
|
|
23668
|
-
|
|
23669
|
-
|
|
23670
|
-
|
|
23671
|
-
|
|
23672
|
-
|
|
23673
|
-
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23677
|
+
O(this, "config");
|
|
23678
|
+
O(this, "ordered");
|
|
23679
|
+
O(this, "mack");
|
|
23680
|
+
O(this, "stream");
|
|
23681
|
+
O(this, "callbackFn");
|
|
23682
|
+
O(this, "max");
|
|
23683
|
+
O(this, "qname");
|
|
23684
|
+
O(this, "isBind");
|
|
23685
|
+
O(this, "filters");
|
|
23677
23686
|
this.stream = "", this.mack = !1, this.ordered = !1, this.config = VF("", e || {});
|
|
23678
23687
|
}
|
|
23679
23688
|
getOpts() {
|
|
@@ -23849,8 +23858,8 @@ class Eo {
|
|
|
23849
23858
|
}
|
|
23850
23859
|
class Ia {
|
|
23851
23860
|
constructor() {
|
|
23852
|
-
|
|
23853
|
-
|
|
23861
|
+
O(this, "buffers");
|
|
23862
|
+
O(this, "byteLength");
|
|
23854
23863
|
this.buffers = [], this.byteLength = 0;
|
|
23855
23864
|
}
|
|
23856
23865
|
static concat(...e) {
|
|
@@ -23956,8 +23965,8 @@ function HF(r, e, t = !1) {
|
|
|
23956
23965
|
let g = 0, m;
|
|
23957
23966
|
for (let A = 0; A < d; A += 16383)
|
|
23958
23967
|
m = A + 16383, y[g++] = a(u, A, m > d ? d : m);
|
|
23959
|
-
let
|
|
23960
|
-
return h === 1 ? (
|
|
23968
|
+
let b;
|
|
23969
|
+
return h === 1 ? (b = u[d], y[g] = r[b >> 2] + r[b << 4 & 63], t || (y[g] += "==")) : h === 2 && (b = u[d] << 8 | u[d + 1] & 255, y[g] = r[b >> 10] + r[b >> 4 & 63] + r[b << 2 & 63], t || (y[g] += "=")), y.join("");
|
|
23961
23970
|
}
|
|
23962
23971
|
};
|
|
23963
23972
|
}
|
|
@@ -23998,13 +24007,13 @@ function eM(r, e = "utf8") {
|
|
|
23998
24007
|
}
|
|
23999
24008
|
class I0 {
|
|
24000
24009
|
constructor() {
|
|
24001
|
-
|
|
24002
|
-
|
|
24003
|
-
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24010
|
+
O(this, "hashSize", 32);
|
|
24011
|
+
O(this, "_buf");
|
|
24012
|
+
O(this, "_bufIdx");
|
|
24013
|
+
O(this, "_count");
|
|
24014
|
+
O(this, "_K");
|
|
24015
|
+
O(this, "_H");
|
|
24016
|
+
O(this, "_finalized");
|
|
24008
24017
|
this._buf = new Uint8Array(64), this._K = new Uint32Array([
|
|
24009
24018
|
1116352408,
|
|
24010
24019
|
1899447441,
|
|
@@ -24120,8 +24129,8 @@ class I0 {
|
|
|
24120
24129
|
if (y < 16)
|
|
24121
24130
|
g = d[y];
|
|
24122
24131
|
else {
|
|
24123
|
-
let m = d[y + 1 & 15],
|
|
24124
|
-
g = d[y & 15] = (m >>> 7 ^ m >>> 18 ^ m >>> 3 ^ m << 25 ^ m << 14) + (
|
|
24132
|
+
let m = d[y + 1 & 15], b = d[y + 14 & 15];
|
|
24133
|
+
g = d[y & 15] = (m >>> 7 ^ m >>> 18 ^ m >>> 3 ^ m << 25 ^ m << 14) + (b >>> 17 ^ b >>> 19 ^ b >>> 10 ^ b << 15 ^ b << 13) + d[y & 15] + d[y + 9 & 15] | 0;
|
|
24125
24134
|
}
|
|
24126
24135
|
g = g + h + (u >>> 6 ^ u >>> 11 ^ u >>> 25 ^ u << 26 ^ u << 21 ^ u << 7) + (f ^ u & (c ^ f)) + this._K[y] | 0, h = f, f = c, c = u, u = a + g, a = i, i = n, n = t, t = g + (n & i ^ a & (n ^ i)) + (n >>> 2 ^ n >>> 13 ^ n >>> 22 ^ n << 30 ^ n << 19 ^ n << 10) | 0;
|
|
24127
24136
|
}
|
|
@@ -24130,11 +24139,11 @@ class I0 {
|
|
|
24130
24139
|
}
|
|
24131
24140
|
class Y_ {
|
|
24132
24141
|
constructor(e, t, n = !0) {
|
|
24133
|
-
|
|
24134
|
-
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24142
|
+
O(this, "token");
|
|
24143
|
+
O(this, "received");
|
|
24144
|
+
O(this, "ctx");
|
|
24145
|
+
O(this, "requestSubject");
|
|
24146
|
+
O(this, "mux");
|
|
24138
24147
|
this.mux = e, this.requestSubject = t, this.received = 0, this.token = Us.next(), n && (this.ctx = new Error());
|
|
24139
24148
|
}
|
|
24140
24149
|
}
|
|
@@ -24143,11 +24152,11 @@ class tM extends Y_ {
|
|
|
24143
24152
|
maxWait: 1e3
|
|
24144
24153
|
}) {
|
|
24145
24154
|
super(t, n);
|
|
24146
|
-
|
|
24147
|
-
|
|
24148
|
-
|
|
24149
|
-
|
|
24150
|
-
|
|
24155
|
+
O(this, "callback");
|
|
24156
|
+
O(this, "done");
|
|
24157
|
+
O(this, "timer");
|
|
24158
|
+
O(this, "max");
|
|
24159
|
+
O(this, "opts");
|
|
24151
24160
|
if (this.opts = i, typeof this.opts.callback != "function")
|
|
24152
24161
|
throw new Error("callback is required");
|
|
24153
24162
|
this.callback = this.opts.callback, this.max = typeof i.maxMessages == "number" && i.maxMessages > 0 ? i.maxMessages : -1, this.done = ir(), this.done.then(() => {
|
|
@@ -24172,8 +24181,8 @@ class K_ extends Y_ {
|
|
|
24172
24181
|
timeout: 1e3
|
|
24173
24182
|
}, a = !0) {
|
|
24174
24183
|
super(t, n, a);
|
|
24175
|
-
|
|
24176
|
-
|
|
24184
|
+
O(this, "deferred");
|
|
24185
|
+
O(this, "timer");
|
|
24177
24186
|
this.deferred = ir(), this.timer = Aa(i.timeout, a);
|
|
24178
24187
|
}
|
|
24179
24188
|
resolver(t, n) {
|
|
@@ -24194,11 +24203,11 @@ function nM(r) {
|
|
|
24194
24203
|
}
|
|
24195
24204
|
class Yo {
|
|
24196
24205
|
constructor(e, t) {
|
|
24197
|
-
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
|
|
24201
|
-
|
|
24206
|
+
O(this, "nc");
|
|
24207
|
+
O(this, "opts");
|
|
24208
|
+
O(this, "prefix");
|
|
24209
|
+
O(this, "timeout");
|
|
24210
|
+
O(this, "jc");
|
|
24202
24211
|
this.nc = e, this.opts = nM(t), this._parseOpts(), this.prefix = this.opts.apiPrefix, this.timeout = this.opts.timeout, this.jc = zn();
|
|
24203
24212
|
}
|
|
24204
24213
|
getOptions() {
|
|
@@ -24252,13 +24261,13 @@ class Yo {
|
|
|
24252
24261
|
}
|
|
24253
24262
|
class yo {
|
|
24254
24263
|
constructor(e, t, n, i) {
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24260
|
-
|
|
24261
|
-
|
|
24264
|
+
O(this, "err");
|
|
24265
|
+
O(this, "offset");
|
|
24266
|
+
O(this, "pageInfo");
|
|
24267
|
+
O(this, "subject");
|
|
24268
|
+
O(this, "jsm");
|
|
24269
|
+
O(this, "filter");
|
|
24270
|
+
O(this, "payload");
|
|
24262
24271
|
if (!e)
|
|
24263
24272
|
throw new Error("subject is required");
|
|
24264
24273
|
this.subject = e, this.jsm = n, this.offset = 0, this.pageInfo = {}, this.filter = t, this.payload = i || {};
|
|
@@ -24324,9 +24333,9 @@ var It;
|
|
|
24324
24333
|
})(It || (It = {}));
|
|
24325
24334
|
class iM {
|
|
24326
24335
|
constructor(e) {
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24336
|
+
O(this, "server");
|
|
24337
|
+
O(this, "features");
|
|
24338
|
+
O(this, "disabled");
|
|
24330
24339
|
this.features = /* @__PURE__ */ new Map(), this.disabled = [], this.update(e);
|
|
24331
24340
|
}
|
|
24332
24341
|
resetDisabled() {
|
|
@@ -24383,8 +24392,8 @@ class Ip extends Yo {
|
|
|
24383
24392
|
try {
|
|
24384
24393
|
sl("name", f);
|
|
24385
24394
|
} catch (g) {
|
|
24386
|
-
const m = g.message,
|
|
24387
|
-
throw
|
|
24395
|
+
const m = g.message, b = m.indexOf("cannot contain");
|
|
24396
|
+
throw b !== -1 ? new Error(`consumer 'name' ${m.substring(b)}`) : g;
|
|
24388
24397
|
}
|
|
24389
24398
|
let h, d = "";
|
|
24390
24399
|
if (Array.isArray(t.filter_subjects)) {
|
|
@@ -24439,9 +24448,9 @@ function ia(r, e, t = !1) {
|
|
|
24439
24448
|
class sM extends Lr {
|
|
24440
24449
|
constructor(t, n, i) {
|
|
24441
24450
|
super();
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24451
|
+
O(this, "sub");
|
|
24452
|
+
O(this, "adapter");
|
|
24453
|
+
O(this, "subIterDone");
|
|
24445
24454
|
ia(i.adapter, "adapter", !0), this.adapter = i.adapter, i.callback && ia(i.callback, "callback"), this.noIterator = typeof i.callback == "function", i.ingestionFilterFn && (ia(i.ingestionFilterFn, "ingestionFilterFn"), this.ingestionFilterFn = i.ingestionFilterFn), i.protocolFilterFn && (ia(i.protocolFilterFn, "protocolFilterFn"), this.protocolFilterFn = i.protocolFilterFn), i.dispatchedFn && (ia(i.dispatchedFn, "dispatchedFn"), this.dispatchedFn = i.dispatchedFn), i.cleanupFn && ia(i.cleanupFn, "cleanupFn");
|
|
24446
24455
|
let a = (d, y) => {
|
|
24447
24456
|
this.callback(d, y);
|
|
@@ -24449,15 +24458,15 @@ class sM extends Lr {
|
|
|
24449
24458
|
if (i.callback) {
|
|
24450
24459
|
const d = i.callback;
|
|
24451
24460
|
a = (y, g) => {
|
|
24452
|
-
const [m,
|
|
24461
|
+
const [m, b] = this.adapter(y, g);
|
|
24453
24462
|
if (m) {
|
|
24454
24463
|
d(m, null);
|
|
24455
24464
|
return;
|
|
24456
24465
|
}
|
|
24457
|
-
const { ingest: A } = this.ingestionFilterFn ? this.ingestionFilterFn(
|
|
24466
|
+
const { ingest: A } = this.ingestionFilterFn ? this.ingestionFilterFn(b, this) : {
|
|
24458
24467
|
ingest: !0
|
|
24459
24468
|
};
|
|
24460
|
-
A && (!this.protocolFilterFn || this.protocolFilterFn(
|
|
24469
|
+
A && (!this.protocolFilterFn || this.protocolFilterFn(b)) && (d(m, b), this.dispatchedFn && b && this.dispatchedFn(b));
|
|
24461
24470
|
};
|
|
24462
24471
|
}
|
|
24463
24472
|
const { max: u, queue: c, timeout: f } = i, h = {
|
|
@@ -24720,16 +24729,16 @@ function xM(r) {
|
|
|
24720
24729
|
}
|
|
24721
24730
|
class Oo {
|
|
24722
24731
|
constructor(e, t = !1) {
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
|
|
24729
|
-
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24732
|
+
O(this, "src");
|
|
24733
|
+
O(this, "listen");
|
|
24734
|
+
O(this, "hostname");
|
|
24735
|
+
O(this, "port");
|
|
24736
|
+
O(this, "didConnect");
|
|
24737
|
+
O(this, "reconnects");
|
|
24738
|
+
O(this, "lastConnect");
|
|
24739
|
+
O(this, "gossiped");
|
|
24740
|
+
O(this, "tlsName");
|
|
24741
|
+
O(this, "resolves");
|
|
24733
24742
|
this.src = e, this.tlsName = "";
|
|
24734
24743
|
const n = xM(e);
|
|
24735
24744
|
this.listen = n.listen, this.hostname = n.hostname, this.port = n.port, this.didConnect = !1, this.reconnects = 0, this.lastConnect = 0, this.gossiped = t;
|
|
@@ -24762,11 +24771,11 @@ class Oo {
|
|
|
24762
24771
|
}
|
|
24763
24772
|
class SM {
|
|
24764
24773
|
constructor(e = [], t = {}) {
|
|
24765
|
-
|
|
24766
|
-
|
|
24767
|
-
|
|
24768
|
-
|
|
24769
|
-
|
|
24774
|
+
O(this, "firstSelect");
|
|
24775
|
+
O(this, "servers");
|
|
24776
|
+
O(this, "currentServer");
|
|
24777
|
+
O(this, "tlsName");
|
|
24778
|
+
O(this, "randomize");
|
|
24770
24779
|
this.firstSelect = !0, this.servers = [], this.tlsName = "", this.randomize = t.randomize || !1;
|
|
24771
24780
|
const n = wh();
|
|
24772
24781
|
e && (e.forEach((i) => {
|
|
@@ -24841,8 +24850,8 @@ class SM {
|
|
|
24841
24850
|
}
|
|
24842
24851
|
class EM {
|
|
24843
24852
|
constructor() {
|
|
24844
|
-
|
|
24845
|
-
|
|
24853
|
+
O(this, "baseInbox");
|
|
24854
|
+
O(this, "reqs");
|
|
24846
24855
|
this.reqs = /* @__PURE__ */ new Map();
|
|
24847
24856
|
}
|
|
24848
24857
|
size() {
|
|
@@ -24900,11 +24909,11 @@ class EM {
|
|
|
24900
24909
|
}
|
|
24901
24910
|
class OM {
|
|
24902
24911
|
constructor(e, t, n) {
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
|
|
24906
|
-
|
|
24907
|
-
|
|
24912
|
+
O(this, "ph");
|
|
24913
|
+
O(this, "interval");
|
|
24914
|
+
O(this, "maxOut");
|
|
24915
|
+
O(this, "timer");
|
|
24916
|
+
O(this, "pendings");
|
|
24908
24917
|
this.ph = e, this.interval = t, this.maxOut = n, this.pendings = [];
|
|
24909
24918
|
}
|
|
24910
24919
|
start() {
|
|
@@ -24950,8 +24959,8 @@ function Yu(r, e, t = 0) {
|
|
|
24950
24959
|
}
|
|
24951
24960
|
class xh {
|
|
24952
24961
|
constructor(e) {
|
|
24953
|
-
|
|
24954
|
-
|
|
24962
|
+
O(this, "_buf");
|
|
24963
|
+
O(this, "_off");
|
|
24955
24964
|
if (this._off = 0, e == null) {
|
|
24956
24965
|
this._buf = new Uint8Array(0);
|
|
24957
24966
|
return;
|
|
@@ -25058,14 +25067,14 @@ function C0() {
|
|
|
25058
25067
|
const kM = 48;
|
|
25059
25068
|
class R0 {
|
|
25060
25069
|
constructor(e) {
|
|
25061
|
-
|
|
25062
|
-
|
|
25063
|
-
|
|
25064
|
-
|
|
25065
|
-
|
|
25066
|
-
|
|
25067
|
-
|
|
25068
|
-
|
|
25070
|
+
O(this, "dispatcher");
|
|
25071
|
+
O(this, "state");
|
|
25072
|
+
O(this, "as");
|
|
25073
|
+
O(this, "drop");
|
|
25074
|
+
O(this, "hdr");
|
|
25075
|
+
O(this, "ma");
|
|
25076
|
+
O(this, "argBuf");
|
|
25077
|
+
O(this, "msgBuf");
|
|
25069
25078
|
this.dispatcher = e, this.state = _e.OP_START, this.as = 0, this.drop = 0, this.hdr = 0;
|
|
25070
25079
|
}
|
|
25071
25080
|
parse(e) {
|
|
@@ -25625,7 +25634,7 @@ var xe;
|
|
|
25625
25634
|
9344,
|
|
25626
25635
|
11139
|
|
25627
25636
|
]);
|
|
25628
|
-
function
|
|
25637
|
+
function b(_, I) {
|
|
25629
25638
|
return _ << I | _ >>> 32 - I;
|
|
25630
25639
|
}
|
|
25631
25640
|
function A(_, I) {
|
|
@@ -25636,12 +25645,12 @@ var xe;
|
|
|
25636
25645
|
var k = _[I] << 24 | _[I + 1] << 16 | _[I + 2] << 8 | _[I + 3], C = _[I + 4] << 24 | _[I + 5] << 16 | _[I + 6] << 8 | _[I + 7];
|
|
25637
25646
|
return new e(k, C);
|
|
25638
25647
|
}
|
|
25639
|
-
function
|
|
25648
|
+
function w(_, I, k) {
|
|
25640
25649
|
var C;
|
|
25641
25650
|
for (C = 0; C < 4; C++)
|
|
25642
25651
|
_[I + C] = k & 255, k >>>= 8;
|
|
25643
25652
|
}
|
|
25644
|
-
function
|
|
25653
|
+
function E(_, I, k) {
|
|
25645
25654
|
_[I] = k.hi >> 24 & 255, _[I + 1] = k.hi >> 16 & 255, _[I + 2] = k.hi >> 8 & 255, _[I + 3] = k.hi & 255, _[I + 4] = k.lo >> 24 & 255, _[I + 5] = k.lo >> 16 & 255, _[I + 6] = k.lo >> 8 & 255, _[I + 7] = k.lo & 255;
|
|
25646
25655
|
}
|
|
25647
25656
|
function P(_, I, k, C, F) {
|
|
@@ -25663,7 +25672,7 @@ var xe;
|
|
|
25663
25672
|
for (re = 0; re < 20; re++) {
|
|
25664
25673
|
for (De = 0; De < 4; De++) {
|
|
25665
25674
|
for (mt = 0; mt < 4; mt++) J[mt] = ne[(5 * De + 4 * mt) % 16];
|
|
25666
|
-
for (J[1] ^=
|
|
25675
|
+
for (J[1] ^= b(J[0] + J[3] | 0, 7), J[2] ^= b(J[1] + J[0] | 0, 9), J[3] ^= b(J[2] + J[1] | 0, 13), J[0] ^= b(J[3] + J[2] | 0, 18), mt = 0; mt < 4; mt++) U[4 * De + (De + mt) % 4] = J[mt];
|
|
25667
25676
|
}
|
|
25668
25677
|
for (mt = 0; mt < 16; mt++) ne[mt] = U[mt];
|
|
25669
25678
|
}
|
|
@@ -25672,9 +25681,9 @@ var xe;
|
|
|
25672
25681
|
for (re = 0; re < 4; re++)
|
|
25673
25682
|
ne[5 * re] = ne[5 * re] - A(C, 4 * re) | 0, ne[6 + re] = ne[6 + re] - A(I, 4 * re) | 0;
|
|
25674
25683
|
for (re = 0; re < 4; re++)
|
|
25675
|
-
|
|
25684
|
+
w(_, 4 * re, ne[5 * re]), w(_, 16 + 4 * re, ne[6 + re]);
|
|
25676
25685
|
} else
|
|
25677
|
-
for (re = 0; re < 16; re++)
|
|
25686
|
+
for (re = 0; re < 16; re++) w(_, 4 * re, ne[re] + he[re] | 0);
|
|
25678
25687
|
}
|
|
25679
25688
|
function te(_, I, k, C) {
|
|
25680
25689
|
return V(_, I, k, C, !1), 0;
|
|
@@ -26029,7 +26038,7 @@ var xe;
|
|
|
26029
26038
|
U[J] = be(U[J], C[J]), C[J] = U[J];
|
|
26030
26039
|
De += 128, k -= 128;
|
|
26031
26040
|
}
|
|
26032
|
-
for (J = 0; J < 8; J++)
|
|
26041
|
+
for (J = 0; J < 8; J++) E(_, 8 * J, C[J]);
|
|
26033
26042
|
return k;
|
|
26034
26043
|
}
|
|
26035
26044
|
var W = new Uint8Array([
|
|
@@ -26103,7 +26112,7 @@ var xe;
|
|
|
26103
26112
|
for (U = 0; U < 64; U++) C[U] = W[U];
|
|
26104
26113
|
for (Yt(C, I, k), k %= 128, U = 0; U < 256; U++) F[U] = 0;
|
|
26105
26114
|
for (U = 0; U < k; U++) F[U] = I[ne - k + U];
|
|
26106
|
-
for (F[k] = 128, k = 256 - 128 * (k < 112 ? 1 : 0), F[k - 9] = 0,
|
|
26115
|
+
for (F[k] = 128, k = 256 - 128 * (k < 112 ? 1 : 0), F[k - 9] = 0, E(F, k - 8, new e(ne / 536870912 | 0, ne << 3)), Yt(C, F, k), U = 0; U < 64; U++) _[U] = C[U];
|
|
26107
26116
|
return 0;
|
|
26108
26117
|
}
|
|
26109
26118
|
function Ve(_, I) {
|
|
@@ -26735,9 +26744,9 @@ class N0 {
|
|
|
26735
26744
|
class Vt extends Error {
|
|
26736
26745
|
constructor(t, n) {
|
|
26737
26746
|
super(t);
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26747
|
+
O(this, "name");
|
|
26748
|
+
O(this, "code");
|
|
26749
|
+
O(this, "chainedError");
|
|
26741
26750
|
this.name = "NKeysError", this.code = t, this.chainedError = n;
|
|
26742
26751
|
}
|
|
26743
26752
|
}
|
|
@@ -26868,7 +26877,7 @@ class en {
|
|
|
26868
26877
|
}
|
|
26869
26878
|
class rx {
|
|
26870
26879
|
constructor(e) {
|
|
26871
|
-
|
|
26880
|
+
O(this, "seed");
|
|
26872
26881
|
this.seed = e;
|
|
26873
26882
|
}
|
|
26874
26883
|
getRawSeed() {
|
|
@@ -26916,7 +26925,7 @@ function al(r) {
|
|
|
26916
26925
|
}
|
|
26917
26926
|
class FM {
|
|
26918
26927
|
constructor(e) {
|
|
26919
|
-
|
|
26928
|
+
O(this, "publicKey");
|
|
26920
26929
|
this.publicKey = e;
|
|
26921
26930
|
}
|
|
26922
26931
|
getPublicKey() {
|
|
@@ -27114,22 +27123,22 @@ const ZM = 1024 * 32, XM = /^INFO\s+([^\r\n]+)\r\n/i, e2 = xo(`PONG\r
|
|
|
27114
27123
|
`);
|
|
27115
27124
|
class t2 {
|
|
27116
27125
|
constructor(e, t, n) {
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27126
|
+
O(this, "echo");
|
|
27127
|
+
O(this, "no_responders");
|
|
27128
|
+
O(this, "protocol");
|
|
27129
|
+
O(this, "verbose");
|
|
27130
|
+
O(this, "pedantic");
|
|
27131
|
+
O(this, "jwt");
|
|
27132
|
+
O(this, "nkey");
|
|
27133
|
+
O(this, "sig");
|
|
27134
|
+
O(this, "user");
|
|
27135
|
+
O(this, "pass");
|
|
27136
|
+
O(this, "auth_token");
|
|
27137
|
+
O(this, "tls_required");
|
|
27138
|
+
O(this, "name");
|
|
27139
|
+
O(this, "lang");
|
|
27140
|
+
O(this, "version");
|
|
27141
|
+
O(this, "headers");
|
|
27133
27142
|
this.protocol = 1, this.version = e.version, this.lang = e.lang, this.echo = t.noEcho ? !1 : void 0, this.verbose = t.verbose, this.pedantic = t.pedantic, this.tls_required = t.tls ? !0 : void 0, this.name = t.name;
|
|
27134
27143
|
const i = (t && typeof t.authenticator == "function" ? t.authenticator(n) : {}) || {};
|
|
27135
27144
|
il(this, i);
|
|
@@ -27139,18 +27148,18 @@ class sx extends Lr {
|
|
|
27139
27148
|
constructor(t, n, i = {}) {
|
|
27140
27149
|
var u;
|
|
27141
27150
|
super();
|
|
27142
|
-
|
|
27143
|
-
|
|
27144
|
-
|
|
27145
|
-
|
|
27146
|
-
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
|
|
27151
|
-
|
|
27152
|
-
|
|
27153
|
-
|
|
27151
|
+
O(this, "sid");
|
|
27152
|
+
O(this, "queue");
|
|
27153
|
+
O(this, "draining");
|
|
27154
|
+
O(this, "max");
|
|
27155
|
+
O(this, "subject");
|
|
27156
|
+
O(this, "drained");
|
|
27157
|
+
O(this, "protocol");
|
|
27158
|
+
O(this, "timer");
|
|
27159
|
+
O(this, "info");
|
|
27160
|
+
O(this, "cleanupFn");
|
|
27161
|
+
O(this, "closed");
|
|
27162
|
+
O(this, "requestSubject");
|
|
27154
27163
|
il(this, i), this.protocol = t, this.subject = n, this.draining = !1, this.noIterator = typeof i.callback == "function", this.closed = ir();
|
|
27155
27164
|
const a = !((u = t.options) != null && u.noAsyncTraces);
|
|
27156
27165
|
i.timeout && (this.timer = Aa(i.timeout, a), this.timer.then(() => {
|
|
@@ -27223,9 +27232,9 @@ class sx extends Lr {
|
|
|
27223
27232
|
}
|
|
27224
27233
|
class r2 {
|
|
27225
27234
|
constructor() {
|
|
27226
|
-
|
|
27227
|
-
|
|
27228
|
-
|
|
27235
|
+
O(this, "mux");
|
|
27236
|
+
O(this, "subs");
|
|
27237
|
+
O(this, "sidCounter");
|
|
27229
27238
|
this.sidCounter = 0, this.mux = null, this.subs = /* @__PURE__ */ new Map();
|
|
27230
27239
|
}
|
|
27231
27240
|
size() {
|
|
@@ -27269,36 +27278,36 @@ class r2 {
|
|
|
27269
27278
|
}
|
|
27270
27279
|
class qc {
|
|
27271
27280
|
constructor(e, t) {
|
|
27272
|
-
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
|
|
27276
|
-
|
|
27277
|
-
|
|
27278
|
-
|
|
27279
|
-
|
|
27280
|
-
|
|
27281
|
-
|
|
27282
|
-
|
|
27283
|
-
|
|
27284
|
-
|
|
27285
|
-
|
|
27286
|
-
|
|
27287
|
-
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
|
|
27294
|
-
|
|
27295
|
-
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27281
|
+
O(this, "connected");
|
|
27282
|
+
O(this, "connectedOnce");
|
|
27283
|
+
O(this, "infoReceived");
|
|
27284
|
+
O(this, "info");
|
|
27285
|
+
O(this, "muxSubscriptions");
|
|
27286
|
+
O(this, "options");
|
|
27287
|
+
O(this, "outbound");
|
|
27288
|
+
O(this, "pongs");
|
|
27289
|
+
O(this, "subscriptions");
|
|
27290
|
+
O(this, "transport");
|
|
27291
|
+
O(this, "noMorePublishing");
|
|
27292
|
+
O(this, "connectError");
|
|
27293
|
+
O(this, "publisher");
|
|
27294
|
+
O(this, "_closed");
|
|
27295
|
+
O(this, "closed");
|
|
27296
|
+
O(this, "listeners");
|
|
27297
|
+
O(this, "heartbeats");
|
|
27298
|
+
O(this, "parser");
|
|
27299
|
+
O(this, "outMsgs");
|
|
27300
|
+
O(this, "inMsgs");
|
|
27301
|
+
O(this, "outBytes");
|
|
27302
|
+
O(this, "inBytes");
|
|
27303
|
+
O(this, "pendingLimit");
|
|
27304
|
+
O(this, "lastError");
|
|
27305
|
+
O(this, "abortReconnect");
|
|
27306
|
+
O(this, "whyClosed");
|
|
27307
|
+
O(this, "servers");
|
|
27308
|
+
O(this, "server");
|
|
27309
|
+
O(this, "features");
|
|
27310
|
+
O(this, "connectPromise");
|
|
27302
27311
|
this._closed = !1, this.connected = !1, this.connectedOnce = !1, this.infoReceived = !1, this.noMorePublishing = !1, this.abortReconnect = !1, this.listeners = [], this.pendingLimit = ZM, this.outMsgs = 0, this.inMsgs = 0, this.outBytes = 0, this.inBytes = 0, this.options = e, this.publisher = t, this.subscriptions = new r2(), this.muxSubscriptions = new EM(), this.outbound = new Ia(), this.pongs = [], this.whyClosed = "", this.pendingLimit = e.pendingLimit || this.pendingLimit, this.features = new iM({
|
|
27303
27312
|
major: 0,
|
|
27304
27313
|
minor: 0,
|
|
@@ -27668,7 +27677,7 @@ class qc {
|
|
|
27668
27677
|
const n2 = "$SRV";
|
|
27669
27678
|
class M0 {
|
|
27670
27679
|
constructor(e) {
|
|
27671
|
-
|
|
27680
|
+
O(this, "msg");
|
|
27672
27681
|
this.msg = e;
|
|
27673
27682
|
}
|
|
27674
27683
|
get data() {
|
|
@@ -27702,9 +27711,9 @@ class M0 {
|
|
|
27702
27711
|
}
|
|
27703
27712
|
class Mo {
|
|
27704
27713
|
constructor(e, t = "", n = "") {
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27714
|
+
O(this, "subject");
|
|
27715
|
+
O(this, "queue");
|
|
27716
|
+
O(this, "srv");
|
|
27708
27717
|
t !== "" && s2("service group", t);
|
|
27709
27718
|
let i = "";
|
|
27710
27719
|
if (e instanceof Ko)
|
|
@@ -27767,14 +27776,14 @@ class Ko {
|
|
|
27767
27776
|
name: "",
|
|
27768
27777
|
version: ""
|
|
27769
27778
|
}) {
|
|
27770
|
-
|
|
27771
|
-
|
|
27772
|
-
|
|
27773
|
-
|
|
27774
|
-
|
|
27775
|
-
|
|
27776
|
-
|
|
27777
|
-
|
|
27779
|
+
O(this, "nc");
|
|
27780
|
+
O(this, "_id");
|
|
27781
|
+
O(this, "config");
|
|
27782
|
+
O(this, "handlers");
|
|
27783
|
+
O(this, "internal");
|
|
27784
|
+
O(this, "_stopped");
|
|
27785
|
+
O(this, "_done");
|
|
27786
|
+
O(this, "started");
|
|
27778
27787
|
this.nc = e, this.config = Object.assign({}, t), this.config.queue || (this.config.queue = "q"), mo("name", this.config.name), mo("queue", this.config.queue), Rs(this.config.version), this._id = Us.next(), this.internal = [], this._done = ir(), this._stopped = !1, this.handlers = [], this.started = (/* @__PURE__ */ new Date()).toISOString(), this.reset(), this.nc.closed().then(() => {
|
|
27779
27788
|
this.close().catch();
|
|
27780
27789
|
}).catch((n) => {
|
|
@@ -27952,16 +27961,16 @@ class Ko {
|
|
|
27952
27961
|
}
|
|
27953
27962
|
class a2 {
|
|
27954
27963
|
constructor(e, t, n = "") {
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
27959
|
-
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
|
|
27964
|
+
O(this, "name");
|
|
27965
|
+
O(this, "subject");
|
|
27966
|
+
O(this, "average_processing_time");
|
|
27967
|
+
O(this, "num_requests");
|
|
27968
|
+
O(this, "processing_time");
|
|
27969
|
+
O(this, "num_errors");
|
|
27970
|
+
O(this, "last_error");
|
|
27971
|
+
O(this, "data");
|
|
27972
|
+
O(this, "metadata");
|
|
27973
|
+
O(this, "queue");
|
|
27965
27974
|
this.name = e, this.subject = t, this.average_processing_time = 0, this.num_errors = 0, this.num_requests = 0, this.processing_time = 0, this.queue = n;
|
|
27966
27975
|
}
|
|
27967
27976
|
reset(e) {
|
|
@@ -27999,9 +28008,9 @@ class o2 {
|
|
|
27999
28008
|
strategy: ni.JitterTimer,
|
|
28000
28009
|
maxWait: 2e3
|
|
28001
28010
|
}, n) {
|
|
28002
|
-
|
|
28003
|
-
|
|
28004
|
-
|
|
28011
|
+
O(this, "nc");
|
|
28012
|
+
O(this, "prefix");
|
|
28013
|
+
O(this, "opts");
|
|
28005
28014
|
this.nc = e, this.prefix = n, this.opts = t;
|
|
28006
28015
|
}
|
|
28007
28016
|
ping(e = "", t = "") {
|
|
@@ -28101,19 +28110,19 @@ var ci;
|
|
|
28101
28110
|
})(ci || (ci = {}));
|
|
28102
28111
|
class Lo {
|
|
28103
28112
|
constructor(e, t, n) {
|
|
28104
|
-
|
|
28105
|
-
|
|
28106
|
-
|
|
28107
|
-
|
|
28108
|
-
|
|
28109
|
-
|
|
28110
|
-
|
|
28111
|
-
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28115
|
-
|
|
28116
|
-
|
|
28113
|
+
O(this, "js");
|
|
28114
|
+
O(this, "jsm");
|
|
28115
|
+
O(this, "stream");
|
|
28116
|
+
O(this, "bucket");
|
|
28117
|
+
O(this, "direct");
|
|
28118
|
+
O(this, "codec");
|
|
28119
|
+
O(this, "prefix");
|
|
28120
|
+
O(this, "editPrefix");
|
|
28121
|
+
O(this, "useJsPrefix");
|
|
28122
|
+
O(this, "_prefixLen");
|
|
28123
|
+
O(this, "validateKey", h2);
|
|
28124
|
+
O(this, "validateSearchKey", d2);
|
|
28125
|
+
O(this, "hasWildcards", p2);
|
|
28117
28126
|
dc(e), this.js = t, this.jsm = n, this.bucket = e, this.prefix = L0, this.editPrefix = "", this.useJsPrefix = !1, this._prefixLen = 0;
|
|
28118
28127
|
}
|
|
28119
28128
|
static async create(e, t, n = {}) {
|
|
@@ -28142,10 +28151,10 @@ class Lo {
|
|
|
28142
28151
|
y.name.startsWith(En) || (y.name = `${En}${y.name}`), n.mirror = y, n.mirror_direct = !0;
|
|
28143
28152
|
} else if (e.sources) {
|
|
28144
28153
|
const y = e.sources.map((g) => {
|
|
28145
|
-
const m = Object.assign({}, g),
|
|
28146
|
-
return m.name.startsWith(En) || (m.name = `${En}${m.name}`), !g.external &&
|
|
28154
|
+
const m = Object.assign({}, g), b = m.name.startsWith(En) ? m.name.substring(En.length) : m.name;
|
|
28155
|
+
return m.name.startsWith(En) || (m.name = `${En}${m.name}`), !g.external && b !== this.bucket && (m.subject_transforms = [
|
|
28147
28156
|
{
|
|
28148
|
-
src: `$KV.${
|
|
28157
|
+
src: `$KV.${b}.>`,
|
|
28149
28158
|
dest: `$KV.${this.bucket}.>`
|
|
28150
28159
|
}
|
|
28151
28160
|
]), m;
|
|
@@ -28432,22 +28441,22 @@ class Lo {
|
|
|
28432
28441
|
const u = e.ignoreDeletes === !0;
|
|
28433
28442
|
let c = e.initializedFn, f = 0;
|
|
28434
28443
|
const h = this._buildCC(t, a, i), d = h.filter_subject, y = ss(h);
|
|
28435
|
-
this.canSetWatcherName() && y.consumerName(Us.next()), y.bindStream(this.stream), e.resumeFromRevision && e.resumeFromRevision > 0 && y.startSequence(e.resumeFromRevision), y.orderedConsumer(), y.callback((m,
|
|
28444
|
+
this.canSetWatcherName() && y.consumerName(Us.next()), y.bindStream(this.stream), e.resumeFromRevision && e.resumeFromRevision > 0 && y.startSequence(e.resumeFromRevision), y.orderedConsumer(), y.callback((m, b) => {
|
|
28436
28445
|
if (m) {
|
|
28437
28446
|
n.stop(m);
|
|
28438
28447
|
return;
|
|
28439
28448
|
}
|
|
28440
|
-
if (
|
|
28441
|
-
const A = this.jmToEntry(
|
|
28449
|
+
if (b) {
|
|
28450
|
+
const A = this.jmToEntry(b);
|
|
28442
28451
|
if (u && A.operation === "DEL")
|
|
28443
28452
|
return;
|
|
28444
|
-
n.push(A), n.received++, c && (f > 0 && n.received >= f ||
|
|
28453
|
+
n.push(A), n.received++, c && (f > 0 && n.received >= f || b.info.pending === 0) && (n.push(c), c = void 0);
|
|
28445
28454
|
}
|
|
28446
28455
|
});
|
|
28447
28456
|
const g = await this.js.subscribe(d, y);
|
|
28448
28457
|
if (c) {
|
|
28449
|
-
const { info: { last: m } } = g,
|
|
28450
|
-
if (
|
|
28458
|
+
const { info: { last: m } } = g, b = m.num_pending + m.delivered.consumer_seq;
|
|
28459
|
+
if (b === 0 || n.received >= b)
|
|
28451
28460
|
try {
|
|
28452
28461
|
c();
|
|
28453
28462
|
} catch (A) {
|
|
@@ -28456,7 +28465,7 @@ class Lo {
|
|
|
28456
28465
|
c = void 0;
|
|
28457
28466
|
}
|
|
28458
28467
|
else
|
|
28459
|
-
f =
|
|
28468
|
+
f = b;
|
|
28460
28469
|
}
|
|
28461
28470
|
return n._data = g, n.iterClosed.then(() => {
|
|
28462
28471
|
g.unsubscribe();
|
|
@@ -28502,8 +28511,8 @@ class Lo {
|
|
|
28502
28511
|
}
|
|
28503
28512
|
class ox {
|
|
28504
28513
|
constructor(e, t = "") {
|
|
28505
|
-
|
|
28506
|
-
|
|
28514
|
+
O(this, "si");
|
|
28515
|
+
O(this, "cluster");
|
|
28507
28516
|
this.si = e, this.cluster = t;
|
|
28508
28517
|
}
|
|
28509
28518
|
get bucket() {
|
|
@@ -28580,8 +28589,8 @@ function y2(r) {
|
|
|
28580
28589
|
}
|
|
28581
28590
|
class bd {
|
|
28582
28591
|
constructor(e) {
|
|
28583
|
-
|
|
28584
|
-
|
|
28592
|
+
O(this, "si");
|
|
28593
|
+
O(this, "backingStore");
|
|
28585
28594
|
this.si = e, this.backingStore = "JetStream";
|
|
28586
28595
|
}
|
|
28587
28596
|
get bucket() {
|
|
@@ -28649,23 +28658,23 @@ function jo(r, e = 5e3) {
|
|
|
28649
28658
|
class Eh extends Lr {
|
|
28650
28659
|
constructor(t, n, i = !1) {
|
|
28651
28660
|
super();
|
|
28652
|
-
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
|
|
28659
|
-
|
|
28660
|
-
|
|
28661
|
-
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
|
|
28665
|
-
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
|
|
28661
|
+
O(this, "consumer");
|
|
28662
|
+
O(this, "opts");
|
|
28663
|
+
O(this, "sub");
|
|
28664
|
+
O(this, "monitor");
|
|
28665
|
+
O(this, "pending");
|
|
28666
|
+
O(this, "inbox");
|
|
28667
|
+
O(this, "refilling");
|
|
28668
|
+
O(this, "pong");
|
|
28669
|
+
O(this, "callback");
|
|
28670
|
+
O(this, "timeout");
|
|
28671
|
+
O(this, "cleanupHandler");
|
|
28672
|
+
O(this, "listeners");
|
|
28673
|
+
O(this, "statusIterator");
|
|
28674
|
+
O(this, "forOrderedConsumer");
|
|
28675
|
+
O(this, "resetHandler");
|
|
28676
|
+
O(this, "abortOnMissingResource");
|
|
28677
|
+
O(this, "bind");
|
|
28669
28678
|
this.consumer = t;
|
|
28670
28679
|
const a = n;
|
|
28671
28680
|
this.opts = this.parseOptions(n, i), this.callback = a.callback || null, this.noIterator = typeof this.callback == "function", this.monitor = null, this.pong = null, this.pending = {
|
|
@@ -28686,7 +28695,7 @@ class Eh extends Lr {
|
|
|
28686
28695
|
const { sub: c } = this;
|
|
28687
28696
|
c && c.unsubscribe(), this.sub = this.consumer.api.nc.subscribe(this.inbox, {
|
|
28688
28697
|
callback: (f, h) => {
|
|
28689
|
-
var y, g, m,
|
|
28698
|
+
var y, g, m, b;
|
|
28690
28699
|
if (f) {
|
|
28691
28700
|
this.stop(f);
|
|
28692
28701
|
return;
|
|
@@ -28694,11 +28703,11 @@ class Eh extends Lr {
|
|
|
28694
28703
|
if ((y = this.monitor) == null || y.work(), h.subject === this.inbox) {
|
|
28695
28704
|
if (hd(h))
|
|
28696
28705
|
return;
|
|
28697
|
-
const A = (g = h.headers) == null ? void 0 : g.code, x = ((
|
|
28698
|
-
if (
|
|
28699
|
-
this.pending.msgs -=
|
|
28700
|
-
msgsLeft:
|
|
28701
|
-
bytesLeft:
|
|
28706
|
+
const A = (g = h.headers) == null ? void 0 : g.code, x = ((b = (m = h.headers) == null ? void 0 : m.description) == null ? void 0 : b.toLowerCase()) || "unknown", { msgsLeft: w, bytesLeft: E } = this.parseDiscard(h.headers);
|
|
28707
|
+
if (w > 0 || E > 0)
|
|
28708
|
+
this.pending.msgs -= w, this.pending.bytes -= E, this.pending.requests--, this.notify(_a.Discard, {
|
|
28709
|
+
msgsLeft: w,
|
|
28710
|
+
bytesLeft: E
|
|
28702
28711
|
});
|
|
28703
28712
|
else if (A === 400) {
|
|
28704
28713
|
this.stop(new ke(x, `${A}`));
|
|
@@ -28883,8 +28892,8 @@ class Eh extends Lr {
|
|
|
28883
28892
|
class _2 extends Lr {
|
|
28884
28893
|
constructor() {
|
|
28885
28894
|
super();
|
|
28886
|
-
|
|
28887
|
-
|
|
28895
|
+
O(this, "src");
|
|
28896
|
+
O(this, "listeners");
|
|
28888
28897
|
this.listeners = [];
|
|
28889
28898
|
}
|
|
28890
28899
|
setSource(t) {
|
|
@@ -28924,10 +28933,10 @@ class _2 extends Lr {
|
|
|
28924
28933
|
}
|
|
28925
28934
|
class ux {
|
|
28926
28935
|
constructor(e, t) {
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28936
|
+
O(this, "api");
|
|
28937
|
+
O(this, "_info");
|
|
28938
|
+
O(this, "stream");
|
|
28939
|
+
O(this, "name");
|
|
28931
28940
|
this.api = e, this._info = t, this.stream = t.stream_name, this.name = t.name;
|
|
28932
28941
|
}
|
|
28933
28942
|
consume(e = {
|
|
@@ -28991,19 +29000,19 @@ class ux {
|
|
|
28991
29000
|
}
|
|
28992
29001
|
class x2 {
|
|
28993
29002
|
constructor(e, t, n = {}) {
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29003
|
+
O(this, "api");
|
|
29004
|
+
O(this, "consumerOpts");
|
|
29005
|
+
O(this, "consumer");
|
|
29006
|
+
O(this, "opts");
|
|
29007
|
+
O(this, "cursor");
|
|
29008
|
+
O(this, "stream");
|
|
29009
|
+
O(this, "namePrefix");
|
|
29010
|
+
O(this, "serial");
|
|
29011
|
+
O(this, "currentConsumer");
|
|
29012
|
+
O(this, "userCallback");
|
|
29013
|
+
O(this, "iter");
|
|
29014
|
+
O(this, "type");
|
|
29015
|
+
O(this, "startSeq");
|
|
29007
29016
|
this.api = e, this.stream = t, this.cursor = {
|
|
29008
29017
|
stream_seq: 1,
|
|
29009
29018
|
deliver_seq: 0
|
|
@@ -29140,8 +29149,8 @@ class x2 {
|
|
|
29140
29149
|
}
|
|
29141
29150
|
class cx {
|
|
29142
29151
|
constructor(e) {
|
|
29143
|
-
|
|
29144
|
-
|
|
29152
|
+
O(this, "api");
|
|
29153
|
+
O(this, "notified");
|
|
29145
29154
|
this.api = e, this.notified = !1;
|
|
29146
29155
|
}
|
|
29147
29156
|
checkVersion() {
|
|
@@ -29159,8 +29168,8 @@ class cx {
|
|
|
29159
29168
|
}
|
|
29160
29169
|
class ol {
|
|
29161
29170
|
constructor(e, t) {
|
|
29162
|
-
|
|
29163
|
-
|
|
29171
|
+
O(this, "api");
|
|
29172
|
+
O(this, "_info");
|
|
29164
29173
|
this.api = e, this._info = t;
|
|
29165
29174
|
}
|
|
29166
29175
|
get name() {
|
|
@@ -29266,8 +29275,8 @@ class Cp extends Yo {
|
|
|
29266
29275
|
y++, d.offset = c * y;
|
|
29267
29276
|
const m = await this._request(n, d);
|
|
29268
29277
|
u = m.total, h.push(m);
|
|
29269
|
-
const
|
|
29270
|
-
if (f +=
|
|
29278
|
+
const b = Object.getOwnPropertyNames(m.state.subjects).length;
|
|
29279
|
+
if (f += b, b < c)
|
|
29271
29280
|
break;
|
|
29272
29281
|
}
|
|
29273
29282
|
let g = {};
|
|
@@ -29372,22 +29381,22 @@ class S2 extends Yo {
|
|
|
29372
29381
|
return (async () => {
|
|
29373
29382
|
var y, g, m;
|
|
29374
29383
|
let f = !1, h = !1, d;
|
|
29375
|
-
for await (const
|
|
29384
|
+
for await (const b of c) {
|
|
29376
29385
|
if (!f) {
|
|
29377
29386
|
f = !0;
|
|
29378
|
-
const A = ((y =
|
|
29387
|
+
const A = ((y = b.headers) == null ? void 0 : y.code) || 0;
|
|
29379
29388
|
if (A !== 0 && A < 200 || A > 299) {
|
|
29380
|
-
d = (g =
|
|
29389
|
+
d = (g = b.headers) == null ? void 0 : g.description.toLowerCase();
|
|
29381
29390
|
break;
|
|
29382
29391
|
}
|
|
29383
|
-
if (((m =
|
|
29392
|
+
if (((m = b.headers) == null ? void 0 : m.get("Nats-Num-Pending")) === "") {
|
|
29384
29393
|
h = !0;
|
|
29385
29394
|
break;
|
|
29386
29395
|
}
|
|
29387
29396
|
}
|
|
29388
|
-
if (
|
|
29397
|
+
if (b.data.length === 0)
|
|
29389
29398
|
break;
|
|
29390
|
-
u.push(new wd(
|
|
29399
|
+
u.push(new wd(b));
|
|
29391
29400
|
}
|
|
29392
29401
|
u.push(() => {
|
|
29393
29402
|
if (h)
|
|
@@ -29401,8 +29410,8 @@ class S2 extends Yo {
|
|
|
29401
29410
|
}
|
|
29402
29411
|
class wd {
|
|
29403
29412
|
constructor(e) {
|
|
29404
|
-
|
|
29405
|
-
|
|
29413
|
+
O(this, "data");
|
|
29414
|
+
O(this, "header");
|
|
29406
29415
|
if (!e.headers)
|
|
29407
29416
|
throw new Error("headers expected");
|
|
29408
29417
|
this.data = e.data, this.header = e.headers;
|
|
@@ -29430,13 +29439,13 @@ class wd {
|
|
|
29430
29439
|
return pn.decode(this.data);
|
|
29431
29440
|
}
|
|
29432
29441
|
}
|
|
29433
|
-
|
|
29442
|
+
O(wd, "jc");
|
|
29434
29443
|
class E2 extends Yo {
|
|
29435
29444
|
constructor(t, n) {
|
|
29436
29445
|
super(t, n);
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29446
|
+
O(this, "streams");
|
|
29447
|
+
O(this, "consumers");
|
|
29448
|
+
O(this, "direct");
|
|
29440
29449
|
this.streams = new Cp(t, n), this.consumers = new Ip(t, n), this.direct = new S2(t, n);
|
|
29441
29450
|
}
|
|
29442
29451
|
async getAccountInfo() {
|
|
@@ -29466,8 +29475,8 @@ class E2 extends Yo {
|
|
|
29466
29475
|
}
|
|
29467
29476
|
class lx {
|
|
29468
29477
|
constructor(e) {
|
|
29469
|
-
|
|
29470
|
-
|
|
29478
|
+
O(this, "_header");
|
|
29479
|
+
O(this, "smr");
|
|
29471
29480
|
this.smr = e;
|
|
29472
29481
|
}
|
|
29473
29482
|
get subject() {
|
|
@@ -29507,10 +29516,10 @@ class lx {
|
|
|
29507
29516
|
return pn.decode(this.data);
|
|
29508
29517
|
}
|
|
29509
29518
|
}
|
|
29510
|
-
|
|
29519
|
+
O(lx, "jc");
|
|
29511
29520
|
class O2 {
|
|
29512
29521
|
constructor(e) {
|
|
29513
|
-
|
|
29522
|
+
O(this, "api");
|
|
29514
29523
|
this.api = e;
|
|
29515
29524
|
}
|
|
29516
29525
|
get(e) {
|
|
@@ -29519,8 +29528,8 @@ class O2 {
|
|
|
29519
29528
|
}
|
|
29520
29529
|
class Oh {
|
|
29521
29530
|
constructor(e) {
|
|
29522
|
-
|
|
29523
|
-
|
|
29531
|
+
O(this, "info");
|
|
29532
|
+
O(this, "hdrs");
|
|
29524
29533
|
this.info = e;
|
|
29525
29534
|
}
|
|
29526
29535
|
get name() {
|
|
@@ -29589,10 +29598,10 @@ function T2() {
|
|
|
29589
29598
|
}
|
|
29590
29599
|
class To {
|
|
29591
29600
|
constructor(e, t, n) {
|
|
29592
|
-
|
|
29593
|
-
|
|
29594
|
-
|
|
29595
|
-
|
|
29601
|
+
O(this, "jsm");
|
|
29602
|
+
O(this, "js");
|
|
29603
|
+
O(this, "stream");
|
|
29604
|
+
O(this, "name");
|
|
29596
29605
|
this.name = e, this.jsm = t, this.js = n;
|
|
29597
29606
|
}
|
|
29598
29607
|
_checkNotEmpty(e) {
|
|
@@ -29664,12 +29673,12 @@ class To {
|
|
|
29664
29673
|
const d = await this.info(e.name), { name: y, error: g } = this._checkNotEmpty(e.name);
|
|
29665
29674
|
if (g)
|
|
29666
29675
|
return Promise.reject(g);
|
|
29667
|
-
const m = Us.next(),
|
|
29676
|
+
const m = Us.next(), b = this._chunkSubject(m), A = this._metaSubject(y), x = Object.assign({
|
|
29668
29677
|
bucket: this.name,
|
|
29669
29678
|
nuid: m,
|
|
29670
29679
|
size: 0,
|
|
29671
29680
|
chunks: 0
|
|
29672
|
-
}, U0(e)),
|
|
29681
|
+
}, U0(e)), w = ir(), E = [], P = new Ia();
|
|
29673
29682
|
try {
|
|
29674
29683
|
const L = t ? t.getReader() : null, V = new I0();
|
|
29675
29684
|
for (; ; ) {
|
|
@@ -29680,11 +29689,11 @@ class To {
|
|
|
29680
29689
|
if (te) {
|
|
29681
29690
|
if (P.size() > 0) {
|
|
29682
29691
|
const Le = P.drain();
|
|
29683
|
-
V.update(Le), x.chunks++, x.size += Le.length,
|
|
29692
|
+
V.update(Le), x.chunks++, x.size += Le.length, E.push(this.js.publish(b, Le, {
|
|
29684
29693
|
timeout: a
|
|
29685
29694
|
}));
|
|
29686
29695
|
}
|
|
29687
|
-
await Promise.all(
|
|
29696
|
+
await Promise.all(E), E.length = 0, x.mtime = (/* @__PURE__ */ new Date()).toISOString();
|
|
29688
29697
|
const ue = V.digest("base64"), fe = ue.length % 3, qe = fe > 0 ? "=".repeat(fe) : "";
|
|
29689
29698
|
x.digest = `${j0}${ue}${qe}`, x.deleted = !1;
|
|
29690
29699
|
const ge = Di();
|
|
@@ -29700,24 +29709,24 @@ class To {
|
|
|
29700
29709
|
});
|
|
29701
29710
|
} catch {
|
|
29702
29711
|
}
|
|
29703
|
-
|
|
29712
|
+
w.resolve(new Oh(x));
|
|
29704
29713
|
break;
|
|
29705
29714
|
}
|
|
29706
29715
|
if (Y)
|
|
29707
29716
|
for (P.fill(Y); P.size() > h; ) {
|
|
29708
29717
|
x.chunks++, x.size += h;
|
|
29709
29718
|
const ue = P.drain(e.options.max_chunk_size);
|
|
29710
|
-
V.update(ue),
|
|
29719
|
+
V.update(ue), E.push(this.js.publish(b, ue, {
|
|
29711
29720
|
timeout: a
|
|
29712
29721
|
}));
|
|
29713
29722
|
}
|
|
29714
29723
|
}
|
|
29715
29724
|
} catch (L) {
|
|
29716
29725
|
await this.jsm.streams.purge(this.stream, {
|
|
29717
|
-
filter:
|
|
29718
|
-
}),
|
|
29726
|
+
filter: b
|
|
29727
|
+
}), w.reject(L);
|
|
29719
29728
|
}
|
|
29720
|
-
return
|
|
29729
|
+
return w;
|
|
29721
29730
|
}
|
|
29722
29731
|
putBlob(e, t, n) {
|
|
29723
29732
|
function i(a) {
|
|
@@ -29775,8 +29784,8 @@ class To {
|
|
|
29775
29784
|
return (async () => {
|
|
29776
29785
|
for await (const d of h)
|
|
29777
29786
|
if (d.data.length > 0 && (c.update(d.data), a.enqueue(d.data)), d.info.pending === 0) {
|
|
29778
|
-
const y = c.digest("base64"), g = y.length % 3, m = g > 0 ? "=".repeat(g) : "",
|
|
29779
|
-
|
|
29787
|
+
const y = c.digest("base64"), g = y.length % 3, m = g > 0 ? "=".repeat(g) : "", b = `${j0}${y}${m}`;
|
|
29788
|
+
b !== t.digest ? a.error(new Error(`received a corrupt object, digests do not match received: ${t.digest} calculated ${b}`)) : a.close(), h.unsubscribe();
|
|
29780
29789
|
}
|
|
29781
29790
|
})().then(() => {
|
|
29782
29791
|
n.resolve();
|
|
@@ -29937,7 +29946,7 @@ class To {
|
|
|
29937
29946
|
}
|
|
29938
29947
|
class A2 {
|
|
29939
29948
|
constructor(e) {
|
|
29940
|
-
|
|
29949
|
+
O(this, "js");
|
|
29941
29950
|
this.js = e;
|
|
29942
29951
|
}
|
|
29943
29952
|
kv(e, t = {}) {
|
|
@@ -29955,10 +29964,10 @@ class A2 {
|
|
|
29955
29964
|
class Rp extends Yo {
|
|
29956
29965
|
constructor(t, n) {
|
|
29957
29966
|
super(t, n);
|
|
29958
|
-
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29967
|
+
O(this, "consumers");
|
|
29968
|
+
O(this, "streams");
|
|
29969
|
+
O(this, "consumerAPI");
|
|
29970
|
+
O(this, "streamAPI");
|
|
29962
29971
|
this.consumerAPI = new Ip(t, n), this.streamAPI = new Cp(t, n), this.consumers = new cx(this.consumerAPI), this.streams = new O2(this.streamAPI);
|
|
29963
29972
|
}
|
|
29964
29973
|
jetstreamManager(t) {
|
|
@@ -30023,9 +30032,9 @@ class Rp extends Yo {
|
|
|
30023
30032
|
let h = null;
|
|
30024
30033
|
const d = {};
|
|
30025
30034
|
if (d.batch = i.batch || 1, f) {
|
|
30026
|
-
const
|
|
30027
|
-
if (!
|
|
30028
|
-
throw new Error(`max_bytes is only supported on servers ${
|
|
30035
|
+
const E = this.nc.features.get(It.JS_PULL_MAX_BYTES);
|
|
30036
|
+
if (!E.ok)
|
|
30037
|
+
throw new Error(`max_bytes is only supported on servers ${E.min} or better`);
|
|
30029
30038
|
d.max_bytes = f;
|
|
30030
30039
|
}
|
|
30031
30040
|
d.no_wait = i.no_wait || !1, d.no_wait && d.expires && (d.expires = 0);
|
|
@@ -30034,32 +30043,32 @@ class Rp extends Yo {
|
|
|
30034
30043
|
throw new Error("expires or no_wait is required");
|
|
30035
30044
|
const g = i.idle_heartbeat || 0;
|
|
30036
30045
|
g && (d.idle_heartbeat = or(g), i.delay_heartbeat === !0 && (d.idle_heartbeat = or(g * 4)));
|
|
30037
|
-
const m = new Lr(),
|
|
30046
|
+
const m = new Lr(), b = d.batch;
|
|
30038
30047
|
let A = 0;
|
|
30039
|
-
m.protocolFilterFn = (
|
|
30040
|
-
if (
|
|
30041
|
-
if (u && (c +=
|
|
30048
|
+
m.protocolFilterFn = (E, P = !1) => hd(E.msg) ? (h == null || h.work(), !1) : !0, m.dispatchedFn = (E) => {
|
|
30049
|
+
if (E) {
|
|
30050
|
+
if (u && (c += E.data.length), A++, a && E.info.pending === 0)
|
|
30042
30051
|
return;
|
|
30043
|
-
(m.getPending() === 1 &&
|
|
30052
|
+
(m.getPending() === 1 && E.info.pending === 0 || b === A || f > 0 && c >= f) && m.stop();
|
|
30044
30053
|
}
|
|
30045
30054
|
};
|
|
30046
|
-
const x = ki(this.nc.options.inboxPrefix),
|
|
30055
|
+
const x = ki(this.nc.options.inboxPrefix), w = this.nc.subscribe(x, {
|
|
30047
30056
|
max: i.batch,
|
|
30048
|
-
callback: (
|
|
30049
|
-
|
|
30057
|
+
callback: (E, P) => {
|
|
30058
|
+
E === null && (E = wa(P)), E !== null ? (a && (a.cancel(), a = null), LF(E) ? m.stop(hx(E) === null ? void 0 : E) : m.stop(E)) : (h == null || h.work(), m.received++, m.push(jo(P, this.timeout)));
|
|
30050
30059
|
}
|
|
30051
30060
|
});
|
|
30052
30061
|
return y && (a = Aa(y), a.catch(() => {
|
|
30053
|
-
|
|
30062
|
+
w.isClosed() || (w.drain().catch(() => {
|
|
30054
30063
|
}), a = null), h && h.cancel();
|
|
30055
30064
|
})), (async () => {
|
|
30056
30065
|
try {
|
|
30057
|
-
g && (h = new kp(g, (
|
|
30058
|
-
m.err = new ke(`${$n.IdleHeartbeatMissed}: ${
|
|
30066
|
+
g && (h = new kp(g, (E) => (m.push(() => {
|
|
30067
|
+
m.err = new ke(`${$n.IdleHeartbeatMissed}: ${E}`, pe.JetStreamIdleHeartBeat);
|
|
30059
30068
|
}), !0)));
|
|
30060
30069
|
} catch {
|
|
30061
30070
|
}
|
|
30062
|
-
await
|
|
30071
|
+
await w.closed, a !== null && (a.cancel(), a = null), h && h.cancel(), m.stop();
|
|
30063
30072
|
})().catch(), this.nc.publish(`${this.prefix}.CONSUMER.MSG.NEXT.${t}.${n}`, this.jc.encode(d), {
|
|
30064
30073
|
reply: x
|
|
30065
30074
|
}), m;
|
|
@@ -30189,11 +30198,11 @@ class Rp extends Yo {
|
|
|
30189
30198
|
}
|
|
30190
30199
|
class Np {
|
|
30191
30200
|
constructor(e) {
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30196
|
-
|
|
30201
|
+
O(this, "options");
|
|
30202
|
+
O(this, "protocol");
|
|
30203
|
+
O(this, "draining");
|
|
30204
|
+
O(this, "listeners");
|
|
30205
|
+
O(this, "_services");
|
|
30197
30206
|
this.draining = !1, this.options = YM(e), this.listeners = [];
|
|
30198
30207
|
}
|
|
30199
30208
|
static connect(e = {}) {
|
|
@@ -30275,12 +30284,12 @@ class Np {
|
|
|
30275
30284
|
const f = i ? new Error().stack : null;
|
|
30276
30285
|
let h = typeof n.maxMessages == "number" && n.maxMessages > 0 ? n.maxMessages : -1;
|
|
30277
30286
|
const d = this.subscribe(ki(this.options.inboxPrefix), {
|
|
30278
|
-
callback: (
|
|
30279
|
-
var x,
|
|
30280
|
-
if (((x = A == null ? void 0 : A.data) == null ? void 0 : x.length) === 0 && ((
|
|
30281
|
-
f && (
|
|
30287
|
+
callback: (b, A) => {
|
|
30288
|
+
var x, w;
|
|
30289
|
+
if (((x = A == null ? void 0 : A.data) == null ? void 0 : x.length) === 0 && ((w = A == null ? void 0 : A.headers) == null ? void 0 : w.status) === pe.NoResponders && (b = ke.errorForCode(pe.NoResponders)), b) {
|
|
30290
|
+
f && (b.stack += `
|
|
30282
30291
|
|
|
30283
|
-
${f}`), y(
|
|
30292
|
+
${f}`), y(b);
|
|
30284
30293
|
return;
|
|
30285
30294
|
}
|
|
30286
30295
|
c(null, A), n.strategy === ni.Count && (h--, h === 0 && y()), n.strategy === ni.JitterTimer && (m(), g = setTimeout(() => {
|
|
@@ -30290,12 +30299,12 @@ ${f}`), y(w);
|
|
|
30290
30299
|
});
|
|
30291
30300
|
d.requestSubject = e, d.closed.then(() => {
|
|
30292
30301
|
u();
|
|
30293
|
-
}).catch((
|
|
30294
|
-
a.stop(
|
|
30302
|
+
}).catch((b) => {
|
|
30303
|
+
a.stop(b);
|
|
30295
30304
|
});
|
|
30296
|
-
const y = (
|
|
30297
|
-
|
|
30298
|
-
throw
|
|
30305
|
+
const y = (b) => {
|
|
30306
|
+
b && a.push(() => {
|
|
30307
|
+
throw b;
|
|
30299
30308
|
}), m(), d.drain().then(() => {
|
|
30300
30309
|
u();
|
|
30301
30310
|
}).catch((A) => {
|
|
@@ -30304,15 +30313,15 @@ ${f}`), y(w);
|
|
|
30304
30313
|
};
|
|
30305
30314
|
a.iterClosed.then(() => {
|
|
30306
30315
|
m(), d == null || d.unsubscribe();
|
|
30307
|
-
}).catch((
|
|
30316
|
+
}).catch((b) => {
|
|
30308
30317
|
m(), d == null || d.unsubscribe();
|
|
30309
30318
|
});
|
|
30310
30319
|
try {
|
|
30311
30320
|
this.publish(e, t, {
|
|
30312
30321
|
reply: d.getSubject()
|
|
30313
30322
|
});
|
|
30314
|
-
} catch (
|
|
30315
|
-
y(
|
|
30323
|
+
} catch (b) {
|
|
30324
|
+
y(b);
|
|
30316
30325
|
}
|
|
30317
30326
|
let g = setTimeout(() => {
|
|
30318
30327
|
y();
|
|
@@ -30463,7 +30472,7 @@ ${c.stack}`), u.reject(h)) : u.resolve(d));
|
|
|
30463
30472
|
}
|
|
30464
30473
|
class k2 {
|
|
30465
30474
|
constructor(e) {
|
|
30466
|
-
|
|
30475
|
+
O(this, "nc");
|
|
30467
30476
|
this.nc = e;
|
|
30468
30477
|
}
|
|
30469
30478
|
add(e) {
|
|
@@ -30479,9 +30488,9 @@ class k2 {
|
|
|
30479
30488
|
}
|
|
30480
30489
|
class I2 {
|
|
30481
30490
|
constructor(e, t, n) {
|
|
30482
|
-
|
|
30483
|
-
|
|
30484
|
-
|
|
30491
|
+
O(this, "bucket");
|
|
30492
|
+
O(this, "sm");
|
|
30493
|
+
O(this, "prefixLen");
|
|
30485
30494
|
this.bucket = e, this.prefixLen = t, this.sm = n;
|
|
30486
30495
|
}
|
|
30487
30496
|
get key() {
|
|
@@ -30515,9 +30524,9 @@ class I2 {
|
|
|
30515
30524
|
}
|
|
30516
30525
|
class P2 {
|
|
30517
30526
|
constructor(e, t, n) {
|
|
30518
|
-
|
|
30519
|
-
|
|
30520
|
-
|
|
30527
|
+
O(this, "bucket");
|
|
30528
|
+
O(this, "key");
|
|
30529
|
+
O(this, "sm");
|
|
30521
30530
|
this.bucket = e, this.key = t, this.sm = n;
|
|
30522
30531
|
}
|
|
30523
30532
|
get value() {
|
|
@@ -30551,8 +30560,8 @@ class P2 {
|
|
|
30551
30560
|
class fx extends sM {
|
|
30552
30561
|
constructor(t, n, i) {
|
|
30553
30562
|
super(t.nc, n, i);
|
|
30554
|
-
|
|
30555
|
-
|
|
30563
|
+
O(this, "js");
|
|
30564
|
+
O(this, "monitor");
|
|
30556
30565
|
this.js = t, this.monitor = null, this.sub.closed.then(() => {
|
|
30557
30566
|
this.monitor && this.monitor.cancel();
|
|
30558
30567
|
});
|
|
@@ -30602,8 +30611,8 @@ class fx extends sM {
|
|
|
30602
30611
|
else {
|
|
30603
30612
|
if (!this.js.nc.protocol.connected)
|
|
30604
30613
|
return !1;
|
|
30605
|
-
const
|
|
30606
|
-
return this._resetOrderedConsumer(
|
|
30614
|
+
const b = ((g = (y = this.info) == null ? void 0 : y.ordered_consumer_sequence) == null ? void 0 : g.stream_seq) || 0;
|
|
30615
|
+
return this._resetOrderedConsumer(b + 1), (m = this.monitor) == null || m.restart(), !1;
|
|
30607
30616
|
}
|
|
30608
30617
|
return !a.noIterator;
|
|
30609
30618
|
};
|
|
@@ -30716,10 +30725,10 @@ function M2(r) {
|
|
|
30716
30725
|
}
|
|
30717
30726
|
class L2 {
|
|
30718
30727
|
constructor(e, t) {
|
|
30719
|
-
|
|
30720
|
-
|
|
30721
|
-
|
|
30722
|
-
|
|
30728
|
+
O(this, "msg");
|
|
30729
|
+
O(this, "di");
|
|
30730
|
+
O(this, "didAck");
|
|
30731
|
+
O(this, "timeout");
|
|
30723
30732
|
this.msg = e, this.didAck = !1, this.timeout = t;
|
|
30724
30733
|
}
|
|
30725
30734
|
get subject() {
|
|
@@ -30818,19 +30827,19 @@ class L2 {
|
|
|
30818
30827
|
const j2 = "1.29.2", q2 = "nats.ws";
|
|
30819
30828
|
class U2 {
|
|
30820
30829
|
constructor() {
|
|
30821
|
-
|
|
30822
|
-
|
|
30823
|
-
|
|
30824
|
-
|
|
30825
|
-
|
|
30826
|
-
|
|
30827
|
-
|
|
30828
|
-
|
|
30829
|
-
|
|
30830
|
-
|
|
30831
|
-
|
|
30832
|
-
|
|
30833
|
-
|
|
30830
|
+
O(this, "version");
|
|
30831
|
+
O(this, "lang");
|
|
30832
|
+
O(this, "closeError");
|
|
30833
|
+
O(this, "connected");
|
|
30834
|
+
O(this, "done");
|
|
30835
|
+
O(this, "socket");
|
|
30836
|
+
O(this, "options");
|
|
30837
|
+
O(this, "socketClosed");
|
|
30838
|
+
O(this, "encrypted");
|
|
30839
|
+
O(this, "peeked");
|
|
30840
|
+
O(this, "yields");
|
|
30841
|
+
O(this, "signal");
|
|
30842
|
+
O(this, "closedNotification");
|
|
30834
30843
|
this.version = j2, this.lang = q2, this.connected = !1, this.done = !1, this.socketClosed = !1, this.encrypted = !1, this.peeked = !1, this.yields = [], this.signal = ir(), this.closedNotification = ir();
|
|
30835
30844
|
}
|
|
30836
30845
|
async connect(e, t) {
|
|
@@ -31073,10 +31082,10 @@ const B0 = (r, e) => {
|
|
|
31073
31082
|
console.info(
|
|
31074
31083
|
`Consuming events from stream ${e} filtering by subject ${g}`
|
|
31075
31084
|
);
|
|
31076
|
-
const
|
|
31085
|
+
const b = await (await y.jetstream().consumers.get(e, {
|
|
31077
31086
|
deliver_policy: i,
|
|
31078
31087
|
filterSubjects: g
|
|
31079
|
-
})).consume({ max_messages: 1e3 }), A = W2(
|
|
31088
|
+
})).consume({ max_messages: 1e3 }), A = W2(b);
|
|
31080
31089
|
if (h.current = A, typeof a == "function")
|
|
31081
31090
|
for await (const x of A)
|
|
31082
31091
|
a(x);
|