@luzmo/analytics-components-kit 1.0.1-alpha.87 → 1.0.1-alpha.89

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 (203) hide show
  1. package/angular/components/display-settings-binning.component.ts +2 -2
  2. package/angular/components/display-settings-datetime.component.ts +2 -2
  3. package/angular/components/display-settings-grand-totals.component.ts +2 -2
  4. package/angular/components/display-settings-numeric.component.ts +2 -2
  5. package/angular/components/display-settings.component.ts +3 -3
  6. package/angular/components/draggable-data-item/index.ts +1 -0
  7. package/angular/components/draggable-data-item/types.ts +40 -0
  8. package/angular/components/draggable-data-item-level/index.ts +1 -0
  9. package/angular/components/draggable-data-item-level/types.ts +15 -0
  10. package/angular/components/draggable-data-item-level.component.ts +4 -10
  11. package/angular/components/draggable-data-item.component.ts +4 -10
  12. package/angular/components/droppable-slot/index.ts +1 -0
  13. package/angular/components/droppable-slot/types.ts +16 -0
  14. package/angular/components/droppable-slot.component.ts +5 -3
  15. package/angular/components/slot-menu/index.ts +1 -0
  16. package/angular/components/slot-menu/types.ts +31 -0
  17. package/angular/components/slot-menu-list.component.ts +2 -2
  18. package/angular/components/slot-menu.component.ts +3 -3
  19. package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
  20. package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
  21. package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
  22. package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
  23. package/angular/esm/components/display-settings.component.d.ts +3 -3
  24. package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
  25. package/angular/esm/components/draggable-data-item/index.js +1 -0
  26. package/angular/esm/components/draggable-data-item/types.d.ts +22 -0
  27. package/angular/esm/components/draggable-data-item/types.js +1 -0
  28. package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
  29. package/angular/esm/components/draggable-data-item-level/index.js +1 -0
  30. package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
  31. package/angular/esm/components/draggable-data-item-level/types.js +1 -0
  32. package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
  33. package/angular/esm/components/draggable-data-item-level.component.js +2 -17
  34. package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
  35. package/angular/esm/components/draggable-data-item.component.js +2 -17
  36. package/angular/esm/components/droppable-slot/index.d.ts +1 -0
  37. package/angular/esm/components/droppable-slot/index.js +1 -0
  38. package/angular/esm/components/droppable-slot/types.d.ts +9 -0
  39. package/angular/esm/components/droppable-slot/types.js +1 -0
  40. package/angular/esm/components/droppable-slot.component.d.ts +5 -4
  41. package/angular/esm/components/droppable-slot.component.js +7 -2
  42. package/angular/esm/components/slot-menu/index.d.ts +1 -0
  43. package/angular/esm/components/slot-menu/index.js +1 -0
  44. package/angular/esm/components/slot-menu/types.d.ts +25 -0
  45. package/angular/esm/components/slot-menu/types.js +1 -0
  46. package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
  47. package/angular/esm/components/slot-menu.component.d.ts +3 -3
  48. package/angular/esm/types.d.ts +9 -3
  49. package/angular/tsconfig.json +3 -0
  50. package/angular/types.ts +24 -3
  51. package/angular/utils/base/base.d.ts +16 -0
  52. package/angular/utils/base/focus-visible.d.ts +29 -0
  53. package/angular/utils/base/focusable.d.ts +58 -0
  54. package/angular/utils/base/index.d.ts +4 -0
  55. package/angular/utils/base/sized-mixin.d.ts +17 -0
  56. package/angular/utils/color/color-palettes.d.ts +17 -0
  57. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  58. package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  59. package/angular/utils/data-broker/index.d.ts +191 -0
  60. package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
  61. package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  62. package/angular/utils/drag/draggable.d.ts +13 -0
  63. package/angular/utils/filters/expressions.d.ts +15 -0
  64. package/angular/utils/filters/index.d.ts +1 -0
  65. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  66. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  67. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  68. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  69. package/angular/utils/formatter/formats/da.d.ts +20 -0
  70. package/angular/utils/formatter/formats/de.d.ts +21 -0
  71. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  72. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  73. package/angular/utils/formatter/formats/en.d.ts +1 -0
  74. package/angular/utils/formatter/formats/es.d.ts +54 -0
  75. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  76. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  77. package/angular/utils/formatter/formats/he.d.ts +20 -0
  78. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  79. package/angular/utils/formatter/formats/it.d.ts +54 -0
  80. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  81. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  82. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  83. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  84. package/angular/utils/formatter/formats/no.d.ts +21 -0
  85. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  86. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  87. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  88. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  89. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  90. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  91. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  92. package/angular/utils/formatter/formatter.d.ts +9 -0
  93. package/angular/utils/formatter/localize.d.ts +3 -0
  94. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  95. package/angular/utils/get-css-variable.d.ts +1 -0
  96. package/angular/utils/index.d.ts +7 -0
  97. package/angular/utils/localize/set-locale.d.ts +7 -0
  98. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  99. package/angular/utils/store/slot-context.d.ts +4 -0
  100. package/angular/utils/store/slot-store.d.ts +39 -0
  101. package/angular/utils/switch-item/index.d.ts +14 -0
  102. package/angular/utils/themes/bliss.d.ts +43 -0
  103. package/angular/utils/themes/classic-dark.d.ts +34 -0
  104. package/angular/utils/themes/classic.d.ts +43 -0
  105. package/angular/utils/themes/default-dark.d.ts +46 -0
  106. package/angular/utils/themes/default.d.ts +46 -0
  107. package/angular/utils/themes/index.d.ts +3 -0
  108. package/angular/utils/themes/orion.d.ts +44 -0
  109. package/angular/utils/themes/pinky.d.ts +42 -0
  110. package/angular/utils/themes/radiant.d.ts +42 -0
  111. package/angular/utils/themes/royale.d.ts +36 -0
  112. package/angular/utils/themes/seasonal.d.ts +43 -0
  113. package/angular/utils/themes/urban.d.ts +44 -0
  114. package/angular/utils/themes/vivid.d.ts +42 -0
  115. package/angular/utils/time/formats.const.d.ts +4 -0
  116. package/angular/utils/time/periods.const.d.ts +15 -0
  117. package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  118. package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  119. package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  120. package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  121. package/angular/utils/types/type-check.d.ts +7 -0
  122. package/components/ai-chat-message-assistant/index.cjs +1 -1
  123. package/components/ai-chat-message-assistant/index.js +0 -1
  124. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  125. package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
  126. package/components/dataset-selector-list/index.cjs +1 -1
  127. package/components/dataset-selector-list/index.js +1 -1
  128. package/components/display-settings/display-settings.d.ts +4 -2
  129. package/components/display-settings/index.cjs +1 -1
  130. package/components/display-settings/index.js +1 -1
  131. package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
  132. package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
  133. package/components/display-settings-datetime/index.cjs +1 -1
  134. package/components/display-settings-datetime/index.js +4 -4
  135. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
  136. package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
  137. package/components/display-settings-numeric/index.cjs +10 -10
  138. package/components/display-settings-numeric/index.js +5 -5
  139. package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
  140. package/components/draggable-data-item/index.cjs +16 -22
  141. package/components/draggable-data-item/index.d.ts +1 -0
  142. package/components/draggable-data-item/index.js +78 -85
  143. package/components/draggable-data-item/types.d.ts +22 -0
  144. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
  145. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
  146. package/components/draggable-data-item-level/index.cjs +13 -13
  147. package/components/draggable-data-item-level/index.js +84 -102
  148. package/components/draggable-data-item-level/types.d.ts +12 -0
  149. package/components/droppable-slot/droppable-slot.d.ts +4 -2
  150. package/components/droppable-slot/index.cjs +13 -13
  151. package/components/droppable-slot/index.d.ts +1 -0
  152. package/components/droppable-slot/index.js +198 -199
  153. package/components/droppable-slot/types.d.ts +9 -0
  154. package/components/{en-CtCctD2c.js → en-D3ihEGXg.js} +67 -67
  155. package/components/{en--a5SfjnM.cjs → en-DZcn_iz_.cjs} +1 -1
  156. package/components/{en-GB-CXVKFWyH.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  157. package/components/{en-GB-CbNfyZMo.js → en-GB-ialeqj_z.js} +1 -1
  158. package/components/filter-data-item-picker/index.cjs +1 -1
  159. package/components/filter-data-item-picker/index.js +1 -1
  160. package/components/filter-item/index.cjs +1 -1
  161. package/components/filter-item/index.js +8 -8
  162. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  163. package/components/filter-value-picker-hierarchy/index.js +1 -1
  164. package/components/filter-value-picker-numeric/index.cjs +1 -1
  165. package/components/filter-value-picker-numeric/index.js +1 -1
  166. package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-COd1d84B.cjs} +3 -3
  167. package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-CdwF98oh.js} +31 -31
  168. package/components/grid/index.cjs +1 -7
  169. package/components/grid/index.js +0 -7
  170. package/components/{index-BUal0r_D.cjs → index-BekTY3Em.cjs} +1 -1
  171. package/components/index-CFL6gmIu.cjs +20 -0
  172. package/components/{index-3WsfvkZF.js → index-CqKpf0B8.js} +1 -1
  173. package/components/{index-BGb_wRRW.js → index-DNPULp4A.js} +177 -188
  174. package/components/index.cjs +1 -1
  175. package/components/index.js +26 -24
  176. package/components/slot-contents-picker/index.cjs +1 -1
  177. package/components/slot-contents-picker/index.js +2 -2
  178. package/components/slot-menu/index.cjs +1 -1
  179. package/components/slot-menu/index.d.ts +1 -0
  180. package/components/slot-menu/index.js +64 -69
  181. package/components/slot-menu/slot-menu.d.ts +7 -6
  182. package/components/slot-menu/types.d.ts +25 -0
  183. package/components/slot-menu-list/index.cjs +1 -1
  184. package/components/slot-menu-list/index.js +2 -2
  185. package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
  186. package/components/utils.cjs +1 -1
  187. package/components/utils.js +129 -62
  188. package/custom-elements.json +123 -126
  189. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
  190. package/package.json +1 -1
  191. package/types.d.ts +9 -3
  192. package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  193. package/utils/data-broker/index.d.ts +69 -66
  194. package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
  195. package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  196. package/utils/index.d.ts +2 -0
  197. package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  198. package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  199. package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  200. package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  201. package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
  202. package/components/index-D1Y5TRsH.cjs +0 -20
  203. package/utils/types/column.types.d.ts +0 -57
