@cccsaurora/clue-ui 1.0.2 → 1.1.0-dev.11

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.
Files changed (180) hide show
  1. package/ActionForm-D4ryHO0M.js +436 -0
  2. package/AnnotationDetails-YAPoqw3R.js +175 -0
  3. package/AnnotationPreview-DiQDjt9s.js +188 -0
  4. package/ClueEnrichContext-DIn6g8tw.js +522 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_Map-kgDsDYxq.js +64 -0
  7. package/_MapCache-DabaaWfq.js +161 -0
  8. package/_Uint8Array-BlVVH1tp.js +129 -0
  9. package/_baseAssignValue-CNbcU6Nb.js +25 -0
  10. package/_baseClone-D3a8Pa4T.js +284 -0
  11. package/_baseExtremum-B1o1zHjR.js +33 -0
  12. package/_baseFlatten-D4huXoEI.js +92 -0
  13. package/_baseGet-BSK_nnoz.js +109 -0
  14. package/_baseIsEqual-B5xLoweL.js +238 -0
  15. package/_baseIteratee-p6Nj07-n.js +126 -0
  16. package/_baseSlice-GAv_YFTT.js +20 -0
  17. package/_baseSum-D0WC1dN0.js +13 -0
  18. package/_baseUniq-CpupKWcL.js +89 -0
  19. package/_commonjsHelpers-CUmg6egw.js +6 -0
  20. package/_createAggregator-BpVy5xMi.js +63 -0
  21. package/_getPrototype-D1LAdQKO.js +5 -0
  22. package/_getTag-D3ToyefI.js +126 -0
  23. package/cloneDeep-CjP5k9zW.js +8 -0
  24. package/components/AnnotationBody.js +49 -34
  25. package/components/AnnotationDetailPopover.js +36 -30
  26. package/components/AnnotationDetails.js +6 -6
  27. package/components/AnnotationEntry.js +50 -47
  28. package/components/AnnotationPreview.js +5 -5
  29. package/components/ClassificationChip.js +44 -23
  30. package/components/CountBadge.js +31 -26
  31. package/components/EnrichedCard.js +104 -92
  32. package/components/EnrichedChip.js +134 -109
  33. package/components/EnrichedTypography.js +136 -110
  34. package/components/ErrorBoundary.js +28 -24
  35. package/components/RetryFailedEnrichments.js +10 -9
  36. package/components/SourcePicker.js +57 -49
  37. package/components/actions/ActionForm.js +4 -4
  38. package/components/actions/ExecutePopover.js +64 -50
  39. package/components/actions/ResultModal.js +37 -34
  40. package/components/actions/form/schemaAdapter.js +39 -20
  41. package/components/display/graph/ExpandMoreButton.js +10 -10
  42. package/components/display/graph/elements/NodeCard.js +92 -76
  43. package/components/display/graph/elements/NodeTag.js +15 -13
  44. package/components/display/graph/index.js +258 -200
  45. package/components/display/graph/visualizations/Leaf.js +88 -69
  46. package/components/display/graph/visualizations/cloud/index.js +98 -81
  47. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  48. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  49. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  50. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  51. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  53. package/components/display/graph/visualizations/icons/index.js +14 -13
  54. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  55. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  56. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  57. package/components/display/graph/visualizations/tree/index.js +407 -305
  58. package/components/display/icons/Iconified.js +27 -12
  59. package/components/display/json/index.js +4 -4
  60. package/components/display/markdown/DynamicTabs.js +22 -17
  61. package/components/display/markdown/index.js +8527 -5670
  62. package/components/display/markdown/markdownPlugins/tabs.js +1 -1
  63. package/components/enrichment/EnrichPopover.js +55 -47
  64. package/components/fetchers/Fetcher.js +123 -95
  65. package/components/fetchers/PreviewModal.js +20 -17
  66. package/components/fetchers/StatusChip.js +22 -18
  67. package/components/group/Entry.js +13 -11
  68. package/components/group/Group.js +13 -10
  69. package/components/group/GroupControl.js +76 -65
  70. package/components/stats/QueryStatus.js +37 -28
  71. package/countBy-C69WslUA.js +14 -0
  72. package/data/event.js +6 -4
  73. package/database/index.js +2 -2
  74. package/debounce-bV0h5FC5.js +92 -0
  75. package/get-D3C3lEU3.js +8 -0
  76. package/groupBy-DC2oOuBN.js +14 -0
  77. package/hooks/ClueActionContext.js +6 -6
  78. package/hooks/ClueComponentContext.js +29 -23
  79. package/hooks/ClueConfigProvider.js +14 -12
  80. package/hooks/ClueDatabaseContext.js +19 -13
  81. package/hooks/ClueEnrichContext.js +8 -8
  82. package/hooks/ClueFetcherContext.js +74 -46
  83. package/hooks/ClueGroupContext.js +17 -14
  84. package/hooks/CluePopupContext.js +5 -5
  85. package/hooks/ClueProvider.js +12 -10
  86. package/hooks/selectors.js +22 -11
  87. package/hooks/useAnnotations.js +45 -29
  88. package/hooks/useClue.js +6 -4
  89. package/hooks/useClueActions.js +3 -3
  90. package/hooks/useClueConfig.js +5 -5
  91. package/hooks/useClueTypeConfig.js +3 -3
  92. package/hooks/useComparator.js +722 -435
  93. package/hooks/useErrors.js +22 -18
  94. package/hooks/useMyHighlights.js +66 -36
  95. package/hooks/useMyLocalStorage.js +63 -43
  96. package/iconify-CXMreGTg.js +1782 -0
  97. package/icons/Action.js +66 -49
  98. package/icons/Assessment.js +84 -68
  99. package/icons/Context.js +75 -61
  100. package/icons/Opinion.js +77 -65
  101. package/icons/iconMap.js +2 -2
  102. package/identity-CPGTqrE4.js +6 -0
  103. package/index-BDVjGvMI.js +696 -0
  104. package/index-BHPT3qoB.js +1172 -0
  105. package/index-BMxyILVD.js +465 -0
  106. package/index-BbPn6-Mw.js +15750 -0
  107. package/index-Dz1kF2MU.js +17654 -0
  108. package/isEmpty-BQkZubqU.js +29 -0
  109. package/isNil-CIubwp4T.js +6 -0
  110. package/isObject-FTY-5JQX.js +7 -0
  111. package/isObjectLike-OAgjjZye.js +48 -0
  112. package/isSymbol-Xd2FsJyp.js +8 -0
  113. package/last-CUCl67Im.js +7 -0
  114. package/main.js +58 -58
  115. package/package.json +1 -1
  116. package/sortBy-B-UKp4GT.js +100 -0
  117. package/sumBy-MYkDPHZL.js +8 -0
  118. package/tabs-xGuUGsJd.js +254 -0
  119. package/text/Frequency.js +42 -23
  120. package/toFinite-Bc55msYj.js +16 -0
  121. package/toNumber-DPxy1FBy.js +39 -0
  122. package/useClueTypeConfig-CH-nGq6a.js +3184 -0
  123. package/utils/chain.js +91 -64
  124. package/utils/classificationParser.js +519 -256
  125. package/utils/constants.js +35 -10
  126. package/utils/graph.js +72 -45
  127. package/utils/hashUtil.js +7 -7
  128. package/utils/line.js +131 -81
  129. package/utils/loggerUtil.js +5 -3
  130. package/utils/sessionStorage.js +41 -29
  131. package/utils/utils.js +9 -9
  132. package/utils/window.js +21 -10
  133. package/utils-Dr4wbKBZ.js +4182 -0
  134. package/ActionForm-BtTv0s4P.js +0 -340
  135. package/AnnotationDetails-D5tBIeEw.js +0 -160
  136. package/AnnotationPreview-CZr_CcZC.js +0 -140
  137. package/ClueEnrichContext-DH9lqjwH.js +0 -401
  138. package/FlexOne-BXWFOd1T.js +0 -6
  139. package/_Map-DXNg_Z-q.js +0 -54
  140. package/_MapCache-Cu25RRDU.js +0 -129
  141. package/_Uint8Array-DlJCtTvG.js +0 -102
  142. package/_baseAssignValue-CUmzp727.js +0 -20
  143. package/_baseClone-BlMmRXeX.js +0 -208
  144. package/_baseExtremum-P_0akmCi.js +0 -27
  145. package/_baseFlatten-CN7vDNEQ.js +0 -72
  146. package/_baseGet-Dgf6_xCm.js +0 -80
  147. package/_baseIsEqual-Cpjtfb3Q.js +0 -173
  148. package/_baseIteratee-CP1bocOX.js +0 -95
  149. package/_baseSlice-M5RKzt1A.js +0 -10
  150. package/_baseSum-wEbgNeUs.js +0 -10
  151. package/_baseUniq-tMFmk80M.js +0 -61
  152. package/_commonjsHelpers-C6fGbg64.js +0 -6
  153. package/_createAggregator-B4Cav8ZM.js +0 -53
  154. package/_getPrototype-CHAFQYL_.js +0 -5
  155. package/_getTag-BV_UoLYG.js +0 -90
  156. package/cloneDeep-BPVpFBzJ.js +0 -8
  157. package/countBy-DOutsa_w.js +0 -8
  158. package/debounce-DryYcbJ4.js +0 -56
  159. package/get-Bow1vKwx.js +0 -8
  160. package/groupBy-BheQYl6f.js +0 -8
  161. package/iconify-BBckr5AQ.js +0 -1263
  162. package/identity-ByMq8VxU.js +0 -6
  163. package/index-BUcHmehh.js +0 -975
  164. package/index-Bo-v5IAc.js +0 -12754
  165. package/index-CnaCBNrd.js +0 -358
  166. package/index-E7g8cRyW.js +0 -568
  167. package/index-p5_wX7q1.js +0 -11729
  168. package/isEmpty-g47Qir2A.js +0 -21
  169. package/isNil-CjWwlQS3.js +0 -6
  170. package/isObject-B53jY8Qg.js +0 -7
  171. package/isObjectLike-BatpeCIi.js +0 -29
  172. package/isSymbol-C3_SC0Qp.js +0 -8
  173. package/last-7CdUxN0r.js +0 -7
  174. package/sortBy-ITdmD17L.js +0 -79
  175. package/sumBy-DxJUU2E8.js +0 -8
  176. package/tabs-CgADNA57.js +0 -195
  177. package/toFinite-BMy6GObD.js +0 -14
  178. package/toNumber-YVhnnJv4.js +0 -31
  179. package/useClueTypeConfig-CneP98N_.js +0 -2260
  180. package/utils-CD0rFIFU.js +0 -2704
