@cccsaurora/clue-ui 1.0.4 → 1.1.0-dev.100
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/ActionForm-ByeOzpc4.js +555 -0
- package/AnnotationDetails-DknbKDyl.js +175 -0
- package/AnnotationPreview-CQwKs8se.js +188 -0
- package/ClueEnrichContext-6NJfXpUB.js +536 -0
- package/FlexOne-BSYAhhtG.js +9 -0
- package/_Map-kgDsDYxq.js +64 -0
- package/_MapCache-DabaaWfq.js +161 -0
- package/_Uint8Array-BlVVH1tp.js +129 -0
- package/_baseAssignValue-CNbcU6Nb.js +25 -0
- package/_baseClone-D3a8Pa4T.js +284 -0
- package/_baseExtremum-B1o1zHjR.js +33 -0
- package/_baseFlatten-D4huXoEI.js +92 -0
- package/_baseGet-BSK_nnoz.js +109 -0
- package/_baseIsEqual-B5xLoweL.js +238 -0
- package/_baseIteratee-p6Nj07-n.js +126 -0
- package/_baseSlice-GAv_YFTT.js +20 -0
- package/_baseSum-D0WC1dN0.js +13 -0
- package/_baseUniq-CpupKWcL.js +89 -0
- package/_commonjsHelpers-DWwsNxpa.js +8 -0
- package/_createAggregator-BpVy5xMi.js +63 -0
- package/_getPrototype-D1LAdQKO.js +5 -0
- package/_getTag-D3ToyefI.js +126 -0
- package/api/lookup/index.d.ts +1 -1
- package/api/lookup/types.d.ts +2 -2
- package/api/lookup/types_detection.d.ts +2 -2
- package/cloneDeep-CjP5k9zW.js +8 -0
- package/components/AnnotationBody.js +49 -34
- package/components/AnnotationDetailPopover.js +36 -30
- package/components/AnnotationDetails.js +6 -6
- package/components/AnnotationEntry.js +50 -47
- package/components/AnnotationPreview.js +5 -5
- package/components/ClassificationChip.d.ts +2 -1
- package/components/ClassificationChip.js +44 -23
- package/components/CountBadge.js +31 -26
- package/components/EnrichedCard.js +110 -92
- package/components/EnrichedChip.js +130 -111
- package/components/EnrichedTypography.d.ts +1 -1
- package/components/EnrichedTypography.js +133 -112
- package/components/ErrorBoundary.js +28 -24
- package/components/RetryFailedEnrichments.js +10 -9
- package/components/SourcePicker.js +57 -49
- package/components/actions/ActionForm.js +4 -4
- package/components/actions/ExecutePopover.js +64 -50
- package/components/actions/ResultModal.js +12 -41
- package/components/actions/form/schemaAdapter.js +40 -20
- package/components/display/graph/ExpandMoreButton.js +10 -10
- package/components/display/graph/elements/NodeCard.js +114 -76
- package/components/display/graph/elements/NodeTag.js +15 -13
- package/components/display/graph/index.js +267 -210
- package/components/display/graph/visualizations/Leaf.js +88 -69
- package/components/display/graph/visualizations/cloud/index.js +98 -81
- package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
- package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
- package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
- package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
- package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
- package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
- package/components/display/graph/visualizations/icons/index.js +14 -13
- package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
- package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
- package/components/display/graph/visualizations/tree/Triangle.js +13 -13
- package/components/display/graph/visualizations/tree/index.js +407 -305
- package/components/display/icons/Iconified.js +27 -12
- package/components/display/json/index.js +4 -4
- package/components/display/markdown/index.js +8696 -5668
- package/components/enrichment/EnrichPopover.js +55 -47
- package/components/fetchers/Fetcher.js +123 -95
- package/components/fetchers/PreviewModal.js +20 -17
- package/components/fetchers/StatusChip.js +21 -18
- package/components/group/Entry.js +13 -11
- package/components/group/Group.js +13 -10
- package/components/group/GroupControl.js +78 -66
- package/components/stats/QueryStatus.js +44 -31
- package/countBy-C69WslUA.js +14 -0
- package/data/event.js +6 -4
- package/database/index.js +2 -2
- package/debounce-bV0h5FC5.js +92 -0
- package/en/translation.json +39 -59
- package/fr/translation.json +37 -56
- package/get-D3C3lEU3.js +8 -0
- package/groupBy-DC2oOuBN.js +14 -0
- package/hooks/ClueActionContext.d.ts +26 -0
- package/hooks/ClueActionContext.js +8 -7
- package/hooks/ClueComponentContext.js +29 -23
- package/hooks/ClueConfigProvider.js +14 -12
- package/hooks/ClueDatabaseContext.js +19 -13
- package/hooks/ClueEnrichContext.js +8 -8
- package/hooks/ClueEnrichProps.d.ts +3 -1
- package/hooks/ClueFetcherContext.js +74 -46
- package/hooks/ClueGroupContext.js +17 -14
- package/hooks/CluePopupContext.js +5 -5
- package/hooks/ClueProvider.js +12 -10
- package/hooks/selectors.d.ts +4 -5
- package/hooks/selectors.js +21 -11
- package/hooks/useActionResult.d.ts +14 -0
- package/hooks/useActionResult.js +5 -0
- package/hooks/useAnnotations.js +45 -29
- package/hooks/useClue.js +6 -4
- package/hooks/useClueActions.d.ts +1 -1
- package/hooks/useClueActions.js +3 -3
- package/hooks/useClueConfig.d.ts +2 -1
- package/hooks/useClueConfig.js +6 -6
- package/hooks/useClueTypeConfig.js +3 -3
- package/hooks/useComparator.js +722 -435
- package/hooks/useErrors.js +22 -18
- package/hooks/useMyHighlights.js +66 -36
- package/hooks/useMyLocalStorage.d.ts +4 -3
- package/hooks/useMyLocalStorage.js +66 -46
- package/iconify-CXMreGTg.js +1782 -0
- package/icons/Action.js +66 -49
- package/icons/Assessment.js +84 -68
- package/icons/Context.js +78 -61
- package/icons/Opinion.js +77 -65
- package/icons/iconMap.js +2 -2
- package/identity-CPGTqrE4.js +6 -0
- package/index-BDVjGvMI.js +696 -0
- package/index-BbPn6-Mw.js +15750 -0
- package/index-Bi21Wb23.js +465 -0
- package/index-C3lkTD69.js +1172 -0
- package/index-CC12Ux-9.js +17654 -0
- package/isEmpty-BQkZubqU.js +29 -0
- package/isNil-CIubwp4T.js +6 -0
- package/isObject-FTY-5JQX.js +7 -0
- package/isObjectLike-OAgjjZye.js +48 -0
- package/isSymbol-Xd2FsJyp.js +8 -0
- package/last-CUCl67Im.js +7 -0
- package/main.js +62 -62
- package/package.json +3 -3
- package/sortBy-B-UKp4GT.js +100 -0
- package/sumBy-MYkDPHZL.js +8 -0
- package/text/Frequency.js +42 -23
- package/toFinite-Bc55msYj.js +16 -0
- package/toNumber-DPxy1FBy.js +39 -0
- package/types/RunningActionData.d.ts +4 -3
- package/types/action.d.ts +10 -1
- package/useClueTypeConfig-XvGvIw2S.js +3201 -0
- package/utils/chain.js +91 -64
- package/utils/classificationParser.js +519 -256
- package/utils/constants.js +35 -10
- package/utils/graph.js +72 -45
- package/utils/hashUtil.js +7 -7
- package/utils/line.js +131 -81
- package/utils/loggerUtil.d.ts +1 -1
- package/utils/loggerUtil.js +6 -4
- package/utils/sessionStorage.js +41 -29
- package/utils/time.d.ts +3 -0
- package/utils/time.js +536 -0
- package/utils/utils.js +10 -9
- package/utils/window.js +21 -10
- package/utils-7OtvGnmf.js +200 -0
- package/ActionForm-Sw7D-KOE.js +0 -340
- package/AnnotationDetails-BoX61_IF.js +0 -160
- package/AnnotationPreview-dYinoSA9.js +0 -140
- package/ClueEnrichContext-CvCIPOMC.js +0 -412
- package/FlexOne-BXWFOd1T.js +0 -6
- package/_Map-DXNg_Z-q.js +0 -54
- package/_MapCache-Cu25RRDU.js +0 -129
- package/_Uint8Array-DlJCtTvG.js +0 -102
- package/_baseAssignValue-CUmzp727.js +0 -20
- package/_baseClone-BlMmRXeX.js +0 -208
- package/_baseExtremum-P_0akmCi.js +0 -27
- package/_baseFlatten-CN7vDNEQ.js +0 -72
- package/_baseGet-Dgf6_xCm.js +0 -80
- package/_baseIsEqual-Cpjtfb3Q.js +0 -173
- package/_baseIteratee-CP1bocOX.js +0 -95
- package/_baseSlice-M5RKzt1A.js +0 -10
- package/_baseSum-wEbgNeUs.js +0 -10
- package/_baseUniq-tMFmk80M.js +0 -61
- package/_commonjsHelpers-C6fGbg64.js +0 -6
- package/_createAggregator-B4Cav8ZM.js +0 -53
- package/_getPrototype-CHAFQYL_.js +0 -5
- package/_getTag-BV_UoLYG.js +0 -90
- package/cloneDeep-BPVpFBzJ.js +0 -8
- package/components/display/markdown/DynamicTabs.d.ts +0 -8
- package/components/display/markdown/DynamicTabs.js +0 -21
- package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
- package/components/display/markdown/markdownPlugins/tabs.js +0 -4
- package/countBy-DOutsa_w.js +0 -8
- package/debounce-DryYcbJ4.js +0 -56
- package/get-Bow1vKwx.js +0 -8
- package/groupBy-BheQYl6f.js +0 -8
- package/iconify-BBckr5AQ.js +0 -1263
- package/identity-ByMq8VxU.js +0 -6
- package/index-CnaCBNrd.js +0 -358
- package/index-E7g8cRyW.js +0 -568
- package/index-V7wwd05F.js +0 -975
- package/index-p5_wX7q1.js +0 -11729
- package/index-pQg5VUAZ.js +0 -12734
- package/isEmpty-g47Qir2A.js +0 -21
- package/isNil-CjWwlQS3.js +0 -6
- package/isObject-B53jY8Qg.js +0 -7
- package/isObjectLike-BatpeCIi.js +0 -29
- package/isSymbol-C3_SC0Qp.js +0 -8
- package/last-7CdUxN0r.js +0 -7
- package/sortBy-ITdmD17L.js +0 -79
- package/sumBy-DxJUU2E8.js +0 -8
- package/tabs-CgADNA57.js +0 -195
- package/toFinite-BMy6GObD.js +0 -14
- package/toNumber-YVhnnJv4.js +0 -31
- package/useClueTypeConfig-CneP98N_.js +0 -2260
- package/utils-CD0rFIFU.js +0 -2704
package/isEmpty-g47Qir2A.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { i, a as o, b as e, c as n, g as a, d as f, e as p } from "./_getTag-BV_UoLYG.js";
|
|
2
|
-
import { i as y } from "./_Map-DXNg_Z-q.js";
|
|
3
|
-
var g = "[object Map]", c = "[object Set]", m = Object.prototype, b = m.hasOwnProperty;
|
|
4
|
-
function A(r) {
|
|
5
|
-
if (r == null)
|
|
6
|
-
return !0;
|
|
7
|
-
if (i(r) && (y(r) || typeof r == "string" || typeof r.splice == "function" || o(r) || e(r) || n(r)))
|
|
8
|
-
return !r.length;
|
|
9
|
-
var t = a(r);
|
|
10
|
-
if (t == g || t == c)
|
|
11
|
-
return !r.size;
|
|
12
|
-
if (f(r))
|
|
13
|
-
return !p(r).length;
|
|
14
|
-
for (var s in r)
|
|
15
|
-
if (b.call(r, s))
|
|
16
|
-
return !1;
|
|
17
|
-
return !0;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
A as i
|
|
21
|
-
};
|
package/isNil-CjWwlQS3.js
DELETED
package/isObject-B53jY8Qg.js
DELETED
package/isObjectLike-BatpeCIi.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var f = typeof global == "object" && global && global.Object === Object && global, l = typeof self == "object" && self && self.Object === Object && self, g = f || l || Function("return this")(), r = g.Symbol, o = Object.prototype, s = o.hasOwnProperty, j = o.toString, e = r ? r.toStringTag : void 0;
|
|
2
|
-
function d(t) {
|
|
3
|
-
var a = s.call(t, e), i = t[e];
|
|
4
|
-
try {
|
|
5
|
-
t[e] = void 0;
|
|
6
|
-
var c = !0;
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
var b = j.call(t);
|
|
10
|
-
return c && (a ? t[e] = i : delete t[e]), b;
|
|
11
|
-
}
|
|
12
|
-
var O = Object.prototype, S = O.toString;
|
|
13
|
-
function T(t) {
|
|
14
|
-
return S.call(t);
|
|
15
|
-
}
|
|
16
|
-
var u = "[object Null]", y = "[object Undefined]", n = r ? r.toStringTag : void 0;
|
|
17
|
-
function v(t) {
|
|
18
|
-
return t == null ? t === void 0 ? y : u : n && n in Object(t) ? d(t) : T(t);
|
|
19
|
-
}
|
|
20
|
-
function h(t) {
|
|
21
|
-
return t != null && typeof t == "object";
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
r as S,
|
|
25
|
-
v as b,
|
|
26
|
-
f,
|
|
27
|
-
h as i,
|
|
28
|
-
g as r
|
|
29
|
-
};
|
package/isSymbol-C3_SC0Qp.js
DELETED
package/last-7CdUxN0r.js
DELETED
package/sortBy-ITdmD17L.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { b as A, a as B, i as o } from "./_baseExtremum-P_0akmCi.js";
|
|
2
|
-
import { b as d } from "./_baseIteratee-CP1bocOX.js";
|
|
3
|
-
import { s as x, o as C, b as M } from "./_baseFlatten-CN7vDNEQ.js";
|
|
4
|
-
import { a as g, b as k } from "./_baseGet-Dgf6_xCm.js";
|
|
5
|
-
import { b as w } from "./_createAggregator-B4Cav8ZM.js";
|
|
6
|
-
import { i as E, f as G } from "./_getTag-BV_UoLYG.js";
|
|
7
|
-
import { i as b } from "./isSymbol-C3_SC0Qp.js";
|
|
8
|
-
import { i as s } from "./identity-ByMq8VxU.js";
|
|
9
|
-
import { i as L } from "./_Map-DXNg_Z-q.js";
|
|
10
|
-
function F(r, n) {
|
|
11
|
-
return x(C(r, n, s), r + "");
|
|
12
|
-
}
|
|
13
|
-
function O(r, n) {
|
|
14
|
-
var u = -1, f = E(r) ? Array(r.length) : [];
|
|
15
|
-
return w(r, function(a, i, t) {
|
|
16
|
-
f[++u] = n(a, i, t);
|
|
17
|
-
}), f;
|
|
18
|
-
}
|
|
19
|
-
function X(r, n) {
|
|
20
|
-
return r && r.length ? A(r, d(n), B) : void 0;
|
|
21
|
-
}
|
|
22
|
-
function T(r, n) {
|
|
23
|
-
var u = r.length;
|
|
24
|
-
for (r.sort(n); u--; )
|
|
25
|
-
r[u] = r[u].value;
|
|
26
|
-
return r;
|
|
27
|
-
}
|
|
28
|
-
function U(r, n) {
|
|
29
|
-
if (r !== n) {
|
|
30
|
-
var u = r !== void 0, f = r === null, a = r === r, i = b(r), t = n !== void 0, p = n === null, m = n === n, c = b(n);
|
|
31
|
-
if (!p && !c && !i && r > n || i && t && m && !p && !c || f && t && m || !u && m || !a)
|
|
32
|
-
return 1;
|
|
33
|
-
if (!f && !i && !c && r < n || c && u && a && !f && !i || p && u && a || !t && a || !m)
|
|
34
|
-
return -1;
|
|
35
|
-
}
|
|
36
|
-
return 0;
|
|
37
|
-
}
|
|
38
|
-
function j(r, n, u) {
|
|
39
|
-
for (var f = -1, a = r.criteria, i = n.criteria, t = a.length, p = u.length; ++f < t; ) {
|
|
40
|
-
var m = U(a[f], i[f]);
|
|
41
|
-
if (m) {
|
|
42
|
-
if (f >= p)
|
|
43
|
-
return m;
|
|
44
|
-
var c = u[f];
|
|
45
|
-
return m * (c == "desc" ? -1 : 1);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return r.index - n.index;
|
|
49
|
-
}
|
|
50
|
-
function q(r, n, u) {
|
|
51
|
-
n.length ? n = g(n, function(i) {
|
|
52
|
-
return L(i) ? function(t) {
|
|
53
|
-
return k(t, i.length === 1 ? i[0] : i);
|
|
54
|
-
} : i;
|
|
55
|
-
}) : n = [s];
|
|
56
|
-
var f = -1;
|
|
57
|
-
n = g(n, G(d));
|
|
58
|
-
var a = O(r, function(i, t, p) {
|
|
59
|
-
var m = g(n, function(c) {
|
|
60
|
-
return c(i);
|
|
61
|
-
});
|
|
62
|
-
return { criteria: m, index: ++f, value: i };
|
|
63
|
-
});
|
|
64
|
-
return T(a, function(i, t) {
|
|
65
|
-
return j(i, t, u);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
var Y = F(function(r, n) {
|
|
69
|
-
if (r == null)
|
|
70
|
-
return [];
|
|
71
|
-
var u = n.length;
|
|
72
|
-
return u > 1 && o(r, n[0], n[1]) ? n = [] : u > 2 && o(n[0], n[1], n[2]) && (n = [n[0]]), q(r, M(n), []);
|
|
73
|
-
});
|
|
74
|
-
export {
|
|
75
|
-
q as a,
|
|
76
|
-
O as b,
|
|
77
|
-
X as m,
|
|
78
|
-
Y as s
|
|
79
|
-
};
|
package/sumBy-DxJUU2E8.js
DELETED
package/tabs-CgADNA57.js
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
const N = (
|
|
2
|
-
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
3
|
-
/**
|
|
4
|
-
* @type {(
|
|
5
|
-
* (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
6
|
-
* (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
7
|
-
* (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
8
|
-
* ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
|
|
9
|
-
* ((test?: Test) => Check)
|
|
10
|
-
* )}
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* @param {Test} [test]
|
|
14
|
-
* @returns {Check}
|
|
15
|
-
*/
|
|
16
|
-
function(t) {
|
|
17
|
-
if (t == null)
|
|
18
|
-
return E;
|
|
19
|
-
if (typeof t == "function")
|
|
20
|
-
return g(t);
|
|
21
|
-
if (typeof t == "object")
|
|
22
|
-
return Array.isArray(t) ? j(t) : F(t);
|
|
23
|
-
if (typeof t == "string")
|
|
24
|
-
return P(t);
|
|
25
|
-
throw new Error("Expected function, string, or object as test");
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
function j(t) {
|
|
29
|
-
const r = [];
|
|
30
|
-
let n = -1;
|
|
31
|
-
for (; ++n < t.length; )
|
|
32
|
-
r[n] = N(t[n]);
|
|
33
|
-
return g(i);
|
|
34
|
-
function i(...e) {
|
|
35
|
-
let c = -1;
|
|
36
|
-
for (; ++c < r.length; )
|
|
37
|
-
if (r[c].apply(this, e)) return !0;
|
|
38
|
-
return !1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function F(t) {
|
|
42
|
-
const r = (
|
|
43
|
-
/** @type {Record<string, unknown>} */
|
|
44
|
-
t
|
|
45
|
-
);
|
|
46
|
-
return g(n);
|
|
47
|
-
function n(i) {
|
|
48
|
-
const e = (
|
|
49
|
-
/** @type {Record<string, unknown>} */
|
|
50
|
-
/** @type {unknown} */
|
|
51
|
-
i
|
|
52
|
-
);
|
|
53
|
-
let c;
|
|
54
|
-
for (c in t)
|
|
55
|
-
if (e[c] !== r[c]) return !1;
|
|
56
|
-
return !0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function P(t) {
|
|
60
|
-
return g(r);
|
|
61
|
-
function r(n) {
|
|
62
|
-
return n && n.type === t;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function g(t) {
|
|
66
|
-
return r;
|
|
67
|
-
function r(n, i, e) {
|
|
68
|
-
return !!(I(n) && t.call(
|
|
69
|
-
this,
|
|
70
|
-
n,
|
|
71
|
-
typeof i == "number" ? i : void 0,
|
|
72
|
-
e || void 0
|
|
73
|
-
));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function E() {
|
|
77
|
-
return !0;
|
|
78
|
-
}
|
|
79
|
-
function I(t) {
|
|
80
|
-
return t !== null && typeof t == "object" && "type" in t;
|
|
81
|
-
}
|
|
82
|
-
const A = [], S = !0, k = !1, T = "skip";
|
|
83
|
-
function $(t, r, n, i) {
|
|
84
|
-
let e;
|
|
85
|
-
typeof r == "function" && typeof n != "function" ? (i = n, n = r) : e = r;
|
|
86
|
-
const c = N(e), l = i ? -1 : 1;
|
|
87
|
-
f(t, void 0, [])();
|
|
88
|
-
function f(o, p, u) {
|
|
89
|
-
const s = (
|
|
90
|
-
/** @type {Record<string, unknown>} */
|
|
91
|
-
o && typeof o == "object" ? o : {}
|
|
92
|
-
);
|
|
93
|
-
if (typeof s.type == "string") {
|
|
94
|
-
const a = (
|
|
95
|
-
// `hast`
|
|
96
|
-
typeof s.tagName == "string" ? s.tagName : (
|
|
97
|
-
// `xast`
|
|
98
|
-
typeof s.name == "string" ? s.name : void 0
|
|
99
|
-
)
|
|
100
|
-
);
|
|
101
|
-
Object.defineProperty(b, "name", {
|
|
102
|
-
value: "node (" + (o.type + (a ? "<" + a + ">" : "")) + ")"
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return b;
|
|
106
|
-
function b() {
|
|
107
|
-
let a = A, d, y, m;
|
|
108
|
-
if ((!r || c(o, p, u[u.length - 1] || void 0)) && (a = x(n(o, u)), a[0] === k))
|
|
109
|
-
return a;
|
|
110
|
-
if ("children" in o && o.children) {
|
|
111
|
-
const h = (
|
|
112
|
-
/** @type {UnistParent} */
|
|
113
|
-
o
|
|
114
|
-
);
|
|
115
|
-
if (h.children && a[0] !== T)
|
|
116
|
-
for (y = (i ? h.children.length : -1) + l, m = u.concat(h); y > -1 && y < h.children.length; ) {
|
|
117
|
-
const w = h.children[y];
|
|
118
|
-
if (d = f(w, y, m)(), d[0] === k)
|
|
119
|
-
return d;
|
|
120
|
-
y = typeof d[1] == "number" ? d[1] : y + l;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return a;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function x(t) {
|
|
128
|
-
return Array.isArray(t) ? t : typeof t == "number" ? [S, t] : t == null ? A : [t];
|
|
129
|
-
}
|
|
130
|
-
function B(t, r, n, i) {
|
|
131
|
-
let e, c, l;
|
|
132
|
-
typeof r == "function" && typeof n != "function" ? (c = void 0, l = r, e = n) : (c = r, l = n, e = i), $(t, c, f, e);
|
|
133
|
-
function f(o, p) {
|
|
134
|
-
const u = p[p.length - 1], s = u ? u.children.indexOf(o) : void 0;
|
|
135
|
-
return l(o, s, u);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function C(t, r) {
|
|
139
|
-
const { children: n } = r, i = [];
|
|
140
|
-
for (; t++ < n.length; ) {
|
|
141
|
-
const e = n[t];
|
|
142
|
-
if (e && e.type === "code") {
|
|
143
|
-
const c = `${e.lang ?? ""} ${e.meta ?? ""}`.trim();
|
|
144
|
-
if (!c) break;
|
|
145
|
-
const [l] = c.match(new RegExp(`(?<=tab=("|'))(.*?)(?=("|'))`)) ?? [""];
|
|
146
|
-
if (!l) {
|
|
147
|
-
console.warn("Failed to parse tab title.");
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
i.push({ title: l, lang: e.lang, value: e.value });
|
|
151
|
-
} else
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
return i;
|
|
155
|
-
}
|
|
156
|
-
const J = () => (t, r) => {
|
|
157
|
-
B(t, "code", (n, i, e) => {
|
|
158
|
-
const c = `${n.lang ?? ""} ${n.meta ?? ""}`.trim();
|
|
159
|
-
if (!c)
|
|
160
|
-
return;
|
|
161
|
-
const [l] = c.match(new RegExp(`(?<=tab=("|'))(.*?)(?=("|'))`)) ?? [""];
|
|
162
|
-
if (!l && c.includes("tab=")) {
|
|
163
|
-
r.message("Invalid tab title", n, "remark-code-title");
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
if (!l)
|
|
167
|
-
return;
|
|
168
|
-
const f = [{ title: l, lang: n.lang, value: n.value }, ...C(i, e)];
|
|
169
|
-
if (f.length > 1) {
|
|
170
|
-
const o = {
|
|
171
|
-
type: "code",
|
|
172
|
-
lang: "tabs",
|
|
173
|
-
value: JSON.stringify(f)
|
|
174
|
-
};
|
|
175
|
-
return e.children.splice(i, f.length, o), i + f.length - 1;
|
|
176
|
-
} else {
|
|
177
|
-
const o = {
|
|
178
|
-
type: "paragraph",
|
|
179
|
-
data: {
|
|
180
|
-
hName: "div",
|
|
181
|
-
hProperties: {
|
|
182
|
-
"data-remark-code-title": !0,
|
|
183
|
-
"data-language": n.lang
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
children: [{ type: "text", value: l }]
|
|
187
|
-
};
|
|
188
|
-
return e.children.splice(i, 0, o), i + 2;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
export {
|
|
193
|
-
J as c,
|
|
194
|
-
B as v
|
|
195
|
-
};
|
package/toFinite-BMy6GObD.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as n } from "./toNumber-YVhnnJv4.js";
|
|
2
|
-
var t = 1 / 0, o = 17976931348623157e292;
|
|
3
|
-
function I(r) {
|
|
4
|
-
if (!r)
|
|
5
|
-
return r === 0 ? r : 0;
|
|
6
|
-
if (r = n(r), r === t || r === -t) {
|
|
7
|
-
var i = r < 0 ? -1 : 1;
|
|
8
|
-
return i * o;
|
|
9
|
-
}
|
|
10
|
-
return r === r ? r : 0;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
I as t
|
|
14
|
-
};
|
package/toNumber-YVhnnJv4.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { i as e } from "./isObject-B53jY8Qg.js";
|
|
2
|
-
import { i as s } from "./isSymbol-C3_SC0Qp.js";
|
|
3
|
-
var f = /\s/;
|
|
4
|
-
function o(r) {
|
|
5
|
-
for (var t = r.length; t-- && f.test(r.charAt(t)); )
|
|
6
|
-
;
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
var c = /^\s+/;
|
|
10
|
-
function m(r) {
|
|
11
|
-
return r && r.slice(0, o(r) + 1).replace(c, "");
|
|
12
|
-
}
|
|
13
|
-
var n = NaN, a = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, b = /^0o[0-7]+$/i, y = parseInt;
|
|
14
|
-
function x(r) {
|
|
15
|
-
if (typeof r == "number")
|
|
16
|
-
return r;
|
|
17
|
-
if (s(r))
|
|
18
|
-
return n;
|
|
19
|
-
if (e(r)) {
|
|
20
|
-
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
21
|
-
r = e(t) ? t + "" : t;
|
|
22
|
-
}
|
|
23
|
-
if (typeof r != "string")
|
|
24
|
-
return r === 0 ? r : +r;
|
|
25
|
-
r = m(r);
|
|
26
|
-
var i = p.test(r);
|
|
27
|
-
return i || b.test(r) ? y(r.slice(2), i ? 2 : 8) : a.test(r) ? n : +r;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
x as t
|
|
31
|
-
};
|