@@ -0,0 +1,42 @@
1
+ export declare const pinkyTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ };
@@ -0,0 +1,42 @@
1
+ export declare const radiantTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ };
@@ -0,0 +1,36 @@
1
+ export declare const royaleTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-radius': string;
23
+ };
24
+ margins: number[];
25
+ mainColor: string;
26
+ axis: {};
27
+ legend: {
28
+ type: string;
29
+ };
30
+ tooltip: {};
31
+ itemSpecific: {
32
+ rounding: number;
33
+ padding: number;
34
+ };
35
+ name: string;
36
+ };
@@ -0,0 +1,43 @@
1
+ export declare const seasonalTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ editModeBackground: string;
43
+ };
@@ -0,0 +1,44 @@
1
+ export declare const urbanTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {
37
+ background: string;
38
+ };
39
+ itemSpecific: {
40
+ rounding: number;
41
+ padding: number;
42
+ };
43
+ name: string;
44
+ };
@@ -0,0 +1,42 @@
1
+ export declare const vividTheme: {
2
+ type: string;
3
+ background: string;
4
+ itemsBackground: string;
5
+ boxShadow: {
6
+ size: string;
7
+ color: string;
8
+ };
9
+ title: {
10
+ align: string;
11
+ bold: boolean;
12
+ italic: boolean;
13
+ underline: boolean;
14
+ border: boolean;
15
+ };
16
+ font: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ };
20
+ colors: string[];
21
+ borders: {
22
+ 'border-color': string;
23
+ 'border-style': string;
24
+ 'border-radius': string;
25
+ 'border-top-width': string;
26
+ 'border-left-width': string;
27
+ 'border-right-width': string;
28
+ 'border-bottom-width': string;
29
+ };
30
+ margins: number[];
31
+ mainColor: string;
32
+ axis: {};
33
+ legend: {
34
+ type: string;
35
+ };
36
+ tooltip: {};
37
+ itemSpecific: {
38
+ rounding: number;
39
+ padding: number;
40
+ };
41
+ name: string;
42
+ };
@@ -0,0 +1,4 @@
1
+ export type DateFormats = 'auto' | 'mmdd' | 'ddmm';
2
+ export declare const DATE_FORMATS: Record<DateFormats, () => string>;
3
+ export type DateSeparators = '~' | '.' | '-' | '/';
4
+ export declare const DATE_SEPARATORS: Record<DateSeparators, () => string>;
@@ -0,0 +1,15 @@
1
+ export declare const DATETIME_LEVELS: {
2
+ level: number;
3
+ key: string;
4
+ i18n: () => string;
5
+ }[];
6
+ export declare const DATETIME_AS_STRING_FORMATS_PER_LEVEL: Record<string, {
7
+ key: string;
8
+ label: string;
9
+ i18n: () => string;
10
+ }[]>;
11
+ export declare const DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS: Record<string, () => string>;
12
+ export declare const WEEK_STARTS_ON: {
13
+ sunday: () => string;
14
+ monday: () => string;
15
+ };
@@ -0,0 +1,9 @@
1
+ import type { GenericSlotContent } from '@luzmo/dashboard-contents-types';
2
+ import { DraggableDataItemData } from '../../components/draggable-data-item/types';
3
+ /**
4
+ * Converts data coming from a draggable data item (representing a Dataset column or formula) to the expected format for Luzmo slot contents.
5
+ * @param data{DraggableDataItemData} - The DraggableDataItemData object to convert.
6
+ * @param isSublevelDrop{boolean} - Whether the drop is a sublevel drop.
7
+ * @returns - The GenericSlotContent object.
8
+ */
9
+ export declare const convertDataItemToSlotContent: (data: DraggableDataItemData, isSublevelDrop: boolean) => GenericSlotContent;
@@ -0,0 +1,17 @@
1
+ import type { DraggableDataItemData } from '../../components/draggable-data-item/types';
2
+ import type { DatasetMetadata } from '../data-broker/index';
3
+ export interface DatasetWithDraggableDataItems {
4
+ id: string;
5
+ name: Record<string, string>;
6
+ description?: Record<string, string>;
7
+ dataItems: DraggableDataItemData[];
8
+ }
9
+ /**
10
+ * Converts DataBroker dataset metadata to datasets with draggable data items.
11
+ * @param datasets Array of datasets to convert.
12
+ * @param options Mapping options to control visibility and item types.
13
+ * @returns Array of datasets, each containing its metadata and draggable data items.
14
+ */
15
+ export declare const convertDatasetsToDraggableItems: (datasets: DatasetMetadata[], options?: {
16
+ includeHidden?: boolean;
17
+ }) => DatasetWithDraggableDataItems[];
@@ -0,0 +1,7 @@
1
+ export declare function isEmpty(value: any): boolean;
2
+ export declare function isString(value: any): value is string;
3
+ export declare function isNumeric(value: any): value is number;
4
+ export declare function isBoolean(value: any): value is boolean;
5
+ export declare function isObject(value: any): boolean;
6
+ export declare function isDate(value: any): value is Date;
7
+ export declare function isEmptyObject(value: any): boolean;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover");const ht=require("@luzmo/icons"),Y=require("lit"),Fe=require("lit/decorators.js");/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:yt,setPrototypeOf:gt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object;let{freeze:S,seal:R,create:ze}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(a){return a});R||(R=function(a){return a});ke||(ke=function(a,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),p=2;p<s;p++)c[p-2]=arguments[p];return a.apply(i,c)});Ue||(Ue=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new a(...s)});const me=y(Array.prototype.forEach),Qt=y(Array.prototype.lastIndexOf),dt=y(Array.prototype.pop),Z=y(Array.prototype.push),ea=y(Array.prototype.splice),pe=y(String.prototype.toLowerCase),De=y(String.prototype.toString),Ce=y(String.prototype.match),J=y(String.prototype.replace),ta=y(String.prototype.indexOf),aa=y(String.prototype.trim),x=y(Object.prototype.hasOwnProperty),b=y(RegExp.prototype.test),Q=na(TypeError);function y(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return ke(r,a,s)}}function na(r){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Ue(r,i)}}function l(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe;gt&&gt(r,null);let s=a.length;for(;s--;){let c=a[s];if(typeof c=="string"){const p=i(c);p!==c&&(Kt(a)||(a[s]=p),c=p)}r[c]=!0}return r}function oa(r){for(let a=0;a<r.length;a++)x(r,a)||(r[a]=null);return r}function N(r){const a=ze(null);for(const[i,s]of yt(r))x(r,i)&&(Array.isArray(s)?a[i]=oa(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=N(s):a[i]=s);return a}function ee(r,a){for(;r!==null;){const s=Jt(r,a);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}r=Zt(r)}function i(){return null}return i}const Tt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ie=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sa=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Me=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ia=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Et=S(["#text"]),_t=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),At=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ra=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=R(/<%[\w\W]*|[\w\W]*%>/gm),ca=R(/\$\{[\w\W]*/gm),ua=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ma=R(/^aria-[\-\w]+$/),vt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=R(/^(?:\w+script|data):/i),pa=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=R(/^html$/i),ha=R(/^[a-z][.\w]*(-[.\w]+)+$/i);var bt=Object.freeze({__proto__:null,ARIA_ATTR:ma,ATTR_WHITESPACE:pa,CUSTOM_ELEMENT:ha,DATA_ATTR:ua,DOCTYPE_NAME:Rt,ERB_EXPR:la,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:fa,MUSTACHE_EXPR:ra,TMPLIT_EXPR:ca});const te={element:1,text:3,progressingInstruction:7,comment:8,document:9},ga=function(){return typeof window>"u"?null:window},da=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const p="dompurify"+(s?"#"+s:"");try{return a.createPolicy(p,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},St=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ga();const a=o=>xt(o);if(a.version="3.3.0",a.removed=[],!r||!r.document||r.document.nodeType!==te.document||!r.Element)return a.isSupported=!1,a;let{document:i}=r;const s=i,c=s.currentScript,{DocumentFragment:p,HTMLTemplateElement:O,Node:he,Element:We,NodeFilter:j,NamedNodeMap:Ot=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Lt,DOMParser:wt,trustedTypes:ae}=r,X=We.prototype,Dt=ee(X,"cloneNode"),Ct=ee(X,"remove"),Nt=ee(X,"nextSibling"),It=ee(X,"childNodes"),ne=ee(X,"parentNode");if(typeof O=="function"){const o=i.createElement("template");o.content&&o.content.ownerDocument&&(i=o.content.ownerDocument)}let _,$="";const{implementation:ge,createNodeIterator:Mt,createDocumentFragment:Pt,getElementsByTagName:zt}=i,{importNode:kt}=s;let A=St();a.isSupported=typeof yt=="function"&&typeof ne=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:Ut,ARIA_ATTR:Ft,IS_SCRIPT_OR_DATA:Ht,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Gt}=bt;let{IS_ALLOWED_URI:Ye}=bt,h=null;const je=l({},[...Tt,...Ne,...Ie,...Me,...Et]);let d=null;const Xe=l({},[..._t,...Pe,...At,...fe]);let m=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,_e=null;const z=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Ae=!0,Ve=!1,qe=!0,k=!1,oe=!0,I=!1,be=!1,Se=!1,U=!1,se=!1,ie=!1,Ke=!0,Ze=!1;const Wt="user-content-";let ye=!0,q=!1,F={},H=null;const Je=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=l({},["audio","video","img","source","image","track"]);let ve=null;const tt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml";let G=w,Re=!1,xe=null;const Bt=l({},[re,le,w],De);let ce=l({},["mi","mo","mn","ms","mtext"]),ue=l({},["annotation-xml"]);const Yt=l({},["title","style","font","a","script"]);let K=null;const jt=["application/xhtml+xml","text/html"],Xt="text/html";let g=null,W=null;const $t=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=N(e),K=jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Xt:e.PARSER_MEDIA_TYPE,g=K==="application/xhtml+xml"?De:pe,h=x(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,g):je,d=x(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,g):Xe,xe=x(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,De):Bt,ve=x(e,"ADD_URI_SAFE_ATTR")?l(N(tt),e.ADD_URI_SAFE_ATTR,g):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?l(N(et),e.ADD_DATA_URI_TAGS,g):et,H=x(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,g):Je,V=x(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,g):N({}),_e=x(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,g):N({}),F=x(e,"USE_PROFILES")?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,I=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,Ze=e.SANITIZE_NAMED_PROPS||!1,ye=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ye=e.ALLOWED_URI_REGEXP||vt,G=e.NAMESPACE||w,ce=e.MATHML_TEXT_INTEGRATION_POINTS||ce,ue=e.HTML_INTEGRATION_POINTS||ue,m=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Ae=!1),se&&(U=!0),F&&(h=l({},Et),d=[],F.html===!0&&(l(h,Tt),l(d,_t)),F.svg===!0&&(l(h,Ne),l(d,Pe),l(d,fe)),F.svgFilters===!0&&(l(h,Ie),l(d,Pe),l(d,fe)),F.mathMl===!0&&(l(h,Me),l(d,At),l(d,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?z.tagCheck=e.ADD_TAGS:(h===je&&(h=N(h)),l(h,e.ADD_TAGS,g))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?z.attributeCheck=e.ADD_ATTR:(d===Xe&&(d=N(d)),l(d,e.ADD_ATTR,g))),e.ADD_URI_SAFE_ATTR&&l(ve,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(H===Je&&(H=N(H)),l(H,e.FORBID_CONTENTS,g)),ye&&(h["#text"]=!0),I&&l(h,["html","head","body"]),h.table&&(l(h,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,$=_.createHTML("")}else _===void 0&&(_=da(ae,c)),_!==null&&typeof $=="string"&&($=_.createHTML(""));S&&S(e),W=e}},nt=l({},[...Ne,...Ie,...sa]),ot=l({},[...Me,...ia]),Vt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});const n=pe(e.tagName),u=pe(t.tagName);return xe[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===w?n==="svg":t.namespaceURI===re?n==="svg"&&(u==="annotation-xml"||ce[u]):!!nt[n]:e.namespaceURI===re?t.namespaceURI===w?n==="math":t.namespaceURI===le?n==="math"&&ue[u]:!!ot[n]:e.namespaceURI===w?t.namespaceURI===le&&!ue[u]||t.namespaceURI===re&&!ce[u]?!1:!ot[n]&&(Yt[n]||!nt[n]):!!(K==="application/xhtml+xml"&&xe[e.namespaceURI]):!1},L=function(e){Z(a.removed,{element:e});try{ne(e).removeChild(e)}catch{Ct(e)}},M=function(e,t){try{Z(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||se)try{L(t)}catch{}else try{t.setAttribute(e,"")}catch{}},st=function(e){let t=null,n=null;if(Se)e="<remove></remove>"+e;else{const f=Ce(e,/^[\r\n\t ]+/);n=f&&f[0]}K==="application/xhtml+xml"&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const u=_?_.createHTML(e):e;if(G===w)try{t=new wt().parseFromString(u,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Re?$:u}catch{}}const E=t.body||t.documentElement;return e&&n&&E.insertBefore(i.createTextNode(n),E.childNodes[0]||null),G===w?zt.call(t,I?"html":"body")[0]:I?t.documentElement:E},it=function(e){return Mt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof he=="function"&&e instanceof he};function D(o,e,t){me(o,n=>{n.call(a,e,t,W)})}const lt=function(e){let t=null;if(D(A.beforeSanitizeElements,e,null),Le(e))return L(e),!0;const n=g(e.nodeName);if(D(A.uponSanitizeElement,e,{tagName:n,allowedTags:h}),oe&&e.hasChildNodes()&&!rt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||e.nodeType===te.progressingInstruction||oe&&e.nodeType===te.comment&&b(/<[/\w]/g,e.data))return L(e),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(n))&&(!h[n]||V[n])){if(!V[n]&&ut(n)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n)))return!1;if(ye&&!H[n]){const u=ne(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&u){const f=E.length;for(let v=f-1;v>=0;--v){const C=Dt(E[v],!0);C.__removalCount=(e.__removalCount||0)+1,u.insertBefore(C,Nt(e))}}}return L(e),!0}return e instanceof We&&!Vt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(L(e),!0):(k&&e.nodeType===te.text&&(t=e.textContent,me([de,Te,Ee],u=>{t=J(t,u," ")}),e.textContent!==t&&(Z(a.removed,{element:e.cloneNode()}),e.textContent=t)),D(A.afterSanitizeElements,e,null),!1)},ct=function(e,t,n){if(Ke&&(t==="id"||t==="name")&&(n in i||n in $t))return!1;if(!(Ae&&!_e[t]&&b(Ut,t))){if(!($e&&b(Ft,t))){if(!(z.attributeCheck instanceof Function&&z.attributeCheck(t,e))){if(!d[t]||_e[t]){if(!(ut(e)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&b(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n))))return!1}else if(!ve[t]){if(!b(Ye,J(n,Be,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&ta(n,"data:")===0&&Qe[e])){if(!(Ve&&!b(Ht,J(n,Be,"")))){if(n)return!1}}}}}}}return!0},ut=function(e){return e!=="annotation-xml"&&Ce(e,Gt)},mt=function(e){D(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let u=t.length;for(;u--;){const E=t[u],{name:f,namespaceURI:v,value:C}=E,B=g(f),we=C;let T=f==="value"?we:aa(we);if(n.attrName=B,n.attrValue=T,n.keepAttr=!0,n.forceKeepAttr=void 0,D(A.uponSanitizeAttribute,e,n),T=n.attrValue,Ze&&(B==="id"||B==="name")&&(M(f,e),T=Wt+T),oe&&b(/((--!?|])>)|<\/(style|title|textarea)/i,T)){M(f,e);continue}if(B==="attributename"&&Ce(T,"href")){M(f,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){M(f,e);continue}if(!qe&&b(/\/>/i,T)){M(f,e);continue}k&&me([de,Te,Ee],pt=>{T=J(T,pt," ")});const ft=g(e.nodeName);if(!ct(ft,B,T)){M(f,e);continue}if(_&&typeof ae=="object"&&typeof ae.getAttributeType=="function"&&!v)switch(ae.getAttributeType(ft,B)){case"TrustedHTML":{T=_.createHTML(T);break}case"TrustedScriptURL":{T=_.createScriptURL(T);break}}if(T!==we)try{v?e.setAttributeNS(v,f,T):e.setAttribute(f,T),Le(e)?L(e):dt(a.removed)}catch{M(f,e)}}D(A.afterSanitizeAttributes,e,null)},qt=function o(e){let t=null;const n=it(e);for(D(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)D(A.uponSanitizeShadowNode,t,null),lt(t),mt(t),t.content instanceof p&&o(t.content);D(A.afterSanitizeShadowDOM,e,null)};return a.sanitize=function(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,u=null,E=null;if(Re=!o,Re&&(o="<!-->"),typeof o!="string"&&!rt(o))if(typeof o.toString=="function"){if(o=o.toString(),typeof o!="string")throw Q("dirty is not a string, aborting")}else throw Q("toString is not a function");if(!a.isSupported)return o;if(be||Oe(e),a.removed=[],typeof o=="string"&&(q=!1),q){if(o.nodeName){const C=g(o.nodeName);if(!h[C]||V[C])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof he)t=st("<!---->"),n=t.ownerDocument.importNode(o,!0),n.nodeType===te.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!I&&o.indexOf("<")===-1)return _&&ie?_.createHTML(o):o;if(t=st(o),!t)return U?null:ie?$:""}t&&Se&&L(t.firstChild);const f=it(q?o:t);for(;u=f.nextNode();)lt(u),mt(u),u.content instanceof p&&qt(u.content);if(q)return o;if(U){if(se)for(E=Pt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=kt.call(s,E,!0)),E}let v=I?t.outerHTML:t.innerHTML;return I&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Rt,t.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover");const ht=require("@luzmo/icons"),Y=require("lit"),Fe=require("lit/decorators.js");const{entries:yt,setPrototypeOf:gt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object;let{freeze:S,seal:R,create:ze}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(a){return a});R||(R=function(a){return a});ke||(ke=function(a,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),p=2;p<s;p++)c[p-2]=arguments[p];return a.apply(i,c)});Ue||(Ue=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new a(...s)});const me=y(Array.prototype.forEach),Qt=y(Array.prototype.lastIndexOf),dt=y(Array.prototype.pop),Z=y(Array.prototype.push),ea=y(Array.prototype.splice),pe=y(String.prototype.toLowerCase),De=y(String.prototype.toString),Ce=y(String.prototype.match),J=y(String.prototype.replace),ta=y(String.prototype.indexOf),aa=y(String.prototype.trim),x=y(Object.prototype.hasOwnProperty),b=y(RegExp.prototype.test),Q=na(TypeError);function y(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return ke(r,a,s)}}function na(r){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Ue(r,i)}}function l(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe;gt&&gt(r,null);let s=a.length;for(;s--;){let c=a[s];if(typeof c=="string"){const p=i(c);p!==c&&(Kt(a)||(a[s]=p),c=p)}r[c]=!0}return r}function oa(r){for(let a=0;a<r.length;a++)x(r,a)||(r[a]=null);return r}function N(r){const a=ze(null);for(const[i,s]of yt(r))x(r,i)&&(Array.isArray(s)?a[i]=oa(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=N(s):a[i]=s);return a}function ee(r,a){for(;r!==null;){const s=Jt(r,a);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}r=Zt(r)}function i(){return null}return i}const Tt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ie=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sa=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Me=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ia=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Et=S(["#text"]),_t=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),At=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ra=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=R(/<%[\w\W]*|[\w\W]*%>/gm),ca=R(/\$\{[\w\W]*/gm),ua=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ma=R(/^aria-[\-\w]+$/),vt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=R(/^(?:\w+script|data):/i),pa=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=R(/^html$/i),ha=R(/^[a-z][.\w]*(-[.\w]+)+$/i);var bt=Object.freeze({__proto__:null,ARIA_ATTR:ma,ATTR_WHITESPACE:pa,CUSTOM_ELEMENT:ha,DATA_ATTR:ua,DOCTYPE_NAME:Rt,ERB_EXPR:la,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:fa,MUSTACHE_EXPR:ra,TMPLIT_EXPR:ca});const te={element:1,text:3,progressingInstruction:7,comment:8,document:9},ga=function(){return typeof window>"u"?null:window},da=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const p="dompurify"+(s?"#"+s:"");try{return a.createPolicy(p,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},St=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ga();const a=o=>xt(o);if(a.version="3.3.0",a.removed=[],!r||!r.document||r.document.nodeType!==te.document||!r.Element)return a.isSupported=!1,a;let{document:i}=r;const s=i,c=s.currentScript,{DocumentFragment:p,HTMLTemplateElement:O,Node:he,Element:We,NodeFilter:j,NamedNodeMap:Ot=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Lt,DOMParser:wt,trustedTypes:ae}=r,X=We.prototype,Dt=ee(X,"cloneNode"),Ct=ee(X,"remove"),Nt=ee(X,"nextSibling"),It=ee(X,"childNodes"),ne=ee(X,"parentNode");if(typeof O=="function"){const o=i.createElement("template");o.content&&o.content.ownerDocument&&(i=o.content.ownerDocument)}let _,$="";const{implementation:ge,createNodeIterator:Mt,createDocumentFragment:Pt,getElementsByTagName:zt}=i,{importNode:kt}=s;let A=St();a.isSupported=typeof yt=="function"&&typeof ne=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:Ut,ARIA_ATTR:Ft,IS_SCRIPT_OR_DATA:Ht,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Gt}=bt;let{IS_ALLOWED_URI:Ye}=bt,h=null;const je=l({},[...Tt,...Ne,...Ie,...Me,...Et]);let d=null;const Xe=l({},[..._t,...Pe,...At,...fe]);let m=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,_e=null;const z=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Ae=!0,Ve=!1,qe=!0,k=!1,oe=!0,I=!1,be=!1,Se=!1,U=!1,se=!1,ie=!1,Ke=!0,Ze=!1;const Wt="user-content-";let ye=!0,q=!1,F={},H=null;const Je=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=l({},["audio","video","img","source","image","track"]);let ve=null;const tt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml";let G=w,Re=!1,xe=null;const Bt=l({},[re,le,w],De);let ce=l({},["mi","mo","mn","ms","mtext"]),ue=l({},["annotation-xml"]);const Yt=l({},["title","style","font","a","script"]);let K=null;const jt=["application/xhtml+xml","text/html"],Xt="text/html";let g=null,W=null;const $t=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=N(e),K=jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Xt:e.PARSER_MEDIA_TYPE,g=K==="application/xhtml+xml"?De:pe,h=x(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,g):je,d=x(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,g):Xe,xe=x(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,De):Bt,ve=x(e,"ADD_URI_SAFE_ATTR")?l(N(tt),e.ADD_URI_SAFE_ATTR,g):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?l(N(et),e.ADD_DATA_URI_TAGS,g):et,H=x(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,g):Je,V=x(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,g):N({}),_e=x(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,g):N({}),F=x(e,"USE_PROFILES")?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,I=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,Ze=e.SANITIZE_NAMED_PROPS||!1,ye=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ye=e.ALLOWED_URI_REGEXP||vt,G=e.NAMESPACE||w,ce=e.MATHML_TEXT_INTEGRATION_POINTS||ce,ue=e.HTML_INTEGRATION_POINTS||ue,m=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Ae=!1),se&&(U=!0),F&&(h=l({},Et),d=[],F.html===!0&&(l(h,Tt),l(d,_t)),F.svg===!0&&(l(h,Ne),l(d,Pe),l(d,fe)),F.svgFilters===!0&&(l(h,Ie),l(d,Pe),l(d,fe)),F.mathMl===!0&&(l(h,Me),l(d,At),l(d,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?z.tagCheck=e.ADD_TAGS:(h===je&&(h=N(h)),l(h,e.ADD_TAGS,g))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?z.attributeCheck=e.ADD_ATTR:(d===Xe&&(d=N(d)),l(d,e.ADD_ATTR,g))),e.ADD_URI_SAFE_ATTR&&l(ve,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(H===Je&&(H=N(H)),l(H,e.FORBID_CONTENTS,g)),ye&&(h["#text"]=!0),I&&l(h,["html","head","body"]),h.table&&(l(h,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,$=_.createHTML("")}else _===void 0&&(_=da(ae,c)),_!==null&&typeof $=="string"&&($=_.createHTML(""));S&&S(e),W=e}},nt=l({},[...Ne,...Ie,...sa]),ot=l({},[...Me,...ia]),Vt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});const n=pe(e.tagName),u=pe(t.tagName);return xe[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===w?n==="svg":t.namespaceURI===re?n==="svg"&&(u==="annotation-xml"||ce[u]):!!nt[n]:e.namespaceURI===re?t.namespaceURI===w?n==="math":t.namespaceURI===le?n==="math"&&ue[u]:!!ot[n]:e.namespaceURI===w?t.namespaceURI===le&&!ue[u]||t.namespaceURI===re&&!ce[u]?!1:!ot[n]&&(Yt[n]||!nt[n]):!!(K==="application/xhtml+xml"&&xe[e.namespaceURI]):!1},L=function(e){Z(a.removed,{element:e});try{ne(e).removeChild(e)}catch{Ct(e)}},M=function(e,t){try{Z(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||se)try{L(t)}catch{}else try{t.setAttribute(e,"")}catch{}},st=function(e){let t=null,n=null;if(Se)e="<remove></remove>"+e;else{const f=Ce(e,/^[\r\n\t ]+/);n=f&&f[0]}K==="application/xhtml+xml"&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const u=_?_.createHTML(e):e;if(G===w)try{t=new wt().parseFromString(u,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Re?$:u}catch{}}const E=t.body||t.documentElement;return e&&n&&E.insertBefore(i.createTextNode(n),E.childNodes[0]||null),G===w?zt.call(t,I?"html":"body")[0]:I?t.documentElement:E},it=function(e){return Mt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof he=="function"&&e instanceof he};function D(o,e,t){me(o,n=>{n.call(a,e,t,W)})}const lt=function(e){let t=null;if(D(A.beforeSanitizeElements,e,null),Le(e))return L(e),!0;const n=g(e.nodeName);if(D(A.uponSanitizeElement,e,{tagName:n,allowedTags:h}),oe&&e.hasChildNodes()&&!rt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||e.nodeType===te.progressingInstruction||oe&&e.nodeType===te.comment&&b(/<[/\w]/g,e.data))return L(e),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(n))&&(!h[n]||V[n])){if(!V[n]&&ut(n)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n)))return!1;if(ye&&!H[n]){const u=ne(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&u){const f=E.length;for(let v=f-1;v>=0;--v){const C=Dt(E[v],!0);C.__removalCount=(e.__removalCount||0)+1,u.insertBefore(C,Nt(e))}}}return L(e),!0}return e instanceof We&&!Vt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(L(e),!0):(k&&e.nodeType===te.text&&(t=e.textContent,me([de,Te,Ee],u=>{t=J(t,u," ")}),e.textContent!==t&&(Z(a.removed,{element:e.cloneNode()}),e.textContent=t)),D(A.afterSanitizeElements,e,null),!1)},ct=function(e,t,n){if(Ke&&(t==="id"||t==="name")&&(n in i||n in $t))return!1;if(!(Ae&&!_e[t]&&b(Ut,t))){if(!($e&&b(Ft,t))){if(!(z.attributeCheck instanceof Function&&z.attributeCheck(t,e))){if(!d[t]||_e[t]){if(!(ut(e)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&b(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n))))return!1}else if(!ve[t]){if(!b(Ye,J(n,Be,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&ta(n,"data:")===0&&Qe[e])){if(!(Ve&&!b(Ht,J(n,Be,"")))){if(n)return!1}}}}}}}return!0},ut=function(e){return e!=="annotation-xml"&&Ce(e,Gt)},mt=function(e){D(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let u=t.length;for(;u--;){const E=t[u],{name:f,namespaceURI:v,value:C}=E,B=g(f),we=C;let T=f==="value"?we:aa(we);if(n.attrName=B,n.attrValue=T,n.keepAttr=!0,n.forceKeepAttr=void 0,D(A.uponSanitizeAttribute,e,n),T=n.attrValue,Ze&&(B==="id"||B==="name")&&(M(f,e),T=Wt+T),oe&&b(/((--!?|])>)|<\/(style|title|textarea)/i,T)){M(f,e);continue}if(B==="attributename"&&Ce(T,"href")){M(f,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){M(f,e);continue}if(!qe&&b(/\/>/i,T)){M(f,e);continue}k&&me([de,Te,Ee],pt=>{T=J(T,pt," ")});const ft=g(e.nodeName);if(!ct(ft,B,T)){M(f,e);continue}if(_&&typeof ae=="object"&&typeof ae.getAttributeType=="function"&&!v)switch(ae.getAttributeType(ft,B)){case"TrustedHTML":{T=_.createHTML(T);break}case"TrustedScriptURL":{T=_.createScriptURL(T);break}}if(T!==we)try{v?e.setAttributeNS(v,f,T):e.setAttribute(f,T),Le(e)?L(e):dt(a.removed)}catch{M(f,e)}}D(A.afterSanitizeAttributes,e,null)},qt=function o(e){let t=null;const n=it(e);for(D(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)D(A.uponSanitizeShadowNode,t,null),lt(t),mt(t),t.content instanceof p&&o(t.content);D(A.afterSanitizeShadowDOM,e,null)};return a.sanitize=function(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,u=null,E=null;if(Re=!o,Re&&(o="<!-->"),typeof o!="string"&&!rt(o))if(typeof o.toString=="function"){if(o=o.toString(),typeof o!="string")throw Q("dirty is not a string, aborting")}else throw Q("toString is not a function");if(!a.isSupported)return o;if(be||Oe(e),a.removed=[],typeof o=="string"&&(q=!1),q){if(o.nodeName){const C=g(o.nodeName);if(!h[C]||V[C])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof he)t=st("<!---->"),n=t.ownerDocument.importNode(o,!0),n.nodeType===te.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!I&&o.indexOf("<")===-1)return _&&ie?_.createHTML(o):o;if(t=st(o),!t)return U?null:ie?$:""}t&&Se&&L(t.firstChild);const f=it(q?o:t);for(;u=f.nextNode();)lt(u),mt(u),u.content instanceof p&&qt(u.content);if(q)return o;if(U){if(se)for(E=Pt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=kt.call(s,E,!0)),E}let v=I?t.outerHTML:t.innerHTML;return I&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Rt,t.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
21
21
  `+v),k&&me([de,Te,Ee],C=>{v=J(v,C," ")}),_&&ie?_.createHTML(v):v},a.setConfig=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oe(o),be=!0},a.clearConfig=function(){W=null,be=!1},a.isValidAttribute=function(o,e,t){W||Oe({});const n=g(o),u=g(e);return ct(n,u,t)},a.addHook=function(o,e){typeof e=="function"&&Z(A[o],e)},a.removeHook=function(o,e){if(e!==void 0){const t=Qt(A[o],e);return t===-1?void 0:ea(A[o],t,1)[0]}return dt(A[o])},a.removeHooks=function(o){A[o]=[]},a.removeAllHooks=function(){A=St()},a}var Ta=xt();const Ea=":host{box-sizing:border-box;display:block;width:100%;margin-bottom:var(--luzmo-ai-chat-message-assistant-margin-bottom, var(--ai-chat-message-assistant-margin-bottom))}:host .message-container{display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:100%}:host .message-text{background:var(--luzmo-ai-chat-message-assistant-background, var(--ai-chat-message-assistant-background));color:var(--luzmo-ai-chat-message-assistant-color, var(--ai-chat-message-assistant-color));padding:var(--luzmo-ai-chat-message-assistant-padding, var(--ai-chat-message-assistant-padding));border-radius:var(--luzmo-ai-chat-message-assistant-border-radius, var(--ai-chat-message-assistant-border-radius));font-family:var(--luzmo-ai-chat-message-assistant-font-family, var(--ai-chat-message-assistant-font-family));font-weight:var(--luzmo-ai-chat-message-assistant-font-weight, var(--ai-chat-message-assistant-font-weight));font-size:var(--luzmo-ai-chat-message-assistant-font-size, var(--ai-chat-message-assistant-font-size));line-height:var(--luzmo-ai-chat-message-assistant-line-height, var(--ai-chat-message-assistant-line-height));text-align:left;word-wrap:break-word;width:fit-content;max-width:100%;box-shadow:var(--luzmo-ai-chat-message-assistant-box-shadow, var(--ai-chat-message-assistant-box-shadow))}:host .context-menu-button{background:var(--luzmo-background-color);border:var(--luzmo-ai-chat-message-assistant-context-menu-border, var(--ai-chat-message-assistant-context-menu-border));border-radius:var(--luzmo-ai-chat-message-assistant-context-menu-border-radius, var(--ai-chat-message-assistant-context-menu-border-radius));width:var(--luzmo-ai-chat-message-assistant-context-menu-width, var(--ai-chat-message-assistant-context-menu-width));height:var(--luzmo-ai-chat-message-assistant-context-menu-height, var(--ai-chat-message-assistant-context-menu-height));cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:var(--luzmo-ai-chat-message-assistant-context-menu-transition, var(--ai-chat-message-assistant-context-menu-transition));flex-shrink:0;color:var(--luzmo-ai-chat-message-assistant-context-menu-icon-color, var(--ai-chat-message-assistant-context-menu-icon-color))}:host .context-menu-button:hover{background:var(--luzmo-ai-chat-message-assistant-context-menu-hover-background, var(--ai-chat-message-assistant-context-menu-hover-background));border-color:var(--luzmo-ai-chat-message-assistant-context-menu-hover-border, var(--ai-chat-message-assistant-context-menu-hover-border))}:host .message-with-menu{display:flex;align-items:flex-start;gap:var(--luzmo-ai-chat-message-assistant-gap, var(--ai-chat-message-assistant-gap));width:100%}:host .message-container-inner{flex:1;display:flex}:host{--ai-chat-message-assistant-margin-bottom: var(--luzmo-spacing-5);--ai-chat-message-assistant-background: transparent;--ai-chat-message-assistant-color: var(--luzmo-font-color);--ai-chat-message-assistant-padding: 0;--ai-chat-message-assistant-border-radius: 0;--ai-chat-message-assistant-font-family: var(--luzmo-font-family);--ai-chat-message-assistant-font-weight: var(--luzmo-font-weight);--ai-chat-message-assistant-font-size: var(--luzmo-font-size-s);--ai-chat-message-assistant-line-height: 1.75em;--ai-chat-message-assistant-box-shadow: none;--ai-chat-message-assistant-gap: var(--luzmo-spacing-5);--ai-chat-message-assistant-context-menu-width: var(--luzmo-component-height);--ai-chat-message-assistant-context-menu-height: var(--luzmo-component-height);--ai-chat-message-assistant-context-menu-border: var(--luzmo-border-width) solid var(--luzmo-border-color);--ai-chat-message-assistant-context-menu-border-radius: var(--luzmo-border-radius);--ai-chat-message-assistant-context-menu-hover-background: var(--luzmo-background-color-hover);--ai-chat-message-assistant-context-menu-hover-border: var(--luzmo-border-color-hover);--ai-chat-message-assistant-context-menu-focus-outline: 2px solid var(--luzmo-primary);--ai-chat-message-assistant-context-menu-icon-size: var(--luzmo-font-size-s);--ai-chat-message-assistant-context-menu-icon-color: var(--luzmo-font-color-extra-dimmed);--ai-chat-message-assistant-context-menu-transition: all var(--luzmo-animation-duration) ease}";var _a=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,He=(r,a,i,s)=>{for(var c=s>1?void 0:s?Aa(a,i):a,p=r.length-1,O;p>=0;p--)(O=r[p])&&(c=(s?O(a,i,c):O(c))||c);return s&&c&&_a(a,i,c),c};const Ge=class Ge extends Y.LitElement{constructor(){super(...arguments),this._message="",this.showContextMenu=!1,this.overlayPlacement="bottom-start"}get message(){return this._message}set message(a){const i=this._message;this._message=Ta.sanitize(a||"",{USE_PROFILES:{html:!0}}),this.requestUpdate("message",i)}render(){return Y.html`
