@cccsaurora/clue-ui 1.4.0 → 1.5.0-dev.449

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 (224) hide show
  1. package/ActionForm-CbLz66Rk.js +6099 -0
  2. package/AnnotationDetails-CdNvyJl7.js +176 -0
  3. package/AnnotationPreview-C6a3qRFG.js +188 -0
  4. package/ClueEnrichContext-0eVIgvZp.js +594 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_MapCache-kuEY_iOH.js +220 -0
  7. package/_Set-BrSMTlHn.js +6 -0
  8. package/_Uint8Array-OPpgYQj7.js +123 -0
  9. package/_arrayIncludes-BNqL-9ZP.js +31 -0
  10. package/_arrayPush-CBkQqaE_.js +10 -0
  11. package/_baseAssignValue-CNUVPOBW.js +16 -0
  12. package/_baseClone-9FaRd1R2.js +287 -0
  13. package/_baseExtremum-wOGT4Dgw.js +18 -0
  14. package/_baseFlatten-Co6QHDlG.js +92 -0
  15. package/_baseGet-Cmp6FztG.js +109 -0
  16. package/_baseGetTag-Hj-0NTYF.js +44 -0
  17. package/_baseIsEqual-1CpU47TZ.js +211 -0
  18. package/_baseIteratee-BN7Vbe5g.js +126 -0
  19. package/_baseRest-BZ_hQ9PC.js +8 -0
  20. package/_baseSlice-GAv_YFTT.js +20 -0
  21. package/_baseSum-D0WC1dN0.js +13 -0
  22. package/_baseUniq-BnvS3JHL.js +63 -0
  23. package/_cacheHas-_aF2y2Xv.js +25 -0
  24. package/_commonjsHelpers-CUmg6egw.js +6 -0
  25. package/_createAggregator-BUZrP_is.js +63 -0
  26. package/_defineProperty-DolZLKmv.js +12 -0
  27. package/_getPrototype-Bb4gm-5m.js +5 -0
  28. package/_getTag-CML_cXiN.js +105 -0
  29. package/_isIterateeCall-B1IFEqVv.js +17 -0
  30. package/_setToArray-CqyqC8ib.js +10 -0
  31. package/cloneDeep-l3UkXG5M.js +8 -0
  32. package/components/AnnotationBody.js +49 -35
  33. package/components/AnnotationDetailPopover.js +39 -30
  34. package/components/AnnotationDetails.js +7 -7
  35. package/components/AnnotationEntry.js +35 -35
  36. package/components/AnnotationPreview.js +5 -5
  37. package/components/ClassificationChip.js +44 -23
  38. package/components/CountBadge.js +31 -26
  39. package/components/EnrichedCard.js +110 -97
  40. package/components/EnrichedChip.js +130 -105
  41. package/components/EnrichedTypography.js +133 -107
  42. package/components/ErrorBoundary.js +28 -24
  43. package/components/RetryFailedEnrichments.js +10 -9
  44. package/components/SourcePicker.js +57 -49
  45. package/components/actions/ActionForm.js +4 -4
  46. package/components/actions/ExecutePopover.js +75 -59
  47. package/components/actions/ResultModal.js +4 -4
  48. package/components/actions/form/schemaAdapter.js +39 -23
  49. package/components/actions/formats/FileResult.js +86 -59
  50. package/components/actions/formats/index.js +29 -25
  51. package/components/display/graph/ExpandMoreButton.js +10 -10
  52. package/components/display/graph/elements/NodeCard.js +111 -91
  53. package/components/display/graph/elements/NodeTag.js +15 -13
  54. package/components/display/graph/index.js +261 -202
  55. package/components/display/graph/visualizations/Leaf.js +89 -70
  56. package/components/display/graph/visualizations/cloud/index.js +98 -81
  57. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  58. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  59. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  60. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  61. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  62. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  63. package/components/display/graph/visualizations/icons/index.js +14 -13
  64. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  65. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  66. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  67. package/components/display/graph/visualizations/tree/index.js +408 -306
  68. package/components/display/icons/Iconified.js +27 -12
  69. package/components/display/json/index.js +4 -4
  70. package/components/display/markdown/index.js +8678 -5770
  71. package/components/enrichment/EnrichPopover.js +54 -46
  72. package/components/fetchers/Fetcher.js +166 -123
  73. package/components/fetchers/FetcherResultView.js +31 -27
  74. package/components/fetchers/PreviewModal.js +17 -16
  75. package/components/fetchers/StatusChip.js +21 -17
  76. package/components/group/Entry.js +13 -11
  77. package/components/group/Group.js +13 -10
  78. package/components/group/GroupControl.js +76 -65
  79. package/components/stats/QueryStatus.js +45 -32
  80. package/countBy-Bqcp3VCs.js +14 -0
  81. package/data/event.js +6 -4
  82. package/database/globals.js +2 -2
  83. package/database/index.js +3 -3
  84. package/database/replication.js +4 -4
  85. package/get-CdMThM8x.js +8 -0
  86. package/groupBy-BVV07EGQ.js +14 -0
  87. package/hooks/ClueActionContext.js +6 -6
  88. package/hooks/ClueComponentContext.js +29 -23
  89. package/hooks/ClueConfigProvider.js +14 -12
  90. package/hooks/ClueDatabaseContext.js +35 -23
  91. package/hooks/ClueEnrichContext.js +11 -11
  92. package/hooks/ClueFetcherContext.js +83 -56
  93. package/hooks/ClueGroupContext.js +17 -14
  94. package/hooks/CluePopupContext.js +5 -5
  95. package/hooks/ClueProvider.js +13 -11
  96. package/hooks/ClueUIPluginContext.js +49 -35
  97. package/hooks/selectors.js +7 -7
  98. package/hooks/useActionResult.js +3 -3
  99. package/hooks/useAnnotations.js +48 -32
  100. package/hooks/useClue.js +6 -4
  101. package/hooks/useClueActions.js +3 -3
  102. package/hooks/useClueConfig.js +6 -4
  103. package/hooks/useClueTypeConfig.js +49 -24
  104. package/hooks/useClueUIPlugins.js +8 -7
  105. package/hooks/useComparator.js +722 -435
  106. package/hooks/useErrors.js +22 -18
  107. package/hooks/useFetcherResult.js +33 -24
  108. package/hooks/useMyHighlights.js +66 -36
  109. package/hooks/useMyLocalStorage.js +66 -37
  110. package/iconify-DJxl6dC-.js +1789 -0
  111. package/icons/Action.js +66 -49
  112. package/icons/Assessment.js +85 -69
  113. package/icons/Context.js +77 -63
  114. package/icons/Opinion.js +76 -60
  115. package/icons/iconMap.js +2 -2
  116. package/identity-CPGTqrE4.js +6 -0
  117. package/index-CDrC9oSE.js +1172 -0
  118. package/index-CVUD9o3t.js +15768 -0
  119. package/index-DUEubgWN.js +464 -0
  120. package/index-DpJxD74E.js +3272 -0
  121. package/index-IKI1G5v-.js +9314 -0
  122. package/index-_gpzM2Px.js +702 -0
  123. package/isArguments-CuYlEuhP.js +27 -0
  124. package/isArray-RJPfgWqI.js +4 -0
  125. package/isEmpty-BE656RUK.js +30 -0
  126. package/isNil-CIubwp4T.js +6 -0
  127. package/isObject-FTY-5JQX.js +7 -0
  128. package/isObjectLike-CeENW9FN.js +6 -0
  129. package/isSymbol-D_H4HPZQ.js +9 -0
  130. package/last-CUCl67Im.js +7 -0
  131. package/main.js +62 -62
  132. package/maxBy-BjjQmX5t.js +8 -0
  133. package/package.json +1 -1
  134. package/plugins/ClueUIPlugin.js +163 -96
  135. package/plugins/file/index.js +15 -15
  136. package/plugins/graph/index.js +29 -26
  137. package/plugins/image/index.js +28 -24
  138. package/plugins/json/index.js +21 -21
  139. package/plugins/markdown/index.js +18 -18
  140. package/plugins/registry.js +6 -6
  141. package/plugins/store.js +4 -4
  142. package/plugins/test/index.js +17 -17
  143. package/plugins/utils.js +13 -12
  144. package/replication-kdsH0l7f.js +11779 -0
  145. package/sessionStorage-B68y-wnE.js +140 -0
  146. package/sortBy-B8JVsLQY.js +95 -0
  147. package/store-9Bv4xoVU.js +2165 -0
  148. package/sumBy-D-HCzM2i.js +8 -0
  149. package/text/Frequency.js +42 -23
  150. package/toFinite-meZTg4Su.js +16 -0
  151. package/toNumber-B5JaA1vX.js +39 -0
  152. package/uniq-CahZPAwp.js +7 -0
  153. package/utils/chain.js +92 -65
  154. package/utils/classificationParser.js +519 -256
  155. package/utils/constants.js +37 -11
  156. package/utils/graph.js +72 -45
  157. package/utils/hashUtil.js +7 -7
  158. package/utils/line.js +131 -81
  159. package/utils/loggerUtil.js +5 -3
  160. package/utils/sessionStorage.js +7 -7
  161. package/utils/time.js +447 -427
  162. package/utils/utils.js +10 -10
  163. package/utils/window.js +21 -10
  164. package/utils-CEySTPtg.js +224 -0
  165. package/ActionForm-DjyNwVzM.js +0 -4403
  166. package/AnnotationDetails-BvPv3_pR.js +0 -160
  167. package/AnnotationPreview-C0JN_lr0.js +0 -140
  168. package/ClueEnrichContext-CNbh-qiy.js +0 -452
  169. package/FlexOne-BXWFOd1T.js +0 -6
  170. package/_MapCache-DRK-s2eK.js +0 -179
  171. package/_Set-DrS_bbSV.js +0 -6
  172. package/_Uint8Array-D9R2N9Lp.js +0 -98
  173. package/_arrayIncludes-Dcl_29E6.js +0 -25
  174. package/_arrayPush-DBJIuK2V.js +0 -8
  175. package/_baseAssignValue-Bx1cxHj5.js +0 -12
  176. package/_baseClone-DRhywkxm.js +0 -211
  177. package/_baseExtremum-DodEaEyF.js +0 -16
  178. package/_baseFlatten-CD9NgrYE.js +0 -72
  179. package/_baseGet-bVwDaGrA.js +0 -80
  180. package/_baseGetTag-CxDaTem-.js +0 -25
  181. package/_baseIsEqual-C-FKsm1J.js +0 -150
  182. package/_baseIteratee-D0FhC5bC.js +0 -95
  183. package/_baseRest-D_eW2E0d.js +0 -8
  184. package/_baseSlice-M5RKzt1A.js +0 -10
  185. package/_baseSum-wEbgNeUs.js +0 -10
  186. package/_baseUniq-D3N8igOm.js +0 -41
  187. package/_cacheHas-Wgl-hw34.js +0 -22
  188. package/_commonjsHelpers-C6fGbg64.js +0 -6
  189. package/_createAggregator-BVj8IAuF.js +0 -53
  190. package/_defineProperty-BZU4WKA3.js +0 -11
  191. package/_getPrototype-BGBCg-aX.js +0 -5
  192. package/_getTag-B7R9qBo7.js +0 -73
  193. package/_isIterateeCall-Dm0VTAYy.js +0 -13
  194. package/_setToArray-Ck4YZu0Z.js +0 -9
  195. package/cloneDeep-fV59zwUf.js +0 -8
  196. package/countBy-B3rNuG4T.js +0 -8
  197. package/get-Bil3mzRD.js +0 -8
  198. package/groupBy-CrJC7sGa.js +0 -8
  199. package/iconify-Ptb5dTKy.js +0 -1270
  200. package/identity-ByMq8VxU.js +0 -6
  201. package/index-BH-gBhtO.js +0 -2282
  202. package/index-BM9Sve5T.js +0 -571
  203. package/index-Cj4d5cGz.js +0 -357
  204. package/index-D3Dwn-8x.js +0 -6464
  205. package/index-Dh2PP9h8.js +0 -11747
  206. package/index-DoFpWPHo.js +0 -975
  207. package/isArguments-BWcXOE6a.js +0 -24
  208. package/isArray-WzO_os3q.js +0 -4
  209. package/isEmpty-DKxrY-_M.js +0 -22
  210. package/isNil-CjWwlQS3.js +0 -6
  211. package/isObject-B53jY8Qg.js +0 -7
  212. package/isObjectLike-CYbdrIBr.js +0 -6
  213. package/isSymbol-DE1Kcy2M.js +0 -9
  214. package/last-7CdUxN0r.js +0 -7
  215. package/maxBy-BOWDkL_D.js +0 -8
  216. package/replication-WkKbPdwG.js +0 -8453
  217. package/sessionStorage-DFMae61b.js +0 -90
  218. package/sortBy-BHe812lF.js +0 -74
  219. package/store-DClHBq7r.js +0 -1169
  220. package/sumBy-B7f_bP_k.js +0 -8
  221. package/toFinite-CBrE65MP.js +0 -14
  222. package/toNumber-CxmWey0f.js +0 -31
  223. package/uniq-B4UZ671_.js +0 -7
  224. package/utils-SpTOhPYl.js +0 -147
