react-semaphor 0.0.169 → 0.0.171
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/chunks/{dashboard-plus-ofr6-fMK.js → dashboard-plus-d-vEzLOy.js} +1 -1
- package/dist/chunks/{dashboard-plus-2JMdvDam.js → dashboard-plus-itQfUsL8.js} +1 -1
- package/dist/chunks/{index-btyKu4LY.js → index-I8_5WKph.js} +530 -523
- package/dist/chunks/{index-Y7Wye5jY.js → index-d4Wt3XC_.js} +28 -28
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
|
@@ -84,14 +84,14 @@ function D6() {
|
|
|
84
84
|
Ye.unshift("Warning: " + K), Function.prototype.apply.call(console[O], console, Ye);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
var E = !1, C = !1, P = !1,
|
|
88
|
-
|
|
87
|
+
var E = !1, C = !1, P = !1, T = !1, M = !1, D;
|
|
88
|
+
D = Symbol.for("react.module.reference");
|
|
89
89
|
function N(O) {
|
|
90
|
-
return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u ||
|
|
90
|
+
return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || T || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
|
|
91
91
|
// types supported by any Flight configuration anywhere since
|
|
92
92
|
// we don't know which Flight build this will end up being used
|
|
93
93
|
// with.
|
|
94
|
-
O.$$typeof ===
|
|
94
|
+
O.$$typeof === D || O.getModuleId !== void 0));
|
|
95
95
|
}
|
|
96
96
|
function F(O, K, le) {
|
|
97
97
|
var Re = O.displayName;
|
|
@@ -1000,7 +1000,7 @@ function a4(e) {
|
|
|
1000
1000
|
return Q6.test(e);
|
|
1001
1001
|
}
|
|
1002
1002
|
function l4() {
|
|
1003
|
-
const e = en("colors"), t = en("spacing"), n = en("blur"), r = en("brightness"), o = en("borderColor"), i = en("borderRadius"), s = en("borderSpacing"), a = en("borderWidth"), l = en("contrast"), c = en("grayscale"), u = en("hueRotate"), f = en("invert"), g = en("gap"), p = en("gradientColorStops"), m = en("gradientColorStopPositions"), b = en("inset"), y = en("margin"), x = en("opacity"), w = en("padding"), _ = en("saturate"), E = en("scale"), C = en("sepia"), P = en("skew"),
|
|
1003
|
+
const e = en("colors"), t = en("spacing"), n = en("blur"), r = en("brightness"), o = en("borderColor"), i = en("borderRadius"), s = en("borderSpacing"), a = en("borderWidth"), l = en("contrast"), c = en("grayscale"), u = en("hueRotate"), f = en("invert"), g = en("gap"), p = en("gradientColorStops"), m = en("gradientColorStopPositions"), b = en("inset"), y = en("margin"), x = en("opacity"), w = en("padding"), _ = en("saturate"), E = en("scale"), C = en("sepia"), P = en("skew"), T = en("space"), M = en("translate"), D = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", yt, t], B = () => [yt, t], q = () => ["", Ro, os], G = () => ["auto", wa, yt], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ee = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", yt], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [wa, rh], ne = () => [wa, yt];
|
|
1004
1004
|
return {
|
|
1005
1005
|
cacheSize: 500,
|
|
1006
1006
|
separator: ":",
|
|
@@ -1151,21 +1151,21 @@ function l4() {
|
|
|
1151
1151
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1152
1152
|
*/
|
|
1153
1153
|
overscroll: [{
|
|
1154
|
-
overscroll:
|
|
1154
|
+
overscroll: D()
|
|
1155
1155
|
}],
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Overscroll Behavior X
|
|
1158
1158
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1159
1159
|
*/
|
|
1160
1160
|
"overscroll-x": [{
|
|
1161
|
-
"overscroll-x":
|
|
1161
|
+
"overscroll-x": D()
|
|
1162
1162
|
}],
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Overscroll Behavior Y
|
|
1165
1165
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1166
1166
|
*/
|
|
1167
1167
|
"overscroll-y": [{
|
|
1168
|
-
"overscroll-y":
|
|
1168
|
+
"overscroll-y": D()
|
|
1169
1169
|
}],
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Position
|
|
@@ -1594,7 +1594,7 @@ function l4() {
|
|
|
1594
1594
|
* @see https://tailwindcss.com/docs/space
|
|
1595
1595
|
*/
|
|
1596
1596
|
"space-x": [{
|
|
1597
|
-
"space-x": [
|
|
1597
|
+
"space-x": [T]
|
|
1598
1598
|
}],
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Space Between X Reverse
|
|
@@ -1606,7 +1606,7 @@ function l4() {
|
|
|
1606
1606
|
* @see https://tailwindcss.com/docs/space
|
|
1607
1607
|
*/
|
|
1608
1608
|
"space-y": [{
|
|
1609
|
-
"space-y": [
|
|
1609
|
+
"space-y": [T]
|
|
1610
1610
|
}],
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Space Between Y Reverse
|
|
@@ -3105,10 +3105,10 @@ function m4() {
|
|
|
3105
3105
|
}
|
|
3106
3106
|
function r(_, E, C) {
|
|
3107
3107
|
{
|
|
3108
|
-
var P = t.ReactDebugCurrentFrame,
|
|
3109
|
-
|
|
3110
|
-
var M = C.map(function(
|
|
3111
|
-
return String(
|
|
3108
|
+
var P = t.ReactDebugCurrentFrame, T = P.getStackAddendum();
|
|
3109
|
+
T !== "" && (E += "%s", C = C.concat([T]));
|
|
3110
|
+
var M = C.map(function(D) {
|
|
3111
|
+
return String(D);
|
|
3112
3112
|
});
|
|
3113
3113
|
M.unshift("Warning: " + E), Function.prototype.apply.call(console[_], console, M);
|
|
3114
3114
|
}
|
|
@@ -3121,26 +3121,26 @@ function m4() {
|
|
|
3121
3121
|
u || e.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
3122
3122
|
var P = E();
|
|
3123
3123
|
if (!f) {
|
|
3124
|
-
var
|
|
3125
|
-
i(P,
|
|
3124
|
+
var T = E();
|
|
3125
|
+
i(P, T) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
|
|
3126
3126
|
}
|
|
3127
3127
|
var M = s({
|
|
3128
3128
|
inst: {
|
|
3129
3129
|
value: P,
|
|
3130
3130
|
getSnapshot: E
|
|
3131
3131
|
}
|
|
3132
|
-
}),
|
|
3132
|
+
}), D = M[0].inst, N = M[1];
|
|
3133
3133
|
return l(function() {
|
|
3134
|
-
|
|
3135
|
-
inst:
|
|
3134
|
+
D.value = P, D.getSnapshot = E, p(D) && N({
|
|
3135
|
+
inst: D
|
|
3136
3136
|
});
|
|
3137
3137
|
}, [_, P, E]), a(function() {
|
|
3138
|
-
p(
|
|
3139
|
-
inst:
|
|
3138
|
+
p(D) && N({
|
|
3139
|
+
inst: D
|
|
3140
3140
|
});
|
|
3141
3141
|
var F = function() {
|
|
3142
|
-
p(
|
|
3143
|
-
inst:
|
|
3142
|
+
p(D) && N({
|
|
3143
|
+
inst: D
|
|
3144
3144
|
});
|
|
3145
3145
|
};
|
|
3146
3146
|
return _(F);
|
|
@@ -3237,26 +3237,26 @@ function b4() {
|
|
|
3237
3237
|
value: null
|
|
3238
3238
|
}, b.current = y) : y = b.current;
|
|
3239
3239
|
var x = a(function() {
|
|
3240
|
-
var C = !1, P,
|
|
3240
|
+
var C = !1, P, T, M = function(B) {
|
|
3241
3241
|
if (!C) {
|
|
3242
3242
|
C = !0, P = B;
|
|
3243
3243
|
var q = p(B);
|
|
3244
3244
|
if (m !== void 0 && y.hasValue) {
|
|
3245
3245
|
var G = y.value;
|
|
3246
3246
|
if (m(G, q))
|
|
3247
|
-
return
|
|
3247
|
+
return T = G, G;
|
|
3248
3248
|
}
|
|
3249
|
-
return
|
|
3249
|
+
return T = q, q;
|
|
3250
3250
|
}
|
|
3251
|
-
var j = P, ee =
|
|
3251
|
+
var j = P, ee = T;
|
|
3252
3252
|
if (r(j, B))
|
|
3253
3253
|
return ee;
|
|
3254
3254
|
var Y = p(B);
|
|
3255
|
-
return m !== void 0 && m(ee, Y) ? ee : (P = B,
|
|
3256
|
-
},
|
|
3255
|
+
return m !== void 0 && m(ee, Y) ? ee : (P = B, T = Y, Y);
|
|
3256
|
+
}, D = g === void 0 ? null : g, N = function() {
|
|
3257
3257
|
return M(f());
|
|
3258
|
-
}, F =
|
|
3259
|
-
return M(
|
|
3258
|
+
}, F = D === null ? void 0 : function() {
|
|
3259
|
+
return M(D());
|
|
3260
3260
|
};
|
|
3261
3261
|
return [N, F];
|
|
3262
3262
|
}, [f, g, p, m]), w = x[0], _ = x[1], E = o(u, w, _);
|
|
@@ -3298,16 +3298,16 @@ function y4() {
|
|
|
3298
3298
|
function x(P) {
|
|
3299
3299
|
if (!w) {
|
|
3300
3300
|
if (w = !0, _ = P, P = g(P), p !== void 0 && b.hasValue) {
|
|
3301
|
-
var
|
|
3302
|
-
if (p(
|
|
3303
|
-
return E =
|
|
3301
|
+
var T = b.value;
|
|
3302
|
+
if (p(T, P))
|
|
3303
|
+
return E = T;
|
|
3304
3304
|
}
|
|
3305
3305
|
return E = P;
|
|
3306
3306
|
}
|
|
3307
|
-
if (
|
|
3308
|
-
return
|
|
3307
|
+
if (T = E, r(_, P))
|
|
3308
|
+
return T;
|
|
3309
3309
|
var M = g(P);
|
|
3310
|
-
return p !== void 0 && p(
|
|
3310
|
+
return p !== void 0 && p(T, M) ? T : (_ = P, E = M);
|
|
3311
3311
|
}
|
|
3312
3312
|
var w = !1, _, E, C = f === void 0 ? null : f;
|
|
3313
3313
|
return [function() {
|
|
@@ -4610,13 +4610,13 @@ var Sp = { exports: {} };
|
|
|
4610
4610
|
Sp.exports;
|
|
4611
4611
|
(function(e, t) {
|
|
4612
4612
|
(function() {
|
|
4613
|
-
var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", f = 1, g = 2, p = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, P = 64,
|
|
4614
|
-
["ary",
|
|
4613
|
+
var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", f = 1, g = 2, p = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, P = 64, T = 128, M = 256, D = 512, N = 30, F = "...", B = 800, q = 16, G = 1, j = 2, ee = 3, Y = 1 / 0, X = 9007199254740991, re = 17976931348623157e292, R = NaN, H = 4294967295, ne = H - 1, A = H >>> 1, ue = [
|
|
4614
|
+
["ary", T],
|
|
4615
4615
|
["bind", y],
|
|
4616
4616
|
["bindKey", x],
|
|
4617
4617
|
["curry", _],
|
|
4618
4618
|
["curryRight", E],
|
|
4619
|
-
["flip",
|
|
4619
|
+
["flip", D],
|
|
4620
4620
|
["partial", C],
|
|
4621
4621
|
["partialRight", P],
|
|
4622
4622
|
["rearg", M]
|
|
@@ -6252,7 +6252,7 @@ Sp.exports;
|
|
|
6252
6252
|
for (S = V ? S : v; ++S < v; ) {
|
|
6253
6253
|
L = h[S];
|
|
6254
6254
|
var U = Uf(L), te = U == "wrapper" ? tv(L) : n;
|
|
6255
|
-
te && iv(te[0]) && te[1] == (
|
|
6255
|
+
te && iv(te[0]) && te[1] == (T | _ | C | M) && !te[4].length && te[9] == 1 ? V = V[Uf(te[0])].apply(V, te[3]) : V = L.length == 1 && iv(L) ? V[U]() : V.thru(L);
|
|
6256
6256
|
}
|
|
6257
6257
|
return function() {
|
|
6258
6258
|
var ye = arguments, xe = ye[0];
|
|
@@ -6265,7 +6265,7 @@ Sp.exports;
|
|
|
6265
6265
|
});
|
|
6266
6266
|
}
|
|
6267
6267
|
function Bf(d, h, v, S, $, L, V, U, te, ye) {
|
|
6268
|
-
var xe = h &
|
|
6268
|
+
var xe = h & T, Ce = h & y, Fe = h & x, Ge = h & (_ | E), et = h & D, bt = Fe ? n : eu(d);
|
|
6269
6269
|
function tt() {
|
|
6270
6270
|
for (var Pt = arguments.length, Dt = de(Pt), Ir = Pt; Ir--; )
|
|
6271
6271
|
Dt[Ir] = arguments[Ir];
|
|
@@ -6737,7 +6737,7 @@ Sp.exports;
|
|
|
6737
6737
|
return h;
|
|
6738
6738
|
}
|
|
6739
6739
|
function a3(d, h) {
|
|
6740
|
-
var v = d[1], S = h[1], $ = v | S, L = $ < (y | x |
|
|
6740
|
+
var v = d[1], S = h[1], $ = v | S, L = $ < (y | x | T), V = S == T && v == _ || S == T && v == M && d[7].length <= h[8] || S == (T | M) && h[7].length <= h[8] && v == _;
|
|
6741
6741
|
if (!(L || V))
|
|
6742
6742
|
return d;
|
|
6743
6743
|
S & y && (d[2] = h[2], $ |= v & y ? 0 : w);
|
|
@@ -6746,7 +6746,7 @@ Sp.exports;
|
|
|
6746
6746
|
var te = d[3];
|
|
6747
6747
|
d[3] = te ? N_(te, U, h[4]) : U, d[4] = te ? Qi(d[3], u) : h[4];
|
|
6748
6748
|
}
|
|
6749
|
-
return U = h[5], U && (te = d[5], d[5] = te ? L_(te, U, h[6]) : U, d[6] = te ? Qi(d[5], u) : h[6]), U = h[7], U && (d[7] = U), S &
|
|
6749
|
+
return U = h[5], U && (te = d[5], d[5] = te ? L_(te, U, h[6]) : U, d[6] = te ? Qi(d[5], u) : h[6]), U = h[7], U && (d[7] = U), S & T && (d[8] = d[8] == null ? h[8] : Xn(d[8], h[8])), d[9] == null && (d[9] = h[9]), d[0] = h[0], d[1] = $, d;
|
|
6750
6750
|
}
|
|
6751
6751
|
function l3(d) {
|
|
6752
6752
|
var h = [];
|
|
@@ -7287,7 +7287,7 @@ Sp.exports;
|
|
|
7287
7287
|
};
|
|
7288
7288
|
}
|
|
7289
7289
|
function vS(d, h, v) {
|
|
7290
|
-
return h = v ? n : h, h = d && h == null ? d.length : h, wi(d,
|
|
7290
|
+
return h = v ? n : h, h = d && h == null ? d.length : h, wi(d, T, n, n, n, n, h);
|
|
7291
7291
|
}
|
|
7292
7292
|
function bS(d, h) {
|
|
7293
7293
|
var v;
|
|
@@ -7375,7 +7375,7 @@ Sp.exports;
|
|
|
7375
7375
|
return d_(d, uo(h) || 0, v);
|
|
7376
7376
|
});
|
|
7377
7377
|
function YL(d) {
|
|
7378
|
-
return wi(d,
|
|
7378
|
+
return wi(d, D);
|
|
7379
7379
|
}
|
|
7380
7380
|
function Qf(d, h) {
|
|
7381
7381
|
if (typeof d != "function" || h != null && typeof h != "function")
|
|
@@ -9556,11 +9556,11 @@ var Yo, CR, n$ = (CR = class extends Gd {
|
|
|
9556
9556
|
this.execute(this.state.variables);
|
|
9557
9557
|
}
|
|
9558
9558
|
async execute(t) {
|
|
9559
|
-
var o, i, s, a, l, c, u, f, g, p, m, b, y, x, w, _, E, C, P,
|
|
9559
|
+
var o, i, s, a, l, c, u, f, g, p, m, b, y, x, w, _, E, C, P, T;
|
|
9560
9560
|
const n = () => (je(this, Zl, e$({
|
|
9561
9561
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
9562
|
-
onFail: (M,
|
|
9563
|
-
St(this, Xo, fs).call(this, { type: "failed", failureCount: M, error:
|
|
9562
|
+
onFail: (M, D) => {
|
|
9563
|
+
St(this, Xo, fs).call(this, { type: "failed", failureCount: M, error: D });
|
|
9564
9564
|
},
|
|
9565
9565
|
onPause: () => {
|
|
9566
9566
|
St(this, Xo, fs).call(this, { type: "pause" });
|
|
@@ -9579,10 +9579,10 @@ var Yo, CR, n$ = (CR = class extends Gd {
|
|
|
9579
9579
|
t,
|
|
9580
9580
|
this
|
|
9581
9581
|
));
|
|
9582
|
-
const
|
|
9583
|
-
|
|
9582
|
+
const D = await ((a = (s = this.options).onMutate) == null ? void 0 : a.call(s, t));
|
|
9583
|
+
D !== this.state.context && St(this, Xo, fs).call(this, {
|
|
9584
9584
|
type: "pending",
|
|
9585
|
-
context:
|
|
9585
|
+
context: D,
|
|
9586
9586
|
variables: t
|
|
9587
9587
|
});
|
|
9588
9588
|
}
|
|
@@ -9621,7 +9621,7 @@ var Yo, CR, n$ = (CR = class extends Gd {
|
|
|
9621
9621
|
this.state.variables,
|
|
9622
9622
|
this.state.context,
|
|
9623
9623
|
this
|
|
9624
|
-
)), await ((
|
|
9624
|
+
)), await ((T = (P = this.options).onSettled) == null ? void 0 : T.call(
|
|
9625
9625
|
P,
|
|
9626
9626
|
void 0,
|
|
9627
9627
|
M,
|
|
@@ -9803,12 +9803,12 @@ function o9(e) {
|
|
|
9803
9803
|
meta: t.options.meta
|
|
9804
9804
|
};
|
|
9805
9805
|
u(P);
|
|
9806
|
-
const
|
|
9806
|
+
const T = await f(
|
|
9807
9807
|
P
|
|
9808
|
-
), { maxPages: M } = t.options,
|
|
9808
|
+
), { maxPages: M } = t.options, D = C ? Y4 : G4;
|
|
9809
9809
|
return {
|
|
9810
|
-
pages:
|
|
9811
|
-
pageParams:
|
|
9810
|
+
pages: D(_.pages, T, M),
|
|
9811
|
+
pageParams: D(_.pageParams, E, M)
|
|
9812
9812
|
};
|
|
9813
9813
|
};
|
|
9814
9814
|
let p;
|
|
@@ -10172,8 +10172,8 @@ var Tn, bs, ys, ec, tc, xs, nc, rc, PR, s9 = (PR = class {
|
|
|
10172
10172
|
const r = J(this, nn), o = this.options, i = J(this, cr), s = J(this, Da), a = J(this, oc), c = t !== r ? t.state : J(this, Ld), { state: u } = t;
|
|
10173
10173
|
let { error: f, errorUpdatedAt: g, fetchStatus: p, status: m } = u, b = !1, y;
|
|
10174
10174
|
if (n._optimisticResults) {
|
|
10175
|
-
const
|
|
10176
|
-
(M ||
|
|
10175
|
+
const T = this.hasListeners(), M = !T && pC(t, n), D = T && gC(t, r, n, o);
|
|
10176
|
+
(M || D) && (p = fg(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (m = "pending")), n._optimisticResults === "isRestoring" && (p = "idle");
|
|
10177
10177
|
}
|
|
10178
10178
|
if (n.select && typeof u.data < "u")
|
|
10179
10179
|
if (i && u.data === (s == null ? void 0 : s.data) && n.select === J(this, Fd))
|
|
@@ -10181,27 +10181,27 @@ var Tn, bs, ys, ec, tc, xs, nc, rc, PR, s9 = (PR = class {
|
|
|
10181
10181
|
else
|
|
10182
10182
|
try {
|
|
10183
10183
|
je(this, Fd, n.select), y = n.select(u.data), y = b0(i == null ? void 0 : i.data, y, n), je(this, ic, y), je(this, Qo, null);
|
|
10184
|
-
} catch (
|
|
10185
|
-
je(this, Qo,
|
|
10184
|
+
} catch (T) {
|
|
10185
|
+
je(this, Qo, T);
|
|
10186
10186
|
}
|
|
10187
10187
|
else
|
|
10188
10188
|
y = u.data;
|
|
10189
10189
|
if (typeof n.placeholderData < "u" && typeof y > "u" && m === "pending") {
|
|
10190
|
-
let
|
|
10190
|
+
let T;
|
|
10191
10191
|
if (i != null && i.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData))
|
|
10192
|
-
|
|
10193
|
-
else if (
|
|
10192
|
+
T = i.data;
|
|
10193
|
+
else if (T = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
10194
10194
|
(P = J(this, sc)) == null ? void 0 : P.state.data,
|
|
10195
10195
|
J(this, sc)
|
|
10196
|
-
) : n.placeholderData, n.select && typeof
|
|
10196
|
+
) : n.placeholderData, n.select && typeof T < "u")
|
|
10197
10197
|
try {
|
|
10198
|
-
|
|
10198
|
+
T = n.select(T), je(this, Qo, null);
|
|
10199
10199
|
} catch (M) {
|
|
10200
10200
|
je(this, Qo, M);
|
|
10201
10201
|
}
|
|
10202
|
-
typeof
|
|
10202
|
+
typeof T < "u" && (m = "success", y = b0(
|
|
10203
10203
|
i == null ? void 0 : i.data,
|
|
10204
|
-
|
|
10204
|
+
T,
|
|
10205
10205
|
n
|
|
10206
10206
|
), b = !0);
|
|
10207
10207
|
}
|
|
@@ -10510,35 +10510,35 @@ function P9({
|
|
|
10510
10510
|
}, [n, u]), _e(() => {
|
|
10511
10511
|
const C = Ts.cloneDeep(d0);
|
|
10512
10512
|
if (t) {
|
|
10513
|
-
const P = Ts.merge(C, t),
|
|
10514
|
-
w(
|
|
10513
|
+
const P = Ts.merge(C, t), T = mC(c, P);
|
|
10514
|
+
w(T), p(P);
|
|
10515
10515
|
} else {
|
|
10516
10516
|
const P = mC(c, C);
|
|
10517
10517
|
w(P), p(d0);
|
|
10518
10518
|
}
|
|
10519
10519
|
}, [c, t, p, w]), _e(() => {
|
|
10520
|
-
var
|
|
10520
|
+
var D;
|
|
10521
10521
|
if (!i || !i.dashboard)
|
|
10522
10522
|
return;
|
|
10523
|
-
const C = i.dashboard, P = nue(C.id),
|
|
10523
|
+
const C = i.dashboard, P = nue(C.id), T = JSON.parse(
|
|
10524
10524
|
localStorage.getItem(P) || "[]"
|
|
10525
|
-
), M =
|
|
10525
|
+
), M = T.find(
|
|
10526
10526
|
(N) => N.default === !0
|
|
10527
10527
|
);
|
|
10528
10528
|
if (M)
|
|
10529
10529
|
f(M.template), y(M.name), M.filterValues && b(M.filterValues);
|
|
10530
10530
|
else {
|
|
10531
10531
|
f(C);
|
|
10532
|
-
const N =
|
|
10532
|
+
const N = T.find(
|
|
10533
10533
|
(F) => (F == null ? void 0 : F.name) === "Original"
|
|
10534
10534
|
);
|
|
10535
|
-
N ? N.template = C :
|
|
10535
|
+
N ? N.template = C : T.push({
|
|
10536
10536
|
name: "Original",
|
|
10537
10537
|
template: C,
|
|
10538
10538
|
default: !1
|
|
10539
|
-
}), localStorage.setItem(P, JSON.stringify(
|
|
10539
|
+
}), localStorage.setItem(P, JSON.stringify(T));
|
|
10540
10540
|
}
|
|
10541
|
-
g((
|
|
10541
|
+
g((D = C.sheets) == null ? void 0 : D[0].id);
|
|
10542
10542
|
}, [i, f, g, b, y]), _e(() => {
|
|
10543
10543
|
r && m(r), o && E(o);
|
|
10544
10544
|
}, [r, m, o, E]), _e(() => {
|
|
@@ -10984,9 +10984,9 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
|
|
|
10984
10984
|
onChange: l
|
|
10985
10985
|
}), [y, x] = Pe(!1), w = kn(c), _ = p$(n), E = se(!1), [C, P] = Pe(0);
|
|
10986
10986
|
return _e(() => {
|
|
10987
|
-
const
|
|
10988
|
-
if (
|
|
10989
|
-
return
|
|
10987
|
+
const T = f.current;
|
|
10988
|
+
if (T)
|
|
10989
|
+
return T.addEventListener(Mv, w), () => T.removeEventListener(Mv, w);
|
|
10990
10990
|
}, [
|
|
10991
10991
|
w
|
|
10992
10992
|
]), /* @__PURE__ */ z(B9, {
|
|
@@ -10996,7 +10996,7 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
|
|
|
10996
10996
|
loop: o,
|
|
10997
10997
|
currentTabStopId: m,
|
|
10998
10998
|
onItemFocus: Be(
|
|
10999
|
-
(
|
|
10999
|
+
(T) => b(T),
|
|
11000
11000
|
[
|
|
11001
11001
|
b
|
|
11002
11002
|
]
|
|
@@ -11007,13 +11007,13 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
|
|
|
11007
11007
|
),
|
|
11008
11008
|
onFocusableItemAdd: Be(
|
|
11009
11009
|
() => P(
|
|
11010
|
-
(
|
|
11010
|
+
(T) => T + 1
|
|
11011
11011
|
),
|
|
11012
11012
|
[]
|
|
11013
11013
|
),
|
|
11014
11014
|
onFocusableItemRemove: Be(
|
|
11015
11015
|
() => P(
|
|
11016
|
-
(
|
|
11016
|
+
(T) => T - 1
|
|
11017
11017
|
),
|
|
11018
11018
|
[]
|
|
11019
11019
|
)
|
|
@@ -11029,11 +11029,11 @@ const Mv = "rovingFocusGroup.onEntryFocus", F9 = {
|
|
|
11029
11029
|
onMouseDown: De(e.onMouseDown, () => {
|
|
11030
11030
|
E.current = !0;
|
|
11031
11031
|
}),
|
|
11032
|
-
onFocus: De(e.onFocus, (
|
|
11032
|
+
onFocus: De(e.onFocus, (T) => {
|
|
11033
11033
|
const M = !E.current;
|
|
11034
|
-
if (
|
|
11035
|
-
const
|
|
11036
|
-
if (
|
|
11034
|
+
if (T.target === T.currentTarget && M && !y) {
|
|
11035
|
+
const D = new CustomEvent(Mv, F9);
|
|
11036
|
+
if (T.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
11037
11037
|
const N = _().filter(
|
|
11038
11038
|
(j) => j.focusable
|
|
11039
11039
|
), F = N.find(
|
|
@@ -11430,7 +11430,7 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
|
|
|
11430
11430
|
function P(oe, Z) {
|
|
11431
11431
|
return l(oe.valueOf(), Z.valueOf());
|
|
11432
11432
|
}
|
|
11433
|
-
function
|
|
11433
|
+
function T(oe, Z, ie, we) {
|
|
11434
11434
|
var W = oe.size === Z.size;
|
|
11435
11435
|
if (!W)
|
|
11436
11436
|
return !1;
|
|
@@ -11446,13 +11446,13 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
|
|
|
11446
11446
|
}
|
|
11447
11447
|
}), W;
|
|
11448
11448
|
}
|
|
11449
|
-
var M = o(
|
|
11449
|
+
var M = o(T), D = "_owner", N = Object.prototype.hasOwnProperty;
|
|
11450
11450
|
function F(oe, Z, ie, we) {
|
|
11451
11451
|
var W = Object.keys(oe), be = W.length;
|
|
11452
11452
|
if (Object.keys(Z).length !== be)
|
|
11453
11453
|
return !1;
|
|
11454
11454
|
for (var Oe; be-- > 0; ) {
|
|
11455
|
-
if (Oe = W[be], Oe ===
|
|
11455
|
+
if (Oe = W[be], Oe === D) {
|
|
11456
11456
|
var Me = !!oe.$$typeof, Ae = !!Z.$$typeof;
|
|
11457
11457
|
if ((Me || Ae) && Me !== Ae)
|
|
11458
11458
|
return !1;
|
|
@@ -11485,7 +11485,7 @@ var C$ = { exports: {} }, Yd = {}, $0 = { exports: {} };
|
|
|
11485
11485
|
var j = o(G), ee = Object.freeze({
|
|
11486
11486
|
areArraysEqual: E,
|
|
11487
11487
|
areDatesEqual: P,
|
|
11488
|
-
areMapsEqual:
|
|
11488
|
+
areMapsEqual: T,
|
|
11489
11489
|
areObjectsEqual: F,
|
|
11490
11490
|
areRegExpsEqual: q,
|
|
11491
11491
|
areSetsEqual: G,
|
|
@@ -12076,7 +12076,7 @@ function N8() {
|
|
|
12076
12076
|
}
|
|
12077
12077
|
}
|
|
12078
12078
|
}
|
|
12079
|
-
var C = l, P = c,
|
|
12079
|
+
var C = l, P = c, T = a, M = s, D = t, N = u, F = r, B = m, q = p, G = n, j = i, ee = o, Y = f, X = !1;
|
|
12080
12080
|
function re(W) {
|
|
12081
12081
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), R(W) || E(W) === l;
|
|
12082
12082
|
}
|
|
@@ -12116,7 +12116,7 @@ function N8() {
|
|
|
12116
12116
|
function we(W) {
|
|
12117
12117
|
return E(W) === f;
|
|
12118
12118
|
}
|
|
12119
|
-
Ft.AsyncMode = C, Ft.ConcurrentMode = P, Ft.ContextConsumer =
|
|
12119
|
+
Ft.AsyncMode = C, Ft.ConcurrentMode = P, Ft.ContextConsumer = T, Ft.ContextProvider = M, Ft.Element = D, Ft.ForwardRef = N, Ft.Fragment = F, Ft.Lazy = B, Ft.Memo = q, Ft.Portal = G, Ft.Profiler = j, Ft.StrictMode = ee, Ft.Suspense = Y, Ft.isAsyncMode = re, Ft.isConcurrentMode = R, Ft.isContextConsumer = H, Ft.isContextProvider = ne, Ft.isElement = A, Ft.isForwardRef = ue, Ft.isFragment = ve, Ft.isLazy = ge, Ft.isMemo = fe, Ft.isPortal = oe, Ft.isProfiler = Z, Ft.isStrictMode = ie, Ft.isSuspense = we, Ft.isValidElementType = _, Ft.typeOf = E;
|
|
12120
12120
|
}()), Ft;
|
|
12121
12121
|
}
|
|
12122
12122
|
var zt = {};
|
|
@@ -12346,8 +12346,8 @@ function j8() {
|
|
|
12346
12346
|
instanceOf: P,
|
|
12347
12347
|
node: N(),
|
|
12348
12348
|
objectOf: M,
|
|
12349
|
-
oneOf:
|
|
12350
|
-
oneOfType:
|
|
12349
|
+
oneOf: T,
|
|
12350
|
+
oneOfType: D,
|
|
12351
12351
|
shape: B,
|
|
12352
12352
|
exact: q
|
|
12353
12353
|
};
|
|
@@ -12448,7 +12448,7 @@ function j8() {
|
|
|
12448
12448
|
}
|
|
12449
12449
|
return y(H);
|
|
12450
12450
|
}
|
|
12451
|
-
function
|
|
12451
|
+
function T(R) {
|
|
12452
12452
|
if (!Array.isArray(R))
|
|
12453
12453
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
12454
12454
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -12482,7 +12482,7 @@ function j8() {
|
|
|
12482
12482
|
}
|
|
12483
12483
|
return y(H);
|
|
12484
12484
|
}
|
|
12485
|
-
function
|
|
12485
|
+
function D(R) {
|
|
12486
12486
|
if (!Array.isArray(R))
|
|
12487
12487
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
12488
12488
|
for (var H = 0; H < R.length; H++) {
|
|
@@ -13332,10 +13332,10 @@ lr(Sg, "defaultProps", {
|
|
|
13332
13332
|
if (E && E.has(w))
|
|
13333
13333
|
return E.get(w);
|
|
13334
13334
|
var C = {}, P = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
13335
|
-
for (var
|
|
13336
|
-
if (
|
|
13337
|
-
var M = P ? Object.getOwnPropertyDescriptor(w,
|
|
13338
|
-
M && (M.get || M.set) ? Object.defineProperty(C,
|
|
13335
|
+
for (var T in w)
|
|
13336
|
+
if (T !== "default" && Object.prototype.hasOwnProperty.call(w, T)) {
|
|
13337
|
+
var M = P ? Object.getOwnPropertyDescriptor(w, T) : null;
|
|
13338
|
+
M && (M.get || M.set) ? Object.defineProperty(C, T, M) : C[T] = w[T];
|
|
13339
13339
|
}
|
|
13340
13340
|
return C.default = w, E && E.set(w, C), C;
|
|
13341
13341
|
}
|
|
@@ -13400,7 +13400,7 @@ lr(Sg, "defaultProps", {
|
|
|
13400
13400
|
if (!this.state.dragging)
|
|
13401
13401
|
return !1;
|
|
13402
13402
|
(0, c.default)("Draggable: onDrag: %j", C);
|
|
13403
|
-
const P = (0, s.createDraggableData)(this, C),
|
|
13403
|
+
const P = (0, s.createDraggableData)(this, C), T = {
|
|
13404
13404
|
x: P.x,
|
|
13405
13405
|
y: P.y,
|
|
13406
13406
|
slackX: 0,
|
|
@@ -13408,33 +13408,33 @@ lr(Sg, "defaultProps", {
|
|
|
13408
13408
|
};
|
|
13409
13409
|
if (this.props.bounds) {
|
|
13410
13410
|
const {
|
|
13411
|
-
x:
|
|
13411
|
+
x: D,
|
|
13412
13412
|
y: N
|
|
13413
|
-
} =
|
|
13414
|
-
|
|
13415
|
-
const [F, B] = (0, s.getBoundPosition)(this,
|
|
13416
|
-
|
|
13413
|
+
} = T;
|
|
13414
|
+
T.x += this.state.slackX, T.y += this.state.slackY;
|
|
13415
|
+
const [F, B] = (0, s.getBoundPosition)(this, T.x, T.y);
|
|
13416
|
+
T.x = F, T.y = B, T.slackX = this.state.slackX + (D - T.x), T.slackY = this.state.slackY + (N - T.y), P.x = T.x, P.y = T.y, P.deltaX = T.x - this.state.x, P.deltaY = T.y - this.state.y;
|
|
13417
13417
|
}
|
|
13418
13418
|
if (this.props.onDrag(E, P) === !1)
|
|
13419
13419
|
return !1;
|
|
13420
|
-
this.setState(
|
|
13420
|
+
this.setState(T);
|
|
13421
13421
|
}), m(this, "onDragStop", (E, C) => {
|
|
13422
13422
|
if (!this.state.dragging || this.props.onStop(E, (0, s.createDraggableData)(this, C)) === !1)
|
|
13423
13423
|
return !1;
|
|
13424
13424
|
(0, c.default)("Draggable: onDragStop: %j", C);
|
|
13425
|
-
const
|
|
13425
|
+
const T = {
|
|
13426
13426
|
dragging: !1,
|
|
13427
13427
|
slackX: 0,
|
|
13428
13428
|
slackY: 0
|
|
13429
13429
|
};
|
|
13430
13430
|
if (!!this.props.position) {
|
|
13431
13431
|
const {
|
|
13432
|
-
x:
|
|
13432
|
+
x: D,
|
|
13433
13433
|
y: N
|
|
13434
13434
|
} = this.props.position;
|
|
13435
|
-
|
|
13435
|
+
T.x = D, T.y = N;
|
|
13436
13436
|
}
|
|
13437
|
-
this.setState(
|
|
13437
|
+
this.setState(T);
|
|
13438
13438
|
}), this.state = {
|
|
13439
13439
|
// Whether or not we are currently dragging.
|
|
13440
13440
|
dragging: !1,
|
|
@@ -13475,9 +13475,9 @@ lr(Sg, "defaultProps", {
|
|
|
13475
13475
|
bounds: E,
|
|
13476
13476
|
children: C,
|
|
13477
13477
|
defaultPosition: P,
|
|
13478
|
-
defaultClassName:
|
|
13478
|
+
defaultClassName: T,
|
|
13479
13479
|
defaultClassNameDragging: M,
|
|
13480
|
-
defaultClassNameDragged:
|
|
13480
|
+
defaultClassNameDragged: D,
|
|
13481
13481
|
position: N,
|
|
13482
13482
|
positionOffset: F,
|
|
13483
13483
|
scale: B,
|
|
@@ -13491,9 +13491,9 @@ lr(Sg, "defaultProps", {
|
|
|
13491
13491
|
y: (0, s.canDragY)(this) && Y ? this.state.y : X.y
|
|
13492
13492
|
};
|
|
13493
13493
|
this.state.isElementSVG ? j = (0, i.createSVGTransform)(re, F) : G = (0, i.createCSSTransform)(re, F);
|
|
13494
|
-
const R = (0, o.default)(C.props.className || "",
|
|
13494
|
+
const R = (0, o.default)(C.props.className || "", T, {
|
|
13495
13495
|
[M]: this.state.dragging,
|
|
13496
|
-
[
|
|
13496
|
+
[D]: this.state.dragged
|
|
13497
13497
|
});
|
|
13498
13498
|
return /* @__PURE__ */ t.createElement(l.default, p({}, q, {
|
|
13499
13499
|
onStart: this.onDragStart,
|
|
@@ -13936,8 +13936,8 @@ var Rx = /* @__PURE__ */ function(e) {
|
|
|
13936
13936
|
s.lastHandleRect = y, b === "w" && (u = -u), m === "n" && (f = -f);
|
|
13937
13937
|
var _ = s.props.width + (g ? u / s.props.transformScale : 0), E = s.props.height + (p ? f / s.props.transformScale : 0), C = s.runConstraints(_, E);
|
|
13938
13938
|
_ = C[0], E = C[1];
|
|
13939
|
-
var P = _ !== s.props.width || E !== s.props.height,
|
|
13940
|
-
|
|
13939
|
+
var P = _ !== s.props.width || E !== s.props.height, T = typeof s.props[o] == "function" ? s.props[o] : null, M = o === "onResize" && !P;
|
|
13940
|
+
T && !M && (a.persist == null || a.persist(), T(a, {
|
|
13941
13941
|
node: c,
|
|
13942
13942
|
size: {
|
|
13943
13943
|
width: _,
|
|
@@ -14373,8 +14373,8 @@ class Dx extends wl.default.Component {
|
|
|
14373
14373
|
rowHeight: E
|
|
14374
14374
|
} = this.props, C = w.clientHeight - (0, Hn.calcGridItemWHPx)(g, E, _[1]);
|
|
14375
14375
|
a = (0, Hn.clamp)(a, 0, C);
|
|
14376
|
-
const P = (0, Hn.calcGridColWidth)(m),
|
|
14377
|
-
l = (0, Hn.clamp)(l, 0,
|
|
14376
|
+
const P = (0, Hn.calcGridColWidth)(m), T = p - (0, Hn.calcGridItemWHPx)(f, P, _[0]);
|
|
14377
|
+
l = (0, Hn.clamp)(l, 0, T);
|
|
14378
14378
|
}
|
|
14379
14379
|
}
|
|
14380
14380
|
const b = {
|
|
@@ -15161,7 +15161,7 @@ class Og extends la.Component {
|
|
|
15161
15161
|
} = this.props, {
|
|
15162
15162
|
mounted: _,
|
|
15163
15163
|
droppingPosition: E
|
|
15164
|
-
} = this.state, C = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && u, P = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && f,
|
|
15164
|
+
} = this.state, C = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && u, P = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && f, T = r.resizeHandles || x, M = C && g && r.isBounded !== !1;
|
|
15165
15165
|
return /* @__PURE__ */ la.createElement(AC.default, {
|
|
15166
15166
|
containerWidth: o,
|
|
15167
15167
|
cols: i,
|
|
@@ -15194,7 +15194,7 @@ class Og extends la.Component {
|
|
|
15194
15194
|
maxW: r.maxW,
|
|
15195
15195
|
static: r.static,
|
|
15196
15196
|
droppingPosition: n ? E : void 0,
|
|
15197
|
-
resizeHandles:
|
|
15197
|
+
resizeHandles: T,
|
|
15198
15198
|
resizeHandle: w
|
|
15199
15199
|
}, t);
|
|
15200
15200
|
}
|
|
@@ -17854,15 +17854,15 @@ function F2(e, t, n) {
|
|
|
17854
17854
|
];
|
|
17855
17855
|
const { property: r, start: o, end: i } = n, s = t.length, { compare: a, between: l, normalize: c } = L2(r), { start: u, end: f, loop: g, style: p } = $V(e, t, n), m = [];
|
|
17856
17856
|
let b = !1, y = null, x, w, _;
|
|
17857
|
-
const E = () => l(o, _, x) && a(o, _) !== 0, C = () => a(i, x) === 0 || l(i, _, x), P = () => b || E(),
|
|
17858
|
-
for (let M = u,
|
|
17859
|
-
w = t[M % s], !w.skip && (x = c(w[r]), x !== _ && (b = l(x, o, i), y === null && P() && (y = a(x, o) === 0 ? M :
|
|
17857
|
+
const E = () => l(o, _, x) && a(o, _) !== 0, C = () => a(i, x) === 0 || l(i, _, x), P = () => b || E(), T = () => !b || C();
|
|
17858
|
+
for (let M = u, D = u; M <= f; ++M)
|
|
17859
|
+
w = t[M % s], !w.skip && (x = c(w[r]), x !== _ && (b = l(x, o, i), y === null && P() && (y = a(x, o) === 0 ? M : D), y !== null && T() && (m.push(iE({
|
|
17860
17860
|
start: y,
|
|
17861
17861
|
end: M,
|
|
17862
17862
|
loop: g,
|
|
17863
17863
|
count: s,
|
|
17864
17864
|
style: p
|
|
17865
|
-
})), y = null),
|
|
17865
|
+
})), y = null), D = M, _ = x));
|
|
17866
17866
|
return y !== null && m.push(iE({
|
|
17867
17867
|
start: y,
|
|
17868
17868
|
end: f,
|
|
@@ -19316,13 +19316,13 @@ class sp extends ko {
|
|
|
19316
19316
|
const i = o === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: f } = this._getSharedOptions(n, o), g = s.axis, p = a.axis, { spanGaps: m, segment: b } = this.options, y = hc(m) ? m : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || i || o === "none", w = n + r, _ = t.length;
|
|
19317
19317
|
let E = n > 0 && this.getParsed(n - 1);
|
|
19318
19318
|
for (let C = 0; C < _; ++C) {
|
|
19319
|
-
const P = t[C],
|
|
19319
|
+
const P = t[C], T = x ? P : {};
|
|
19320
19320
|
if (C < n || C >= w) {
|
|
19321
|
-
|
|
19321
|
+
T.skip = !0;
|
|
19322
19322
|
continue;
|
|
19323
19323
|
}
|
|
19324
|
-
const M = this.getParsed(C),
|
|
19325
|
-
|
|
19324
|
+
const M = this.getParsed(C), D = Et(M[p]), N = T[g] = s.getPixelForValue(M[g], C), F = T[p] = i || D ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, M, l) : M[p], C);
|
|
19325
|
+
T.skip = isNaN(N) || isNaN(F) || D, T.stop = C > 0 && Math.abs(M[g] - E[g]) > y, b && (T.parsed = M, T.raw = c.data[C]), f && (T.options = u || this.resolveDataElementOptions(C, P.active ? "active" : o)), x || this.updateElement(P, C, T, o), E = M;
|
|
19326
19326
|
}
|
|
19327
19327
|
}
|
|
19328
19328
|
getMaxOverflow() {
|
|
@@ -19583,8 +19583,8 @@ class lp extends ko {
|
|
|
19583
19583
|
const i = o === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(n, o), f = this.getSharedOptions(u), g = this.includeOptions(o, f), p = s.axis, m = a.axis, { spanGaps: b, segment: y } = this.options, x = hc(b) ? b : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || i || o === "none";
|
|
19584
19584
|
let _ = n > 0 && this.getParsed(n - 1);
|
|
19585
19585
|
for (let E = n; E < n + r; ++E) {
|
|
19586
|
-
const C = t[E], P = this.getParsed(E),
|
|
19587
|
-
|
|
19586
|
+
const C = t[E], P = this.getParsed(E), T = w ? C : {}, M = Et(P[m]), D = T[p] = s.getPixelForValue(P[p], E), N = T[m] = i || M ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, P, l) : P[m], E);
|
|
19587
|
+
T.skip = isNaN(D) || isNaN(N) || M, T.stop = E > 0 && Math.abs(P[p] - _[p]) > x, y && (T.parsed = P, T.raw = c.data[E]), g && (T.options = f || this.resolveDataElementOptions(E, C.active ? "active" : o)), w || this.updateElement(C, E, T, o), _ = P;
|
|
19588
19588
|
}
|
|
19589
19589
|
this.updateSharedOptions(f, o, u);
|
|
19590
19590
|
}
|
|
@@ -20677,15 +20677,15 @@ class Ja extends Ui {
|
|
|
20677
20677
|
s.push(_), a.push(E), c = Math.max(_, c), u = Math.max(E, u);
|
|
20678
20678
|
}
|
|
20679
20679
|
VH(i, n);
|
|
20680
|
-
const P = s.indexOf(c),
|
|
20681
|
-
width: s[
|
|
20682
|
-
height: a[
|
|
20680
|
+
const P = s.indexOf(c), T = a.indexOf(u), M = (D) => ({
|
|
20681
|
+
width: s[D] || 0,
|
|
20682
|
+
height: a[D] || 0
|
|
20683
20683
|
});
|
|
20684
20684
|
return {
|
|
20685
20685
|
first: M(0),
|
|
20686
20686
|
last: M(n - 1),
|
|
20687
20687
|
widest: M(P),
|
|
20688
|
-
highest: M(
|
|
20688
|
+
highest: M(T),
|
|
20689
20689
|
widths: s,
|
|
20690
20690
|
heights: a
|
|
20691
20691
|
};
|
|
@@ -20738,11 +20738,11 @@ class Ja extends Ui {
|
|
|
20738
20738
|
const n = this.axis, r = this.chart, o = this.options, { grid: i, position: s, border: a } = o, l = i.offset, c = this.isHorizontal(), f = this.ticks.length + (l ? 1 : 0), g = hu(i), p = [], m = a.setContext(this.getContext()), b = m.display ? m.width : 0, y = b / 2, x = function(ee) {
|
|
20739
20739
|
return da(r, ee, b);
|
|
20740
20740
|
};
|
|
20741
|
-
let w, _, E, C, P,
|
|
20741
|
+
let w, _, E, C, P, T, M, D, N, F, B, q;
|
|
20742
20742
|
if (s === "top")
|
|
20743
|
-
w = x(this.bottom),
|
|
20743
|
+
w = x(this.bottom), T = this.bottom - g, D = w - y, F = x(t.top) + y, q = t.bottom;
|
|
20744
20744
|
else if (s === "bottom")
|
|
20745
|
-
w = x(this.top), F = t.top, q = x(t.bottom) - y,
|
|
20745
|
+
w = x(this.top), F = t.top, q = x(t.bottom) - y, T = w + y, D = this.top + g;
|
|
20746
20746
|
else if (s === "left")
|
|
20747
20747
|
w = x(this.right), P = this.right - g, M = w - y, N = x(t.left) + y, B = t.right;
|
|
20748
20748
|
else if (s === "right")
|
|
@@ -20754,7 +20754,7 @@ class Ja extends Ui {
|
|
|
20754
20754
|
const ee = Object.keys(s)[0], Y = s[ee];
|
|
20755
20755
|
w = x(this.chart.scales[ee].getPixelForValue(Y));
|
|
20756
20756
|
}
|
|
20757
|
-
F = t.top, q = t.bottom,
|
|
20757
|
+
F = t.top, q = t.bottom, T = w + y, D = T + g;
|
|
20758
20758
|
} else if (n === "y") {
|
|
20759
20759
|
if (s === "center")
|
|
20760
20760
|
w = x((t.left + t.right) / 2);
|
|
@@ -20767,11 +20767,11 @@ class Ja extends Ui {
|
|
|
20767
20767
|
const G = dt(o.ticks.maxTicksLimit, f), j = Math.max(1, Math.ceil(f / G));
|
|
20768
20768
|
for (_ = 0; _ < f; _ += j) {
|
|
20769
20769
|
const ee = this.getContext(_), Y = i.setContext(ee), X = a.setContext(ee), re = Y.lineWidth, R = Y.color, H = X.dash || [], ne = X.dashOffset, A = Y.tickWidth, ue = Y.tickColor, ve = Y.tickBorderDash || [], ge = Y.tickBorderDashOffset;
|
|
20770
|
-
E = BH(this, _, l), E !== void 0 && (C = da(r, E, re), c ? P = M = N = B = C :
|
|
20770
|
+
E = BH(this, _, l), E !== void 0 && (C = da(r, E, re), c ? P = M = N = B = C : T = D = F = q = C, p.push({
|
|
20771
20771
|
tx1: P,
|
|
20772
|
-
ty1:
|
|
20772
|
+
ty1: T,
|
|
20773
20773
|
tx2: M,
|
|
20774
|
-
ty2:
|
|
20774
|
+
ty2: D,
|
|
20775
20775
|
x1: N,
|
|
20776
20776
|
y1: F,
|
|
20777
20777
|
x2: B,
|
|
@@ -20790,17 +20790,17 @@ class Ja extends Ui {
|
|
|
20790
20790
|
}
|
|
20791
20791
|
_computeLabelItems(t) {
|
|
20792
20792
|
const n = this.axis, r = this.options, { position: o, ticks: i } = r, s = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: f } = i, g = hu(r.grid), p = g + u, m = f ? -u : p, b = -Mo(this.labelRotation), y = [];
|
|
20793
|
-
let x, w, _, E, C, P,
|
|
20793
|
+
let x, w, _, E, C, P, T, M, D, N, F, B, q = "middle";
|
|
20794
20794
|
if (o === "top")
|
|
20795
|
-
P = this.bottom - m,
|
|
20795
|
+
P = this.bottom - m, T = this._getXAxisLabelAlignment();
|
|
20796
20796
|
else if (o === "bottom")
|
|
20797
|
-
P = this.top + m,
|
|
20797
|
+
P = this.top + m, T = this._getXAxisLabelAlignment();
|
|
20798
20798
|
else if (o === "left") {
|
|
20799
20799
|
const j = this._getYAxisLabelAlignment(g);
|
|
20800
|
-
|
|
20800
|
+
T = j.textAlign, C = j.x;
|
|
20801
20801
|
} else if (o === "right") {
|
|
20802
20802
|
const j = this._getYAxisLabelAlignment(g);
|
|
20803
|
-
|
|
20803
|
+
T = j.textAlign, C = j.x;
|
|
20804
20804
|
} else if (n === "x") {
|
|
20805
20805
|
if (o === "center")
|
|
20806
20806
|
P = (t.top + t.bottom) / 2 + p;
|
|
@@ -20808,7 +20808,7 @@ class Ja extends Ui {
|
|
|
20808
20808
|
const j = Object.keys(o)[0], ee = o[j];
|
|
20809
20809
|
P = this.chart.scales[j].getPixelForValue(ee) + p;
|
|
20810
20810
|
}
|
|
20811
|
-
|
|
20811
|
+
T = this._getXAxisLabelAlignment();
|
|
20812
20812
|
} else if (n === "y") {
|
|
20813
20813
|
if (o === "center")
|
|
20814
20814
|
C = (t.left + t.right) / 2 - p;
|
|
@@ -20816,17 +20816,17 @@ class Ja extends Ui {
|
|
|
20816
20816
|
const j = Object.keys(o)[0], ee = o[j];
|
|
20817
20817
|
C = this.chart.scales[j].getPixelForValue(ee);
|
|
20818
20818
|
}
|
|
20819
|
-
|
|
20819
|
+
T = this._getYAxisLabelAlignment(g).textAlign;
|
|
20820
20820
|
}
|
|
20821
20821
|
n === "y" && (l === "start" ? q = "top" : l === "end" && (q = "bottom"));
|
|
20822
20822
|
const G = this._getLabelSizes();
|
|
20823
20823
|
for (x = 0, w = a.length; x < w; ++x) {
|
|
20824
20824
|
_ = a[x], E = _.label;
|
|
20825
20825
|
const j = i.setContext(this.getContext(x));
|
|
20826
|
-
M = this.getPixelForTick(x) + i.labelOffset,
|
|
20826
|
+
M = this.getPixelForTick(x) + i.labelOffset, D = this._resolveTickFontOptions(x), N = D.lineHeight, F = on(E) ? E.length : 1;
|
|
20827
20827
|
const ee = F / 2, Y = j.color, X = j.textStrokeColor, re = j.textStrokeWidth;
|
|
20828
|
-
let R =
|
|
20829
|
-
s ? (C = M,
|
|
20828
|
+
let R = T;
|
|
20829
|
+
s ? (C = M, T === "inner" && (x === w - 1 ? R = this.options.reverse ? "left" : "right" : x === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), o === "top" ? c === "near" || b !== 0 ? B = -F * N + N / 2 : c === "center" ? B = -G.highest.height / 2 - ee * N + N : B = -G.highest.height + N / 2 : c === "near" || b !== 0 ? B = N / 2 : c === "center" ? B = G.highest.height / 2 - ee * N : B = G.highest.height - F * N, f && (B *= -1), b !== 0 && !j.showLabelBackdrop && (C += N / 2 * Math.sin(b))) : (P = M, B = (1 - F) * N / 2);
|
|
20830
20830
|
let H;
|
|
20831
20831
|
if (j.showLabelBackdrop) {
|
|
20832
20832
|
const ne = Gn(j.backdropPadding), A = G.heights[x], ue = G.widths[x];
|
|
@@ -20839,7 +20839,7 @@ class Ja extends Ui {
|
|
|
20839
20839
|
ve -= A;
|
|
20840
20840
|
break;
|
|
20841
20841
|
}
|
|
20842
|
-
switch (
|
|
20842
|
+
switch (T) {
|
|
20843
20843
|
case "center":
|
|
20844
20844
|
ge -= ue / 2;
|
|
20845
20845
|
break;
|
|
@@ -20860,7 +20860,7 @@ class Ja extends Ui {
|
|
|
20860
20860
|
}
|
|
20861
20861
|
y.push({
|
|
20862
20862
|
label: E,
|
|
20863
|
-
font:
|
|
20863
|
+
font: D,
|
|
20864
20864
|
textOffset: B,
|
|
20865
20865
|
options: {
|
|
20866
20866
|
rotation: b,
|
|
@@ -22081,10 +22081,10 @@ function Np(e, t, n, r, o, i) {
|
|
|
22081
22081
|
const j = u > 0 ? u - r : 0, ee = f > 0 ? f - r : 0, Y = (j + ee) / 2, X = Y !== 0 ? m * Y / (Y + r) : m;
|
|
22082
22082
|
p = (m - X) / 2;
|
|
22083
22083
|
}
|
|
22084
|
-
const b = Math.max(1e-3, m * f - n / an) / f, y = (m - b) / 2, x = l + y + p, w = o - y - p, { outerStart: _, outerEnd: E, innerStart: C, innerEnd: P } = yW(t, g, f, w - x),
|
|
22084
|
+
const b = Math.max(1e-3, m * f - n / an) / f, y = (m - b) / 2, x = l + y + p, w = o - y - p, { outerStart: _, outerEnd: E, innerStart: C, innerEnd: P } = yW(t, g, f, w - x), T = f - _, M = f - E, D = x + _ / T, N = w - E / M, F = g + C, B = g + P, q = x + C / F, G = w - P / B;
|
|
22085
22085
|
if (e.beginPath(), i) {
|
|
22086
|
-
const j = (
|
|
22087
|
-
if (e.arc(s, a, f,
|
|
22086
|
+
const j = (D + N) / 2;
|
|
22087
|
+
if (e.arc(s, a, f, D, j), e.arc(s, a, f, j, N), E > 0) {
|
|
22088
22088
|
const re = El(M, N, s, a);
|
|
22089
22089
|
e.arc(re.x, re.y, E, N, w + _n);
|
|
22090
22090
|
}
|
|
@@ -22098,14 +22098,14 @@ function Np(e, t, n, r, o, i) {
|
|
|
22098
22098
|
const re = El(F, q, s, a);
|
|
22099
22099
|
e.arc(re.x, re.y, C, q + Math.PI, x - _n);
|
|
22100
22100
|
}
|
|
22101
|
-
const X = El(
|
|
22101
|
+
const X = El(T, x, s, a);
|
|
22102
22102
|
if (e.lineTo(X.x, X.y), _ > 0) {
|
|
22103
|
-
const re = El(
|
|
22104
|
-
e.arc(re.x, re.y, _, x - _n,
|
|
22103
|
+
const re = El(T, D, s, a);
|
|
22104
|
+
e.arc(re.x, re.y, _, x - _n, D);
|
|
22105
22105
|
}
|
|
22106
22106
|
} else {
|
|
22107
22107
|
e.moveTo(s, a);
|
|
22108
|
-
const j = Math.cos(
|
|
22108
|
+
const j = Math.cos(D) * f + s, ee = Math.sin(D) * f + a;
|
|
22109
22109
|
e.lineTo(j, ee);
|
|
22110
22110
|
const Y = Math.cos(N) * f + s, X = Math.sin(N) * f + a;
|
|
22111
22111
|
e.lineTo(Y, X);
|
|
@@ -22636,9 +22636,9 @@ function HW(e, t, n, r, o) {
|
|
|
22636
22636
|
for (w = _; w < E; w++)
|
|
22637
22637
|
y += e[w].x, x += e[w].y;
|
|
22638
22638
|
y /= C, x /= C;
|
|
22639
|
-
const P = Math.floor(f * a) + 1 + t,
|
|
22640
|
-
for (p = m = -1, w = P; w <
|
|
22641
|
-
m = 0.5 * Math.abs((M - y) * (e[w].y -
|
|
22639
|
+
const P = Math.floor(f * a) + 1 + t, T = Math.min(Math.floor((f + 1) * a) + 1, n) + t, { x: M, y: D } = e[u];
|
|
22640
|
+
for (p = m = -1, w = P; w < T; w++)
|
|
22641
|
+
m = 0.5 * Math.abs((M - y) * (e[w].y - D) - (M - e[w].x) * (x - D)), m > p && (p = m, g = e[w], b = w);
|
|
22642
22642
|
s[l++] = g, u = b;
|
|
22643
22643
|
}
|
|
22644
22644
|
return s[l++] = e[c], s;
|
|
@@ -22654,9 +22654,9 @@ function WW(e, t, n, r) {
|
|
|
22654
22654
|
else {
|
|
22655
22655
|
const P = s - 1;
|
|
22656
22656
|
if (!Et(f) && !Et(g)) {
|
|
22657
|
-
const
|
|
22658
|
-
|
|
22659
|
-
...e[
|
|
22657
|
+
const T = Math.min(f, g), M = Math.max(f, g);
|
|
22658
|
+
T !== p && T !== P && y.push({
|
|
22659
|
+
...e[T],
|
|
22660
22660
|
x: o
|
|
22661
22661
|
}), M !== p && M !== P && y.push({
|
|
22662
22662
|
...e[M],
|
|
@@ -23215,32 +23215,32 @@ class GE extends Ui {
|
|
|
23215
23215
|
const { options: t, columnSizes: n, lineWidths: r, ctx: o } = this, { align: i, labels: s } = t, a = hn.color, l = Hl(t.rtl, this.left, this.width), c = En(s.font), { padding: u } = s, f = c.size, g = f / 2;
|
|
23216
23216
|
let p;
|
|
23217
23217
|
this.drawTitle(), o.textAlign = l.textAlign("left"), o.textBaseline = "middle", o.lineWidth = 0.5, o.font = c.string;
|
|
23218
|
-
const { boxWidth: m, boxHeight: b, itemHeight: y } = qE(s, f), x = function(P,
|
|
23218
|
+
const { boxWidth: m, boxHeight: b, itemHeight: y } = qE(s, f), x = function(P, T, M) {
|
|
23219
23219
|
if (isNaN(m) || m <= 0 || isNaN(b) || b < 0)
|
|
23220
23220
|
return;
|
|
23221
23221
|
o.save();
|
|
23222
|
-
const
|
|
23223
|
-
if (o.fillStyle = dt(M.fillStyle, a), o.lineCap = dt(M.lineCap, "butt"), o.lineDashOffset = dt(M.lineDashOffset, 0), o.lineJoin = dt(M.lineJoin, "miter"), o.lineWidth =
|
|
23222
|
+
const D = dt(M.lineWidth, 1);
|
|
23223
|
+
if (o.fillStyle = dt(M.fillStyle, a), o.lineCap = dt(M.lineCap, "butt"), o.lineDashOffset = dt(M.lineDashOffset, 0), o.lineJoin = dt(M.lineJoin, "miter"), o.lineWidth = D, o.strokeStyle = dt(M.strokeStyle, a), o.setLineDash(dt(M.lineDash, [])), s.usePointStyle) {
|
|
23224
23224
|
const N = {
|
|
23225
23225
|
radius: b * Math.SQRT2 / 2,
|
|
23226
23226
|
pointStyle: M.pointStyle,
|
|
23227
23227
|
rotation: M.rotation,
|
|
23228
|
-
borderWidth:
|
|
23229
|
-
}, F = l.xPlus(P, m / 2), B =
|
|
23228
|
+
borderWidth: D
|
|
23229
|
+
}, F = l.xPlus(P, m / 2), B = T + g;
|
|
23230
23230
|
P2(o, N, F, B, s.pointStyleWidth && m);
|
|
23231
23231
|
} else {
|
|
23232
|
-
const N =
|
|
23232
|
+
const N = T + Math.max((f - b) / 2, 0), F = l.leftForLtr(P, m), B = Na(M.borderRadius);
|
|
23233
23233
|
o.beginPath(), Object.values(B).some((q) => q !== 0) ? td(o, {
|
|
23234
23234
|
x: F,
|
|
23235
23235
|
y: N,
|
|
23236
23236
|
w: m,
|
|
23237
23237
|
h: b,
|
|
23238
23238
|
radius: B
|
|
23239
|
-
}) : o.rect(F, N, m, b), o.fill(),
|
|
23239
|
+
}) : o.rect(F, N, m, b), o.fill(), D !== 0 && o.stroke();
|
|
23240
23240
|
}
|
|
23241
23241
|
o.restore();
|
|
23242
|
-
}, w = function(P,
|
|
23243
|
-
Wa(o, M.text, P,
|
|
23242
|
+
}, w = function(P, T, M) {
|
|
23243
|
+
Wa(o, M.text, P, T + y / 2, c, {
|
|
23244
23244
|
strikethrough: M.hidden,
|
|
23245
23245
|
textAlign: l.textAlign(M.textAlign)
|
|
23246
23246
|
});
|
|
@@ -23255,13 +23255,13 @@ class GE extends Ui {
|
|
|
23255
23255
|
line: 0
|
|
23256
23256
|
}, I2(this.ctx, t.textDirection);
|
|
23257
23257
|
const C = y + u;
|
|
23258
|
-
this.legendItems.forEach((P,
|
|
23258
|
+
this.legendItems.forEach((P, T) => {
|
|
23259
23259
|
o.strokeStyle = P.fontColor, o.fillStyle = P.fontColor;
|
|
23260
|
-
const M = o.measureText(P.text).width,
|
|
23260
|
+
const M = o.measureText(P.text).width, D = l.textAlign(P.textAlign || (P.textAlign = s.textAlign)), N = m + g + M;
|
|
23261
23261
|
let F = p.x, B = p.y;
|
|
23262
|
-
l.setWidth(this.width), _ ?
|
|
23262
|
+
l.setWidth(this.width), _ ? T > 0 && F + N + u > this.right && (B = p.y += C, p.line++, F = p.x = er(i, this.left + u, this.right - r[p.line])) : T > 0 && B + C > this.bottom && (F = p.x = F + n[p.line].width + u, p.line++, B = p.y = er(i, this.top + E + u, this.bottom - n[p.line].height));
|
|
23263
23263
|
const q = l.x(F);
|
|
23264
|
-
if (x(q, B, P), F = IB(
|
|
23264
|
+
if (x(q, B, P), F = IB(D, F + m + g, _ ? F + N : this.right, t.rtl), w(l.x(F), B, P), _)
|
|
23265
23265
|
p.x += N + u;
|
|
23266
23266
|
else if (typeof P.text != "string") {
|
|
23267
23267
|
const G = c.lineHeight;
|
|
@@ -23889,9 +23889,9 @@ let ZE = (e0 = class extends Ui {
|
|
|
23889
23889
|
const m = Hl(r.rtl, this.x, this.width), b = function(M) {
|
|
23890
23890
|
n.fillText(M, m.x(t.x + p), t.y + g / 2), t.y += g + i;
|
|
23891
23891
|
}, y = m.textAlign(s);
|
|
23892
|
-
let x, w, _, E, C, P,
|
|
23892
|
+
let x, w, _, E, C, P, T;
|
|
23893
23893
|
for (n.textAlign = s, n.textBaseline = "middle", n.font = f.string, t.x = Ch(this, y, r), n.fillStyle = r.bodyColor, jt(this.beforeBody, b), p = a && y !== "right" ? s === "center" ? c / 2 + u : c + 2 + u : 0, E = 0, P = o.length; E < P; ++E) {
|
|
23894
|
-
for (x = o[E], w = this.labelTextColors[E], n.fillStyle = w, jt(x.before, b), _ = x.lines, a && _.length && (this._drawColorBox(n, t, E, m, r), g = Math.max(f.lineHeight, l)), C = 0,
|
|
23894
|
+
for (x = o[E], w = this.labelTextColors[E], n.fillStyle = w, jt(x.before, b), _ = x.lines, a && _.length && (this._drawColorBox(n, t, E, m, r), g = Math.max(f.lineHeight, l)), C = 0, T = _.length; C < T; ++C)
|
|
23895
23895
|
b(_[C]), g = f.lineHeight;
|
|
23896
23896
|
jt(x.after, b);
|
|
23897
23897
|
}
|
|
@@ -24183,7 +24183,7 @@ Ie(Q0, "id", "category"), Ie(Q0, "defaults", {
|
|
|
24183
24183
|
});
|
|
24184
24184
|
function AU(e, t) {
|
|
24185
24185
|
const n = [], { bounds: o, step: i, min: s, max: a, precision: l, count: c, maxTicks: u, maxDigits: f, includeBounds: g } = e, p = i || 1, m = u - 1, { min: b, max: y } = t, x = !Et(s), w = !Et(a), _ = !Et(c), E = (y - b) / (f + 1);
|
|
24186
|
-
let C = GC((y - b) / m / p) * p, P,
|
|
24186
|
+
let C = GC((y - b) / m / p) * p, P, T, M, D;
|
|
24187
24187
|
if (C < 1e-14 && !x && !w)
|
|
24188
24188
|
return [
|
|
24189
24189
|
{
|
|
@@ -24193,14 +24193,14 @@ function AU(e, t) {
|
|
|
24193
24193
|
value: y
|
|
24194
24194
|
}
|
|
24195
24195
|
];
|
|
24196
|
-
|
|
24197
|
-
const N = Math.max(YC(C), YC(
|
|
24198
|
-
P = Math.pow(10, Et(l) ? N : l),
|
|
24196
|
+
D = Math.ceil(y / C) - Math.floor(b / C), D > m && (C = GC(D * C / m / p) * p), Et(l) || (P = Math.pow(10, l), C = Math.ceil(C * P) / P), o === "ticks" ? (T = Math.floor(b / C) * C, M = Math.ceil(y / C) * C) : (T = b, M = y), x && w && i && RB((a - s) / i, C / 1e3) ? (D = Math.round(Math.min((a - s) / C, u)), C = (a - s) / D, T = s, M = a) : _ ? (T = x ? s : T, M = w ? a : M, D = c - 1, C = (M - T) / D) : (D = (M - T) / C, Au(D, Math.round(D), C / 1e3) ? D = Math.round(D) : D = Math.ceil(D));
|
|
24197
|
+
const N = Math.max(YC(C), YC(T));
|
|
24198
|
+
P = Math.pow(10, Et(l) ? N : l), T = Math.round(T * P) / P, M = Math.round(M * P) / P;
|
|
24199
24199
|
let F = 0;
|
|
24200
|
-
for (x && (g &&
|
|
24200
|
+
for (x && (g && T !== s ? (n.push({
|
|
24201
24201
|
value: s
|
|
24202
|
-
}),
|
|
24203
|
-
const B = Math.round((
|
|
24202
|
+
}), T < s && F++, Au(Math.round((T + F * C) * P) / P, s, tO(s, E, e)) && F++) : T < s && F++); F < D; ++F) {
|
|
24203
|
+
const B = Math.round((T + F * C) * P) / P;
|
|
24204
24204
|
if (w && B > a)
|
|
24205
24205
|
break;
|
|
24206
24206
|
n.push({
|
|
@@ -26434,18 +26434,18 @@ const Zq = /* @__PURE__ */ On({
|
|
|
26434
26434
|
), y = Array.from(u.layers), [x] = [
|
|
26435
26435
|
...u.layersWithOutsidePointerEventsDisabled
|
|
26436
26436
|
].slice(-1), w = y.indexOf(x), _ = f ? y.indexOf(f) : -1, E = u.layersWithOutsidePointerEventsDisabled.size > 0, C = _ >= w, P = eG((M) => {
|
|
26437
|
-
const
|
|
26437
|
+
const D = M.target, N = [
|
|
26438
26438
|
...u.branches
|
|
26439
26439
|
].some(
|
|
26440
|
-
(F) => F.contains(
|
|
26440
|
+
(F) => F.contains(D)
|
|
26441
26441
|
);
|
|
26442
26442
|
!C || N || (i == null || i(M), a == null || a(M), M.defaultPrevented || l == null || l());
|
|
26443
|
-
}, p),
|
|
26444
|
-
const
|
|
26443
|
+
}, p), T = tG((M) => {
|
|
26444
|
+
const D = M.target;
|
|
26445
26445
|
[
|
|
26446
26446
|
...u.branches
|
|
26447
26447
|
].some(
|
|
26448
|
-
(F) => F.contains(
|
|
26448
|
+
(F) => F.contains(D)
|
|
26449
26449
|
) || (s == null || s(M), a == null || a(M), M.defaultPrevented || l == null || l());
|
|
26450
26450
|
}, p);
|
|
26451
26451
|
return Xq((M) => {
|
|
@@ -26474,8 +26474,8 @@ const Zq = /* @__PURE__ */ On({
|
|
|
26474
26474
|
pointerEvents: E ? C ? "auto" : "none" : void 0,
|
|
26475
26475
|
...e.style
|
|
26476
26476
|
},
|
|
26477
|
-
onFocusCapture: De(e.onFocusCapture,
|
|
26478
|
-
onBlurCapture: De(e.onBlurCapture,
|
|
26477
|
+
onFocusCapture: De(e.onFocusCapture, T.onFocusCapture),
|
|
26478
|
+
onBlurCapture: De(e.onBlurCapture, T.onBlurCapture),
|
|
26479
26479
|
onPointerDownCapture: De(e.onPointerDownCapture, P.onPointerDownCapture)
|
|
26480
26480
|
}));
|
|
26481
26481
|
});
|
|
@@ -26819,9 +26819,9 @@ const mO = (e) => ({
|
|
|
26819
26819
|
x: n,
|
|
26820
26820
|
y: r
|
|
26821
26821
|
}, p = t1(o), m = e1(p), b = await s.getDimensions(c), y = p === "y", x = y ? "top" : "left", w = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", E = i.reference[m] + i.reference[p] - g[p] - i.floating[m], C = g[p] - i.reference[p], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
26822
|
-
let
|
|
26823
|
-
(!
|
|
26824
|
-
const M = E / 2 - C / 2,
|
|
26822
|
+
let T = P ? P[_] : 0;
|
|
26823
|
+
(!T || !await (s.isElement == null ? void 0 : s.isElement(P))) && (T = a.floating[_] || i.floating[m]);
|
|
26824
|
+
const M = E / 2 - C / 2, D = T / 2 - b[m] / 2 - 1, N = As(f[x], D), F = As(f[w], D), B = N, q = T - b[m] - F, G = T / 2 - b[m] / 2 + M, j = sy(B, G, q), ee = !l.arrow && $c(o) != null && G != j && i.reference[m] / 2 - (G < B ? N : F) - b[m] / 2 < 0, Y = ee ? G < B ? G - B : G - q : 0;
|
|
26825
26825
|
return {
|
|
26826
26826
|
[p]: g[p] + Y,
|
|
26827
26827
|
data: {
|
|
@@ -26860,18 +26860,18 @@ const mO = (e) => ({
|
|
|
26860
26860
|
return {};
|
|
26861
26861
|
const x = Hi(o), w = Hi(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (w || !b ? [zp(a)] : sG(a));
|
|
26862
26862
|
!g && m !== "none" && E.push(...lG(a, b, m, _));
|
|
26863
|
-
const C = [a, ...E], P = await id(t, y),
|
|
26863
|
+
const C = [a, ...E], P = await id(t, y), T = [];
|
|
26864
26864
|
let M = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
26865
|
-
if (u &&
|
|
26865
|
+
if (u && T.push(P[x]), f) {
|
|
26866
26866
|
const B = iG(o, s, _);
|
|
26867
|
-
|
|
26867
|
+
T.push(P[B[0]], P[B[1]]);
|
|
26868
26868
|
}
|
|
26869
26869
|
if (M = [...M, {
|
|
26870
26870
|
placement: o,
|
|
26871
|
-
overflows:
|
|
26872
|
-
}], !
|
|
26873
|
-
var
|
|
26874
|
-
const B = (((
|
|
26871
|
+
overflows: T
|
|
26872
|
+
}], !T.every((B) => B <= 0)) {
|
|
26873
|
+
var D, N;
|
|
26874
|
+
const B = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, q = C[B];
|
|
26875
26875
|
if (q)
|
|
26876
26876
|
return {
|
|
26877
26877
|
data: {
|
|
@@ -27133,8 +27133,8 @@ const pG = function(e) {
|
|
|
27133
27133
|
_ = u || w ? As(y, P) : P;
|
|
27134
27134
|
}
|
|
27135
27135
|
if (w && !u) {
|
|
27136
|
-
const P = qr(l.left, 0),
|
|
27137
|
-
f ? E = g - 2 * (P !== 0 ||
|
|
27136
|
+
const P = qr(l.left, 0), T = qr(l.right, 0), M = qr(l.top, 0), D = qr(l.bottom, 0);
|
|
27137
|
+
f ? E = g - 2 * (P !== 0 || T !== 0 ? P + T : qr(l.left, l.right)) : _ = p - 2 * (M !== 0 || D !== 0 ? M + D : qr(l.top, l.bottom));
|
|
27138
27138
|
}
|
|
27139
27139
|
await s({
|
|
27140
27140
|
...t,
|
|
@@ -27668,16 +27668,16 @@ function FG(e) {
|
|
|
27668
27668
|
const [m, b] = he.useState(null), [y, x] = he.useState(null), w = he.useCallback((ee) => {
|
|
27669
27669
|
ee != P.current && (P.current = ee, b(ee));
|
|
27670
27670
|
}, [b]), _ = he.useCallback((ee) => {
|
|
27671
|
-
ee !==
|
|
27672
|
-
}, [x]), E = i || m, C = s || y, P = he.useRef(null),
|
|
27673
|
-
if (!P.current || !
|
|
27671
|
+
ee !== T.current && (T.current = ee, x(ee));
|
|
27672
|
+
}, [x]), E = i || m, C = s || y, P = he.useRef(null), T = he.useRef(null), M = he.useRef(u), D = SO(l), N = SO(o), F = he.useCallback(() => {
|
|
27673
|
+
if (!P.current || !T.current)
|
|
27674
27674
|
return;
|
|
27675
27675
|
const ee = {
|
|
27676
27676
|
placement: t,
|
|
27677
27677
|
strategy: n,
|
|
27678
27678
|
middleware: g
|
|
27679
27679
|
};
|
|
27680
|
-
N.current && (ee.platform = N.current), NG(P.current,
|
|
27680
|
+
N.current && (ee.platform = N.current), NG(P.current, T.current, ee).then((Y) => {
|
|
27681
27681
|
const X = {
|
|
27682
27682
|
...Y,
|
|
27683
27683
|
isPositioned: !0
|
|
@@ -27697,15 +27697,15 @@ function FG(e) {
|
|
|
27697
27697
|
dp(() => (B.current = !0, () => {
|
|
27698
27698
|
B.current = !1;
|
|
27699
27699
|
}), []), dp(() => {
|
|
27700
|
-
if (E && (P.current = E), C && (
|
|
27701
|
-
if (
|
|
27702
|
-
return
|
|
27700
|
+
if (E && (P.current = E), C && (T.current = C), E && C) {
|
|
27701
|
+
if (D.current)
|
|
27702
|
+
return D.current(E, C, F);
|
|
27703
27703
|
F();
|
|
27704
27704
|
}
|
|
27705
|
-
}, [E, C, F,
|
|
27705
|
+
}, [E, C, F, D]);
|
|
27706
27706
|
const q = he.useMemo(() => ({
|
|
27707
27707
|
reference: P,
|
|
27708
|
-
floating:
|
|
27708
|
+
floating: T,
|
|
27709
27709
|
setReference: w,
|
|
27710
27710
|
setFloating: _
|
|
27711
27711
|
}), [w, _]), G = he.useMemo(() => ({
|
|
@@ -27788,7 +27788,7 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
|
|
|
27788
27788
|
}));
|
|
27789
27789
|
}), ND = "PopperContent", [HG, qhe] = AD(ND), WG = /* @__PURE__ */ pe((e, t) => {
|
|
27790
27790
|
var n, r, o, i, s, a, l, c;
|
|
27791
|
-
const { __scopePopper: u, side: f = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: m = 0, arrowPadding: b = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: C = "optimized", onPlaced: P, ...
|
|
27791
|
+
const { __scopePopper: u, side: f = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: m = 0, arrowPadding: b = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: C = "optimized", onPlaced: P, ...T } = e, M = ID(ND, u), [D, N] = Pe(null), F = ft(
|
|
27792
27792
|
t,
|
|
27793
27793
|
(Me) => N(Me)
|
|
27794
27794
|
), [B, q] = Pe(null), G = Ng(B), j = (n = G == null ? void 0 : G.width) !== null && n !== void 0 ? n : 0, ee = (r = G == null ? void 0 : G.height) !== null && r !== void 0 ? r : 0, Y = f + (p !== "center" ? "-" + p : ""), X = typeof w == "number" ? w : {
|
|
@@ -27857,9 +27857,9 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
|
|
|
27857
27857
|
]);
|
|
27858
27858
|
const ie = (o = ge.arrow) === null || o === void 0 ? void 0 : o.x, we = (i = ge.arrow) === null || i === void 0 ? void 0 : i.y, W = ((s = ge.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [be, Oe] = Pe();
|
|
27859
27859
|
return nr(() => {
|
|
27860
|
-
|
|
27860
|
+
D && Oe(window.getComputedStyle(D).zIndex);
|
|
27861
27861
|
}, [
|
|
27862
|
-
|
|
27862
|
+
D
|
|
27863
27863
|
]), /* @__PURE__ */ z("div", {
|
|
27864
27864
|
ref: ne.setFloating,
|
|
27865
27865
|
"data-radix-popper-content-wrapper": "",
|
|
@@ -27885,10 +27885,10 @@ const kD = "Popper", [AD, pi] = zn(kD), [zG, ID] = AD(kD), jG = (e) => {
|
|
|
27885
27885
|
}, /* @__PURE__ */ z(Xe.div, ae({
|
|
27886
27886
|
"data-side": fe,
|
|
27887
27887
|
"data-align": oe
|
|
27888
|
-
},
|
|
27888
|
+
}, T, {
|
|
27889
27889
|
ref: F,
|
|
27890
27890
|
style: {
|
|
27891
|
-
...
|
|
27891
|
+
...T.style,
|
|
27892
27892
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
27893
27893
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
27894
27894
|
animation: ve ? void 0 : "none",
|
|
@@ -27980,8 +27980,8 @@ const tf = jG, nf = VG, rf = WG, Lg = /* @__PURE__ */ pe((e, t) => {
|
|
|
27980
27980
|
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: i, disableHoverableContent: s, delayDuration: a } = e, l = s1(a1, e.__scopeTooltip), c = i1(t), [u, f] = Pe(null), g = Pr(), p = se(0), m = s ?? l.disableHoverableContent, b = a ?? l.delayDuration, y = se(!1), [x = !1, w] = rr({
|
|
27981
27981
|
prop: r,
|
|
27982
27982
|
defaultProp: o,
|
|
27983
|
-
onChange: (
|
|
27984
|
-
|
|
27983
|
+
onChange: (T) => {
|
|
27984
|
+
T ? (l.onOpen(), document.dispatchEvent(new CustomEvent(ly))) : l.onClose(), i == null || i(T);
|
|
27985
27985
|
}
|
|
27986
27986
|
}), _ = Sn(() => x ? y.current ? "delayed-open" : "instant-open" : "closed", [
|
|
27987
27987
|
x
|
|
@@ -28544,7 +28544,7 @@ function cy({
|
|
|
28544
28544
|
return n && (p += a), p;
|
|
28545
28545
|
}
|
|
28546
28546
|
function RY({ card: e, isLoading: t }) {
|
|
28547
|
-
var y, x, w, _, E, C, P,
|
|
28547
|
+
var y, x, w, _, E, C, P, T, M, D, N, F, B, q, G, j, ee, Y;
|
|
28548
28548
|
const n = Ne((X) => X.actions.setCardTitle), r = Ne(
|
|
28549
28549
|
(X) => X.actions.setCardDescription
|
|
28550
28550
|
), o = Ne((X) => X.isVisualEditing), i = To((X) => X.card), s = To((X) => X.actions.setCard);
|
|
@@ -28586,8 +28586,8 @@ function RY({ card: e, isLoading: t }) {
|
|
|
28586
28586
|
format: ((_ = (w = e.preferences) == null ? void 0 : w.formatNumber) == null ? void 0 : _.format) || "",
|
|
28587
28587
|
useSuffix: !!((C = (E = e.preferences) == null ? void 0 : E.formatNumber) != null && C.suffix),
|
|
28588
28588
|
customSuffix: "",
|
|
28589
|
-
locale: ((
|
|
28590
|
-
currency: ((
|
|
28589
|
+
locale: ((T = (P = e.preferences) == null ? void 0 : P.formatNumber) == null ? void 0 : T.locale) || "",
|
|
28590
|
+
currency: ((D = (M = e.preferences) == null ? void 0 : M.formatNumber) == null ? void 0 : D.currency) || ""
|
|
28591
28591
|
}) }),
|
|
28592
28592
|
f && /* @__PURE__ */ I.jsxs("span", { className: "min-w-fit text-base font-normal text-muted-foreground", children: [
|
|
28593
28593
|
"from ",
|
|
@@ -28779,7 +28779,7 @@ function Ol({
|
|
|
28779
28779
|
customCfg: n,
|
|
28780
28780
|
preferences: r
|
|
28781
28781
|
}) {
|
|
28782
|
-
var x, w, _, E, C, P,
|
|
28782
|
+
var x, w, _, E, C, P, T, M, D;
|
|
28783
28783
|
const { dimensionKeys: o, metricKeys: i } = Ao(e), s = Wq(i, e, r), a = ry(s, n), l = o[0], c = _D(e, l), u = BY(r), f = VY(r), g = {
|
|
28784
28784
|
...t == null ? void 0 : t.options,
|
|
28785
28785
|
scales: {
|
|
@@ -28802,7 +28802,7 @@ function Ol({
|
|
|
28802
28802
|
}
|
|
28803
28803
|
},
|
|
28804
28804
|
[f]: {
|
|
28805
|
-
...(
|
|
28805
|
+
...(D = (M = (T = t == null ? void 0 : t.options) == null ? void 0 : T.scales) == null ? void 0 : M[f]) == null ? void 0 : D.ticks,
|
|
28806
28806
|
callback: null
|
|
28807
28807
|
}
|
|
28808
28808
|
}
|
|
@@ -29303,11 +29303,11 @@ function KD(e) {
|
|
|
29303
29303
|
addOrUpdateFilterValues: y,
|
|
29304
29304
|
removeFilterValue: x,
|
|
29305
29305
|
removeFilteringCard: w
|
|
29306
|
-
} = zs(), { data: _, isLoading: E, isFetching: C, isError: P, refetch:
|
|
29306
|
+
} = zs(), { data: _, isLoading: E, isFetching: C, isError: P, refetch: T } = jY(e), M = s == null ? void 0 : s.find(
|
|
29307
29307
|
(G) => G.id === e.id
|
|
29308
29308
|
);
|
|
29309
|
-
let
|
|
29310
|
-
e.data && e.data.length > 0 && (
|
|
29309
|
+
let D;
|
|
29310
|
+
e.data && e.data.length > 0 && (D = YD({
|
|
29311
29311
|
data: e.data,
|
|
29312
29312
|
cardType: e.type,
|
|
29313
29313
|
cfg: e.cfg,
|
|
@@ -29332,7 +29332,7 @@ function KD(e) {
|
|
|
29332
29332
|
e.preferences,
|
|
29333
29333
|
l
|
|
29334
29334
|
]), _e(() => {
|
|
29335
|
-
e.connectionId && !M &&
|
|
29335
|
+
e.connectionId && !M && T();
|
|
29336
29336
|
}, [c, i]);
|
|
29337
29337
|
function N(G, j, ee, Y) {
|
|
29338
29338
|
var R, H;
|
|
@@ -29381,7 +29381,7 @@ function KD(e) {
|
|
|
29381
29381
|
elementIndex: ee,
|
|
29382
29382
|
datasetIndex: j,
|
|
29383
29383
|
cardType: e.type,
|
|
29384
|
-
cfg:
|
|
29384
|
+
cfg: D,
|
|
29385
29385
|
apply: X
|
|
29386
29386
|
});
|
|
29387
29387
|
}
|
|
@@ -29393,7 +29393,7 @@ function KD(e) {
|
|
|
29393
29393
|
data: _,
|
|
29394
29394
|
visualKey: n,
|
|
29395
29395
|
handleDatapointClick: N,
|
|
29396
|
-
cfg:
|
|
29396
|
+
cfg: D
|
|
29397
29397
|
};
|
|
29398
29398
|
}
|
|
29399
29399
|
function eK(e, t) {
|
|
@@ -30104,13 +30104,13 @@ const Ah = {
|
|
|
30104
30104
|
const s = e.getSize(), a = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[r.id, r.getSize()]], l = ab(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, u = (x, w) => {
|
|
30105
30105
|
typeof w == "number" && (t.setColumnSizingInfo((_) => {
|
|
30106
30106
|
var E, C;
|
|
30107
|
-
const P = t.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
30108
|
-
return _.columnSizingStart.forEach((
|
|
30109
|
-
let [N, F] =
|
|
30107
|
+
const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, T = (w - ((E = _ == null ? void 0 : _.startOffset) != null ? E : 0)) * P, M = Math.max(T / ((C = _ == null ? void 0 : _.startSize) != null ? C : 0), -0.999999);
|
|
30108
|
+
return _.columnSizingStart.forEach((D) => {
|
|
30109
|
+
let [N, F] = D;
|
|
30110
30110
|
c[N] = Math.round(Math.max(F + F * M, 0) * 100) / 100;
|
|
30111
30111
|
}), {
|
|
30112
30112
|
..._,
|
|
30113
|
-
deltaOffset:
|
|
30113
|
+
deltaOffset: T,
|
|
30114
30114
|
deltaPercentage: M
|
|
30115
30115
|
};
|
|
30116
30116
|
}), (t.options.columnResizeMode === "onChange" || x === "end") && t.setColumnSizing((_) => ({
|
|
@@ -31810,12 +31810,12 @@ function sX({
|
|
|
31810
31810
|
setSelectedConnectionId: E,
|
|
31811
31811
|
setSelectedDatabaseName: C,
|
|
31812
31812
|
setSelectedSchemaName: P,
|
|
31813
|
-
setSelectedTableName:
|
|
31813
|
+
setSelectedTableName: T
|
|
31814
31814
|
} = xD();
|
|
31815
31815
|
function M(q) {
|
|
31816
|
-
q.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && C(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable &&
|
|
31816
|
+
q.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && C(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && T(u == null ? void 0 : u.lastSelectedTable);
|
|
31817
31817
|
}
|
|
31818
|
-
function
|
|
31818
|
+
function D() {
|
|
31819
31819
|
if (o && o.length > 0) {
|
|
31820
31820
|
const q = o.find((G) => G.cardId === u.id);
|
|
31821
31821
|
if (q && q.replaceDefault) {
|
|
@@ -31926,7 +31926,7 @@ function sX({
|
|
|
31926
31926
|
...r,
|
|
31927
31927
|
children: [
|
|
31928
31928
|
/* @__PURE__ */ I.jsx(Kq, { frame: e }),
|
|
31929
|
-
|
|
31929
|
+
D()
|
|
31930
31930
|
]
|
|
31931
31931
|
}
|
|
31932
31932
|
);
|
|
@@ -32596,18 +32596,18 @@ function XX(e) {
|
|
|
32596
32596
|
var a = he.useCallback(function(b, y) {
|
|
32597
32597
|
if ("touches" in b && b.touches.length === 2)
|
|
32598
32598
|
return !s.current.allowPinchZoom;
|
|
32599
|
-
var x = zh(b), w = n.current, _ = "deltaX" in b ? b.deltaX : w[0] - x[0], E = "deltaY" in b ? b.deltaY : w[1] - x[1], C, P = b.target,
|
|
32600
|
-
if ("touches" in b &&
|
|
32599
|
+
var x = zh(b), w = n.current, _ = "deltaX" in b ? b.deltaX : w[0] - x[0], E = "deltaY" in b ? b.deltaY : w[1] - x[1], C, P = b.target, T = Math.abs(_) > Math.abs(E) ? "h" : "v";
|
|
32600
|
+
if ("touches" in b && T === "h" && P.type === "range")
|
|
32601
32601
|
return !1;
|
|
32602
|
-
var M = LO(
|
|
32602
|
+
var M = LO(T, P);
|
|
32603
32603
|
if (!M)
|
|
32604
32604
|
return !0;
|
|
32605
|
-
if (M ? C =
|
|
32605
|
+
if (M ? C = T : (C = T === "v" ? "h" : "v", M = LO(T, P)), !M)
|
|
32606
32606
|
return !1;
|
|
32607
32607
|
if (!r.current && "changedTouches" in b && (_ || E) && (r.current = C), !C)
|
|
32608
32608
|
return !0;
|
|
32609
|
-
var
|
|
32610
|
-
return qX(
|
|
32609
|
+
var D = r.current || C;
|
|
32610
|
+
return qX(D, y, b, D === "h" ? _ : E, !0);
|
|
32611
32611
|
}, []), l = he.useCallback(function(b) {
|
|
32612
32612
|
var y = b;
|
|
32613
32613
|
if (!(!$l.length || $l[$l.length - 1] !== i)) {
|
|
@@ -32920,11 +32920,11 @@ const hQ = [
|
|
|
32920
32920
|
gQ,
|
|
32921
32921
|
pi
|
|
32922
32922
|
]), b1 = pi(), [mQ, Za] = kc(Gg), [vQ, bQ] = kc(Gg), yQ = (e) => {
|
|
32923
|
-
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: i, value: s, defaultValue: a, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: g, required: p } = e, m = b1(t), [b, y] = Pe(null), [x, w] = Pe(null), [_, E] = Pe(!1), C = Ka(c), [P = !1,
|
|
32923
|
+
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: i, value: s, defaultValue: a, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: g, required: p } = e, m = b1(t), [b, y] = Pe(null), [x, w] = Pe(null), [_, E] = Pe(!1), C = Ka(c), [P = !1, T] = rr({
|
|
32924
32924
|
prop: r,
|
|
32925
32925
|
defaultProp: o,
|
|
32926
32926
|
onChange: i
|
|
32927
|
-
}), [M,
|
|
32927
|
+
}), [M, D] = rr({
|
|
32928
32928
|
prop: s,
|
|
32929
32929
|
defaultProp: a,
|
|
32930
32930
|
onChange: l
|
|
@@ -32942,9 +32942,9 @@ const hQ = [
|
|
|
32942
32942
|
onValueNodeHasChildrenChange: E,
|
|
32943
32943
|
contentId: Pr(),
|
|
32944
32944
|
value: M,
|
|
32945
|
-
onValueChange:
|
|
32945
|
+
onValueChange: D,
|
|
32946
32946
|
open: P,
|
|
32947
|
-
onOpenChange:
|
|
32947
|
+
onOpenChange: T,
|
|
32948
32948
|
dir: C,
|
|
32949
32949
|
triggerPointerDownPosRef: N,
|
|
32950
32950
|
disabled: g
|
|
@@ -32971,7 +32971,7 @@ const hQ = [
|
|
|
32971
32971
|
name: u,
|
|
32972
32972
|
autoComplete: f,
|
|
32973
32973
|
value: M,
|
|
32974
|
-
onChange: (j) =>
|
|
32974
|
+
onChange: (j) => D(j.target.value),
|
|
32975
32975
|
disabled: g
|
|
32976
32976
|
}, M === void 0 ? /* @__PURE__ */ z("option", {
|
|
32977
32977
|
value: ""
|
|
@@ -33074,10 +33074,10 @@ const hQ = [
|
|
|
33074
33074
|
avoidCollisions: y,
|
|
33075
33075
|
//
|
|
33076
33076
|
...x
|
|
33077
|
-
} = e, w = Za(wc, n), [_, E] = Pe(null), [C, P] = Pe(null),
|
|
33077
|
+
} = e, w = Za(wc, n), [_, E] = Pe(null), [C, P] = Pe(null), T = ft(
|
|
33078
33078
|
t,
|
|
33079
33079
|
(fe) => E(fe)
|
|
33080
|
-
), [M,
|
|
33080
|
+
), [M, D] = Pe(null), [N, F] = Pe(null), B = Kg(n), [q, G] = Pe(!1), j = se(!1);
|
|
33081
33081
|
_e(() => {
|
|
33082
33082
|
if (_)
|
|
33083
33083
|
return Hg(_);
|
|
@@ -33161,7 +33161,7 @@ const hQ = [
|
|
|
33161
33161
|
);
|
|
33162
33162
|
}), ne = Be((fe, oe, Z) => {
|
|
33163
33163
|
const ie = !j.current && !Z;
|
|
33164
|
-
(w.value !== void 0 && w.value === oe || ie) && (
|
|
33164
|
+
(w.value !== void 0 && w.value === oe || ie) && (D(fe), ie && (j.current = !0));
|
|
33165
33165
|
}, [
|
|
33166
33166
|
w.value
|
|
33167
33167
|
]), A = Be(
|
|
@@ -33230,7 +33230,7 @@ const hQ = [
|
|
|
33230
33230
|
onContextMenu: (fe) => fe.preventDefault()
|
|
33231
33231
|
}, x, ge, {
|
|
33232
33232
|
onPlaced: () => G(!0),
|
|
33233
|
-
ref:
|
|
33233
|
+
ref: T,
|
|
33234
33234
|
style: {
|
|
33235
33235
|
// flex layout so we can place the scroll buttons properly
|
|
33236
33236
|
display: "flex",
|
|
@@ -33271,24 +33271,24 @@ const hQ = [
|
|
|
33271
33271
|
}), RQ = /* @__PURE__ */ pe((e, t) => {
|
|
33272
33272
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = Za(wc, n), s = el(wc, n), [a, l] = Pe(null), [c, u] = Pe(null), f = ft(
|
|
33273
33273
|
t,
|
|
33274
|
-
(
|
|
33274
|
+
(T) => u(T)
|
|
33275
33275
|
), g = Kg(n), p = se(!1), m = se(!0), { viewport: b, selectedItem: y, selectedItemText: x, focusSelectedItem: w } = s, _ = Be(() => {
|
|
33276
33276
|
if (i.trigger && i.valueNode && a && c && b && y && x) {
|
|
33277
|
-
const
|
|
33277
|
+
const T = i.trigger.getBoundingClientRect(), M = c.getBoundingClientRect(), D = i.valueNode.getBoundingClientRect(), N = x.getBoundingClientRect();
|
|
33278
33278
|
if (i.dir !== "rtl") {
|
|
33279
|
-
const we = N.left - M.left, W =
|
|
33279
|
+
const we = N.left - M.left, W = D.left - we, be = T.left - W, Oe = T.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
|
|
33280
33280
|
ki,
|
|
33281
33281
|
Ae - Me
|
|
33282
33282
|
]);
|
|
33283
33283
|
a.style.minWidth = Oe + "px", a.style.left = Qe + "px";
|
|
33284
33284
|
} else {
|
|
33285
|
-
const we = M.right - N.right, W = window.innerWidth -
|
|
33285
|
+
const we = M.right - N.right, W = window.innerWidth - D.right - we, be = window.innerWidth - T.right - W, Oe = T.width + be, Me = Math.max(Oe, M.width), Ae = window.innerWidth - ki, Qe = yy(W, [
|
|
33286
33286
|
ki,
|
|
33287
33287
|
Ae - Me
|
|
33288
33288
|
]);
|
|
33289
33289
|
a.style.minWidth = Oe + "px", a.style.right = Qe + "px";
|
|
33290
33290
|
}
|
|
33291
|
-
const F = g(), B = window.innerHeight - ki * 2, q = b.scrollHeight, G = window.getComputedStyle(c), j = parseInt(G.borderTopWidth, 10), ee = parseInt(G.paddingTop, 10), Y = parseInt(G.borderBottomWidth, 10), X = parseInt(G.paddingBottom, 10), re = j + ee + q + X + Y, R = Math.min(y.offsetHeight * 5, re), H = window.getComputedStyle(b), ne = parseInt(H.paddingTop, 10), A = parseInt(H.paddingBottom, 10), ue =
|
|
33291
|
+
const F = g(), B = window.innerHeight - ki * 2, q = b.scrollHeight, G = window.getComputedStyle(c), j = parseInt(G.borderTopWidth, 10), ee = parseInt(G.paddingTop, 10), Y = parseInt(G.borderBottomWidth, 10), X = parseInt(G.paddingBottom, 10), re = j + ee + q + X + Y, R = Math.min(y.offsetHeight * 5, re), H = window.getComputedStyle(b), ne = parseInt(H.paddingTop, 10), A = parseInt(H.paddingBottom, 10), ue = T.top + T.height / 2 - ki, ve = B - ue, ge = y.offsetHeight / 2, fe = y.offsetTop + ge, oe = j + ee + fe, Z = re - oe;
|
|
33292
33292
|
if (oe <= ue) {
|
|
33293
33293
|
const we = y === F[F.length - 1].ref.current;
|
|
33294
33294
|
a.style.bottom = "0px";
|
|
@@ -33328,8 +33328,8 @@ const hQ = [
|
|
|
33328
33328
|
}, [
|
|
33329
33329
|
c
|
|
33330
33330
|
]);
|
|
33331
|
-
const P = Be((
|
|
33332
|
-
|
|
33331
|
+
const P = Be((T) => {
|
|
33332
|
+
T && m.current === !0 && (_(), w == null || w(), m.current = !1);
|
|
33333
33333
|
}, [
|
|
33334
33334
|
_,
|
|
33335
33335
|
w
|
|
@@ -35287,14 +35287,14 @@ function gZ() {
|
|
|
35287
35287
|
Ye.unshift("Warning: " + K), Function.prototype.apply.call(console[O], console, Ye);
|
|
35288
35288
|
}
|
|
35289
35289
|
}
|
|
35290
|
-
var E = !1, C = !1, P = !1,
|
|
35291
|
-
|
|
35290
|
+
var E = !1, C = !1, P = !1, T = !1, M = !1, D;
|
|
35291
|
+
D = Symbol.for("react.module.reference");
|
|
35292
35292
|
function N(O) {
|
|
35293
|
-
return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u ||
|
|
35293
|
+
return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || M || O === o || O === c || O === u || T || O === p || E || C || P || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === f || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
|
|
35294
35294
|
// types supported by any Flight configuration anywhere since
|
|
35295
35295
|
// we don't know which Flight build this will end up being used
|
|
35296
35296
|
// with.
|
|
35297
|
-
O.$$typeof ===
|
|
35297
|
+
O.$$typeof === D || O.getModuleId !== void 0));
|
|
35298
35298
|
}
|
|
35299
35299
|
function F(O, K, le) {
|
|
35300
35300
|
var Re = O.displayName;
|
|
@@ -36572,13 +36572,13 @@ function Ree(e, t) {
|
|
|
36572
36572
|
}, P = function(Y) {
|
|
36573
36573
|
var X;
|
|
36574
36574
|
(X = n.onDayMouseEnter) === null || X === void 0 || X.call(n, e, t, Y);
|
|
36575
|
-
},
|
|
36575
|
+
}, T = function(Y) {
|
|
36576
36576
|
var X;
|
|
36577
36577
|
(X = n.onDayMouseLeave) === null || X === void 0 || X.call(n, e, t, Y);
|
|
36578
36578
|
}, M = function(Y) {
|
|
36579
36579
|
var X;
|
|
36580
36580
|
(X = n.onDayPointerEnter) === null || X === void 0 || X.call(n, e, t, Y);
|
|
36581
|
-
},
|
|
36581
|
+
}, D = function(Y) {
|
|
36582
36582
|
var X;
|
|
36583
36583
|
(X = n.onDayPointerLeave) === null || X === void 0 || X.call(n, e, t, Y);
|
|
36584
36584
|
}, N = function(Y) {
|
|
@@ -36632,9 +36632,9 @@ function Ree(e, t) {
|
|
|
36632
36632
|
onKeyDown: j,
|
|
36633
36633
|
onKeyUp: G,
|
|
36634
36634
|
onMouseEnter: P,
|
|
36635
|
-
onMouseLeave:
|
|
36635
|
+
onMouseLeave: T,
|
|
36636
36636
|
onPointerEnter: M,
|
|
36637
|
-
onPointerLeave:
|
|
36637
|
+
onPointerLeave: D,
|
|
36638
36638
|
onTouchCancel: N,
|
|
36639
36639
|
onTouchEnd: F,
|
|
36640
36640
|
onTouchMove: B,
|
|
@@ -38064,10 +38064,10 @@ function Vte(e, t) {
|
|
|
38064
38064
|
}
|
|
38065
38065
|
let Hte = dr;
|
|
38066
38066
|
function Wte(e, t) {
|
|
38067
|
-
let { value: n, defaultValue: r, onChange: o, form: i, name: s, by: a = null, disabled: l = !1, __demoMode: c = !1, nullable: u = !1, multiple: f = !1, immediate: g = !1, virtual: p = null, ...m } = e, b = !1, y = null, [x = f ? [] : void 0, w] = ute(n, o, r), [_, E] = Gy(Vte, { dataRef: O6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), C = se(!1), P = se({ static: !1, hold: !1 }),
|
|
38067
|
+
let { value: n, defaultValue: r, onChange: o, form: i, name: s, by: a = null, disabled: l = !1, __demoMode: c = !1, nullable: u = !1, multiple: f = !1, immediate: g = !1, virtual: p = null, ...m } = e, b = !1, y = null, [x = f ? [] : void 0, w] = ute(n, o, r), [_, E] = Gy(Vte, { dataRef: O6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), C = se(!1), P = se({ static: !1, hold: !1 }), T = se(null), M = se(null), D = se(null), N = se(null), F = Ct(typeof a == "string" ? (Z, ie) => {
|
|
38068
38068
|
let we = a;
|
|
38069
38069
|
return (Z == null ? void 0 : Z[we]) === (ie == null ? void 0 : ie[we]);
|
|
38070
|
-
} : a ?? ((Z, ie) => Z === ie)), B = Ct((Z) => _.options.findIndex((ie) => F(ie.dataRef.current.value, Z))), q = Be((Z) => qn(j.mode, { 1: () => x.some((ie) => F(ie, Z)), 0: () => F(x, Z) }), [x]), G = Ct((Z) => _.activeOptionIndex === B(Z)), j = Sn(() => ({ ..._, immediate: b, optionsPropsRef: P, labelRef:
|
|
38070
|
+
} : a ?? ((Z, ie) => Z === ie)), B = Ct((Z) => _.options.findIndex((ie) => F(ie.dataRef.current.value, Z))), q = Be((Z) => qn(j.mode, { 1: () => x.some((ie) => F(ie, Z)), 0: () => F(x, Z) }), [x]), G = Ct((Z) => _.activeOptionIndex === B(Z)), j = Sn(() => ({ ..._, immediate: b, optionsPropsRef: P, labelRef: T, inputRef: M, buttonRef: D, optionsRef: N, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
|
|
38071
38071
|
if (C.current && _.activeOptionIndex === null && _.options.length > 0) {
|
|
38072
38072
|
let Z = _.options.findIndex((ie) => !ie.dataRef.current.disabled);
|
|
38073
38073
|
if (Z !== -1)
|
|
@@ -38147,7 +38147,7 @@ function qte(e, t) {
|
|
|
38147
38147
|
}, [p.comboboxState]);
|
|
38148
38148
|
let C = se(!1), P = Ct(() => {
|
|
38149
38149
|
C.current = !0;
|
|
38150
|
-
}),
|
|
38150
|
+
}), T = Ct(() => {
|
|
38151
38151
|
w.nextFrame(() => {
|
|
38152
38152
|
C.current = !1;
|
|
38153
38153
|
});
|
|
@@ -38190,7 +38190,7 @@ function qte(e, t) {
|
|
|
38190
38190
|
p.mode === 0 && p.activationTrigger !== 1 && m.selectActiveOption(), m.closeCombobox();
|
|
38191
38191
|
break;
|
|
38192
38192
|
}
|
|
38193
|
-
}),
|
|
38193
|
+
}), D = Ct((j) => {
|
|
38194
38194
|
c == null || c(j), p.nullable && p.mode === 0 && j.target.value === "" && _(), m.openCombobox();
|
|
38195
38195
|
}), N = Ct((j) => {
|
|
38196
38196
|
var ee, Y, X;
|
|
@@ -38209,7 +38209,7 @@ function qte(e, t) {
|
|
|
38209
38209
|
}, [p.labelId]), q = Sn(() => ({ open: p.comboboxState === 0, disabled: p.disabled }), [p]), G = { ref: b, id: l, role: "combobox", type: f, "aria-controls": (n = p.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": p.comboboxState === 0, "aria-activedescendant": p.activeOptionIndex === null ? void 0 : p.virtual ? (r = p.options.find((j) => {
|
|
38210
38210
|
var ee;
|
|
38211
38211
|
return !((ee = p.virtual) != null && ee.disabled(j.dataRef.current.value)) && p.compare(j.dataRef.current.value, p.virtual.options[p.activeOptionIndex]);
|
|
38212
|
-
})) == null ? void 0 : r.id : (o = p.options[p.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": B, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : p.defaultValue !== void 0 ? u == null ? void 0 : u(p.defaultValue) : null) != null ? s : p.defaultValue, disabled: p.disabled, onCompositionStart: P, onCompositionEnd:
|
|
38212
|
+
})) == null ? void 0 : r.id : (o = p.options[p.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": B, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : p.defaultValue !== void 0 ? u == null ? void 0 : u(p.defaultValue) : null) != null ? s : p.defaultValue, disabled: p.disabled, onCompositionStart: P, onCompositionEnd: T, onKeyDown: M, onChange: D, onFocus: F, onBlur: N };
|
|
38213
38213
|
return Gi({ ourProps: G, theirProps: g, slot: q, defaultTag: Ute, name: "Combobox.Input" });
|
|
38214
38214
|
}
|
|
38215
38215
|
let Gte = "button";
|
|
@@ -38315,7 +38315,7 @@ function tne(e, t) {
|
|
|
38315
38315
|
return u.goToOption(Mn.Nothing);
|
|
38316
38316
|
let F = c.calculateIndex(s);
|
|
38317
38317
|
u.goToOption(Mn.Specific, F);
|
|
38318
|
-
}), C = Ote(), P = Ct((N) => C.update(N)),
|
|
38318
|
+
}), C = Ote(), P = Ct((N) => C.update(N)), T = Ct((N) => {
|
|
38319
38319
|
var F;
|
|
38320
38320
|
if (!C.wasMoved(N) || i || (F = c.virtual) != null && F.disabled(s) || f)
|
|
38321
38321
|
return;
|
|
@@ -38324,8 +38324,8 @@ function tne(e, t) {
|
|
|
38324
38324
|
}), M = Ct((N) => {
|
|
38325
38325
|
var F;
|
|
38326
38326
|
C.wasMoved(N) && (i || (F = c.virtual) != null && F.disabled(s) || f && (c.optionsPropsRef.current.hold || u.goToOption(Mn.Nothing)));
|
|
38327
|
-
}),
|
|
38328
|
-
return Gi({ ourProps: { id: o, ref: y, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: _, onFocus: E, onPointerEnter: P, onMouseEnter: P, onPointerMove:
|
|
38327
|
+
}), D = Sn(() => ({ active: f, selected: g, disabled: i }), [f, g, i]);
|
|
38328
|
+
return Gi({ ourProps: { id: o, ref: y, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: _, onFocus: E, onPointerEnter: P, onMouseEnter: P, onPointerMove: T, onMouseMove: T, onPointerLeave: M, onMouseLeave: M }, theirProps: l, slot: D, defaultTag: ene, name: "Combobox.Option" });
|
|
38329
38329
|
}
|
|
38330
38330
|
let nne = gi(Wte), rne = gi(Yte), one = gi(qte), ine = gi(Xte), sne = gi(Zte), ane = gi(tne), Ml = Object.assign(nne, { Input: one, Button: rne, Label: ine, Options: sne, Option: ane });
|
|
38331
38331
|
function z1() {
|
|
@@ -38473,16 +38473,16 @@ function bne(e) {
|
|
|
38473
38473
|
let yne = "div", TM = Kp.RenderStrategy;
|
|
38474
38474
|
function xne(e, t) {
|
|
38475
38475
|
var n, r;
|
|
38476
|
-
let { beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a, enter: l, enterFrom: c, enterTo: u, entered: f, leave: g, leaveFrom: p, leaveTo: m, ...b } = e, y = se(null), x = tl(y, t), w = (n = b.unmount) == null || n ? Ps.Unmount : Ps.Hidden, { show: _, appear: E, initial: C } = pne(), [P,
|
|
38477
|
-
_e(() =>
|
|
38476
|
+
let { beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a, enter: l, enterFrom: c, enterTo: u, entered: f, leave: g, leaveFrom: p, leaveTo: m, ...b } = e, y = se(null), x = tl(y, t), w = (n = b.unmount) == null || n ? Ps.Unmount : Ps.Hidden, { show: _, appear: E, initial: C } = pne(), [P, T] = Pe(_ ? "visible" : "hidden"), M = gne(), { register: D, unregister: N } = M;
|
|
38477
|
+
_e(() => D(y), [D, y]), _e(() => {
|
|
38478
38478
|
if (w === Ps.Hidden && y.current) {
|
|
38479
38479
|
if (_ && P !== "visible") {
|
|
38480
|
-
|
|
38480
|
+
T("visible");
|
|
38481
38481
|
return;
|
|
38482
38482
|
}
|
|
38483
|
-
return qn(P, { hidden: () => N(y), visible: () =>
|
|
38483
|
+
return qn(P, { hidden: () => N(y), visible: () => D(y) });
|
|
38484
38484
|
}
|
|
38485
|
-
}, [P, y,
|
|
38485
|
+
}, [P, y, D, N, _, w]);
|
|
38486
38486
|
let F = si({ base: cs(b.className), enter: cs(l), enterFrom: cs(c), enterTo: cs(u), entered: cs(f), leave: cs(g), leaveFrom: cs(p), leaveTo: cs(m) }), B = bne({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }), q = k1();
|
|
38487
38487
|
_e(() => {
|
|
38488
38488
|
if (q && P === "visible" && y.current === null)
|
|
@@ -38499,12 +38499,12 @@ function xne(e, t) {
|
|
|
38499
38499
|
Y.removeFlag(Gr.Closing), B.current.afterLeave();
|
|
38500
38500
|
}, idle: () => {
|
|
38501
38501
|
} })), R = DM(() => {
|
|
38502
|
-
|
|
38502
|
+
T("hidden"), N(y);
|
|
38503
38503
|
}, M), H = se(!1);
|
|
38504
38504
|
fne({ immediate: j, container: y, classes: F, direction: ee, onStart: si((ue) => {
|
|
38505
38505
|
H.current = !0, R.onStart(y, ue, X);
|
|
38506
38506
|
}), onStop: si((ue) => {
|
|
38507
|
-
H.current = !1, R.onStop(y, ue, re), ue === "leave" && !Zg(R) && (
|
|
38507
|
+
H.current = !1, R.onStop(y, ue, re), ue === "leave" && !Zg(R) && (T("hidden"), N(y));
|
|
38508
38508
|
}) });
|
|
38509
38509
|
let ne = b, A = { ref: x };
|
|
38510
38510
|
return j ? ne = { ...ne, className: Yp(b.className, ...F.current.enter, ...F.current.enterFrom) } : H.current && (ne.className = Yp(b.className, (r = y.current) == null ? void 0 : r.className), ne.className === "" && delete ne.className), Ee.createElement(Jg.Provider, { value: R }, Ee.createElement(EM, { value: qn(P, { visible: Gr.Open, hidden: Gr.Closed }) | Y.flags }, Gi({ ourProps: A, theirProps: ne, defaultTag: yne, features: TM, visible: P === "visible", name: "Transition.Child" })));
|
|
@@ -38591,12 +38591,12 @@ function One({ filter: e }) {
|
|
|
38591
38591
|
}), w = Sn(
|
|
38592
38592
|
() => {
|
|
38593
38593
|
var M;
|
|
38594
|
-
return (M = p == null ? void 0 : p.records) == null ? void 0 : M.map((
|
|
38594
|
+
return (M = p == null ? void 0 : p.records) == null ? void 0 : M.map((D) => {
|
|
38595
38595
|
let N = e.column.split(".").slice(-1)[0].replace(/"/g, "");
|
|
38596
|
-
return
|
|
38597
|
-
id:
|
|
38596
|
+
return D[N] === void 0 && (N = N.toLowerCase()), {
|
|
38597
|
+
id: D[N],
|
|
38598
38598
|
//idx,
|
|
38599
|
-
value:
|
|
38599
|
+
value: D[N]
|
|
38600
38600
|
// this is needed if
|
|
38601
38601
|
};
|
|
38602
38602
|
});
|
|
@@ -38606,48 +38606,48 @@ function One({ filter: e }) {
|
|
|
38606
38606
|
_e(() => {
|
|
38607
38607
|
if (c) {
|
|
38608
38608
|
const M = c.find(
|
|
38609
|
-
(
|
|
38609
|
+
(D) => D.filterId === e.id
|
|
38610
38610
|
);
|
|
38611
38611
|
if (!M) {
|
|
38612
38612
|
n([]);
|
|
38613
38613
|
return;
|
|
38614
38614
|
}
|
|
38615
38615
|
if (M.operation === "in") {
|
|
38616
|
-
const
|
|
38616
|
+
const D = w == null ? void 0 : w.filter(
|
|
38617
38617
|
(N) => M.values.includes(N.value)
|
|
38618
38618
|
);
|
|
38619
|
-
|
|
38619
|
+
D && n(D);
|
|
38620
38620
|
} else
|
|
38621
38621
|
o(`${M.operation} ${M.values[0]}`);
|
|
38622
38622
|
}
|
|
38623
38623
|
}, [p]), _e(() => {
|
|
38624
38624
|
if (c && !c.find(
|
|
38625
|
-
(
|
|
38625
|
+
(D) => D.filterId === e.id
|
|
38626
38626
|
)) {
|
|
38627
38627
|
n([]);
|
|
38628
38628
|
return;
|
|
38629
38629
|
}
|
|
38630
38630
|
}, [c, e.id]);
|
|
38631
38631
|
function _(M) {
|
|
38632
|
-
return M ? M.filter((
|
|
38633
|
-
const F =
|
|
38634
|
-
if (F.slice(0, F.length - 1).join(".") === e.table &&
|
|
38632
|
+
return M ? M.filter((D) => {
|
|
38633
|
+
const F = D.name.split(".");
|
|
38634
|
+
if (F.slice(0, F.length - 1).join(".") === e.table && D.name !== e.column)
|
|
38635
38635
|
return !0;
|
|
38636
38636
|
}) : [];
|
|
38637
38637
|
}
|
|
38638
38638
|
function E(M) {
|
|
38639
|
-
const
|
|
38639
|
+
const D = Ene(
|
|
38640
38640
|
M[0].toString()
|
|
38641
38641
|
);
|
|
38642
|
-
if (!(
|
|
38642
|
+
if (!(D != null && D.value) || !(D != null && D.operation))
|
|
38643
38643
|
return;
|
|
38644
38644
|
const N = {
|
|
38645
38645
|
filterId: e.id,
|
|
38646
38646
|
connectionType: e.database === "NA" ? "api" : "database",
|
|
38647
38647
|
valueType: p0(e),
|
|
38648
38648
|
name: e.column,
|
|
38649
|
-
operation:
|
|
38650
|
-
values: [Number(
|
|
38649
|
+
operation: D.operation,
|
|
38650
|
+
values: [Number(D.value)]
|
|
38651
38651
|
};
|
|
38652
38652
|
u(N);
|
|
38653
38653
|
}
|
|
@@ -38660,7 +38660,7 @@ function One({ filter: e }) {
|
|
|
38660
38660
|
f(e.id);
|
|
38661
38661
|
return;
|
|
38662
38662
|
}
|
|
38663
|
-
const
|
|
38663
|
+
const D = {
|
|
38664
38664
|
filterId: e.id,
|
|
38665
38665
|
connectionType: e.database === "NA" ? "api" : "database",
|
|
38666
38666
|
name: e.column,
|
|
@@ -38668,7 +38668,7 @@ function One({ filter: e }) {
|
|
|
38668
38668
|
operation: e.operation,
|
|
38669
38669
|
values: M.map((N) => N.value)
|
|
38670
38670
|
};
|
|
38671
|
-
u(
|
|
38671
|
+
u(D);
|
|
38672
38672
|
}
|
|
38673
38673
|
function P() {
|
|
38674
38674
|
var M;
|
|
@@ -38684,8 +38684,8 @@ function One({ filter: e }) {
|
|
|
38684
38684
|
children: "Error"
|
|
38685
38685
|
}
|
|
38686
38686
|
);
|
|
38687
|
-
let
|
|
38688
|
-
return Ku.includes(e.dataType) ?
|
|
38687
|
+
let T = [];
|
|
38688
|
+
return Ku.includes(e.dataType) ? T = w : T = i === "" ? w : w == null ? void 0 : w.filter(
|
|
38689
38689
|
(M) => M.value.toLowerCase().replace(/\s+/g, "").includes(i.toLowerCase().replace(/\s+/g, ""))
|
|
38690
38690
|
), /* @__PURE__ */ I.jsx(
|
|
38691
38691
|
"div",
|
|
@@ -38752,20 +38752,20 @@ function One({ filter: e }) {
|
|
|
38752
38752
|
},
|
|
38753
38753
|
"custom"
|
|
38754
38754
|
),
|
|
38755
|
-
(
|
|
38755
|
+
(T == null ? void 0 : T.length) === 0 && i !== "" ? /* @__PURE__ */ I.jsx("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : T == null ? void 0 : T.map((M) => /* @__PURE__ */ I.jsx(
|
|
38756
38756
|
Ml.Option,
|
|
38757
38757
|
{
|
|
38758
|
-
className: ({ active:
|
|
38758
|
+
className: ({ active: D }) => `relative cursor-default select-none border-b border-muted py-2 pl-10 pr-4 ${D ? "bg-muted" : "text-foreground-900"}`,
|
|
38759
38759
|
value: M,
|
|
38760
|
-
children: ({ selected:
|
|
38760
|
+
children: ({ selected: D, active: N }) => /* @__PURE__ */ I.jsxs("div", { className: "", children: [
|
|
38761
38761
|
/* @__PURE__ */ I.jsx(
|
|
38762
38762
|
"span",
|
|
38763
38763
|
{
|
|
38764
|
-
className: `block ${
|
|
38764
|
+
className: `block ${D ? "font-medium" : "font-normal"}`,
|
|
38765
38765
|
children: typeof M.value == "boolean" ? M.value ? "True" : "False" : M.value
|
|
38766
38766
|
}
|
|
38767
38767
|
),
|
|
38768
|
-
|
|
38768
|
+
D ? /* @__PURE__ */ I.jsx(
|
|
38769
38769
|
"span",
|
|
38770
38770
|
{
|
|
38771
38771
|
className: "absolute inset-y-0 left-0 flex items-center pl-3 text-foreground",
|
|
@@ -38791,29 +38791,29 @@ function One({ filter: e }) {
|
|
|
38791
38791
|
}
|
|
38792
38792
|
const Pne = zC.WidthProvider(zC.Responsive);
|
|
38793
38793
|
function Rne() {
|
|
38794
|
-
var P,
|
|
38794
|
+
var P, T, M;
|
|
38795
38795
|
const e = Ne(
|
|
38796
|
-
(
|
|
38796
|
+
(D) => D.isDashboardEditing
|
|
38797
38797
|
);
|
|
38798
38798
|
Ne(
|
|
38799
|
-
(
|
|
38799
|
+
(D) => D.currentBreakpoint
|
|
38800
38800
|
);
|
|
38801
|
-
const t = Ne((
|
|
38801
|
+
const t = Ne((D) => D.themeStyle), n = Ne((D) => D.selectedSheetId);
|
|
38802
38802
|
(P = Ne(
|
|
38803
|
-
(
|
|
38803
|
+
(D) => {
|
|
38804
38804
|
var N, F;
|
|
38805
|
-
return (F = (N =
|
|
38805
|
+
return (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
|
|
38806
38806
|
}
|
|
38807
38807
|
)) == null || P[0].layout;
|
|
38808
|
-
const r = (
|
|
38809
|
-
(
|
|
38808
|
+
const r = (T = Ne(
|
|
38809
|
+
(D) => {
|
|
38810
38810
|
var N, F;
|
|
38811
|
-
return (F = (N =
|
|
38811
|
+
return (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.filter((B) => B.id === n);
|
|
38812
38812
|
}
|
|
38813
|
-
)) == null ? void 0 :
|
|
38814
|
-
(
|
|
38813
|
+
)) == null ? void 0 : T[0].layouts, o = Ne((D) => D.dashboard.filters), i = Ne(
|
|
38814
|
+
(D) => {
|
|
38815
38815
|
var N, F, B;
|
|
38816
|
-
return (B = (F = (N =
|
|
38816
|
+
return (B = (F = (N = D.dashboard) == null ? void 0 : N.sheets) == null ? void 0 : F.find((q) => q.id === n)) == null ? void 0 : B.frames;
|
|
38817
38817
|
}
|
|
38818
38818
|
), {
|
|
38819
38819
|
getSelectedSheet: s,
|
|
@@ -38825,26 +38825,26 @@ function Rne() {
|
|
|
38825
38825
|
removeFilter: g,
|
|
38826
38826
|
updateFilter: p,
|
|
38827
38827
|
removeFilterValue: m
|
|
38828
|
-
} = Ne((
|
|
38829
|
-
f(
|
|
38828
|
+
} = Ne((D) => D.actions), b = s(), y = Be((D) => {
|
|
38829
|
+
f(D);
|
|
38830
38830
|
}, []), x = Be(
|
|
38831
|
-
(
|
|
38831
|
+
(D, N) => {
|
|
38832
38832
|
b != null && b.id && u(b.id, N);
|
|
38833
38833
|
},
|
|
38834
38834
|
[b == null ? void 0 : b.id, u]
|
|
38835
38835
|
);
|
|
38836
38836
|
if (!n)
|
|
38837
38837
|
return null;
|
|
38838
|
-
const w = (
|
|
38838
|
+
const w = (D, N) => /* @__PURE__ */ I.jsx(
|
|
38839
38839
|
kM,
|
|
38840
38840
|
{
|
|
38841
38841
|
className: "after:content-none",
|
|
38842
38842
|
ref: N,
|
|
38843
|
-
handleAxis:
|
|
38843
|
+
handleAxis: D
|
|
38844
38844
|
}
|
|
38845
|
-
), _ = (
|
|
38845
|
+
), _ = (D) => dg.includes(D.dataType) ? /* @__PURE__ */ I.jsx(Yee, { filter: D }) : /* @__PURE__ */ I.jsx(One, { filter: D });
|
|
38846
38846
|
function E() {
|
|
38847
|
-
return o == null ? void 0 : o.map((
|
|
38847
|
+
return o == null ? void 0 : o.map((D) => /* @__PURE__ */ I.jsxs(
|
|
38848
38848
|
"div",
|
|
38849
38849
|
{
|
|
38850
38850
|
className: ke(
|
|
@@ -38855,18 +38855,18 @@ function Rne() {
|
|
|
38855
38855
|
fc,
|
|
38856
38856
|
{
|
|
38857
38857
|
className: "my-1",
|
|
38858
|
-
text:
|
|
38859
|
-
onSave: (N) => p({ ...
|
|
38858
|
+
text: D.title || D.column,
|
|
38859
|
+
onSave: (N) => p({ ...D, title: N }),
|
|
38860
38860
|
children: /* @__PURE__ */ I.jsxs("div", { className: "group mb-1 flex grow items-center justify-between", children: [
|
|
38861
38861
|
/* @__PURE__ */ I.jsxs("div", { className: "flex grow items-center gap-2", children: [
|
|
38862
|
-
/* @__PURE__ */ I.jsx(Jo, { className: "inline-block text-sm", children:
|
|
38863
|
-
e && /* @__PURE__ */ I.jsx(oJ, { filter:
|
|
38862
|
+
/* @__PURE__ */ I.jsx(Jo, { className: "inline-block text-sm", children: D.title }),
|
|
38863
|
+
e && /* @__PURE__ */ I.jsx(oJ, { filter: D })
|
|
38864
38864
|
] }),
|
|
38865
38865
|
/* @__PURE__ */ I.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
38866
38866
|
/* @__PURE__ */ I.jsx(
|
|
38867
38867
|
"div",
|
|
38868
38868
|
{
|
|
38869
|
-
onClick: () => m(
|
|
38869
|
+
onClick: () => m(D.id),
|
|
38870
38870
|
className: "invisible cursor-pointer text-xs text-muted-foreground hover:text-foreground hover:underline group-hover:visible",
|
|
38871
38871
|
children: "Clear"
|
|
38872
38872
|
}
|
|
@@ -38875,7 +38875,7 @@ function Rne() {
|
|
|
38875
38875
|
PY,
|
|
38876
38876
|
{
|
|
38877
38877
|
onClick: () => {
|
|
38878
|
-
m(
|
|
38878
|
+
m(D.id), g(D.id);
|
|
38879
38879
|
},
|
|
38880
38880
|
className: "invisible h-3 w-3 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
38881
38881
|
}
|
|
@@ -38884,14 +38884,14 @@ function Rne() {
|
|
|
38884
38884
|
] })
|
|
38885
38885
|
}
|
|
38886
38886
|
),
|
|
38887
|
-
_(
|
|
38887
|
+
_(D)
|
|
38888
38888
|
]
|
|
38889
38889
|
},
|
|
38890
|
-
|
|
38890
|
+
D.id
|
|
38891
38891
|
));
|
|
38892
38892
|
}
|
|
38893
38893
|
function C() {
|
|
38894
|
-
return i == null ? void 0 : i.map((
|
|
38894
|
+
return i == null ? void 0 : i.map((D) => /* @__PURE__ */ I.jsx(
|
|
38895
38895
|
"div",
|
|
38896
38896
|
{
|
|
38897
38897
|
role: "dashboard-frame-container",
|
|
@@ -38900,9 +38900,9 @@ function Rne() {
|
|
|
38900
38900
|
// To display resize handles on hovering the card,
|
|
38901
38901
|
t == null ? void 0 : t.dashboardCardContainer
|
|
38902
38902
|
),
|
|
38903
|
-
children: /* @__PURE__ */ I.jsx(sX, { frame:
|
|
38903
|
+
children: /* @__PURE__ */ I.jsx(sX, { frame: D })
|
|
38904
38904
|
},
|
|
38905
|
-
|
|
38905
|
+
D.id
|
|
38906
38906
|
));
|
|
38907
38907
|
}
|
|
38908
38908
|
return (
|
|
@@ -40008,12 +40008,12 @@ async function HM(...e) {
|
|
|
40008
40008
|
if (e.length < 3)
|
|
40009
40009
|
return E();
|
|
40010
40010
|
let C = r, P;
|
|
40011
|
-
const
|
|
40011
|
+
const T = Ty();
|
|
40012
40012
|
x[p] = [
|
|
40013
|
-
|
|
40013
|
+
T,
|
|
40014
40014
|
0
|
|
40015
40015
|
];
|
|
40016
|
-
const M = !kt(l),
|
|
40016
|
+
const M = !kt(l), D = m(), N = D.data, F = D._c, B = kt(F) ? N : F;
|
|
40017
40017
|
if (M && (l = ei(l) ? l(B, N) : l, b({
|
|
40018
40018
|
data: l,
|
|
40019
40019
|
_c: B
|
|
@@ -40026,7 +40026,7 @@ async function HM(...e) {
|
|
|
40026
40026
|
if (C && Gne(C))
|
|
40027
40027
|
if (C = await C.catch((q) => {
|
|
40028
40028
|
P = q;
|
|
40029
|
-
}),
|
|
40029
|
+
}), T !== x[p][0]) {
|
|
40030
40030
|
if (P)
|
|
40031
40031
|
throw P;
|
|
40032
40032
|
return C;
|
|
@@ -40185,7 +40185,7 @@ const pP = Ee.use || ((e) => {
|
|
|
40185
40185
|
}), Nb = {
|
|
40186
40186
|
dedupe: !0
|
|
40187
40187
|
}, wre = (e, t, n) => {
|
|
40188
|
-
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: g } = n, [p, m, b, y] = Ii.get(r), [x, w] = V1(e), _ = se(!1), E = se(!1), C = se(x), P = se(t),
|
|
40188
|
+
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: g } = n, [p, m, b, y] = Ii.get(r), [x, w] = V1(e), _ = se(!1), E = se(!1), C = se(x), P = se(t), T = se(n), M = () => T.current, D = () => M().isVisible() && M().isOnline(), [N, F, B, q] = zM(r, x), G = se({}).current, j = kt(s) ? n.fallback[x] : s, ee = (W, be) => {
|
|
40189
40189
|
for (const Oe in G) {
|
|
40190
40190
|
const Me = Oe;
|
|
40191
40191
|
if (Me === "data") {
|
|
@@ -40262,7 +40262,7 @@ const pP = Ee.use || ((e) => {
|
|
|
40262
40262
|
} catch (pn) {
|
|
40263
40263
|
Bt();
|
|
40264
40264
|
const ce = M(), { shouldRetryOnError: $e } = ce;
|
|
40265
|
-
ce.isPaused() || (nt.error = pn, Ue && Ve() && (ce.onError(pn, x, ce), ($e === !0 || ei($e) && $e(pn)) && (!M().revalidateOnFocus || !M().revalidateOnReconnect ||
|
|
40265
|
+
ce.isPaused() || (nt.error = pn, Ue && Ve() && (ce.onError(pn, x, ce), ($e === !0 || ei($e) && $e(pn)) && (!M().revalidateOnFocus || !M().revalidateOnReconnect || D()) && ce.onErrorRetry(pn, x, ce, (He) => {
|
|
40266
40266
|
const Je = p[x];
|
|
40267
40267
|
Je && Je[0] && Je[0](wu.ERROR_REVALIDATE_EVENT, He);
|
|
40268
40268
|
}, {
|
|
@@ -40294,7 +40294,7 @@ const pP = Ee.use || ((e) => {
|
|
|
40294
40294
|
[]
|
|
40295
40295
|
);
|
|
40296
40296
|
if (Ab(() => {
|
|
40297
|
-
P.current = t,
|
|
40297
|
+
P.current = t, T.current = n, kt(H) || (ue.current = H);
|
|
40298
40298
|
}), Ab(() => {
|
|
40299
40299
|
if (!x)
|
|
40300
40300
|
return;
|
|
@@ -40303,9 +40303,9 @@ const pP = Ee.use || ((e) => {
|
|
|
40303
40303
|
const Me = xre(x, p, (Ae, Qe = {}) => {
|
|
40304
40304
|
if (Ae == wu.FOCUS_EVENT) {
|
|
40305
40305
|
const Ue = Date.now();
|
|
40306
|
-
M().revalidateOnFocus && Ue > be &&
|
|
40306
|
+
M().revalidateOnFocus && Ue > be && D() && (be = Ue + M().focusThrottleInterval, W());
|
|
40307
40307
|
} else if (Ae == wu.RECONNECT_EVENT)
|
|
40308
|
-
M().revalidateOnReconnect &&
|
|
40308
|
+
M().revalidateOnReconnect && D() && W();
|
|
40309
40309
|
else {
|
|
40310
40310
|
if (Ae == wu.MUTATE_EVENT)
|
|
40311
40311
|
return ie();
|
|
@@ -40340,7 +40340,7 @@ const pP = Ee.use || ((e) => {
|
|
|
40340
40340
|
]), P6(ve), i && kt(ne) && x) {
|
|
40341
40341
|
if (!dP && Ed)
|
|
40342
40342
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
40343
|
-
P.current = t,
|
|
40343
|
+
P.current = t, T.current = n, E.current = !1;
|
|
40344
40344
|
const W = y[x];
|
|
40345
40345
|
if (!kt(W)) {
|
|
40346
40346
|
const be = we(W);
|
|
@@ -40377,9 +40377,9 @@ var _re = async (e, t, n, r, o, i, s, a, l, c, u, f, g, p, m, b, y) => {
|
|
|
40377
40377
|
role: E,
|
|
40378
40378
|
content: C,
|
|
40379
40379
|
experimental_attachments: P,
|
|
40380
|
-
name:
|
|
40380
|
+
name: T,
|
|
40381
40381
|
data: M,
|
|
40382
|
-
annotations:
|
|
40382
|
+
annotations: D,
|
|
40383
40383
|
toolInvocations: N,
|
|
40384
40384
|
function_call: F,
|
|
40385
40385
|
tool_calls: B,
|
|
@@ -40390,9 +40390,9 @@ var _re = async (e, t, n, r, o, i, s, a, l, c, u, f, g, p, m, b, y) => {
|
|
|
40390
40390
|
...P !== void 0 && {
|
|
40391
40391
|
experimental_attachments: P
|
|
40392
40392
|
},
|
|
40393
|
-
...
|
|
40393
|
+
...T !== void 0 && { name: T },
|
|
40394
40394
|
...M !== void 0 && { data: M },
|
|
40395
|
-
...
|
|
40395
|
+
...D !== void 0 && { annotations: D },
|
|
40396
40396
|
...N !== void 0 && { toolInvocations: N },
|
|
40397
40397
|
// outdated function/tool call handling (TODO deprecate):
|
|
40398
40398
|
tool_call_id: q,
|
|
@@ -40470,14 +40470,14 @@ function Sre({
|
|
|
40470
40470
|
keepLastMessageOnError: P = !1
|
|
40471
40471
|
} = {}) {
|
|
40472
40472
|
g && (p ?? (p = g === "text" ? "text" : void 0));
|
|
40473
|
-
const
|
|
40474
|
-
[
|
|
40473
|
+
const T = R6(), M = t ?? T, D = typeof e == "string" ? [e, M] : M, [N] = Pe([]), { data: F, mutate: B } = qh(
|
|
40474
|
+
[D, "messages"],
|
|
40475
40475
|
null,
|
|
40476
40476
|
{ fallbackData: n ?? N }
|
|
40477
40477
|
), { data: q = !1, mutate: G } = qh(
|
|
40478
|
-
[
|
|
40478
|
+
[D, "loading"],
|
|
40479
40479
|
null
|
|
40480
|
-
), { data: j, mutate: ee } = qh([
|
|
40480
|
+
), { data: j, mutate: ee } = qh([D, "streamData"], null), { data: Y = void 0, mutate: X } = qh([D, "error"], null), re = se(F || []);
|
|
40481
40481
|
_e(() => {
|
|
40482
40482
|
re.current = F || [];
|
|
40483
40483
|
}, [F]);
|
|
@@ -40756,7 +40756,7 @@ function Ere(e, t) {
|
|
|
40756
40756
|
}, e);
|
|
40757
40757
|
}
|
|
40758
40758
|
const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PURE__ */ pe((e, t) => {
|
|
40759
|
-
const { __scopeScrollArea: n, type: r = "hover", dir: o, scrollHideDelay: i = 600, ...s } = e, [a, l] = Pe(null), [c, u] = Pe(null), [f, g] = Pe(null), [p, m] = Pe(null), [b, y] = Pe(null), [x, w] = Pe(0), [_, E] = Pe(0), [C, P] = Pe(!1), [
|
|
40759
|
+
const { __scopeScrollArea: n, type: r = "hover", dir: o, scrollHideDelay: i = 600, ...s } = e, [a, l] = Pe(null), [c, u] = Pe(null), [f, g] = Pe(null), [p, m] = Pe(null), [b, y] = Pe(null), [x, w] = Pe(0), [_, E] = Pe(0), [C, P] = Pe(!1), [T, M] = Pe(!1), D = ft(
|
|
40760
40760
|
t,
|
|
40761
40761
|
(F) => l(F)
|
|
40762
40762
|
), N = Ka(o);
|
|
@@ -40776,14 +40776,14 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
|
|
|
40776
40776
|
onScrollbarXEnabledChange: P,
|
|
40777
40777
|
scrollbarY: b,
|
|
40778
40778
|
onScrollbarYChange: y,
|
|
40779
|
-
scrollbarYEnabled:
|
|
40779
|
+
scrollbarYEnabled: T,
|
|
40780
40780
|
onScrollbarYEnabledChange: M,
|
|
40781
40781
|
onCornerWidthChange: w,
|
|
40782
40782
|
onCornerHeightChange: E
|
|
40783
40783
|
}, /* @__PURE__ */ z(Xe.div, ae({
|
|
40784
40784
|
dir: N
|
|
40785
40785
|
}, s, {
|
|
40786
|
-
ref:
|
|
40786
|
+
ref: D,
|
|
40787
40787
|
style: {
|
|
40788
40788
|
position: "relative",
|
|
40789
40789
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -41081,11 +41081,11 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
|
|
|
41081
41081
|
}), [Are, XM] = GM(Yi), QM = /* @__PURE__ */ pe((e, t) => {
|
|
41082
41082
|
const { __scopeScrollArea: n, sizes: r, hasThumb: o, onThumbChange: i, onThumbPointerUp: s, onThumbPointerDown: a, onThumbPositionChange: l, onDragScroll: c, onWheelScroll: u, onResize: f, ...g } = e, p = _o(Yi, n), [m, b] = Pe(null), y = ft(
|
|
41083
41083
|
t,
|
|
41084
|
-
(
|
|
41085
|
-
), x = se(null), w = se(""), _ = p.viewport, E = r.content - r.viewport, C = kn(u), P = kn(l),
|
|
41086
|
-
function M(
|
|
41084
|
+
(D) => b(D)
|
|
41085
|
+
), x = se(null), w = se(""), _ = p.viewport, E = r.content - r.viewport, C = kn(u), P = kn(l), T = nm(f, 10);
|
|
41086
|
+
function M(D) {
|
|
41087
41087
|
if (x.current) {
|
|
41088
|
-
const N =
|
|
41088
|
+
const N = D.clientX - x.current.left, F = D.clientY - x.current.top;
|
|
41089
41089
|
c({
|
|
41090
41090
|
x: N,
|
|
41091
41091
|
y: F
|
|
@@ -41093,13 +41093,13 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
|
|
|
41093
41093
|
}
|
|
41094
41094
|
}
|
|
41095
41095
|
return _e(() => {
|
|
41096
|
-
const
|
|
41096
|
+
const D = (N) => {
|
|
41097
41097
|
const F = N.target;
|
|
41098
41098
|
(m == null ? void 0 : m.contains(F)) && C(N, E);
|
|
41099
41099
|
};
|
|
41100
|
-
return document.addEventListener("wheel",
|
|
41100
|
+
return document.addEventListener("wheel", D, {
|
|
41101
41101
|
passive: !1
|
|
41102
|
-
}), () => document.removeEventListener("wheel",
|
|
41102
|
+
}), () => document.removeEventListener("wheel", D, {
|
|
41103
41103
|
passive: !1
|
|
41104
41104
|
});
|
|
41105
41105
|
}, [
|
|
@@ -41110,7 +41110,7 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
|
|
|
41110
41110
|
]), _e(P, [
|
|
41111
41111
|
r,
|
|
41112
41112
|
P
|
|
41113
|
-
]), Sc(m,
|
|
41113
|
+
]), Sc(m, T), Sc(p.content, T), /* @__PURE__ */ z(Are, {
|
|
41114
41114
|
scope: n,
|
|
41115
41115
|
scrollbar: m,
|
|
41116
41116
|
hasThumb: o,
|
|
@@ -41124,13 +41124,13 @@ const qM = "ScrollArea", [GM, ope] = zn(qM), [Ore, _o] = GM(qM), Pre = /* @__PUR
|
|
|
41124
41124
|
position: "absolute",
|
|
41125
41125
|
...g.style
|
|
41126
41126
|
},
|
|
41127
|
-
onPointerDown: De(e.onPointerDown, (
|
|
41128
|
-
|
|
41127
|
+
onPointerDown: De(e.onPointerDown, (D) => {
|
|
41128
|
+
D.button === 0 && (D.target.setPointerCapture(D.pointerId), x.current = m.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), M(D));
|
|
41129
41129
|
}),
|
|
41130
41130
|
onPointerMove: De(e.onPointerMove, M),
|
|
41131
|
-
onPointerUp: De(e.onPointerUp, (
|
|
41132
|
-
const N =
|
|
41133
|
-
N.hasPointerCapture(
|
|
41131
|
+
onPointerUp: De(e.onPointerUp, (D) => {
|
|
41132
|
+
const N = D.target;
|
|
41133
|
+
N.hasPointerCapture(D.pointerId) && N.releasePointerCapture(D.pointerId), document.body.style.webkitUserSelect = w.current, p.viewport && (p.viewport.style.scrollBehavior = ""), x.current = null;
|
|
41134
41134
|
})
|
|
41135
41135
|
})));
|
|
41136
41136
|
}), My = "ScrollAreaThumb", Ire = /* @__PURE__ */ pe((e, t) => {
|
|
@@ -43380,15 +43380,15 @@ function pie(e) {
|
|
|
43380
43380
|
break;
|
|
43381
43381
|
}
|
|
43382
43382
|
x(r);
|
|
43383
|
-
let
|
|
43384
|
-
for (;
|
|
43385
|
-
t.events[
|
|
43383
|
+
let T = E;
|
|
43384
|
+
for (; T < t.events.length; )
|
|
43385
|
+
t.events[T][1].end = Object.assign({}, P), T++;
|
|
43386
43386
|
return ui(
|
|
43387
43387
|
t.events,
|
|
43388
43388
|
C + 1,
|
|
43389
43389
|
0,
|
|
43390
43390
|
t.events.slice(E)
|
|
43391
|
-
), t.events.length =
|
|
43391
|
+
), t.events.length = T, c(_);
|
|
43392
43392
|
}
|
|
43393
43393
|
return a(_);
|
|
43394
43394
|
}
|
|
@@ -43452,23 +43452,23 @@ function pie(e) {
|
|
|
43452
43452
|
o.events[P][1].end.offset > s)
|
|
43453
43453
|
)
|
|
43454
43454
|
return;
|
|
43455
|
-
const
|
|
43456
|
-
let M =
|
|
43455
|
+
const T = t.events.length;
|
|
43456
|
+
let M = T, D, N;
|
|
43457
43457
|
for (; M--; )
|
|
43458
43458
|
if (t.events[M][0] === "exit" && t.events[M][1].type === "chunkFlow") {
|
|
43459
|
-
if (
|
|
43459
|
+
if (D) {
|
|
43460
43460
|
N = t.events[M][1].end;
|
|
43461
43461
|
break;
|
|
43462
43462
|
}
|
|
43463
|
-
|
|
43463
|
+
D = !0;
|
|
43464
43464
|
}
|
|
43465
|
-
for (x(r), P =
|
|
43465
|
+
for (x(r), P = T; P < t.events.length; )
|
|
43466
43466
|
t.events[P][1].end = Object.assign({}, N), P++;
|
|
43467
43467
|
ui(
|
|
43468
43468
|
t.events,
|
|
43469
43469
|
M + 1,
|
|
43470
43470
|
0,
|
|
43471
|
-
t.events.slice(
|
|
43471
|
+
t.events.slice(T)
|
|
43472
43472
|
), t.events.length = P;
|
|
43473
43473
|
}
|
|
43474
43474
|
}
|
|
@@ -43738,8 +43738,8 @@ function Oie(e, t, n) {
|
|
|
43738
43738
|
return c(P);
|
|
43739
43739
|
}
|
|
43740
43740
|
function c(P) {
|
|
43741
|
-
const
|
|
43742
|
-
return i =
|
|
43741
|
+
const T = r.events[r.events.length - 1];
|
|
43742
|
+
return i = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, a = P, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(P);
|
|
43743
43743
|
}
|
|
43744
43744
|
function u(P) {
|
|
43745
43745
|
return P === a ? (s++, e.consume(P), u) : s < 3 ? n(P) : (e.exit("codeFencedFenceSequence"), Nt(P) ? Qt(e, f, "whitespace")(P) : f(P));
|
|
@@ -43783,8 +43783,8 @@ function Oie(e, t, n) {
|
|
|
43783
43783
|
function E(P) {
|
|
43784
43784
|
return e.exit("codeFenced"), t(P);
|
|
43785
43785
|
}
|
|
43786
|
-
function C(P,
|
|
43787
|
-
let
|
|
43786
|
+
function C(P, T, M) {
|
|
43787
|
+
let D = 0;
|
|
43788
43788
|
return N;
|
|
43789
43789
|
function N(j) {
|
|
43790
43790
|
return P.enter("lineEnding"), P.consume(j), P.exit("lineEnding"), F;
|
|
@@ -43801,10 +43801,10 @@ function Oie(e, t, n) {
|
|
|
43801
43801
|
return j === a ? (P.enter("codeFencedFenceSequence"), q(j)) : M(j);
|
|
43802
43802
|
}
|
|
43803
43803
|
function q(j) {
|
|
43804
|
-
return j === a ? (
|
|
43804
|
+
return j === a ? (D++, P.consume(j), q) : D >= s ? (P.exit("codeFencedFenceSequence"), Nt(j) ? Qt(P, G, "whitespace")(j) : G(j)) : M(j);
|
|
43805
43805
|
}
|
|
43806
43806
|
function G(j) {
|
|
43807
|
-
return j === null || ot(j) ? (P.exit("codeFencedFence"),
|
|
43807
|
+
return j === null || ot(j) ? (P.exit("codeFencedFence"), T(j)) : M(j);
|
|
43808
43808
|
}
|
|
43809
43809
|
}
|
|
43810
43810
|
}
|
|
@@ -44336,15 +44336,15 @@ function tse(e, t, n) {
|
|
|
44336
44336
|
return A === 61 ? (e.consume(A), P) : Nt(A) ? (e.consume(A), C) : _(A);
|
|
44337
44337
|
}
|
|
44338
44338
|
function P(A) {
|
|
44339
|
-
return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A,
|
|
44339
|
+
return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A, T) : Nt(A) ? (e.consume(A), P) : M(A);
|
|
44340
44340
|
}
|
|
44341
|
-
function
|
|
44342
|
-
return A === l ? (e.consume(A), l = null,
|
|
44341
|
+
function T(A) {
|
|
44342
|
+
return A === l ? (e.consume(A), l = null, D) : A === null || ot(A) ? n(A) : (e.consume(A), T);
|
|
44343
44343
|
}
|
|
44344
44344
|
function M(A) {
|
|
44345
44345
|
return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || $r(A) ? C(A) : (e.consume(A), M);
|
|
44346
44346
|
}
|
|
44347
|
-
function
|
|
44347
|
+
function D(A) {
|
|
44348
44348
|
return A === 47 || A === 62 || Nt(A) ? _(A) : n(A);
|
|
44349
44349
|
}
|
|
44350
44350
|
function N(A) {
|
|
@@ -44470,22 +44470,22 @@ function ise(e, t, n) {
|
|
|
44470
44470
|
return ti(R) ? (e.consume(R), P) : n(R);
|
|
44471
44471
|
}
|
|
44472
44472
|
function P(R) {
|
|
44473
|
-
return R === 45 || Yr(R) ? (e.consume(R), P) :
|
|
44473
|
+
return R === 45 || Yr(R) ? (e.consume(R), P) : T(R);
|
|
44474
44474
|
}
|
|
44475
|
-
function
|
|
44476
|
-
return ot(R) ? (s =
|
|
44475
|
+
function T(R) {
|
|
44476
|
+
return ot(R) ? (s = T, Y(R)) : Nt(R) ? (e.consume(R), T) : ee(R);
|
|
44477
44477
|
}
|
|
44478
44478
|
function M(R) {
|
|
44479
|
-
return R === 45 || Yr(R) ? (e.consume(R), M) : R === 47 || R === 62 || $r(R) ?
|
|
44479
|
+
return R === 45 || Yr(R) ? (e.consume(R), M) : R === 47 || R === 62 || $r(R) ? D(R) : n(R);
|
|
44480
44480
|
}
|
|
44481
|
-
function
|
|
44482
|
-
return R === 47 ? (e.consume(R), ee) : R === 58 || R === 95 || ti(R) ? (e.consume(R), N) : ot(R) ? (s =
|
|
44481
|
+
function D(R) {
|
|
44482
|
+
return R === 47 ? (e.consume(R), ee) : R === 58 || R === 95 || ti(R) ? (e.consume(R), N) : ot(R) ? (s = D, Y(R)) : Nt(R) ? (e.consume(R), D) : ee(R);
|
|
44483
44483
|
}
|
|
44484
44484
|
function N(R) {
|
|
44485
44485
|
return R === 45 || R === 46 || R === 58 || R === 95 || Yr(R) ? (e.consume(R), N) : F(R);
|
|
44486
44486
|
}
|
|
44487
44487
|
function F(R) {
|
|
44488
|
-
return R === 61 ? (e.consume(R), B) : ot(R) ? (s = F, Y(R)) : Nt(R) ? (e.consume(R), F) :
|
|
44488
|
+
return R === 61 ? (e.consume(R), B) : ot(R) ? (s = F, Y(R)) : Nt(R) ? (e.consume(R), F) : D(R);
|
|
44489
44489
|
}
|
|
44490
44490
|
function B(R) {
|
|
44491
44491
|
return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), o = R, q) : ot(R) ? (s = B, Y(R)) : Nt(R) ? (e.consume(R), B) : (e.consume(R), G);
|
|
@@ -44494,10 +44494,10 @@ function ise(e, t, n) {
|
|
|
44494
44494
|
return R === o ? (e.consume(R), o = void 0, j) : R === null ? n(R) : ot(R) ? (s = q, Y(R)) : (e.consume(R), q);
|
|
44495
44495
|
}
|
|
44496
44496
|
function G(R) {
|
|
44497
|
-
return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 96 ? n(R) : R === 47 || R === 62 || $r(R) ?
|
|
44497
|
+
return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 96 ? n(R) : R === 47 || R === 62 || $r(R) ? D(R) : (e.consume(R), G);
|
|
44498
44498
|
}
|
|
44499
44499
|
function j(R) {
|
|
44500
|
-
return R === 47 || R === 62 || $r(R) ?
|
|
44500
|
+
return R === 47 || R === 62 || $r(R) ? D(R) : n(R);
|
|
44501
44501
|
}
|
|
44502
44502
|
function ee(R) {
|
|
44503
44503
|
return R === 62 ? (e.consume(R), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(R);
|
|
@@ -45070,9 +45070,9 @@ function Nse(e, t, n) {
|
|
|
45070
45070
|
consume: w,
|
|
45071
45071
|
enter: _,
|
|
45072
45072
|
exit: E,
|
|
45073
|
-
attempt:
|
|
45074
|
-
check:
|
|
45075
|
-
interrupt:
|
|
45073
|
+
attempt: T(C),
|
|
45074
|
+
check: T(P),
|
|
45075
|
+
interrupt: T(P, {
|
|
45076
45076
|
interrupt: !0
|
|
45077
45077
|
})
|
|
45078
45078
|
}, c = {
|
|
@@ -45142,7 +45142,7 @@ function Nse(e, t, n) {
|
|
|
45142
45142
|
function P(F, B) {
|
|
45143
45143
|
B.restore();
|
|
45144
45144
|
}
|
|
45145
|
-
function
|
|
45145
|
+
function T(F, B) {
|
|
45146
45146
|
return q;
|
|
45147
45147
|
function q(G, j, ee) {
|
|
45148
45148
|
let Y, X, re, R;
|
|
@@ -45168,7 +45168,7 @@ function Nse(e, t, n) {
|
|
|
45168
45168
|
function A(ge) {
|
|
45169
45169
|
return fe;
|
|
45170
45170
|
function fe(oe) {
|
|
45171
|
-
return R =
|
|
45171
|
+
return R = D(), re = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? ve() : ge.tokenize.call(
|
|
45172
45172
|
// If we do have fields, create an object w/ `context` as its
|
|
45173
45173
|
// prototype.
|
|
45174
45174
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -45195,7 +45195,7 @@ function Nse(e, t, n) {
|
|
|
45195
45195
|
F.resolve(c.events.slice(B), c)
|
|
45196
45196
|
), F.resolveTo && (c.events = F.resolveTo(c.events, c));
|
|
45197
45197
|
}
|
|
45198
|
-
function
|
|
45198
|
+
function D() {
|
|
45199
45199
|
const F = m(), B = c.previous, q = c.currentConstruct, G = c.events.length, j = Array.from(a);
|
|
45200
45200
|
return {
|
|
45201
45201
|
restore: ee,
|
|
@@ -45420,20 +45420,20 @@ function nae(e) {
|
|
|
45420
45420
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
45421
45421
|
enter: {
|
|
45422
45422
|
autolink: i(Ue),
|
|
45423
|
-
autolinkProtocol:
|
|
45424
|
-
autolinkEmail:
|
|
45423
|
+
autolinkProtocol: D,
|
|
45424
|
+
autolinkEmail: D,
|
|
45425
45425
|
atxHeading: i(Oe),
|
|
45426
45426
|
blockQuote: i(Z),
|
|
45427
|
-
characterEscape:
|
|
45428
|
-
characterReference:
|
|
45427
|
+
characterEscape: D,
|
|
45428
|
+
characterReference: D,
|
|
45429
45429
|
codeFenced: i(ie),
|
|
45430
45430
|
codeFencedFenceInfo: s,
|
|
45431
45431
|
codeFencedFenceMeta: s,
|
|
45432
45432
|
codeIndented: i(ie, s),
|
|
45433
45433
|
codeText: i(we, s),
|
|
45434
|
-
codeTextData:
|
|
45435
|
-
data:
|
|
45436
|
-
codeFlowValue:
|
|
45434
|
+
codeTextData: D,
|
|
45435
|
+
data: D,
|
|
45436
|
+
codeFlowValue: D,
|
|
45437
45437
|
definition: i(W),
|
|
45438
45438
|
definitionDestinationString: s,
|
|
45439
45439
|
definitionLabelString: s,
|
|
@@ -45442,9 +45442,9 @@ function nae(e) {
|
|
|
45442
45442
|
hardBreakEscape: i(Me),
|
|
45443
45443
|
hardBreakTrailing: i(Me),
|
|
45444
45444
|
htmlFlow: i(Ae, s),
|
|
45445
|
-
htmlFlowData:
|
|
45445
|
+
htmlFlowData: D,
|
|
45446
45446
|
htmlText: i(Ae, s),
|
|
45447
|
-
htmlTextData:
|
|
45447
|
+
htmlTextData: D,
|
|
45448
45448
|
image: i(Qe),
|
|
45449
45449
|
label: s,
|
|
45450
45450
|
link: i(Ue),
|
|
@@ -45506,7 +45506,7 @@ function nae(e) {
|
|
|
45506
45506
|
resourceTitleString: H,
|
|
45507
45507
|
resource: ne,
|
|
45508
45508
|
setextHeading: l(M),
|
|
45509
|
-
setextHeadingLineSequence:
|
|
45509
|
+
setextHeadingLineSequence: T,
|
|
45510
45510
|
setextHeadingText: P,
|
|
45511
45511
|
strong: l(),
|
|
45512
45512
|
thematicBreak: l()
|
|
@@ -45722,14 +45722,14 @@ function nae(e) {
|
|
|
45722
45722
|
function P() {
|
|
45723
45723
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
45724
45724
|
}
|
|
45725
|
-
function
|
|
45725
|
+
function T(ce) {
|
|
45726
45726
|
const $e = this.stack[this.stack.length - 1];
|
|
45727
45727
|
$e.depth = this.sliceSerialize(ce).codePointAt(0) === 61 ? 1 : 2;
|
|
45728
45728
|
}
|
|
45729
45729
|
function M() {
|
|
45730
45730
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
45731
45731
|
}
|
|
45732
|
-
function
|
|
45732
|
+
function D(ce) {
|
|
45733
45733
|
const He = this.stack[this.stack.length - 1].children;
|
|
45734
45734
|
let Je = He[He.length - 1];
|
|
45735
45735
|
(!Je || Je.type !== "text") && (Je = Ut(), Je.position = {
|
|
@@ -45749,7 +45749,7 @@ function nae(e) {
|
|
|
45749
45749
|
He.position.end = us(ce.end), this.data.atHardBreak = void 0;
|
|
45750
45750
|
return;
|
|
45751
45751
|
}
|
|
45752
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes($e.type) && (
|
|
45752
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes($e.type) && (D.call(this, ce), N.call(this, ce));
|
|
45753
45753
|
}
|
|
45754
45754
|
function B() {
|
|
45755
45755
|
this.data.atHardBreak = !0;
|
|
@@ -48125,8 +48125,8 @@ function Sle(e) {
|
|
|
48125
48125
|
let C;
|
|
48126
48126
|
for (C in Fb)
|
|
48127
48127
|
if (Object.hasOwn(Fb, C) && Object.hasOwn(w.properties, C)) {
|
|
48128
|
-
const P = w.properties[C],
|
|
48129
|
-
(
|
|
48128
|
+
const P = w.properties[C], T = Fb[C];
|
|
48129
|
+
(T === null || T.includes(w.tagName)) && (w.properties[C] = g(String(P || ""), C, w));
|
|
48130
48130
|
}
|
|
48131
48131
|
}
|
|
48132
48132
|
if (w.type === "element") {
|
|
@@ -48147,10 +48147,10 @@ function Cle(e) {
|
|
|
48147
48147
|
}
|
|
48148
48148
|
function Ele() {
|
|
48149
48149
|
const e = se(null), [t, n] = Pe(""), [r, o] = Pe(!1), i = Ne(
|
|
48150
|
-
(
|
|
48150
|
+
(D) => D.dashboard.aiScopeTables
|
|
48151
48151
|
);
|
|
48152
48152
|
xD();
|
|
48153
|
-
const s = Ne((
|
|
48153
|
+
const s = Ne((D) => D.selectedSheetId), { addFrame: a, setSelectedFrameId: l, setIsDashboardEditing: c } = zs(), { authToken: u } = Tc(), f = i$(), {
|
|
48154
48154
|
messages: g,
|
|
48155
48155
|
input: p,
|
|
48156
48156
|
handleInputChange: m,
|
|
@@ -48164,7 +48164,7 @@ function Ele() {
|
|
|
48164
48164
|
Authorization: `Bearer ${u == null ? void 0 : u.accessToken}`
|
|
48165
48165
|
},
|
|
48166
48166
|
maxToolRoundtrips: 5,
|
|
48167
|
-
initialInput: "
|
|
48167
|
+
initialInput: "Fetch top 3 insights from the data",
|
|
48168
48168
|
// initialMessages: [
|
|
48169
48169
|
// {
|
|
48170
48170
|
// id: '1',
|
|
@@ -48173,16 +48173,16 @@ function Ele() {
|
|
|
48173
48173
|
// },
|
|
48174
48174
|
// ],
|
|
48175
48175
|
// run client-side tools that are automatically executed:
|
|
48176
|
-
async onToolCall({ toolCall:
|
|
48177
|
-
if (E(
|
|
48176
|
+
async onToolCall({ toolCall: D }) {
|
|
48177
|
+
if (E(D.toolName), console.log("onToolCall", D, g), D.toolName === "getLocation") {
|
|
48178
48178
|
const N = ["New York", "Los Angeles", "Chicago", "San Francisco"];
|
|
48179
48179
|
return N[Math.floor(Math.random() * N.length)];
|
|
48180
48180
|
}
|
|
48181
|
-
if (
|
|
48181
|
+
if (D.toolName === "getTables")
|
|
48182
48182
|
return JSON.stringify(i || []);
|
|
48183
|
-
if (
|
|
48184
|
-
console.log(
|
|
48185
|
-
const N =
|
|
48183
|
+
if (D.toolName === "getData") {
|
|
48184
|
+
console.log(D.args);
|
|
48185
|
+
const N = D.args;
|
|
48186
48186
|
if (!(N != null && N.sql) || !(N != null && N.connectionId))
|
|
48187
48187
|
return "Please provide sql, connectionId and table";
|
|
48188
48188
|
const F = await f.fetchQuery({
|
|
@@ -48199,27 +48199,27 @@ function Ele() {
|
|
|
48199
48199
|
return n("Summarizing"), JSON.stringify(F);
|
|
48200
48200
|
}
|
|
48201
48201
|
},
|
|
48202
|
-
onFinish(
|
|
48203
|
-
console.log("onFinish",
|
|
48202
|
+
onFinish(D, N) {
|
|
48203
|
+
console.log("onFinish", D, N), D.content && n("");
|
|
48204
48204
|
}
|
|
48205
48205
|
}), _ = () => {
|
|
48206
|
-
var
|
|
48207
|
-
(
|
|
48206
|
+
var D;
|
|
48207
|
+
(D = e.current) == null || D.scrollIntoView({ behavior: "smooth" });
|
|
48208
48208
|
};
|
|
48209
48209
|
_e(() => {
|
|
48210
48210
|
_();
|
|
48211
48211
|
}, [g]);
|
|
48212
|
-
function E(
|
|
48213
|
-
|
|
48212
|
+
function E(D) {
|
|
48213
|
+
D === "getTables" && n("Initializing"), D === "getSchemas" && n("Analyzing"), D === "getData" && n("Fetching");
|
|
48214
48214
|
}
|
|
48215
|
-
function C(
|
|
48216
|
-
const N =
|
|
48215
|
+
function C(D) {
|
|
48216
|
+
const N = D.toolInvocations || [];
|
|
48217
48217
|
return N.length === 0 || N.find(
|
|
48218
48218
|
(B) => B.toolName === "getData" && "result" in B
|
|
48219
48219
|
) ? !0 : r;
|
|
48220
48220
|
}
|
|
48221
|
-
function P(
|
|
48222
|
-
return
|
|
48221
|
+
function P(D) {
|
|
48222
|
+
return D == null ? void 0 : D.map((N) => {
|
|
48223
48223
|
var F;
|
|
48224
48224
|
return C(N) ? /* @__PURE__ */ I.jsxs(
|
|
48225
48225
|
"div",
|
|
@@ -48232,7 +48232,7 @@ function Ele() {
|
|
|
48232
48232
|
] }),
|
|
48233
48233
|
(F = N.toolInvocations) == null ? void 0 : F.map((B) => {
|
|
48234
48234
|
const q = B.toolCallId;
|
|
48235
|
-
return "result" in B ? /* @__PURE__ */ I.jsx("div", { children:
|
|
48235
|
+
return "result" in B ? /* @__PURE__ */ I.jsx("div", { children: T(B) }, q) : /* @__PURE__ */ I.jsxs("div", { children: [
|
|
48236
48236
|
"Calling ",
|
|
48237
48237
|
B.toolName,
|
|
48238
48238
|
"..."
|
|
@@ -48244,33 +48244,33 @@ function Ele() {
|
|
|
48244
48244
|
) : null;
|
|
48245
48245
|
});
|
|
48246
48246
|
}
|
|
48247
|
-
function D
|
|
48248
|
-
if ("result" in
|
|
48247
|
+
function T(D) {
|
|
48248
|
+
if ("result" in D) {
|
|
48249
48249
|
let N;
|
|
48250
48250
|
try {
|
|
48251
|
-
const F = JSON.parse(
|
|
48252
|
-
if (N = /* @__PURE__ */ I.jsx("pre", { className: "whitespace-normal text-xs", children: JSON.stringify(F, null, 2) }),
|
|
48253
|
-
console.log(
|
|
48251
|
+
const F = JSON.parse(D.result);
|
|
48252
|
+
if (N = /* @__PURE__ */ I.jsx("pre", { className: "whitespace-normal text-xs", children: JSON.stringify(F, null, 2) }), D.toolName === "getData") {
|
|
48253
|
+
console.log(D);
|
|
48254
48254
|
const B = YD({
|
|
48255
|
-
cardType:
|
|
48255
|
+
cardType: D.args.chartType,
|
|
48256
48256
|
data: F.records
|
|
48257
48257
|
});
|
|
48258
48258
|
return /* @__PURE__ */ I.jsxs("div", { className: "space-y-2", children: [
|
|
48259
48259
|
r && /* @__PURE__ */ I.jsxs("div", { children: [
|
|
48260
48260
|
/* @__PURE__ */ I.jsx("span", { className: "font-semibold text-blue-700", children: "Tool call" }),
|
|
48261
48261
|
" ",
|
|
48262
|
-
`${
|
|
48262
|
+
`${D.toolName}: `,
|
|
48263
48263
|
N
|
|
48264
48264
|
] }),
|
|
48265
|
-
/* @__PURE__ */ I.jsxs("div", { className: "flex h-[350px] w-[99%] grow flex-col", children: [
|
|
48265
|
+
/* @__PURE__ */ I.jsxs("div", { className: "relative flex h-[350px] w-[99%] grow flex-col", children: [
|
|
48266
48266
|
B && /* @__PURE__ */ I.jsx(vD, { cfg: B }),
|
|
48267
48267
|
/* @__PURE__ */ I.jsx(
|
|
48268
48268
|
oi,
|
|
48269
48269
|
{
|
|
48270
48270
|
onClick: () => {
|
|
48271
|
-
const q =
|
|
48271
|
+
const q = D.args.chartTitle, G = D.args.connectionId;
|
|
48272
48272
|
M(
|
|
48273
|
-
|
|
48273
|
+
D.args.sql,
|
|
48274
48274
|
F.records,
|
|
48275
48275
|
B,
|
|
48276
48276
|
q,
|
|
@@ -48279,7 +48279,7 @@ function Ele() {
|
|
|
48279
48279
|
},
|
|
48280
48280
|
variant: "outline",
|
|
48281
48281
|
size: "sm",
|
|
48282
|
-
className: "absolute right-
|
|
48282
|
+
className: "absolute right-0",
|
|
48283
48283
|
children: "Add"
|
|
48284
48284
|
}
|
|
48285
48285
|
)
|
|
@@ -48287,18 +48287,18 @@ function Ele() {
|
|
|
48287
48287
|
] });
|
|
48288
48288
|
}
|
|
48289
48289
|
} catch {
|
|
48290
|
-
N = /* @__PURE__ */ I.jsx("span", { children:
|
|
48290
|
+
N = /* @__PURE__ */ I.jsx("span", { children: D.result });
|
|
48291
48291
|
}
|
|
48292
48292
|
return /* @__PURE__ */ I.jsxs("div", { children: [
|
|
48293
48293
|
/* @__PURE__ */ I.jsx("span", { className: "font-semibold text-blue-700", children: "Tool call" }),
|
|
48294
48294
|
" ",
|
|
48295
|
-
`${
|
|
48295
|
+
`${D.toolName}: `,
|
|
48296
48296
|
N
|
|
48297
48297
|
] });
|
|
48298
48298
|
}
|
|
48299
|
-
return `Calling ${
|
|
48299
|
+
return `Calling ${D.toolName}...`;
|
|
48300
48300
|
}
|
|
48301
|
-
function M(
|
|
48301
|
+
function M(D, N, F, B, q) {
|
|
48302
48302
|
if (!s)
|
|
48303
48303
|
return;
|
|
48304
48304
|
const G = {
|
|
@@ -48315,7 +48315,7 @@ function Ele() {
|
|
|
48315
48315
|
},
|
|
48316
48316
|
type: F.type,
|
|
48317
48317
|
cfg: F,
|
|
48318
|
-
sql:
|
|
48318
|
+
sql: D,
|
|
48319
48319
|
data: N,
|
|
48320
48320
|
connectionId: q
|
|
48321
48321
|
}, j = {
|
|
@@ -48373,6 +48373,13 @@ const Ole = {
|
|
|
48373
48373
|
className: "my-2 ml-5 list-disc rounded-md bg-muted/50 px-2 py-1",
|
|
48374
48374
|
...t
|
|
48375
48375
|
}
|
|
48376
|
+
),
|
|
48377
|
+
pre: ({ node: e, ...t }) => /* @__PURE__ */ I.jsx(
|
|
48378
|
+
"pre",
|
|
48379
|
+
{
|
|
48380
|
+
className: "word overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted/50 p-2 text-xs text-foreground/80",
|
|
48381
|
+
...t
|
|
48382
|
+
}
|
|
48376
48383
|
)
|
|
48377
48384
|
// You can add more overrides for other elements like h1, h2, etc.
|
|
48378
48385
|
};
|
|
@@ -48606,7 +48613,7 @@ const Vy = [
|
|
|
48606
48613
|
onDismiss: () => n.onOpenChange(!1)
|
|
48607
48614
|
}));
|
|
48608
48615
|
}), aw = /* @__PURE__ */ pe((e, t) => {
|
|
48609
|
-
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: g, onDismiss: p, disableOutsideScroll: m, ...b } = e, y = il(No, n), x = pf(No, n), w = iw(n), _ = Yk(n), E = Ale(n), [C, P] = Pe(null),
|
|
48616
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: g, onDismiss: p, disableOutsideScroll: m, ...b } = e, y = il(No, n), x = pf(No, n), w = iw(n), _ = Yk(n), E = Ale(n), [C, P] = Pe(null), T = se(null), M = ft(t, T, y.onContentChange), D = se(0), N = se(""), F = se(0), B = se(null), q = se("right"), G = se(0), j = m ? Ug : dr, ee = m ? {
|
|
48610
48617
|
as: Bi,
|
|
48611
48618
|
allowPinchZoom: !0
|
|
48612
48619
|
} : void 0, Y = (re) => {
|
|
@@ -48621,7 +48628,7 @@ const Vy = [
|
|
|
48621
48628
|
(Z) => Z.textValue === fe
|
|
48622
48629
|
)) === null || H === void 0 ? void 0 : H.ref.current;
|
|
48623
48630
|
(function Z(ie) {
|
|
48624
|
-
N.current = ie, window.clearTimeout(
|
|
48631
|
+
N.current = ie, window.clearTimeout(D.current), ie !== "" && (D.current = window.setTimeout(
|
|
48625
48632
|
() => Z(""),
|
|
48626
48633
|
1e3
|
|
48627
48634
|
));
|
|
@@ -48629,7 +48636,7 @@ const Vy = [
|
|
|
48629
48636
|
() => oe.focus()
|
|
48630
48637
|
);
|
|
48631
48638
|
};
|
|
48632
|
-
_e(() => () => window.clearTimeout(
|
|
48639
|
+
_e(() => () => window.clearTimeout(D.current), []), Bg();
|
|
48633
48640
|
const X = Be((re) => {
|
|
48634
48641
|
var R, H;
|
|
48635
48642
|
return q.current === ((R = B.current) === null || R === void 0 ? void 0 : R.side) && dce(re, (H = B.current) === null || H === void 0 ? void 0 : H.area);
|
|
@@ -48644,7 +48651,7 @@ const Vy = [
|
|
|
48644
48651
|
]),
|
|
48645
48652
|
onItemLeave: Be((re) => {
|
|
48646
48653
|
var R;
|
|
48647
|
-
X(re) || ((R =
|
|
48654
|
+
X(re) || ((R = T.current) === null || R === void 0 || R.focus(), P(null));
|
|
48648
48655
|
}, [
|
|
48649
48656
|
X
|
|
48650
48657
|
]),
|
|
@@ -48662,7 +48669,7 @@ const Vy = [
|
|
|
48662
48669
|
trapped: o,
|
|
48663
48670
|
onMountAutoFocus: De(i, (re) => {
|
|
48664
48671
|
var R;
|
|
48665
|
-
re.preventDefault(), (R =
|
|
48672
|
+
re.preventDefault(), (R = T.current) === null || R === void 0 || R.focus();
|
|
48666
48673
|
}),
|
|
48667
48674
|
onUnmountAutoFocus: s
|
|
48668
48675
|
}, /* @__PURE__ */ z(Rc, {
|
|
@@ -48699,7 +48706,7 @@ const Vy = [
|
|
|
48699
48706
|
onKeyDown: De(b.onKeyDown, (re) => {
|
|
48700
48707
|
const H = re.target.closest("[data-radix-menu-content]") === re.currentTarget, ne = re.ctrlKey || re.altKey || re.metaKey, A = re.key.length === 1;
|
|
48701
48708
|
H && (re.key === "Tab" && re.preventDefault(), !ne && A && Y(re.key));
|
|
48702
|
-
const ue =
|
|
48709
|
+
const ue = T.current;
|
|
48703
48710
|
if (re.target !== ue || !Tle.includes(re.key))
|
|
48704
48711
|
return;
|
|
48705
48712
|
re.preventDefault();
|
|
@@ -48711,7 +48718,7 @@ const Vy = [
|
|
|
48711
48718
|
qk.includes(re.key) && ge.reverse(), ace(ge);
|
|
48712
48719
|
}),
|
|
48713
48720
|
onBlur: De(e.onBlur, (re) => {
|
|
48714
|
-
re.currentTarget.contains(re.target) || (window.clearTimeout(
|
|
48721
|
+
re.currentTarget.contains(re.target) || (window.clearTimeout(D.current), N.current = "");
|
|
48715
48722
|
}),
|
|
48716
48723
|
onPointerMove: De(e.onPointerMove, Rd((re) => {
|
|
48717
48724
|
const R = re.target, H = G.current !== re.clientX;
|
|
@@ -49862,9 +49869,9 @@ function TA({
|
|
|
49862
49869
|
getPanelStyle: E,
|
|
49863
49870
|
groupId: C,
|
|
49864
49871
|
isPanelCollapsed: P,
|
|
49865
|
-
registerPanel:
|
|
49872
|
+
registerPanel: T,
|
|
49866
49873
|
resizePanel: M,
|
|
49867
|
-
unregisterPanel:
|
|
49874
|
+
unregisterPanel: D
|
|
49868
49875
|
} = y, N = dw(s), F = yo({
|
|
49869
49876
|
callbacks: {
|
|
49870
49877
|
onCollapse: c,
|
|
@@ -49892,10 +49899,10 @@ function TA({
|
|
|
49892
49899
|
F.current.id = N, F.current.idIsFromProps = s !== void 0, F.current.order = g, q.onCollapse = c, q.onExpand = u, q.onResize = f, G.collapsedSize = n, G.collapsible = r, G.defaultSize = o, G.maxSize = a, G.minSize = l;
|
|
49893
49900
|
}), Dd(() => {
|
|
49894
49901
|
const q = F.current;
|
|
49895
|
-
return
|
|
49896
|
-
|
|
49902
|
+
return T(q), () => {
|
|
49903
|
+
D(q);
|
|
49897
49904
|
};
|
|
49898
|
-
}, [g, N,
|
|
49905
|
+
}, [g, N, T, D]), DA(i, () => ({
|
|
49899
49906
|
collapse: () => {
|
|
49900
49907
|
x(F.current);
|
|
49901
49908
|
},
|
|
@@ -50201,14 +50208,14 @@ function Zue({
|
|
|
50201
50208
|
minSize: P = 0
|
|
50202
50209
|
} = w.constraints;
|
|
50203
50210
|
if (_ != null && C) {
|
|
50204
|
-
const
|
|
50211
|
+
const T = Du({
|
|
50205
50212
|
delta: Hr(_, E) ? P - E : E - _,
|
|
50206
50213
|
layout: r,
|
|
50207
50214
|
panelConstraints: a.map((M) => M.constraints),
|
|
50208
50215
|
pivotIndices: AA(n, g),
|
|
50209
50216
|
trigger: "keyboard"
|
|
50210
50217
|
});
|
|
50211
|
-
r !==
|
|
50218
|
+
r !== T && i(T);
|
|
50212
50219
|
}
|
|
50213
50220
|
}
|
|
50214
50221
|
break;
|
|
@@ -50608,7 +50615,7 @@ function WA({
|
|
|
50608
50615
|
Qh(ne, ie) || (y(ie), C.current.layout = ie, H && H(ie), Al(A, ie, x.current));
|
|
50609
50616
|
}
|
|
50610
50617
|
}
|
|
50611
|
-
}, []),
|
|
50618
|
+
}, []), T = zr((R) => {
|
|
50612
50619
|
const {
|
|
50613
50620
|
onLayout: H
|
|
50614
50621
|
} = E.current, {
|
|
@@ -50641,7 +50648,7 @@ function WA({
|
|
|
50641
50648
|
panelSize: A
|
|
50642
50649
|
} = Il(ne, R, H);
|
|
50643
50650
|
return mt(A != null), A;
|
|
50644
|
-
}, []),
|
|
50651
|
+
}, []), D = zr((R, H) => {
|
|
50645
50652
|
const {
|
|
50646
50653
|
panelDataArray: ne
|
|
50647
50654
|
} = C.current, A = Ll(ne, R);
|
|
@@ -50778,9 +50785,9 @@ function WA({
|
|
|
50778
50785
|
collapsePanel: P,
|
|
50779
50786
|
direction: r,
|
|
50780
50787
|
dragState: p,
|
|
50781
|
-
expandPanel:
|
|
50788
|
+
expandPanel: T,
|
|
50782
50789
|
getPanelSize: M,
|
|
50783
|
-
getPanelStyle:
|
|
50790
|
+
getPanelStyle: D,
|
|
50784
50791
|
groupId: g,
|
|
50785
50792
|
isPanelCollapsed: N,
|
|
50786
50793
|
isPanelExpanded: F,
|
|
@@ -50790,7 +50797,7 @@ function WA({
|
|
|
50790
50797
|
startDragging: j,
|
|
50791
50798
|
stopDragging: ee,
|
|
50792
50799
|
unregisterPanel: Y
|
|
50793
|
-
}), [P, p, r,
|
|
50800
|
+
}), [P, p, r, T, M, D, g, N, F, B, q, G, j, ee, Y]), re = {
|
|
50794
50801
|
display: "flex",
|
|
50795
50802
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
50796
50803
|
height: "100%",
|
|
@@ -50897,7 +50904,7 @@ function dde({
|
|
|
50897
50904
|
registerResizeHandle: b,
|
|
50898
50905
|
startDragging: y,
|
|
50899
50906
|
stopDragging: x
|
|
50900
|
-
} = f, w = dw(r), _ = (p == null ? void 0 : p.dragHandleId) === w, [E, C] = tg(!1), [P,
|
|
50907
|
+
} = f, w = dw(r), _ = (p == null ? void 0 : p.dragHandleId) === w, [E, C] = tg(!1), [P, T] = tg(null), M = zr(() => {
|
|
50901
50908
|
const N = c.current;
|
|
50902
50909
|
mt(N), N.blur(), x();
|
|
50903
50910
|
const {
|
|
@@ -50907,10 +50914,10 @@ function dde({
|
|
|
50907
50914
|
}, [x]);
|
|
50908
50915
|
ja(() => {
|
|
50909
50916
|
if (n)
|
|
50910
|
-
|
|
50917
|
+
T(null);
|
|
50911
50918
|
else {
|
|
50912
50919
|
const N = b(w);
|
|
50913
|
-
|
|
50920
|
+
T(() => N);
|
|
50914
50921
|
}
|
|
50915
50922
|
}, [n, w, b]), ja(() => {
|
|
50916
50923
|
if (n || P == null || !_)
|
|
@@ -50930,7 +50937,7 @@ function dde({
|
|
|
50930
50937
|
handleId: w,
|
|
50931
50938
|
resizeHandler: P
|
|
50932
50939
|
});
|
|
50933
|
-
const
|
|
50940
|
+
const D = {
|
|
50934
50941
|
cursor: jA(g),
|
|
50935
50942
|
touchAction: "none",
|
|
50936
50943
|
userSelect: "none"
|
|
@@ -50965,7 +50972,7 @@ function dde({
|
|
|
50965
50972
|
ref: c,
|
|
50966
50973
|
role: "separator",
|
|
50967
50974
|
style: {
|
|
50968
|
-
...
|
|
50975
|
+
...D,
|
|
50969
50976
|
...i
|
|
50970
50977
|
},
|
|
50971
50978
|
tabIndex: s,
|
|
@@ -51402,49 +51409,49 @@ function JA(e, t) {
|
|
|
51402
51409
|
return e.Uri.parse(t);
|
|
51403
51410
|
}
|
|
51404
51411
|
function ufe({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: s, keepCurrentOriginalModel: a = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: f = {}, height: g = "100%", width: p = "100%", className: m, wrapperProps: b = {}, beforeMount: y = Wu, onMount: x = Wu }) {
|
|
51405
|
-
let [w, _] = Pe(!1), [E, C] = Pe(!0), P = se(null),
|
|
51412
|
+
let [w, _] = Pe(!1), [E, C] = Pe(!0), P = se(null), T = se(null), M = se(null), D = se(x), N = se(y), F = se(!1);
|
|
51406
51413
|
QA(() => {
|
|
51407
51414
|
let j = KA.init();
|
|
51408
|
-
return j.then((ee) => (
|
|
51415
|
+
return j.then((ee) => (T.current = ee) && C(!1)).catch((ee) => (ee == null ? void 0 : ee.type) !== "cancelation" && console.error("Monaco initialization: error:", ee)), () => P.current ? G() : j.cancel();
|
|
51409
51416
|
}), Ur(() => {
|
|
51410
|
-
if (P.current &&
|
|
51411
|
-
let j = P.current.getOriginalEditor(), ee = Bl(
|
|
51417
|
+
if (P.current && T.current) {
|
|
51418
|
+
let j = P.current.getOriginalEditor(), ee = Bl(T.current, e || "", r || n || "text", i || "");
|
|
51412
51419
|
ee !== j.getModel() && j.setModel(ee);
|
|
51413
51420
|
}
|
|
51414
51421
|
}, [i], w), Ur(() => {
|
|
51415
|
-
if (P.current &&
|
|
51416
|
-
let j = P.current.getModifiedEditor(), ee = Bl(
|
|
51422
|
+
if (P.current && T.current) {
|
|
51423
|
+
let j = P.current.getModifiedEditor(), ee = Bl(T.current, t || "", o || n || "text", s || "");
|
|
51417
51424
|
ee !== j.getModel() && j.setModel(ee);
|
|
51418
51425
|
}
|
|
51419
51426
|
}, [s], w), Ur(() => {
|
|
51420
51427
|
let j = P.current.getModifiedEditor();
|
|
51421
|
-
j.getOption(
|
|
51428
|
+
j.getOption(T.current.editor.EditorOption.readOnly) ? j.setValue(t || "") : t !== j.getValue() && (j.executeEdits("", [{ range: j.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), j.pushUndoStop());
|
|
51422
51429
|
}, [t], w), Ur(() => {
|
|
51423
51430
|
var j, ee;
|
|
51424
51431
|
(ee = (j = P.current) == null ? void 0 : j.getModel()) == null || ee.original.setValue(e || "");
|
|
51425
51432
|
}, [e], w), Ur(() => {
|
|
51426
51433
|
let { original: j, modified: ee } = P.current.getModel();
|
|
51427
|
-
|
|
51434
|
+
T.current.editor.setModelLanguage(j, r || n || "text"), T.current.editor.setModelLanguage(ee, o || n || "text");
|
|
51428
51435
|
}, [n, r, o], w), Ur(() => {
|
|
51429
51436
|
var j;
|
|
51430
|
-
(j =
|
|
51437
|
+
(j = T.current) == null || j.editor.setTheme(c);
|
|
51431
51438
|
}, [c], w), Ur(() => {
|
|
51432
51439
|
var j;
|
|
51433
51440
|
(j = P.current) == null || j.updateOptions(f);
|
|
51434
51441
|
}, [f], w);
|
|
51435
51442
|
let B = Be(() => {
|
|
51436
51443
|
var Y;
|
|
51437
|
-
if (!
|
|
51444
|
+
if (!T.current)
|
|
51438
51445
|
return;
|
|
51439
|
-
N.current(
|
|
51440
|
-
let j = Bl(
|
|
51446
|
+
N.current(T.current);
|
|
51447
|
+
let j = Bl(T.current, e || "", r || n || "text", i || ""), ee = Bl(T.current, t || "", o || n || "text", s || "");
|
|
51441
51448
|
(Y = P.current) == null || Y.setModel({ original: j, modified: ee });
|
|
51442
51449
|
}, [n, t, o, e, r, i, s]), q = Be(() => {
|
|
51443
51450
|
var j;
|
|
51444
|
-
!F.current && M.current && (P.current =
|
|
51451
|
+
!F.current && M.current && (P.current = T.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...f }), B(), (j = T.current) == null || j.editor.setTheme(c), _(!0), F.current = !0);
|
|
51445
51452
|
}, [f, c, B]);
|
|
51446
51453
|
_e(() => {
|
|
51447
|
-
w &&
|
|
51454
|
+
w && D.current(P.current, T.current);
|
|
51448
51455
|
}, [w]), _e(() => {
|
|
51449
51456
|
!E && !w && q();
|
|
51450
51457
|
}, [E, w, q]);
|
|
@@ -51465,54 +51472,54 @@ function ffe(e) {
|
|
|
51465
51472
|
}
|
|
51466
51473
|
var hfe = ffe, Zh = /* @__PURE__ */ new Map();
|
|
51467
51474
|
function pfe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: s = "light", line: a, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: f = !0, keepCurrentModel: g = !1, width: p = "100%", height: m = "100%", className: b, wrapperProps: y = {}, beforeMount: x = Wu, onMount: w = Wu, onChange: _, onValidate: E = Wu }) {
|
|
51468
|
-
let [C, P] = Pe(!1), [
|
|
51475
|
+
let [C, P] = Pe(!1), [T, M] = Pe(!0), D = se(null), N = se(null), F = se(null), B = se(w), q = se(x), G = se(), j = se(r), ee = hfe(i), Y = se(!1), X = se(!1);
|
|
51469
51476
|
QA(() => {
|
|
51470
51477
|
let H = KA.init();
|
|
51471
|
-
return H.then((ne) => (
|
|
51478
|
+
return H.then((ne) => (D.current = ne) && M(!1)).catch((ne) => (ne == null ? void 0 : ne.type) !== "cancelation" && console.error("Monaco initialization: error:", ne)), () => N.current ? R() : H.cancel();
|
|
51472
51479
|
}), Ur(() => {
|
|
51473
51480
|
var ne, A, ue, ve;
|
|
51474
|
-
let H = Bl(
|
|
51481
|
+
let H = Bl(D.current, e || r || "", t || o || "", i || n || "");
|
|
51475
51482
|
H !== ((ne = N.current) == null ? void 0 : ne.getModel()) && (f && Zh.set(ee, (A = N.current) == null ? void 0 : A.saveViewState()), (ue = N.current) == null || ue.setModel(H), f && ((ve = N.current) == null || ve.restoreViewState(Zh.get(i))));
|
|
51476
51483
|
}, [i], C), Ur(() => {
|
|
51477
51484
|
var H;
|
|
51478
51485
|
(H = N.current) == null || H.updateOptions(c);
|
|
51479
51486
|
}, [c], C), Ur(() => {
|
|
51480
|
-
!N.current || r === void 0 || (N.current.getOption(
|
|
51487
|
+
!N.current || r === void 0 || (N.current.getOption(D.current.editor.EditorOption.readOnly) ? N.current.setValue(r) : r !== N.current.getValue() && (X.current = !0, N.current.executeEdits("", [{ range: N.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), N.current.pushUndoStop(), X.current = !1));
|
|
51481
51488
|
}, [r], C), Ur(() => {
|
|
51482
51489
|
var ne, A;
|
|
51483
51490
|
let H = (ne = N.current) == null ? void 0 : ne.getModel();
|
|
51484
|
-
H && o && ((A =
|
|
51491
|
+
H && o && ((A = D.current) == null || A.editor.setModelLanguage(H, o));
|
|
51485
51492
|
}, [o], C), Ur(() => {
|
|
51486
51493
|
var H;
|
|
51487
51494
|
a !== void 0 && ((H = N.current) == null || H.revealLine(a));
|
|
51488
51495
|
}, [a], C), Ur(() => {
|
|
51489
51496
|
var H;
|
|
51490
|
-
(H =
|
|
51497
|
+
(H = D.current) == null || H.editor.setTheme(s);
|
|
51491
51498
|
}, [s], C);
|
|
51492
51499
|
let re = Be(() => {
|
|
51493
51500
|
var H;
|
|
51494
|
-
if (!(!F.current || !
|
|
51495
|
-
q.current(
|
|
51496
|
-
let ne = i || n, A = Bl(
|
|
51497
|
-
N.current = (H =
|
|
51501
|
+
if (!(!F.current || !D.current) && !Y.current) {
|
|
51502
|
+
q.current(D.current);
|
|
51503
|
+
let ne = i || n, A = Bl(D.current, r || e || "", t || o || "", ne || "");
|
|
51504
|
+
N.current = (H = D.current) == null ? void 0 : H.editor.create(F.current, { model: A, automaticLayout: !0, ...c }, u), f && N.current.restoreViewState(Zh.get(ne)), D.current.editor.setTheme(s), a !== void 0 && N.current.revealLine(a), P(!0), Y.current = !0;
|
|
51498
51505
|
}
|
|
51499
51506
|
}, [e, t, n, r, o, i, c, u, f, s, a]);
|
|
51500
51507
|
_e(() => {
|
|
51501
|
-
C && B.current(N.current,
|
|
51508
|
+
C && B.current(N.current, D.current);
|
|
51502
51509
|
}, [C]), _e(() => {
|
|
51503
|
-
!
|
|
51504
|
-
}, [
|
|
51510
|
+
!T && !C && re();
|
|
51511
|
+
}, [T, C, re]), j.current = r, _e(() => {
|
|
51505
51512
|
var H, ne;
|
|
51506
51513
|
C && _ && ((H = G.current) == null || H.dispose(), G.current = (ne = N.current) == null ? void 0 : ne.onDidChangeModelContent((A) => {
|
|
51507
51514
|
X.current || _(N.current.getValue(), A);
|
|
51508
51515
|
}));
|
|
51509
51516
|
}, [C, _]), _e(() => {
|
|
51510
51517
|
if (C) {
|
|
51511
|
-
let H =
|
|
51518
|
+
let H = D.current.editor.onDidChangeMarkers((ne) => {
|
|
51512
51519
|
var ue;
|
|
51513
51520
|
let A = (ue = N.current.getModel()) == null ? void 0 : ue.uri;
|
|
51514
51521
|
if (A && ne.find((ve) => ve.path === A.path)) {
|
|
51515
|
-
let ve =
|
|
51522
|
+
let ve = D.current.editor.getModelMarkers({ resource: A });
|
|
51516
51523
|
E == null || E(ve);
|
|
51517
51524
|
}
|
|
51518
51525
|
});
|
|
@@ -51716,11 +51723,11 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
|
|
|
51716
51723
|
var m;
|
|
51717
51724
|
if (!Pfe.includes(p.key))
|
|
51718
51725
|
return;
|
|
51719
|
-
const b = p.target, y = c().filter((
|
|
51726
|
+
const b = p.target, y = c().filter((D) => {
|
|
51720
51727
|
var N;
|
|
51721
|
-
return !((N =
|
|
51728
|
+
return !((N = D.ref.current) !== null && N !== void 0 && N.disabled);
|
|
51722
51729
|
}), x = y.findIndex(
|
|
51723
|
-
(
|
|
51730
|
+
(D) => D.ref.current === b
|
|
51724
51731
|
), w = y.length;
|
|
51725
51732
|
if (x === -1)
|
|
51726
51733
|
return;
|
|
@@ -51728,7 +51735,7 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
|
|
|
51728
51735
|
let _ = x;
|
|
51729
51736
|
const E = 0, C = w - 1, P = () => {
|
|
51730
51737
|
_ = x + 1, _ > C && (_ = E);
|
|
51731
|
-
},
|
|
51738
|
+
}, T = () => {
|
|
51732
51739
|
_ = x - 1, _ < E && (_ = C);
|
|
51733
51740
|
};
|
|
51734
51741
|
switch (p.key) {
|
|
@@ -51739,16 +51746,16 @@ const [rI, Dfe] = dm(Hs), [oI, Tfe] = dm(Hs, {
|
|
|
51739
51746
|
_ = C;
|
|
51740
51747
|
break;
|
|
51741
51748
|
case "ArrowRight":
|
|
51742
|
-
i === "horizontal" && (f ? P() :
|
|
51749
|
+
i === "horizontal" && (f ? P() : T());
|
|
51743
51750
|
break;
|
|
51744
51751
|
case "ArrowDown":
|
|
51745
51752
|
i === "vertical" && P();
|
|
51746
51753
|
break;
|
|
51747
51754
|
case "ArrowLeft":
|
|
51748
|
-
i === "horizontal" && (f ?
|
|
51755
|
+
i === "horizontal" && (f ? T() : P());
|
|
51749
51756
|
break;
|
|
51750
51757
|
case "ArrowUp":
|
|
51751
|
-
i === "vertical" &&
|
|
51758
|
+
i === "vertical" && T();
|
|
51752
51759
|
break;
|
|
51753
51760
|
}
|
|
51754
51761
|
const M = _ % w;
|