@cccsaurora/clue-ui 1.2.3-dev.266 → 1.2.3

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 (183) hide show
  1. package/ActionForm-DlOXqMUx.js +4460 -0
  2. package/AnnotationDetails-Bk-p0F6h.js +160 -0
  3. package/AnnotationPreview-jzZvkCxJ.js +140 -0
  4. package/ClueEnrichContext-KqRuuWNS.js +418 -0
  5. package/FlexOne-BXWFOd1T.js +6 -0
  6. package/_MapCache-BiTi0iqu.js +180 -0
  7. package/_Uint8Array-BQNOM9Rr.js +101 -0
  8. package/_baseAssignValue-CNMLQZco.js +20 -0
  9. package/_baseClone-BnT-6pyM.js +207 -0
  10. package/_baseExtremum-Ca2EHgy2.js +16 -0
  11. package/_baseFlatten-Bfr_Molw.js +72 -0
  12. package/_baseGet-DSZygzyq.js +79 -0
  13. package/_baseIsEqual-VgvaAFZG.js +147 -0
  14. package/_baseIteratee-Dbfsw5z8.js +95 -0
  15. package/_baseSlice-M5RKzt1A.js +10 -0
  16. package/_baseSum-wEbgNeUs.js +10 -0
  17. package/_baseUniq-BJcj69PL.js +79 -0
  18. package/_commonjsHelpers-DaMA6jEr.js +8 -0
  19. package/_createAggregator-k3TuAnxT.js +53 -0
  20. package/_getPrototype-Cr1Mk7BC.js +5 -0
  21. package/_getTag-CK2Sffaq.js +90 -0
  22. package/_isIterateeCall-DkJP7Rbx.js +13 -0
  23. package/_setToArray-C7yMOeww.js +29 -0
  24. package/cloneDeep-CF8TtLHr.js +8 -0
  25. package/components/AnnotationBody.js +35 -49
  26. package/components/AnnotationDetailPopover.js +30 -36
  27. package/components/AnnotationDetails.js +7 -7
  28. package/components/AnnotationEntry.js +35 -35
  29. package/components/AnnotationPreview.js +5 -5
  30. package/components/ClassificationChip.js +23 -44
  31. package/components/CountBadge.js +26 -31
  32. package/components/EnrichedCard.js +97 -110
  33. package/components/EnrichedChip.js +105 -130
  34. package/components/EnrichedTypography.js +107 -133
  35. package/components/ErrorBoundary.js +24 -28
  36. package/components/RetryFailedEnrichments.js +9 -10
  37. package/components/SourcePicker.js +49 -57
  38. package/components/actions/ActionForm.js +4 -4
  39. package/components/actions/ExecutePopover.js +59 -75
  40. package/components/actions/ResultModal.js +4 -4
  41. package/components/actions/form/schemaAdapter.js +23 -39
  42. package/components/actions/formats/FileResult.js +59 -86
  43. package/components/actions/formats/index.js +10 -21
  44. package/components/display/graph/ExpandMoreButton.js +10 -10
  45. package/components/display/graph/elements/NodeCard.js +91 -111
  46. package/components/display/graph/elements/NodeTag.js +13 -15
  47. package/components/display/graph/index.js +202 -261
  48. package/components/display/graph/visualizations/Leaf.js +69 -88
  49. package/components/display/graph/visualizations/cloud/index.js +81 -98
  50. package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
  51. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  53. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  56. package/components/display/graph/visualizations/icons/index.js +13 -14
  57. package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
  58. package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
  59. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  60. package/components/display/graph/visualizations/tree/index.js +306 -408
  61. package/components/display/icons/Iconified.js +12 -27
  62. package/components/display/json/index.js +4 -4
  63. package/components/display/markdown/index.js +5770 -8678
  64. package/components/enrichment/EnrichPopover.js +46 -54
  65. package/components/fetchers/Fetcher.js +119 -158
  66. package/components/fetchers/PreviewModal.js +17 -20
  67. package/components/fetchers/StatusChip.js +17 -21
  68. package/components/group/Entry.js +11 -13
  69. package/components/group/Group.js +10 -13
  70. package/components/group/GroupControl.js +65 -76
  71. package/components/stats/QueryStatus.js +33 -43
  72. package/countBy-CdYegFSu.js +8 -0
  73. package/data/event.js +4 -6
  74. package/database/index.js +2 -2
  75. package/debounce-DryYcbJ4.js +56 -0
  76. package/get-CH7kz5Ix.js +8 -0
  77. package/groupBy-br8xmD2R.js +8 -0
  78. package/hooks/ClueActionContext.js +6 -6
  79. package/hooks/ClueComponentContext.js +23 -29
  80. package/hooks/ClueConfigProvider.js +12 -14
  81. package/hooks/ClueDatabaseContext.js +13 -19
  82. package/hooks/ClueEnrichContext.js +8 -8
  83. package/hooks/ClueFetcherContext.js +56 -83
  84. package/hooks/ClueGroupContext.js +14 -17
  85. package/hooks/CluePopupContext.js +5 -5
  86. package/hooks/ClueProvider.js +10 -12
  87. package/hooks/selectors.js +7 -7
  88. package/hooks/useActionResult.js +2 -2
  89. package/hooks/useAnnotations.js +31 -47
  90. package/hooks/useClue.js +4 -6
  91. package/hooks/useClueActions.js +3 -3
  92. package/hooks/useClueConfig.js +4 -6
  93. package/hooks/useClueTypeConfig.js +3 -3
  94. package/hooks/useComparator.js +435 -722
  95. package/hooks/useErrors.js +18 -22
  96. package/hooks/useFetcherResult.js +24 -33
  97. package/hooks/useMyHighlights.js +36 -66
  98. package/hooks/useMyLocalStorage.js +37 -66
  99. package/iconify-BBckr5AQ.js +1263 -0
  100. package/icons/Action.js +49 -66
  101. package/icons/Assessment.js +69 -85
  102. package/icons/Context.js +63 -77
  103. package/icons/Opinion.js +60 -76
  104. package/icons/iconMap.js +2 -2
  105. package/identity-ByMq8VxU.js +6 -0
  106. package/index-BHAe_V9n.js +12768 -0
  107. package/index-BK-zfYhR.js +358 -0
  108. package/index-CA5CUNZO.js +975 -0
  109. package/index-Dj5C04IX.js +568 -0
  110. package/index-p5_wX7q1.js +11729 -0
  111. package/isNil-CjWwlQS3.js +6 -0
  112. package/isObject-B53jY8Qg.js +7 -0
  113. package/isObjectLike-BatpeCIi.js +29 -0
  114. package/isSymbol-C3_SC0Qp.js +8 -0
  115. package/last-7CdUxN0r.js +7 -0
  116. package/main.js +60 -60
  117. package/maxBy-Bc0dYHcO.js +8 -0
  118. package/package.json +1 -1
  119. package/sortBy-DY2JBf9n.js +75 -0
  120. package/sumBy-DuMASLPd.js +8 -0
  121. package/text/Frequency.js +23 -42
  122. package/toFinite-BMy6GObD.js +14 -0
  123. package/toNumber-YVhnnJv4.js +31 -0
  124. package/useClueTypeConfig-Ct9Ygter.js +2292 -0
  125. package/utils/chain.js +65 -92
  126. package/utils/classificationParser.js +256 -519
  127. package/utils/constants.js +10 -35
  128. package/utils/graph.js +45 -72
  129. package/utils/hashUtil.js +7 -7
  130. package/utils/line.js +81 -131
  131. package/utils/loggerUtil.js +3 -5
  132. package/utils/sessionStorage.js +27 -41
  133. package/utils/time.js +423 -423
  134. package/utils/utils.js +9 -9
  135. package/utils/window.js +10 -21
  136. package/utils-DmwSUrum.js +129 -0
  137. package/ActionForm-uDp92tN2.js +0 -5941
  138. package/AnnotationDetails-DGYfOiWm.js +0 -175
  139. package/AnnotationPreview-bHObsb3P.js +0 -188
  140. package/ClueEnrichContext-CJEJxrgs.js +0 -541
  141. package/FlexOne-BSYAhhtG.js +0 -9
  142. package/_MapCache-WmuDdwuH.js +0 -222
  143. package/_Uint8Array-B7JqpgFX.js +0 -128
  144. package/_baseAssignValue-CGTuELqU.js +0 -25
  145. package/_baseClone-CkNrTyhm.js +0 -283
  146. package/_baseExtremum-kob8QXyt.js +0 -18
  147. package/_baseFlatten-jIR_sN_-.js +0 -92
  148. package/_baseGet-Bx3A4Qfp.js +0 -108
  149. package/_baseIsEqual-C5OTWzTk.js +0 -208
  150. package/_baseIteratee-avi7MX2o.js +0 -126
  151. package/_baseSlice-GAv_YFTT.js +0 -20
  152. package/_baseSum-D0WC1dN0.js +0 -13
  153. package/_baseUniq-BI9GIHMF.js +0 -115
  154. package/_commonjsHelpers-DWwsNxpa.js +0 -8
  155. package/_createAggregator-QD8MzKwe.js +0 -63
  156. package/_getPrototype-CU0j_POw.js +0 -5
  157. package/_getTag-Ckxxfr88.js +0 -126
  158. package/_isIterateeCall-Ds3sw2SF.js +0 -17
  159. package/_setToArray-CaPKQhcz.js +0 -33
  160. package/cloneDeep-DJrLSw8W.js +0 -8
  161. package/countBy-c6S3dvSW.js +0 -14
  162. package/debounce-bV0h5FC5.js +0 -92
  163. package/get-DSsNkRQs.js +0 -8
  164. package/groupBy-xqz-n0Vd.js +0 -14
  165. package/iconify-CXMreGTg.js +0 -1782
  166. package/identity-CPGTqrE4.js +0 -6
  167. package/index-AMfoEg_6.js +0 -696
  168. package/index-B6C2a_Lg.js +0 -1172
  169. package/index-C12gPw2W.js +0 -17698
  170. package/index-DCKkHTvx.js +0 -15750
  171. package/index-JcKyZeoY.js +0 -465
  172. package/isNil-CIubwp4T.js +0 -6
  173. package/isObject-FTY-5JQX.js +0 -7
  174. package/isObjectLike-OAgjjZye.js +0 -48
  175. package/isSymbol-Xd2FsJyp.js +0 -8
  176. package/last-CUCl67Im.js +0 -7
  177. package/maxBy-IKHzFrCS.js +0 -8
  178. package/sortBy-DfSj8IoJ.js +0 -96
  179. package/sumBy-D-hb_NY-.js +0 -8
  180. package/toFinite-Bc55msYj.js +0 -16
  181. package/toNumber-DPxy1FBy.js +0 -39
  182. package/useClueTypeConfig-Z1LFp01b.js +0 -3289
  183. package/utils-HmNPuoDB.js +0 -199
