reasonix 0.36.1 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard/dist/app.js +405 -196
- package/dashboard/dist/app.js.map +1 -1
- package/dist/cli/{chat-7AF5SPAJ.js → chat-QSM6JKUA.js} +7 -7
- package/dist/cli/{chunk-ZU45XW3P.js → chunk-4D6TT2IB.js} +10 -2
- package/dist/cli/chunk-4D6TT2IB.js.map +1 -0
- package/dist/cli/{chunk-2MCYGFLK.js → chunk-C5543CRX.js} +17 -16
- package/dist/cli/chunk-C5543CRX.js.map +1 -0
- package/dist/cli/{chunk-KJQIA4US.js → chunk-K6W64QVE.js} +48 -29
- package/dist/cli/chunk-K6W64QVE.js.map +1 -0
- package/dist/cli/{chunk-3OBWN2NH.js → chunk-NHV5YGTB.js} +421 -333
- package/dist/cli/chunk-NHV5YGTB.js.map +1 -0
- package/dist/cli/{chunk-QRUQ2BFT.js → chunk-RNSZYYGB.js} +109 -41
- package/dist/cli/chunk-RNSZYYGB.js.map +1 -0
- package/dist/cli/{chunk-QPNZWUZF.js → chunk-S4GF3HPO.js} +26 -1
- package/dist/cli/chunk-S4GF3HPO.js.map +1 -0
- package/dist/cli/{code-SWI4EBME.js → code-6C5A2CY3.js} +17 -9
- package/dist/cli/code-6C5A2CY3.js.map +1 -0
- package/dist/cli/index.js +10 -10
- package/dist/cli/{prompt-YEKXMNNV.js → prompt-QSEB7HNQ.js} +3 -3
- package/dist/cli/{run-FK5UBIIM.js → run-AG4Y45X7.js} +5 -5
- package/dist/cli/{server-W4XJK4GX.js → server-GNHR5K3N.js} +4 -4
- package/dist/cli/{sessions-YZXWMIWW.js → sessions-MHRF3GU4.js} +5 -5
- package/dist/cli/{version-DWD6RLIU.js → version-7AL4JZ63.js} +5 -5
- package/dist/index.d.ts +29 -1
- package/dist/index.js +146 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/chunk-2MCYGFLK.js.map +0 -1
- package/dist/cli/chunk-3OBWN2NH.js.map +0 -1
- package/dist/cli/chunk-KJQIA4US.js.map +0 -1
- package/dist/cli/chunk-QPNZWUZF.js.map +0 -1
- package/dist/cli/chunk-QRUQ2BFT.js.map +0 -1
- package/dist/cli/chunk-ZU45XW3P.js.map +0 -1
- package/dist/cli/code-SWI4EBME.js.map +0 -1
- /package/dist/cli/{chat-7AF5SPAJ.js.map → chat-QSM6JKUA.js.map} +0 -0
- /package/dist/cli/{prompt-YEKXMNNV.js.map → prompt-QSEB7HNQ.js.map} +0 -0
- /package/dist/cli/{run-FK5UBIIM.js.map → run-AG4Y45X7.js.map} +0 -0
- /package/dist/cli/{server-W4XJK4GX.js.map → server-GNHR5K3N.js.map} +0 -0
- /package/dist/cli/{sessions-YZXWMIWW.js.map → sessions-MHRF3GU4.js.map} +0 -0
- /package/dist/cli/{version-DWD6RLIU.js.map → version-7AL4JZ63.js.map} +0 -0
package/dashboard/dist/app.js
CHANGED
|
@@ -98,7 +98,7 @@ var require_core = __commonJS({
|
|
|
98
98
|
const pieces = name.split(".");
|
|
99
99
|
return [
|
|
100
100
|
`${prefix}${pieces.shift()}`,
|
|
101
|
-
...pieces.map((
|
|
101
|
+
...pieces.map((x3, i3) => `${x3}${"_".repeat(i3 + 1)}`)
|
|
102
102
|
].join(" ");
|
|
103
103
|
}
|
|
104
104
|
return `${prefix}${name}`;
|
|
@@ -288,7 +288,7 @@ var require_core = __commonJS({
|
|
|
288
288
|
return concat("(?:", re, ")?");
|
|
289
289
|
}
|
|
290
290
|
function concat(...args) {
|
|
291
|
-
const joined = args.map((
|
|
291
|
+
const joined = args.map((x3) => source(x3)).join("");
|
|
292
292
|
return joined;
|
|
293
293
|
}
|
|
294
294
|
function stripOptionsFromArgs(args) {
|
|
@@ -302,7 +302,7 @@ var require_core = __commonJS({
|
|
|
302
302
|
}
|
|
303
303
|
function either(...args) {
|
|
304
304
|
const opts = stripOptionsFromArgs(args);
|
|
305
|
-
const joined = "(" + (opts.capture ? "" : "?:") + args.map((
|
|
305
|
+
const joined = "(" + (opts.capture ? "" : "?:") + args.map((x3) => source(x3)).join("|") + ")";
|
|
306
306
|
return joined;
|
|
307
307
|
}
|
|
308
308
|
function countMatchGroups(re) {
|
|
@@ -632,7 +632,7 @@ var require_core = __commonJS({
|
|
|
632
632
|
return compiledKeywords;
|
|
633
633
|
function compileList(scopeName2, keywordList) {
|
|
634
634
|
if (caseInsensitive) {
|
|
635
|
-
keywordList = keywordList.map((
|
|
635
|
+
keywordList = keywordList.map((x3) => x3.toLowerCase());
|
|
636
636
|
}
|
|
637
637
|
keywordList.forEach(function(keyword) {
|
|
638
638
|
const pair = keyword.split("|");
|
|
@@ -5506,7 +5506,7 @@ var require_java = __commonJS({
|
|
|
5506
5506
|
};
|
|
5507
5507
|
function recurRegex(re, substitution, depth) {
|
|
5508
5508
|
if (depth === -1) return "";
|
|
5509
|
-
return re.replace(substitution, (
|
|
5509
|
+
return re.replace(substitution, (_4) => {
|
|
5510
5510
|
return recurRegex(re, substitution, depth - 1);
|
|
5511
5511
|
});
|
|
5512
5512
|
}
|
|
@@ -6226,7 +6226,7 @@ var require_javascript = __commonJS({
|
|
|
6226
6226
|
...BUILT_IN_GLOBALS,
|
|
6227
6227
|
"super",
|
|
6228
6228
|
"import"
|
|
6229
|
-
].map((
|
|
6229
|
+
].map((x3) => `${x3}\\s*\\(`)),
|
|
6230
6230
|
IDENT_RE$1,
|
|
6231
6231
|
regex.lookahead(/\s*\(/)
|
|
6232
6232
|
),
|
|
@@ -11901,7 +11901,7 @@ var require_sql = __commonJS({
|
|
|
11901
11901
|
illegal: /[{}]|<\//,
|
|
11902
11902
|
keywords: {
|
|
11903
11903
|
$pattern: /\b[\w\.]+/,
|
|
11904
|
-
keyword: reduceRelevancy(KEYWORDS, { when: (
|
|
11904
|
+
keyword: reduceRelevancy(KEYWORDS, { when: (x3) => x3.length < 3 }),
|
|
11905
11905
|
literal: LITERALS,
|
|
11906
11906
|
type: TYPES,
|
|
11907
11907
|
built_in: POSSIBLE_WITHOUT_PARENS
|
|
@@ -11940,7 +11940,7 @@ var require_swift = __commonJS({
|
|
|
11940
11940
|
return concat("(?=", re, ")");
|
|
11941
11941
|
}
|
|
11942
11942
|
function concat(...args) {
|
|
11943
|
-
const joined = args.map((
|
|
11943
|
+
const joined = args.map((x3) => source(x3)).join("");
|
|
11944
11944
|
return joined;
|
|
11945
11945
|
}
|
|
11946
11946
|
function stripOptionsFromArgs(args) {
|
|
@@ -11954,7 +11954,7 @@ var require_swift = __commonJS({
|
|
|
11954
11954
|
}
|
|
11955
11955
|
function either(...args) {
|
|
11956
11956
|
const opts = stripOptionsFromArgs(args);
|
|
11957
|
-
const joined = "(" + (opts.capture ? "" : "?:") + args.map((
|
|
11957
|
+
const joined = "(" + (opts.capture ? "" : "?:") + args.map((x3) => source(x3)).join("|") + ")";
|
|
11958
11958
|
return joined;
|
|
11959
11959
|
}
|
|
11960
11960
|
var keywordWrapper = (keyword) => concat(
|
|
@@ -13507,7 +13507,7 @@ var require_typescript = __commonJS({
|
|
|
13507
13507
|
...BUILT_IN_GLOBALS,
|
|
13508
13508
|
"super",
|
|
13509
13509
|
"import"
|
|
13510
|
-
].map((
|
|
13510
|
+
].map((x3) => `${x3}\\s*\\(`)),
|
|
13511
13511
|
IDENT_RE$1,
|
|
13512
13512
|
regex.lookahead(/\s*\(/)
|
|
13513
13513
|
),
|
|
@@ -14159,7 +14159,7 @@ function setPxRatio() {
|
|
|
14159
14159
|
pxRatio = _pxRatio;
|
|
14160
14160
|
query && off(change, query, setPxRatio);
|
|
14161
14161
|
query = matchMedia(`(min-resolution: ${pxRatio - 1e-3}dppx) and (max-resolution: ${pxRatio + 1e-3}dppx)`);
|
|
14162
|
-
|
|
14162
|
+
on2(change, query, setPxRatio);
|
|
14163
14163
|
win.dispatchEvent(new CustomEvent(dppxchange));
|
|
14164
14164
|
}
|
|
14165
14165
|
}
|
|
@@ -14219,7 +14219,7 @@ function elSize(el, newWid, newHgt, centered) {
|
|
|
14219
14219
|
el.style.marginTop = centered ? -newHgt / 2 + "px" : 0;
|
|
14220
14220
|
}
|
|
14221
14221
|
}
|
|
14222
|
-
function
|
|
14222
|
+
function on2(ev, el, cb, capt) {
|
|
14223
14223
|
el.addEventListener(ev, cb, capt ? evOpts2 : evOpts);
|
|
14224
14224
|
}
|
|
14225
14225
|
function off(ev, el, cb, capt) {
|
|
@@ -14392,8 +14392,8 @@ function _rangeNum(_min, _max, cfg) {
|
|
|
14392
14392
|
maxLim = 100;
|
|
14393
14393
|
return [minLim, maxLim];
|
|
14394
14394
|
}
|
|
14395
|
-
function numIntDigits(
|
|
14396
|
-
return (log10((
|
|
14395
|
+
function numIntDigits(x3) {
|
|
14396
|
+
return (log10((x3 ^ x3 >> 31) - (x3 >> 31)) | 0) + 1;
|
|
14397
14397
|
}
|
|
14398
14398
|
function clamp(num, _min, _max) {
|
|
14399
14399
|
return min(max(num, _min), _max);
|
|
@@ -14562,8 +14562,8 @@ function sortCols(table) {
|
|
|
14562
14562
|
for (let i3 = 0; i3 < table.length; i3++) {
|
|
14563
14563
|
let row = table[i3];
|
|
14564
14564
|
let row2 = Array(rlen);
|
|
14565
|
-
for (let
|
|
14566
|
-
row2[
|
|
14565
|
+
for (let j4 = 0; j4 < rlen; j4++)
|
|
14566
|
+
row2[j4] = row[idxs[j4]];
|
|
14567
14567
|
table2.push(row2);
|
|
14568
14568
|
}
|
|
14569
14569
|
return table2;
|
|
@@ -14576,8 +14576,8 @@ function allHeadersSame(tables) {
|
|
|
14576
14576
|
if (vals1.length != len0)
|
|
14577
14577
|
return false;
|
|
14578
14578
|
if (vals1 != vals0) {
|
|
14579
|
-
for (let
|
|
14580
|
-
if (vals1[
|
|
14579
|
+
for (let j4 = 0; j4 < len0; j4++) {
|
|
14580
|
+
if (vals1[j4] != vals0[j4])
|
|
14581
14581
|
return false;
|
|
14582
14582
|
}
|
|
14583
14583
|
}
|
|
@@ -14694,13 +14694,13 @@ function genTimeStuffs(ms) {
|
|
|
14694
14694
|
]);
|
|
14695
14695
|
const _timeAxisStamps = [
|
|
14696
14696
|
// tick incr default year month day hour min sec mode
|
|
14697
|
-
[y3, yyyy,
|
|
14698
|
-
[d3 * 28, "{MMM}", NLyyyy,
|
|
14699
|
-
[d3, md, NLyyyy,
|
|
14700
|
-
[h3, "{h}" + aa, NLmdyy,
|
|
14701
|
-
[m3, hmmaa, NLmdyy,
|
|
14702
|
-
[s3, ss, NLmdyy + " " + hmmaa,
|
|
14703
|
-
[ms, ss + ".{fff}", NLmdyy + " " + hmmaa,
|
|
14697
|
+
[y3, yyyy, _3, _3, _3, _3, _3, _3, 1],
|
|
14698
|
+
[d3 * 28, "{MMM}", NLyyyy, _3, _3, _3, _3, _3, 1],
|
|
14699
|
+
[d3, md, NLyyyy, _3, _3, _3, _3, _3, 1],
|
|
14700
|
+
[h3, "{h}" + aa, NLmdyy, _3, NLmd, _3, _3, _3, 1],
|
|
14701
|
+
[m3, hmmaa, NLmdyy, _3, NLmd, _3, _3, _3, 1],
|
|
14702
|
+
[s3, ss, NLmdyy + " " + hmmaa, _3, NLmd + " " + hmmaa, _3, NLhmmaa, _3, 1],
|
|
14703
|
+
[ms, ss + ".{fff}", NLmdyy + " " + hmmaa, _3, NLmd + " " + hmmaa, _3, NLhmmaa, _3, 1]
|
|
14704
14704
|
];
|
|
14705
14705
|
function timeAxisSplits(tzDate2) {
|
|
14706
14706
|
return (self, axisIdx, scaleMin, scaleMax, foundIncr, foundSpace) => {
|
|
@@ -14960,9 +14960,9 @@ function _sync(key, opts) {
|
|
|
14960
14960
|
unsub(plot) {
|
|
14961
14961
|
s3.plots = s3.plots.filter((c3) => c3 != plot);
|
|
14962
14962
|
},
|
|
14963
|
-
pub(type, self,
|
|
14964
|
-
for (let
|
|
14965
|
-
s3.plots[
|
|
14963
|
+
pub(type, self, x3, y3, w3, h3, i3) {
|
|
14964
|
+
for (let j4 = 0; j4 < s3.plots.length; j4++)
|
|
14965
|
+
s3.plots[j4] != self && s3.plots[j4].pub(type, self, x3, y3, w3, h3, i3);
|
|
14966
14966
|
}
|
|
14967
14967
|
};
|
|
14968
14968
|
if (key != null)
|
|
@@ -14976,15 +14976,15 @@ function orient(u3, seriesIdx, cb) {
|
|
|
14976
14976
|
const data = mode == 2 ? u3._data[seriesIdx] : u3._data;
|
|
14977
14977
|
const scales = u3.scales;
|
|
14978
14978
|
const bbox = u3.bbox;
|
|
14979
|
-
let dx = data[0], dy = mode == 2 ? data[1] : data[seriesIdx], sx = mode == 2 ? scales[series.facets[0].scale] : scales[u3.series[0].scale], sy = mode == 2 ? scales[series.facets[1].scale] : scales[series.scale], l3 = bbox.left, t5 = bbox.top, w3 = bbox.width, h3 = bbox.height,
|
|
14979
|
+
let dx = data[0], dy = mode == 2 ? data[1] : data[seriesIdx], sx = mode == 2 ? scales[series.facets[0].scale] : scales[u3.series[0].scale], sy = mode == 2 ? scales[series.facets[1].scale] : scales[series.scale], l3 = bbox.left, t5 = bbox.top, w3 = bbox.width, h3 = bbox.height, H3 = u3.valToPosH, V3 = u3.valToPosV;
|
|
14980
14980
|
return sx.ori == 0 ? cb(
|
|
14981
14981
|
series,
|
|
14982
14982
|
dx,
|
|
14983
14983
|
dy,
|
|
14984
14984
|
sx,
|
|
14985
14985
|
sy,
|
|
14986
|
-
|
|
14987
|
-
|
|
14986
|
+
H3,
|
|
14987
|
+
V3,
|
|
14988
14988
|
l3,
|
|
14989
14989
|
t5,
|
|
14990
14990
|
w3,
|
|
@@ -15000,8 +15000,8 @@ function orient(u3, seriesIdx, cb) {
|
|
|
15000
15000
|
dy,
|
|
15001
15001
|
sx,
|
|
15002
15002
|
sy,
|
|
15003
|
-
|
|
15004
|
-
|
|
15003
|
+
V3,
|
|
15004
|
+
H3,
|
|
15005
15005
|
t5,
|
|
15006
15006
|
l3,
|
|
15007
15007
|
h3,
|
|
@@ -15080,11 +15080,11 @@ function clipGaps(gaps2, ori, plotLft, plotTop, plotWid, plotHgt) {
|
|
|
15080
15080
|
const rect2 = ori == 0 ? rectH : rectV;
|
|
15081
15081
|
let prevGapEnd = plotLft;
|
|
15082
15082
|
for (let i3 = 0; i3 < gaps2.length; i3++) {
|
|
15083
|
-
let
|
|
15084
|
-
if (
|
|
15085
|
-
let w4 =
|
|
15083
|
+
let g4 = gaps2[i3];
|
|
15084
|
+
if (g4[1] > g4[0]) {
|
|
15085
|
+
let w4 = g4[0] - prevGapEnd;
|
|
15086
15086
|
w4 > 0 && rect2(clip, prevGapEnd, plotTop, w4, plotTop + plotHgt);
|
|
15087
|
-
prevGapEnd =
|
|
15087
|
+
prevGapEnd = g4[1];
|
|
15088
15088
|
}
|
|
15089
15089
|
}
|
|
15090
15090
|
let w3 = plotLft + plotWid - prevGapEnd;
|
|
@@ -15133,27 +15133,27 @@ function pxRoundGen(pxAlign) {
|
|
|
15133
15133
|
}
|
|
15134
15134
|
function rect(ori) {
|
|
15135
15135
|
let moveTo = ori == 0 ? moveToH : moveToV;
|
|
15136
|
-
let arcTo = ori == 0 ? (p3, x1, y1,
|
|
15137
|
-
p3.arcTo(x1, y1,
|
|
15138
|
-
} : (p3, y1, x1, y22,
|
|
15139
|
-
p3.arcTo(x1, y1,
|
|
15136
|
+
let arcTo = ori == 0 ? (p3, x1, y1, x22, y22, r3) => {
|
|
15137
|
+
p3.arcTo(x1, y1, x22, y22, r3);
|
|
15138
|
+
} : (p3, y1, x1, y22, x22, r3) => {
|
|
15139
|
+
p3.arcTo(x1, y1, x22, y22, r3);
|
|
15140
15140
|
};
|
|
15141
|
-
let rect2 = ori == 0 ? (p3,
|
|
15142
|
-
p3.rect(
|
|
15143
|
-
} : (p3, y3,
|
|
15144
|
-
p3.rect(
|
|
15141
|
+
let rect2 = ori == 0 ? (p3, x3, y3, w3, h3) => {
|
|
15142
|
+
p3.rect(x3, y3, w3, h3);
|
|
15143
|
+
} : (p3, y3, x3, h3, w3) => {
|
|
15144
|
+
p3.rect(x3, y3, w3, h3);
|
|
15145
15145
|
};
|
|
15146
|
-
return (p3,
|
|
15146
|
+
return (p3, x3, y3, w3, h3, endRad = 0, baseRad = 0) => {
|
|
15147
15147
|
if (endRad == 0 && baseRad == 0)
|
|
15148
|
-
rect2(p3,
|
|
15148
|
+
rect2(p3, x3, y3, w3, h3);
|
|
15149
15149
|
else {
|
|
15150
15150
|
endRad = min(endRad, w3 / 2, h3 / 2);
|
|
15151
15151
|
baseRad = min(baseRad, w3 / 2, h3 / 2);
|
|
15152
|
-
moveTo(p3,
|
|
15153
|
-
arcTo(p3,
|
|
15154
|
-
arcTo(p3,
|
|
15155
|
-
arcTo(p3,
|
|
15156
|
-
arcTo(p3,
|
|
15152
|
+
moveTo(p3, x3 + endRad, y3);
|
|
15153
|
+
arcTo(p3, x3 + w3, y3, x3 + w3, y3 + h3, endRad);
|
|
15154
|
+
arcTo(p3, x3 + w3, y3 + h3, x3, y3 + h3, baseRad);
|
|
15155
|
+
arcTo(p3, x3, y3 + h3, x3, y3, baseRad);
|
|
15156
|
+
arcTo(p3, x3, y3, x3 + w3, y3, endRad);
|
|
15157
15157
|
p3.closePath();
|
|
15158
15158
|
}
|
|
15159
15159
|
};
|
|
@@ -15185,10 +15185,10 @@ function points(opts) {
|
|
|
15185
15185
|
);
|
|
15186
15186
|
const drawPoint = (pi) => {
|
|
15187
15187
|
if (dataY[pi] != null) {
|
|
15188
|
-
let
|
|
15188
|
+
let x3 = pxRound(valToPosX(dataX[pi], scaleX, xDim, xOff));
|
|
15189
15189
|
let y3 = pxRound(valToPosY(dataY[pi], scaleY, yDim, yOff));
|
|
15190
|
-
moveTo(fill,
|
|
15191
|
-
arc(fill,
|
|
15190
|
+
moveTo(fill, x3 + rad, y3);
|
|
15191
|
+
arc(fill, x3, y3, rad, 0, PI * 2);
|
|
15192
15192
|
}
|
|
15193
15193
|
};
|
|
15194
15194
|
if (filtIdxs)
|
|
@@ -15248,13 +15248,13 @@ function linear(opts) {
|
|
|
15248
15248
|
for (let i3 = dir == 1 ? idx0 : idx1; i3 >= idx0 && i3 <= idx1; i3 += dir) {
|
|
15249
15249
|
let xVal = dataX[i3];
|
|
15250
15250
|
let reuseAccX = dir == 1 ? xVal < nextAccXVal : xVal > nextAccXVal;
|
|
15251
|
-
let
|
|
15251
|
+
let x3 = reuseAccX ? accX : pixelForX(xVal);
|
|
15252
15252
|
let yVal = dataY[i3];
|
|
15253
|
-
if (
|
|
15253
|
+
if (x3 == accX) {
|
|
15254
15254
|
if (yVal != null) {
|
|
15255
15255
|
outY = yVal;
|
|
15256
15256
|
if (minY == null) {
|
|
15257
|
-
lineTo(stroke,
|
|
15257
|
+
lineTo(stroke, x3, pixelForY(outY));
|
|
15258
15258
|
inY = minY = maxY = outY;
|
|
15259
15259
|
} else {
|
|
15260
15260
|
if (outY < minY)
|
|
@@ -15271,14 +15271,14 @@ function linear(opts) {
|
|
|
15271
15271
|
drawAcc(stroke, accX, pixelForY(minY), pixelForY(maxY), pixelForY(inY), pixelForY(outY));
|
|
15272
15272
|
if (yVal != null) {
|
|
15273
15273
|
outY = yVal;
|
|
15274
|
-
lineTo(stroke,
|
|
15274
|
+
lineTo(stroke, x3, pixelForY(outY));
|
|
15275
15275
|
minY = maxY = inY = outY;
|
|
15276
15276
|
} else {
|
|
15277
15277
|
minY = maxY = null;
|
|
15278
15278
|
if (yVal === null)
|
|
15279
15279
|
hasGap = true;
|
|
15280
15280
|
}
|
|
15281
|
-
accX =
|
|
15281
|
+
accX = x3;
|
|
15282
15282
|
nextAccXVal = xForPixel(accX + dir);
|
|
15283
15283
|
}
|
|
15284
15284
|
}
|
|
@@ -15379,9 +15379,9 @@ function stepped(opts) {
|
|
|
15379
15379
|
let halfStroke = series.width * pxRatio / 2;
|
|
15380
15380
|
let startsOffset = ascDesc || align == 1 ? halfStroke : -halfStroke;
|
|
15381
15381
|
let endsOffset = ascDesc || align == -1 ? -halfStroke : halfStroke;
|
|
15382
|
-
gaps2.forEach((
|
|
15383
|
-
|
|
15384
|
-
|
|
15382
|
+
gaps2.forEach((g4) => {
|
|
15383
|
+
g4[0] += startsOffset;
|
|
15384
|
+
g4[1] += endsOffset;
|
|
15385
15385
|
});
|
|
15386
15386
|
_paths.gaps = gaps2 = series.gaps(u3, seriesIdx, idx0, idx1, gaps2);
|
|
15387
15387
|
_paths.clip = clipGaps(gaps2, scaleX.ori, xOff, yOff, xDim, yDim);
|
|
@@ -15427,7 +15427,7 @@ function bars(opts) {
|
|
|
15427
15427
|
const _maxWidth = ifNull(size[1], inf);
|
|
15428
15428
|
const _minWidth = ifNull(size[2], 1);
|
|
15429
15429
|
const disp = ifNull(opts.disp, EMPTY_OBJ);
|
|
15430
|
-
const _each = ifNull(opts.each, (
|
|
15430
|
+
const _each = ifNull(opts.each, (_4) => {
|
|
15431
15431
|
});
|
|
15432
15432
|
const { fill: dispFills, stroke: dispStrokes } = disp;
|
|
15433
15433
|
return (u3, seriesIdx, idx0, idx1) => {
|
|
@@ -15752,7 +15752,7 @@ function uPlot(opts, data, then) {
|
|
|
15752
15752
|
const can = placeTag("canvas");
|
|
15753
15753
|
const ctx = self.ctx = can.getContext("2d");
|
|
15754
15754
|
const wrap = placeDiv(WRAP, root);
|
|
15755
|
-
|
|
15755
|
+
on2("click", wrap, (e3) => {
|
|
15756
15756
|
if (e3.target === over) {
|
|
15757
15757
|
let didDrag = mouseLeft1 != mouseLeft0 || mouseTop1 != mouseTop0;
|
|
15758
15758
|
didDrag && drag.click(self, e3);
|
|
@@ -15805,30 +15805,30 @@ function uPlot(opts, data, then) {
|
|
|
15805
15805
|
sc = scales[scaleKey] = assign({}, scaleKey == xScaleKey ? xScaleOpts : yScaleOpts, scaleOpts);
|
|
15806
15806
|
sc.key = scaleKey;
|
|
15807
15807
|
let isTime = sc.time;
|
|
15808
|
-
let
|
|
15809
|
-
let rangeIsArr = isArr(
|
|
15808
|
+
let rn2 = sc.range;
|
|
15809
|
+
let rangeIsArr = isArr(rn2);
|
|
15810
15810
|
if (scaleKey != xScaleKey || mode == 2 && !isTime) {
|
|
15811
|
-
if (rangeIsArr && (
|
|
15812
|
-
|
|
15813
|
-
min:
|
|
15811
|
+
if (rangeIsArr && (rn2[0] == null || rn2[1] == null)) {
|
|
15812
|
+
rn2 = {
|
|
15813
|
+
min: rn2[0] == null ? autoRangePart : {
|
|
15814
15814
|
mode: 1,
|
|
15815
|
-
hard:
|
|
15816
|
-
soft:
|
|
15815
|
+
hard: rn2[0],
|
|
15816
|
+
soft: rn2[0]
|
|
15817
15817
|
},
|
|
15818
|
-
max:
|
|
15818
|
+
max: rn2[1] == null ? autoRangePart : {
|
|
15819
15819
|
mode: 1,
|
|
15820
|
-
hard:
|
|
15821
|
-
soft:
|
|
15820
|
+
hard: rn2[1],
|
|
15821
|
+
soft: rn2[1]
|
|
15822
15822
|
}
|
|
15823
15823
|
};
|
|
15824
15824
|
rangeIsArr = false;
|
|
15825
15825
|
}
|
|
15826
|
-
if (!rangeIsArr && isObj(
|
|
15827
|
-
let cfg =
|
|
15828
|
-
|
|
15826
|
+
if (!rangeIsArr && isObj(rn2)) {
|
|
15827
|
+
let cfg = rn2;
|
|
15828
|
+
rn2 = (self2, dataMin, dataMax) => dataMin == null ? nullNullTuple : rangeNum(dataMin, dataMax, cfg);
|
|
15829
15829
|
}
|
|
15830
15830
|
}
|
|
15831
|
-
sc.range = fnOrSelf(
|
|
15831
|
+
sc.range = fnOrSelf(rn2 || (isTime ? snapTimeX : scaleKey == xScaleKey ? sc.distr == 3 ? snapLogX : sc.distr == 4 ? snapAsinhX : snapNumX : sc.distr == 3 ? snapLogY : sc.distr == 4 ? snapAsinhY : snapNumY));
|
|
15832
15832
|
sc.auto = fnOrSelf(rangeIsArr ? false : sc.auto);
|
|
15833
15833
|
sc.clamp = fnOrSelf(sc.clamp || clampScale);
|
|
15834
15834
|
sc._min = sc._max = null;
|
|
@@ -15978,7 +15978,7 @@ function uPlot(opts, data, then) {
|
|
|
15978
15978
|
const targListeners = mouseListeners.get(targ) || {};
|
|
15979
15979
|
const listener = cursor.bind[ev](self, targ, fn, onlyTarg);
|
|
15980
15980
|
if (listener) {
|
|
15981
|
-
|
|
15981
|
+
on2(ev, targ, targListeners[ev] = listener);
|
|
15982
15982
|
mouseListeners.set(targ, targListeners);
|
|
15983
15983
|
}
|
|
15984
15984
|
}
|
|
@@ -16140,19 +16140,19 @@ function uPlot(opts, data, then) {
|
|
|
16140
16140
|
let yValues = data[seriesIdx];
|
|
16141
16141
|
if (skip.has(yValues[cursorIdx])) {
|
|
16142
16142
|
idx2 = null;
|
|
16143
|
-
let nonNullLft = null, nonNullRgt = null,
|
|
16143
|
+
let nonNullLft = null, nonNullRgt = null, j4;
|
|
16144
16144
|
if (bias == 0 || bias == -1) {
|
|
16145
|
-
|
|
16146
|
-
while (nonNullLft == null &&
|
|
16147
|
-
if (!skip.has(yValues[
|
|
16148
|
-
nonNullLft =
|
|
16145
|
+
j4 = cursorIdx;
|
|
16146
|
+
while (nonNullLft == null && j4-- > 0) {
|
|
16147
|
+
if (!skip.has(yValues[j4]))
|
|
16148
|
+
nonNullLft = j4;
|
|
16149
16149
|
}
|
|
16150
16150
|
}
|
|
16151
16151
|
if (bias == 0 || bias == 1) {
|
|
16152
|
-
|
|
16153
|
-
while (nonNullRgt == null &&
|
|
16154
|
-
if (!skip.has(yValues[
|
|
16155
|
-
nonNullRgt =
|
|
16152
|
+
j4 = cursorIdx;
|
|
16153
|
+
while (nonNullRgt == null && j4++ < yValues.length) {
|
|
16154
|
+
if (!skip.has(yValues[j4]))
|
|
16155
|
+
nonNullRgt = j4;
|
|
16156
16156
|
}
|
|
16157
16157
|
}
|
|
16158
16158
|
if (nonNullLft != null || nonNullRgt != null) {
|
|
@@ -16857,7 +16857,7 @@ function uPlot(opts, data, then) {
|
|
|
16857
16857
|
continue;
|
|
16858
16858
|
let side = axis.side;
|
|
16859
16859
|
let ori = side % 2;
|
|
16860
|
-
let
|
|
16860
|
+
let x3, y3;
|
|
16861
16861
|
let fillStyle = axis.stroke(self, i3);
|
|
16862
16862
|
let shiftDir = side == 0 || side == 3 ? -1 : 1;
|
|
16863
16863
|
let [_incr, _space] = axis._found;
|
|
@@ -16867,18 +16867,18 @@ function uPlot(opts, data, then) {
|
|
|
16867
16867
|
setFontStyle(axis.labelFont[0], fillStyle, "center", side == 2 ? TOP : BOTTOM);
|
|
16868
16868
|
ctx.save();
|
|
16869
16869
|
if (ori == 1) {
|
|
16870
|
-
|
|
16870
|
+
x3 = y3 = 0;
|
|
16871
16871
|
ctx.translate(
|
|
16872
16872
|
baseLpos,
|
|
16873
16873
|
round(plotTop + plotHgt / 2)
|
|
16874
16874
|
);
|
|
16875
16875
|
ctx.rotate((side == 3 ? -PI : PI) / 2);
|
|
16876
16876
|
} else {
|
|
16877
|
-
|
|
16877
|
+
x3 = round(plotLft + plotWid / 2);
|
|
16878
16878
|
y3 = baseLpos;
|
|
16879
16879
|
}
|
|
16880
16880
|
let _label = isFn(axis.label) ? axis.label(self, i3, _incr, _space) : axis.label;
|
|
16881
|
-
ctx.fillText(_label,
|
|
16881
|
+
ctx.fillText(_label, x3, y3);
|
|
16882
16882
|
ctx.restore();
|
|
16883
16883
|
}
|
|
16884
16884
|
if (_space == 0)
|
|
@@ -16899,7 +16899,7 @@ function uPlot(opts, data, then) {
|
|
|
16899
16899
|
let shiftAmt = (tickSize + axisGap) * shiftDir;
|
|
16900
16900
|
let finalPos = basePos + shiftAmt;
|
|
16901
16901
|
y3 = ori == 0 ? finalPos : 0;
|
|
16902
|
-
|
|
16902
|
+
x3 = ori == 1 ? finalPos : 0;
|
|
16903
16903
|
let font2 = axis.font[0];
|
|
16904
16904
|
let textAlign = axis.align == 1 ? LEFT : axis.align == 2 ? RIGHT : angle > 0 ? LEFT : angle < 0 ? RIGHT : ori == 0 ? "center" : side == 3 ? RIGHT : LEFT;
|
|
16905
16905
|
let textBaseline = angle || ori == 1 ? "middle" : side == 2 ? TOP : BOTTOM;
|
|
@@ -16911,21 +16911,21 @@ function uPlot(opts, data, then) {
|
|
|
16911
16911
|
let val = _values[i4];
|
|
16912
16912
|
if (val != null) {
|
|
16913
16913
|
if (ori == 0)
|
|
16914
|
-
|
|
16914
|
+
x3 = canOffs[i4];
|
|
16915
16915
|
else
|
|
16916
16916
|
y3 = canOffs[i4];
|
|
16917
16917
|
val = "" + val;
|
|
16918
16918
|
let _parts = val.indexOf("\n") == -1 ? [val] : val.split(/\n/gm);
|
|
16919
|
-
for (let
|
|
16920
|
-
let text = _parts[
|
|
16919
|
+
for (let j4 = 0; j4 < _parts.length; j4++) {
|
|
16920
|
+
let text = _parts[j4];
|
|
16921
16921
|
if (angle) {
|
|
16922
16922
|
ctx.save();
|
|
16923
|
-
ctx.translate(
|
|
16923
|
+
ctx.translate(x3, y3 + j4 * lineHeight);
|
|
16924
16924
|
ctx.rotate(angle);
|
|
16925
16925
|
ctx.fillText(text, 0, 0);
|
|
16926
16926
|
ctx.restore();
|
|
16927
16927
|
} else
|
|
16928
|
-
ctx.fillText(text,
|
|
16928
|
+
ctx.fillText(text, x3, y3 + j4 * lineHeight);
|
|
16929
16929
|
}
|
|
16930
16930
|
}
|
|
16931
16931
|
}
|
|
@@ -17347,9 +17347,9 @@ function uPlot(opts, data, then) {
|
|
|
17347
17347
|
if (i3 == 0 && multiValLegend)
|
|
17348
17348
|
continue;
|
|
17349
17349
|
let vals = legend.values[i3];
|
|
17350
|
-
let
|
|
17350
|
+
let j4 = 0;
|
|
17351
17351
|
for (let k3 in vals)
|
|
17352
|
-
legendCells[i3][
|
|
17352
|
+
legendCells[i3][j4++].firstChild.nodeValue = vals[k3];
|
|
17353
17353
|
}
|
|
17354
17354
|
}
|
|
17355
17355
|
}
|
|
@@ -17847,7 +17847,7 @@ function uPlot(opts, data, then) {
|
|
|
17847
17847
|
axes.forEach(syncFontSize);
|
|
17848
17848
|
_setSize(self.width, self.height, true);
|
|
17849
17849
|
}
|
|
17850
|
-
|
|
17850
|
+
on2(dppxchange, win, syncPxRatio);
|
|
17851
17851
|
const events = {};
|
|
17852
17852
|
events.mousedown = mouseDown;
|
|
17853
17853
|
events.mousemove = mouseMove;
|
|
@@ -17903,14 +17903,14 @@ function uPlot(opts, data, then) {
|
|
|
17903
17903
|
cursor.sync = syncOpts;
|
|
17904
17904
|
const syncKey = syncOpts.key;
|
|
17905
17905
|
const sync = _sync(syncKey);
|
|
17906
|
-
function pubSync(type, src,
|
|
17907
|
-
if (syncOpts.filters.pub(type, src,
|
|
17908
|
-
sync.pub(type, src,
|
|
17906
|
+
function pubSync(type, src, x3, y3, w3, h3, i3) {
|
|
17907
|
+
if (syncOpts.filters.pub(type, src, x3, y3, w3, h3, i3))
|
|
17908
|
+
sync.pub(type, src, x3, y3, w3, h3, i3);
|
|
17909
17909
|
}
|
|
17910
17910
|
sync.sub(self);
|
|
17911
|
-
function pub(type, src,
|
|
17912
|
-
if (syncOpts.filters.sub(type, src,
|
|
17913
|
-
events[type](null, src,
|
|
17911
|
+
function pub(type, src, x3, y3, w3, h3, i3) {
|
|
17912
|
+
if (syncOpts.filters.sub(type, src, x3, y3, w3, h3, i3))
|
|
17913
|
+
events[type](null, src, x3, y3, w3, h3, i3);
|
|
17914
17914
|
}
|
|
17915
17915
|
self.pub = pub;
|
|
17916
17916
|
function destroy() {
|
|
@@ -17946,7 +17946,7 @@ function uPlot(opts, data, then) {
|
|
|
17946
17946
|
_init();
|
|
17947
17947
|
return self;
|
|
17948
17948
|
}
|
|
17949
|
-
var FEAT_TIME, pre, UPLOT, ORI_HZ, ORI_VT, TITLE, WRAP, UNDER, OVER, AXIS, OFF, SELECT, CURSOR_X, CURSOR_Y, CURSOR_PT, LEGEND, LEGEND_LIVE, LEGEND_INLINE, LEGEND_SERIES, LEGEND_MARKER, LEGEND_LABEL, LEGEND_VALUE, WIDTH, HEIGHT, TOP, BOTTOM, LEFT, RIGHT, hexBlack, transparent, mousemove, mousedown, mouseup, mouseenter, mouseleave, dblclick, resize, scroll, change, dppxchange, LEGEND_DISP, domEnv, doc, win, nav, pxRatio, query, xformCache, colorCache, sizeCache, evOpts, evOpts2, notNullish, isPositive, nonNullIdxs, positiveIdxs, rangePad, autoRangePart, _eqRangePart, _eqRange, numFormatter, fmtNum2,
|
|
17949
|
+
var FEAT_TIME, pre, UPLOT, ORI_HZ, ORI_VT, TITLE, WRAP, UNDER, OVER, AXIS, OFF, SELECT, CURSOR_X, CURSOR_Y, CURSOR_PT, LEGEND, LEGEND_LIVE, LEGEND_INLINE, LEGEND_SERIES, LEGEND_MARKER, LEGEND_LABEL, LEGEND_VALUE, WIDTH, HEIGHT, TOP, BOTTOM, LEFT, RIGHT, hexBlack, transparent, mousemove, mousedown, mouseup, mouseenter, mouseleave, dblclick, resize, scroll, change, dppxchange, LEGEND_DISP, domEnv, doc, win, nav, pxRatio, query, xformCache, colorCache, sizeCache, evOpts, evOpts2, notNullish, isPositive, nonNullIdxs, positiveIdxs, rangePad, autoRangePart, _eqRangePart, _eqRange, numFormatter, fmtNum2, M3, PI, abs, floor, round, ceil, min, max, pow, sign, log10, log2, sinh, asinh, inf, noop, retArg0, retArg1, retNull, retTrue, retEq, regex6, fixFloat, fixedDec, EMPTY_OBJ, EMPTY_ARR, nullNullTuple, isArr, isInt, isUndef, TypedArray, __proto__, NULL_REMOVE, NULL_RETAIN, NULL_EXPAND, microTask, months, days, days3, months3, engNames, subs, localTz, onlyWhole, allMults, decIncrs, oneIncrs, wholeIncrs, numIncrs, NL, yyyy, NLyyyy, md, NLmd, NLmdyy, aa, hmm, hmmaa, NLhmmaa, ss, _3, timeIncrsMs, _timeAxisStampsMs, timeAxisSplitsMs, timeIncrsS, _timeAxisStampsS, timeAxisSplitsS, _timeSeriesStamp, legendOpts, moveTuple, cursorOpts, axisLines, grid, ticks, border, font, labelFont, lineGap, xAxisOpts, numSeriesLabel, timeSeriesLabel, xSeriesOpts, RE_ALL, RE_12357, RE_125, RE_1, _filt, yAxisOpts, facet, gaps, xySeriesOpts, ySeriesOpts, xScaleOpts, yScaleOpts, syncs, BAND_CLIP_FILL, BAND_CLIP_STROKE, moveToH, moveToV, lineToH, lineToV, rectH, rectV, arcH, arcV, bezierCurveToH, bezierCurveToV, drawAccH, drawAccV, cursorPlots, linearPath, pointsPath, snapTimeX, snapLogX, snapAsinhX;
|
|
17950
17950
|
var init_uPlot_esm = __esm({
|
|
17951
17951
|
"node_modules/uplot/dist/uPlot.esm.js"() {
|
|
17952
17952
|
"use strict";
|
|
@@ -18021,27 +18021,27 @@ var init_uPlot_esm = __esm({
|
|
|
18021
18021
|
};
|
|
18022
18022
|
numFormatter = new Intl.NumberFormat(domEnv ? nav.language : "en-US");
|
|
18023
18023
|
fmtNum2 = (val) => numFormatter.format(val);
|
|
18024
|
-
|
|
18025
|
-
PI =
|
|
18026
|
-
abs =
|
|
18027
|
-
floor =
|
|
18028
|
-
round =
|
|
18029
|
-
ceil =
|
|
18030
|
-
min =
|
|
18031
|
-
max =
|
|
18032
|
-
pow =
|
|
18033
|
-
sign =
|
|
18034
|
-
log10 =
|
|
18035
|
-
log2 =
|
|
18036
|
-
sinh = (v3, linthresh = 1) =>
|
|
18037
|
-
asinh = (v3, linthresh = 1) =>
|
|
18024
|
+
M3 = Math;
|
|
18025
|
+
PI = M3.PI;
|
|
18026
|
+
abs = M3.abs;
|
|
18027
|
+
floor = M3.floor;
|
|
18028
|
+
round = M3.round;
|
|
18029
|
+
ceil = M3.ceil;
|
|
18030
|
+
min = M3.min;
|
|
18031
|
+
max = M3.max;
|
|
18032
|
+
pow = M3.pow;
|
|
18033
|
+
sign = M3.sign;
|
|
18034
|
+
log10 = M3.log10;
|
|
18035
|
+
log2 = M3.log2;
|
|
18036
|
+
sinh = (v3, linthresh = 1) => M3.sinh(v3) * linthresh;
|
|
18037
|
+
asinh = (v3, linthresh = 1) => M3.asinh(v3 / linthresh);
|
|
18038
18038
|
inf = Infinity;
|
|
18039
18039
|
noop = () => {
|
|
18040
18040
|
};
|
|
18041
18041
|
retArg0 = (_0) => _0;
|
|
18042
18042
|
retArg1 = (_0, _1) => _1;
|
|
18043
|
-
retNull = (
|
|
18044
|
-
retTrue = (
|
|
18043
|
+
retNull = (_4) => null;
|
|
18044
|
+
retTrue = (_4) => true;
|
|
18045
18045
|
retEq = (a3, b2) => a3 == b2;
|
|
18046
18046
|
regex6 = /\.\d*?(?=9{6,}|0{6,})/gm;
|
|
18047
18047
|
fixFloat = (val) => {
|
|
@@ -18167,7 +18167,7 @@ var init_uPlot_esm = __esm({
|
|
|
18167
18167
|
hmmaa = hmm + aa;
|
|
18168
18168
|
NLhmmaa = NL + hmmaa;
|
|
18169
18169
|
ss = ":{ss}";
|
|
18170
|
-
|
|
18170
|
+
_3 = null;
|
|
18171
18171
|
[timeIncrsMs, _timeAxisStampsMs, timeAxisSplitsMs] = genTimeStuffs(1);
|
|
18172
18172
|
[timeIncrsS, _timeAxisStampsS, timeAxisSplitsS] = genTimeStuffs(1e-3);
|
|
18173
18173
|
genIncrs(2, -53, 53, [1]);
|
|
@@ -18391,25 +18391,25 @@ var init_uPlot_esm = __esm({
|
|
|
18391
18391
|
syncs = {};
|
|
18392
18392
|
BAND_CLIP_FILL = 1 << 0;
|
|
18393
18393
|
BAND_CLIP_STROKE = 1 << 1;
|
|
18394
|
-
moveToH = (p3,
|
|
18395
|
-
p3.moveTo(
|
|
18394
|
+
moveToH = (p3, x3, y3) => {
|
|
18395
|
+
p3.moveTo(x3, y3);
|
|
18396
18396
|
};
|
|
18397
|
-
moveToV = (p3, y3,
|
|
18398
|
-
p3.moveTo(
|
|
18397
|
+
moveToV = (p3, y3, x3) => {
|
|
18398
|
+
p3.moveTo(x3, y3);
|
|
18399
18399
|
};
|
|
18400
|
-
lineToH = (p3,
|
|
18401
|
-
p3.lineTo(
|
|
18400
|
+
lineToH = (p3, x3, y3) => {
|
|
18401
|
+
p3.lineTo(x3, y3);
|
|
18402
18402
|
};
|
|
18403
|
-
lineToV = (p3, y3,
|
|
18404
|
-
p3.lineTo(
|
|
18403
|
+
lineToV = (p3, y3, x3) => {
|
|
18404
|
+
p3.lineTo(x3, y3);
|
|
18405
18405
|
};
|
|
18406
18406
|
rectH = rect(0);
|
|
18407
18407
|
rectV = rect(1);
|
|
18408
|
-
arcH = (p3,
|
|
18409
|
-
p3.arc(
|
|
18408
|
+
arcH = (p3, x3, y3, r3, startAngle, endAngle) => {
|
|
18409
|
+
p3.arc(x3, y3, r3, startAngle, endAngle);
|
|
18410
18410
|
};
|
|
18411
|
-
arcV = (p3, y3,
|
|
18412
|
-
p3.arc(
|
|
18411
|
+
arcV = (p3, y3, x3, r3, startAngle, endAngle) => {
|
|
18412
|
+
p3.arc(x3, y3, r3, startAngle, endAngle);
|
|
18413
18413
|
};
|
|
18414
18414
|
bezierCurveToH = (p3, bp1x, bp1y, bp2x, bp2y, p2x, p2y) => {
|
|
18415
18415
|
p3.bezierCurveTo(bp1x, bp1y, bp2x, bp2y, p2x, p2y);
|
|
@@ -18421,9 +18421,9 @@ var init_uPlot_esm = __esm({
|
|
|
18421
18421
|
drawAccV = _drawAcc(lineToV);
|
|
18422
18422
|
cursorPlots = /* @__PURE__ */ new Set();
|
|
18423
18423
|
if (domEnv) {
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18424
|
+
on2(resize, win, invalidateRects);
|
|
18425
|
+
on2(scroll, win, invalidateRects, true);
|
|
18426
|
+
on2(dppxchange, win, () => {
|
|
18427
18427
|
uPlot.pxRatio = pxRatio;
|
|
18428
18428
|
});
|
|
18429
18429
|
}
|
|
@@ -18556,8 +18556,8 @@ function H() {
|
|
|
18556
18556
|
}
|
|
18557
18557
|
}
|
|
18558
18558
|
function L(n3, l3, u3, t5, i3, r3, o3, e3, f3, c3, s3) {
|
|
18559
|
-
var a3, h3, p3, v3, y3,
|
|
18560
|
-
for (f3 = T(u3, l3, m3, f3, b2), a3 = 0; a3 < b2; a3++) null != (p3 = u3.__k[a3]) && (h3 = -1 != p3.__i && m3[p3.__i] || d, p3.__i = a3,
|
|
18559
|
+
var a3, h3, p3, v3, y3, _4, g4, m3 = t5 && t5.__k || w, b2 = l3.length;
|
|
18560
|
+
for (f3 = T(u3, l3, m3, f3, b2), a3 = 0; a3 < b2; a3++) null != (p3 = u3.__k[a3]) && (h3 = -1 != p3.__i && m3[p3.__i] || d, p3.__i = a3, _4 = q(n3, p3, h3, i3, r3, o3, e3, f3, c3, s3), v3 = p3.__e, p3.ref && h3.ref != p3.ref && (h3.ref && J(h3.ref, null, p3), s3.push(p3.ref, p3.__c || v3, p3)), null == y3 && null != v3 && (y3 = v3), (g4 = !!(4 & p3.__u)) || h3.__k === p3.__k ? (f3 = j(p3, f3, n3, g4), g4 && h3.__e && (h3.__e = null)) : "function" == typeof p3.type && void 0 !== _4 ? f3 = _4 : v3 && (f3 = v3.nextSibling), p3.__u &= -7);
|
|
18561
18561
|
return u3.__e = y3, f3;
|
|
18562
18562
|
}
|
|
18563
18563
|
function T(n3, l3, u3, t5, i3) {
|
|
@@ -18578,6 +18578,11 @@ function j(n3, l3, u3, t5) {
|
|
|
18578
18578
|
} while (null != l3 && 8 == l3.nodeType);
|
|
18579
18579
|
return l3;
|
|
18580
18580
|
}
|
|
18581
|
+
function F(n3, l3) {
|
|
18582
|
+
return l3 = l3 || [], null == n3 || "boolean" == typeof n3 || (g(n3) ? n3.some(function(n4) {
|
|
18583
|
+
F(n4, l3);
|
|
18584
|
+
}) : l3.push(n3)), l3;
|
|
18585
|
+
}
|
|
18581
18586
|
function O(n3, l3, u3, t5) {
|
|
18582
18587
|
var i3, r3, o3, e3 = n3.key, f3 = n3.type, c3 = l3[u3], s3 = null != c3 && 0 == (2 & c3.__u);
|
|
18583
18588
|
if (null === c3 && null == e3 || s3 && e3 == c3.key && f3 == c3.type) return u3;
|
|
@@ -18618,33 +18623,33 @@ function V(n3) {
|
|
|
18618
18623
|
};
|
|
18619
18624
|
}
|
|
18620
18625
|
function q(n3, u3, t5, i3, r3, o3, e3, f3, c3, s3) {
|
|
18621
|
-
var a3, h3, p3, v3, y3, d3,
|
|
18626
|
+
var a3, h3, p3, v3, y3, d3, _4, k3, x3, M4, $2, I2, P4, A4, H3, T4 = u3.type;
|
|
18622
18627
|
if (void 0 !== u3.constructor) return null;
|
|
18623
18628
|
128 & t5.__u && (c3 = !!(32 & t5.__u), o3 = [f3 = u3.__e = t5.__e]), (a3 = l.__b) && a3(u3);
|
|
18624
|
-
n: if ("function" == typeof
|
|
18625
|
-
if (k3 = u3.props,
|
|
18629
|
+
n: if ("function" == typeof T4) try {
|
|
18630
|
+
if (k3 = u3.props, x3 = T4.prototype && T4.prototype.render, M4 = (a3 = T4.contextType) && i3[a3.__c], $2 = a3 ? M4 ? M4.props.value : a3.__ : i3, t5.__c ? _4 = (h3 = u3.__c = t5.__c).__ = h3.__E : (x3 ? u3.__c = h3 = new T4(k3, $2) : (u3.__c = h3 = new C(k3, $2), h3.constructor = T4, h3.render = Q), M4 && M4.sub(h3), h3.state || (h3.state = {}), h3.__n = i3, p3 = h3.__d = true, h3.__h = [], h3._sb = []), x3 && null == h3.__s && (h3.__s = h3.state), x3 && null != T4.getDerivedStateFromProps && (h3.__s == h3.state && (h3.__s = m({}, h3.__s)), m(h3.__s, T4.getDerivedStateFromProps(k3, h3.__s))), v3 = h3.props, y3 = h3.state, h3.__v = u3, p3) x3 && null == T4.getDerivedStateFromProps && null != h3.componentWillMount && h3.componentWillMount(), x3 && null != h3.componentDidMount && h3.__h.push(h3.componentDidMount);
|
|
18626
18631
|
else {
|
|
18627
|
-
if (
|
|
18632
|
+
if (x3 && null == T4.getDerivedStateFromProps && k3 !== v3 && null != h3.componentWillReceiveProps && h3.componentWillReceiveProps(k3, $2), u3.__v == t5.__v || !h3.__e && null != h3.shouldComponentUpdate && false === h3.shouldComponentUpdate(k3, h3.__s, $2)) {
|
|
18628
18633
|
u3.__v != t5.__v && (h3.props = k3, h3.state = h3.__s, h3.__d = false), u3.__e = t5.__e, u3.__k = t5.__k, u3.__k.some(function(n4) {
|
|
18629
18634
|
n4 && (n4.__ = u3);
|
|
18630
18635
|
}), w.push.apply(h3.__h, h3._sb), h3._sb = [], h3.__h.length && e3.push(h3);
|
|
18631
18636
|
break n;
|
|
18632
18637
|
}
|
|
18633
|
-
null != h3.componentWillUpdate && h3.componentWillUpdate(k3, h3.__s, $2),
|
|
18638
|
+
null != h3.componentWillUpdate && h3.componentWillUpdate(k3, h3.__s, $2), x3 && null != h3.componentDidUpdate && h3.__h.push(function() {
|
|
18634
18639
|
h3.componentDidUpdate(v3, y3, d3);
|
|
18635
18640
|
});
|
|
18636
18641
|
}
|
|
18637
|
-
if (h3.context = $2, h3.props = k3, h3.__P = n3, h3.__e = false, I2 = l.__r,
|
|
18642
|
+
if (h3.context = $2, h3.props = k3, h3.__P = n3, h3.__e = false, I2 = l.__r, P4 = 0, x3) h3.state = h3.__s, h3.__d = false, I2 && I2(u3), a3 = h3.render(h3.props, h3.state, h3.context), w.push.apply(h3.__h, h3._sb), h3._sb = [];
|
|
18638
18643
|
else do {
|
|
18639
18644
|
h3.__d = false, I2 && I2(u3), a3 = h3.render(h3.props, h3.state, h3.context), h3.state = h3.__s;
|
|
18640
|
-
} while (h3.__d && ++
|
|
18641
|
-
h3.state = h3.__s, null != h3.getChildContext && (i3 = m(m({}, i3), h3.getChildContext())),
|
|
18645
|
+
} while (h3.__d && ++P4 < 25);
|
|
18646
|
+
h3.state = h3.__s, null != h3.getChildContext && (i3 = m(m({}, i3), h3.getChildContext())), x3 && !p3 && null != h3.getSnapshotBeforeUpdate && (d3 = h3.getSnapshotBeforeUpdate(v3, y3)), A4 = null != a3 && a3.type === S && null == a3.key ? E(a3.props.children) : a3, f3 = L(n3, g(A4) ? A4 : [A4], u3, t5, i3, r3, o3, e3, f3, c3, s3), h3.base = u3.__e, u3.__u &= -161, h3.__h.length && e3.push(h3), _4 && (h3.__E = h3.__ = null);
|
|
18642
18647
|
} catch (n4) {
|
|
18643
18648
|
if (u3.__v = null, c3 || null != o3) if (n4.then) {
|
|
18644
18649
|
for (u3.__u |= c3 ? 160 : 128; f3 && 8 == f3.nodeType && f3.nextSibling; ) f3 = f3.nextSibling;
|
|
18645
18650
|
o3[o3.indexOf(f3)] = null, u3.__e = f3;
|
|
18646
18651
|
} else {
|
|
18647
|
-
for (
|
|
18652
|
+
for (H3 = o3.length; H3--; ) b(o3[H3]);
|
|
18648
18653
|
B(u3);
|
|
18649
18654
|
}
|
|
18650
18655
|
else u3.__e = t5.__e, u3.__k = t5.__k, n4.then || B(u3);
|
|
@@ -18672,25 +18677,25 @@ function E(n3) {
|
|
|
18672
18677
|
return "object" != typeof n3 || null == n3 || n3.__b > 0 ? n3 : g(n3) ? n3.map(E) : m({}, n3);
|
|
18673
18678
|
}
|
|
18674
18679
|
function G(u3, t5, i3, r3, o3, e3, f3, c3, s3) {
|
|
18675
|
-
var a3, h3, p3, v3, y3, w3,
|
|
18676
|
-
if ("svg" ==
|
|
18677
|
-
for (a3 = 0; a3 < e3.length; a3++) if ((y3 = e3[a3]) && "setAttribute" in y3 == !!
|
|
18680
|
+
var a3, h3, p3, v3, y3, w3, _4, m3 = i3.props || d, k3 = t5.props, x3 = t5.type;
|
|
18681
|
+
if ("svg" == x3 ? o3 = "http://www.w3.org/2000/svg" : "math" == x3 ? o3 = "http://www.w3.org/1998/Math/MathML" : o3 || (o3 = "http://www.w3.org/1999/xhtml"), null != e3) {
|
|
18682
|
+
for (a3 = 0; a3 < e3.length; a3++) if ((y3 = e3[a3]) && "setAttribute" in y3 == !!x3 && (x3 ? y3.localName == x3 : 3 == y3.nodeType)) {
|
|
18678
18683
|
u3 = y3, e3[a3] = null;
|
|
18679
18684
|
break;
|
|
18680
18685
|
}
|
|
18681
18686
|
}
|
|
18682
18687
|
if (null == u3) {
|
|
18683
|
-
if (null ==
|
|
18684
|
-
u3 = document.createElementNS(o3,
|
|
18688
|
+
if (null == x3) return document.createTextNode(k3);
|
|
18689
|
+
u3 = document.createElementNS(o3, x3, k3.is && k3), c3 && (l.__m && l.__m(t5, e3), c3 = false), e3 = null;
|
|
18685
18690
|
}
|
|
18686
|
-
if (null ==
|
|
18691
|
+
if (null == x3) m3 === k3 || c3 && u3.data == k3 || (u3.data = k3);
|
|
18687
18692
|
else {
|
|
18688
18693
|
if (e3 = e3 && n2.call(u3.childNodes), !c3 && null != e3) for (m3 = {}, a3 = 0; a3 < u3.attributes.length; a3++) m3[(y3 = u3.attributes[a3]).name] = y3.value;
|
|
18689
18694
|
for (a3 in m3) y3 = m3[a3], "dangerouslySetInnerHTML" == a3 ? p3 = y3 : "children" == a3 || a3 in k3 || "value" == a3 && "defaultValue" in k3 || "checked" == a3 && "defaultChecked" in k3 || N(u3, a3, null, y3, o3);
|
|
18690
|
-
for (a3 in k3) y3 = k3[a3], "children" == a3 ? v3 = y3 : "dangerouslySetInnerHTML" == a3 ? h3 = y3 : "value" == a3 ? w3 = y3 : "checked" == a3 ?
|
|
18695
|
+
for (a3 in k3) y3 = k3[a3], "children" == a3 ? v3 = y3 : "dangerouslySetInnerHTML" == a3 ? h3 = y3 : "value" == a3 ? w3 = y3 : "checked" == a3 ? _4 = y3 : c3 && "function" != typeof y3 || m3[a3] === y3 || N(u3, a3, y3, m3[a3], o3);
|
|
18691
18696
|
if (h3) c3 || p3 && (h3.__html == p3.__html || h3.__html == u3.innerHTML) || (u3.innerHTML = h3.__html), t5.__k = [];
|
|
18692
|
-
else if (p3 && (u3.innerHTML = ""), L("template" == t5.type ? u3.content : u3, g(v3) ? v3 : [v3], t5, i3, r3, "foreignObject" ==
|
|
18693
|
-
c3 || (a3 = "value", "progress" ==
|
|
18697
|
+
else if (p3 && (u3.innerHTML = ""), L("template" == t5.type ? u3.content : u3, g(v3) ? v3 : [v3], t5, i3, r3, "foreignObject" == x3 ? "http://www.w3.org/1999/xhtml" : o3, e3, f3, e3 ? e3[0] : i3.__k && $(i3, 0), c3, s3), null != e3) for (a3 = e3.length; a3--; ) b(e3[a3]);
|
|
18698
|
+
c3 || (a3 = "value", "progress" == x3 && null == w3 ? u3.removeAttribute("value") : null != w3 && (w3 !== u3[a3] || "progress" == x3 && !w3 || "option" == x3 && w3 != m3[a3]) && N(u3, a3, w3, m3[a3], o3), a3 = "checked", null != _4 && _4 != u3[a3] && N(u3, a3, _4, m3[a3], o3));
|
|
18694
18699
|
}
|
|
18695
18700
|
return u3;
|
|
18696
18701
|
}
|
|
@@ -18948,7 +18953,7 @@ function ToastStack() {
|
|
|
18948
18953
|
const id = `${Date.now()}-${Math.random()}`;
|
|
18949
18954
|
const t5 = { id, ...detail };
|
|
18950
18955
|
setToasts((prev) => [...prev, t5]);
|
|
18951
|
-
setTimeout(() => setToasts((prev) => prev.filter((
|
|
18956
|
+
setTimeout(() => setToasts((prev) => prev.filter((x3) => x3.id !== id)), t5.ttl);
|
|
18952
18957
|
};
|
|
18953
18958
|
toastBus.addEventListener("toast", onToast);
|
|
18954
18959
|
return () => toastBus.removeEventListener("toast", onToast);
|
|
@@ -21787,8 +21792,8 @@ ${body}</blockquote>
|
|
|
21787
21792
|
const ordered = token.ordered;
|
|
21788
21793
|
const start = token.start;
|
|
21789
21794
|
let body = "";
|
|
21790
|
-
for (let
|
|
21791
|
-
const item = token.items[
|
|
21795
|
+
for (let j4 = 0; j4 < token.items.length; j4++) {
|
|
21796
|
+
const item = token.items[j4];
|
|
21792
21797
|
body += this.listitem(item);
|
|
21793
21798
|
}
|
|
21794
21799
|
const type = ordered ? "ol" : "ul";
|
|
@@ -21832,13 +21837,13 @@ ${body}</blockquote>
|
|
|
21832
21837
|
table(token) {
|
|
21833
21838
|
let header = "";
|
|
21834
21839
|
let cell = "";
|
|
21835
|
-
for (let
|
|
21836
|
-
cell += this.tablecell(token.header[
|
|
21840
|
+
for (let j4 = 0; j4 < token.header.length; j4++) {
|
|
21841
|
+
cell += this.tablecell(token.header[j4]);
|
|
21837
21842
|
}
|
|
21838
21843
|
header += this.tablerow({ text: cell });
|
|
21839
21844
|
let body = "";
|
|
21840
|
-
for (let
|
|
21841
|
-
const row = token.rows[
|
|
21845
|
+
for (let j4 = 0; j4 < token.rows.length; j4++) {
|
|
21846
|
+
const row = token.rows[j4];
|
|
21842
21847
|
cell = "";
|
|
21843
21848
|
for (let k3 = 0; k3 < row.length; k3++) {
|
|
21844
21849
|
cell += this.tablecell(row[k3]);
|
|
@@ -22480,6 +22485,187 @@ var parseInline = marked.parseInline;
|
|
|
22480
22485
|
var parser = _Parser.parse;
|
|
22481
22486
|
var lexer = _Lexer.lex;
|
|
22482
22487
|
|
|
22488
|
+
// node_modules/preact/compat/dist/compat.module.js
|
|
22489
|
+
function g3(n3, t5) {
|
|
22490
|
+
for (var e3 in t5) n3[e3] = t5[e3];
|
|
22491
|
+
return n3;
|
|
22492
|
+
}
|
|
22493
|
+
function E2(n3, t5) {
|
|
22494
|
+
for (var e3 in n3) if ("__source" !== e3 && !(e3 in t5)) return true;
|
|
22495
|
+
for (var r3 in t5) if ("__source" !== r3 && n3[r3] !== t5[r3]) return true;
|
|
22496
|
+
return false;
|
|
22497
|
+
}
|
|
22498
|
+
function M2(n3, t5) {
|
|
22499
|
+
this.props = n3, this.context = t5;
|
|
22500
|
+
}
|
|
22501
|
+
function N2(n3, e3) {
|
|
22502
|
+
function r3(n4) {
|
|
22503
|
+
var t5 = this.props.ref;
|
|
22504
|
+
return t5 != n4.ref && t5 && ("function" == typeof t5 ? t5(null) : t5.current = null), e3 ? !e3(this.props, n4) || t5 != n4.ref : E2(this.props, n4);
|
|
22505
|
+
}
|
|
22506
|
+
function u3(e4) {
|
|
22507
|
+
return this.shouldComponentUpdate = r3, k(n3, e4);
|
|
22508
|
+
}
|
|
22509
|
+
return u3.displayName = "Memo(" + (n3.displayName || n3.name) + ")", u3.__f = u3.prototype.isReactComponent = true, u3.type = n3, u3;
|
|
22510
|
+
}
|
|
22511
|
+
(M2.prototype = new C()).isPureReactComponent = true, M2.prototype.shouldComponentUpdate = function(n3, t5) {
|
|
22512
|
+
return E2(this.props, n3) || E2(this.state, t5);
|
|
22513
|
+
};
|
|
22514
|
+
var T3 = l.__b;
|
|
22515
|
+
l.__b = function(n3) {
|
|
22516
|
+
n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), T3 && T3(n3);
|
|
22517
|
+
};
|
|
22518
|
+
var A3 = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
22519
|
+
var O2 = l.__e;
|
|
22520
|
+
l.__e = function(n3, t5, e3, r3) {
|
|
22521
|
+
if (n3.then) {
|
|
22522
|
+
for (var u3, o3 = t5; o3 = o3.__; ) if ((u3 = o3.__c) && u3.__c) return null == t5.__e && (t5.__e = e3.__e, t5.__k = e3.__k), u3.__c(n3, t5);
|
|
22523
|
+
}
|
|
22524
|
+
O2(n3, t5, e3, r3);
|
|
22525
|
+
};
|
|
22526
|
+
var U2 = l.unmount;
|
|
22527
|
+
function V2(n3, t5, e3) {
|
|
22528
|
+
return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) {
|
|
22529
|
+
"function" == typeof n4.__c && n4.__c();
|
|
22530
|
+
}), n3.__c.__H = null), null != (n3 = g3({}, n3)).__c && (n3.__c.__P === e3 && (n3.__c.__P = t5), n3.__c.__e = true, n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) {
|
|
22531
|
+
return V2(n4, t5, e3);
|
|
22532
|
+
})), n3;
|
|
22533
|
+
}
|
|
22534
|
+
function W2(n3, t5, e3) {
|
|
22535
|
+
return n3 && e3 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) {
|
|
22536
|
+
return W2(n4, t5, e3);
|
|
22537
|
+
}), n3.__c && n3.__c.__P === t5 && (n3.__e && e3.appendChild(n3.__e), n3.__c.__e = true, n3.__c.__P = e3)), n3;
|
|
22538
|
+
}
|
|
22539
|
+
function P3() {
|
|
22540
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
22541
|
+
}
|
|
22542
|
+
function j3(n3) {
|
|
22543
|
+
var t5 = n3.__ && n3.__.__c;
|
|
22544
|
+
return t5 && t5.__a && t5.__a(n3);
|
|
22545
|
+
}
|
|
22546
|
+
function B3() {
|
|
22547
|
+
this.i = null, this.l = null;
|
|
22548
|
+
}
|
|
22549
|
+
l.unmount = function(n3) {
|
|
22550
|
+
var t5 = n3.__c;
|
|
22551
|
+
t5 && (t5.__z = true), t5 && t5.__R && t5.__R(), t5 && 32 & n3.__u && (n3.type = null), U2 && U2(n3);
|
|
22552
|
+
}, (P3.prototype = new C()).__c = function(n3, t5) {
|
|
22553
|
+
var e3 = t5.__c, r3 = this;
|
|
22554
|
+
null == r3.o && (r3.o = []), r3.o.push(e3);
|
|
22555
|
+
var u3 = j3(r3.__v), o3 = false, i3 = function() {
|
|
22556
|
+
o3 || r3.__z || (o3 = true, e3.__R = null, u3 ? u3(c3) : c3());
|
|
22557
|
+
};
|
|
22558
|
+
e3.__R = i3;
|
|
22559
|
+
var l3 = e3.__P;
|
|
22560
|
+
e3.__P = null;
|
|
22561
|
+
var c3 = function() {
|
|
22562
|
+
if (!--r3.__u) {
|
|
22563
|
+
if (r3.state.__a) {
|
|
22564
|
+
var n4 = r3.state.__a;
|
|
22565
|
+
r3.__v.__k[0] = W2(n4, n4.__c.__P, n4.__c.__O);
|
|
22566
|
+
}
|
|
22567
|
+
var t6;
|
|
22568
|
+
for (r3.setState({ __a: r3.__b = null }); t6 = r3.o.pop(); ) t6.__P = l3, t6.forceUpdate();
|
|
22569
|
+
}
|
|
22570
|
+
};
|
|
22571
|
+
r3.__u++ || 32 & t5.__u || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n3.then(i3, i3);
|
|
22572
|
+
}, P3.prototype.componentWillUnmount = function() {
|
|
22573
|
+
this.o = [];
|
|
22574
|
+
}, P3.prototype.render = function(n3, e3) {
|
|
22575
|
+
if (this.__b) {
|
|
22576
|
+
if (this.__v.__k) {
|
|
22577
|
+
var r3 = document.createElement("div"), o3 = this.__v.__k[0].__c;
|
|
22578
|
+
this.__v.__k[0] = V2(this.__b, r3, o3.__O = o3.__P);
|
|
22579
|
+
}
|
|
22580
|
+
this.__b = null;
|
|
22581
|
+
}
|
|
22582
|
+
var i3 = e3.__a && k(S, null, n3.fallback);
|
|
22583
|
+
return i3 && (i3.__u &= -33), [k(S, null, e3.__a ? null : n3.children), i3];
|
|
22584
|
+
};
|
|
22585
|
+
var H2 = function(n3, t5, e3) {
|
|
22586
|
+
if (++e3[1] === e3[0] && n3.l.delete(t5), n3.props.revealOrder && ("t" !== n3.props.revealOrder[0] || !n3.l.size)) for (e3 = n3.i; e3; ) {
|
|
22587
|
+
for (; e3.length > 3; ) e3.pop()();
|
|
22588
|
+
if (e3[1] < e3[0]) break;
|
|
22589
|
+
n3.i = e3 = e3[2];
|
|
22590
|
+
}
|
|
22591
|
+
};
|
|
22592
|
+
(B3.prototype = new C()).__a = function(n3) {
|
|
22593
|
+
var t5 = this, e3 = j3(t5.__v), r3 = t5.l.get(n3);
|
|
22594
|
+
return r3[0]++, function(u3) {
|
|
22595
|
+
var o3 = function() {
|
|
22596
|
+
t5.props.revealOrder ? (r3.push(u3), H2(t5, n3, r3)) : u3();
|
|
22597
|
+
};
|
|
22598
|
+
e3 ? e3(o3) : o3();
|
|
22599
|
+
};
|
|
22600
|
+
}, B3.prototype.render = function(n3) {
|
|
22601
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
22602
|
+
var t5 = F(n3.children);
|
|
22603
|
+
n3.revealOrder && "b" === n3.revealOrder[0] && t5.reverse();
|
|
22604
|
+
for (var e3 = t5.length; e3--; ) this.l.set(t5[e3], this.i = [1, 0, this.i]);
|
|
22605
|
+
return n3.children;
|
|
22606
|
+
}, B3.prototype.componentDidUpdate = B3.prototype.componentDidMount = function() {
|
|
22607
|
+
var n3 = this;
|
|
22608
|
+
this.l.forEach(function(t5, e3) {
|
|
22609
|
+
H2(n3, e3, t5);
|
|
22610
|
+
});
|
|
22611
|
+
};
|
|
22612
|
+
var q3 = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103;
|
|
22613
|
+
var G2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;
|
|
22614
|
+
var J2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
|
|
22615
|
+
var K2 = /[A-Z0-9]/g;
|
|
22616
|
+
var Q2 = "undefined" != typeof document;
|
|
22617
|
+
var X2 = function(n3) {
|
|
22618
|
+
return ("undefined" != typeof Symbol && "symbol" == typeof /* @__PURE__ */ Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n3);
|
|
22619
|
+
};
|
|
22620
|
+
C.prototype.isReactComponent = true, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t5) {
|
|
22621
|
+
Object.defineProperty(C.prototype, t5, { configurable: true, get: function() {
|
|
22622
|
+
return this["UNSAFE_" + t5];
|
|
22623
|
+
}, set: function(n3) {
|
|
22624
|
+
Object.defineProperty(this, t5, { configurable: true, writable: true, value: n3 });
|
|
22625
|
+
} });
|
|
22626
|
+
});
|
|
22627
|
+
var en2 = l.event;
|
|
22628
|
+
l.event = function(n3) {
|
|
22629
|
+
return en2 && (n3 = en2(n3)), n3.persist = function() {
|
|
22630
|
+
}, n3.isPropagationStopped = function() {
|
|
22631
|
+
return this.cancelBubble;
|
|
22632
|
+
}, n3.isDefaultPrevented = function() {
|
|
22633
|
+
return this.defaultPrevented;
|
|
22634
|
+
}, n3.nativeEvent = n3;
|
|
22635
|
+
};
|
|
22636
|
+
var rn;
|
|
22637
|
+
var un = { configurable: true, get: function() {
|
|
22638
|
+
return this.class;
|
|
22639
|
+
} };
|
|
22640
|
+
var on = l.vnode;
|
|
22641
|
+
l.vnode = function(n3) {
|
|
22642
|
+
"string" == typeof n3.type && (function(n4) {
|
|
22643
|
+
var t5 = n4.props, e3 = n4.type, u3 = {}, o3 = -1 == e3.indexOf("-");
|
|
22644
|
+
for (var i3 in t5) {
|
|
22645
|
+
var l3 = t5[i3];
|
|
22646
|
+
if (!("value" === i3 && "defaultValue" in t5 && null == l3 || Q2 && "children" === i3 && "noscript" === e3 || "class" === i3 || "className" === i3)) {
|
|
22647
|
+
var c3 = i3.toLowerCase();
|
|
22648
|
+
"defaultValue" === i3 && "value" in t5 && null == t5.value ? i3 = "value" : "download" === i3 && true === l3 ? l3 = "" : "translate" === c3 && "no" === l3 ? l3 = false : "o" === c3[0] && "n" === c3[1] ? "ondoubleclick" === c3 ? i3 = "ondblclick" : "onchange" !== c3 || "input" !== e3 && "textarea" !== e3 || X2(t5.type) ? "onfocus" === c3 ? i3 = "onfocusin" : "onblur" === c3 ? i3 = "onfocusout" : J2.test(i3) && (i3 = c3) : c3 = i3 = "oninput" : o3 && G2.test(i3) ? i3 = i3.replace(K2, "-$&").toLowerCase() : null === l3 && (l3 = void 0), "oninput" === c3 && u3[i3 = c3] && (i3 = "oninputCapture"), u3[i3] = l3;
|
|
22649
|
+
}
|
|
22650
|
+
}
|
|
22651
|
+
"select" == e3 && (u3.multiple && Array.isArray(u3.value) && (u3.value = F(t5.children).forEach(function(n5) {
|
|
22652
|
+
n5.props.selected = -1 != u3.value.indexOf(n5.props.value);
|
|
22653
|
+
})), null != u3.defaultValue && (u3.value = F(t5.children).forEach(function(n5) {
|
|
22654
|
+
n5.props.selected = u3.multiple ? -1 != u3.defaultValue.indexOf(n5.props.value) : u3.defaultValue == n5.props.value;
|
|
22655
|
+
}))), t5.class && !t5.className ? (u3.class = t5.class, Object.defineProperty(u3, "className", un)) : t5.className && (u3.class = u3.className = t5.className), n4.props = u3;
|
|
22656
|
+
})(n3), n3.$$typeof = q3, on && on(n3);
|
|
22657
|
+
};
|
|
22658
|
+
var ln = l.__r;
|
|
22659
|
+
l.__r = function(n3) {
|
|
22660
|
+
ln && ln(n3), rn = n3.__c;
|
|
22661
|
+
};
|
|
22662
|
+
var cn = l.diffed;
|
|
22663
|
+
l.diffed = function(n3) {
|
|
22664
|
+
cn && cn(n3);
|
|
22665
|
+
var t5 = n3.props, e3 = n3.__e;
|
|
22666
|
+
null != e3 && "textarea" === n3.type && "value" in t5 && t5.value !== e3.value && (e3.value = null == t5.value ? "" : t5.value), rn = null;
|
|
22667
|
+
};
|
|
22668
|
+
|
|
22483
22669
|
// dashboard/src/lib/html.ts
|
|
22484
22670
|
var html4 = htm_module_default.bind(k);
|
|
22485
22671
|
|
|
@@ -22739,7 +22925,7 @@ function ToolCard({ msg }) {
|
|
|
22739
22925
|
</div>
|
|
22740
22926
|
`;
|
|
22741
22927
|
}
|
|
22742
|
-
|
|
22928
|
+
var ChatMessage = N2(function ChatMessage2({ msg, streaming }) {
|
|
22743
22929
|
const role = msg.role;
|
|
22744
22930
|
const glyph = ROLE_GLYPH[role] ?? "\xB7";
|
|
22745
22931
|
if (role === "tool") {
|
|
@@ -22760,7 +22946,7 @@ function ChatMessage({ msg, streaming }) {
|
|
|
22760
22946
|
</div>
|
|
22761
22947
|
</div>
|
|
22762
22948
|
`;
|
|
22763
|
-
}
|
|
22949
|
+
});
|
|
22764
22950
|
function ModalCard({ accent, icon, title, subtitle, children }) {
|
|
22765
22951
|
return html4`
|
|
22766
22952
|
<div class="modal-card" style=${`border-left-color: ${accent};`}>
|
|
@@ -22881,22 +23067,22 @@ function lineDiff(aLines, bLines) {
|
|
|
22881
23067
|
const n3 = bLines.length;
|
|
22882
23068
|
const dp = Array.from({ length: m3 + 1 }, () => new Array(n3 + 1).fill(0));
|
|
22883
23069
|
for (let i4 = 1; i4 <= m3; i4++) {
|
|
22884
|
-
for (let
|
|
22885
|
-
if (aLines[i4 - 1] === bLines[
|
|
22886
|
-
else dp[i4][
|
|
23070
|
+
for (let j5 = 1; j5 <= n3; j5++) {
|
|
23071
|
+
if (aLines[i4 - 1] === bLines[j5 - 1]) dp[i4][j5] = dp[i4 - 1][j5 - 1] + 1;
|
|
23072
|
+
else dp[i4][j5] = Math.max(dp[i4 - 1][j5], dp[i4][j5 - 1]);
|
|
22887
23073
|
}
|
|
22888
23074
|
}
|
|
22889
23075
|
const out = [];
|
|
22890
23076
|
let i3 = m3;
|
|
22891
|
-
let
|
|
22892
|
-
while (i3 > 0 ||
|
|
22893
|
-
if (i3 > 0 &&
|
|
23077
|
+
let j4 = n3;
|
|
23078
|
+
while (i3 > 0 || j4 > 0) {
|
|
23079
|
+
if (i3 > 0 && j4 > 0 && aLines[i3 - 1] === bLines[j4 - 1]) {
|
|
22894
23080
|
out.push({ kind: "context", text: aLines[i3 - 1] });
|
|
22895
23081
|
i3--;
|
|
22896
|
-
|
|
22897
|
-
} else if (
|
|
22898
|
-
out.push({ kind: "ins", text: bLines[
|
|
22899
|
-
|
|
23082
|
+
j4--;
|
|
23083
|
+
} else if (j4 > 0 && (i3 === 0 || dp[i3][j4 - 1] >= dp[i3 - 1][j4])) {
|
|
23084
|
+
out.push({ kind: "ins", text: bLines[j4 - 1] });
|
|
23085
|
+
j4--;
|
|
22900
23086
|
} else {
|
|
22901
23087
|
out.push({ kind: "del", text: aLines[i3 - 1] });
|
|
22902
23088
|
i3--;
|
|
@@ -23361,11 +23547,25 @@ function ChatPanel() {
|
|
|
23361
23547
|
cancelled = true;
|
|
23362
23548
|
};
|
|
23363
23549
|
}, []);
|
|
23550
|
+
const streamBufRef = A2(null);
|
|
23551
|
+
const streamRafRef = A2(null);
|
|
23552
|
+
const flushStreaming = q2(() => {
|
|
23553
|
+
streamRafRef.current = null;
|
|
23554
|
+
if (streamBufRef.current) setStreaming(streamBufRef.current);
|
|
23555
|
+
}, []);
|
|
23556
|
+
const cancelStreamingRaf = q2(() => {
|
|
23557
|
+
if (streamRafRef.current !== null) {
|
|
23558
|
+
cancelAnimationFrame(streamRafRef.current);
|
|
23559
|
+
streamRafRef.current = null;
|
|
23560
|
+
}
|
|
23561
|
+
streamBufRef.current = null;
|
|
23562
|
+
}, []);
|
|
23364
23563
|
const refetchCanonicalState = q2(async () => {
|
|
23365
23564
|
try {
|
|
23366
23565
|
const data = await api("/messages");
|
|
23367
23566
|
setMessages(data.messages ?? []);
|
|
23368
23567
|
setBusy(Boolean(data.busy));
|
|
23568
|
+
cancelStreamingRaf();
|
|
23369
23569
|
setStreaming(null);
|
|
23370
23570
|
setActiveTool(null);
|
|
23371
23571
|
} catch {
|
|
@@ -23375,7 +23575,7 @@ function ChatPanel() {
|
|
|
23375
23575
|
setModal(m3.modal ?? null);
|
|
23376
23576
|
} catch {
|
|
23377
23577
|
}
|
|
23378
|
-
}, []);
|
|
23578
|
+
}, [cancelStreamingRaf]);
|
|
23379
23579
|
y2(() => {
|
|
23380
23580
|
const es = new EventSource(`/api/events?token=${TOKEN}`);
|
|
23381
23581
|
let firstOpen = true;
|
|
@@ -23403,14 +23603,20 @@ function ChatPanel() {
|
|
|
23403
23603
|
return;
|
|
23404
23604
|
}
|
|
23405
23605
|
if (dash.kind === "assistant_delta") {
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
|
|
23606
|
+
const cur = streamBufRef.current;
|
|
23607
|
+
const baseId = cur?.id === dash.id ? cur : null;
|
|
23608
|
+
streamBufRef.current = {
|
|
23609
|
+
id: dash.id,
|
|
23610
|
+
text: (baseId?.text ?? "") + (dash.contentDelta ?? ""),
|
|
23611
|
+
reasoning: (baseId?.reasoning ?? "") + (dash.reasoningDelta ?? "")
|
|
23612
|
+
};
|
|
23613
|
+
if (streamRafRef.current === null) {
|
|
23614
|
+
streamRafRef.current = requestAnimationFrame(flushStreaming);
|
|
23615
|
+
}
|
|
23411
23616
|
return;
|
|
23412
23617
|
}
|
|
23413
23618
|
if (dash.kind === "assistant_final") {
|
|
23619
|
+
cancelStreamingRaf();
|
|
23414
23620
|
setStreaming(null);
|
|
23415
23621
|
setMessages((prev) => [
|
|
23416
23622
|
...prev,
|
|
@@ -23466,8 +23672,11 @@ function ChatPanel() {
|
|
|
23466
23672
|
setError(t4("chat.eventStreamError"));
|
|
23467
23673
|
setTimeout(() => setError(null), 3e3);
|
|
23468
23674
|
};
|
|
23469
|
-
return () =>
|
|
23470
|
-
|
|
23675
|
+
return () => {
|
|
23676
|
+
es.close();
|
|
23677
|
+
cancelStreamingRaf();
|
|
23678
|
+
};
|
|
23679
|
+
}, [refetchCanonicalState, cancelStreamingRaf]);
|
|
23471
23680
|
const send = q2(async () => {
|
|
23472
23681
|
const text = input.trim();
|
|
23473
23682
|
if (!text || busy) return;
|
|
@@ -23814,7 +24023,7 @@ function ChatPanel() {
|
|
|
23814
24023
|
<${ChatMessage}
|
|
23815
24024
|
key=${m3.id}
|
|
23816
24025
|
msg=${m3}
|
|
23817
|
-
streaming=${streaming && streaming.id === m3.id}
|
|
24026
|
+
streaming=${Boolean(streaming && streaming.id === m3.id)}
|
|
23818
24027
|
/>
|
|
23819
24028
|
`
|
|
23820
24029
|
)}
|
|
@@ -24288,11 +24497,11 @@ function McpPanel() {
|
|
|
24288
24497
|
const [registryLoading, setRegistryLoading] = d2(false);
|
|
24289
24498
|
const [openRegistry, setOpenRegistry] = d2(null);
|
|
24290
24499
|
const [displayLimit, setDisplayLimit] = d2(50);
|
|
24291
|
-
const loadRegistry = q2(async (
|
|
24500
|
+
const loadRegistry = q2(async (q4, pages, limit) => {
|
|
24292
24501
|
setRegistryLoading(true);
|
|
24293
24502
|
try {
|
|
24294
24503
|
const params = new URLSearchParams();
|
|
24295
|
-
if (
|
|
24504
|
+
if (q4.trim()) params.set("q", q4.trim());
|
|
24296
24505
|
params.set("pages", String(pages));
|
|
24297
24506
|
params.set("maxPages", String(Math.max(20, pages)));
|
|
24298
24507
|
params.set("limit", String(limit));
|
|
@@ -25044,9 +25253,9 @@ function costTrendSpark(c3) {
|
|
|
25044
25253
|
const w3 = 400;
|
|
25045
25254
|
const h3 = 60;
|
|
25046
25255
|
const points2 = days2.map((d3, i3) => {
|
|
25047
|
-
const
|
|
25256
|
+
const x3 = days2.length === 1 ? 0 : i3 * w3 / (days2.length - 1);
|
|
25048
25257
|
const y3 = h3 - d3.usd / max2 * (h3 - 6) - 3;
|
|
25049
|
-
return `${
|
|
25258
|
+
return `${x3.toFixed(0)},${y3.toFixed(0)}`;
|
|
25050
25259
|
}).join(" ");
|
|
25051
25260
|
const area = `${points2} ${w3},${h3} 0,${h3}`;
|
|
25052
25261
|
const avg = total / days2.length;
|
|
@@ -25922,14 +26131,14 @@ function SemanticSearchSection() {
|
|
|
25922
26131
|
const [busy, setBusy] = d2(false);
|
|
25923
26132
|
const [error, setError] = d2(null);
|
|
25924
26133
|
const runSearch = q2(async () => {
|
|
25925
|
-
const
|
|
25926
|
-
if (!
|
|
26134
|
+
const q4 = query2.trim();
|
|
26135
|
+
if (!q4 || busy) return;
|
|
25927
26136
|
setBusy(true);
|
|
25928
26137
|
setError(null);
|
|
25929
26138
|
try {
|
|
25930
26139
|
const r3 = await api("/semantic/search", {
|
|
25931
26140
|
method: "POST",
|
|
25932
|
-
body: { query:
|
|
26141
|
+
body: { query: q4, topK: 8, minScore: 0.3 }
|
|
25933
26142
|
});
|
|
25934
26143
|
setHits(r3.hits);
|
|
25935
26144
|
setMeta({ elapsedMs: r3.elapsedMs, model: r3.model });
|