@cccsaurora/clue-ui 1.0.0-dev.49 → 1.0.0

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