package/index-BM9Sve5T.js DELETED
@@ -1,571 +0,0 @@
1
- import { createContext as p, useRef as Q, useState as x, createElement as ee, useEffect as ne, useLayoutEffect as te, useContext as re, useReducer as ue } from "react";
2
- var M = { exports: {} }, Y = {};
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 X;
13
- function le() {
14
- return X || (X = 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, j = e[D], k = D + 1, A = e[k];
35
- if (0 > P(j, n))
36
- k < l && 0 > P(A, j) ? (e[u] = A, e[k] = n, u = k) : (e[u] = j, 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, d = null, i = 3, _ = !1, v = !1, S = !1, w = !1, b = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, H = typeof setImmediate < "u" ? setImmediate : null;
60
- function C(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 q(e) {
70
- if (S = !1, C(e), !v)
71
- if (a(f) !== null)
72
- v = !0, E || (E = !0, g());
73
- else {
74
- var t = a(s);
75
- t !== null && U(q, t.startTime - e);
76
- }
77
- }
78
- var E = !1, I = -1, G = 5, R = -1;
79
- function N() {
80
- return w ? !0 : !(r.unstable_now() - R < G);
81
- }
82
- function h() {
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, S && (S = !1, B(I), I = -1), _ = !0;
90
- var n = i;
91
- try {
92
- n: {
93
- for (C(e), d = a(f); d !== null && !(d.expirationTime > e && N()); ) {
94
- var u = d.callback;
95
- if (typeof u == "function") {
96
- d.callback = null, i = d.priorityLevel;
97
- var l = u(
98
- d.expirationTime <= e
99
- );
100
- if (e = r.unstable_now(), typeof l == "function") {
101
- d.callback = l, C(e), t = !0;
102
- break n;
103
- }
104
- d === a(f) && o(f), C(e);
105
- } else o(f);
106
- d = a(f);
107
- }
108
- if (d !== null) t = !0;
109
- else {
110
- var L = a(s);
111
- L !== null && U(
112
- q,
113
- L.startTime - e
114
- ), t = !1;
115
- }
116
- }
117
- break e;
118
- } finally {
119
- d = null, i = n, _ = !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(h);
132
- };
133
- else if (typeof MessageChannel < "u") {
134
- var V = new MessageChannel(), K = V.port2;
135
- V.port1.onmessage = h, g = function() {
136
- K.postMessage(null);
137
- };
138
- } else
139
- g = function() {
140
- b(h, 0);
141
- };
142
- function U(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
- ) : G = 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) && (S ? (B(I), I = -1) : S = !0, U(q, n - u))) : (e.sortIndex = l, c(f, e), v || _ || (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
- })(Y)), Y;
231
- }
232
- var W = {};
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 z;
243
- function ae() {
244
- return z || (z = 1, (function(r) {
245
- process.env.NODE_ENV !== "production" && (function() {
246
- function c() {
247
- if (q = !1, R) {
248
- var e = r.unstable_now();
249
- g = e;
250
- var t = !0;
251
- try {
252
- e: {
253
- H = !1, C && (C = !1, I(N), N = -1), B = !0;
254
- var n = b;
255
- try {
256
- n: {
257
- for (m(e), w = o(_); 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(_) && P(_), m(e);
269
- } else P(_);
270
- w = o(_);
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, j = e[D], k = D + 1, A = e[k];
312
- if (0 > y(j, n))
313
- k < l && 0 > y(A, j) ? (e[u] = A, e[k] = n, u = k) : (e[u] = j, 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(_, t);
330
- else break;
331
- t = o(v);
332
- }
333
- }
334
- function T(e) {
335
- if (C = !1, m(e), !H)
336
- if (o(_) !== 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 q ? !0 : !(r.unstable_now() - g < h);
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 d = Date, i = d.now();
361
- r.unstable_now = function() {
362
- return d.now() - i;
363
- };
364
- }
365
- var _ = [], v = [], S = 1, w = null, b = 3, B = !1, H = !1, C = !1, q = !1, E = typeof setTimeout == "function" ? setTimeout : null, I = typeof clearTimeout == "function" ? clearTimeout : null, G = typeof setImmediate < "u" ? setImmediate : null, R = !1, N = -1, h = 5, g = -1;
366
- if (typeof G == "function")
367
- var V = function() {
368
- G(c);
369
- };
370
- else if (typeof MessageChannel < "u") {
371
- var K = new MessageChannel(), U = K.port2;
372
- K.port1.onmessage = c, V = function() {
373
- U.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
- ) : h = 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
- q = !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: S++,
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(_) === null && e === o(v) && (C ? (I(N), N = -1) : C = !0, s(T, n - u))) : (e.sortIndex = l, a(_, 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
- })(W)), W;
464
- }
465
- var J;
466
- function se() {
467
- return J || (J = 1, process.env.NODE_ENV === "production" ? M.exports = le() : M.exports = ae()), M.exports;
468
- }
469
- var $ = se();
470
- const F = Symbol(), oe = Symbol(), ie = typeof window > "u" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent), Z = ie ? ne : te, ce = $.unstable_runWithPriority ? (r) => {
471
- try {
472
- $.unstable_runWithPriority($.unstable_NormalPriority, r);
473
- } catch (c) {
474
- if (c.message === "Not implemented.")
475
- r();
476
- else
477
- throw c;
478
- }
479
- } : (r) => r(), fe = (r) => ({ value: a, children: o }) => {
480
- const P = Q(a), y = Q(0), [m, T] = x(null);
481
- m && (m(a), T(null));
482
- const f = Q();
483
- if (!f.current) {
484
- const s = /* @__PURE__ */ new Set(), O = (d, i) => {
485
- y.current += 1;
486
- const _ = {
487
- n: y.current
488
- };
489
- i != null && i.suspense && (_.n *= -1, _.p = new Promise((v) => {
490
- T(() => (S) => {
491
- _.v = S, delete _.p, v(S);
492
- });
493
- })), s.forEach((v) => v(_)), d();
494
- };
495
- f.current = {
496
- [F]: {
497
- /* "v"alue */
498
- v: P,
499
- /* versio"n" */
500
- n: y,
501
- /* "l"isteners */
502
- l: s,
503
- /* "u"pdate */
504
- u: O
505
- }
506
- };
507
- }
508
- return Z(() => {
509
- P.current = a, y.current += 1, ce(() => {
510
- f.current[F].l.forEach((s) => {
511
- s({ n: y.current, v: a });
512
- });
513
- });
514
- }, [a]), ee(r, { value: f.current }, o);
515
- }, de = (r) => r;
516
- function ve(r) {
517
- const c = p({
518
- [F]: {
519
- /* "v"alue */
520
- v: { current: r },
521
- /* versio"n" */
522
- n: { current: -1 },
523
- /* "l"isteners */
524
- l: /* @__PURE__ */ new Set(),
525
- /* "u"pdate */
526
- u: (a) => a()
527
- }
528
- });
529
- return c[oe] = c.Provider, c.Provider = fe(c.Provider), delete c.Consumer, c;
530
- }
531
- function _e(r, c) {
532
- const a = re(r)[F];
533
- if (typeof process == "object" && process.env.NODE_ENV !== "production" && !a)
534
- throw new Error("useContextSelector requires special context");
535
- const {
536
- /* "v"alue */
537
- v: { current: o },
538
- /* versio"n" */
539
- n: { current: P },
540
- /* "l"isteners */
541
- l: y
542
- } = a, m = c(o), [T, f] = ue((s, O) => {
543
- if (!O)
544
- return [o, m];
545
- if ("p" in O)
546
- throw O.p;
547
- if (O.n === P)
548
- return Object.is(s[1], m) ? s : [o, m];
549
- try {
550
- if ("v" in O) {
551
- if (Object.is(s[0], O.v))
552
- return s;
553
- const d = c(O.v);
554
- return Object.is(s[1], d) ? s : [O.v, d];
555
- }
556
- } catch {
557
- }
558
- return [...s];
559
- }, [o, m]);
560
- return Object.is(T[1], m) || f(), Z(() => (y.add(f), () => {
561
- y.delete(f);
562
- }), [y]), T[1];
563
- }
564
- function ye(r) {
565
- return _e(r, de);
566
- }
567
- export {
568
- _e as a,
569
- ve as c,
570
- ye as u
571
- };