@cccsaurora/clue-ui 1.0.0-dev.48 → 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
@@ -1,553 +1,303 @@
1
- const defaultParts = {
1
+ const E = {
2
2
  lvlIdx: 0,
3
3
  lvl: "",
4
4
  req: [],
5
5
  groups: [],
6
6
  subgroups: []
7
- };
8
- const defaultDisabled = {
7
+ }, N = {
9
8
  groups: [],
10
9
  levels: []
11
10
  };
12
- class InvalidClassification extends Error {
11
+ class O extends Error {
13
12
  }
14
- function getLevelText(lvl, c12nDef, format, isMobile) {
15
- let text = null;
16
- if (c12nDef != null && lvl != null) {
17
- text = c12nDef.levels_map[lvl.toString()];
18
- }
19
- if (text === void 0 || text == null) {
20
- console.error(
21
- `[classificationParser] Classification level number '${lvl}' was not found in your classification definition.`
22
- );
23
- return "INVALID";
24
- }
25
- if (format === "long" && !isMobile) {
26
- return c12nDef.levels_map_stl[text];
27
- }
28
- return text;
13
+ function I(i, s, o, p) {
14
+ let u = null;
15
+ return s != null && i != null && (u = s.levels_map[i.toString()]), u === void 0 || u == null ? (console.error(
16
+ `[classificationParser] Classification level number '${i}' was not found in your classification definition.`
17
+ ), "INVALID") : o === "long" && !p ? s.levels_map_stl[u] : u;
29
18
  }
30
- function getLevelIndex(c12n, c12nDef) {
31
- let retIndex = null;
32
- const [level, unused, _x] = (c12n == null ? void 0 : c12n.split(/\/\/(.*)/)) ?? [null, null, null];
33
- const c12nLvl = level == null ? void 0 : level.toUpperCase();
34
- if (c12nDef.levels_map[c12nLvl] !== void 0) {
35
- retIndex = c12nDef.levels_map[c12nLvl];
36
- } else if (c12nDef.levels_map_lts[c12nLvl] !== void 0) {
37
- retIndex = c12nDef.levels_map[c12nDef.levels_map_lts[c12nLvl]];
38
- } else if (c12nDef.levels_aliases[c12nLvl] !== void 0) {
39
- retIndex = c12nDef.levels_map[c12nDef.levels_aliases[c12nLvl]];
40
- } else {
41
- retIndex = -1;
42
- console.error(
43
- `[classificationParser] Classification level '${level}' was not found in your classification definition.`
44
- );
45
- }
46
- if (typeof retIndex !== "number") {
47
- retIndex = parseInt(retIndex);
48
- }
49
- return [retIndex, unused];
19
+ function T(i, s) {
20
+ let o = null;
21
+ const [p, u, r] = (i == null ? void 0 : i.split(/\/\/(.*)/)) ?? [null, null, null], a = p == null ? void 0 : p.toUpperCase();
22
+ return s.levels_map[a] !== void 0 ? o = s.levels_map[a] : s.levels_map_lts[a] !== void 0 ? o = s.levels_map[s.levels_map_lts[a]] : s.levels_aliases[a] !== void 0 ? o = s.levels_map[s.levels_aliases[a]] : (o = -1, console.error(
23
+ `[classificationParser] Classification level '${p}' was not found in your classification definition.`
24
+ )), typeof o != "number" && (o = parseInt(o)), [o, u];
50
25
  }
51
- function getRequired(c12n, c12nDef, format, isMobile) {
52
- const returnSet = [];
53
- const unused = [];
54
- if (!c12n) {
55
- return [returnSet.sort(), unused];
56
- }
57
- const partSet = c12n.toUpperCase().split("/");
58
- for (const p of partSet) {
59
- if (p in c12nDef.access_req_map_lts) {
60
- returnSet.push(c12nDef.access_req_map_lts[p]);
61
- } else if (p in c12nDef.access_req_map_stl) {
62
- returnSet.push(p);
63
- } else if (p in c12nDef.access_req_aliases) {
64
- for (const a of c12nDef.access_req_aliases[p]) {
65
- returnSet.push(a);
66
- }
67
- } else {
68
- unused.push(p);
69
- }
70
- }
71
- if (format === "long" && !isMobile) {
72
- const out = [];
73
- for (const r of returnSet) {
74
- out.push(c12nDef.access_req_map_stl[r]);
75
- }
76
- return [out.sort(), unused];
77
- }
78
- return [returnSet.sort(), unused];
26
+ function $(i, s, o, p) {
27
+ const u = [], r = [];
28
+ if (!i)
29
+ return [u.sort(), r];
30
+ const a = i.toUpperCase().split("/");
31
+ for (const f of a)
32
+ if (f in s.access_req_map_lts)
33
+ u.push(s.access_req_map_lts[f]);
34
+ else if (f in s.access_req_map_stl)
35
+ u.push(f);
36
+ else if (f in s.access_req_aliases)
37
+ for (const d of s.access_req_aliases[f])
38
+ u.push(d);
39
+ else
40
+ r.push(f);
41
+ if (o === "long" && !p) {
42
+ const f = [];
43
+ for (const d of u)
44
+ f.push(s.access_req_map_stl[d]);
45
+ return [f.sort(), r];
46
+ }
47
+ return [u.sort(), r];
79
48
  }
80
- function getGroups(groupParts, c12nDef, format, isMobile, autoSelect = false) {
81
- var _a, _b, _c, _d;
82
- let g1Set = /* @__PURE__ */ new Set();
83
- let g2Set = /* @__PURE__ */ new Set();
84
- let others = /* @__PURE__ */ new Set();
85
- const groups = [];
86
- const subgroups = [];
87
- for (const grpPart of groupParts) {
88
- if (!grpPart) {
49
+ function U(i, s, o, p, u = !1) {
50
+ var l, h, e, S;
51
+ let r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
52
+ const d = [], _ = [];
53
+ for (const t of i) {
54
+ if (!t)
89
55
  continue;
90
- }
91
- const gp = grpPart.toUpperCase();
92
- if (gp.startsWith("REL ")) {
93
- const tempGroups = new Set(gp.replace("REL TO ", "").replace("REL ", "").split(","));
94
- for (let tg of tempGroups) {
95
- tg = tg.trim();
96
- for (let tsg of tg.split("/")) {
97
- tsg = tsg.trim();
98
- groups.push(tsg);
99
- }
100
- }
101
- } else {
102
- subgroups.push(gp);
103
- }
104
- }
105
- for (const g of groups) {
106
- if (g in c12nDef.groups_map_lts) {
107
- g1Set.add(c12nDef.groups_map_lts[g]);
108
- } else if (g in c12nDef.groups_map_stl) {
109
- g1Set.add(g);
110
- } else if (g in c12nDef.groups_aliases) {
111
- for (const a of c12nDef.groups_aliases[g]) {
112
- g1Set.add(a);
113
- }
114
- } else {
115
- others.add(g);
116
- }
117
- }
118
- for (const g of subgroups) {
119
- if (g in c12nDef.subgroups_map_lts) {
120
- g2Set.add(c12nDef.subgroups_map_lts[g]);
121
- } else if (g in c12nDef.subgroups_map_stl) {
122
- g2Set.add(g);
123
- } else if (g in c12nDef.subgroups_aliases) {
124
- for (const sa of c12nDef.subgroups_aliases[g]) {
125
- g2Set.add(sa);
126
- }
127
- } else if (g in c12nDef.groups_aliases) {
128
- const grps = c12nDef.groups_aliases[g];
129
- if (grps.length > 1) {
130
- console.error(`[classificationParser] Unclear use of alias ${g}`);
56
+ const m = t.toUpperCase();
57
+ if (m.startsWith("REL ")) {
58
+ const g = new Set(m.replace("REL TO ", "").replace("REL ", "").split(","));
59
+ for (let c of g) {
60
+ c = c.trim();
61
+ for (let v of c.split("/"))
62
+ v = v.trim(), d.push(v);
131
63
  }
132
- g1Set.add(grps[0]);
133
- } else {
134
- g1Set.add(g);
135
- console.error(`[classificationParser] Unknown component ${g}`);
136
- }
137
- }
138
- if (c12nDef.dynamic_groups) {
139
- for (const o of others) {
140
- g1Set.add(o);
141
- }
142
- others = /* @__PURE__ */ new Set();
143
- }
144
- for (const subgroup of g2Set) {
145
- const required = (_b = (_a = c12nDef.params_map) == null ? void 0 : _a[subgroup]) == null ? void 0 : _b.require_group;
146
- if (!!required) {
147
- g1Set.add(required);
148
- }
149
- }
150
- for (const subgroup of g2Set) {
151
- const limitedToGroup = (_d = (_c = c12nDef.params_map) == null ? void 0 : _c[subgroup]) == null ? void 0 : _d.limited_to_group;
152
- if (limitedToGroup !== null && limitedToGroup !== void 0) {
153
- if (g1Set.size > 1 || g1Set.size === 1 && !g1Set.has(limitedToGroup)) {
154
- console.error(
155
- `[classificationParser] Subgroup ${subgroup} is limited to group ${limitedToGroup} (found: ${Array.from(
156
- g1Set
157
- ).toString()})`
158
- );
159
- }
160
- }
161
- }
162
- if (!!autoSelect && !!g1Set) {
163
- g1Set = /* @__PURE__ */ new Set([...g1Set, ...c12nDef.groups_auto_select_short]);
164
- }
165
- if (!!autoSelect && !!g2Set) {
166
- g2Set = /* @__PURE__ */ new Set([...g2Set, ...c12nDef.subgroups_auto_select_short]);
64
+ } else
65
+ _.push(m);
66
+ }
67
+ for (const t of d)
68
+ if (t in s.groups_map_lts)
69
+ r.add(s.groups_map_lts[t]);
70
+ else if (t in s.groups_map_stl)
71
+ r.add(t);
72
+ else if (t in s.groups_aliases)
73
+ for (const m of s.groups_aliases[t])
74
+ r.add(m);
75
+ else
76
+ f.add(t);
77
+ for (const t of _)
78
+ if (t in s.subgroups_map_lts)
79
+ a.add(s.subgroups_map_lts[t]);
80
+ else if (t in s.subgroups_map_stl)
81
+ a.add(t);
82
+ else if (t in s.subgroups_aliases)
83
+ for (const m of s.subgroups_aliases[t])
84
+ a.add(m);
85
+ else if (t in s.groups_aliases) {
86
+ const m = s.groups_aliases[t];
87
+ m.length > 1 && console.error(`[classificationParser] Unclear use of alias ${t}`), r.add(m[0]);
88
+ } else
89
+ r.add(t), console.error(`[classificationParser] Unknown component ${t}`);
90
+ if (s.dynamic_groups) {
91
+ for (const t of f)
92
+ r.add(t);
93
+ f = /* @__PURE__ */ new Set();
94
+ }
95
+ for (const t of a) {
96
+ const m = (h = (l = s.params_map) == null ? void 0 : l[t]) == null ? void 0 : h.require_group;
97
+ m && r.add(m);
98
+ }
99
+ for (const t of a) {
100
+ const m = (S = (e = s.params_map) == null ? void 0 : e[t]) == null ? void 0 : S.limited_to_group;
101
+ m != null && (r.size > 1 || r.size === 1 && !r.has(m)) && console.error(
102
+ `[classificationParser] Subgroup ${t} is limited to group ${m} (found: ${Array.from(
103
+ r
104
+ ).toString()})`
105
+ );
167
106
  }
168
- if (format === "long" && !isMobile) {
169
- const g1Out = [];
170
- for (const gr of g1Set) {
171
- g1Out.push(gr in c12nDef.groups_map_stl ? c12nDef.groups_map_stl[gr] : gr);
172
- }
173
- const g2Out = [];
174
- for (const sgr of g2Set) {
175
- g2Out.push(c12nDef.subgroups_map_stl[sgr]);
176
- }
177
- return { groups: g1Out.sort(), subgroups: g2Out.sort(), others: Array.from(others).sort() };
107
+ if (u && r && (r = /* @__PURE__ */ new Set([...r, ...s.groups_auto_select_short])), u && a && (a = /* @__PURE__ */ new Set([...a, ...s.subgroups_auto_select_short])), o === "long" && !p) {
108
+ const t = [];
109
+ for (const g of r)
110
+ t.push(g in s.groups_map_stl ? s.groups_map_stl[g] : g);
111
+ const m = [];
112
+ for (const g of a)
113
+ m.push(s.subgroups_map_stl[g]);
114
+ return { groups: t.sort(), subgroups: m.sort(), others: Array.from(f).sort() };
178
115
  }
179
- return { groups: Array.from(g1Set).sort(), subgroups: Array.from(g2Set).sort(), others: Array.from(others).sort() };
116
+ return { groups: Array.from(r).sort(), subgroups: Array.from(a).sort(), others: Array.from(f).sort() };
180
117
  }
181
- function getParts(c12n, c12nDef, format, isMobile) {
182
- const [lvlIdx, unused] = getLevelIndex(c12n, c12nDef);
183
- const [req, unusedParts] = getRequired(unused, c12nDef, format, isMobile);
184
- const { groups, subgroups, others } = getGroups(unusedParts, c12nDef, format, isMobile);
185
- if (others.length > 0) {
186
- console.error(`[classificationParser] Unparsable classification parts: ${others.join(",")}`);
187
- }
188
- return {
189
- lvlIdx,
190
- lvl: getLevelText(lvlIdx, c12nDef, format, isMobile),
191
- req,
192
- groups,
193
- subgroups
118
+ function b(i, s, o, p) {
119
+ const [u, r] = T(i, s), [a, f] = $(r, s, o, p), { groups: d, subgroups: _, others: l } = U(f, s, o, p);
120
+ return l.length > 0 && console.error(`[classificationParser] Unparsable classification parts: ${l.join(",")}`), {
121
+ lvlIdx: u,
122
+ lvl: I(u, s, o, p),
123
+ req: a,
124
+ groups: d,
125
+ subgroups: _
194
126
  };
195
127
  }
196
- function canSeeRequired(user_req, req) {
197
- if (req.length <= 0) return true;
198
- const userSet = new Set(user_req);
199
- const reqSet = new Set(req);
200
- for (const elem of reqSet) {
201
- if (!userSet.has(elem)) {
202
- return false;
203
- }
204
- }
205
- return true;
128
+ function z(i, s) {
129
+ if (s.length <= 0) return !0;
130
+ const o = new Set(i), p = new Set(s);
131
+ for (const u of p)
132
+ if (!o.has(u))
133
+ return !1;
134
+ return !0;
206
135
  }
207
- function canSeeGroups(user_groups, groups) {
208
- if (groups.length === 0) return true;
209
- const groupSet = new Set(groups);
210
- const userSet = new Set(user_groups);
211
- for (const elem of groupSet) {
212
- if (userSet.has(elem)) {
213
- return true;
214
- }
215
- }
216
- return false;
136
+ function R(i, s) {
137
+ if (s.length === 0) return !0;
138
+ const o = new Set(s), p = new Set(i);
139
+ for (const u of o)
140
+ if (p.has(u))
141
+ return !0;
142
+ return !1;
217
143
  }
218
- function normalizedClassification(parts, c12nDef, format, isMobile, skipAutoSelect = false) {
219
- var _a, _b, _c, _d, _e, _f;
220
- if (!c12nDef.enforce || !!c12nDef.invalid_mode) return c12nDef.UNRESTRICTED;
221
- const longFormat = format === "short" || !!isMobile ? false : true;
222
- const groupDelim = !!longFormat ? "REL TO " : "REL ";
223
- const { lvlIdx, lvl } = parts;
224
- let { groups, subgroups, req } = parts;
225
- req = req.map((r) => {
226
- if (!!longFormat) {
227
- return c12nDef.access_req_map_stl[r] || r;
228
- }
229
- return c12nDef.access_req_map_lts[r] || r;
230
- });
231
- groups = groups.map((g) => {
232
- if (!!longFormat) {
233
- return c12nDef.groups_map_stl[g] || g;
234
- }
235
- return c12nDef.groups_map_lts[g] || g;
236
- });
237
- subgroups = subgroups.map((g) => {
238
- if (!!longFormat) {
239
- return c12nDef.subgroups_map_stl[g] || g;
240
- }
241
- return c12nDef.subgroups_map_lts[g] || g;
242
- });
243
- let out = lvl;
244
- let requiredLvlIdx = 0;
245
- for (const r of req) {
246
- const rl = !!((_b = (_a = c12nDef.params_map) == null ? void 0 : _a[r]) == null ? void 0 : _b.require_lvl) ? c12nDef.params_map[r].require_lvl : 0;
247
- requiredLvlIdx = Math.max(requiredLvlIdx, rl);
248
- }
249
- out = getLevelText(Math.max(lvlIdx, requiredLvlIdx), c12nDef, format, isMobile);
250
- const reqGrp = /* @__PURE__ */ new Set();
251
- for (const r of req) {
252
- if (!!((_c = c12nDef.params_map[r]) == null ? void 0 : _c.is_required_group)) {
253
- reqGrp.add(r);
254
- }
255
- }
256
- const tempReq = Array.from(new Set([...req].filter((x) => !reqGrp.has(x))));
257
- if (tempReq.length > 0) {
258
- out += "//" + tempReq.sort().join("/");
259
- }
260
- if (reqGrp.size > 0) {
261
- out += "//" + Array.from(reqGrp).sort().join("/");
262
- }
263
- let tempSubGroups = [...subgroups];
264
- if (!!longFormat) {
265
- if (subgroups.length > 0 && c12nDef.subgroups_auto_select.length > 0 && !skipAutoSelect) {
266
- tempSubGroups = Array.from(/* @__PURE__ */ new Set([...subgroups, ...c12nDef.subgroups_auto_select])).sort();
267
- }
268
- } else {
269
- if (subgroups.length > 0 && c12nDef.subgroups_auto_select_short.length > 0 && !skipAutoSelect) {
270
- tempSubGroups = Array.from(/* @__PURE__ */ new Set([...subgroups, ...c12nDef.subgroups_auto_select_short])).sort();
271
- }
272
- }
273
- let tempGroups = [];
274
- for (const sg of tempSubGroups) {
275
- const rGrp = (_d = c12nDef.params_map[sg]) == null ? void 0 : _d.require_group;
276
- if (!!rGrp) {
277
- tempGroups.push(rGrp);
278
- }
279
- const limToGrp = (_e = c12nDef.params_map[sg]) == null ? void 0 : _e.limited_to_group;
280
- if (!!limToGrp) {
281
- if (limToGrp in tempGroups) {
282
- tempGroups = [limToGrp];
283
- } else {
284
- tempGroups = [];
285
- }
286
- }
287
- }
288
- for (const g of tempGroups) {
289
- if (!!longFormat) {
290
- groups.push(c12nDef.groups_map_stl[g] || g);
291
- } else {
292
- groups.push(c12nDef.groups_map_lts[g] || g);
293
- }
294
- }
295
- groups = Array.from(new Set(groups));
296
- if (!!longFormat) {
297
- if (groups.length > 0 && c12nDef.groups_auto_select.length > 0 && !skipAutoSelect) {
298
- groups = Array.from(/* @__PURE__ */ new Set([...groups, ...c12nDef.groups_auto_select])).sort();
299
- }
300
- } else {
301
- if (groups.length > 0 && c12nDef.groups_auto_select_short.length > 0 && !skipAutoSelect) {
302
- groups = Array.from(/* @__PURE__ */ new Set([...groups, ...c12nDef.groups_auto_select_short])).sort();
303
- }
304
- }
305
- if (groups.length > 0) {
306
- groups = groups.sort();
307
- out += reqGrp.size > 0 ? "/" : "//";
308
- if (groups.length === 1) {
309
- const grp = groups[0];
310
- const displayName = ((_f = c12nDef.params_map[grp]) == null ? void 0 : _f.solitary_display_name) || grp;
311
- out += displayName !== grp ? displayName : groupDelim + grp;
144
+ function x(i, s, o, p, u = !1) {
145
+ var v, w, y, L, A, C;
146
+ if (!s.enforce || s.invalid_mode) return s.UNRESTRICTED;
147
+ const r = !(o === "short" || p), a = r ? "REL TO " : "REL ", { lvlIdx: f, lvl: d } = i;
148
+ let { groups: _, subgroups: l, req: h } = i;
149
+ h = h.map((n) => r ? s.access_req_map_stl[n] || n : s.access_req_map_lts[n] || n), _ = _.map((n) => r ? s.groups_map_stl[n] || n : s.groups_map_lts[n] || n), l = l.map((n) => r ? s.subgroups_map_stl[n] || n : s.subgroups_map_lts[n] || n);
150
+ let e = d, S = 0;
151
+ for (const n of h) {
152
+ const q = (w = (v = s.params_map) == null ? void 0 : v[n]) != null && w.require_lvl ? s.params_map[n].require_lvl : 0;
153
+ S = Math.max(S, q);
154
+ }
155
+ e = I(Math.max(f, S), s, o, p);
156
+ const t = /* @__PURE__ */ new Set();
157
+ for (const n of h)
158
+ (y = s.params_map[n]) != null && y.is_required_group && t.add(n);
159
+ const m = Array.from(new Set([...h].filter((n) => !t.has(n))));
160
+ m.length > 0 && (e += "//" + m.sort().join("/")), t.size > 0 && (e += "//" + Array.from(t).sort().join("/"));
161
+ let g = [...l];
162
+ r ? l.length > 0 && s.subgroups_auto_select.length > 0 && !u && (g = Array.from(/* @__PURE__ */ new Set([...l, ...s.subgroups_auto_select])).sort()) : l.length > 0 && s.subgroups_auto_select_short.length > 0 && !u && (g = Array.from(/* @__PURE__ */ new Set([...l, ...s.subgroups_auto_select_short])).sort());
163
+ let c = [];
164
+ for (const n of g) {
165
+ const q = (L = s.params_map[n]) == null ? void 0 : L.require_group;
166
+ q && c.push(q);
167
+ const P = (A = s.params_map[n]) == null ? void 0 : A.limited_to_group;
168
+ P && (P in c ? c = [P] : c = []);
169
+ }
170
+ for (const n of c)
171
+ r ? _.push(s.groups_map_stl[n] || n) : _.push(s.groups_map_lts[n] || n);
172
+ if (_ = Array.from(new Set(_)), r ? _.length > 0 && s.groups_auto_select.length > 0 && !u && (_ = Array.from(/* @__PURE__ */ new Set([..._, ...s.groups_auto_select])).sort()) : _.length > 0 && s.groups_auto_select_short.length > 0 && !u && (_ = Array.from(/* @__PURE__ */ new Set([..._, ...s.groups_auto_select_short])).sort()), _.length > 0)
173
+ if (_ = _.sort(), e += t.size > 0 ? "/" : "//", _.length === 1) {
174
+ const n = _[0], q = ((C = s.params_map[n]) == null ? void 0 : C.solitary_display_name) || n;
175
+ e += q !== n ? q : a + n;
312
176
  } else {
313
- if (!longFormat) {
314
- for (const [alias, values] of Object.entries(c12nDef.groups_aliases)) {
315
- if (values.length > 1) {
316
- if (JSON.stringify(values.sort()) === JSON.stringify(groups)) {
317
- groups = [alias];
318
- }
319
- }
320
- }
321
- }
322
- out += groupDelim + groups.sort().join(", ");
177
+ if (!r)
178
+ for (const [n, q] of Object.entries(s.groups_aliases))
179
+ q.length > 1 && JSON.stringify(q.sort()) === JSON.stringify(_) && (_ = [n]);
180
+ e += a + _.sort().join(", ");
323
181
  }
324
- }
325
- if (tempSubGroups.length > 0) {
326
- if (groups.length > 0 || reqGrp.size > 0) {
327
- out += "/";
328
- } else {
329
- out += "//";
330
- }
331
- out += tempSubGroups.sort().join("/");
332
- }
333
- return out;
182
+ return g.length > 0 && (_.length > 0 || t.size > 0 ? e += "/" : e += "//", e += g.sort().join("/")), e;
334
183
  }
335
- function levelList(c12nDef) {
336
- const out = [];
337
- for (const i in c12nDef.levels_map) {
338
- if (!isNaN(parseInt(i))) {
339
- out.push(c12nDef.levels_map[i]);
340
- }
341
- }
342
- return out;
184
+ function j(i) {
185
+ const s = [];
186
+ for (const o in i.levels_map)
187
+ isNaN(parseInt(o)) || s.push(i.levels_map[o]);
188
+ return s;
343
189
  }
344
- const defaultClassificationValidator = {
345
- disabled: defaultDisabled,
346
- parts: defaultParts
190
+ const F = {
191
+ disabled: N,
192
+ parts: E
347
193
  };
348
- function applyClassificationRules(parts, c12nDef, format, isMobile, userClassification = false) {
349
- const longFormat = format === "short" || !!isMobile ? false : true;
350
- const requireLvl = {};
351
- const limitedToGroup = {};
352
- const requireGroup = {};
353
- const partsToCheck = ["req", "groups", "subgroups"];
354
- const retParts = { ...parts };
355
- const disabledList = {
194
+ function J(i, s, o, p, u = !1) {
195
+ const r = !(o === "short" || p), a = {}, f = {}, d = {}, _ = ["req", "groups", "subgroups"], l = { ...i }, h = {
356
196
  levels: [],
357
197
  groups: []
358
198
  };
359
- for (const item in c12nDef.params_map) {
360
- if ({}.hasOwnProperty.call(c12nDef.params_map, item)) {
361
- const data = c12nDef.params_map[item];
362
- if ("require_lvl" in data) {
363
- requireLvl[item] = data.require_lvl;
364
- }
365
- if ("limited_to_group" in data) {
366
- limitedToGroup[item] = data.limited_to_group;
367
- }
368
- if ("require_group" in data) {
369
- requireGroup[item] = data.require_group;
370
- }
371
- }
372
- }
373
- for (const partName in partsToCheck) {
374
- if ({}.hasOwnProperty.call(partsToCheck, partName)) {
375
- const part = retParts[partsToCheck[partName]];
376
- for (const value of part) {
377
- let triggerAutoSelect = false;
378
- if (value) {
379
- if (value in requireLvl) {
380
- if (retParts.lvlIdx < requireLvl[value]) {
381
- retParts.lvlIdx = requireLvl[value];
382
- retParts.lvl = getLevelText(requireLvl[value], c12nDef, format, isMobile);
383
- }
384
- const levels = levelList(c12nDef);
385
- for (const l of levels) {
386
- if (c12nDef.levels_map[l] < requireLvl[value]) {
387
- disabledList.levels.push(l);
388
- }
389
- }
199
+ for (const e in s.params_map)
200
+ if ({}.hasOwnProperty.call(s.params_map, e)) {
201
+ const S = s.params_map[e];
202
+ "require_lvl" in S && (a[e] = S.require_lvl), "limited_to_group" in S && (f[e] = S.limited_to_group), "require_group" in S && (d[e] = S.require_group);
203
+ }
204
+ for (const e in _)
205
+ if ({}.hasOwnProperty.call(_, e)) {
206
+ const S = l[_[e]];
207
+ for (const t of S) {
208
+ let m = !1;
209
+ if (t) {
210
+ if (t in a) {
211
+ l.lvlIdx < a[t] && (l.lvlIdx = a[t], l.lvl = I(a[t], s, o, p));
212
+ const g = j(s);
213
+ for (const c of g)
214
+ s.levels_map[c] < a[t] && h.levels.push(c);
390
215
  }
391
- if (value in requireGroup) {
392
- const valueLong = c12nDef.groups_map_stl[requireGroup[value]] || requireGroup[value];
393
- const valueShort = c12nDef.groups_map_lts[requireGroup[value]] || requireGroup[value];
394
- if (!retParts.groups.includes(valueLong) && !retParts.groups.includes(valueShort)) {
395
- retParts.groups.push(valueShort);
396
- for (const group of c12nDef.groups_auto_select) {
397
- const gLong = c12nDef.groups_map_stl[group] || group;
398
- const gShort = c12nDef.groups_map_lts[group] || group;
399
- if (!retParts.groups.includes(gShort) && !retParts.groups.includes(gLong)) {
400
- retParts.groups.push(group);
401
- }
216
+ if (t in d) {
217
+ const g = s.groups_map_stl[d[t]] || d[t], c = s.groups_map_lts[d[t]] || d[t];
218
+ if (!l.groups.includes(g) && !l.groups.includes(c)) {
219
+ l.groups.push(c);
220
+ for (const v of s.groups_auto_select) {
221
+ const w = s.groups_map_stl[v] || v, y = s.groups_map_lts[v] || v;
222
+ !l.groups.includes(y) && !l.groups.includes(w) && l.groups.push(v);
402
223
  }
403
224
  }
404
225
  }
405
- if (value in limitedToGroup) {
406
- for (const gShort in c12nDef.groups_map_stl) {
407
- const lgShort = c12nDef.groups_map_lts[limitedToGroup[value]] || limitedToGroup[value];
408
- if (gShort !== lgShort) {
409
- const gLong = c12nDef.groups_map_stl[gShort];
410
- disabledList.groups.push(gShort);
411
- if (retParts.groups.includes(gShort)) {
412
- retParts.groups.splice(retParts.groups.indexOf(gShort), 1);
413
- } else if (retParts.groups.includes(gLong)) {
414
- retParts.groups.splice(retParts.groups.indexOf(gLong), 1);
415
- }
226
+ if (t in f)
227
+ for (const g in s.groups_map_stl) {
228
+ const c = s.groups_map_lts[f[t]] || f[t];
229
+ if (g !== c) {
230
+ const v = s.groups_map_stl[g];
231
+ h.groups.push(g), l.groups.includes(g) ? l.groups.splice(l.groups.indexOf(g), 1) : l.groups.includes(v) && l.groups.splice(l.groups.indexOf(v), 1);
416
232
  }
417
233
  }
418
- }
419
- if (!userClassification && partsToCheck[partName] === "groups") {
420
- triggerAutoSelect = true;
421
- }
234
+ !u && _[e] === "groups" && (m = !0);
422
235
  }
423
- if (triggerAutoSelect) {
424
- for (const group of c12nDef.groups_auto_select) {
425
- const gLong = c12nDef.groups_map_stl[group] || group;
426
- const gShort = c12nDef.groups_map_lts[group] || group;
427
- if (!retParts.groups.includes(gLong) && !retParts.groups.includes(gShort)) {
428
- retParts.groups.push(group);
429
- }
236
+ if (m)
237
+ for (const g of s.groups_auto_select) {
238
+ const c = s.groups_map_stl[g] || g, v = s.groups_map_lts[g] || g;
239
+ !l.groups.includes(c) && !l.groups.includes(v) && l.groups.push(g);
430
240
  }
431
- }
432
241
  }
433
242
  }
434
- }
435
- retParts.req = retParts.req.sort().map((r) => {
436
- if (!!longFormat) {
437
- return c12nDef.access_req_map_stl[r] || r;
438
- }
439
- return c12nDef.access_req_map_lts[r] || r;
440
- });
441
- retParts.groups = retParts.groups.sort().map((g) => {
442
- if (!!longFormat) {
443
- return c12nDef.groups_map_stl[g] || g;
444
- }
445
- return c12nDef.groups_map_lts[g] || g;
446
- });
447
- retParts.subgroups = retParts.subgroups.sort().map((sg) => {
448
- if (!!longFormat) {
449
- return c12nDef.subgroups_map_stl[sg] || sg;
450
- }
451
- return c12nDef.subgroups_map_lts[sg] || sg;
452
- });
453
- disabledList.groups = disabledList.groups.sort().map((g) => {
454
- if (!!longFormat) {
455
- return c12nDef.groups_map_stl[g] || g;
456
- }
457
- return c12nDef.groups_map_lts[g] || g;
458
- });
459
- disabledList.levels = disabledList.levels.sort().map((l) => {
460
- if (!!longFormat) {
461
- return c12nDef.levels_map_stl[l] || l;
462
- }
463
- return c12nDef.levels_map_lts[l] || l;
464
- });
465
- if (!!longFormat) {
466
- retParts.lvl = c12nDef.levels_map_stl[retParts.lvl] || retParts.lvl;
467
- } else {
468
- retParts.lvl = c12nDef.levels_map_lts[retParts.lvl] || retParts.lvl;
469
- }
470
- return {
471
- disabled: disabledList,
472
- parts: retParts
243
+ return l.req = l.req.sort().map((e) => r ? s.access_req_map_stl[e] || e : s.access_req_map_lts[e] || e), l.groups = l.groups.sort().map((e) => r ? s.groups_map_stl[e] || e : s.groups_map_lts[e] || e), l.subgroups = l.subgroups.sort().map((e) => r ? s.subgroups_map_stl[e] || e : s.subgroups_map_lts[e] || e), h.groups = h.groups.sort().map((e) => r ? s.groups_map_stl[e] || e : s.groups_map_lts[e] || e), h.levels = h.levels.sort().map((e) => r ? s.levels_map_stl[e] || e : s.levels_map_lts[e] || e), r ? l.lvl = s.levels_map_stl[l.lvl] || l.lvl : l.lvl = s.levels_map_lts[l.lvl] || l.lvl, {
244
+ disabled: h,
245
+ parts: l
473
246
  };
474
247
  }
475
- function getMaxGroups(grps1, grps2) {
476
- let groups = /* @__PURE__ */ new Set();
477
- if (grps1.length > 0 && grps2.length > 0) {
478
- const g2 = new Set(grps2);
479
- groups = new Set([...grps1].filter((x) => g2.has(x)));
480
- } else {
481
- groups = /* @__PURE__ */ new Set([...grps1, ...grps2]);
482
- }
483
- if (grps1.length > 0 && grps2.length > 0 && groups.size <= 0) {
484
- groups = /* @__PURE__ */ new Set([...grps1, ...grps2]);
485
- console.error(
486
- `[classificationParser] Could not find any intersection between the groups. ${grps1.toString()} & ${grps2.toString()}`
487
- );
488
- }
489
- return Array.from(groups);
248
+ function G(i, s) {
249
+ let o = /* @__PURE__ */ new Set();
250
+ if (i.length > 0 && s.length > 0) {
251
+ const p = new Set(s);
252
+ o = new Set([...i].filter((u) => p.has(u)));
253
+ } else
254
+ o = /* @__PURE__ */ new Set([...i, ...s]);
255
+ return i.length > 0 && s.length > 0 && o.size <= 0 && (o = /* @__PURE__ */ new Set([...i, ...s]), console.error(
256
+ `[classificationParser] Could not find any intersection between the groups. ${i.toString()} & ${s.toString()}`
257
+ )), Array.from(o);
490
258
  }
491
- function getMaxClassification(c12n_1, c12n_2, c12nDef, format, isMobile) {
492
- if (!c12nDef.enforce || !!c12nDef.invalid_mode) {
493
- const noEnforceParts = getParts(c12nDef.UNRESTRICTED, c12nDef, format, isMobile);
494
- return normalizedClassification(noEnforceParts, c12nDef, format, isMobile);
495
- }
496
- const c12n1Parts = getParts(c12n_1, c12nDef, format, isMobile);
497
- const c12n2Parts = getParts(c12n_2, c12nDef, format, isMobile);
498
- if (!c12n_1) {
499
- return normalizedClassification(c12n2Parts, c12nDef, format, isMobile);
500
- }
501
- if (!c12n_2) {
502
- return normalizedClassification(c12n1Parts, c12nDef, format, isMobile);
503
- }
504
- const req = Array.from(/* @__PURE__ */ new Set([...c12n1Parts.req, ...c12n2Parts.req]));
505
- const groups = getMaxGroups(c12n1Parts.groups, c12n2Parts.groups);
506
- const subgroups = getMaxGroups(c12n1Parts.subgroups, c12n2Parts.subgroups);
507
- const lvlIdx = Math.max(c12n1Parts.lvlIdx, c12n2Parts.lvlIdx);
508
- const out = {
509
- lvlIdx,
510
- lvl: getLevelText(lvlIdx, c12nDef, format, isMobile),
511
- req,
512
- groups,
513
- subgroups
259
+ function V(i, s, o, p, u) {
260
+ if (!o.enforce || o.invalid_mode) {
261
+ const e = b(o.UNRESTRICTED, o, p, u);
262
+ return x(e, o, p, u);
263
+ }
264
+ const r = b(i, o, p, u), a = b(s, o, p, u);
265
+ if (!i)
266
+ return x(a, o, p, u);
267
+ if (!s)
268
+ return x(r, o, p, u);
269
+ const f = Array.from(/* @__PURE__ */ new Set([...r.req, ...a.req])), d = G(r.groups, a.groups), _ = G(r.subgroups, a.subgroups), l = Math.max(r.lvlIdx, a.lvlIdx), h = {
270
+ lvlIdx: l,
271
+ lvl: I(l, o, p, u),
272
+ req: f,
273
+ groups: d,
274
+ subgroups: _
514
275
  };
515
- return normalizedClassification(out, c12nDef, format, isMobile);
276
+ return x(h, o, p, u);
516
277
  }
517
- function isAccessible(user_c12n, c12n, c12nDef, enforce = false, ignoreInvalid = true) {
518
- if (!!c12nDef.invalid_mode) return false;
519
- if (!enforce) return true;
520
- if (!c12n) return true;
278
+ function W(i, s, o, p = !1, u = !0) {
279
+ if (o.invalid_mode) return !1;
280
+ if (!p || !s) return !0;
521
281
  try {
522
- const userParts = getParts(user_c12n, c12nDef, "long", false);
523
- const parts = getParts(c12n, c12nDef, "long", false);
524
- if (Number(userParts.lvlIdx) >= Number(parts.lvlIdx)) {
525
- if (!canSeeRequired(userParts.req, parts.req)) return false;
526
- if (!canSeeGroups(userParts.groups, parts.groups)) return false;
527
- if (!canSeeGroups(userParts.subgroups, parts.subgroups)) return false;
528
- return true;
529
- }
530
- return false;
531
- } catch (e) {
532
- if (e instanceof InvalidClassification) {
533
- if (!!ignoreInvalid) {
534
- return false;
535
- }
536
- }
537
- throw e;
282
+ const r = b(i, o, "long", !1), a = b(s, o, "long", !1);
283
+ return Number(r.lvlIdx) >= Number(a.lvlIdx) ? !(!z(r.req, a.req) || !R(r.groups, a.groups) || !R(r.subgroups, a.subgroups)) : !1;
284
+ } catch (r) {
285
+ if (r instanceof O && u)
286
+ return !1;
287
+ throw r;
538
288
  }
539
289
  }
540
290
  export {
541
- InvalidClassification,
542
- applyClassificationRules,
543
- canSeeGroups,
544
- canSeeRequired,
545
- defaultClassificationValidator,
546
- defaultDisabled,
547
- defaultParts,
548
- getLevelText,
549
- getMaxClassification,
550
- getParts,
551
- isAccessible,
552
- normalizedClassification
291
+ O as InvalidClassification,
292
+ J as applyClassificationRules,
293
+ R as canSeeGroups,
294
+ z as canSeeRequired,
295
+ F as defaultClassificationValidator,
296
+ N as defaultDisabled,
297
+ E as defaultParts,
298
+ I as getLevelText,
299
+ V as getMaxClassification,
300
+ b as getParts,
301
+ W as isAccessible,
302
+ x as normalizedClassification
553
303
  };