22
22
  <div class="message-container">
23
23
  ${this.showContextMenu?Y.html`
@@ -28,7 +28,6 @@ import { property as Fe } from "lit/decorators.js";
28
28
  o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
29
29
  }
30
30
  })();
31
- /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
32
31
  const {
33
32
  entries: zt,
34
33
  setPrototypeOf: dt,
@@ -0,0 +1,147 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { luzmoTypeArrayHierarchy as m, luzmoTypeArrayHierarchy14 as g, luzmoTypeArrayHierarchy12 as v, luzmoTypeArrayDatetime as i, luzmoTypeArrayDatetime14 as C, luzmoTypeArrayDatetime12 as b, luzmoTypeArrayCurrency as t, luzmoTypeArrayCurrency14 as N, luzmoTypeArrayCurrency12 as w, luzmoTypeArrayDuration as n, luzmoTypeArrayDuration14 as H, luzmoTypeArrayDuration12 as L, luzmoTypeArrayNumeric as p, luzmoTypeArrayNumeric14 as S, luzmoTypeArrayNumeric12 as E, luzmoTypeTopography as y, luzmoTypeCoordinates as s, luzmoTypeCoordinates14 as _, luzmoTypeCoordinates12 as B, luzmoTypeCurrency as a, luzmoTypeCurrency14 as F, luzmoTypeCurrency12 as j, luzmoTypeDuration as c, luzmoTypeDuration14 as k, luzmoTypeDuration12 as q, luzmoTypeNumeric as z, luzmoTypeNumeric14 as G, luzmoTypeNumeric12 as J, luzmoTypeDatetime as T, luzmoTypeDatetime14 as K, luzmoTypeDatetime12 as M, luzmoTypeDate as x, luzmoTypeDate14 as O, luzmoTypeDate12 as P, luzmoTypeIpAddress as h, luzmoTypeIpAddress14 as Q, luzmoTypeIpAddress12 as R, luzmoTypeImage as f, luzmoTypeImage14 as U, luzmoTypeImage12 as V, luzmoTypeHierarchy as D, luzmoTypeHierarchy14 as W, luzmoTypeHierarchy12 as X, luzmoFormula as u, luzmoTypeDerived as d, luzmoTypeDerived14 as Y, luzmoTypeDerived12 as Z } from "@luzmo/icons";
21
+ const l = {
22
+ "array[hierarchy]": {
23
+ s: v,
24
+ m: g,
25
+ l: m,
26
+ xl: m
27
+ },
28
+ "array[datetime]": {
29
+ s: b,
30
+ m: C,
31
+ l: i,
32
+ xl: i
33
+ },
34
+ "array[numeric]": {
35
+ s: E,
36
+ m: S,
37
+ l: p,
38
+ xl: p
39
+ },
40
+ "array[currency]": {
41
+ s: w,
42
+ m: N,
43
+ l: t,
44
+ xl: t
45
+ },
46
+ "array[duration]": {
47
+ s: L,
48
+ m: H,
49
+ l: n,
50
+ xl: n
51
+ },
52
+ coordinates: {
53
+ s: B,
54
+ m: _,
55
+ l: s,
56
+ xl: s
57
+ },
58
+ currency: {
59
+ s: j,
60
+ m: F,
61
+ l: a,
62
+ xl: a
63
+ },
64
+ date: {
65
+ s: P,
66
+ m: O,
67
+ l: x,
68
+ xl: x
69
+ },
70
+ datetime: {
71
+ s: M,
72
+ m: K,
73
+ l: T,
74
+ xl: T
75
+ },
76
+ derived: {
77
+ s: Z,
78
+ m: Y,
79
+ l: d,
80
+ xl: d
81
+ },
82
+ duration: {
83
+ s: q,
84
+ m: k,
85
+ l: c,
86
+ xl: c
87
+ },
88
+ hierarchy: {
89
+ s: X,
90
+ m: W,
91
+ l: D,
92
+ xl: D
93
+ },
94
+ image: {
95
+ s: V,
96
+ m: U,
97
+ l: f,
98
+ xl: f
99
+ },
100
+ numeric: {
101
+ s: J,
102
+ m: G,
103
+ l: z,
104
+ xl: z
105
+ },
106
+ topography: {
107
+ s: y,
108
+ m: y,
109
+ l: y,
110
+ xl: y
111
+ },
112
+ ipaddress: {
113
+ s: R,
114
+ m: Q,
115
+ l: h,
116
+ xl: h
117
+ },
118
+ formula: {
119
+ s: u,
120
+ m: u,
121
+ l: u,
122
+ xl: u
123
+ }
124
+ }, $ = {
125
+ xxs: "s",
126
+ xs: "s",
127
+ s: "s",
128
+ m: "m",
129
+ l: "l",
130
+ xl: "xl",
131
+ xxl: "xl"
132
+ }, A = (e) => e ? $[e] : "m", re = (e, o = "m") => {
133
+ const r = A(o);
134
+ return e?.type === "array[hierarchy]" ? l["array[hierarchy]"][r] : e?.type === "array[datetime]" ? l["array[datetime]"][r] : e?.type === "array[numeric]" ? e?.subtype === "currency" ? l["array[currency]"][r] : e?.subtype === "duration" ? l["array[duration]"][r] : l["array[numeric]"][r] : e?.type === "spatial" ? e?.subtype === "topography" ? l.topography[r] : l.coordinates[r] : e?.type === "numeric" ? e?.subtype === "currency" ? l.currency[r] : e?.subtype === "duration" ? l.duration[r] : l.numeric[r] : e?.type === "datetime" ? e?.lowestLevel && e?.lowestLevel > 5 && e?.lowestLevel <= 9 ? l.datetime[r] : e?.lowestLevel && e?.lowestLevel > 1 && e?.lowestLevel <= 5 ? l.date[r] : l.datetime[r] : e?.type === "hierarchy" && e?.subtype === "ip_address" ? l.ipaddress[r] : e?.type === "hierarchy" && e?.subtype === "hierarchy_element_expression" ? l.image[r] : l.hierarchy[r];
135
+ }, le = (e, o = "m") => {
136
+ if (!e)
137
+ return;
138
+ const r = A(o), I = typeof e.expression == "string" ? e.expression.trim().length > 0 : e.expression != null;
139
+ if (e.formulaId != null)
140
+ return l.formula[r];
141
+ if (e.formulaId == null && e.columnId != null && I)
142
+ return l.derived[r];
143
+ };
144
+ export {
145
+ le as a,
146
+ re as c
147
+ };