@@ -1,401 +0,0 @@
1
- import { jsx as dt } from "react/jsx-runtime";
2
- import { a as pt } from "./iconify-BBckr5AQ.js";
3
- import { u as mt, a as ht, p as et } from "./useClueTypeConfig-CneP98N_.js";
4
- import { clueDebugLogger as Q } from "./utils/loggerUtil.js";
5
- import { b as yt } from "./_baseSlice-M5RKzt1A.js";
6
- import { t as wt } from "./toFinite-BMy6GObD.js";
7
- import { d as vt } from "./debounce-DryYcbJ4.js";
8
- import { g as st } from "./groupBy-BheQYl6f.js";
9
- import { b as rt } from "./_baseUniq-tMFmk80M.js";
10
- import { b as xt } from "./_baseIteratee-CP1bocOX.js";
11
- import { useContext as Et, useMemo as G, useState as K, useRef as It, useEffect as q, useCallback as b } from "react";
12
- import { c as $t } from "./index-E7g8cRyW.js";
13
- import { ClueDatabaseContext as Ct } from "./hooks/ClueDatabaseContext.js";
14
- import Dt from "./hooks/useClueConfig.js";
15
- function Ot(e) {
16
- var s = wt(e), p = s % 1;
17
- return s === s ? p ? s - p : s : 0;
18
- }
19
- var gt = Math.ceil, bt = Math.max;
20
- function jt(e, s, p) {
21
- s === void 0 ? s = 1 : s = bt(Ot(s), 0);
22
- var l = e == null ? 0 : e.length;
23
- if (!l || s < 1)
24
- return [];
25
- for (var h = 0, v = 0, D = Array(gt(l / s)); h < l; )
26
- D[v++] = yt(e, h, h += s);
27
- return D;
28
- }
29
- function nt(e) {
30
- return e && e.length ? rt(e) : [];
31
- }
32
- function Pt(e, s) {
33
- return e && e.length ? rt(e, xt(s)) : [];
34
- }
35
- let F;
36
- const Mt = new Uint8Array(16);
37
- function qt() {
38
- if (!F && (F = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !F))
39
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
40
- return F(Mt);
41
- }
42
- const d = [];
43
- for (let e = 0; e < 256; ++e)
44
- d.push((e + 256).toString(16).slice(1));
45
- function At(e, s = 0) {
46
- return d[e[s + 0]] + d[e[s + 1]] + d[e[s + 2]] + d[e[s + 3]] + "-" + d[e[s + 4]] + d[e[s + 5]] + "-" + d[e[s + 6]] + d[e[s + 7]] + "-" + d[e[s + 8]] + d[e[s + 9]] + "-" + d[e[s + 10]] + d[e[s + 11]] + d[e[s + 12]] + d[e[s + 13]] + d[e[s + 14]] + d[e[s + 15]];
47
- }
48
- const Bt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), it = {
49
- randomUUID: Bt
50
- };
51
- function C(e, s, p) {
52
- if (it.randomUUID && !e)
53
- return it.randomUUID();
54
- e = e || {};
55
- const l = e.random || (e.rng || qt)();
56
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, At(l);
57
- }
58
- const Vt = $t(null), zt = ({
59
- children: e,
60
- classification: s,
61
- baseURL: p,
62
- getToken: l,
63
- onNetworkCall: h,
64
- pickSources: v,
65
- chunkSize: D = 15,
66
- maxRequestCount: H = 4,
67
- defaultTimeout: A = 5,
68
- enabled: B = !0,
69
- ready: ot = !1,
70
- publicIconify: X = !0,
71
- skipConfigCall: Y = !1,
72
- customIconify: V,
73
- debugLogging: x = !0
74
- }) => {
75
- var tt;
76
- const j = Dt(), n = Et(Ct), w = G(() => {
77
- var t, i;
78
- return (i = (t = j.config) == null ? void 0 : t.c12nDef) == null ? void 0 : i.UNRESTRICTED;
79
- }, [j.config]), [$, ct] = K(ot), O = It(0), [E, at] = K([]), { availableSources: g, typesDetection: R } = mt(
80
- B && $,
81
- p,
82
- x,
83
- l,
84
- h
85
- );
86
- q(() => {
87
- if (Y || !B || !$)
88
- return;
89
- const t = {}, i = l == null ? void 0 : l();
90
- i && (t.Authorization = `Bearer ${i}`);
91
- let u = { baseURL: p, headers: t };
92
- h && (u = h(u)), ht.configs.get(u).then(j.setConfig);
93
- }, [p, h, Y, $]);
94
- const [Z, S] = K(V);
95
- q(() => {
96
- V && S(V);
97
- }, [V]), q(() => {
98
- if (X)
99
- return;
100
- let t = Z ?? void 0 ?? (p == null ? void 0 : p.replace(/^[^.]+/, "icons"));
101
- !t && typeof window < "u" && window && !window.location.origin.includes("localhost") && (t = window.location.protocol + "//" + window.location.origin.replace(/^[^.]+/, "icons")), t && (Q(`Using ${t} for iconify`, x), pt("", {
102
- resources: [t]
103
- }));
104
- }, [p, Z, x, X]);
105
- const U = b(
106
- async (t) => {
107
- const i = [];
108
- for (const c of t) {
109
- const { latency: o, source: f, type: r, value: y, items: a, error: m } = c;
110
- m && i.push({
111
- id: C(),
112
- source: f,
113
- type: r,
114
- value: y,
115
- annotations: [],
116
- classification: w,
117
- latency: o,
118
- count: 0,
119
- error: m
120
- });
121
- for (const I of a) {
122
- const { classification: P, count: M, link: _, annotations: lt } = I;
123
- await n.selectors.find({ selector: { type: r, value: y, source: f, classification: P } }).incrementalRemove();
124
- const J = {
125
- id: C(),
126
- source: f,
127
- type: r,
128
- value: y,
129
- annotations: lt,
130
- classification: P,
131
- latency: o,
132
- count: M,
133
- link: _,
134
- error: m
135
- };
136
- i.some((ft) => ft.id === J.id) && (J.id = C()), i.push(J);
137
- }
138
- }
139
- const u = await n.selectors.bulkInsert(i);
140
- u.error.length > 0 && (console.warn("Errors on upsert:"), u.error.forEach((c) => console.warn(c.documentId, c.validationErrors ?? c.status)));
141
- },
142
- [n, w]
143
- ), z = b(
144
- async (t, i, u = {}) => {
145
- var I, P;
146
- if (!t || !i)
147
- return console.error(`Type (${t}) or value (${i}) is empty, returning empty response`), {};
148
- const c = (v == null ? void 0 : v(E, g, [{ type: t, value: i, classification: u.classification }])) ?? E, o = {
149
- timeout: A,
150
- force: !1,
151
- includeRaw: !1,
152
- noCache: !1,
153
- classification: w,
154
- sources: c,
155
- ...u
156
- }, f = {}, r = l == null ? void 0 : l();
157
- r && (f.Authorization = `Bearer ${r}`);
158
- let y = { baseURL: p, headers: f };
159
- h && (y = h(y));
160
- const a = {
161
- type: t,
162
- value: i,
163
- classification: o.classification
164
- };
165
- let m = await ((I = n.status) == null ? void 0 : I.findOne({ selector: { ...a } }).exec());
166
- m ? await m.incrementalPatch({ status: "in-progress" }) : m = await ((P = n.status) == null ? void 0 : P.insert({
167
- id: C(),
168
- type: a.type,
169
- value: a.value,
170
- classification: a.classification ?? w,
171
- status: "in-progress"
172
- }));
173
- try {
174
- const M = await et([a], o.sources, o, y), _ = Object.values(Object.values(M)[0])[0];
175
- return await (m == null ? void 0 : m.incrementalPatch({ status: "complete" })), await U(Object.values(_)), _;
176
- } catch (M) {
177
- return console.error(M), {};
178
- }
179
- },
180
- [
181
- U,
182
- g,
183
- p,
184
- n,
185
- w,
186
- A,
187
- l,
188
- h,
189
- v,
190
- E
191
- ]
192
- ), W = b(
193
- async (t, i) => {
194
- const u = (v == null ? void 0 : v(E, g, t)) ?? E, c = {
195
- timeout: A,
196
- includeRaw: !1,
197
- noCache: !1,
198
- classification: w,
199
- sources: u,
200
- ...i
201
- }, o = {}, f = l == null ? void 0 : l();
202
- f && (o.Authorization = `Bearer ${f}`);
203
- let r = { baseURL: p, headers: o };
204
- h && (r = h(r));
205
- const y = [];
206
- for (const a of t) {
207
- const m = { type: a.type, value: a.value, classification: c.classification };
208
- let I = await n.status.findOne({
209
- selector: m
210
- }).incrementalPatch({
211
- status: "in-progress"
212
- });
213
- I || (I = await n.status.insert({
214
- id: C(),
215
- ...m,
216
- status: "in-progress",
217
- sources: c.sources
218
- })), y.push(I.toMutableJSON());
219
- }
220
- try {
221
- const a = await et(t, c.sources, c, r), m = Object.values(a).flatMap(Object.values).flatMap(Object.values);
222
- return await U(m), a;
223
- } catch (a) {
224
- return console.error(a), {};
225
- } finally {
226
- n.status.bulkUpsert(
227
- Pt(y, (a) => a.id).map((a) => (a.status = "complete", a))
228
- );
229
- }
230
- },
231
- [
232
- v,
233
- E,
234
- g,
235
- A,
236
- w,
237
- l,
238
- p,
239
- h,
240
- n,
241
- U
242
- ]
243
- ), N = b(async () => {
244
- const t = await n.selectors.find({ selector: { error: { $exists: !0 } } }).exec(), i = st(t, "classification"), u = [];
245
- for (const [c, o] of Object.entries(i)) {
246
- const f = st(o, (r) => `${r.type}:${r.value}`);
247
- Object.values(f).forEach((r) => {
248
- u.push({
249
- id: C(),
250
- type: r[0].type,
251
- value: r[0].value,
252
- classification: c,
253
- sources: nt(r.map((y) => y.source)).sort(),
254
- status: "pending"
255
- });
256
- });
257
- }
258
- await n.status.bulkInsert(u), await n.selectors.bulkRemove(t);
259
- }, [n]), T = G(
260
- () => vt(
261
- async () => {
262
- if (n != null && n.status) {
263
- if (n.status.closed) {
264
- console.warn("Status database is closed, will not enrich");
265
- return;
266
- }
267
- } else return;
268
- const t = await n.status.find({ selector: { status: "pending" } }).update({ $set: { status: "in-progress" } });
269
- if (t.length < 1)
270
- return;
271
- const i = jt(t, D);
272
- Q(
273
- `Enriching ${t.length} selectors in ${i.length} chunks of ${D}.`,
274
- x
275
- ), await Promise.all(
276
- // For performance reasons, we chunk the requests. This will allow us to take advantage of parellelization in the
277
- // backend, both on the pod level and kubernetes level
278
- i.map(async (u) => {
279
- let c = null;
280
- if (O.current <= H)
281
- O.current += 1;
282
- else {
283
- let o = Date.now();
284
- await new Promise((f) => {
285
- c = setInterval(() => {
286
- Q(
287
- `Waiting on ${O.current} existing requests to complete (total delay: ${Date.now() - o}ms)`,
288
- x
289
- ), O.current < H && f();
290
- }, 400);
291
- }).finally(() => {
292
- O.current += 1, clearInterval(c);
293
- });
294
- }
295
- try {
296
- const o = {}, f = nt(u.flatMap((r) => r.sources ?? []));
297
- f.length > 0 && (o.sources = f), await W(
298
- u.map((r) => r.toSelector()),
299
- o
300
- ), await n.status.findByIds(u.map((r) => r.id)).update({ $set: { status: "complete" } });
301
- } catch (o) {
302
- console.error(o);
303
- } finally {
304
- O.current -= 1, c && clearInterval(c);
305
- }
306
- })
307
- );
308
- },
309
- 200,
310
- { maxWait: 500, leading: !1 }
311
- ),
312
- [W, D, n, x, H]
313
- );
314
- q(() => {
315
- }, [n, x]), q(() => {
316
- if (!B || !$ || !(n != null && n.status))
317
- return;
318
- const t = n.status.find({
319
- selector: {
320
- status: "pending"
321
- }
322
- }).$.subscribe(() => T());
323
- return () => {
324
- try {
325
- t == null || t.unsubscribe();
326
- } catch (i) {
327
- console.warn(i);
328
- }
329
- };
330
- }, [B, $, n, x, T]);
331
- const L = b(
332
- async (t, i, u) => {
333
- if (!t)
334
- throw new Error("Type cannot be null");
335
- if (!i)
336
- throw new Error("Value cannot be null");
337
- const c = { type: t, value: i, classification: u ?? w };
338
- let o = await n.status.findOne({
339
- selector: c
340
- }).exec();
341
- return o || (o = await n.status.queueInsert({
342
- id: C(),
343
- ...c,
344
- status: "pending"
345
- })), o;
346
- },
347
- [w, n]
348
- ), k = b(
349
- (t) => {
350
- var f, r;
351
- if (!t)
352
- return null;
353
- const i = Object.entries(R), u = (f = i.find(([y, a]) => a.exec(t))) == null ? void 0 : f[0];
354
- if (u)
355
- return u;
356
- const c = t.toLowerCase(), o = (r = i.find(([y, a]) => a.exec(c))) == null ? void 0 : r[0];
357
- return o || null;
358
- },
359
- [R]
360
- ), ut = G(
361
- () => {
362
- var t;
363
- return {
364
- bulkEnrich: W,
365
- enrich: z,
366
- enrichFailedEnrichments: N,
367
- sources: E,
368
- setSources: at,
369
- typesDetection: R,
370
- availableSources: g,
371
- guessType: k,
372
- queueEnrich: L,
373
- setCustomIconify: S,
374
- setReady: ct,
375
- defaultClassification: w,
376
- ready: $ && !!n && !!((t = j.config) != null && t.c12nDef)
377
- };
378
- },
379
- [
380
- W,
381
- z,
382
- N,
383
- E,
384
- R,
385
- g,
386
- k,
387
- L,
388
- w,
389
- $,
390
- n,
391
- (tt = j.config) == null ? void 0 : tt.c12nDef
392
- ]
393
- );
394
- return /* @__PURE__ */ dt(Vt.Provider, { value: ut, children: e });
395
- };
396
- export {
397
- Vt as C,
398
- zt as a,
399
- Pt as b,
400
- nt as u
401
- };
@@ -1,6 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { memo as r } from "react";
3
- const t = ({ children: e = null }) => /* @__PURE__ */ o("div", { style: { flex: 1 }, children: e }), n = r(t);
4
- export {
5
- n as F
6
- };
package/_Map-DXNg_Z-q.js DELETED
@@ -1,54 +0,0 @@
1
- import { b as i, r as o } from "./isObjectLike-BatpeCIi.js";
2
- import { i as c } from "./isObject-B53jY8Qg.js";
3
- var k = Array.isArray, s = "[object AsyncFunction]", u = "[object Function]", f = "[object GeneratorFunction]", p = "[object Proxy]";
4
- function y(r) {
5
- if (!c(r))
6
- return !1;
7
- var t = i(r);
8
- return t == u || t == f || t == s || t == p;
9
- }
10
- var e = o["__core-js_shared__"], a = function() {
11
- var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
12
- return r ? "Symbol(src)_1." + r : "";
13
- }();
14
- function g(r) {
15
- return !!a && a in r;
16
- }
17
- var v = Function.prototype, b = v.toString;
18
- function l(r) {
19
- if (r != null) {
20
- try {
21
- return b.call(r);
22
- } catch {
23
- }
24
- try {
25
- return r + "";
26
- } catch {
27
- }
28
- }
29
- return "";
30
- }
31
- var j = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, T = Function.prototype, $ = Object.prototype, d = T.toString, h = $.hasOwnProperty, O = RegExp(
32
- "^" + d.call(h).replace(j, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
33
- );
34
- function S(r) {
35
- if (!c(r) || g(r))
36
- return !1;
37
- var t = y(r) ? O : P;
38
- return t.test(l(r));
39
- }
40
- function _(r, t) {
41
- return r == null ? void 0 : r[t];
42
- }
43
- function m(r, t) {
44
- var n = _(r, t);
45
- return S(n) ? n : void 0;
46
- }
47
- var A = m(o, "Map");
48
- export {
49
- A as M,
50
- y as a,
51
- m as g,
52
- k as i,
53
- l as t
54
- };
@@ -1,129 +0,0 @@
1
- import { g as p, M as l } from "./_Map-DXNg_Z-q.js";
2
- function c(t, e) {
3
- return t === e || t !== t && e !== e;
4
- }
5
- var s = p(Object, "create");
6
- function u() {
7
- this.__data__ = s ? s(null) : {}, this.size = 0;
8
- }
9
- function d(t) {
10
- var e = this.has(t) && delete this.__data__[t];
11
- return this.size -= e ? 1 : 0, e;
12
- }
13
- var f = "__lodash_hash_undefined__", v = Object.prototype, g = v.hasOwnProperty;
14
- function C(t) {
15
- var e = this.__data__;
16
- if (s) {
17
- var a = e[t];
18
- return a === f ? void 0 : a;
19
- }
20
- return g.call(e, t) ? e[t] : void 0;
21
- }
22
- var y = Object.prototype, z = y.hasOwnProperty;
23
- function m(t) {
24
- var e = this.__data__;
25
- return s ? e[t] !== void 0 : z.call(e, t);
26
- }
27
- var w = "__lodash_hash_undefined__";
28
- function b(t, e) {
29
- var a = this.__data__;
30
- return this.size += this.has(t) ? 0 : 1, a[t] = s && e === void 0 ? w : e, this;
31
- }
32
- function n(t) {
33
- var e = -1, a = t == null ? 0 : t.length;
34
- for (this.clear(); ++e < a; ) {
35
- var r = t[e];
36
- this.set(r[0], r[1]);
37
- }
38
- }
39
- n.prototype.clear = u;
40
- n.prototype.delete = d;
41
- n.prototype.get = C;
42
- n.prototype.has = m;
43
- n.prototype.set = b;
44
- function x() {
45
- this.__data__ = [], this.size = 0;
46
- }
47
- function o(t, e) {
48
- for (var a = t.length; a--; )
49
- if (c(t[a][0], e))
50
- return a;
51
- return -1;
52
- }
53
- var D = Array.prototype, H = D.splice;
54
- function O(t) {
55
- var e = this.__data__, a = o(e, t);
56
- if (a < 0)
57
- return !1;
58
- var r = e.length - 1;
59
- return a == r ? e.pop() : H.call(e, a, 1), --this.size, !0;
60
- }
61
- function P(t) {
62
- var e = this.__data__, a = o(e, t);
63
- return a < 0 ? void 0 : e[a][1];
64
- }
65
- function j(t) {
66
- return o(this.__data__, t) > -1;
67
- }
68
- function M(t, e) {
69
- var a = this.__data__, r = o(a, t);
70
- return r < 0 ? (++this.size, a.push([t, e])) : a[r][1] = e, this;
71
- }
72
- function i(t) {
73
- var e = -1, a = t == null ? 0 : t.length;
74
- for (this.clear(); ++e < a; ) {
75
- var r = t[e];
76
- this.set(r[0], r[1]);
77
- }
78
- }
79
- i.prototype.clear = x;
80
- i.prototype.delete = O;
81
- i.prototype.get = P;
82
- i.prototype.has = j;
83
- i.prototype.set = M;
84
- function N() {
85
- this.size = 0, this.__data__ = {
86
- hash: new n(),
87
- map: new (l || i)(),
88
- string: new n()
89
- };
90
- }
91
- function S(t) {
92
- var e = typeof t;
93
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
94
- }
95
- function _(t, e) {
96
- var a = t.__data__;
97
- return S(e) ? a[typeof e == "string" ? "string" : "hash"] : a.map;
98
- }
99
- function E(t) {
100
- var e = _(this, t).delete(t);
101
- return this.size -= e ? 1 : 0, e;
102
- }
103
- function I(t) {
104
- return _(this, t).get(t);
105
- }
106
- function A(t) {
107
- return _(this, t).has(t);
108
- }
109
- function G(t, e) {
110
- var a = _(this, t), r = a.size;
111
- return a.set(t, e), this.size += a.size == r ? 0 : 1, this;
112
- }
113
- function h(t) {
114
- var e = -1, a = t == null ? 0 : t.length;
115
- for (this.clear(); ++e < a; ) {
116
- var r = t[e];
117
- this.set(r[0], r[1]);
118
- }
119
- }
120
- h.prototype.clear = N;
121
- h.prototype.delete = E;
122
- h.prototype.get = I;
123
- h.prototype.has = A;
124
- h.prototype.set = G;
125
- export {
126
- i as L,
127
- h as M,
128
- c as e
129
- };
@@ -1,102 +0,0 @@
1
- import { L as _, M as l } from "./_MapCache-Cu25RRDU.js";
2
- import { i as h, M as y } from "./_Map-DXNg_Z-q.js";
3
- import { c as d, a as m, b as A, e as g, i as b } from "./_getTag-BV_UoLYG.js";
4
- import { r as v } from "./isObjectLike-BatpeCIi.js";
5
- var w = 9007199254740991, z = /^(?:0|[1-9]\d*)$/;
6
- function S(t, e) {
7
- var r = typeof t;
8
- return e = e ?? w, !!e && (r == "number" || r != "symbol" && z.test(t)) && t > -1 && t % 1 == 0 && t < e;
9
- }
10
- function I(t, e) {
11
- for (var r = -1, s = Array(t); ++r < t; )
12
- s[r] = e(r);
13
- return s;
14
- }
15
- var O = Object.prototype, x = O.hasOwnProperty;
16
- function E(t, e) {
17
- var r = h(t), s = !r && d(t), a = !r && !s && m(t), i = !r && !s && !a && A(t), o = r || s || a || i, u = o ? I(t.length, String) : [], c = u.length;
18
- for (var n in t)
19
- (e || x.call(t, n)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
20
- (n == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
21
- a && (n == "offset" || n == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
22
- i && (n == "buffer" || n == "byteLength" || n == "byteOffset") || // Skip index properties.
23
- S(n, c))) && u.push(n);
24
- return u;
25
- }
26
- function L(t) {
27
- return b(t) ? E(t) : g(t);
28
- }
29
- function P(t, e) {
30
- for (var r = -1, s = e.length, a = t.length; ++r < s; )
31
- t[a + r] = e[r];
32
- return t;
33
- }
34
- function G() {
35
- this.__data__ = new _(), this.size = 0;
36
- }
37
- function M(t) {
38
- var e = this.__data__, r = e.delete(t);
39
- return this.size = e.size, r;
40
- }
41
- function K(t) {
42
- return this.__data__.get(t);
43
- }
44
- function R(t) {
45
- return this.__data__.has(t);
46
- }
47
- var T = 200;
48
- function U(t, e) {
49
- var r = this.__data__;
50
- if (r instanceof _) {
51
- var s = r.__data__;
52
- if (!y || s.length < T - 1)
53
- return s.push([t, e]), this.size = ++r.size, this;
54
- r = this.__data__ = new l(s);
55
- }
56
- return r.set(t, e), this.size = r.size, this;
57
- }
58
- function f(t) {
59
- var e = this.__data__ = new _(t);
60
- this.size = e.size;
61
- }
62
- f.prototype.clear = G;
63
- f.prototype.delete = M;
64
- f.prototype.get = K;
65
- f.prototype.has = R;
66
- f.prototype.set = U;
67
- function C(t, e) {
68
- for (var r = -1, s = t == null ? 0 : t.length, a = 0, i = []; ++r < s; ) {
69
- var o = t[r];
70
- e(o, r, t) && (i[a++] = o);
71
- }
72
- return i;
73
- }
74
- function k() {
75
- return [];
76
- }
77
- var B = Object.prototype, F = B.propertyIsEnumerable, p = Object.getOwnPropertySymbols, $ = p ? function(t) {
78
- return t == null ? [] : (t = Object(t), C(p(t), function(e) {
79
- return F.call(t, e);
80
- }));
81
- } : k;
82
- function D(t, e, r) {
83
- var s = e(t);
84
- return h(t) ? s : P(s, r(t));
85
- }
86
- function Z(t) {
87
- return D(t, L, $);
88
- }
89
- var q = v.Uint8Array;
90
- export {
91
- f as S,
92
- q as U,
93
- P as a,
94
- C as b,
95
- E as c,
96
- $ as d,
97
- D as e,
98
- Z as g,
99
- S as i,
100
- L as k,
101
- k as s
102
- };
@@ -1,20 +0,0 @@
1
- import { g as i } from "./_Map-DXNg_Z-q.js";
2
- var a = function() {
3
- try {
4
- var e = i(Object, "defineProperty");
5
- return e({}, "", {}), e;
6
- } catch {
7
- }
8
- }();
9
- function o(e, r, t) {
10
- r == "__proto__" && a ? a(e, r, {
11
- configurable: !0,
12
- enumerable: !0,
13
- value: t,
14
- writable: !0
15
- }) : e[r] = t;
16
- }
17
- export {
18
- o as b,
19
- a as d
20
- };