@@ -0,0 +1,568 @@
1
+ import { createContext as p, useRef as F, useState as x, createElement as $, useEffect as ee, useLayoutEffect as ne, useContext as te, useReducer as re } from "react";
2
+ var X = { exports: {} }, Q = {};
3
+ /**
4
+ * @license React
5
+ * scheduler.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var z;
13
+ function ue() {
14
+ return z || (z = 1, function(r) {
15
+ function c(e, t) {
16
+ var n = e.length;
17
+ e.push(t);
18
+ e: for (; 0 < n; ) {
19
+ var u = n - 1 >>> 1, l = e[u];
20
+ if (0 < P(l, t))
21
+ e[u] = t, e[n] = l, n = u;
22
+ else break e;
23
+ }
24
+ }
25
+ function a(e) {
26
+ return e.length === 0 ? null : e[0];
27
+ }
28
+ function o(e) {
29
+ if (e.length === 0) return null;
30
+ var t = e[0], n = e.pop();
31
+ if (n !== t) {
32
+ e[0] = n;
33
+ e: for (var u = 0, l = e.length, L = l >>> 1; u < L; ) {
34
+ var D = 2 * (u + 1) - 1, q = e[D], k = D + 1, A = e[k];
35
+ if (0 > P(q, n))
36
+ k < l && 0 > P(A, q) ? (e[u] = A, e[k] = n, u = k) : (e[u] = q, e[D] = n, u = D);
37
+ else if (k < l && 0 > P(A, n))
38
+ e[u] = A, e[k] = n, u = k;
39
+ else break e;
40
+ }
41
+ }
42
+ return t;
43
+ }
44
+ function P(e, t) {
45
+ var n = e.sortIndex - t.sortIndex;
46
+ return n !== 0 ? n : e.id - t.id;
47
+ }
48
+ if (r.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
49
+ var y = performance;
50
+ r.unstable_now = function() {
51
+ return y.now();
52
+ };
53
+ } else {
54
+ var m = Date, T = m.now();
55
+ r.unstable_now = function() {
56
+ return m.now() - T;
57
+ };
58
+ }
59
+ var f = [], s = [], O = 1, _ = null, i = 3, d = !1, v = !1, C = !1, w = !1, b = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, H = typeof setImmediate < "u" ? setImmediate : null;
60
+ function S(e) {
61
+ for (var t = a(s); t !== null; ) {
62
+ if (t.callback === null) o(s);
63
+ else if (t.startTime <= e)
64
+ o(s), t.sortIndex = t.expirationTime, c(f, t);
65
+ else break;
66
+ t = a(s);
67
+ }
68
+ }
69
+ function j(e) {
70
+ if (C = !1, S(e), !v)
71
+ if (a(f) !== null)
72
+ v = !0, E || (E = !0, g());
73
+ else {
74
+ var t = a(s);
75
+ t !== null && K(j, t.startTime - e);
76
+ }
77
+ }
78
+ var E = !1, I = -1, U = 5, R = -1;
79
+ function N() {
80
+ return w ? !0 : !(r.unstable_now() - R < U);
81
+ }
82
+ function G() {
83
+ if (w = !1, E) {
84
+ var e = r.unstable_now();
85
+ R = e;
86
+ var t = !0;
87
+ try {
88
+ e: {
89
+ v = !1, C && (C = !1, B(I), I = -1), d = !0;
90
+ var n = i;
91
+ try {
92
+ n: {
93
+ for (S(e), _ = a(f); _ !== null && !(_.expirationTime > e && N()); ) {
94
+ var u = _.callback;
95
+ if (typeof u == "function") {
96
+ _.callback = null, i = _.priorityLevel;
97
+ var l = u(
98
+ _.expirationTime <= e
99
+ );
100
+ if (e = r.unstable_now(), typeof l == "function") {
101
+ _.callback = l, S(e), t = !0;
102
+ break n;
103
+ }
104
+ _ === a(f) && o(f), S(e);
105
+ } else o(f);
106
+ _ = a(f);
107
+ }
108
+ if (_ !== null) t = !0;
109
+ else {
110
+ var L = a(s);
111
+ L !== null && K(
112
+ j,
113
+ L.startTime - e
114
+ ), t = !1;
115
+ }
116
+ }
117
+ break e;
118
+ } finally {
119
+ _ = null, i = n, d = !1;
120
+ }
121
+ t = void 0;
122
+ }
123
+ } finally {
124
+ t ? g() : E = !1;
125
+ }
126
+ }
127
+ }
128
+ var g;
129
+ if (typeof H == "function")
130
+ g = function() {
131
+ H(G);
132
+ };
133
+ else if (typeof MessageChannel < "u") {
134
+ var V = new MessageChannel(), M = V.port2;
135
+ V.port1.onmessage = G, g = function() {
136
+ M.postMessage(null);
137
+ };
138
+ } else
139
+ g = function() {
140
+ b(G, 0);
141
+ };
142
+ function K(e, t) {
143
+ I = b(function() {
144
+ e(r.unstable_now());
145
+ }, t);
146
+ }
147
+ r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(e) {
148
+ e.callback = null;
149
+ }, r.unstable_forceFrameRate = function(e) {
150
+ 0 > e || 125 < e ? console.error(
151
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
152
+ ) : U = 0 < e ? Math.floor(1e3 / e) : 5;
153
+ }, r.unstable_getCurrentPriorityLevel = function() {
154
+ return i;
155
+ }, r.unstable_next = function(e) {
156
+ switch (i) {
157
+ case 1:
158
+ case 2:
159
+ case 3:
160
+ var t = 3;
161
+ break;
162
+ default:
163
+ t = i;
164
+ }
165
+ var n = i;
166
+ i = t;
167
+ try {
168
+ return e();
169
+ } finally {
170
+ i = n;
171
+ }
172
+ }, r.unstable_requestPaint = function() {
173
+ w = !0;
174
+ }, r.unstable_runWithPriority = function(e, t) {
175
+ switch (e) {
176
+ case 1:
177
+ case 2:
178
+ case 3:
179
+ case 4:
180
+ case 5:
181
+ break;
182
+ default:
183
+ e = 3;
184
+ }
185
+ var n = i;
186
+ i = e;
187
+ try {
188
+ return t();
189
+ } finally {
190
+ i = n;
191
+ }
192
+ }, r.unstable_scheduleCallback = function(e, t, n) {
193
+ var u = r.unstable_now();
194
+ switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
195
+ case 1:
196
+ var l = -1;
197
+ break;
198
+ case 2:
199
+ l = 250;
200
+ break;
201
+ case 5:
202
+ l = 1073741823;
203
+ break;
204
+ case 4:
205
+ l = 1e4;
206
+ break;
207
+ default:
208
+ l = 5e3;
209
+ }
210
+ return l = n + l, e = {
211
+ id: O++,
212
+ callback: t,
213
+ priorityLevel: e,
214
+ startTime: n,
215
+ expirationTime: l,
216
+ sortIndex: -1
217
+ }, n > u ? (e.sortIndex = n, c(s, e), a(f) === null && e === a(s) && (C ? (B(I), I = -1) : C = !0, K(j, n - u))) : (e.sortIndex = l, c(f, e), v || d || (v = !0, E || (E = !0, g()))), e;
218
+ }, r.unstable_shouldYield = N, r.unstable_wrapCallback = function(e) {
219
+ var t = i;
220
+ return function() {
221
+ var n = i;
222
+ i = t;
223
+ try {
224
+ return e.apply(this, arguments);
225
+ } finally {
226
+ i = n;
227
+ }
228
+ };
229
+ };
230
+ }(Q)), Q;
231
+ }
232
+ var Y = {};
233
+ /**
234
+ * @license React
235
+ * scheduler.development.js
236
+ *
237
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
238
+ *
239
+ * This source code is licensed under the MIT license found in the
240
+ * LICENSE file in the root directory of this source tree.
241
+ */
242
+ var J;
243
+ function le() {
244
+ return J || (J = 1, function(r) {
245
+ process.env.NODE_ENV !== "production" && function() {
246
+ function c() {
247
+ if (j = !1, R) {
248
+ var e = r.unstable_now();
249
+ g = e;
250
+ var t = !0;
251
+ try {
252
+ e: {
253
+ H = !1, S && (S = !1, I(N), N = -1), B = !0;
254
+ var n = b;
255
+ try {
256
+ n: {
257
+ for (m(e), w = o(d); w !== null && !(w.expirationTime > e && f()); ) {
258
+ var u = w.callback;
259
+ if (typeof u == "function") {
260
+ w.callback = null, b = w.priorityLevel;
261
+ var l = u(
262
+ w.expirationTime <= e
263
+ );
264
+ if (e = r.unstable_now(), typeof l == "function") {
265
+ w.callback = l, m(e), t = !0;
266
+ break n;
267
+ }
268
+ w === o(d) && P(d), m(e);
269
+ } else P(d);
270
+ w = o(d);
271
+ }
272
+ if (w !== null) t = !0;
273
+ else {
274
+ var L = o(v);
275
+ L !== null && s(
276
+ T,
277
+ L.startTime - e
278
+ ), t = !1;
279
+ }
280
+ }
281
+ break e;
282
+ } finally {
283
+ w = null, b = n, B = !1;
284
+ }
285
+ t = void 0;
286
+ }
287
+ } finally {
288
+ t ? V() : R = !1;
289
+ }
290
+ }
291
+ }
292
+ function a(e, t) {
293
+ var n = e.length;
294
+ e.push(t);
295
+ e: for (; 0 < n; ) {
296
+ var u = n - 1 >>> 1, l = e[u];
297
+ if (0 < y(l, t))
298
+ e[u] = t, e[n] = l, n = u;
299
+ else break e;
300
+ }
301
+ }
302
+ function o(e) {
303
+ return e.length === 0 ? null : e[0];
304
+ }
305
+ function P(e) {
306
+ if (e.length === 0) return null;
307
+ var t = e[0], n = e.pop();
308
+ if (n !== t) {
309
+ e[0] = n;
310
+ e: for (var u = 0, l = e.length, L = l >>> 1; u < L; ) {
311
+ var D = 2 * (u + 1) - 1, q = e[D], k = D + 1, A = e[k];
312
+ if (0 > y(q, n))
313
+ k < l && 0 > y(A, q) ? (e[u] = A, e[k] = n, u = k) : (e[u] = q, e[D] = n, u = D);
314
+ else if (k < l && 0 > y(A, n))
315
+ e[u] = A, e[k] = n, u = k;
316
+ else break e;
317
+ }
318
+ }
319
+ return t;
320
+ }
321
+ function y(e, t) {
322
+ var n = e.sortIndex - t.sortIndex;
323
+ return n !== 0 ? n : e.id - t.id;
324
+ }
325
+ function m(e) {
326
+ for (var t = o(v); t !== null; ) {
327
+ if (t.callback === null) P(v);
328
+ else if (t.startTime <= e)
329
+ P(v), t.sortIndex = t.expirationTime, a(d, t);
330
+ else break;
331
+ t = o(v);
332
+ }
333
+ }
334
+ function T(e) {
335
+ if (S = !1, m(e), !H)
336
+ if (o(d) !== null)
337
+ H = !0, R || (R = !0, V());
338
+ else {
339
+ var t = o(v);
340
+ t !== null && s(
341
+ T,
342
+ t.startTime - e
343
+ );
344
+ }
345
+ }
346
+ function f() {
347
+ return j ? !0 : !(r.unstable_now() - g < G);
348
+ }
349
+ function s(e, t) {
350
+ N = E(function() {
351
+ e(r.unstable_now());
352
+ }, t);
353
+ }
354
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), r.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
355
+ var O = performance;
356
+ r.unstable_now = function() {
357
+ return O.now();
358
+ };
359
+ } else {
360
+ var _ = Date, i = _.now();
361
+ r.unstable_now = function() {
362
+ return _.now() - i;
363
+ };
364
+ }
365
+ var d = [], v = [], C = 1, w = null, b = 3, B = !1, H = !1, S = !1, j = !1, E = typeof setTimeout == "function" ? setTimeout : null, I = typeof clearTimeout == "function" ? clearTimeout : null, U = typeof setImmediate < "u" ? setImmediate : null, R = !1, N = -1, G = 5, g = -1;
366
+ if (typeof U == "function")
367
+ var V = function() {
368
+ U(c);
369
+ };
370
+ else if (typeof MessageChannel < "u") {
371
+ var M = new MessageChannel(), K = M.port2;
372
+ M.port1.onmessage = c, V = function() {
373
+ K.postMessage(null);
374
+ };
375
+ } else
376
+ V = function() {
377
+ E(c, 0);
378
+ };
379
+ r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(e) {
380
+ e.callback = null;
381
+ }, r.unstable_forceFrameRate = function(e) {
382
+ 0 > e || 125 < e ? console.error(
383
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
384
+ ) : G = 0 < e ? Math.floor(1e3 / e) : 5;
385
+ }, r.unstable_getCurrentPriorityLevel = function() {
386
+ return b;
387
+ }, r.unstable_next = function(e) {
388
+ switch (b) {
389
+ case 1:
390
+ case 2:
391
+ case 3:
392
+ var t = 3;
393
+ break;
394
+ default:
395
+ t = b;
396
+ }
397
+ var n = b;
398
+ b = t;
399
+ try {
400
+ return e();
401
+ } finally {
402
+ b = n;
403
+ }
404
+ }, r.unstable_requestPaint = function() {
405
+ j = !0;
406
+ }, r.unstable_runWithPriority = function(e, t) {
407
+ switch (e) {
408
+ case 1:
409
+ case 2:
410
+ case 3:
411
+ case 4:
412
+ case 5:
413
+ break;
414
+ default:
415
+ e = 3;
416
+ }
417
+ var n = b;
418
+ b = e;
419
+ try {
420
+ return t();
421
+ } finally {
422
+ b = n;
423
+ }
424
+ }, r.unstable_scheduleCallback = function(e, t, n) {
425
+ var u = r.unstable_now();
426
+ switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
427
+ case 1:
428
+ var l = -1;
429
+ break;
430
+ case 2:
431
+ l = 250;
432
+ break;
433
+ case 5:
434
+ l = 1073741823;
435
+ break;
436
+ case 4:
437
+ l = 1e4;
438
+ break;
439
+ default:
440
+ l = 5e3;
441
+ }
442
+ return l = n + l, e = {
443
+ id: C++,
444
+ callback: t,
445
+ priorityLevel: e,
446
+ startTime: n,
447
+ expirationTime: l,
448
+ sortIndex: -1
449
+ }, n > u ? (e.sortIndex = n, a(v, e), o(d) === null && e === o(v) && (S ? (I(N), N = -1) : S = !0, s(T, n - u))) : (e.sortIndex = l, a(d, e), H || B || (H = !0, R || (R = !0, V()))), e;
450
+ }, r.unstable_shouldYield = f, r.unstable_wrapCallback = function(e) {
451
+ var t = b;
452
+ return function() {
453
+ var n = b;
454
+ b = t;
455
+ try {
456
+ return e.apply(this, arguments);
457
+ } finally {
458
+ b = n;
459
+ }
460
+ };
461
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
462
+ }();
463
+ }(Y)), Y;
464
+ }
465
+ process.env.NODE_ENV === "production" ? X.exports = ue() : X.exports = le();
466
+ var W = X.exports;
467
+ const h = Symbol(), ae = Symbol(), se = typeof window > "u" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent), Z = se ? ee : ne, oe = W.unstable_runWithPriority ? (r) => {
468
+ try {
469
+ W.unstable_runWithPriority(W.unstable_NormalPriority, r);
470
+ } catch (c) {
471
+ if (c.message === "Not implemented.")
472
+ r();
473
+ else
474
+ throw c;
475
+ }
476
+ } : (r) => r(), ie = (r) => ({ value: a, children: o }) => {
477
+ const P = F(a), y = F(0), [m, T] = x(null);
478
+ m && (m(a), T(null));
479
+ const f = F();
480
+ if (!f.current) {
481
+ const s = /* @__PURE__ */ new Set(), O = (_, i) => {
482
+ y.current += 1;
483
+ const d = {
484
+ n: y.current
485
+ };
486
+ i != null && i.suspense && (d.n *= -1, d.p = new Promise((v) => {
487
+ T(() => (C) => {
488
+ d.v = C, delete d.p, v(C);
489
+ });
490
+ })), s.forEach((v) => v(d)), _();
491
+ };
492
+ f.current = {
493
+ [h]: {
494
+ /* "v"alue */
495
+ v: P,
496
+ /* versio"n" */
497
+ n: y,
498
+ /* "l"isteners */
499
+ l: s,
500
+ /* "u"pdate */
501
+ u: O
502
+ }
503
+ };
504
+ }
505
+ return Z(() => {
506
+ P.current = a, y.current += 1, oe(() => {
507
+ f.current[h].l.forEach((s) => {
508
+ s({ n: y.current, v: a });
509
+ });
510
+ });
511
+ }, [a]), $(r, { value: f.current }, o);
512
+ }, ce = (r) => r;
513
+ function de(r) {
514
+ const c = p({
515
+ [h]: {
516
+ /* "v"alue */
517
+ v: { current: r },
518
+ /* versio"n" */
519
+ n: { current: -1 },
520
+ /* "l"isteners */
521
+ l: /* @__PURE__ */ new Set(),
522
+ /* "u"pdate */
523
+ u: (a) => a()
524
+ }
525
+ });
526
+ return c[ae] = c.Provider, c.Provider = ie(c.Provider), delete c.Consumer, c;
527
+ }
528
+ function fe(r, c) {
529
+ const a = te(r)[h];
530
+ if (typeof process == "object" && process.env.NODE_ENV !== "production" && !a)
531
+ throw new Error("useContextSelector requires special context");
532
+ const {
533
+ /* "v"alue */
534
+ v: { current: o },
535
+ /* versio"n" */
536
+ n: { current: P },
537
+ /* "l"isteners */
538
+ l: y
539
+ } = a, m = c(o), [T, f] = re((s, O) => {
540
+ if (!O)
541
+ return [o, m];
542
+ if ("p" in O)
543
+ throw O.p;
544
+ if (O.n === P)
545
+ return Object.is(s[1], m) ? s : [o, m];
546
+ try {
547
+ if ("v" in O) {
548
+ if (Object.is(s[0], O.v))
549
+ return s;
550
+ const _ = c(O.v);
551
+ return Object.is(s[1], _) ? s : [O.v, _];
552
+ }
553
+ } catch {
554
+ }
555
+ return [...s];
556
+ }, [o, m]);
557
+ return Object.is(T[1], m) || f(), Z(() => (y.add(f), () => {
558
+ y.delete(f);
559
+ }), [y]), T[1];
560
+ }
561
+ function be(r) {
562
+ return fe(r, ce);
563
+ }
564
+ export {
565
+ be as a,
566
+ de as c,
567
+ fe as u
568
+ };