@luzmo/analytics-components-kit 1.0.5-beta.2 → 1.0.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1606) hide show
  1. package/README.md +5 -4
  2. package/angular/README.md +40 -0
  3. package/angular/components/ai-chat-empty-state.ts +98 -0
  4. package/angular/components/ai-chat.ts +412 -0
  5. package/angular/components/ai-interaction-textarea.ts +256 -0
  6. package/angular/components/data-field-level.ts +130 -0
  7. package/angular/components/data-field-panel.ts +256 -0
  8. package/angular/components/data-field.ts +130 -0
  9. package/angular/components/data-fields-select.ts +205 -0
  10. package/angular/components/dataset-icon.ts +83 -0
  11. package/angular/components/dataset-selector-list.ts +140 -0
  12. package/angular/components/dataset-selector-row.ts +143 -0
  13. package/angular/components/display-settings-binning.ts +92 -0
  14. package/angular/components/display-settings-datetime.ts +100 -0
  15. package/angular/components/display-settings-grand-totals.ts +92 -0
  16. package/angular/components/display-settings-numeric.ts +113 -0
  17. package/angular/components/display-settings-period-over-period.ts +107 -0
  18. package/angular/components/display-settings.ts +227 -0
  19. package/angular/components/filter-expression-picker.ts +168 -0
  20. package/angular/components/filter-item.ts +160 -0
  21. package/angular/components/filter-parameter-picker.ts +103 -0
  22. package/angular/components/filter-value-picker-datetime.ts +125 -0
  23. package/angular/components/filter-value-picker-hierarchy.ts +146 -0
  24. package/angular/components/filter-value-picker-numeric.ts +146 -0
  25. package/angular/components/filter-value-picker.ts +160 -0
  26. package/angular/components/filters.ts +169 -0
  27. package/angular/components/formula-editor.ts +229 -0
  28. package/angular/components/formula-field.ts +198 -0
  29. package/angular/components/formula.ts +170 -0
  30. package/angular/components/interactive-viz-item.ts +186 -0
  31. package/angular/components/item-grid-item-actions-menu.ts +113 -0
  32. package/angular/components/item-grid.ts +242 -0
  33. package/angular/components/item-option-action-button-group.ts +105 -0
  34. package/angular/components/item-option-color-palette-picker.ts +126 -0
  35. package/angular/components/item-option-color-picker.ts +134 -0
  36. package/angular/components/item-option-color-range.ts +168 -0
  37. package/angular/components/item-option-multi-language-field.ts +133 -0
  38. package/angular/components/item-option-number-field.ts +161 -0
  39. package/angular/components/item-option-panel.ts +149 -0
  40. package/angular/components/item-option-picker.ts +120 -0
  41. package/angular/components/item-option-position-picker.ts +98 -0
  42. package/angular/components/item-option-positions-number-field.ts +140 -0
  43. package/angular/components/item-option-radio-button-group.ts +119 -0
  44. package/angular/components/item-option-slider.ts +126 -0
  45. package/angular/components/item-option-switch.ts +98 -0
  46. package/angular/components/item-option-text-field.ts +112 -0
  47. package/angular/components/item-option.ts +163 -0
  48. package/angular/components/item-slot-drop-panel.ts +236 -0
  49. package/angular/components/item-slot-drop.ts +231 -0
  50. package/angular/components/item-slot-picker-panel.ts +299 -0
  51. package/angular/components/item-slot-picker.ts +241 -0
  52. package/angular/components/slot-menu-list.ts +121 -0
  53. package/angular/components/slot-menu.ts +304 -0
  54. package/angular/components/viz-item-menu.ts +118 -0
  55. package/angular/esm/components/ai-chat-empty-state.d.ts +39 -0
  56. package/angular/esm/components/ai-chat-empty-state.js +99 -0
  57. package/angular/esm/components/ai-chat.d.ts +137 -0
  58. package/angular/esm/components/ai-chat.js +423 -0
  59. package/angular/esm/components/ai-interaction-textarea.d.ts +97 -0
  60. package/angular/esm/components/ai-interaction-textarea.js +273 -0
  61. package/angular/esm/components/data-field-level.d.ts +50 -0
  62. package/angular/esm/components/data-field-level.js +129 -0
  63. package/angular/esm/components/data-field-panel.d.ts +86 -0
  64. package/angular/esm/components/data-field-panel.js +268 -0
  65. package/angular/esm/components/data-field.d.ts +50 -0
  66. package/angular/esm/components/data-field.js +129 -0
  67. package/angular/esm/components/data-fields-select.d.ts +79 -0
  68. package/angular/esm/components/data-fields-select.js +219 -0
  69. package/angular/esm/components/dataset-icon.d.ts +34 -0
  70. package/angular/esm/components/dataset-icon.js +86 -0
  71. package/angular/esm/components/dataset-selector-list.d.ts +53 -0
  72. package/angular/esm/components/dataset-selector-list.js +147 -0
  73. package/angular/esm/components/dataset-selector-row.d.ts +53 -0
  74. package/angular/esm/components/dataset-selector-row.js +145 -0
  75. package/angular/esm/components/display-settings-binning.d.ts +37 -0
  76. package/angular/esm/components/display-settings-binning.js +91 -0
  77. package/angular/esm/components/display-settings-datetime.d.ts +40 -0
  78. package/angular/esm/components/display-settings-datetime.js +99 -0
  79. package/angular/esm/components/display-settings-grand-totals.d.ts +37 -0
  80. package/angular/esm/components/display-settings-grand-totals.js +91 -0
  81. package/angular/esm/components/display-settings-numeric.d.ts +45 -0
  82. package/angular/esm/components/display-settings-numeric.js +115 -0
  83. package/angular/esm/components/display-settings-period-over-period.d.ts +44 -0
  84. package/angular/esm/components/display-settings-period-over-period.js +107 -0
  85. package/angular/esm/components/display-settings.d.ts +83 -0
  86. package/angular/esm/components/display-settings.js +231 -0
  87. package/angular/esm/components/filter-expression-picker.d.ts +64 -0
  88. package/angular/esm/components/filter-expression-picker.js +179 -0
  89. package/angular/esm/components/filter-item.d.ts +57 -0
  90. package/angular/esm/components/filter-item.js +171 -0
  91. package/angular/esm/components/filter-parameter-picker.d.ts +41 -0
  92. package/angular/esm/components/filter-parameter-picker.js +110 -0
  93. package/angular/esm/components/filter-value-picker-datetime.d.ts +47 -0
  94. package/angular/esm/components/filter-value-picker-datetime.js +131 -0
  95. package/angular/esm/components/filter-value-picker-hierarchy.d.ts +53 -0
  96. package/angular/esm/components/filter-value-picker-hierarchy.js +155 -0
  97. package/angular/esm/components/filter-value-picker-numeric.d.ts +53 -0
  98. package/angular/esm/components/filter-value-picker-numeric.js +155 -0
  99. package/angular/esm/components/filter-value-picker.d.ts +57 -0
  100. package/angular/esm/components/filter-value-picker.js +171 -0
  101. package/angular/esm/components/filters.d.ts +61 -0
  102. package/angular/esm/components/filters.js +179 -0
  103. package/angular/esm/components/formula-editor.d.ts +78 -0
  104. package/angular/esm/components/formula-editor.js +236 -0
  105. package/angular/esm/components/formula-field.d.ts +70 -0
  106. package/angular/esm/components/formula-field.js +209 -0
  107. package/angular/esm/components/formula.d.ts +60 -0
  108. package/angular/esm/components/formula.js +177 -0
  109. package/angular/esm/components/interactive-viz-item.d.ts +63 -0
  110. package/angular/esm/components/interactive-viz-item.js +188 -0
  111. package/angular/esm/components/item-grid-item-actions-menu.d.ts +45 -0
  112. package/angular/esm/components/item-grid-item-actions-menu.js +115 -0
  113. package/angular/esm/components/item-grid.d.ts +80 -0
  114. package/angular/esm/components/item-grid.js +245 -0
  115. package/angular/esm/components/item-option-action-button-group.d.ts +41 -0
  116. package/angular/esm/components/item-option-action-button-group.js +107 -0
  117. package/angular/esm/components/item-option-color-palette-picker.d.ts +48 -0
  118. package/angular/esm/components/item-option-color-palette-picker.js +131 -0
  119. package/angular/esm/components/item-option-color-picker.d.ts +51 -0
  120. package/angular/esm/components/item-option-color-picker.js +139 -0
  121. package/angular/esm/components/item-option-color-range.d.ts +66 -0
  122. package/angular/esm/components/item-option-color-range.js +179 -0
  123. package/angular/esm/components/item-option-multi-language-field.d.ts +50 -0
  124. package/angular/esm/components/item-option-multi-language-field.js +139 -0
  125. package/angular/esm/components/item-option-number-field.d.ts +58 -0
  126. package/angular/esm/components/item-option-number-field.js +171 -0
  127. package/angular/esm/components/item-option-panel.d.ts +54 -0
  128. package/angular/esm/components/item-option-panel.js +155 -0
  129. package/angular/esm/components/item-option-picker.d.ts +46 -0
  130. package/angular/esm/components/item-option-picker.js +123 -0
  131. package/angular/esm/components/item-option-position-picker.d.ts +39 -0
  132. package/angular/esm/components/item-option-position-picker.js +99 -0
  133. package/angular/esm/components/item-option-positions-number-field.d.ts +54 -0
  134. package/angular/esm/components/item-option-positions-number-field.js +147 -0
  135. package/angular/esm/components/item-option-radio-button-group.d.ts +45 -0
  136. package/angular/esm/components/item-option-radio-button-group.js +123 -0
  137. package/angular/esm/components/item-option-slider.d.ts +46 -0
  138. package/angular/esm/components/item-option-slider.js +131 -0
  139. package/angular/esm/components/item-option-switch.d.ts +40 -0
  140. package/angular/esm/components/item-option-switch.js +99 -0
  141. package/angular/esm/components/item-option-text-field.d.ts +44 -0
  142. package/angular/esm/components/item-option-text-field.js +115 -0
  143. package/angular/esm/components/item-option.d.ts +58 -0
  144. package/angular/esm/components/item-option.js +171 -0
  145. package/angular/esm/components/item-slot-drop-panel.d.ts +82 -0
  146. package/angular/esm/components/item-slot-drop-panel.js +249 -0
  147. package/angular/esm/components/item-slot-drop.d.ts +77 -0
  148. package/angular/esm/components/item-slot-drop.js +227 -0
  149. package/angular/esm/components/item-slot-picker-panel.d.ts +97 -0
  150. package/angular/esm/components/item-slot-picker-panel.js +309 -0
  151. package/angular/esm/components/item-slot-picker.d.ts +86 -0
  152. package/angular/esm/components/item-slot-picker.js +259 -0
  153. package/angular/esm/components/slot-menu-list.d.ts +46 -0
  154. package/angular/esm/components/slot-menu-list.js +123 -0
  155. package/angular/esm/components/slot-menu.d.ts +104 -0
  156. package/angular/esm/components/slot-menu.js +300 -0
  157. package/angular/esm/components/viz-item-menu.d.ts +42 -0
  158. package/angular/esm/components/viz-item-menu.js +111 -0
  159. package/angular/esm/index.d.ts +107 -0
  160. package/angular/esm/index.js +213 -0
  161. package/angular/index.ts +219 -0
  162. package/angular/package.json +40 -0
  163. package/angular/tsconfig.json +36 -0
  164. package/angular/type-fallbacks.d.ts +0 -0
  165. package/angular/utils/ai-prompt/attachments.d.ts +10 -0
  166. package/angular/utils/ai-prompt/dictation.d.ts +50 -0
  167. package/angular/utils/ai-prompt/image-upload.d.ts +12 -0
  168. package/angular/utils/ai-prompt/index.d.ts +6 -0
  169. package/angular/utils/ai-prompt/tests/attachments.test.d.ts +1 -0
  170. package/angular/utils/ai-prompt/tests/dictation.test.d.ts +1 -0
  171. package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +1 -0
  172. package/angular/utils/base/base.d.ts +16 -0
  173. package/angular/utils/base/focus-visible.d.ts +29 -0
  174. package/angular/utils/base/focusable.d.ts +58 -0
  175. package/angular/utils/base/index.d.ts +5 -0
  176. package/angular/utils/base/localized-mixin.d.ts +22 -0
  177. package/angular/utils/base/sized-mixin.d.ts +17 -0
  178. package/angular/utils/color/color-palettes.d.ts +17 -0
  179. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  180. package/angular/utils/data/load-data-fields-for-datasets.d.ts +22 -0
  181. package/angular/utils/data-broker/index.d.ts +257 -0
  182. package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +12 -0
  183. package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +1 -0
  184. package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +1 -0
  185. package/angular/utils/drag/draggable.d.ts +13 -0
  186. package/angular/utils/drag/pragmatic-element-adapter.d.ts +2 -0
  187. package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +1 -0
  188. package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +1 -0
  189. package/angular/utils/filters/expressions.d.ts +15 -0
  190. package/angular/utils/filters/index.d.ts +1 -0
  191. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  192. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  193. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  194. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  195. package/angular/utils/formatter/formats/da.d.ts +20 -0
  196. package/angular/utils/formatter/formats/de.d.ts +21 -0
  197. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  198. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  199. package/angular/utils/formatter/formats/en.d.ts +1 -0
  200. package/angular/utils/formatter/formats/es.d.ts +54 -0
  201. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  202. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  203. package/angular/utils/formatter/formats/he.d.ts +20 -0
  204. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  205. package/angular/utils/formatter/formats/it.d.ts +54 -0
  206. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  207. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  208. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  209. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  210. package/angular/utils/formatter/formats/no.d.ts +21 -0
  211. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  212. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  213. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  214. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  215. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  216. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  217. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  218. package/angular/utils/formatter/formatter.d.ts +9 -0
  219. package/angular/utils/formatter/get-dataset-name.d.ts +2 -0
  220. package/angular/utils/formatter/localize.d.ts +3 -0
  221. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  222. package/angular/utils/formatter/tests/calculate-duration.test.d.ts +1 -0
  223. package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +1 -0
  224. package/angular/utils/formatter/tests/default-local-formats.test.d.ts +1 -0
  225. package/angular/utils/formatter/tests/formatter.test.d.ts +1 -0
  226. package/angular/utils/formatter/tests/localize.test.d.ts +1 -0
  227. package/angular/utils/formula/base/formula-base.d.ts +117 -0
  228. package/angular/utils/formula/base/formula-input-base.d.ts +62 -0
  229. package/angular/utils/formula/codemirror/actions.d.ts +47 -0
  230. package/angular/utils/formula/codemirror/drop-cursor.d.ts +15 -0
  231. package/angular/utils/formula/codemirror/icon-element.d.ts +7 -0
  232. package/angular/utils/formula/codemirror/parser.d.ts +16 -0
  233. package/angular/utils/formula/codemirror/tests/actions.test.d.ts +1 -0
  234. package/angular/utils/formula/codemirror/theme.d.ts +20 -0
  235. package/angular/utils/formula/codemirror/widget.d.ts +18 -0
  236. package/angular/utils/formula/config/aggregations.d.ts +9 -0
  237. package/angular/utils/formula/config/build-datasets.d.ts +10 -0
  238. package/angular/utils/formula/config/expression-helpers.d.ts +42 -0
  239. package/angular/utils/formula/config/functions.d.ts +3 -0
  240. package/angular/utils/formula/config/groupings.d.ts +9 -0
  241. package/angular/utils/formula/config/regex.d.ts +39 -0
  242. package/angular/utils/formula/config/resolve-column-presentation.d.ts +19 -0
  243. package/angular/utils/formula/config/tests/build-datasets.test.d.ts +1 -0
  244. package/angular/utils/formula/config/validate-expression.d.ts +19 -0
  245. package/angular/utils/formula/load-formula-codemirror.d.ts +4 -0
  246. package/angular/utils/formula/render-explanation-tooltip.d.ts +7 -0
  247. package/angular/utils/formula/store/formula-display-store.d.ts +87 -0
  248. package/angular/utils/formula/store/formula-editor-context.d.ts +8 -0
  249. package/angular/utils/formula/store/formula-editor-store.d.ts +46 -0
  250. package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +1 -0
  251. package/angular/utils/formula/tests/validate-expression.test.d.ts +1 -0
  252. package/angular/utils/get-css-variable.d.ts +1 -0
  253. package/angular/utils/index.d.ts +10 -0
  254. package/angular/utils/localize/set-locale.d.ts +7 -0
  255. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  256. package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
  257. package/angular/utils/slot-content/render-calculation-label.d.ts +7 -0
  258. package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +1 -0
  259. package/angular/utils/slot-state/slot-context.d.ts +4 -0
  260. package/angular/utils/slot-state/slot-store.d.ts +39 -0
  261. package/angular/utils/store/base-store.d.ts +162 -0
  262. package/angular/utils/store/dashboard-store.d.ts +49 -0
  263. package/angular/utils/store/index.d.ts +135 -0
  264. package/angular/utils/store/item-store.d.ts +33 -0
  265. package/angular/utils/store/store-registry.d.ts +170 -0
  266. package/angular/utils/store/tests/dashboard-store.test.d.ts +1 -0
  267. package/angular/utils/store/tests/item-store.test.d.ts +1 -0
  268. package/angular/utils/store/tests/store-registry.test.d.ts +1 -0
  269. package/angular/utils/store/types.d.ts +270 -0
  270. package/angular/utils/switch-item/index.d.ts +34 -0
  271. package/angular/utils/switch-item/slot-role-classification.d.ts +31 -0
  272. package/angular/utils/switch-item/stories/switch-item.stories.d.ts +17 -0
  273. package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +1 -0
  274. package/angular/utils/switch-item/tests/switch-item.test.d.ts +1 -0
  275. package/angular/utils/themes/bliss.d.ts +2 -0
  276. package/angular/utils/themes/classic-dark.d.ts +2 -0
  277. package/angular/utils/themes/classic.d.ts +2 -0
  278. package/angular/utils/themes/default-dark.d.ts +2 -0
  279. package/angular/utils/themes/default.d.ts +2 -0
  280. package/angular/utils/themes/index.d.ts +4 -0
  281. package/angular/utils/themes/orion.d.ts +2 -0
  282. package/angular/utils/themes/pinky.d.ts +2 -0
  283. package/angular/utils/themes/radiant.d.ts +2 -0
  284. package/angular/utils/themes/royale.d.ts +2 -0
  285. package/angular/utils/themes/seasonal.d.ts +2 -0
  286. package/angular/utils/themes/urban.d.ts +2 -0
  287. package/angular/utils/themes/vivid.d.ts +2 -0
  288. package/angular/utils/time/formats.const.d.ts +4 -0
  289. package/angular/utils/time/period-over-period-condition.const.d.ts +8 -0
  290. package/angular/utils/time/periods.const.d.ts +15 -0
  291. package/angular/utils/timezone/datetime-timezone.d.ts +25 -0
  292. package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +1 -0
  293. package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +9 -0
  294. package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +30 -0
  295. package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +1 -0
  296. package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +1 -0
  297. package/angular/utils/types/tests/type-check.test.d.ts +1 -0
  298. package/angular/utils/types/type-check.d.ts +28 -0
  299. package/components/ai-chat/ai-chat-request.d.ts +10 -2
  300. package/components/ai-chat/ai-chat.d.ts +6 -1
  301. package/components/ai-chat/ai-prompt-types.d.ts +19 -3
  302. package/components/ai-chat/index.cjs +1 -1
  303. package/components/ai-chat/index.js +3 -3
  304. package/components/ai-chat/session/ai-chat-session-types.d.ts +2 -1
  305. package/components/ai-chat-BtQaM37y.js +3998 -0
  306. package/components/ai-chat-CBLWbv9C.cjs +319 -0
  307. package/components/ai-interaction-textarea/index.cjs +1 -1
  308. package/components/ai-interaction-textarea/index.js +1 -1
  309. package/components/ai-interaction-textarea-Bgd3y_cP.js +785 -0
  310. package/components/ai-interaction-textarea-CQBP9-DW.cjs +93 -0
  311. package/components/area-chart-options.config-Dc4P64YS.js +229 -0
  312. package/components/area-chart-options.config-N24pwyqX.cjs +20 -0
  313. package/components/area-chart-options.de-C2WwBf7L.cjs +20 -0
  314. package/components/area-chart-options.de-DY-fWkTJ.js +85 -0
  315. package/components/area-chart-options.en-BwX3W0Rz.js +85 -0
  316. package/components/area-chart-options.en-Dnm4crib.cjs +20 -0
  317. package/components/area-chart-options.es-CMcI1TAb.cjs +20 -0
  318. package/components/area-chart-options.es-DcNoi7rP.js +85 -0
  319. package/components/area-chart-options.fr-CHeI4bKx.cjs +20 -0
  320. package/components/area-chart-options.fr-T_BWw6Rr.js +85 -0
  321. package/components/area-chart-options.nl-BM7u0iDj.cjs +20 -0
  322. package/components/area-chart-options.nl-CbumBws7.js +85 -0
  323. package/components/area-chart-positioning.config-1YVSxjRa.cjs +20 -0
  324. package/components/area-chart-positioning.config-QGEo5sr-.js +55 -0
  325. package/components/area-chart-slots.config-DdPO34_g.js +55 -0
  326. package/components/bar-chart-options.config-B7tknpxM.js +300 -0
  327. package/components/bar-chart-options.config-DnNGu3RV.cjs +20 -0
  328. package/components/bar-chart-options.de-B3Q1SKCO.js +110 -0
  329. package/components/bar-chart-options.de-BZ3uW1-o.cjs +20 -0
  330. package/components/bar-chart-options.en-DA7MLNpQ.js +110 -0
  331. package/components/bar-chart-options.en-YNlXBbD4.cjs +20 -0
  332. package/components/bar-chart-options.es-BNeN4ThD.cjs +20 -0
  333. package/components/bar-chart-options.es-Crk_EzMI.js +110 -0
  334. package/components/bar-chart-options.fr-CMr4fQqa.js +110 -0
  335. package/components/bar-chart-options.fr-Cib__mEv.cjs +20 -0
  336. package/components/bar-chart-options.nl-C396D-gg.js +110 -0
  337. package/components/bar-chart-options.nl-CmGjKNyC.cjs +20 -0
  338. package/components/bar-chart-positioning.config-Cs56EAWY.cjs +20 -0
  339. package/components/bar-chart-positioning.config-KLzBnoCu.js +59 -0
  340. package/components/bar-chart-slots.config-BnbZRLIr.js +50 -0
  341. package/components/base-DMQUzJ4L.js +249 -0
  342. package/components/base-DRFleWoz.cjs +20 -0
  343. package/components/box-plot-options.config-D6Wvmx36.js +356 -0
  344. package/components/box-plot-options.config-DCDHZMGK.cjs +20 -0
  345. package/components/box-plot-options.de-BkgscmvG.js +100 -0
  346. package/components/box-plot-options.de-alI5_N9d.cjs +20 -0
  347. package/components/box-plot-options.en-5kGlvxx8.js +100 -0
  348. package/components/box-plot-options.en-DUlXF9r9.cjs +20 -0
  349. package/components/box-plot-options.es-CIm06Gpk.cjs +20 -0
  350. package/components/box-plot-options.es-v_B9Xb9H.js +100 -0
  351. package/components/box-plot-options.fr-C5j-Dzj6.cjs +20 -0
  352. package/components/box-plot-options.fr-CRSOCgU5.js +100 -0
  353. package/components/box-plot-options.nl-DtnBbRo5.cjs +20 -0
  354. package/components/box-plot-options.nl-ZQjVZPau.js +100 -0
  355. package/components/box-plot-positioning.config-BpDEb4Uo.cjs +20 -0
  356. package/components/box-plot-positioning.config-DKGY1Qqb.js +48 -0
  357. package/components/box-plot-slots.config-D6F2R2dw.js +40 -0
  358. package/components/bubble-chart-options.config-CDY6pFK6.js +135 -0
  359. package/components/bubble-chart-options.config-DjdxlwRr.cjs +20 -0
  360. package/components/bubble-chart-options.de-Q2nhAQfu.js +49 -0
  361. package/components/bubble-chart-options.en-DedkSXEc.js +49 -0
  362. package/components/bubble-chart-options.es-B7bZFlIa.js +49 -0
  363. package/components/bubble-chart-options.fr-Cz9T05xx.js +49 -0
  364. package/components/bubble-chart-options.nl-BeiE-TWG.js +49 -0
  365. package/components/bubble-chart-positioning.config-BZsvCSyT.cjs +20 -0
  366. package/components/bubble-chart-positioning.config-CL3mDsC-.js +55 -0
  367. package/components/bubble-chart-slots.config-BJdtdpS0.js +47 -0
  368. package/components/bullet-chart-options.config-B2afO5Xh.cjs +20 -0
  369. package/components/bullet-chart-options.config-B4vBSWrH.js +75 -0
  370. package/components/bullet-chart-options.de-DHqxFlm7.js +39 -0
  371. package/components/bullet-chart-options.en-6vj0tO4B.js +39 -0
  372. package/components/bullet-chart-options.es-DeDFLO8Z.js +39 -0
  373. package/components/bullet-chart-options.fr-750sl4sT.js +39 -0
  374. package/components/bullet-chart-options.nl-CS-xSSVr.js +39 -0
  375. package/components/bullet-chart-positioning.config-DA-1zmsD.cjs +20 -0
  376. package/components/bullet-chart-positioning.config-DxXEGnbz.js +56 -0
  377. package/components/bullet-chart-slots.config-NeUTKgYI.js +46 -0
  378. package/components/choropleth-map-options.config-6-xaMCeR.js +348 -0
  379. package/components/choropleth-map-options.config-6DXYO5_E.cjs +20 -0
  380. package/components/choropleth-map-options.de-DXLufNgZ.js +72 -0
  381. package/components/choropleth-map-options.en-DGENug11.js +72 -0
  382. package/components/choropleth-map-options.es-Dn2Cv5D-.js +72 -0
  383. package/components/choropleth-map-options.fr-CK0tUEO3.js +72 -0
  384. package/components/choropleth-map-options.nl-CwA4TtvT.js +72 -0
  385. package/components/choropleth-map-positioning.config-BicHLfN0.js +55 -0
  386. package/components/choropleth-map-positioning.config-D_1MCD5i.cjs +20 -0
  387. package/components/choropleth-map-slots.config-BbBwTeuw.js +53 -0
  388. package/components/circle-pack-chart-options.config-DWkyGqA_.js +54 -0
  389. package/components/circle-pack-chart-options.de-BrrPqSBf.js +31 -0
  390. package/components/circle-pack-chart-options.en-BdoNRanZ.js +31 -0
  391. package/components/circle-pack-chart-options.es-DLQWaD31.js +31 -0
  392. package/components/circle-pack-chart-options.fr-B66YY6lg.js +31 -0
  393. package/components/circle-pack-chart-options.nl-kOeRMk4n.js +31 -0
  394. package/components/circle-pack-chart-positioning.config-a_vo4VFg.js +48 -0
  395. package/components/circle-pack-chart-positioning.config-oTUkvFFJ.cjs +20 -0
  396. package/components/circle-pack-chart-slots.config-CJFjalBn.js +38 -0
  397. package/components/circular-gauge-options.config-C0T9GkZX.cjs +20 -0
  398. package/components/circular-gauge-options.config-D_xHWhBy.js +188 -0
  399. package/components/circular-gauge-options.de-D1DVq08k.js +57 -0
  400. package/components/circular-gauge-options.en-CsH_VhDL.js +57 -0
  401. package/components/circular-gauge-options.es-BkiRMNis.js +57 -0
  402. package/components/circular-gauge-options.fr-CxySNula.js +57 -0
  403. package/components/circular-gauge-options.nl-CcQpr_DM.js +57 -0
  404. package/components/circular-gauge-positioning.config-BEM85XhO.js +48 -0
  405. package/components/circular-gauge-positioning.config-TG1wPyHz.cjs +20 -0
  406. package/components/circular-gauge-slots.config-DAKsa5Hq.js +39 -0
  407. package/components/color-palettes-D4z1ONyx.js +1474 -0
  408. package/components/color-range-utils-C3HJJUS1.cjs +20 -0
  409. package/components/color-range-utils-CiqduHJS.js +63 -0
  410. package/components/column-chart-options.config-B_a7iN-c.js +299 -0
  411. package/components/column-chart-options.config-D6we1uLn.cjs +20 -0
  412. package/components/column-chart-options.de-vSfQkMVy.js +110 -0
  413. package/components/column-chart-options.de-wUcJvrrW.cjs +20 -0
  414. package/components/column-chart-options.en-C2DVLfDZ.js +110 -0
  415. package/components/column-chart-options.en-YNlXBbD4.cjs +20 -0
  416. package/components/column-chart-options.es-CmZmT22A.js +110 -0
  417. package/components/column-chart-options.es-YKftTtkL.cjs +20 -0
  418. package/components/column-chart-options.fr-Cib__mEv.cjs +20 -0
  419. package/components/column-chart-options.fr-UmB2ifIT.js +110 -0
  420. package/components/column-chart-options.nl-DRrIt7sx.js +110 -0
  421. package/components/column-chart-options.nl-Tg07PDkZ.cjs +20 -0
  422. package/components/column-chart-positioning.config-D1kXKreT.cjs +20 -0
  423. package/components/column-chart-positioning.config-x-wEIoTZ.js +55 -0
  424. package/components/column-chart-slots.config-Bpr-WaCi.js +50 -0
  425. package/components/combination-chart-options.config-C4y9E0Gr.cjs +20 -0
  426. package/components/combination-chart-options.config-l4szBpws.js +150 -0
  427. package/components/combination-chart-options.de-BExnOCui.cjs +20 -0
  428. package/components/combination-chart-options.de-BdV-j9VK.js +64 -0
  429. package/components/combination-chart-options.en-DquyU8wD.js +64 -0
  430. package/components/combination-chart-options.en-iAkhHGFR.cjs +20 -0
  431. package/components/combination-chart-options.es-B2piaL6n.cjs +20 -0
  432. package/components/combination-chart-options.es-Oz29P_Vd.js +64 -0
  433. package/components/combination-chart-options.fr-BEA5mDGS.cjs +20 -0
  434. package/components/combination-chart-options.fr-L6m-7FiZ.js +64 -0
  435. package/components/combination-chart-options.nl-DDyajIyP.cjs +20 -0
  436. package/components/combination-chart-options.nl-DJDH3K_U.js +64 -0
  437. package/components/combination-chart-positioning.config-COksdK7F.cjs +20 -0
  438. package/components/combination-chart-positioning.config-DLyPa1Im.js +48 -0
  439. package/components/combination-chart-slots.config-u-QLoQQ-.js +43 -0
  440. package/components/conditional-number-options.config-DB4_BYN2.js +205 -0
  441. package/components/conditional-number-options.config-T6oXXy14.cjs +20 -0
  442. package/components/conditional-number-options.de-2xle1pGz.js +60 -0
  443. package/components/conditional-number-options.en-JLoF4JZy.js +60 -0
  444. package/components/conditional-number-options.es-C_g0UqIh.js +60 -0
  445. package/components/conditional-number-options.fr-C5cASVba.js +60 -0
  446. package/components/conditional-number-options.nl-DiV3DzXR.js +60 -0
  447. package/components/conditional-number-positioning.config-5SBhp4Kh.cjs +20 -0
  448. package/components/conditional-number-positioning.config-6ZQHIgAA.js +48 -0
  449. package/components/conditional-number-slots.config-CiLUXRSe.js +39 -0
  450. package/components/data-field/index.cjs +1 -1
  451. package/components/data-field/index.js +1 -1
  452. package/components/data-field-D050EJkx.cjs +54 -0
  453. package/components/data-field-D1lrRnLX.js +121 -0
  454. package/components/data-field-level/index.cjs +1 -1
  455. package/components/data-field-level/index.js +1 -1
  456. package/components/data-field-level-CKlijSjc.cjs +55 -0
  457. package/components/data-field-level-Da8Pwva2.js +247 -0
  458. package/components/data-field-panel/index.cjs +1 -1
  459. package/components/data-field-panel/index.js +1 -1
  460. package/components/data-field-panel-47PGrrIi.cjs +87 -0
  461. package/components/data-field-panel-CgqJ1bLg.js +385 -0
  462. package/components/data-fields-select/index.cjs +1 -1
  463. package/components/data-fields-select/index.js +1 -1
  464. package/components/data-fields-select-B40TXGd7.js +262 -0
  465. package/components/data-fields-select-CQVqxMCS.cjs +41 -0
  466. package/components/dataset-selector-list/index.cjs +1 -1
  467. package/components/dataset-selector-list/index.js +1 -1
  468. package/components/dataset-selector-list-C0dheupb.js +313 -0
  469. package/components/dataset-selector-list-CKQ7OgMN.cjs +75 -0
  470. package/components/dataset-selector-row/index.cjs +1 -1
  471. package/components/dataset-selector-row/index.js +1 -1
  472. package/components/dataset-selector-row-DP6QUWYs.js +273 -0
  473. package/components/dataset-selector-row-_FZPTBE1.cjs +79 -0
  474. package/components/date-comparison-filter-options.config-BSzzAJPM.js +126 -0
  475. package/components/date-comparison-filter-options.de-BSRz6o0Y.js +55 -0
  476. package/components/date-comparison-filter-options.en-DLbsNe_t.js +55 -0
  477. package/components/date-comparison-filter-options.es-ChO2qlIh.js +55 -0
  478. package/components/date-comparison-filter-options.fr-D9HKPj4L.js +55 -0
  479. package/components/date-comparison-filter-options.nl-BOMQo1X3.js +55 -0
  480. package/components/date-comparison-filter-positioning.config-DokVHoP8.js +38 -0
  481. package/components/date-comparison-filter-slots.config-Cvze969w.js +33 -0
  482. package/components/date-filter-options.config-C6VvDjd8.js +118 -0
  483. package/components/date-filter-options.config-saR_u4w-.cjs +20 -0
  484. package/components/date-filter-options.de-DVRUmqQh.js +51 -0
  485. package/components/date-filter-options.en-Df-q6Eqf.js +51 -0
  486. package/components/date-filter-options.es-eclXOdtw.js +51 -0
  487. package/components/date-filter-options.fr-B6CHuun3.js +51 -0
  488. package/components/date-filter-options.nl-qgltgj2Q.js +51 -0
  489. package/components/date-filter-positioning.config-D8wFL4L9.js +38 -0
  490. package/components/date-filter-slots.config-Y8hmQh0S.js +37 -0
  491. package/components/de-CFFG1QN7.cjs +20 -0
  492. package/components/de-CPcJgwTx.js +488 -0
  493. package/components/display-settings/index.cjs +1 -1
  494. package/components/display-settings/index.js +1 -1
  495. package/components/display-settings-1AdcENcv.cjs +140 -0
  496. package/components/display-settings-B-eamVdN.js +313 -0
  497. package/components/display-settings-binning/index.cjs +1 -1
  498. package/components/display-settings-binning/index.js +1 -1
  499. package/components/display-settings-binning-BGtp0Wvl.js +110 -0
  500. package/components/display-settings-binning-Cs8MS7BY.cjs +56 -0
  501. package/components/display-settings-datetime/index.cjs +1 -1
  502. package/components/display-settings-datetime/index.js +1 -1
  503. package/components/display-settings-datetime-CbTnG486.js +413 -0
  504. package/components/display-settings-datetime-q20qbrOL.cjs +217 -0
  505. package/components/display-settings-grand-totals/index.cjs +1 -1
  506. package/components/display-settings-grand-totals/index.js +1 -1
  507. package/components/display-settings-grand-totals-BDeeC6-h.js +89 -0
  508. package/components/display-settings-grand-totals-DdEXs_mA.cjs +44 -0
  509. package/components/display-settings-numeric/index.cjs +1 -1
  510. package/components/display-settings-numeric/index.js +1 -1
  511. package/components/display-settings-numeric-C5FlahN_.js +479 -0
  512. package/components/display-settings-numeric-PtcxP80Z.cjs +190 -0
  513. package/components/display-settings-period-over-period/index.cjs +1 -1
  514. package/components/display-settings-period-over-period/index.js +1 -1
  515. package/components/display-settings-period-over-period-CUlsSQZv.js +433 -0
  516. package/components/display-settings-period-over-period-Csv7Kwri.cjs +229 -0
  517. package/components/donut-chart-options.config-BhKFa3dz.cjs +20 -0
  518. package/components/donut-chart-options.config-CjtEDiJI.js +207 -0
  519. package/components/donut-chart-options.de-yLZjyrqC.js +85 -0
  520. package/components/donut-chart-options.en-CtvZekZO.js +85 -0
  521. package/components/donut-chart-options.es-C89OYrl4.js +85 -0
  522. package/components/donut-chart-options.fr-Cy4UUjdS.js +85 -0
  523. package/components/donut-chart-options.nl-BT6vFbJ5.js +85 -0
  524. package/components/donut-chart-positioning.config-EudGY45O.js +48 -0
  525. package/components/donut-chart-positioning.config-m_uVKoNn.cjs +20 -0
  526. package/components/donut-chart-slots.config-DilGk7ju.js +39 -0
  527. package/components/dropdown-filter-options.config-DFJKns3l.js +153 -0
  528. package/components/dropdown-filter-options.de-CGwxbXwe.js +54 -0
  529. package/components/dropdown-filter-options.en-D4YCo5Bj.js +54 -0
  530. package/components/dropdown-filter-options.es-BvFyqxrr.js +54 -0
  531. package/components/dropdown-filter-options.fr-9KlpP9JQ.js +54 -0
  532. package/components/dropdown-filter-options.nl-4HUfHHPT.js +54 -0
  533. package/components/dropdown-filter-positioning.config-D1tdnuCP.js +38 -0
  534. package/components/dropdown-filter-slots.config-7heZtoEY.js +38 -0
  535. package/components/es-Bd7rtLnM.cjs +20 -0
  536. package/components/es-fXPjX3vY.js +488 -0
  537. package/components/evolution-number-options.config-C3tU650w.js +228 -0
  538. package/components/evolution-number-options.config-CKL01dAR.cjs +20 -0
  539. package/components/evolution-number-options.de-BrdcqfjF.js +76 -0
  540. package/components/evolution-number-options.en-Sd6L4_T9.js +76 -0
  541. package/components/evolution-number-options.es-RgSav5iQ.js +76 -0
  542. package/components/evolution-number-options.fr-BD73JeDU.js +76 -0
  543. package/components/evolution-number-options.nl-WHBQ04_S.js +76 -0
  544. package/components/evolution-number-positioning.config-BcLsEydB.js +48 -0
  545. package/components/evolution-number-positioning.config-CJii0q3V.cjs +20 -0
  546. package/components/evolution-number-slots.config-noZzIHkT.js +37 -0
  547. package/components/filter-expression-picker/index.cjs +1 -1
  548. package/components/filter-expression-picker/index.js +1 -1
  549. package/components/filter-expression-picker-D28THjzU.cjs +38 -0
  550. package/components/filter-expression-picker-nW1Hff7C.js +425 -0
  551. package/components/filter-item/index.cjs +1 -1
  552. package/components/filter-item/index.js +1 -1
  553. package/components/filter-item-BirgEXGE.cjs +58 -0
  554. package/components/filter-item-BoYKU9tK.js +242 -0
  555. package/components/filter-value-picker/index.cjs +1 -1
  556. package/components/filter-value-picker/index.js +1 -1
  557. package/components/filter-value-picker-1kMJ9slB.js +151 -0
  558. package/components/filter-value-picker-D08bAAKt.cjs +60 -0
  559. package/components/filter-value-picker-datetime/index.cjs +1 -1
  560. package/components/filter-value-picker-datetime/index.js +1 -1
  561. package/components/filter-value-picker-datetime-Cnwlipah.js +139 -0
  562. package/components/filter-value-picker-datetime-OIgFSdU2.cjs +42 -0
  563. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  564. package/components/filter-value-picker-hierarchy/index.js +1 -1
  565. package/components/filter-value-picker-hierarchy-BGgHIji-.cjs +47 -0
  566. package/components/filter-value-picker-hierarchy-DdMLbCO3.js +232 -0
  567. package/components/filter-value-picker-numeric/index.cjs +1 -1
  568. package/components/filter-value-picker-numeric/index.js +1 -1
  569. package/components/filter-value-picker-numeric-BL2gD2ED.cjs +48 -0
  570. package/components/filter-value-picker-numeric-BqrsENh6.js +219 -0
  571. package/components/filters/index.cjs +1 -1
  572. package/components/filters/index.js +1 -1
  573. package/components/filters/transformations/transform-filters.d.ts +6 -2
  574. package/components/filters/types.d.ts +7 -1
  575. package/components/filters-BLss6wBx.js +407 -0
  576. package/components/filters-rjc5xsF_.cjs +150 -0
  577. package/components/formula/index.cjs +1 -1
  578. package/components/formula/index.js +1 -1
  579. package/components/formula-CNzBOTRQ.js +138 -0
  580. package/components/formula-DeRjtboJ.cjs +45 -0
  581. package/components/formula-codemirror-D1hgPIW_.cjs +215 -0
  582. package/components/formula-codemirror-pnijOvXU.js +12018 -0
  583. package/components/formula-display-store-BBMmHCRp.js +1090 -0
  584. package/components/formula-display-store-Dn7r5kK8.cjs +20 -0
  585. package/components/formula-editor/formula-editor.d.ts +18 -3
  586. package/components/formula-editor/index.cjs +1 -1
  587. package/components/formula-editor/index.js +3 -3
  588. package/components/formula-editor-DvDB6JYI.js +690 -0
  589. package/components/formula-editor-Uejdzkm6.cjs +224 -0
  590. package/components/formula-field/index.cjs +1 -1
  591. package/components/formula-field/index.js +1 -1
  592. package/components/formula-field-CNyKz9wY.cjs +20 -0
  593. package/components/formula-field-o_zZQACN.js +40 -0
  594. package/components/formula-input-base-DlVNZBUA.js +236 -0
  595. package/components/formula-input-base-fTF1KXpl.cjs +49 -0
  596. package/components/fr-B50vb6LP.js +488 -0
  597. package/components/fr-kmzf1vls.cjs +20 -0
  598. package/components/funnel-chart-options.config-6ifTq7Xh.js +207 -0
  599. package/components/funnel-chart-options.config-BOI6bzbw.cjs +20 -0
  600. package/components/funnel-chart-options.de-DIoKO3fr.js +76 -0
  601. package/components/funnel-chart-options.en-Doj4mREG.js +76 -0
  602. package/components/funnel-chart-options.es-D-GP_b6C.js +76 -0
  603. package/components/funnel-chart-options.fr-BoQkeuls.js +76 -0
  604. package/components/funnel-chart-options.nl-CRq-RjxK.js +76 -0
  605. package/components/funnel-chart-positioning.config-B_C8nr1y.js +48 -0
  606. package/components/funnel-chart-positioning.config-DhrMsuyt.cjs +20 -0
  607. package/components/funnel-chart-slots.config-BWszdEe8.js +43 -0
  608. package/components/get-dataset-name-DYLJB67F.js +27 -0
  609. package/components/get-dataset-name-DrTVBElb.cjs +20 -0
  610. package/components/groupings-BPlu4GFe.cjs +20 -0
  611. package/components/groupings-DAj2iFeA.js +52 -0
  612. package/components/heat-map-options.config-C4lqg4Gf.cjs +20 -0
  613. package/components/heat-map-options.config-CezceVM3.js +224 -0
  614. package/components/heat-map-options.de-CdqO8c7P.js +75 -0
  615. package/components/heat-map-options.en-BAnXacHE.js +75 -0
  616. package/components/heat-map-options.es-8rTCVZlw.js +75 -0
  617. package/components/heat-map-options.fr-DbGhKWbq.js +75 -0
  618. package/components/heat-map-options.nl-nw2vqBOn.js +75 -0
  619. package/components/heat-map-positioning.config-Bya2_TR8.cjs +20 -0
  620. package/components/heat-map-positioning.config-Cxembqle.js +48 -0
  621. package/components/heat-map-slots.config-Cwun49Qb.js +37 -0
  622. package/components/heat-table-options.config-C7kvRE10.js +372 -0
  623. package/components/heat-table-options.config-DiX5eL4B.cjs +20 -0
  624. package/components/heat-table-options.de-PCwpTsHu.js +112 -0
  625. package/components/heat-table-options.en-DCNhZ0Qw.js +112 -0
  626. package/components/heat-table-options.es-Dhtu0ztS.js +112 -0
  627. package/components/heat-table-options.fr-dtKsuwpe.js +112 -0
  628. package/components/heat-table-options.nl-Bc0JFpfk.js +112 -0
  629. package/components/heat-table-positioning.config-CNeTnuHy.js +55 -0
  630. package/components/heat-table-positioning.config-CYZr5ksc.cjs +20 -0
  631. package/components/heat-table-slots.config-nGB_B2mh.js +49 -0
  632. package/components/helpers-B2IWxa9q.cjs +20 -0
  633. package/components/helpers-irnB2xbq.js +68 -0
  634. package/components/hexbin-map-options.config-8brGMkt_.js +276 -0
  635. package/components/hexbin-map-options.config-BVajY1MH.cjs +20 -0
  636. package/components/hexbin-map-options.de-IOtNvdRA.js +108 -0
  637. package/components/hexbin-map-options.en-DKEF0zQn.js +108 -0
  638. package/components/hexbin-map-options.es-FkXMepZ7.js +108 -0
  639. package/components/hexbin-map-options.fr-DT7-Cefu.js +108 -0
  640. package/components/hexbin-map-options.nl-BwgDBrw4.js +108 -0
  641. package/components/hexbin-map-positioning.config-Dfdgub0y.js +48 -0
  642. package/components/hexbin-map-positioning.config-bXZEY4nP.cjs +20 -0
  643. package/components/hexbin-map-slots.config-BK-ftozd.js +37 -0
  644. package/components/image-options.config-Cz55iN7J.js +153 -0
  645. package/components/image-options.de-Bh8QqYb_.js +86 -0
  646. package/components/image-options.en-D2iUVarz.js +86 -0
  647. package/components/image-options.es-CKpabSfB.js +86 -0
  648. package/components/image-options.fr-vfaeguWy.js +86 -0
  649. package/components/image-options.nl-B16JINhD.js +86 -0
  650. package/components/image-slots.config-BPJRdlMR.cjs +20 -0
  651. package/components/image-slots.config-kvHutBFK.js +24 -0
  652. package/components/index.cjs +1 -1
  653. package/components/index.js +64 -64
  654. package/components/interactive-viz-item/index.cjs +1 -1
  655. package/components/interactive-viz-item/index.js +1 -1
  656. package/components/interactive-viz-item-C3fzZq7j.js +693 -0
  657. package/components/interactive-viz-item-D-hR2G5x.cjs +247 -0
  658. package/components/item-context-configs.js +1 -1
  659. package/components/item-grid/index.cjs +1 -1
  660. package/components/item-grid/index.js +1 -1
  661. package/components/item-grid-BruAZOla.cjs +113 -0
  662. package/components/item-grid-cyMiRw7P.js +4559 -0
  663. package/components/item-option/index.cjs +1 -1
  664. package/components/item-option/index.js +1 -1
  665. package/components/item-option-BclNWwdZ.cjs +252 -0
  666. package/components/item-option-CZb01VJb.js +919 -0
  667. package/components/item-option-action-button-group/index.cjs +1 -1
  668. package/components/item-option-action-button-group/index.js +1 -1
  669. package/components/item-option-action-button-group-AkMaJHuv.cjs +53 -0
  670. package/components/item-option-action-button-group-HfUtaTi9.js +118 -0
  671. package/components/item-option-base-CZegYACf.cjs +56 -0
  672. package/components/item-option-base-DlHZAfWZ.js +123 -0
  673. package/components/item-option-color-palette-picker/index.cjs +1 -1
  674. package/components/item-option-color-palette-picker/index.js +1 -1
  675. package/components/item-option-color-palette-picker-B336qQRk.cjs +40 -0
  676. package/components/item-option-color-palette-picker-Dt4z0c4W.js +2041 -0
  677. package/components/item-option-color-picker/index.cjs +1 -1
  678. package/components/item-option-color-picker/index.js +1 -1
  679. package/components/item-option-color-picker-BRO416_T.js +87 -0
  680. package/components/item-option-color-picker-Hfu2fhRF.cjs +34 -0
  681. package/components/item-option-color-range/index.cjs +1 -1
  682. package/components/item-option-color-range/index.js +1 -1
  683. package/components/item-option-color-range-DWoaz57E.cjs +98 -0
  684. package/components/item-option-color-range-DgalNZ9b.js +220 -0
  685. package/components/item-option-multi-language-field/index.cjs +1 -1
  686. package/components/item-option-multi-language-field/index.js +1 -1
  687. package/components/item-option-multi-language-field-BvJXIFgu.js +82 -0
  688. package/components/item-option-multi-language-field-IQP6fbgB.cjs +33 -0
  689. package/components/item-option-number-field/index.cjs +1 -1
  690. package/components/item-option-number-field/index.js +1 -1
  691. package/components/item-option-number-field-B07NhNSm.cjs +38 -0
  692. package/components/item-option-number-field-CvGknDpu.js +102 -0
  693. package/components/item-option-panel/index.cjs +1 -1
  694. package/components/item-option-panel/index.js +1 -1
  695. package/components/item-option-panel-BWP9E8cW.cjs +67 -0
  696. package/components/item-option-panel-RYdx8Hfk.js +183 -0
  697. package/components/item-option-picker/index.cjs +1 -1
  698. package/components/item-option-picker/index.js +1 -1
  699. package/components/item-option-picker-C7SZfnLP.cjs +37 -0
  700. package/components/item-option-picker-DM1pU3w9.js +77 -0
  701. package/components/item-option-position-picker/index.cjs +1 -1
  702. package/components/item-option-position-picker/index.js +1 -1
  703. package/components/item-option-position-picker-BuDvx3SX.js +117 -0
  704. package/components/item-option-position-picker-M9CBH9NE.cjs +32 -0
  705. package/components/item-option-positions-number-field/index.cjs +1 -1
  706. package/components/item-option-positions-number-field/index.js +1 -1
  707. package/components/item-option-positions-number-field-C4zW5-Hc.cjs +49 -0
  708. package/components/item-option-positions-number-field-RN5AG-Ic.js +164 -0
  709. package/components/item-option-radio-button-group/index.cjs +1 -1
  710. package/components/item-option-radio-button-group/index.js +1 -1
  711. package/components/item-option-radio-button-group-Ce780UyR.js +74 -0
  712. package/components/item-option-radio-button-group-DRiwqorh.cjs +37 -0
  713. package/components/item-option-slider/index.cjs +1 -1
  714. package/components/item-option-slider/index.js +1 -1
  715. package/components/item-option-slider/item-option-slider.d.ts +2 -1
  716. package/components/item-option-slider-BUdWMAzT.js +81 -0
  717. package/components/item-option-slider-CycHQFnr.cjs +33 -0
  718. package/components/item-option-switch/index.cjs +1 -1
  719. package/components/item-option-switch/index.js +1 -1
  720. package/components/item-option-switch-CM5R8wO_.cjs +30 -0
  721. package/components/item-option-switch-CvcZSytb.js +69 -0
  722. package/components/item-option-text-field/index.cjs +1 -1
  723. package/components/item-option-text-field/index.js +1 -1
  724. package/components/item-option-text-field-BZjOilSu.cjs +33 -0
  725. package/components/item-option-text-field-CyuYUITv.js +80 -0
  726. package/components/item-options-configs.cjs +1 -1
  727. package/components/item-options-configs.js +45 -45
  728. package/components/item-slot-drop/index.cjs +1 -1
  729. package/components/item-slot-drop/index.js +1 -1
  730. package/components/item-slot-drop-C6DO5mPk.js +331 -0
  731. package/components/item-slot-drop-CrzFRobc.cjs +91 -0
  732. package/components/item-slot-drop-panel/index.cjs +1 -1
  733. package/components/item-slot-drop-panel/index.js +1 -1
  734. package/components/item-slot-drop-panel-ChazcNSe.cjs +57 -0
  735. package/components/item-slot-drop-panel-DvmPk1pJ.js +355 -0
  736. package/components/item-slot-picker/index.cjs +1 -1
  737. package/components/item-slot-picker/index.js +1 -1
  738. package/components/item-slot-picker-CmG71mGy.js +505 -0
  739. package/components/item-slot-picker-DQkG3Lt7.cjs +174 -0
  740. package/components/item-slot-picker-panel/index.cjs +1 -1
  741. package/components/item-slot-picker-panel/index.js +1 -1
  742. package/components/item-slot-picker-panel-Bi2jXvQA.cjs +81 -0
  743. package/components/item-slot-picker-panel-DmGYI5YI.js +448 -0
  744. package/components/item-slots-configs.cjs +1 -1
  745. package/components/item-slots-configs.js +45 -45
  746. package/components/line-chart-options.config-CVR_mb2z.cjs +20 -0
  747. package/components/line-chart-options.config-OeRMkKMP.js +248 -0
  748. package/components/line-chart-options.de-CihDXrQ4.js +79 -0
  749. package/components/line-chart-options.de-DMuN0E3y.cjs +20 -0
  750. package/components/line-chart-options.en-81dHDKJE.cjs +20 -0
  751. package/components/line-chart-options.en-CPWllKeE.js +79 -0
  752. package/components/line-chart-options.es-CshvnhMH.cjs +20 -0
  753. package/components/line-chart-options.es-IX7Hu1Jk.js +79 -0
  754. package/components/line-chart-options.fr-CkLIbP6Y.js +79 -0
  755. package/components/line-chart-options.fr-EMHHZpiy.cjs +20 -0
  756. package/components/line-chart-options.nl-C9FWbWJy.cjs +20 -0
  757. package/components/line-chart-options.nl-Du2kphsn.js +79 -0
  758. package/components/line-chart-positioning.config-CFHFq0wp.js +55 -0
  759. package/components/line-chart-positioning.config-Cqnfz4Lc.cjs +20 -0
  760. package/components/line-chart-slots.config-C6LEwEwh.js +55 -0
  761. package/components/localized-mixin-B4fDdsF0.js +45 -0
  762. package/components/localized-mixin-CUuRZu9t.cjs +20 -0
  763. package/components/map-tile-providers-RN2cWRln.js +115 -0
  764. package/components/marker-map-options.config-CtW7nl1C.js +117 -0
  765. package/components/marker-map-options.config-M9BvYinR.cjs +20 -0
  766. package/components/marker-map-options.de-DVb2ab5i.js +63 -0
  767. package/components/marker-map-options.en-BNwkDxQB.js +63 -0
  768. package/components/marker-map-options.es-CY2DRGKv.js +63 -0
  769. package/components/marker-map-options.fr-D31wgwxG.js +63 -0
  770. package/components/marker-map-options.nl-DyZo_CFt.js +63 -0
  771. package/components/marker-map-positioning.config-BM-ZrmE9.cjs +20 -0
  772. package/components/marker-map-positioning.config-x3KUsgzD.js +48 -0
  773. package/components/marker-map-slots.config-Cyk-QFPT.js +37 -0
  774. package/components/nl-Do6FfV7U.js +488 -0
  775. package/components/nl-FcPtgtcL.cjs +20 -0
  776. package/components/ohlc-chart-options.config-DOqKN6ov.cjs +20 -0
  777. package/components/ohlc-chart-options.config-Db40TXcB.js +124 -0
  778. package/components/ohlc-chart-options.de-Brd2iN0B.js +61 -0
  779. package/components/ohlc-chart-options.de-DqGHkVNG.cjs +20 -0
  780. package/components/ohlc-chart-options.en-C3AWmo7s.js +61 -0
  781. package/components/ohlc-chart-options.en-DrWja-A6.cjs +20 -0
  782. package/components/ohlc-chart-options.es-Cac117z2.cjs +20 -0
  783. package/components/ohlc-chart-options.es-Cwl_vxNQ.js +61 -0
  784. package/components/ohlc-chart-options.fr-DJuaTjBf.cjs +20 -0
  785. package/components/ohlc-chart-options.fr-STOjKGOk.js +61 -0
  786. package/components/ohlc-chart-options.nl-C7_qhngI.cjs +20 -0
  787. package/components/ohlc-chart-options.nl-CV0A0J84.js +61 -0
  788. package/components/ohlc-chart-positioning.config-C-vx6lt-.js +78 -0
  789. package/components/ohlc-chart-positioning.config-SIhJhFel.cjs +20 -0
  790. package/components/ohlc-chart-slots.config-CQFi8BIT.js +68 -0
  791. package/components/parallel-coordinates-plot-options.config-Bw8T5EE4.js +42 -0
  792. package/components/parallel-coordinates-plot-options.de-WRF50oS3.js +30 -0
  793. package/components/parallel-coordinates-plot-options.en-CttM0XeT.js +30 -0
  794. package/components/parallel-coordinates-plot-options.es-Bi2HrtUG.js +30 -0
  795. package/components/parallel-coordinates-plot-options.fr-wE6jc23K.js +30 -0
  796. package/components/parallel-coordinates-plot-options.nl-ByxbF6Re.js +30 -0
  797. package/components/parallel-coordinates-plot-positioning.config-BaofZgit.js +48 -0
  798. package/components/parallel-coordinates-plot-positioning.config-Br1OGTEZ.cjs +20 -0
  799. package/components/parallel-coordinates-plot-slots.config-D5o-5y_j.js +46 -0
  800. package/components/pivot-table-options.config-DdbSCsRL.cjs +20 -0
  801. package/components/pivot-table-options.config-gL2C_zvT.js +245 -0
  802. package/components/pivot-table-options.de-CZjCOf23.js +67 -0
  803. package/components/pivot-table-options.en-Z6QZwj0n.js +67 -0
  804. package/components/pivot-table-options.es-DW1enov2.js +67 -0
  805. package/components/pivot-table-options.fr-Cl4jkSR4.js +67 -0
  806. package/components/pivot-table-options.nl-CaWEP9qN.js +67 -0
  807. package/components/pivot-table-positioning.config-BaBkuXV0.cjs +20 -0
  808. package/components/pivot-table-positioning.config-DeeS1MaO.js +55 -0
  809. package/components/pivot-table-slots.config-Cl5z3IQo.js +55 -0
  810. package/components/pyramid-chart-options.config-348RYXh8.js +260 -0
  811. package/components/pyramid-chart-options.config-I2ZIo_GV.cjs +20 -0
  812. package/components/pyramid-chart-options.de-C7n_k-tE.js +102 -0
  813. package/components/pyramid-chart-options.en-Cu93qdAo.js +102 -0
  814. package/components/pyramid-chart-options.es-DCRAv4r_.js +102 -0
  815. package/components/pyramid-chart-options.fr-CLXgcrPz.js +102 -0
  816. package/components/pyramid-chart-options.nl-CylUmHpw.js +102 -0
  817. package/components/pyramid-chart-positioning.config-D14NnyH1.js +55 -0
  818. package/components/pyramid-chart-positioning.config-g55mkotb.cjs +20 -0
  819. package/components/pyramid-chart-slots.config-DNzq2hMx.js +50 -0
  820. package/components/radar-chart-options.config-BeGjchnc.js +150 -0
  821. package/components/radar-chart-options.config-CCMh7qJG.cjs +20 -0
  822. package/components/radar-chart-options.de-BZPerBca.js +46 -0
  823. package/components/radar-chart-options.en-tDJgJQVC.js +46 -0
  824. package/components/radar-chart-options.es-Dz4wRR-P.js +46 -0
  825. package/components/radar-chart-options.fr-D5KXeury.js +46 -0
  826. package/components/radar-chart-options.nl-D3_CmNB3.js +46 -0
  827. package/components/radar-chart-positioning.config-C9fiYOnB.js +55 -0
  828. package/components/radar-chart-positioning.config-CWGfQ7-j.cjs +20 -0
  829. package/components/radar-chart-slots.config-CXgfvAkt.js +53 -0
  830. package/components/regular-table-options.config-Bf0VAtT_.js +148 -0
  831. package/components/regular-table-options.config-DqZD5P9l.cjs +20 -0
  832. package/components/regular-table-options.de-g9j453gb.js +57 -0
  833. package/components/regular-table-options.en-BrufALdp.js +57 -0
  834. package/components/regular-table-options.es-CTDJJHWO.js +57 -0
  835. package/components/regular-table-options.fr-CwmYI6Kh.js +57 -0
  836. package/components/regular-table-options.nl-Dco7Br5G.js +57 -0
  837. package/components/regular-table-positioning.config-DegSA7rc.js +38 -0
  838. package/components/regular-table-slots.config-DCkw4Xkq.js +35 -0
  839. package/components/route-map-options.config-DVo8FTke.cjs +20 -0
  840. package/components/route-map-options.config-DWG5127-.js +326 -0
  841. package/components/route-map-options.de-C8gPppGo.js +76 -0
  842. package/components/route-map-options.en-Bqo2qPTY.js +76 -0
  843. package/components/route-map-options.es-Bk1nyazp.js +76 -0
  844. package/components/route-map-options.fr-vq0ht9wS.js +76 -0
  845. package/components/route-map-options.nl-CBhNlitV.js +76 -0
  846. package/components/route-map-positioning.config-Cd4azpuW.js +66 -0
  847. package/components/route-map-positioning.config-Dswq4pH_.cjs +20 -0
  848. package/components/route-map-slots.config-DJ76FOsJ.js +59 -0
  849. package/components/sankey-diagram-options.config-C8Gm15Mi.cjs +20 -0
  850. package/components/sankey-diagram-options.config-DW72WBKU.js +126 -0
  851. package/components/sankey-diagram-options.de-CDt5-4Rb.js +63 -0
  852. package/components/sankey-diagram-options.en-65nfEWo_.js +63 -0
  853. package/components/sankey-diagram-options.es-JD4SHY3x.js +63 -0
  854. package/components/sankey-diagram-options.fr-B7wQDggY.js +63 -0
  855. package/components/sankey-diagram-options.nl-CHqVVjut.js +63 -0
  856. package/components/sankey-diagram-positioning.config-CAHzdKBq.cjs +20 -0
  857. package/components/sankey-diagram-positioning.config-CzGCvTeX.js +66 -0
  858. package/components/sankey-diagram-slots.config-BCc8P4j0.js +61 -0
  859. package/components/scatter-plot-options.config-CUyWy2xE.js +322 -0
  860. package/components/scatter-plot-options.config-Cd4DvLoN.cjs +20 -0
  861. package/components/scatter-plot-options.de-BO73A_o5.js +96 -0
  862. package/components/scatter-plot-options.en-B6S8Yf66.js +96 -0
  863. package/components/scatter-plot-options.es-jbzKhq4S.js +96 -0
  864. package/components/scatter-plot-options.fr-DMFP8FB4.js +96 -0
  865. package/components/scatter-plot-options.nl-BqN6XbnS.js +96 -0
  866. package/components/scatter-plot-positioning.config-C7nu7quv.js +77 -0
  867. package/components/scatter-plot-positioning.config-CrVJZ-X9.cjs +20 -0
  868. package/components/scatter-plot-slots.config-BMTdhTZG.js +74 -0
  869. package/components/search-filter-options.config-B_qQjr68.js +103 -0
  870. package/components/search-filter-options.de-BxVThclj.js +42 -0
  871. package/components/search-filter-options.en-CVxOFFq-.js +42 -0
  872. package/components/search-filter-options.es-YKtCfXeL.js +42 -0
  873. package/components/search-filter-options.fr-GGa8ofab.js +42 -0
  874. package/components/search-filter-options.nl-ysVe1z-i.js +42 -0
  875. package/components/search-filter-positioning.config-DOSL-FX_.js +38 -0
  876. package/components/search-filter-slots.config-qCILSYzs.js +39 -0
  877. package/components/set-locale-1r0lDa7J.cjs +20 -0
  878. package/components/set-locale-DBVSKk_b.js +43 -0
  879. package/components/slicer-filter-options.config-Cyjd_SRY.cjs +20 -0
  880. package/components/slicer-filter-options.config-DK62SCMp.js +235 -0
  881. package/components/slicer-filter-options.de-Ck5STkcT.js +69 -0
  882. package/components/slicer-filter-options.en-RaYV5qQy.js +69 -0
  883. package/components/slicer-filter-options.es-C1LS6cqV.js +69 -0
  884. package/components/slicer-filter-options.fr-CYOej3j3.js +69 -0
  885. package/components/slicer-filter-options.nl-B9CyFXTX.js +69 -0
  886. package/components/slicer-filter-positioning.config-7sucz3_y.js +48 -0
  887. package/components/slicer-filter-positioning.config-D9Tehydc.cjs +20 -0
  888. package/components/slicer-filter-slots.config-C9_NdJm4.js +44 -0
  889. package/components/slider-filter-options.config-BeIw6IrQ.cjs +20 -0
  890. package/components/slider-filter-options.config-CP5bXdih.js +72 -0
  891. package/components/slider-filter-options.de-CUPN4B_3.js +35 -0
  892. package/components/slider-filter-options.en-CqnlQHF8.js +35 -0
  893. package/components/slider-filter-options.es-CN-cg2rH.js +35 -0
  894. package/components/slider-filter-options.fr-BxgSJRs4.js +35 -0
  895. package/components/slider-filter-options.nl-Cd41AI1Z.js +35 -0
  896. package/components/slider-filter-positioning.config-DSoEN2ip.js +38 -0
  897. package/components/slider-filter-slots.config-15eAAGVn.js +43 -0
  898. package/components/slot-menu/index.cjs +1 -1
  899. package/components/slot-menu/index.js +1 -1
  900. package/components/slot-menu-AavTGkLk.cjs +71 -0
  901. package/components/slot-menu-Dz-O1ypQ.js +426 -0
  902. package/components/slot-menu-list/index.cjs +1 -1
  903. package/components/slot-menu-list/index.js +1 -1
  904. package/components/slot-menu-list-BegM0w8C.js +347 -0
  905. package/components/slot-menu-list-Cahst0TY.cjs +44 -0
  906. package/components/slots-config-Cd4xAG4H.cjs +20 -0
  907. package/components/slots-config-D3ivNWtC.js +76 -0
  908. package/components/spacer-options.config-C27xkF_H.js +23 -0
  909. package/components/speedometer-chart-options.config-CtWGujmb.js +246 -0
  910. package/components/speedometer-chart-options.config-e9Ktyajm.cjs +20 -0
  911. package/components/speedometer-chart-options.de-9J5HFt8T.js +66 -0
  912. package/components/speedometer-chart-options.en-DSQsXJfa.js +66 -0
  913. package/components/speedometer-chart-options.es-BGphL673.js +66 -0
  914. package/components/speedometer-chart-options.fr-Cj4C4th7.js +66 -0
  915. package/components/speedometer-chart-options.nl-BKNd6tYT.js +66 -0
  916. package/components/speedometer-chart-positioning.config-CZgXkEsG.cjs +20 -0
  917. package/components/speedometer-chart-positioning.config-DiDSe44G.js +48 -0
  918. package/components/speedometer-chart-slots.config-DfTw7JTF.js +39 -0
  919. package/components/spike-map-options.config-Ch0p9Q5l.js +413 -0
  920. package/components/spike-map-options.config-D-T_kT1C.cjs +20 -0
  921. package/components/spike-map-options.de-J48HW0-l.js +103 -0
  922. package/components/spike-map-options.en-Cic1NUan.js +103 -0
  923. package/components/spike-map-options.es-DbCa45oc.js +103 -0
  924. package/components/spike-map-options.fr-LqDsPbpZ.js +103 -0
  925. package/components/spike-map-options.nl-CRaM6WoB.js +103 -0
  926. package/components/spike-map-positioning.config-RExJASrJ.cjs +20 -0
  927. package/components/spike-map-positioning.config-W-xJbchu.js +55 -0
  928. package/components/spike-map-slots.config-i-c0F9QM.js +47 -0
  929. package/components/strip-plot-options.config-WICS2rnK.js +53 -0
  930. package/components/strip-plot-options.de-vzJck0Vn.js +31 -0
  931. package/components/strip-plot-options.en-Bdv_ZOrd.js +31 -0
  932. package/components/strip-plot-options.es-B91vttJc.js +31 -0
  933. package/components/strip-plot-options.fr-DJQiJ_Zf.js +31 -0
  934. package/components/strip-plot-options.nl-Dx7PVRrW.js +31 -0
  935. package/components/strip-plot-positioning.config-C70pTRqg.cjs +20 -0
  936. package/components/strip-plot-positioning.config-DsKb9ton.js +48 -0
  937. package/components/strip-plot-slots.config-BuF7X3xN.js +38 -0
  938. package/components/sunburst-chart-options.config-BojxVGMu.cjs +20 -0
  939. package/components/sunburst-chart-options.config-Bz-jP-gZ.js +180 -0
  940. package/components/sunburst-chart-options.de-Cv5jxNjX.js +60 -0
  941. package/components/sunburst-chart-options.en-wsOVOyb6.js +60 -0
  942. package/components/sunburst-chart-options.es-Qhu6VcVi.js +60 -0
  943. package/components/sunburst-chart-options.fr-GdCEoo8O.js +60 -0
  944. package/components/sunburst-chart-options.nl-oTUKol5z.js +60 -0
  945. package/components/sunburst-chart-positioning.config-BAhEnZtE.js +48 -0
  946. package/components/sunburst-chart-positioning.config-BHvaDZCC.cjs +20 -0
  947. package/components/sunburst-chart-slots.config-Cq-E6kyI.js +38 -0
  948. package/components/symbol-map-options.config-BmHEhC5t.cjs +20 -0
  949. package/components/symbol-map-options.config-I89tFJUU.js +177 -0
  950. package/components/symbol-map-options.de-CAapWyZM.js +66 -0
  951. package/components/symbol-map-options.en-CaXeV5i_.js +66 -0
  952. package/components/symbol-map-options.es-Ccu0xWZb.js +66 -0
  953. package/components/symbol-map-options.fr-B7F1XlQX.js +66 -0
  954. package/components/symbol-map-options.nl-DkV83AGA.js +66 -0
  955. package/components/symbol-map-positioning.config-B2RZQPND.cjs +20 -0
  956. package/components/symbol-map-positioning.config-DNPiG975.js +55 -0
  957. package/components/symbol-map-slots.config-BfdBHkzN.js +53 -0
  958. package/components/text-options.config-BUiRyi3L.js +67 -0
  959. package/components/text-options.de-Rtef15Lz.js +30 -0
  960. package/components/text-options.en-YdJ2bVwv.js +30 -0
  961. package/components/text-options.es-Chd8-zuc.js +30 -0
  962. package/components/text-options.fr-CWeBOXaW.js +30 -0
  963. package/components/text-options.nl-CyY1z7nM.js +30 -0
  964. package/components/text-slots.config-CM_ZaW3p.js +24 -0
  965. package/components/treemap-chart-options.config-i7BH9mNl.js +204 -0
  966. package/components/treemap-chart-options.config-xtu6J11C.cjs +20 -0
  967. package/components/treemap-chart-options.de-ByDBntoA.js +64 -0
  968. package/components/treemap-chart-options.en-0-5g1Vjs.js +64 -0
  969. package/components/treemap-chart-options.es-CDkb_3c3.js +64 -0
  970. package/components/treemap-chart-options.fr-rj0fjvUO.js +64 -0
  971. package/components/treemap-chart-options.nl-CQjDtoqG.js +64 -0
  972. package/components/treemap-chart-positioning.config-C0LbkC6B.js +55 -0
  973. package/components/treemap-chart-positioning.config-CIYguC9V.cjs +20 -0
  974. package/components/treemap-chart-slots.config-CHkGtIOa.js +47 -0
  975. package/components/utils/base.cjs +1 -1
  976. package/components/utils/base.js +2 -2
  977. package/components/utils-C8ATDm66.js +240 -0
  978. package/components/utils-Cx4X0PBr.cjs +20 -0
  979. package/components/utils.cjs +1 -1
  980. package/components/utils.js +2 -2
  981. package/components/venn-diagram-options.config-Wi0dQsAu.js +24 -0
  982. package/components/venn-diagram-positioning.config-CGmfYuoj.cjs +20 -0
  983. package/components/venn-diagram-positioning.config-CPUT2LXS.js +55 -0
  984. package/components/venn-diagram-slots.config-DY04aeYK.js +47 -0
  985. package/components/video-options.config-B6pQUPB7.js +127 -0
  986. package/components/video-options.de-CqDvojKb.js +60 -0
  987. package/components/video-options.en-DWsFJndr.js +60 -0
  988. package/components/video-options.es-C986CdLZ.js +60 -0
  989. package/components/video-options.fr-CF8lEOzZ.js +60 -0
  990. package/components/video-options.nl-DnHgROBb.js +60 -0
  991. package/components/video-slots.config-C-kXGzo3.js +24 -0
  992. package/components/viz-item-menu/index.cjs +1 -1
  993. package/components/viz-item-menu/index.js +1 -1
  994. package/components/viz-item-menu-BKXdr3_Q.cjs +55 -0
  995. package/components/viz-item-menu-XoCSn7z_.js +170 -0
  996. package/components/wordcloud-chart-options.config-BjLJyuyw.cjs +20 -0
  997. package/components/wordcloud-chart-options.config-D_AhgZRs.js +90 -0
  998. package/components/wordcloud-chart-options.de-0T6RwBxn.js +49 -0
  999. package/components/wordcloud-chart-options.en-xMN7HxWU.js +49 -0
  1000. package/components/wordcloud-chart-options.es-DPccPG_x.js +49 -0
  1001. package/components/wordcloud-chart-options.fr-D6DKbL9I.js +49 -0
  1002. package/components/wordcloud-chart-options.nl-CBKMvA4E.js +49 -0
  1003. package/components/wordcloud-chart-positioning.config-CqCOWKL4.js +55 -0
  1004. package/components/wordcloud-chart-positioning.config-roHRUT_m.cjs +20 -0
  1005. package/components/wordcloud-chart-slots.config-Cc5F92Tv.js +45 -0
  1006. package/custom-elements.json +122 -5
  1007. package/package.json +4 -4
  1008. package/react/components/formula-editor.component.ts +1 -1
  1009. package/react/esm/components/formula-editor.component.d.ts +1 -1
  1010. package/react/esm/components/formula-editor.component.js +1 -1
  1011. package/react/package.json +2 -2
  1012. package/types/formula.types.d.ts +5 -1
  1013. package/components/ai-chat-D9tYu1q6.cjs +0 -320
  1014. package/components/ai-chat-DstJ__Jz.js +0 -3973
  1015. package/components/ai-interaction-textarea-BR72djHD.cjs +0 -93
  1016. package/components/ai-interaction-textarea-C-feG2HA.js +0 -785
  1017. package/components/area-chart-options.config-Cf1VrUNv.cjs +0 -20
  1018. package/components/area-chart-options.config-DdYBA1_Q.js +0 -146
  1019. package/components/area-chart-options.de-C1ZU8WzK.js +0 -64
  1020. package/components/area-chart-options.de-D8BQNKUI.cjs +0 -20
  1021. package/components/area-chart-options.en-56iX6mWn.cjs +0 -20
  1022. package/components/area-chart-options.en-Co5sb5WQ.js +0 -64
  1023. package/components/area-chart-options.es-BXV6YNap.js +0 -64
  1024. package/components/area-chart-options.es-DFrkysGB.cjs +0 -20
  1025. package/components/area-chart-options.fr-CDj1qAj-.cjs +0 -20
  1026. package/components/area-chart-options.fr-D9Yg6Y7Q.js +0 -64
  1027. package/components/area-chart-options.nl-B6N9WBRI.js +0 -64
  1028. package/components/area-chart-options.nl-eo9FDeky.cjs +0 -20
  1029. package/components/area-chart-positioning.config-BFW46XhO.cjs +0 -20
  1030. package/components/area-chart-positioning.config-BfieFxgx.js +0 -55
  1031. package/components/area-chart-slots.config-Cmdkui4v.js +0 -55
  1032. package/components/bar-chart-options.config-BF7Q15FL.cjs +0 -20
  1033. package/components/bar-chart-options.config-Cx3n0tCr.js +0 -220
  1034. package/components/bar-chart-options.de-B5k5qDdb.cjs +0 -20
  1035. package/components/bar-chart-options.de-CXoolf76.js +0 -90
  1036. package/components/bar-chart-options.en-Bc7rYF-A.js +0 -90
  1037. package/components/bar-chart-options.en-BraK2iD0.cjs +0 -20
  1038. package/components/bar-chart-options.es-B_DHmJc7.cjs +0 -20
  1039. package/components/bar-chart-options.es-b99O5KLs.js +0 -90
  1040. package/components/bar-chart-options.fr-DzcIOVOG.cjs +0 -20
  1041. package/components/bar-chart-options.fr-vPbJFozS.js +0 -90
  1042. package/components/bar-chart-options.nl-CSyhgVMt.js +0 -90
  1043. package/components/bar-chart-options.nl-CjsRoRe7.cjs +0 -20
  1044. package/components/bar-chart-positioning.config-DURuF-Nr.cjs +0 -20
  1045. package/components/bar-chart-positioning.config-DzKDbJHr.js +0 -59
  1046. package/components/bar-chart-slots.config-BWvrLYv5.js +0 -50
  1047. package/components/base-BRVXqI7u.cjs +0 -20
  1048. package/components/base-CUexK-Bc.js +0 -249
  1049. package/components/box-plot-options.config-BkD5CYGz.cjs +0 -20
  1050. package/components/box-plot-options.config-DB9iCCZg.js +0 -296
  1051. package/components/box-plot-options.de-CoCVWTDq.cjs +0 -20
  1052. package/components/box-plot-options.de-Dggr8Ynl.js +0 -79
  1053. package/components/box-plot-options.en-DIyPB6AA.cjs +0 -20
  1054. package/components/box-plot-options.en-DwpTCV_F.js +0 -79
  1055. package/components/box-plot-options.es-DRDXc7nh.js +0 -79
  1056. package/components/box-plot-options.es-aIf8_OyE.cjs +0 -20
  1057. package/components/box-plot-options.fr-C2Q08CHF.cjs +0 -20
  1058. package/components/box-plot-options.fr-DEjIaGtd.js +0 -79
  1059. package/components/box-plot-options.nl-DGXHXqx7.cjs +0 -20
  1060. package/components/box-plot-options.nl-ET7bc0RD.js +0 -79
  1061. package/components/box-plot-positioning.config-CYmxOZMk.cjs +0 -20
  1062. package/components/box-plot-positioning.config-DmFvqCcg.js +0 -48
  1063. package/components/box-plot-slots.config-BknEys-m.js +0 -40
  1064. package/components/bubble-chart-options.config-4f9FUNhc.cjs +0 -20
  1065. package/components/bubble-chart-options.config-D8o_9z0b.js +0 -115
  1066. package/components/bubble-chart-options.de-TKXer4ZT.js +0 -49
  1067. package/components/bubble-chart-options.en-CBL-Ea6R.js +0 -49
  1068. package/components/bubble-chart-options.es-Dpx4Quxl.js +0 -49
  1069. package/components/bubble-chart-options.fr-DzBzHUT7.js +0 -49
  1070. package/components/bubble-chart-options.nl-DvcKSDZX.js +0 -49
  1071. package/components/bubble-chart-positioning.config-BpJ24lBj.cjs +0 -20
  1072. package/components/bubble-chart-positioning.config-YgwDIuAp.js +0 -55
  1073. package/components/bubble-chart-slots.config-Djb-py0h.js +0 -47
  1074. package/components/bullet-chart-options.config-CmC75LQ8.js +0 -75
  1075. package/components/bullet-chart-options.config-DDygYBiy.cjs +0 -20
  1076. package/components/bullet-chart-options.de-C7ZQkm0L.js +0 -39
  1077. package/components/bullet-chart-options.en-BLmALEPb.js +0 -39
  1078. package/components/bullet-chart-options.es-BrJHkmap.js +0 -39
  1079. package/components/bullet-chart-options.fr-C8nkO914.js +0 -39
  1080. package/components/bullet-chart-options.nl-DU_OaXNy.js +0 -39
  1081. package/components/bullet-chart-positioning.config-6yUejABM.cjs +0 -20
  1082. package/components/bullet-chart-positioning.config-CffspACw.js +0 -56
  1083. package/components/bullet-chart-slots.config-BECcf-yZ.js +0 -46
  1084. package/components/choropleth-map-options.config-5W6nNlL7.cjs +0 -20
  1085. package/components/choropleth-map-options.config-Bt-vXkKW.js +0 -348
  1086. package/components/choropleth-map-options.de-B51Xejii.js +0 -72
  1087. package/components/choropleth-map-options.en-BWmf5jjV.js +0 -72
  1088. package/components/choropleth-map-options.es-Gw9dxuZI.js +0 -72
  1089. package/components/choropleth-map-options.fr-BdJSGu2c.js +0 -72
  1090. package/components/choropleth-map-options.nl-CRkMP1jP.js +0 -72
  1091. package/components/choropleth-map-positioning.config-Bl5HERTz.js +0 -55
  1092. package/components/choropleth-map-positioning.config-nlky_swe.cjs +0 -20
  1093. package/components/choropleth-map-slots.config-DVrgJYSA.js +0 -53
  1094. package/components/circle-pack-chart-options.config-CLA-ur8J.js +0 -54
  1095. package/components/circle-pack-chart-options.de-JDfszFAV.js +0 -31
  1096. package/components/circle-pack-chart-options.en-DbasVsPb.js +0 -31
  1097. package/components/circle-pack-chart-options.es-D_Nqpv9k.js +0 -31
  1098. package/components/circle-pack-chart-options.fr-Bzd5HKu_.js +0 -31
  1099. package/components/circle-pack-chart-options.nl-DGnSsGfe.js +0 -31
  1100. package/components/circle-pack-chart-positioning.config-_y9nL_PY.cjs +0 -20
  1101. package/components/circle-pack-chart-positioning.config-cBxfJDgf.js +0 -48
  1102. package/components/circle-pack-chart-slots.config-BG6Gh03S.js +0 -38
  1103. package/components/circular-gauge-options.config-BFBmfsPn.js +0 -188
  1104. package/components/circular-gauge-options.config-D9gcbX57.cjs +0 -20
  1105. package/components/circular-gauge-options.de-pEMeH8Qx.js +0 -57
  1106. package/components/circular-gauge-options.en-HbLqnnOH.js +0 -57
  1107. package/components/circular-gauge-options.es-BggJySYI.js +0 -57
  1108. package/components/circular-gauge-options.fr-BkRfCePL.js +0 -57
  1109. package/components/circular-gauge-options.nl-Cr3_-8Tf.js +0 -57
  1110. package/components/circular-gauge-positioning.config-BtFTmQVx.cjs +0 -20
  1111. package/components/circular-gauge-positioning.config-HG_MhCL2.js +0 -48
  1112. package/components/circular-gauge-slots.config-BSzOAb8B.js +0 -39
  1113. package/components/color-palettes-B99PIMzZ.js +0 -1474
  1114. package/components/color-range-utils-CwwtLDX_.js +0 -63
  1115. package/components/color-range-utils-D59Jawkj.cjs +0 -20
  1116. package/components/column-chart-options.config-CiIw23Yo.cjs +0 -20
  1117. package/components/column-chart-options.config-V7v9PtQA.js +0 -219
  1118. package/components/column-chart-options.de-BTnjxgGU.cjs +0 -20
  1119. package/components/column-chart-options.de-e6NDw-ce.js +0 -90
  1120. package/components/column-chart-options.en-BraK2iD0.cjs +0 -20
  1121. package/components/column-chart-options.en-ZOcw1FIF.js +0 -90
  1122. package/components/column-chart-options.es-DyaIZzEH.cjs +0 -20
  1123. package/components/column-chart-options.es-zgVGyy6E.js +0 -90
  1124. package/components/column-chart-options.fr-BW4IEd6E.js +0 -90
  1125. package/components/column-chart-options.fr-DzcIOVOG.cjs +0 -20
  1126. package/components/column-chart-options.nl-DcMK0Xij.js +0 -90
  1127. package/components/column-chart-options.nl-_Y8YJEn6.cjs +0 -20
  1128. package/components/column-chart-positioning.config-DQtY7_jS.js +0 -55
  1129. package/components/column-chart-positioning.config-sAg6OdcO.cjs +0 -20
  1130. package/components/column-chart-slots.config-5BjkTrbt.js +0 -50
  1131. package/components/combination-chart-options.config-CgSqqLLE.js +0 -87
  1132. package/components/combination-chart-options.config-DaTYSfnr.cjs +0 -20
  1133. package/components/combination-chart-options.de-BYOFfEbM.cjs +0 -20
  1134. package/components/combination-chart-options.de-CZcnpbQE.js +0 -43
  1135. package/components/combination-chart-options.en-DE03M06X.js +0 -43
  1136. package/components/combination-chart-options.en-Dx5vhF9Z.cjs +0 -20
  1137. package/components/combination-chart-options.es-BTC1pVY_.js +0 -43
  1138. package/components/combination-chart-options.es-DhZGzDhi.cjs +0 -20
  1139. package/components/combination-chart-options.fr-CvjoYoj9.js +0 -43
  1140. package/components/combination-chart-options.fr-Ds2DQ0gS.cjs +0 -20
  1141. package/components/combination-chart-options.nl-CT2hcHUL.cjs +0 -20
  1142. package/components/combination-chart-options.nl-oy88_y21.js +0 -43
  1143. package/components/combination-chart-positioning.config-CUC44b4w.cjs +0 -20
  1144. package/components/combination-chart-positioning.config-xdJ5PeeE.js +0 -48
  1145. package/components/combination-chart-slots.config-DgM_T-9r.js +0 -43
  1146. package/components/conditional-number-options.config-3_vXSC0j.js +0 -205
  1147. package/components/conditional-number-options.config-BPzCxo2q.cjs +0 -20
  1148. package/components/conditional-number-options.de-DcMMZo_Y.js +0 -60
  1149. package/components/conditional-number-options.en-v6FTfypu.js +0 -60
  1150. package/components/conditional-number-options.es-Br1lDM3A.js +0 -60
  1151. package/components/conditional-number-options.fr-hcuNbiC5.js +0 -60
  1152. package/components/conditional-number-options.nl-CR4rF-CA.js +0 -60
  1153. package/components/conditional-number-positioning.config-BpggYmeg.cjs +0 -20
  1154. package/components/conditional-number-positioning.config-Cu3E21yK.js +0 -48
  1155. package/components/conditional-number-slots.config-CzVPP4me.js +0 -39
  1156. package/components/data-field-CX74S6vV.cjs +0 -54
  1157. package/components/data-field-D_EnR1Yt.js +0 -121
  1158. package/components/data-field-level-CFLMDP3a.js +0 -247
  1159. package/components/data-field-level-DaDY2_HH.cjs +0 -55
  1160. package/components/data-field-panel-BhYP77ZO.js +0 -385
  1161. package/components/data-field-panel-BxEVeR6H.cjs +0 -87
  1162. package/components/data-fields-select-FlSG0h_V.js +0 -262
  1163. package/components/data-fields-select-p53mdgQy.cjs +0 -41
  1164. package/components/dataset-selector-list-ByFAG-kf.cjs +0 -75
  1165. package/components/dataset-selector-list-CWIbaMga.js +0 -313
  1166. package/components/dataset-selector-row--W1e0KF2.cjs +0 -79
  1167. package/components/dataset-selector-row-CaNvh0Zr.js +0 -273
  1168. package/components/date-comparison-filter-options.config-CsDlmT6L.js +0 -126
  1169. package/components/date-comparison-filter-options.de-HsUg9fQm.js +0 -55
  1170. package/components/date-comparison-filter-options.en-CcaNMoOt.js +0 -55
  1171. package/components/date-comparison-filter-options.es-B10rR6bB.js +0 -55
  1172. package/components/date-comparison-filter-options.fr-8n3sdmqR.js +0 -55
  1173. package/components/date-comparison-filter-options.nl-OUoVBhmg.js +0 -55
  1174. package/components/date-comparison-filter-positioning.config-CK8Z_g1V.js +0 -38
  1175. package/components/date-comparison-filter-slots.config-EEgNP09x.js +0 -33
  1176. package/components/date-filter-options.config-AFAngO_i.cjs +0 -20
  1177. package/components/date-filter-options.config-b8EHOjR1.js +0 -118
  1178. package/components/date-filter-options.de-NRSHZacA.js +0 -51
  1179. package/components/date-filter-options.en-DUO-t91h.js +0 -51
  1180. package/components/date-filter-options.es-CvT1iWvL.js +0 -51
  1181. package/components/date-filter-options.fr-DRZ9YUAy.js +0 -51
  1182. package/components/date-filter-options.nl-C79AkD_s.js +0 -51
  1183. package/components/date-filter-positioning.config-D4OQrpTY.js +0 -38
  1184. package/components/date-filter-slots.config-PJ_h3Aj7.js +0 -37
  1185. package/components/de-DZ5SDLoC.cjs +0 -20
  1186. package/components/de-D_05k7cJ.js +0 -486
  1187. package/components/display-settings-BLVdnS2P.cjs +0 -140
  1188. package/components/display-settings-BaUca4WC.js +0 -313
  1189. package/components/display-settings-binning-BNwdn9lC.cjs +0 -56
  1190. package/components/display-settings-binning-DlgU4lX4.js +0 -110
  1191. package/components/display-settings-datetime-BF9hOp8K.cjs +0 -217
  1192. package/components/display-settings-datetime-DXcE_L84.js +0 -413
  1193. package/components/display-settings-grand-totals-CqBebvyl.cjs +0 -44
  1194. package/components/display-settings-grand-totals-D3duaMBq.js +0 -89
  1195. package/components/display-settings-numeric-Bpph7Z0c.cjs +0 -190
  1196. package/components/display-settings-numeric-C7-eiHxR.js +0 -479
  1197. package/components/display-settings-period-over-period-Bt_7yg70.js +0 -433
  1198. package/components/display-settings-period-over-period-Ce-yNJvu.cjs +0 -229
  1199. package/components/donut-chart-options.config-D8Bvo6Cc.cjs +0 -20
  1200. package/components/donut-chart-options.config-N0MWtn-o.js +0 -207
  1201. package/components/donut-chart-options.de-CSmk4849.js +0 -85
  1202. package/components/donut-chart-options.en-DL2s8O3X.js +0 -85
  1203. package/components/donut-chart-options.es-XL3Efug9.js +0 -85
  1204. package/components/donut-chart-options.fr-eYmh1KAo.js +0 -85
  1205. package/components/donut-chart-options.nl-C7RwBT-Y.js +0 -85
  1206. package/components/donut-chart-positioning.config-BOuKJIMR.cjs +0 -20
  1207. package/components/donut-chart-positioning.config-VOymRD6M.js +0 -48
  1208. package/components/donut-chart-slots.config-dQrT0g_x.js +0 -39
  1209. package/components/dropdown-filter-options.config-CziqJFPz.js +0 -153
  1210. package/components/dropdown-filter-options.de-BHxj7f_r.js +0 -54
  1211. package/components/dropdown-filter-options.en-BD2IkPf5.js +0 -54
  1212. package/components/dropdown-filter-options.es-DGmT3xE4.js +0 -54
  1213. package/components/dropdown-filter-options.fr-wfJhGECP.js +0 -54
  1214. package/components/dropdown-filter-options.nl-D-dsVlJk.js +0 -54
  1215. package/components/dropdown-filter-positioning.config-DjsclbCc.js +0 -38
  1216. package/components/dropdown-filter-slots.config-CQo3-kIo.js +0 -38
  1217. package/components/dynamic-imageobject-slots.config-BaAk9eHz.cjs +0 -20
  1218. package/components/dynamic-imageobject-slots.config-C9pnHqO_.js +0 -30
  1219. package/components/es-D2WbSDXb.js +0 -486
  1220. package/components/es-DbsozUJM.cjs +0 -20
  1221. package/components/evolution-number-options.config-BfYN1Qgk.js +0 -228
  1222. package/components/evolution-number-options.config-CkqNYgWn.cjs +0 -20
  1223. package/components/evolution-number-options.de-Co3tTtbZ.js +0 -76
  1224. package/components/evolution-number-options.en-B50TttsV.js +0 -76
  1225. package/components/evolution-number-options.es-Bhn3cKAX.js +0 -76
  1226. package/components/evolution-number-options.fr-D4k7QvUr.js +0 -76
  1227. package/components/evolution-number-options.nl-C6Ykxu1Y.js +0 -76
  1228. package/components/evolution-number-positioning.config-BO5omIBO.js +0 -48
  1229. package/components/evolution-number-positioning.config-D2uRKbgg.cjs +0 -20
  1230. package/components/evolution-number-slots.config-CBS0b0Yk.js +0 -37
  1231. package/components/filter-expression-picker-BciiMtpZ.js +0 -425
  1232. package/components/filter-expression-picker-CoK9Eyfu.cjs +0 -38
  1233. package/components/filter-item-BmXuGhiV.js +0 -242
  1234. package/components/filter-item-Du_13KmX.cjs +0 -58
  1235. package/components/filter-value-picker-CcJP9HyG.cjs +0 -60
  1236. package/components/filter-value-picker-DVgv3jjr.js +0 -151
  1237. package/components/filter-value-picker-datetime-C8TlvexC.js +0 -139
  1238. package/components/filter-value-picker-datetime-DcJQwICl.cjs +0 -42
  1239. package/components/filter-value-picker-hierarchy-DuCIK_cQ.cjs +0 -47
  1240. package/components/filter-value-picker-hierarchy-p7KmAEfD.js +0 -232
  1241. package/components/filter-value-picker-numeric-CEQteSXv.js +0 -219
  1242. package/components/filter-value-picker-numeric-CkuF9VUR.cjs +0 -48
  1243. package/components/filters-CFYjlJk9.cjs +0 -150
  1244. package/components/filters-YOx1cv6z.js +0 -400
  1245. package/components/formula-D5Q_PS-K.js +0 -138
  1246. package/components/formula-HGRB-nzB.cjs +0 -45
  1247. package/components/formula-codemirror-DimorTw-.js +0 -12018
  1248. package/components/formula-codemirror-F9csVYEQ.cjs +0 -215
  1249. package/components/formula-display-store-Bhx14M2X.cjs +0 -20
  1250. package/components/formula-display-store-dkkdggcj.js +0 -1090
  1251. package/components/formula-editor-B2HvrGdp.js +0 -666
  1252. package/components/formula-editor-Cfan0Njf.cjs +0 -218
  1253. package/components/formula-field-B-471pmk.cjs +0 -20
  1254. package/components/formula-field-DVUuiFVC.js +0 -40
  1255. package/components/formula-input-base-CHF-NVew.cjs +0 -49
  1256. package/components/formula-input-base-XQo00D8V.js +0 -236
  1257. package/components/fr-D0jP-0QP.js +0 -486
  1258. package/components/fr-E4npvQVn.cjs +0 -20
  1259. package/components/funnel-chart-options.config-BVmrhzna.cjs +0 -20
  1260. package/components/funnel-chart-options.config-D8fqrJvi.js +0 -187
  1261. package/components/funnel-chart-options.de-CbKnCE_z.js +0 -76
  1262. package/components/funnel-chart-options.en-CSzkUOna.js +0 -76
  1263. package/components/funnel-chart-options.es-C3mkd61J.js +0 -76
  1264. package/components/funnel-chart-options.fr-CAj5H8iO.js +0 -76
  1265. package/components/funnel-chart-options.nl-Dsf3J4dV.js +0 -76
  1266. package/components/funnel-chart-positioning.config-D61EoLfa.cjs +0 -20
  1267. package/components/funnel-chart-positioning.config-DTlmceYZ.js +0 -48
  1268. package/components/funnel-chart-slots.config-CeGu8stc.js +0 -43
  1269. package/components/get-dataset-name-B24ms5Si.js +0 -27
  1270. package/components/get-dataset-name-DHSjl0Xg.cjs +0 -20
  1271. package/components/groupings-BJ89rBBj.cjs +0 -20
  1272. package/components/groupings-BQl_7M6c.js +0 -52
  1273. package/components/heat-map-options.config-5zjlVaa0.js +0 -224
  1274. package/components/heat-map-options.config-xPdOcXDk.cjs +0 -20
  1275. package/components/heat-map-options.de-BjccX9sD.js +0 -75
  1276. package/components/heat-map-options.en-B6xgVOKA.js +0 -75
  1277. package/components/heat-map-options.es-DlsO_p0i.js +0 -75
  1278. package/components/heat-map-options.fr-BE1Yoo0f.js +0 -75
  1279. package/components/heat-map-options.nl-BZRshZju.js +0 -75
  1280. package/components/heat-map-positioning.config-Bm4O1kO-.cjs +0 -20
  1281. package/components/heat-map-positioning.config-BtPM-mdL.js +0 -48
  1282. package/components/heat-map-slots.config-DBkkcvMN.js +0 -37
  1283. package/components/heat-table-options.config-Blcs4JjF.js +0 -372
  1284. package/components/heat-table-options.config-DPbTFoRn.cjs +0 -20
  1285. package/components/heat-table-options.de-mJTOeU33.js +0 -112
  1286. package/components/heat-table-options.en-iiQWCR_j.js +0 -112
  1287. package/components/heat-table-options.es-CdlsuKqP.js +0 -112
  1288. package/components/heat-table-options.fr-DWj1rkIk.js +0 -112
  1289. package/components/heat-table-options.nl-KOgcD2Z4.js +0 -112
  1290. package/components/heat-table-positioning.config-BGs7-swK.cjs +0 -20
  1291. package/components/heat-table-positioning.config-BSmgGTV-.js +0 -55
  1292. package/components/heat-table-slots.config-CJOXI-Sf.js +0 -49
  1293. package/components/helpers-ByM0mGw3.cjs +0 -20
  1294. package/components/helpers-d8Tb1scY.js +0 -66
  1295. package/components/hexbin-map-options.config-CSFSqpMU.cjs +0 -20
  1296. package/components/hexbin-map-options.config-D5o0k890.js +0 -276
  1297. package/components/hexbin-map-options.de-Cr9eiC9A.js +0 -108
  1298. package/components/hexbin-map-options.en-DGo4xVoy.js +0 -108
  1299. package/components/hexbin-map-options.es-Chutks7U.js +0 -108
  1300. package/components/hexbin-map-options.fr-wyHRYEe9.js +0 -108
  1301. package/components/hexbin-map-options.nl-BKPHzVZ4.js +0 -108
  1302. package/components/hexbin-map-positioning.config-6tI7Fsx6.cjs +0 -20
  1303. package/components/hexbin-map-positioning.config-DN6UPACN.js +0 -48
  1304. package/components/hexbin-map-slots.config-CpJIfl6o.js +0 -37
  1305. package/components/image-options.config-C46UQpMq.js +0 -153
  1306. package/components/image-options.de-BICnSn_v.js +0 -86
  1307. package/components/image-options.en--6ChBjFR.js +0 -86
  1308. package/components/image-options.es-BY51ZpVY.js +0 -86
  1309. package/components/image-options.fr-C46efXPn.js +0 -86
  1310. package/components/image-options.nl-BbainjfD.js +0 -86
  1311. package/components/image-slots.config-DjaT4mUk.js +0 -24
  1312. package/components/image-slots.config-ODQBVz5H.cjs +0 -20
  1313. package/components/interactive-viz-item-COsyvG-7.cjs +0 -247
  1314. package/components/interactive-viz-item-xwBNcoFX.js +0 -693
  1315. package/components/item-grid-1AHf6uNh.js +0 -4559
  1316. package/components/item-grid-BTWZLR9l.cjs +0 -113
  1317. package/components/item-option-D6mIG3C2.cjs +0 -252
  1318. package/components/item-option-DiKf1I-V.js +0 -919
  1319. package/components/item-option-action-button-group-DZVGBwVB.cjs +0 -53
  1320. package/components/item-option-action-button-group-_MTf9Kyg.js +0 -118
  1321. package/components/item-option-base-72_Lz4oa.js +0 -123
  1322. package/components/item-option-base-D4uG83bv.cjs +0 -56
  1323. package/components/item-option-color-palette-picker-9LzOFRqA.cjs +0 -40
  1324. package/components/item-option-color-palette-picker-D6ZtQuby.js +0 -2041
  1325. package/components/item-option-color-picker-Bzfx2m97.cjs +0 -34
  1326. package/components/item-option-color-picker-CJ8QNFEa.js +0 -87
  1327. package/components/item-option-color-range-DDwD_l1L.js +0 -220
  1328. package/components/item-option-color-range-DbjFNFga.cjs +0 -98
  1329. package/components/item-option-multi-language-field-CLUOInEz.cjs +0 -33
  1330. package/components/item-option-multi-language-field-DqGIz3c2.js +0 -82
  1331. package/components/item-option-number-field-CALHe4NE.js +0 -102
  1332. package/components/item-option-number-field-rOKqFeZL.cjs +0 -38
  1333. package/components/item-option-panel-BETP4EXN.cjs +0 -67
  1334. package/components/item-option-panel-VqBQ4vCD.js +0 -183
  1335. package/components/item-option-picker-B1c4lBTC.js +0 -77
  1336. package/components/item-option-picker-D8m-VrSA.cjs +0 -37
  1337. package/components/item-option-position-picker-3saFBaim.cjs +0 -32
  1338. package/components/item-option-position-picker-suuQsaHa.js +0 -117
  1339. package/components/item-option-positions-number-field-C8Fdb51M.js +0 -164
  1340. package/components/item-option-positions-number-field-DWEE8FIS.cjs +0 -49
  1341. package/components/item-option-radio-button-group-CIZlII80.cjs +0 -37
  1342. package/components/item-option-radio-button-group-CsqrAsWc.js +0 -74
  1343. package/components/item-option-slider-C0PwAy27.cjs +0 -33
  1344. package/components/item-option-slider-DeHoSEtb.js +0 -81
  1345. package/components/item-option-switch-BByrv8oZ.cjs +0 -30
  1346. package/components/item-option-switch-D7YzsVwc.js +0 -69
  1347. package/components/item-option-text-field-C9y2J3bZ.js +0 -80
  1348. package/components/item-option-text-field-edIJYLwK.cjs +0 -33
  1349. package/components/item-slot-drop-BioBKinp.cjs +0 -91
  1350. package/components/item-slot-drop-BpdhUeHr.js +0 -331
  1351. package/components/item-slot-drop-panel-Cfak8X0X.js +0 -355
  1352. package/components/item-slot-drop-panel-DsWaCS45.cjs +0 -57
  1353. package/components/item-slot-picker-BKZzESjJ.cjs +0 -174
  1354. package/components/item-slot-picker-Dsktaddk.js +0 -505
  1355. package/components/item-slot-picker-panel-DHRq0Fdl.js +0 -448
  1356. package/components/item-slot-picker-panel-DupK23lZ.cjs +0 -81
  1357. package/components/line-chart-options.config-BkK829A2.cjs +0 -20
  1358. package/components/line-chart-options.config-KFAaQqB_.js +0 -168
  1359. package/components/line-chart-options.de-BUldhmo4.cjs +0 -20
  1360. package/components/line-chart-options.de-QffYpEIP.js +0 -58
  1361. package/components/line-chart-options.en-B_JC0o6Q.js +0 -58
  1362. package/components/line-chart-options.en-DoxLZyuo.cjs +0 -20
  1363. package/components/line-chart-options.es-CvAzqXDr.js +0 -58
  1364. package/components/line-chart-options.es-iEODcZCD.cjs +0 -20
  1365. package/components/line-chart-options.fr-Co0AWIUU.js +0 -58
  1366. package/components/line-chart-options.fr-KzNNpQOL.cjs +0 -20
  1367. package/components/line-chart-options.nl-C0-1WgGw.js +0 -58
  1368. package/components/line-chart-options.nl-CQ4XkYpS.cjs +0 -20
  1369. package/components/line-chart-positioning.config-C0RfTCDE.cjs +0 -20
  1370. package/components/line-chart-positioning.config-Djwg-IFN.js +0 -55
  1371. package/components/line-chart-slots.config-D0jaC82U.js +0 -55
  1372. package/components/localized-mixin-BsdiWv93.js +0 -45
  1373. package/components/localized-mixin-CICfOIAL.cjs +0 -20
  1374. package/components/map-tile-providers-BYi0m8bP.js +0 -115
  1375. package/components/marker-map-options.config-BfPFVxpD.cjs +0 -20
  1376. package/components/marker-map-options.config-D0RmFKKM.js +0 -117
  1377. package/components/marker-map-options.de-BO_ubfdm.js +0 -63
  1378. package/components/marker-map-options.en-DTxOYpa8.js +0 -63
  1379. package/components/marker-map-options.es-BXgk6DwR.js +0 -63
  1380. package/components/marker-map-options.fr-DIpgeftk.js +0 -63
  1381. package/components/marker-map-options.nl-B79mkbmi.js +0 -63
  1382. package/components/marker-map-positioning.config-C_iKxInT.js +0 -48
  1383. package/components/marker-map-positioning.config-D3z2_PYt.cjs +0 -20
  1384. package/components/marker-map-slots.config-DsMklO0v.js +0 -37
  1385. package/components/nl-8nHhvKVN.js +0 -486
  1386. package/components/nl-Ct89Nnbs.cjs +0 -20
  1387. package/components/ohlc-chart-options.config-BBdUKmJ9.js +0 -65
  1388. package/components/ohlc-chart-options.config-BsBVP-Io.cjs +0 -20
  1389. package/components/ohlc-chart-options.de-B9c5_k_F.cjs +0 -20
  1390. package/components/ohlc-chart-options.de-C4zIuDFx.js +0 -38
  1391. package/components/ohlc-chart-options.en-B5WVCZoU.cjs +0 -20
  1392. package/components/ohlc-chart-options.en-DFO-7urT.js +0 -38
  1393. package/components/ohlc-chart-options.es-CRtSTFtx.cjs +0 -20
  1394. package/components/ohlc-chart-options.es-Df-WKMYg.js +0 -38
  1395. package/components/ohlc-chart-options.fr-BVAMKEde.js +0 -38
  1396. package/components/ohlc-chart-options.fr-Cf4ndAZM.cjs +0 -20
  1397. package/components/ohlc-chart-options.nl-DP64kt9q.cjs +0 -20
  1398. package/components/ohlc-chart-options.nl-qm4XDd28.js +0 -38
  1399. package/components/ohlc-chart-positioning.config-B6cmVTir.js +0 -78
  1400. package/components/ohlc-chart-positioning.config-Bb4fYPeO.cjs +0 -20
  1401. package/components/ohlc-chart-slots.config-BiQn5Kdg.js +0 -68
  1402. package/components/parallel-coordinates-plot-options.config-KJrOL0Sr.js +0 -42
  1403. package/components/parallel-coordinates-plot-options.de-DbZ34NjR.js +0 -30
  1404. package/components/parallel-coordinates-plot-options.en-DZWVOKzt.js +0 -30
  1405. package/components/parallel-coordinates-plot-options.es-BbFgNcFX.js +0 -30
  1406. package/components/parallel-coordinates-plot-options.fr-DPkPguDR.js +0 -30
  1407. package/components/parallel-coordinates-plot-options.nl-q7opDecP.js +0 -30
  1408. package/components/parallel-coordinates-plot-positioning.config-BsJW1FP-.js +0 -48
  1409. package/components/parallel-coordinates-plot-positioning.config-cFfEWBCQ.cjs +0 -20
  1410. package/components/parallel-coordinates-plot-slots.config-B7QY714-.js +0 -46
  1411. package/components/pivot-table-options.config-CKGnnXa_.cjs +0 -20
  1412. package/components/pivot-table-options.config-DEmZ_EQi.js +0 -245
  1413. package/components/pivot-table-options.de-HGHQHOJF.js +0 -67
  1414. package/components/pivot-table-options.en-CrpRfQfY.js +0 -67
  1415. package/components/pivot-table-options.es-Cw1r-PSq.js +0 -67
  1416. package/components/pivot-table-options.fr-BiuYTJqg.js +0 -67
  1417. package/components/pivot-table-options.nl-Cq0pFpVd.js +0 -67
  1418. package/components/pivot-table-positioning.config-CMAsxlCi.cjs +0 -20
  1419. package/components/pivot-table-positioning.config-D1L_TBUC.js +0 -55
  1420. package/components/pivot-table-slots.config-DpDaXLdw.js +0 -55
  1421. package/components/pyramid-chart-options.config-8QtjhcJC.cjs +0 -20
  1422. package/components/pyramid-chart-options.config-DiD3QFps.js +0 -240
  1423. package/components/pyramid-chart-options.de-nLlXFF35.js +0 -102
  1424. package/components/pyramid-chart-options.en-1EMjKIIS.js +0 -102
  1425. package/components/pyramid-chart-options.es-Wjsv8O48.js +0 -102
  1426. package/components/pyramid-chart-options.fr-Dk5NbO64.js +0 -102
  1427. package/components/pyramid-chart-options.nl-C1LDwP2O.js +0 -102
  1428. package/components/pyramid-chart-positioning.config-BF_YUB98.js +0 -55
  1429. package/components/pyramid-chart-positioning.config-BPlmVwKw.cjs +0 -20
  1430. package/components/pyramid-chart-slots.config-BrKgartT.js +0 -50
  1431. package/components/radar-chart-options.config-COBM2L3R.js +0 -130
  1432. package/components/radar-chart-options.config-DvW36_zk.cjs +0 -20
  1433. package/components/radar-chart-options.de-DuPElmmk.js +0 -46
  1434. package/components/radar-chart-options.en-sQnpaZcs.js +0 -46
  1435. package/components/radar-chart-options.es-Bn7B0JMU.js +0 -46
  1436. package/components/radar-chart-options.fr-Dowk5bKg.js +0 -46
  1437. package/components/radar-chart-options.nl-DhzFlYOd.js +0 -46
  1438. package/components/radar-chart-positioning.config-Be3DzcOK.js +0 -55
  1439. package/components/radar-chart-positioning.config-OcJlRx0R.cjs +0 -20
  1440. package/components/radar-chart-slots.config-SivEBhuj.js +0 -53
  1441. package/components/regular-table-options.config-B0WNqEjR.cjs +0 -20
  1442. package/components/regular-table-options.config-B0zRcsWM.js +0 -148
  1443. package/components/regular-table-options.de-Cx6jiVGT.js +0 -57
  1444. package/components/regular-table-options.en-BNWHrbMb.js +0 -57
  1445. package/components/regular-table-options.es-DxEsQcPg.js +0 -57
  1446. package/components/regular-table-options.fr-29GrT1aR.js +0 -57
  1447. package/components/regular-table-options.nl-CNirUBp2.js +0 -57
  1448. package/components/regular-table-positioning.config-BIcprRZz.js +0 -38
  1449. package/components/regular-table-slots.config-M2axBXl4.js +0 -35
  1450. package/components/route-map-options.config-CYNKz_Xm.cjs +0 -20
  1451. package/components/route-map-options.config-CrMrDQ_l.js +0 -326
  1452. package/components/route-map-options.de-B01XbCXa.js +0 -76
  1453. package/components/route-map-options.en-D9T0__c8.js +0 -76
  1454. package/components/route-map-options.es-DgWHaOFx.js +0 -76
  1455. package/components/route-map-options.fr-D4OtdMcA.js +0 -76
  1456. package/components/route-map-options.nl-CmfS0vTm.js +0 -76
  1457. package/components/route-map-positioning.config-Bh57uCEW.js +0 -66
  1458. package/components/route-map-positioning.config-DRK2m99b.cjs +0 -20
  1459. package/components/route-map-slots.config-COCoP99E.js +0 -59
  1460. package/components/sankey-diagram-options.config-BYLiy1UX.js +0 -126
  1461. package/components/sankey-diagram-options.config-D49IZ1y3.cjs +0 -20
  1462. package/components/sankey-diagram-options.de-BLmm0Yxl.js +0 -63
  1463. package/components/sankey-diagram-options.en-DgLbyMq9.js +0 -63
  1464. package/components/sankey-diagram-options.es--O-r0Asx.js +0 -63
  1465. package/components/sankey-diagram-options.fr-BA3ax1AD.js +0 -63
  1466. package/components/sankey-diagram-options.nl-B7IAliul.js +0 -63
  1467. package/components/sankey-diagram-positioning.config-D7Jtuhko.cjs +0 -20
  1468. package/components/sankey-diagram-positioning.config-iIPclYoY.js +0 -66
  1469. package/components/sankey-diagram-slots.config-C-sqtrS-.js +0 -61
  1470. package/components/scatter-plot-options.config-BETVLevv.cjs +0 -20
  1471. package/components/scatter-plot-options.config-BpUYcLt-.js +0 -302
  1472. package/components/scatter-plot-options.de-Bj1qEoVs.js +0 -96
  1473. package/components/scatter-plot-options.en-DvFtWZsl.js +0 -96
  1474. package/components/scatter-plot-options.es-B4BoT4Wm.js +0 -96
  1475. package/components/scatter-plot-options.fr-Bk07tkUF.js +0 -96
  1476. package/components/scatter-plot-options.nl-GVy_Q3TS.js +0 -96
  1477. package/components/scatter-plot-positioning.config-1QiXjsOV.cjs +0 -20
  1478. package/components/scatter-plot-positioning.config-CanuubeV.js +0 -77
  1479. package/components/scatter-plot-slots.config-Dg78lS25.js +0 -74
  1480. package/components/search-filter-options.config-lGQ-biU5.js +0 -103
  1481. package/components/search-filter-options.de-BytOk4JC.js +0 -42
  1482. package/components/search-filter-options.en-Cbp-jG0q.js +0 -42
  1483. package/components/search-filter-options.es-DACzRoxb.js +0 -42
  1484. package/components/search-filter-options.fr-CjsYEqMu.js +0 -42
  1485. package/components/search-filter-options.nl-B91X-zA6.js +0 -42
  1486. package/components/search-filter-positioning.config-SBrpPFQK.js +0 -38
  1487. package/components/search-filter-slots.config-BhDSDpNd.js +0 -39
  1488. package/components/set-locale-CDdUWJUq.cjs +0 -20
  1489. package/components/set-locale-D4CaVip4.js +0 -43
  1490. package/components/slicer-filter-options.config-7OXpRWtw.cjs +0 -20
  1491. package/components/slicer-filter-options.config-B6rxZYcl.js +0 -226
  1492. package/components/slicer-filter-options.de-DV4HXSNo.js +0 -69
  1493. package/components/slicer-filter-options.en-OrTRCrmC.js +0 -69
  1494. package/components/slicer-filter-options.es-80VXr7kP.js +0 -69
  1495. package/components/slicer-filter-options.fr-Bcr-1eqM.js +0 -69
  1496. package/components/slicer-filter-options.nl-BncFWMLG.js +0 -69
  1497. package/components/slicer-filter-positioning.config-B7HlZizi.cjs +0 -20
  1498. package/components/slicer-filter-positioning.config-BLkIaQQJ.js +0 -48
  1499. package/components/slicer-filter-slots.config-XtuZoiId.js +0 -44
  1500. package/components/slider-filter-options.config-C7-5aoaC.js +0 -72
  1501. package/components/slider-filter-options.config-CRdbX1IJ.cjs +0 -20
  1502. package/components/slider-filter-options.de-TwOpwA02.js +0 -35
  1503. package/components/slider-filter-options.en-9Iy-Asdh.js +0 -35
  1504. package/components/slider-filter-options.es-B6iXItXi.js +0 -35
  1505. package/components/slider-filter-options.fr-HqjaeY8q.js +0 -35
  1506. package/components/slider-filter-options.nl-CVUrAYir.js +0 -35
  1507. package/components/slider-filter-positioning.config-BCmOwGEV.js +0 -38
  1508. package/components/slider-filter-slots.config-BYkIGVvh.js +0 -43
  1509. package/components/slot-menu-B0TdqTeU.js +0 -426
  1510. package/components/slot-menu-Cl3x8mjj.cjs +0 -71
  1511. package/components/slot-menu-list-B9TBCRxe.cjs +0 -44
  1512. package/components/slot-menu-list-DlZoh014.js +0 -347
  1513. package/components/slots-config-DMC15sjT.js +0 -77
  1514. package/components/slots-config-DVH0lz6t.cjs +0 -20
  1515. package/components/spacer-options.config-hBEVt2S9.js +0 -23
  1516. package/components/speedometer-chart-options.config-Bd3-G7S7.js +0 -246
  1517. package/components/speedometer-chart-options.config-BsIu28S3.cjs +0 -20
  1518. package/components/speedometer-chart-options.de-DSZXhfpz.js +0 -66
  1519. package/components/speedometer-chart-options.en-COi1nQgH.js +0 -66
  1520. package/components/speedometer-chart-options.es-BcsdeLpB.js +0 -66
  1521. package/components/speedometer-chart-options.fr-gaOs2clQ.js +0 -66
  1522. package/components/speedometer-chart-options.nl-BLwzvST1.js +0 -66
  1523. package/components/speedometer-chart-positioning.config-ChZlrktw.js +0 -48
  1524. package/components/speedometer-chart-positioning.config-DLyYBstR.cjs +0 -20
  1525. package/components/speedometer-chart-slots.config-CkeiXSCy.js +0 -39
  1526. package/components/spike-map-options.config-B_2BXI_9.js +0 -413
  1527. package/components/spike-map-options.config-aaiZyME6.cjs +0 -20
  1528. package/components/spike-map-options.de-B15AExot.js +0 -103
  1529. package/components/spike-map-options.en-4meLfSmj.js +0 -103
  1530. package/components/spike-map-options.es-Bmc1YrOR.js +0 -103
  1531. package/components/spike-map-options.fr-DlynYE46.js +0 -103
  1532. package/components/spike-map-options.nl-CGK9ZkA2.js +0 -103
  1533. package/components/spike-map-positioning.config--1BDkwc2.cjs +0 -20
  1534. package/components/spike-map-positioning.config-Bd85irgl.js +0 -55
  1535. package/components/spike-map-slots.config-C44Vxsit.js +0 -47
  1536. package/components/strip-plot-options.config-By62J2Jj.js +0 -53
  1537. package/components/strip-plot-options.de-CBj6YtbT.js +0 -31
  1538. package/components/strip-plot-options.en-DmNRFZw6.js +0 -31
  1539. package/components/strip-plot-options.es-DGysyzqb.js +0 -31
  1540. package/components/strip-plot-options.fr-BI-8fNcn.js +0 -31
  1541. package/components/strip-plot-options.nl-DOZSWFHP.js +0 -31
  1542. package/components/strip-plot-positioning.config-C6QwpxOm.js +0 -48
  1543. package/components/strip-plot-positioning.config-dBrlDJ1t.cjs +0 -20
  1544. package/components/strip-plot-slots.config-xsNFXerT.js +0 -38
  1545. package/components/sunburst-chart-options.config-Ckk_kY_s.cjs +0 -20
  1546. package/components/sunburst-chart-options.config-DwQwkQxR.js +0 -160
  1547. package/components/sunburst-chart-options.de-D1QlNwQH.js +0 -60
  1548. package/components/sunburst-chart-options.en-B4e1KkSb.js +0 -60
  1549. package/components/sunburst-chart-options.es-LOpNpR6H.js +0 -60
  1550. package/components/sunburst-chart-options.fr-moGbDwOv.js +0 -60
  1551. package/components/sunburst-chart-options.nl-DTYKOqU-.js +0 -60
  1552. package/components/sunburst-chart-positioning.config-BCByMy4k.js +0 -48
  1553. package/components/sunburst-chart-positioning.config-DdrE80fO.cjs +0 -20
  1554. package/components/sunburst-chart-slots.config-D6Z2_Kh_.js +0 -38
  1555. package/components/symbol-map-options.config-56eoWz4w.cjs +0 -20
  1556. package/components/symbol-map-options.config-uXEbOHWD.js +0 -157
  1557. package/components/symbol-map-options.de-D4gijfdV.js +0 -66
  1558. package/components/symbol-map-options.en-DtKzNwJd.js +0 -66
  1559. package/components/symbol-map-options.es-DJFzlBkQ.js +0 -66
  1560. package/components/symbol-map-options.fr-DJdeQpZe.js +0 -66
  1561. package/components/symbol-map-options.nl-Xwx5FvF9.js +0 -66
  1562. package/components/symbol-map-positioning.config-GruDumfg.cjs +0 -20
  1563. package/components/symbol-map-positioning.config-sg4xS30s.js +0 -55
  1564. package/components/symbol-map-slots.config-CHTIkMw4.js +0 -53
  1565. package/components/text-options.config-B5y7YAqT.js +0 -67
  1566. package/components/text-options.de-B8nrKE9j.js +0 -30
  1567. package/components/text-options.en-B2XheoHl.js +0 -30
  1568. package/components/text-options.es-tpMepkYE.js +0 -30
  1569. package/components/text-options.fr-B2Qd6zqG.js +0 -30
  1570. package/components/text-options.nl-ChSVsjsB.js +0 -30
  1571. package/components/text-slots.config-sFoowMc6.js +0 -24
  1572. package/components/treemap-chart-options.config-BouAbrk0.js +0 -184
  1573. package/components/treemap-chart-options.config-r6biULUj.cjs +0 -20
  1574. package/components/treemap-chart-options.de-CihGdxRU.js +0 -64
  1575. package/components/treemap-chart-options.en-ALFtDQP8.js +0 -64
  1576. package/components/treemap-chart-options.es-DGwgEbmm.js +0 -64
  1577. package/components/treemap-chart-options.fr-LrWGR9Xo.js +0 -64
  1578. package/components/treemap-chart-options.nl-BIQSL9Fp.js +0 -64
  1579. package/components/treemap-chart-positioning.config-B4HptgcF.cjs +0 -20
  1580. package/components/treemap-chart-positioning.config-DPf011uh.js +0 -55
  1581. package/components/treemap-chart-slots.config-BjHBRWDJ.js +0 -47
  1582. package/components/utils-ApDFkgMX.js +0 -240
  1583. package/components/utils-BXPde8Tt.cjs +0 -20
  1584. package/components/venn-diagram-options.config-BZWBYEhB.js +0 -24
  1585. package/components/venn-diagram-positioning.config-CqO3fp68.cjs +0 -20
  1586. package/components/venn-diagram-positioning.config-DwhJGj84.js +0 -55
  1587. package/components/venn-diagram-slots.config-CM0HPIPD.js +0 -47
  1588. package/components/video-options.config-DWuy1OHa.js +0 -127
  1589. package/components/video-options.de-Bzite0Ko.js +0 -60
  1590. package/components/video-options.en-BkhavNir.js +0 -60
  1591. package/components/video-options.es-XYDqFPJ8.js +0 -60
  1592. package/components/video-options.fr-CCXh0E6D.js +0 -60
  1593. package/components/video-options.nl-Ce7rxOBb.js +0 -60
  1594. package/components/video-slots.config-B_aDlTp6.js +0 -24
  1595. package/components/viz-item-menu-6lBtiv3Y.js +0 -170
  1596. package/components/viz-item-menu-DpL4Pgjm.cjs +0 -55
  1597. package/components/wordcloud-chart-options.config-D041tFDG.js +0 -90
  1598. package/components/wordcloud-chart-options.config-DgH4JgN2.cjs +0 -20
  1599. package/components/wordcloud-chart-options.de-CN0A9601.js +0 -49
  1600. package/components/wordcloud-chart-options.en-a2bx3zfb.js +0 -49
  1601. package/components/wordcloud-chart-options.es-BVQY1BT3.js +0 -49
  1602. package/components/wordcloud-chart-options.fr-PTJesIwV.js +0 -49
  1603. package/components/wordcloud-chart-options.nl-Cq3iMIEY.js +0 -49
  1604. package/components/wordcloud-chart-positioning.config-Bp4XE85G.js +0 -55
  1605. package/components/wordcloud-chart-positioning.config-ByTxkJHo.cjs +0 -20
  1606. package/components/wordcloud-chart-slots.config-Cy-Jgcaq.js +0 -45
@@ -1,3973 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2026 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 { i as e } from "./base-CUexK-Bc.js";
21
- import { t } from "./decorate-DyMgX_Uh.js";
22
- import { c as n, d as r, s as i, u as a } from "./ai-interaction-textarea-C-feG2HA.js";
23
- import { msg as o } from "@lit/localize/lit-localize";
24
- import { luzmoEllipsisVertical as s, luzmoIcon as c, luzmoSpin as l } from "@luzmo/icons";
25
- import "@luzmo/lucero/button";
26
- import "@luzmo/lucero/chat-message";
27
- import "@luzmo/lucero/icon";
28
- import "@luzmo/lucero/overlay";
29
- import "@luzmo/lucero/popover";
30
- import "@luzmo/lucero/progress-steps";
31
- import { html as u, nothing as d, unsafeCSS as ee } from "lit";
32
- import { property as f, state as p } from "lit/decorators.js";
33
- import { unsafeHTML as te } from "lit/directives/unsafe-html.js";
34
- import "@luzmo/lucero/action-button";
35
- //#region node_modules/dompurify/dist/purify.es.mjs
36
- function m(e, t) {
37
- (t == null || t > e.length) && (t = e.length);
38
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
39
- return r;
40
- }
41
- function ne(e) {
42
- if (Array.isArray(e)) return e;
43
- }
44
- function re(e, t) {
45
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
46
- if (n != null) {
47
- var r, i, a, o, s = [], c = !0, l = !1;
48
- try {
49
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
50
- } catch (e) {
51
- l = !0, i = e;
52
- } finally {
53
- try {
54
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
55
- } finally {
56
- if (l) throw i;
57
- }
58
- }
59
- return s;
60
- }
61
- }
62
- function h() {
63
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
- }
65
- function g(e, t) {
66
- return ne(e) || re(e, t) || _(e, t) || h();
67
- }
68
- function _(e, t) {
69
- if (e) {
70
- if (typeof e == "string") return m(e, t);
71
- var n = {}.toString.call(e).slice(8, -1);
72
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? m(e, t) : void 0;
73
- }
74
- }
75
- var ie = Object.entries, v = Object.setPrototypeOf, ae = Object.isFrozen, oe = Object.getPrototypeOf, se = Object.getOwnPropertyDescriptor, y = Object.freeze, b = Object.seal, ce = Object.create, le = typeof Reflect < "u" && Reflect, ue = le.apply, de = le.construct;
76
- y ||= function(e) {
77
- return e;
78
- }, b ||= function(e) {
79
- return e;
80
- }, ue ||= function(e, t) {
81
- var n = [...arguments].slice(2);
82
- return e.apply(t, n);
83
- }, de ||= function(e) {
84
- return new e(...[...arguments].slice(1));
85
- };
86
- var fe = C(Array.prototype.forEach), pe = C(Array.prototype.lastIndexOf), me = C(Array.prototype.pop), he = C(Array.prototype.push), ge = C(Array.prototype.splice), _e = Array.isArray, ve = C(String.prototype.toLowerCase), ye = C(String.prototype.toString), be = C(String.prototype.match), xe = C(String.prototype.replace), Se = C(String.prototype.indexOf), Ce = C(String.prototype.trim), we = C(Number.prototype.toString), Te = C(Boolean.prototype.toString), Ee = typeof BigInt > "u" ? null : C(BigInt.prototype.toString), De = typeof Symbol > "u" ? null : C(Symbol.prototype.toString), x = C(Object.prototype.hasOwnProperty), Oe = C(Object.prototype.toString), S = C(RegExp.prototype.test), ke = Ae(TypeError);
87
- function C(e) {
88
- return function(t) {
89
- t instanceof RegExp && (t.lastIndex = 0);
90
- var n = [...arguments].slice(1);
91
- return ue(e, t, n);
92
- };
93
- }
94
- function Ae(e) {
95
- return function() {
96
- return de(e, [...arguments]);
97
- };
98
- }
99
- function w(e, t) {
100
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
101
- if (v && v(e, null), !_e(t)) return e;
102
- let r = t.length;
103
- for (; r--;) {
104
- let i = t[r];
105
- if (typeof i == "string") {
106
- let e = n(i);
107
- e !== i && (ae(t) || (t[r] = e), i = e);
108
- }
109
- e[i] = !0;
110
- }
111
- return e;
112
- }
113
- function T(e) {
114
- for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
115
- return e;
116
- }
117
- function E(e) {
118
- let t = ce(null);
119
- for (let r of ie(e)) {
120
- var n = g(r, 2);
121
- let i = n[0], a = n[1];
122
- x(e, i) && (_e(a) ? t[i] = T(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = E(a) : t[i] = a);
123
- }
124
- return t;
125
- }
126
- function je(e) {
127
- switch (typeof e) {
128
- case "string": return e;
129
- case "number": return we(e);
130
- case "boolean": return Te(e);
131
- case "bigint": return Ee ? Ee(e) : "0";
132
- case "symbol": return De ? De(e) : "Symbol()";
133
- case "undefined": return Oe(e);
134
- case "function":
135
- case "object": {
136
- if (e === null) return Oe(e);
137
- let t = e, n = D(t, "toString");
138
- if (typeof n == "function") {
139
- let e = n(t);
140
- return typeof e == "string" ? e : Oe(e);
141
- }
142
- return Oe(e);
143
- }
144
- default: return Oe(e);
145
- }
146
- }
147
- function D(e, t) {
148
- for (; e !== null;) {
149
- let n = se(e, t);
150
- if (n) {
151
- if (n.get) return C(n.get);
152
- if (typeof n.value == "function") return C(n.value);
153
- }
154
- e = oe(e);
155
- }
156
- function n() {
157
- return null;
158
- }
159
- return n;
160
- }
161
- function Me(e) {
162
- try {
163
- return S(e, ""), !0;
164
- } catch {
165
- return !1;
166
- }
167
- }
168
- var Ne = y(/* @__PURE__ */ "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".split(".")), Pe = y(/* @__PURE__ */ "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".split(".")), Fe = y([
169
- "feBlend",
170
- "feColorMatrix",
171
- "feComponentTransfer",
172
- "feComposite",
173
- "feConvolveMatrix",
174
- "feDiffuseLighting",
175
- "feDisplacementMap",
176
- "feDistantLight",
177
- "feDropShadow",
178
- "feFlood",
179
- "feFuncA",
180
- "feFuncB",
181
- "feFuncG",
182
- "feFuncR",
183
- "feGaussianBlur",
184
- "feImage",
185
- "feMerge",
186
- "feMergeNode",
187
- "feMorphology",
188
- "feOffset",
189
- "fePointLight",
190
- "feSpecularLighting",
191
- "feSpotLight",
192
- "feTile",
193
- "feTurbulence"
194
- ]), Ie = y([
195
- "animate",
196
- "color-profile",
197
- "cursor",
198
- "discard",
199
- "font-face",
200
- "font-face-format",
201
- "font-face-name",
202
- "font-face-src",
203
- "font-face-uri",
204
- "foreignobject",
205
- "hatch",
206
- "hatchpath",
207
- "mesh",
208
- "meshgradient",
209
- "meshpatch",
210
- "meshrow",
211
- "missing-glyph",
212
- "script",
213
- "set",
214
- "solidcolor",
215
- "unknown",
216
- "use"
217
- ]), Le = y(/* @__PURE__ */ "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".split(".")), Re = y([
218
- "maction",
219
- "maligngroup",
220
- "malignmark",
221
- "mlongdiv",
222
- "mscarries",
223
- "mscarry",
224
- "msgroup",
225
- "mstack",
226
- "msline",
227
- "msrow",
228
- "semantics",
229
- "annotation",
230
- "annotation-xml",
231
- "mprescripts",
232
- "none"
233
- ]), ze = y(["#text"]), Be = y(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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".split(".")), Ve = y(/* @__PURE__ */ "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.dominant-baseline.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-orientation.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".split(".")), He = y(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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".split(".")), Ue = y([
234
- "xlink:href",
235
- "xml:id",
236
- "xlink:title",
237
- "xml:space",
238
- "xmlns:xlink"
239
- ]), We = b(/{{[\w\W]*|^[\w\W]*}}/g), Ge = b(/<%[\w\W]*|^[\w\W]*%>/g), Ke = b(/\${[\w\W]*/g), qe = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), Je = b(/^aria-[\-\w]+$/), Ye = b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Xe = b(/^(?:\w+script|data):/i), Ze = b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Qe = b(/^html$/i), $e = b(/^[a-z][.\w]*(-[.\w]+)+$/i), et = b(/<[/\w!]/g), tt = b(/<[/\w]/g), nt = b(/<\/no(script|embed|frames)/i), rt = b(/\/>/i), O = {
240
- element: 1,
241
- attribute: 2,
242
- text: 3,
243
- cdataSection: 4,
244
- entityReference: 5,
245
- entityNode: 6,
246
- processingInstruction: 7,
247
- comment: 8,
248
- document: 9,
249
- documentType: 10,
250
- documentFragment: 11,
251
- notation: 12
252
- }, it = function() {
253
- return typeof window > "u" ? null : window;
254
- }, at = function(e, t) {
255
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
256
- let n = null, r = "data-tt-policy-suffix";
257
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
258
- let i = "dompurify" + (n ? "#" + n : "");
259
- try {
260
- return e.createPolicy(i, {
261
- createHTML(e) {
262
- return e;
263
- },
264
- createScriptURL(e) {
265
- return e;
266
- }
267
- });
268
- } catch {
269
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
270
- }
271
- }, ot = function() {
272
- return {
273
- afterSanitizeAttributes: [],
274
- afterSanitizeElements: [],
275
- afterSanitizeShadowDOM: [],
276
- beforeSanitizeAttributes: [],
277
- beforeSanitizeElements: [],
278
- beforeSanitizeShadowDOM: [],
279
- uponSanitizeAttribute: [],
280
- uponSanitizeElement: [],
281
- uponSanitizeShadowNode: []
282
- };
283
- }, st = function(e, t, n, r) {
284
- return x(e, t) && _e(e[t]) ? w(r.base ? E(r.base) : {}, e[t], r.transform) : n;
285
- };
286
- function ct() {
287
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it(), t = (e) => ct(e);
288
- if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
289
- let n = e.document, r = n, i = r.currentScript;
290
- e.DocumentFragment;
291
- let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
292
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
293
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = D(d, "cloneNode"), f = D(d, "remove"), p = D(d, "nextSibling"), te = D(d, "childNodes"), m = D(d, "parentNode"), ne = D(d, "shadowRoot"), re = D(d, "attributes"), h = o && o.prototype ? D(o.prototype, "nodeType") : null, g = o && o.prototype ? D(o.prototype, "nodeName") : null;
294
- if (typeof a == "function") {
295
- let e = n.createElement("template");
296
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
297
- }
298
- let _, v = "", ae, oe = !1, se = 0, le = function() {
299
- if (se > 0) throw ke("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
300
- }, ue = function(e) {
301
- le(), se++;
302
- try {
303
- return _.createHTML(e);
304
- } finally {
305
- se--;
306
- }
307
- }, de = function(e) {
308
- le(), se++;
309
- try {
310
- return _.createScriptURL(e);
311
- } finally {
312
- se--;
313
- }
314
- }, we = function() {
315
- return oe ||= (ae = at(u, i), !0), ae;
316
- }, Te = n, Ee = Te.implementation, De = Te.createNodeIterator, Oe = Te.createDocumentFragment, C = Te.getElementsByTagName, Ae = r.importNode, T = ot();
317
- t.isSupported = typeof ie == "function" && typeof m == "function" && Ee && Ee.createHTMLDocument !== void 0;
318
- let lt = We, ut = Ge, dt = Ke, ft = qe, pt = Je, mt = Xe, k = Ze, ht = $e, A = Ye, j = null, gt = w({}, [
319
- ...Ne,
320
- ...Pe,
321
- ...Fe,
322
- ...Le,
323
- ...ze
324
- ]), M = null, _t = w({}, [
325
- ...Be,
326
- ...Ve,
327
- ...He,
328
- ...Ue
329
- ]), N = Object.seal(ce(null, {
330
- tagNameCheck: {
331
- writable: !0,
332
- configurable: !1,
333
- enumerable: !0,
334
- value: null
335
- },
336
- attributeNameCheck: {
337
- writable: !0,
338
- configurable: !1,
339
- enumerable: !0,
340
- value: null
341
- },
342
- allowCustomizedBuiltInElements: {
343
- writable: !0,
344
- configurable: !1,
345
- enumerable: !0,
346
- value: !1
347
- }
348
- })), P = null, vt = null, F = Object.seal(ce(null, {
349
- tagCheck: {
350
- writable: !0,
351
- configurable: !1,
352
- enumerable: !0,
353
- value: null
354
- },
355
- attributeCheck: {
356
- writable: !0,
357
- configurable: !1,
358
- enumerable: !0,
359
- value: null
360
- }
361
- })), yt = !0, bt = !0, xt = !1, St = !0, I = !1, L = !0, R = !1, Ct = !1, wt = null, Tt = null, Et = !1, Dt = !1, Ot = !1, kt = !1, At = !0, jt = !1, Mt = "user-content-", Nt = !0, z = !1, B = {}, V = null, Pt = w({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ft = null, It = w({}, [
362
- "audio",
363
- "video",
364
- "img",
365
- "source",
366
- "image",
367
- "track"
368
- ]), Lt = null, Rt = w({}, [
369
- "alt",
370
- "class",
371
- "for",
372
- "id",
373
- "label",
374
- "name",
375
- "pattern",
376
- "placeholder",
377
- "role",
378
- "summary",
379
- "title",
380
- "value",
381
- "style",
382
- "xmlns"
383
- ]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", Vt = H, Ht = !1, Ut = null, Wt = w({}, [
384
- zt,
385
- Bt,
386
- H
387
- ], ye), Gt = y([
388
- "mi",
389
- "mo",
390
- "mn",
391
- "ms",
392
- "mtext"
393
- ]), Kt = w({}, Gt), qt = y(["annotation-xml"]), Jt = w({}, qt), Yt = w({}, [
394
- "title",
395
- "style",
396
- "font",
397
- "a",
398
- "script"
399
- ]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], U = null, Qt = null, $t = n.createElement("form"), en = function(e) {
400
- return e instanceof RegExp || e instanceof Function;
401
- }, tn = function() {
402
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
403
- if (Qt && Qt === e) return;
404
- (!e || typeof e != "object") && (e = {}), e = E(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, U = Xt === "application/xhtml+xml" ? ye : ve, j = st(e, "ALLOWED_TAGS", gt, { transform: U }), M = st(e, "ALLOWED_ATTR", _t, { transform: U }), Ut = st(e, "ALLOWED_NAMESPACES", Wt, { transform: ye }), Lt = st(e, "ADD_URI_SAFE_ATTR", Rt, {
405
- transform: U,
406
- base: Rt
407
- }), Ft = st(e, "ADD_DATA_URI_TAGS", It, {
408
- transform: U,
409
- base: It
410
- }), V = st(e, "FORBID_CONTENTS", Pt, { transform: U }), P = st(e, "FORBID_TAGS", E({}), { transform: U }), vt = st(e, "FORBID_ATTR", E({}), { transform: U }), B = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, yt = e.ALLOW_ARIA_ATTR !== !1, bt = e.ALLOW_DATA_ATTR !== !1, xt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, St = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = e.SAFE_FOR_TEMPLATES || !1, L = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, Dt = e.RETURN_DOM || !1, Ot = e.RETURN_DOM_FRAGMENT || !1, kt = e.RETURN_TRUSTED_TYPE || !1, Et = e.FORCE_BODY || !1, At = e.SANITIZE_DOM !== !1, jt = e.SANITIZE_NAMED_PROPS || !1, Nt = e.KEEP_CONTENT !== !1, z = e.IN_PLACE || !1, A = Me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ye, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : H, Kt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? E(e.MATHML_TEXT_INTEGRATION_POINTS) : w({}, Gt), Jt = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? E(e.HTML_INTEGRATION_POINTS) : w({}, qt);
411
- let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? E(e.CUSTOM_ELEMENT_HANDLING) : ce(null);
412
- if (N = ce(null), x(t, "tagNameCheck") && en(t.tagNameCheck) && (N.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && en(t.attributeNameCheck) && (N.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), b(N), I && (bt = !1), Ot && (Dt = !0), B && (j = w({}, ze), M = ce(null), B.html === !0 && (w(j, Ne), w(M, Be)), B.svg === !0 && (w(j, Pe), w(M, Ve), w(M, Ue)), B.svgFilters === !0 && (w(j, Fe), w(M, Ve), w(M, Ue)), B.mathMl === !0 && (w(j, Le), w(M, He), w(M, Ue))), F.tagCheck = null, F.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? F.tagCheck = e.ADD_TAGS : _e(e.ADD_TAGS) && (j === gt && (j = E(j)), w(j, e.ADD_TAGS, U))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? F.attributeCheck = e.ADD_ATTR : _e(e.ADD_ATTR) && (M === _t && (M = E(M)), w(M, e.ADD_ATTR, U))), x(e, "ADD_URI_SAFE_ATTR") && _e(e.ADD_URI_SAFE_ATTR) && w(Lt, e.ADD_URI_SAFE_ATTR, U), x(e, "FORBID_CONTENTS") && _e(e.FORBID_CONTENTS) && (V === Pt && (V = E(V)), w(V, e.FORBID_CONTENTS, U)), x(e, "ADD_FORBID_CONTENTS") && _e(e.ADD_FORBID_CONTENTS) && (V === Pt && (V = E(V)), w(V, e.ADD_FORBID_CONTENTS, U)), Nt && (j["#text"] = !0), R && w(j, [
413
- "html",
414
- "head",
415
- "body"
416
- ]), j.table && (w(j, ["tbody"]), delete P.tbody), e.TRUSTED_TYPES_POLICY) {
417
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ke("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
418
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ke("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
419
- let t = _;
420
- _ = e.TRUSTED_TYPES_POLICY;
421
- try {
422
- v = ue("");
423
- } catch (e) {
424
- throw _ = t, e;
425
- }
426
- } else e.TRUSTED_TYPES_POLICY === null ? (_ = void 0, v = "") : (_ === void 0 && (_ = we()), _ && typeof v == "string" && (v = ue("")));
427
- y && y(e), Qt = e;
428
- }, nn = w({}, [
429
- ...Pe,
430
- ...Fe,
431
- ...Ie
432
- ]), rn = w({}, [...Le, ...Re]), an = function(e, t, n) {
433
- return t.namespaceURI === H ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
434
- }, on = function(e, t, n) {
435
- return t.namespaceURI === H ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
436
- }, sn = function(e, t, n) {
437
- return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
438
- }, cn = function(e) {
439
- let t = m(e);
440
- (!t || !t.tagName) && (t = {
441
- namespaceURI: Vt,
442
- tagName: "template"
443
- });
444
- let n = ve(e.tagName), r = ve(t.tagName);
445
- return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === H ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
446
- }, ln = function(e) {
447
- he(t.removed, { element: e });
448
- try {
449
- m(e).removeChild(e);
450
- } catch {
451
- if (f(e), !m(e)) throw ke("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
452
- }
453
- }, un = function(e) {
454
- fn(e);
455
- let t = te(e);
456
- if (t) {
457
- let e = [];
458
- fe(t, (t) => {
459
- he(e, t);
460
- }), fe(e, (e) => {
461
- try {
462
- f(e);
463
- } catch {}
464
- });
465
- }
466
- let n = re(e);
467
- if (n) for (let t = n.length - 1; t >= 0; --t) {
468
- let r = n[t], i = r && r.name;
469
- if (typeof i == "string") try {
470
- e.removeAttribute(i);
471
- } catch {}
472
- }
473
- }, W = function(e, n) {
474
- try {
475
- he(t.removed, {
476
- attribute: n.getAttributeNode(e),
477
- from: n
478
- });
479
- } catch {
480
- he(t.removed, {
481
- attribute: null,
482
- from: n
483
- });
484
- }
485
- if (n.removeAttribute(e), e === "is") if (Dt || Ot) try {
486
- ln(n);
487
- } catch {}
488
- else try {
489
- n.setAttribute(e, "");
490
- } catch {}
491
- }, dn = function(e) {
492
- let t = re(e);
493
- if (t) for (let n = t.length - 1; n >= 0; --n) {
494
- let r = t[n], i = r && r.name;
495
- if (!(typeof i != "string" || M[U(i)])) try {
496
- e.removeAttribute(i);
497
- } catch {}
498
- }
499
- }, fn = function(e) {
500
- let t = [e];
501
- for (; t.length > 0;) {
502
- let e = t.pop();
503
- (h ? h(e) : e.nodeType) === O.element && dn(e);
504
- let n = te(e);
505
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
506
- }
507
- }, G = function(e) {
508
- if (!L) return;
509
- let t = [e];
510
- for (; t.length > 0;) {
511
- let e = t.pop(), n = h ? h(e) : e.nodeType;
512
- if (n === O.processingInstruction || n === O.comment && S(tt, e.data)) {
513
- try {
514
- f(e);
515
- } catch {}
516
- continue;
517
- }
518
- if (n === O.element) {
519
- let t = e, n = U(g ? g(e) : e.nodeName);
520
- try {
521
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
522
- } catch {}
523
- }
524
- let r = te(e);
525
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
526
- }
527
- }, pn = function(e) {
528
- let t = null, r = null;
529
- if (Et) e = "<remove></remove>" + e;
530
- else {
531
- let t = be(e, /^[\r\n\t ]+/);
532
- r = t && t[0];
533
- }
534
- Xt === "application/xhtml+xml" && Vt === H && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
535
- let i = _ ? ue(e) : e;
536
- if (Vt === H) try {
537
- t = new l().parseFromString(i, Xt);
538
- } catch {}
539
- if (!t || !t.documentElement) {
540
- t = Ee.createDocument(Vt, "template", null);
541
- try {
542
- t.documentElement.innerHTML = Ht ? v : i;
543
- } catch {}
544
- }
545
- let a = t.body || t.documentElement;
546
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === H ? C.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
547
- }, mn = function(e) {
548
- return De.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
549
- }, hn = function(e) {
550
- return e = xe(e, lt, " "), e = xe(e, ut, " "), e = xe(e, dt, " "), e;
551
- }, gn = function(e) {
552
- e.normalize();
553
- let t = De.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
554
- for (; n;) n.data = hn(n.data), n = t.nextNode();
555
- let r = e.querySelectorAll?.call(e, "template");
556
- r && fe(r, (e) => {
557
- K(e.content) && gn(e.content);
558
- });
559
- }, _n = function(e) {
560
- let t = g ? g(e) : null;
561
- return typeof t != "string" || U(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== h(e) || e.childNodes !== te(e);
562
- }, K = function(e) {
563
- if (!h || typeof e != "object" || !e) return !1;
564
- try {
565
- return h(e) === O.documentFragment;
566
- } catch {
567
- return !1;
568
- }
569
- }, q = function(e) {
570
- if (!h || typeof e != "object" || !e) return !1;
571
- try {
572
- return typeof h(e) == "number";
573
- } catch {
574
- return !1;
575
- }
576
- };
577
- function J(e, n, r) {
578
- e.length !== 0 && fe(e, (e) => {
579
- e.call(t, n, r, Qt);
580
- });
581
- }
582
- let vn = function(e, t) {
583
- return !!(L && e.hasChildNodes() && !q(e.firstElementChild) && S(et, e.textContent) && S(et, e.innerHTML) || L && e.namespaceURI === H && t === "style" && q(e.firstElementChild) || e.nodeType === O.processingInstruction || L && e.nodeType === O.comment && S(tt, e.data));
584
- }, Y = function(e, t) {
585
- if (!P[t] && bn(t) && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, t) || N.tagNameCheck instanceof Function && N.tagNameCheck(t))) return !1;
586
- if (Nt && !V[t]) {
587
- let t = m(e), n = te(e);
588
- if (n && t) {
589
- let r = n.length;
590
- for (let i = r - 1; i >= 0; --i) {
591
- let r = z ? n[i] : ee(n[i], !0);
592
- t.insertBefore(r, p(e));
593
- }
594
- }
595
- }
596
- return ln(e), !0;
597
- }, yn = function(e, n) {
598
- if (J(T.beforeSanitizeElements, e, null), e !== n && m(e) === null) return !0;
599
- if (_n(e)) return ln(e), !0;
600
- let r = U(g ? g(e) : e.nodeName);
601
- if (J(T.uponSanitizeElement, e, {
602
- tagName: r,
603
- allowedTags: j
604
- }), e !== n && m(e) === null) return !0;
605
- if (vn(e, r)) return ln(e), !0;
606
- if (P[r] || !(F.tagCheck instanceof Function && F.tagCheck(r)) && !j[r]) {
607
- let t = Y(e, r);
608
- return t === !1 && J(T.afterSanitizeElements, e, null), t;
609
- }
610
- if ((h ? h(e) : e.nodeType) === O.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(nt, e.innerHTML)) return ln(e), !0;
611
- if (I && e.nodeType === O.text) {
612
- let n = hn(e.textContent);
613
- e.textContent !== n && (he(t.removed, { element: e.cloneNode() }), e.textContent = n);
614
- }
615
- return J(T.afterSanitizeElements, e, null), !1;
616
- }, X = function(e, t, r) {
617
- if (vt[t] || L && t === "patchsrc" || L && t === "for" && e !== "label" && e !== "output" || At && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
618
- let i = M[t] || F.attributeCheck instanceof Function && F.attributeCheck(t, e);
619
- if (!(bt && S(ft, t)) && !(yt && S(pt, t))) {
620
- if (!i) {
621
- if (!(bn(e) && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, e) || N.tagNameCheck instanceof Function && N.tagNameCheck(e)) && (N.attributeNameCheck instanceof RegExp && S(N.attributeNameCheck, t) || N.attributeNameCheck instanceof Function && N.attributeNameCheck(t, e)) || t === "is" && N.allowCustomizedBuiltInElements && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, r) || N.tagNameCheck instanceof Function && N.tagNameCheck(r)))) return !1;
622
- } else if (!Lt[t] && !S(A, xe(r, k, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Se(r, "data:") === 0 && Ft[e]) && !(xt && !S(mt, xe(r, k, ""))) && r) return !1;
623
- }
624
- return !0;
625
- }, Z = w({}, [
626
- "annotation-xml",
627
- "color-profile",
628
- "font-face",
629
- "font-face-format",
630
- "font-face-name",
631
- "font-face-src",
632
- "font-face-uri",
633
- "missing-glyph"
634
- ]), bn = function(e) {
635
- return !Z[ve(e)] && S(ht, e);
636
- }, xn = function(e, t, n, r) {
637
- if (_ && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
638
- case "TrustedHTML": return ue(r);
639
- case "TrustedScriptURL": return de(r);
640
- }
641
- return r;
642
- }, Sn = function(e, n, r, i) {
643
- try {
644
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), _n(e) ? ln(e) : me(t.removed);
645
- } catch {
646
- W(n, e);
647
- }
648
- }, Cn = function(e) {
649
- J(T.beforeSanitizeAttributes, e, null);
650
- let t = e.attributes;
651
- if (!t || _n(e)) return;
652
- let n = {
653
- attrName: "",
654
- attrValue: "",
655
- keepAttr: !0,
656
- allowedAttributes: M,
657
- forceKeepAttr: void 0
658
- }, r = t.length, i = U(e.nodeName);
659
- for (; r--;) {
660
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = U(o), u = c, d = o === "value" ? u : Ce(u);
661
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, J(T.uponSanitizeAttribute, e, n), d = n.attrValue, jt && (l === "id" || l === "name") && Se(d, Mt) !== 0 && (W(o, e), d = Mt + d), L && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
662
- W(o, e);
663
- continue;
664
- }
665
- if (l === "attributename" && be(d, "href")) {
666
- W(o, e);
667
- continue;
668
- }
669
- if (!n.forceKeepAttr) {
670
- if (!n.keepAttr) {
671
- W(o, e);
672
- continue;
673
- }
674
- if (!St && S(rt, d)) {
675
- W(o, e);
676
- continue;
677
- }
678
- if (I && (d = hn(d)), !X(i, l, d)) {
679
- W(o, e);
680
- continue;
681
- }
682
- d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
683
- }
684
- }
685
- J(T.afterSanitizeAttributes, e, null);
686
- }, wn = function(e) {
687
- let t = null, n = mn(e);
688
- for (J(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (J(T.uponSanitizeShadowNode, t, null), yn(t, e), Cn(t), K(t.content) && wn(t.content), (h ? h(t) : t.nodeType) === O.element) {
689
- let e = ne(t);
690
- K(e) && (Tn(e), wn(e));
691
- }
692
- J(T.afterSanitizeShadowDOM, e, null);
693
- }, Tn = function(e) {
694
- let t = [{
695
- node: e,
696
- shadow: null
697
- }];
698
- for (; t.length > 0;) {
699
- let e = t.pop();
700
- if (e.shadow) {
701
- wn(e.shadow);
702
- continue;
703
- }
704
- let n = e.node, r = (h ? h(n) : n.nodeType) === O.element, i = te(n);
705
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
706
- node: i[e],
707
- shadow: null
708
- });
709
- if (r) {
710
- let e = g ? g(n) : null;
711
- if (typeof e == "string" && U(e) === "template") {
712
- let e = n.content;
713
- K(e) && t.push({
714
- node: e,
715
- shadow: null
716
- });
717
- }
718
- }
719
- if (r) {
720
- let e = ne(n);
721
- K(e) && t.push({
722
- node: null,
723
- shadow: e
724
- }, {
725
- node: e,
726
- shadow: null
727
- });
728
- }
729
- }
730
- };
731
- return t.sanitize = function(e) {
732
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
733
- if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !q(e) && (e = je(e), typeof e != "string")) throw ke("dirty is not a string, aborting");
734
- if (!t.isSupported) return e;
735
- Ct ? (j = wt, M = Tt) : tn(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (j = E(j)), T.uponSanitizeAttribute.length > 0 && (M = E(M)), t.removed = [];
736
- let c = z && typeof e != "string" && q(e);
737
- if (c) {
738
- G(e);
739
- let t = g ? g(e) : e.nodeName;
740
- if (typeof t == "string") {
741
- let n = U(t);
742
- if (!j[n] || P[n]) throw un(e), ke("root node is forbidden and cannot be sanitized in-place");
743
- }
744
- if (_n(e)) throw un(e), ke("root node is clobbered and cannot be sanitized in-place");
745
- try {
746
- Tn(e);
747
- } catch (t) {
748
- throw un(e), t;
749
- }
750
- } else if (q(e)) i = pn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
751
- else {
752
- if (!Dt && !I && !R && e.indexOf("<") === -1) return _ && kt ? ue(e) : e;
753
- if (i = pn(e), !i) return Dt ? null : kt ? v : "";
754
- }
755
- i && Et && ln(i.firstChild);
756
- let l = c ? e : i, u = mn(l);
757
- try {
758
- for (; o = u.nextNode();) yn(o, l), Cn(o), K(o.content) && wn(o.content);
759
- } catch (n) {
760
- throw c && (un(e), fe(t.removed, (e) => {
761
- e.element && fn(e.element);
762
- })), n;
763
- }
764
- if (c) return fe(t.removed, (e) => {
765
- e.element && fn(e.element);
766
- }), I && gn(e), e;
767
- if (Dt) {
768
- if (I && gn(i), Ot) for (s = Oe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
769
- else s = i;
770
- return (M.shadowroot || M.shadowrootmode) && (s = Ae.call(r, s, !0)), s;
771
- }
772
- let d = R ? i.outerHTML : i.innerHTML;
773
- return R && j["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Qe, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), I && (d = hn(d)), _ && kt ? ue(d) : d;
774
- }, t.setConfig = function() {
775
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
776
- tn(e), Ct = !0, wt = j, Tt = M;
777
- }, t.clearConfig = function() {
778
- Qt = null, Ct = !1, wt = null, Tt = null, _ = ae, v = "";
779
- }, t.isValidAttribute = function(e, t, n) {
780
- Qt || tn({});
781
- let r = U(e), i = U(t);
782
- return X(r, i, n);
783
- }, t.addHook = function(e, t) {
784
- typeof t == "function" && x(T, e) && he(T[e], t);
785
- }, t.removeHook = function(e, t) {
786
- if (x(T, e)) {
787
- if (t !== void 0) {
788
- let n = pe(T[e], t);
789
- return n === -1 ? void 0 : ge(T[e], n, 1)[0];
790
- }
791
- return me(T[e]);
792
- }
793
- }, t.removeHooks = function(e) {
794
- x(T, e) && (T[e] = []);
795
- }, t.removeAllHooks = function() {
796
- T = ot();
797
- }, t;
798
- }
799
- var lt = ct();
800
- //#endregion
801
- //#region node_modules/marked/lib/marked.esm.js
802
- function ut() {
803
- return {
804
- async: !1,
805
- breaks: !1,
806
- extensions: null,
807
- gfm: !0,
808
- hooks: null,
809
- pedantic: !1,
810
- renderer: null,
811
- silent: !1,
812
- tokenizer: null,
813
- walkTokens: null
814
- };
815
- }
816
- var dt = ut();
817
- function ft(e) {
818
- dt = e;
819
- }
820
- var pt = { exec: () => null };
821
- function mt(e) {
822
- let t = [];
823
- return (n) => {
824
- let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
825
- return i || (i = e(r), t[r] = i), i;
826
- };
827
- }
828
- function k(e, t = "") {
829
- let n = typeof e == "string" ? e : e.source, r = {
830
- replace: (e, t) => {
831
- let i = typeof t == "string" ? t : t.source;
832
- return i = i.replace(A.caret, "$1"), n = n.replace(e, i), r;
833
- },
834
- getRegex: () => new RegExp(n, t)
835
- };
836
- return r;
837
- }
838
- var ht = ((e = "") => {
839
- try {
840
- return !!RegExp("(?<=1)(?<!1)" + e);
841
- } catch {
842
- return !1;
843
- }
844
- })(), A = {
845
- codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
846
- outputLinkReplace: /\\([\[\]])/g,
847
- indentCodeCompensation: /^(\s+)(?:```)/,
848
- beginningSpace: /^\s+/,
849
- endingHash: /#$/,
850
- startingSpaceChar: /^ /,
851
- endingSpaceChar: / $/,
852
- nonSpaceChar: /[^ ]/,
853
- newLineCharGlobal: /\n/g,
854
- tabCharGlobal: /\t/g,
855
- multipleSpaceGlobal: /\s+/g,
856
- blankLine: /^[ \t]*$/,
857
- doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
858
- blockquoteStart: /^ {0,3}>/,
859
- blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
860
- blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
861
- listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
862
- listIsTask: /^\[[ xX]\] +\S/,
863
- listReplaceTask: /^\[[ xX]\] +/,
864
- listTaskCheckbox: /\[[ xX]\]/,
865
- anyLine: /\n.*\n/,
866
- hrefBrackets: /^<(.*)>$/,
867
- tableDelimiter: /[:|]/,
868
- tableAlignChars: /^\||\| *$/g,
869
- tableRowBlankLine: /\n[ \t]*$/,
870
- tableAlignRight: /^ *-+: *$/,
871
- tableAlignCenter: /^ *:-+: *$/,
872
- tableAlignLeft: /^ *:-+ *$/,
873
- startATag: /^<a /i,
874
- endATag: /^<\/a>/i,
875
- startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
876
- endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
877
- startAngleBracket: /^</,
878
- endAngleBracket: />$/,
879
- pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
880
- unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
881
- escapeTest: /[&<>"']/,
882
- escapeReplace: /[&<>"']/g,
883
- escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
884
- escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
885
- caret: /(^|[^\[])\^/g,
886
- percentDecode: /%25/g,
887
- findPipe: /\|/g,
888
- splitPipe: / \|/,
889
- slashPipe: /\\\|/g,
890
- carriageReturn: /\r\n|\r/g,
891
- spaceLine: /^ +$/gm,
892
- notSpaceStart: /^\S*/,
893
- endingNewline: /\n$/,
894
- listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
895
- nextBulletRegex: mt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
896
- hrRegex: mt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
897
- fencesBeginRegex: mt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
898
- headingBeginRegex: mt((e) => RegExp(`^ {0,${e}}#`)),
899
- htmlBeginRegex: mt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
900
- blockquoteBeginRegex: mt((e) => RegExp(`^ {0,${e}}>`))
901
- }, j = /^(?:[ \t]*(?:\n|$))+/, gt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, M = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _t = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, N = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, P = / {0,3}(?:[*+-]|\d{1,9}[.)])/, vt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, F = k(vt).replace(/bull/g, P).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), yt = k(vt).replace(/bull/g, P).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), bt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, xt = /^[^\n]+/, St = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, I = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", St).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), L = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, P).getRegex(), R = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ct = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, wt = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ct).replace("tag", R).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Tt = k(bt).replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", R).getRegex(), Et = {
902
- blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Tt).getRegex(),
903
- code: gt,
904
- def: I,
905
- fences: M,
906
- heading: N,
907
- hr: _t,
908
- html: wt,
909
- lheading: F,
910
- list: L,
911
- newline: j,
912
- paragraph: Tt,
913
- table: pt,
914
- text: xt
915
- }, Dt = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", R).getRegex(), Ot = {
916
- ...Et,
917
- lheading: yt,
918
- table: Dt,
919
- paragraph: k(bt).replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Dt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", R).getRegex()
920
- }, kt = {
921
- ...Et,
922
- html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ct).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
923
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
924
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
925
- fences: pt,
926
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
927
- paragraph: k(bt).replace("hr", _t).replace("heading", " *#{1,6} *[^\n]").replace("lheading", F).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
928
- }, At = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, jt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Mt = /^( {2,}|\\)\n(?!\s*$)/, Nt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, B = /[\s\p{P}\p{S}]/u, V = /[^\s\p{P}\p{S}]/u, Pt = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, B).getRegex(), Ft = /(?!~)[\p{P}\p{S}]/u, It = /(?!~)[\s\p{P}\p{S}]/u, Lt = /(?:[^\s\p{P}\p{S}]|~)/u, Rt = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ht ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), zt = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Bt = k(zt, "u").replace(/punct/g, z).getRegex(), H = k(zt, "u").replace(/punct/g, Ft).getRegex(), Vt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ht = k(Vt, "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Ut = k(Vt, "gu").replace(/notPunctSpace/g, Lt).replace(/punctSpace/g, It).replace(/punct/g, Ft).getRegex(), Wt = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Gt = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), Kt = k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), qt = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), Jt = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Yt = k(Ct).replace("(?:-->|$)", "-->").getRegex(), Xt = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Yt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, U = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Zt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Qt = k(/^!?\[(label)\]\[(ref)\]/).replace("label", Zt).replace("ref", St).getRegex(), $t = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", St).getRegex(), en = k("reflink|nolink(?!\\()", "g").replace("reflink", Qt).replace("nolink", $t).getRegex(), tn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nn = {
929
- _backpedal: pt,
930
- anyPunctuation: qt,
931
- autolink: Jt,
932
- blockSkip: Rt,
933
- br: Mt,
934
- code: jt,
935
- del: pt,
936
- delLDelim: pt,
937
- delRDelim: pt,
938
- emStrongLDelim: Bt,
939
- emStrongRDelimAst: Ht,
940
- emStrongRDelimUnd: Wt,
941
- escape: At,
942
- link: U,
943
- nolink: $t,
944
- punctuation: Pt,
945
- reflink: Qt,
946
- reflinkSearch: en,
947
- tag: Xt,
948
- text: Nt,
949
- url: pt
950
- }, rn = {
951
- ...nn,
952
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", Zt).getRegex(),
953
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zt).getRegex()
954
- }, an = {
955
- ...nn,
956
- emStrongRDelimAst: Ut,
957
- emStrongLDelim: H,
958
- delLDelim: Gt,
959
- delRDelim: Kt,
960
- url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", tn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
961
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
962
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
963
- text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", tn).getRegex()
964
- }, on = {
965
- ...an,
966
- br: k(Mt).replace("{2,}", "*").getRegex(),
967
- text: k(an.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
968
- }, sn = {
969
- normal: Et,
970
- gfm: Ot,
971
- pedantic: kt
972
- }, cn = {
973
- normal: nn,
974
- gfm: an,
975
- breaks: on,
976
- pedantic: rn
977
- }, ln = {
978
- "&": "&amp;",
979
- "<": "&lt;",
980
- ">": "&gt;",
981
- "\"": "&quot;",
982
- "'": "&#39;"
983
- }, un = (e) => ln[e];
984
- function W(e, t) {
985
- if (t) {
986
- if (A.escapeTest.test(e)) return e.replace(A.escapeReplace, un);
987
- } else if (A.escapeTestNoEncode.test(e)) return e.replace(A.escapeReplaceNoEncode, un);
988
- return e;
989
- }
990
- function dn(e) {
991
- try {
992
- e = encodeURI(e).replace(A.percentDecode, "%");
993
- } catch {
994
- return null;
995
- }
996
- return e;
997
- }
998
- function fn(e, t) {
999
- let n = e.replace(A.findPipe, (e, t, n) => {
1000
- let r = !1, i = t;
1001
- for (; --i >= 0 && n[i] === "\\";) r = !r;
1002
- return r ? "|" : " |";
1003
- }).split(A.splitPipe), r = 0;
1004
- if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
1005
- else for (; n.length < t;) n.push("");
1006
- for (; r < n.length; r++) n[r] = n[r].trim().replace(A.slashPipe, "|");
1007
- return n;
1008
- }
1009
- function G(e, t, n) {
1010
- let r = e.length;
1011
- if (r === 0) return "";
1012
- let i = 0;
1013
- for (; i < r;) {
1014
- let a = e.charAt(r - i - 1);
1015
- if (a === t && !n) i++;
1016
- else if (a !== t && n) i++;
1017
- else break;
1018
- }
1019
- return e.slice(0, r - i);
1020
- }
1021
- function pn(e) {
1022
- let t = e.split("\n"), n = t.length - 1;
1023
- for (; n >= 0 && A.blankLine.test(t[n]);) n--;
1024
- return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
1025
- }
1026
- function mn(e, t) {
1027
- if (e.indexOf(t[1]) === -1) return -1;
1028
- let n = 0;
1029
- for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
1030
- else if (e[r] === t[0]) n++;
1031
- else if (e[r] === t[1] && (n--, n < 0)) return r;
1032
- return n > 0 ? -2 : -1;
1033
- }
1034
- function hn(e, t = 0) {
1035
- let n = t, r = "";
1036
- for (let t of e) if (t === " ") {
1037
- let e = 4 - n % 4;
1038
- r += " ".repeat(e), n += e;
1039
- } else r += t, n++;
1040
- return r;
1041
- }
1042
- function gn(e, t, n, r, i) {
1043
- let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
1044
- r.state.inLink = !0;
1045
- let c = {
1046
- type: e[0].charAt(0) === "!" ? "image" : "link",
1047
- raw: n,
1048
- href: a,
1049
- title: o,
1050
- text: s,
1051
- tokens: r.inlineTokens(s)
1052
- };
1053
- return r.state.inLink = !1, c;
1054
- }
1055
- function _n(e, t, n) {
1056
- let r = e.match(n.other.indentCodeCompensation);
1057
- if (r === null) return t;
1058
- let i = r[1];
1059
- return t.split("\n").map((e) => {
1060
- let t = e.match(n.other.beginningSpace);
1061
- if (t === null) return e;
1062
- let [r] = t;
1063
- return r.length >= i.length ? e.slice(i.length) : e;
1064
- }).join("\n");
1065
- }
1066
- var K = class {
1067
- options;
1068
- rules;
1069
- lexer;
1070
- constructor(e) {
1071
- this.options = e || dt;
1072
- }
1073
- space(e) {
1074
- let t = this.rules.block.newline.exec(e);
1075
- if (t && t[0].length > 0) return {
1076
- type: "space",
1077
- raw: t[0]
1078
- };
1079
- }
1080
- code(e) {
1081
- let t = this.rules.block.code.exec(e);
1082
- if (t) {
1083
- let e = this.options.pedantic ? t[0] : pn(t[0]);
1084
- return {
1085
- type: "code",
1086
- raw: e,
1087
- codeBlockStyle: "indented",
1088
- text: e.replace(this.rules.other.codeRemoveIndent, "")
1089
- };
1090
- }
1091
- }
1092
- fences(e) {
1093
- let t = this.rules.block.fences.exec(e);
1094
- if (t) {
1095
- let e = t[0], n = _n(e, t[3] || "", this.rules);
1096
- return {
1097
- type: "code",
1098
- raw: e,
1099
- lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
1100
- text: n
1101
- };
1102
- }
1103
- }
1104
- heading(e) {
1105
- let t = this.rules.block.heading.exec(e);
1106
- if (t) {
1107
- let e = t[2].trim();
1108
- if (this.rules.other.endingHash.test(e)) {
1109
- let t = G(e, "#");
1110
- (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
1111
- }
1112
- return {
1113
- type: "heading",
1114
- raw: G(t[0], "\n"),
1115
- depth: t[1].length,
1116
- text: e,
1117
- tokens: this.lexer.inline(e)
1118
- };
1119
- }
1120
- }
1121
- hr(e) {
1122
- let t = this.rules.block.hr.exec(e);
1123
- if (t) return {
1124
- type: "hr",
1125
- raw: G(t[0], "\n")
1126
- };
1127
- }
1128
- blockquote(e) {
1129
- let t = this.rules.block.blockquote.exec(e);
1130
- if (t) {
1131
- let e = G(t[0], "\n").split("\n"), n = "", r = "", i = [];
1132
- for (; e.length > 0;) {
1133
- let t = !1, a = [], o;
1134
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
1135
- else if (!t) a.push(e[o]);
1136
- else break;
1137
- e = e.slice(o);
1138
- let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
1139
- n = n ? `${n}
1140
- ${s}` : s, r = r ? `${r}
1141
- ${c}` : c;
1142
- let l = this.lexer.state.top;
1143
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
1144
- let u = i.at(-1);
1145
- if (u?.type === "code") break;
1146
- if (u?.type === "blockquote") {
1147
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
1148
- i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
1149
- break;
1150
- } else if (u?.type === "list") {
1151
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
1152
- i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
1153
- continue;
1154
- }
1155
- }
1156
- return {
1157
- type: "blockquote",
1158
- raw: n,
1159
- tokens: i,
1160
- text: r
1161
- };
1162
- }
1163
- }
1164
- list(e) {
1165
- let t = this.rules.block.list.exec(e);
1166
- if (t) {
1167
- let n = t[1].trim(), r = n.length > 1, i = {
1168
- type: "list",
1169
- raw: "",
1170
- ordered: r,
1171
- start: r ? +n.slice(0, -1) : "",
1172
- loose: !1,
1173
- items: []
1174
- };
1175
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
1176
- let a = this.rules.other.listItemRegex(n), o = !1;
1177
- for (; e;) {
1178
- let n = !1, r = "", s = "";
1179
- if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
1180
- r = t[0], e = e.substring(r.length);
1181
- let c = hn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1182
- if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
1183
- let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), ee = this.rules.other.blockquoteBeginRegex(d);
1184
- for (; e;) {
1185
- let f = e.split("\n", 1)[0], p;
1186
- if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || ee.test(l) || t.test(l) || n.test(l)) break;
1187
- if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
1188
- else {
1189
- if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
1190
- s += "\n" + l;
1191
- }
1192
- u = !l.trim(), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
1193
- }
1194
- }
1195
- i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
1196
- type: "list_item",
1197
- raw: r,
1198
- task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
1199
- loose: !1,
1200
- text: s,
1201
- tokens: []
1202
- }), i.raw += r;
1203
- }
1204
- let s = i.items.at(-1);
1205
- if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
1206
- else return;
1207
- i.raw = i.raw.trimEnd();
1208
- for (let e of i.items) {
1209
- this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []);
1210
- let t = e.tokens[0];
1211
- if (e.task && (t?.type === "text" || t?.type === "paragraph")) {
1212
- e.text = e.text.replace(this.rules.other.listReplaceTask, ""), t.raw = t.raw.replace(this.rules.other.listReplaceTask, ""), t.text = t.text.replace(this.rules.other.listReplaceTask, "");
1213
- for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
1214
- this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
1215
- break;
1216
- }
1217
- let n = this.rules.other.listTaskCheckbox.exec(e.raw);
1218
- if (n) {
1219
- let t = {
1220
- type: "checkbox",
1221
- raw: n[0] + " ",
1222
- checked: n[0] !== "[ ]"
1223
- };
1224
- e.checked = t.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = t.raw + e.tokens[0].raw, e.tokens[0].text = t.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(t)) : e.tokens.unshift({
1225
- type: "paragraph",
1226
- raw: t.raw,
1227
- text: t.raw,
1228
- tokens: [t]
1229
- }) : e.tokens.unshift(t);
1230
- }
1231
- } else e.task &&= !1;
1232
- if (!i.loose) {
1233
- let t = e.tokens.filter((e) => e.type === "space");
1234
- i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
1235
- }
1236
- }
1237
- if (i.loose) for (let e of i.items) {
1238
- e.loose = !0;
1239
- for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
1240
- }
1241
- return i;
1242
- }
1243
- }
1244
- html(e) {
1245
- let t = this.rules.block.html.exec(e);
1246
- if (t) {
1247
- let e = pn(t[0]);
1248
- return {
1249
- type: "html",
1250
- block: !0,
1251
- raw: e,
1252
- pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
1253
- text: e
1254
- };
1255
- }
1256
- }
1257
- def(e) {
1258
- let t = this.rules.block.def.exec(e);
1259
- if (t) {
1260
- let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
1261
- return {
1262
- type: "def",
1263
- tag: e,
1264
- raw: G(t[0], "\n"),
1265
- href: n,
1266
- title: r
1267
- };
1268
- }
1269
- }
1270
- table(e) {
1271
- let t = this.rules.block.table.exec(e);
1272
- if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
1273
- let n = fn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
1274
- type: "table",
1275
- raw: G(t[0], "\n"),
1276
- header: [],
1277
- align: [],
1278
- rows: []
1279
- };
1280
- if (n.length === r.length) {
1281
- for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
1282
- for (let e = 0; e < n.length; e++) a.header.push({
1283
- text: n[e],
1284
- tokens: this.lexer.inline(n[e]),
1285
- header: !0,
1286
- align: a.align[e]
1287
- });
1288
- for (let e of i) a.rows.push(fn(e, a.header.length).map((e, t) => ({
1289
- text: e,
1290
- tokens: this.lexer.inline(e),
1291
- header: !1,
1292
- align: a.align[t]
1293
- })));
1294
- return a;
1295
- }
1296
- }
1297
- lheading(e) {
1298
- let t = this.rules.block.lheading.exec(e);
1299
- if (t) {
1300
- let e = t[1].trim();
1301
- return {
1302
- type: "heading",
1303
- raw: G(t[0], "\n"),
1304
- depth: t[2].charAt(0) === "=" ? 1 : 2,
1305
- text: e,
1306
- tokens: this.lexer.inline(e)
1307
- };
1308
- }
1309
- }
1310
- paragraph(e) {
1311
- let t = this.rules.block.paragraph.exec(e);
1312
- if (t) {
1313
- let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
1314
- return {
1315
- type: "paragraph",
1316
- raw: t[0],
1317
- text: e,
1318
- tokens: this.lexer.inline(e)
1319
- };
1320
- }
1321
- }
1322
- text(e) {
1323
- let t = this.rules.block.text.exec(e);
1324
- if (t) return {
1325
- type: "text",
1326
- raw: t[0],
1327
- text: t[0],
1328
- tokens: this.lexer.inline(t[0])
1329
- };
1330
- }
1331
- escape(e) {
1332
- let t = this.rules.inline.escape.exec(e);
1333
- if (t) return {
1334
- type: "escape",
1335
- raw: t[0],
1336
- text: t[1]
1337
- };
1338
- }
1339
- tag(e) {
1340
- let t = this.rules.inline.tag.exec(e);
1341
- if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
1342
- type: "html",
1343
- raw: t[0],
1344
- inLink: this.lexer.state.inLink,
1345
- inRawBlock: this.lexer.state.inRawBlock,
1346
- block: !1,
1347
- text: t[0]
1348
- };
1349
- }
1350
- link(e) {
1351
- let t = this.rules.inline.link.exec(e);
1352
- if (t) {
1353
- let e = t[2].trim();
1354
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
1355
- if (!this.rules.other.endAngleBracket.test(e)) return;
1356
- let t = G(e.slice(0, -1), "\\");
1357
- if ((e.length - t.length) % 2 == 0) return;
1358
- } else {
1359
- let e = mn(t[2], "()");
1360
- if (e === -2) return;
1361
- if (e > -1) {
1362
- let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
1363
- t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
1364
- }
1365
- }
1366
- let n = t[2], r = "";
1367
- if (this.options.pedantic) {
1368
- let e = this.rules.other.pedanticHrefTitle.exec(n);
1369
- e && (n = e[1], r = e[3]);
1370
- } else r = t[3] ? t[3].slice(1, -1) : "";
1371
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), gn(t, {
1372
- href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
1373
- title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
1374
- }, t[0], this.lexer, this.rules);
1375
- }
1376
- }
1377
- reflink(e, t) {
1378
- let n;
1379
- if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
1380
- let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
1381
- if (!e) {
1382
- let e = n[0].charAt(0);
1383
- return {
1384
- type: "text",
1385
- raw: e,
1386
- text: e
1387
- };
1388
- }
1389
- return gn(n, e, n[0], this.lexer, this.rules);
1390
- }
1391
- }
1392
- emStrong(e, t, n = "") {
1393
- let r = this.rules.inline.emStrongLDelim.exec(e);
1394
- if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
1395
- let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1396
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) !== null;) {
1397
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
1398
- if (a = [...i].length, r[3] || r[4]) {
1399
- o += a;
1400
- continue;
1401
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
1402
- s += a;
1403
- continue;
1404
- }
1405
- if (o -= a, o > 0) continue;
1406
- a = Math.min(a, a + o + s);
1407
- let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
1408
- if (Math.min(n, a) % 2) {
1409
- let e = c.slice(1, -1);
1410
- return {
1411
- type: "em",
1412
- raw: c,
1413
- text: e,
1414
- tokens: this.lexer.inlineTokens(e)
1415
- };
1416
- }
1417
- let l = c.slice(2, -2);
1418
- return {
1419
- type: "strong",
1420
- raw: c,
1421
- text: l,
1422
- tokens: this.lexer.inlineTokens(l)
1423
- };
1424
- }
1425
- }
1426
- }
1427
- codespan(e) {
1428
- let t = this.rules.inline.code.exec(e);
1429
- if (t) {
1430
- let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
1431
- return n && r && (e = e.substring(1, e.length - 1)), {
1432
- type: "codespan",
1433
- raw: t[0],
1434
- text: e
1435
- };
1436
- }
1437
- }
1438
- br(e) {
1439
- let t = this.rules.inline.br.exec(e);
1440
- if (t) return {
1441
- type: "br",
1442
- raw: t[0]
1443
- };
1444
- }
1445
- del(e, t, n = "") {
1446
- let r = this.rules.inline.delLDelim.exec(e);
1447
- if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
1448
- let n = [...r[0]].length - 1, i, a, o = n, s = this.rules.inline.delRDelim;
1449
- for (s.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = s.exec(t)) !== null;) {
1450
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i || (a = [...i].length, a !== n)) continue;
1451
- if (r[3] || r[4]) {
1452
- o += a;
1453
- continue;
1454
- }
1455
- if (o -= a, o > 0) continue;
1456
- a = Math.min(a, a + o);
1457
- let t = [...r[0]][0].length, s = e.slice(0, n + r.index + t + a), c = s.slice(n, -n);
1458
- return {
1459
- type: "del",
1460
- raw: s,
1461
- text: c,
1462
- tokens: this.lexer.inlineTokens(c)
1463
- };
1464
- }
1465
- }
1466
- }
1467
- autolink(e) {
1468
- let t = this.rules.inline.autolink.exec(e);
1469
- if (t) {
1470
- let e, n;
1471
- return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
1472
- type: "link",
1473
- raw: t[0],
1474
- text: e,
1475
- href: n,
1476
- tokens: [{
1477
- type: "text",
1478
- raw: e,
1479
- text: e
1480
- }]
1481
- };
1482
- }
1483
- }
1484
- url(e) {
1485
- let t;
1486
- if (t = this.rules.inline.url.exec(e)) {
1487
- let e, n;
1488
- if (t[2] === "@") e = t[0], n = "mailto:" + e;
1489
- else {
1490
- let r;
1491
- do
1492
- r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
1493
- while (r !== t[0]);
1494
- e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
1495
- }
1496
- return {
1497
- type: "link",
1498
- raw: t[0],
1499
- text: e,
1500
- href: n,
1501
- tokens: [{
1502
- type: "text",
1503
- raw: e,
1504
- text: e
1505
- }]
1506
- };
1507
- }
1508
- }
1509
- inlineText(e) {
1510
- let t = this.rules.inline.text.exec(e);
1511
- if (t) {
1512
- let e = this.lexer.state.inRawBlock;
1513
- return {
1514
- type: "text",
1515
- raw: t[0],
1516
- text: t[0],
1517
- escaped: e
1518
- };
1519
- }
1520
- }
1521
- }, q = class e {
1522
- tokens;
1523
- options;
1524
- state;
1525
- inlineQueue;
1526
- tokenizer;
1527
- constructor(e) {
1528
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || dt, this.options.tokenizer = this.options.tokenizer || new K(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1529
- inLink: !1,
1530
- inRawBlock: !1,
1531
- top: !0
1532
- };
1533
- let t = {
1534
- other: A,
1535
- block: sn.normal,
1536
- inline: cn.normal
1537
- };
1538
- this.options.pedantic ? (t.block = sn.pedantic, t.inline = cn.pedantic) : this.options.gfm && (t.block = sn.gfm, this.options.breaks ? t.inline = cn.breaks : t.inline = cn.gfm), this.tokenizer.rules = t;
1539
- }
1540
- static get rules() {
1541
- return {
1542
- block: sn,
1543
- inline: cn
1544
- };
1545
- }
1546
- static lex(t, n) {
1547
- return new e(n).lex(t);
1548
- }
1549
- static lexInline(t, n) {
1550
- return new e(n).inlineTokens(t);
1551
- }
1552
- lex(e) {
1553
- e = e.replace(A.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1554
- for (let e = 0; e < this.inlineQueue.length; e++) {
1555
- let t = this.inlineQueue[e];
1556
- this.inlineTokens(t.src, t.tokens);
1557
- }
1558
- return this.inlineQueue = [], this.tokens;
1559
- }
1560
- blockTokens(e, t = [], n = !1) {
1561
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(A.tabCharGlobal, " ").replace(A.spaceLine, ""));
1562
- let r = Infinity;
1563
- for (; e;) {
1564
- if (e.length < r) r = e.length;
1565
- else {
1566
- this.infiniteLoopError(e.charCodeAt(0));
1567
- break;
1568
- }
1569
- let i;
1570
- if (this.options.extensions?.block?.some((n) => (i = n.call({ lexer: this }, e, t)) ? (e = e.substring(i.raw.length), t.push(i), !0) : !1)) continue;
1571
- if (i = this.tokenizer.space(e)) {
1572
- e = e.substring(i.raw.length);
1573
- let n = t.at(-1);
1574
- i.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(i);
1575
- continue;
1576
- }
1577
- if (i = this.tokenizer.code(e)) {
1578
- e = e.substring(i.raw.length);
1579
- let n = t.at(-1);
1580
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.at(-1).src = n.text) : t.push(i);
1581
- continue;
1582
- }
1583
- if (i = this.tokenizer.fences(e)) {
1584
- e = e.substring(i.raw.length), t.push(i);
1585
- continue;
1586
- }
1587
- if (i = this.tokenizer.heading(e)) {
1588
- e = e.substring(i.raw.length), t.push(i);
1589
- continue;
1590
- }
1591
- if (i = this.tokenizer.hr(e)) {
1592
- e = e.substring(i.raw.length), t.push(i);
1593
- continue;
1594
- }
1595
- if (i = this.tokenizer.blockquote(e)) {
1596
- e = e.substring(i.raw.length), t.push(i);
1597
- continue;
1598
- }
1599
- if (i = this.tokenizer.list(e)) {
1600
- e = e.substring(i.raw.length), t.push(i);
1601
- continue;
1602
- }
1603
- if (i = this.tokenizer.html(e)) {
1604
- e = e.substring(i.raw.length), t.push(i);
1605
- continue;
1606
- }
1607
- if (i = this.tokenizer.def(e)) {
1608
- e = e.substring(i.raw.length);
1609
- let n = t.at(-1);
1610
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[i.tag] || (this.tokens.links[i.tag] = {
1611
- href: i.href,
1612
- title: i.title
1613
- }, t.push(i));
1614
- continue;
1615
- }
1616
- if (i = this.tokenizer.table(e)) {
1617
- e = e.substring(i.raw.length), t.push(i);
1618
- continue;
1619
- }
1620
- if (i = this.tokenizer.lheading(e)) {
1621
- e = e.substring(i.raw.length), t.push(i);
1622
- continue;
1623
- }
1624
- let a = e;
1625
- if (this.options.extensions?.startBlock) {
1626
- let t = Infinity, n = e.slice(1), r;
1627
- this.options.extensions.startBlock.forEach((e) => {
1628
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
1629
- }), t < Infinity && t >= 0 && (a = e.substring(0, t + 1));
1630
- }
1631
- if (this.state.top && (i = this.tokenizer.paragraph(a))) {
1632
- let r = t.at(-1);
1633
- n && r?.type === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + i.raw, r.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(i), n = a.length !== e.length, e = e.substring(i.raw.length);
1634
- continue;
1635
- }
1636
- if (i = this.tokenizer.text(e)) {
1637
- e = e.substring(i.raw.length);
1638
- let n = t.at(-1);
1639
- n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(i);
1640
- continue;
1641
- }
1642
- if (e) {
1643
- this.infiniteLoopError(e.charCodeAt(0));
1644
- break;
1645
- }
1646
- }
1647
- return this.state.top = !0, t;
1648
- }
1649
- inline(e, t = []) {
1650
- return this.inlineQueue.push({
1651
- src: e,
1652
- tokens: t
1653
- }), t;
1654
- }
1655
- inlineTokens(e, t = []) {
1656
- this.tokenizer.lexer = this;
1657
- let n = e, r = null;
1658
- if (this.tokens.links) {
1659
- let e = Object.keys(this.tokens.links);
1660
- if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
1661
- }
1662
- for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
1663
- let i;
1664
- for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
1665
- n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
1666
- let a = !1, o = "", s = Infinity;
1667
- for (; e;) {
1668
- if (e.length < s) s = e.length;
1669
- else {
1670
- this.infiniteLoopError(e.charCodeAt(0));
1671
- break;
1672
- }
1673
- a || (o = ""), a = !1;
1674
- let r;
1675
- if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
1676
- if (r = this.tokenizer.escape(e)) {
1677
- e = e.substring(r.raw.length), t.push(r);
1678
- continue;
1679
- }
1680
- if (r = this.tokenizer.tag(e)) {
1681
- e = e.substring(r.raw.length), t.push(r);
1682
- continue;
1683
- }
1684
- if (r = this.tokenizer.link(e)) {
1685
- e = e.substring(r.raw.length), t.push(r);
1686
- continue;
1687
- }
1688
- if (r = this.tokenizer.reflink(e, this.tokens.links)) {
1689
- e = e.substring(r.raw.length);
1690
- let n = t.at(-1);
1691
- r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
1692
- continue;
1693
- }
1694
- if (r = this.tokenizer.emStrong(e, n, o)) {
1695
- e = e.substring(r.raw.length), t.push(r);
1696
- continue;
1697
- }
1698
- if (r = this.tokenizer.codespan(e)) {
1699
- e = e.substring(r.raw.length), t.push(r);
1700
- continue;
1701
- }
1702
- if (r = this.tokenizer.br(e)) {
1703
- e = e.substring(r.raw.length), t.push(r);
1704
- continue;
1705
- }
1706
- if (r = this.tokenizer.del(e, n, o)) {
1707
- e = e.substring(r.raw.length), t.push(r);
1708
- continue;
1709
- }
1710
- if (r = this.tokenizer.autolink(e)) {
1711
- e = e.substring(r.raw.length), t.push(r);
1712
- continue;
1713
- }
1714
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
1715
- e = e.substring(r.raw.length), t.push(r);
1716
- continue;
1717
- }
1718
- let i = e;
1719
- if (this.options.extensions?.startInline) {
1720
- let t = Infinity, n = e.slice(1), r;
1721
- this.options.extensions.startInline.forEach((e) => {
1722
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
1723
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
1724
- }
1725
- if (r = this.tokenizer.inlineText(i)) {
1726
- e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
1727
- let n = t.at(-1);
1728
- n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
1729
- continue;
1730
- }
1731
- if (e) {
1732
- this.infiniteLoopError(e.charCodeAt(0));
1733
- break;
1734
- }
1735
- }
1736
- return t;
1737
- }
1738
- infiniteLoopError(e) {
1739
- let t = "Infinite loop on byte: " + e;
1740
- if (this.options.silent) console.error(t);
1741
- else throw Error(t);
1742
- }
1743
- }, J = class {
1744
- options;
1745
- parser;
1746
- constructor(e) {
1747
- this.options = e || dt;
1748
- }
1749
- space(e) {
1750
- return "";
1751
- }
1752
- code({ text: e, lang: t, escaped: n }) {
1753
- let r = (t || "").match(A.notSpaceStart)?.[0], i = e.replace(A.endingNewline, "") + "\n";
1754
- return r ? "<pre><code class=\"language-" + W(r) + "\">" + (n ? i : W(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : W(i, !0)) + "</code></pre>\n";
1755
- }
1756
- blockquote({ tokens: e }) {
1757
- return `<blockquote>
1758
- ${this.parser.parse(e)}</blockquote>
1759
- `;
1760
- }
1761
- html({ text: e }) {
1762
- return e;
1763
- }
1764
- def(e) {
1765
- return "";
1766
- }
1767
- heading({ tokens: e, depth: t }) {
1768
- return `<h${t}>${this.parser.parseInline(e)}</h${t}>
1769
- `;
1770
- }
1771
- hr(e) {
1772
- return "<hr>\n";
1773
- }
1774
- list(e) {
1775
- let t = e.ordered, n = e.start, r = "";
1776
- for (let t = 0; t < e.items.length; t++) {
1777
- let n = e.items[t];
1778
- r += this.listitem(n);
1779
- }
1780
- let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
1781
- return "<" + i + a + ">\n" + r + "</" + i + ">\n";
1782
- }
1783
- listitem(e) {
1784
- return `<li>${this.parser.parse(e.tokens)}</li>
1785
- `;
1786
- }
1787
- checkbox({ checked: e }) {
1788
- return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\"> ";
1789
- }
1790
- paragraph({ tokens: e }) {
1791
- return `<p>${this.parser.parseInline(e)}</p>
1792
- `;
1793
- }
1794
- table(e) {
1795
- let t = "", n = "";
1796
- for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
1797
- t += this.tablerow({ text: n });
1798
- let r = "";
1799
- for (let t = 0; t < e.rows.length; t++) {
1800
- let i = e.rows[t];
1801
- n = "";
1802
- for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
1803
- r += this.tablerow({ text: n });
1804
- }
1805
- return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
1806
- }
1807
- tablerow({ text: e }) {
1808
- return `<tr>
1809
- ${e}</tr>
1810
- `;
1811
- }
1812
- tablecell(e) {
1813
- let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
1814
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
1815
- `;
1816
- }
1817
- strong({ tokens: e }) {
1818
- return `<strong>${this.parser.parseInline(e)}</strong>`;
1819
- }
1820
- em({ tokens: e }) {
1821
- return `<em>${this.parser.parseInline(e)}</em>`;
1822
- }
1823
- codespan({ text: e }) {
1824
- return `<code>${W(e, !0)}</code>`;
1825
- }
1826
- br(e) {
1827
- return "<br>";
1828
- }
1829
- del({ tokens: e }) {
1830
- return `<del>${this.parser.parseInline(e)}</del>`;
1831
- }
1832
- link({ href: e, title: t, tokens: n }) {
1833
- let r = this.parser.parseInline(n), i = dn(e);
1834
- if (i === null) return r;
1835
- e = i;
1836
- let a = "<a href=\"" + e + "\"";
1837
- return t && (a += " title=\"" + W(t) + "\""), a += ">" + r + "</a>", a;
1838
- }
1839
- image({ href: e, title: t, text: n, tokens: r }) {
1840
- r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1841
- let i = dn(e);
1842
- if (i === null) return W(n);
1843
- e = i;
1844
- let a = `<img src="${e}" alt="${W(n)}"`;
1845
- return t && (a += ` title="${W(t)}"`), a += ">", a;
1846
- }
1847
- text(e) {
1848
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
1849
- }
1850
- }, vn = class {
1851
- strong({ text: e }) {
1852
- return e;
1853
- }
1854
- em({ text: e }) {
1855
- return e;
1856
- }
1857
- codespan({ text: e }) {
1858
- return e;
1859
- }
1860
- del({ text: e }) {
1861
- return e;
1862
- }
1863
- html({ text: e }) {
1864
- return e;
1865
- }
1866
- text({ text: e }) {
1867
- return e;
1868
- }
1869
- link({ text: e }) {
1870
- return "" + e;
1871
- }
1872
- image({ text: e }) {
1873
- return "" + e;
1874
- }
1875
- br() {
1876
- return "";
1877
- }
1878
- checkbox({ raw: e }) {
1879
- return e;
1880
- }
1881
- }, Y = class e {
1882
- options;
1883
- renderer;
1884
- textRenderer;
1885
- constructor(e) {
1886
- this.options = e || dt, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new vn();
1887
- }
1888
- static parse(t, n) {
1889
- return new e(n).parse(t);
1890
- }
1891
- static parseInline(t, n) {
1892
- return new e(n).parseInline(t);
1893
- }
1894
- parse(e) {
1895
- this.renderer.parser = this;
1896
- let t = "";
1897
- for (let n = 0; n < e.length; n++) {
1898
- let r = e[n];
1899
- if (this.options.extensions?.renderers?.[r.type]) {
1900
- let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1901
- if (n !== !1 || ![
1902
- "space",
1903
- "hr",
1904
- "heading",
1905
- "code",
1906
- "table",
1907
- "blockquote",
1908
- "list",
1909
- "html",
1910
- "def",
1911
- "paragraph",
1912
- "text"
1913
- ].includes(e.type)) {
1914
- t += n || "";
1915
- continue;
1916
- }
1917
- }
1918
- let i = r;
1919
- switch (i.type) {
1920
- case "space":
1921
- t += this.renderer.space(i);
1922
- break;
1923
- case "hr":
1924
- t += this.renderer.hr(i);
1925
- break;
1926
- case "heading":
1927
- t += this.renderer.heading(i);
1928
- break;
1929
- case "code":
1930
- t += this.renderer.code(i);
1931
- break;
1932
- case "table":
1933
- t += this.renderer.table(i);
1934
- break;
1935
- case "blockquote":
1936
- t += this.renderer.blockquote(i);
1937
- break;
1938
- case "list":
1939
- t += this.renderer.list(i);
1940
- break;
1941
- case "checkbox":
1942
- t += this.renderer.checkbox(i);
1943
- break;
1944
- case "html":
1945
- t += this.renderer.html(i);
1946
- break;
1947
- case "def":
1948
- t += this.renderer.def(i);
1949
- break;
1950
- case "paragraph":
1951
- t += this.renderer.paragraph(i);
1952
- break;
1953
- case "text":
1954
- t += this.renderer.text(i);
1955
- break;
1956
- default: {
1957
- let e = "Token with \"" + i.type + "\" type was not found.";
1958
- if (this.options.silent) return console.error(e), "";
1959
- throw Error(e);
1960
- }
1961
- }
1962
- }
1963
- return t;
1964
- }
1965
- parseInline(e, t = this.renderer) {
1966
- this.renderer.parser = this;
1967
- let n = "";
1968
- for (let r = 0; r < e.length; r++) {
1969
- let i = e[r];
1970
- if (this.options.extensions?.renderers?.[i.type]) {
1971
- let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1972
- if (e !== !1 || ![
1973
- "escape",
1974
- "html",
1975
- "link",
1976
- "image",
1977
- "strong",
1978
- "em",
1979
- "codespan",
1980
- "br",
1981
- "del",
1982
- "text"
1983
- ].includes(i.type)) {
1984
- n += e || "";
1985
- continue;
1986
- }
1987
- }
1988
- let a = i;
1989
- switch (a.type) {
1990
- case "escape":
1991
- n += t.text(a);
1992
- break;
1993
- case "html":
1994
- n += t.html(a);
1995
- break;
1996
- case "link":
1997
- n += t.link(a);
1998
- break;
1999
- case "image":
2000
- n += t.image(a);
2001
- break;
2002
- case "checkbox":
2003
- n += t.checkbox(a);
2004
- break;
2005
- case "strong":
2006
- n += t.strong(a);
2007
- break;
2008
- case "em":
2009
- n += t.em(a);
2010
- break;
2011
- case "codespan":
2012
- n += t.codespan(a);
2013
- break;
2014
- case "br":
2015
- n += t.br(a);
2016
- break;
2017
- case "del":
2018
- n += t.del(a);
2019
- break;
2020
- case "text":
2021
- n += t.text(a);
2022
- break;
2023
- default: {
2024
- let e = "Token with \"" + a.type + "\" type was not found.";
2025
- if (this.options.silent) return console.error(e), "";
2026
- throw Error(e);
2027
- }
2028
- }
2029
- }
2030
- return n;
2031
- }
2032
- }, yn = class {
2033
- options;
2034
- block;
2035
- constructor(e) {
2036
- this.options = e || dt;
2037
- }
2038
- static passThroughHooks = /* @__PURE__ */ new Set([
2039
- "preprocess",
2040
- "postprocess",
2041
- "processAllTokens",
2042
- "emStrongMask"
2043
- ]);
2044
- static passThroughHooksRespectAsync = /* @__PURE__ */ new Set([
2045
- "preprocess",
2046
- "postprocess",
2047
- "processAllTokens"
2048
- ]);
2049
- preprocess(e) {
2050
- return e;
2051
- }
2052
- postprocess(e) {
2053
- return e;
2054
- }
2055
- processAllTokens(e) {
2056
- return e;
2057
- }
2058
- emStrongMask(e) {
2059
- return e;
2060
- }
2061
- provideLexer(e = this.block) {
2062
- return e ? q.lex : q.lexInline;
2063
- }
2064
- provideParser(e = this.block) {
2065
- return e ? Y.parse : Y.parseInline;
2066
- }
2067
- }, X = new class {
2068
- defaults = ut();
2069
- options = this.setOptions;
2070
- parse = this.parseMarkdown(!0);
2071
- parseInline = this.parseMarkdown(!1);
2072
- Parser = Y;
2073
- Renderer = J;
2074
- TextRenderer = vn;
2075
- Lexer = q;
2076
- Tokenizer = K;
2077
- Hooks = yn;
2078
- constructor(...e) {
2079
- this.use(...e);
2080
- }
2081
- walkTokens(e, t) {
2082
- let n = [];
2083
- for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
2084
- case "table": {
2085
- let e = r;
2086
- for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
2087
- for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
2088
- break;
2089
- }
2090
- case "list": {
2091
- let e = r;
2092
- n = n.concat(this.walkTokens(e.items, t));
2093
- break;
2094
- }
2095
- default: {
2096
- let e = r;
2097
- this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
2098
- let i = e[r].flat(Infinity);
2099
- n = n.concat(this.walkTokens(i, t));
2100
- }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
2101
- }
2102
- }
2103
- return n;
2104
- }
2105
- use(...e) {
2106
- let t = this.defaults.extensions || {
2107
- renderers: {},
2108
- childTokens: {}
2109
- };
2110
- return e.forEach((e) => {
2111
- let n = { ...e };
2112
- if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
2113
- if (!e.name) throw Error("extension name required");
2114
- if ("renderer" in e) {
2115
- let n = t.renderers[e.name];
2116
- n ? t.renderers[e.name] = function(...t) {
2117
- let r = e.renderer.apply(this, t);
2118
- return r === !1 && (r = n.apply(this, t)), r;
2119
- } : t.renderers[e.name] = e.renderer;
2120
- }
2121
- if ("tokenizer" in e) {
2122
- if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
2123
- let n = t[e.level];
2124
- n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
2125
- }
2126
- "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
2127
- }), n.extensions = t), e.renderer) {
2128
- let t = this.defaults.renderer || new J(this.defaults);
2129
- for (let n in e.renderer) {
2130
- if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
2131
- if (["options", "parser"].includes(n)) continue;
2132
- let r = n, i = e.renderer[r], a = t[r];
2133
- t[r] = (...e) => {
2134
- let n = i.apply(t, e);
2135
- return n === !1 && (n = a.apply(t, e)), n || "";
2136
- };
2137
- }
2138
- n.renderer = t;
2139
- }
2140
- if (e.tokenizer) {
2141
- let t = this.defaults.tokenizer || new K(this.defaults);
2142
- for (let n in e.tokenizer) {
2143
- if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
2144
- if ([
2145
- "options",
2146
- "rules",
2147
- "lexer"
2148
- ].includes(n)) continue;
2149
- let r = n, i = e.tokenizer[r], a = t[r];
2150
- t[r] = (...e) => {
2151
- let n = i.apply(t, e);
2152
- return n === !1 && (n = a.apply(t, e)), n;
2153
- };
2154
- }
2155
- n.tokenizer = t;
2156
- }
2157
- if (e.hooks) {
2158
- let t = this.defaults.hooks || new yn();
2159
- for (let n in e.hooks) {
2160
- if (!(n in t)) throw Error(`hook '${n}' does not exist`);
2161
- if (["options", "block"].includes(n)) continue;
2162
- let r = n, i = e.hooks[r], a = t[r];
2163
- yn.passThroughHooks.has(n) ? t[r] = (e) => {
2164
- if (this.defaults.async && yn.passThroughHooksRespectAsync.has(n)) return (async () => {
2165
- let n = await i.call(t, e);
2166
- return a.call(t, n);
2167
- })();
2168
- let r = i.call(t, e);
2169
- return a.call(t, r);
2170
- } : t[r] = (...e) => {
2171
- if (this.defaults.async) return (async () => {
2172
- let n = await i.apply(t, e);
2173
- return n === !1 && (n = await a.apply(t, e)), n;
2174
- })();
2175
- let n = i.apply(t, e);
2176
- return n === !1 && (n = a.apply(t, e)), n;
2177
- };
2178
- }
2179
- n.hooks = t;
2180
- }
2181
- if (e.walkTokens) {
2182
- let t = this.defaults.walkTokens, r = e.walkTokens;
2183
- n.walkTokens = function(e) {
2184
- let n = [];
2185
- return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
2186
- };
2187
- }
2188
- this.defaults = {
2189
- ...this.defaults,
2190
- ...n
2191
- };
2192
- }), this;
2193
- }
2194
- setOptions(e) {
2195
- return this.defaults = {
2196
- ...this.defaults,
2197
- ...e
2198
- }, this;
2199
- }
2200
- lexer(e, t) {
2201
- return q.lex(e, t ?? this.defaults);
2202
- }
2203
- parser(e, t) {
2204
- return Y.parse(e, t ?? this.defaults);
2205
- }
2206
- parseMarkdown(e) {
2207
- return (t, n) => {
2208
- let r = { ...n }, i = {
2209
- ...this.defaults,
2210
- ...r
2211
- }, a = this.onError(!!i.silent, !!i.async);
2212
- if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
2213
- if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
2214
- if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
2215
- if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
2216
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
2217
- i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
2218
- let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(a, i);
2219
- return i.hooks ? await i.hooks.postprocess(o) : o;
2220
- })().catch(a);
2221
- try {
2222
- i.hooks && (t = i.hooks.preprocess(t));
2223
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(t, i);
2224
- i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
2225
- let r = (i.hooks ? i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(n, i);
2226
- return i.hooks && (r = i.hooks.postprocess(r)), r;
2227
- } catch (e) {
2228
- return a(e);
2229
- }
2230
- };
2231
- }
2232
- onError(e, t) {
2233
- return (n) => {
2234
- if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
2235
- let e = "<p>An error occurred:</p><pre>" + W(n.message + "", !0) + "</pre>";
2236
- return t ? Promise.resolve(e) : e;
2237
- }
2238
- if (t) return Promise.reject(n);
2239
- throw n;
2240
- };
2241
- }
2242
- }();
2243
- function Z(e, t) {
2244
- return X.parse(e, t);
2245
- }
2246
- Z.options = Z.setOptions = function(e) {
2247
- return X.setOptions(e), Z.defaults = X.defaults, ft(Z.defaults), Z;
2248
- }, Z.getDefaults = ut, Z.defaults = dt, Z.use = function(...e) {
2249
- return X.use(...e), Z.defaults = X.defaults, ft(Z.defaults), Z;
2250
- }, Z.walkTokens = function(e, t) {
2251
- return X.walkTokens(e, t);
2252
- }, Z.parseInline = X.parseInline, Z.Parser = Y, Z.parser = Y.parse, Z.Renderer = J, Z.TextRenderer = vn, Z.Lexer = q, Z.lexer = q.lex, Z.Tokenizer = K, Z.Hooks = yn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Y.parse, q.lex;
2253
- //#endregion
2254
- //#region src/components/ai-chat/ai-chat.module.scss?inline
2255
- var bn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb), .08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:flex}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;align-items:flex-start}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.875rem;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:1rem;--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:1.5rem;--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s,12px);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-attachment-size:64px}", xn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight-strong,600);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}", Sn = class extends e {
2256
- constructor(...e) {
2257
- super(...e), this.title = o("What can I help you with?", { desc: "Title for the AI chat empty state" }), this.subtitle = "", this.suggestions = [], this.disabled = !1;
2258
- }
2259
- static {
2260
- this.styles = ee(xn);
2261
- }
2262
- static {
2263
- this.tagName = "luzmo-ai-chat-empty-state";
2264
- }
2265
- _handleSuggestionActivate(e) {
2266
- if (this.disabled) return;
2267
- let t = e.prompt ?? e.label;
2268
- this.dispatchEvent(new CustomEvent("luzmo-suggestion-selected", {
2269
- detail: {
2270
- label: e.label,
2271
- prompt: t,
2272
- selectedDatasets: e.selectedDatasets
2273
- },
2274
- bubbles: !0,
2275
- composed: !0
2276
- }));
2277
- }
2278
- render() {
2279
- let e = this.suggestions.length > 0;
2280
- return u`
2281
- <section class="empty-state" aria-labelledby="ai-chat-empty-state-title">
2282
- <header class="header">
2283
- <h2 id="ai-chat-empty-state-title" class="title">${this.title}</h2>
2284
- </header>
2285
-
2286
- ${e ? u`
2287
- <div class="actions">
2288
- ${this.subtitle ? u`<p class="subtitle">${this.subtitle}</p>` : d}
2289
- <div
2290
- class="suggestions"
2291
- role="group"
2292
- aria-label=${o("Prompt suggestions", { desc: "Accessible label for the AI chat empty state suggestion list" })}
2293
- >
2294
- ${this.suggestions.map((e) => u`
2295
- <luzmo-action-button
2296
- variant="accent"
2297
- size="s"
2298
- ?disabled=${this.disabled}
2299
- @click=${() => this._handleSuggestionActivate(e)}
2300
- >
2301
- ${e.label}
2302
- </luzmo-action-button>
2303
- `)}
2304
- </div>
2305
- </div>
2306
- ` : d}
2307
- </section>
2308
- `;
2309
- }
2310
- };
2311
- //#endregion
2312
- //#region src/components/ai-chat/empty-state/index.ts
2313
- t([f({ type: String })], Sn.prototype, "title", void 0), t([f({ type: String })], Sn.prototype, "subtitle", void 0), t([f({ type: Array })], Sn.prototype, "suggestions", void 0), t([f({
2314
- type: Boolean,
2315
- reflect: !0
2316
- })], Sn.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Sn);
2317
- //#endregion
2318
- //#region src/components/ai-chat/ai-chat-request.ts
2319
- function Cn(e, t) {
2320
- return `${e.replace(/\/+$/, "")}/${t.replace(/^\/+|\/+$/g, "")}/aiprompt`;
2321
- }
2322
- function wn(e) {
2323
- return e.type === "placeholder" ? null : {
2324
- ...e,
2325
- version: e.version || "",
2326
- title: e.title || e.options?.title,
2327
- filters: e.filterGroups || [],
2328
- aichartId: e.aichartId || ""
2329
- };
2330
- }
2331
- function Tn(e, t, n = []) {
2332
- return [
2333
- {
2334
- type: "text",
2335
- text: e
2336
- },
2337
- ...t.map((e) => ({
2338
- type: "dataset",
2339
- id: e
2340
- })),
2341
- ...n.map((e) => ({
2342
- type: "image",
2343
- url: e
2344
- }))
2345
- ];
2346
- }
2347
- function En(e, t, n) {
2348
- return {
2349
- agent: e,
2350
- task: t,
2351
- stream: n.stream ?? !0,
2352
- response_mode: "mixed",
2353
- ...n.conversationId ? { conversation_id: n.conversationId } : {},
2354
- ...n.localeId ? { locale_id: n.localeId } : {}
2355
- };
2356
- }
2357
- function Dn(e) {
2358
- let t = Tn(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? wn(e.chart) : null;
2359
- return n && t.push({
2360
- type: "item",
2361
- value: n
2362
- }), {
2363
- ...En("item", e.task ?? "generate", e),
2364
- input: t
2365
- };
2366
- }
2367
- function On(e) {
2368
- let t = Tn(e.prompt, e.datasetIds, e.attachmentUrls);
2369
- return e.dashboard && t.push({
2370
- type: "dashboard",
2371
- value: e.dashboard,
2372
- ...e.currentScreenMode ? { current_screen_mode: e.currentScreenMode } : {}
2373
- }), {
2374
- ...En("dashboard", "generate", e),
2375
- timezone_id: e.timezoneId ?? "UTC",
2376
- input: t
2377
- };
2378
- }
2379
- function kn(e) {
2380
- return {
2381
- ...En("analyst", "generate", e),
2382
- input: Tn(e.prompt, e.datasetIds, e.attachmentUrls)
2383
- };
2384
- }
2385
- function An(e, t) {
2386
- switch (e) {
2387
- case "dashboard": return On(t);
2388
- case "analyst": return kn(t);
2389
- default: return Dn(t);
2390
- }
2391
- }
2392
- function jn(e, t) {
2393
- let { authKey: n, authToken: i, apiVersion: a = "0.1.0" } = t;
2394
- return t.attachmentUrls?.length && r(t.attachmentUrls), {
2395
- key: n,
2396
- token: i,
2397
- action: "create",
2398
- version: a,
2399
- properties: An(e, t)
2400
- };
2401
- }
2402
- function Mn(e, t, n, r = "0.1.0", i = null) {
2403
- return {
2404
- key: t,
2405
- token: n,
2406
- action: "delete",
2407
- version: r,
2408
- properties: {
2409
- agent: "item",
2410
- restore_to_message_id: e,
2411
- ...i ? { conversation_id: i } : {}
2412
- }
2413
- };
2414
- }
2415
- //#endregion
2416
- //#region src/components/ai-chat/stream/transport.ts
2417
- async function Nn(e) {
2418
- let t = await fetch(e.url, {
2419
- method: "POST",
2420
- headers: { "Content-Type": "application/json" },
2421
- mode: "cors",
2422
- body: JSON.stringify(e.body),
2423
- signal: e.signal
2424
- });
2425
- if (!t.ok) {
2426
- let e = await t.json().catch(() => null);
2427
- throw Error(e?.message || `API request failed with status ${t.status}`);
2428
- }
2429
- if (!t.body) throw Error("Response body is not readable");
2430
- return {
2431
- body: t.body,
2432
- conversationId: t.headers.get("x-conversation-id")
2433
- };
2434
- }
2435
- function Pn(e) {
2436
- let t = e.trim();
2437
- if (!t || t.startsWith(":") || t.startsWith("event:") || t.startsWith("id:")) return null;
2438
- let n = t;
2439
- return n.startsWith("data:") && (n = n.slice(5).trimStart()), !n || n === "[DONE]" ? null : JSON.parse(n);
2440
- }
2441
- function Fn(e, t) {
2442
- try {
2443
- let n = Pn(e);
2444
- n && t(n);
2445
- } catch {
2446
- console.error("Failed to parse stream line");
2447
- }
2448
- }
2449
- async function In(e, t) {
2450
- let n = e.getReader(), r = new TextDecoder(), i = "";
2451
- try {
2452
- for (;;) {
2453
- let { done: e, value: a } = await n.read();
2454
- if (e) break;
2455
- i += r.decode(a, { stream: !0 });
2456
- let o = i.split(/\r?\n/);
2457
- i = o.pop() ?? "";
2458
- for (let e of o) Fn(e, t);
2459
- }
2460
- i += r.decode();
2461
- let e = i.trim();
2462
- e && Fn(e, t);
2463
- } finally {
2464
- n.releaseLock();
2465
- }
2466
- }
2467
- //#endregion
2468
- //#region src/components/ai-chat/stream/progress.ts
2469
- function Ln() {
2470
- return {
2471
- id: "root",
2472
- step: "root",
2473
- status: "pending",
2474
- children: [{
2475
- id: "client-init",
2476
- step: "iqInit",
2477
- status: "inProgress",
2478
- description: o("Thinking", { desc: "Label shown in the AI chat progress tree while the assistant starts processing a prompt" })
2479
- }]
2480
- };
2481
- }
2482
- function Rn(e) {
2483
- let t = e.progress;
2484
- return typeof t != "object" || !t ? !1 : "id" in t && "step" in t && "status" in t;
2485
- }
2486
- //#endregion
2487
- //#region src/components/ai-chat/stream/chunk-extractors.ts
2488
- function zn(e) {
2489
- if (!e || typeof e != "object") return "";
2490
- let t = e.assistant_message;
2491
- if (!t || typeof t != "object") return "";
2492
- if (typeof t.message == "string") return t.message;
2493
- if (typeof t.text == "string") return t.text;
2494
- if (typeof t.summary == "string") return t.summary;
2495
- let n = t.content;
2496
- return typeof n == "string" ? n : n && typeof n == "object" && typeof n.text == "string" ? n.text : "";
2497
- }
2498
- function Bn(e) {
2499
- return e.type === "text_delta" && typeof e.delta == "string" ? e.delta : typeof e.text_delta == "string" ? e.text_delta : typeof e.chunk == "string" ? e.chunk : typeof e.message == "string" ? e.message : typeof e.summary == "string" ? e.summary : "";
2500
- }
2501
- function Vn(e) {
2502
- return zn(e.result);
2503
- }
2504
- function Hn(e) {
2505
- return !!e.done || e.type === "finish" || e.type === "done" || "question" in e;
2506
- }
2507
- function Un(e, t) {
2508
- let n = typeof e.conversation_id == "string" && e.conversation_id || typeof e.conversationId == "string" && e.conversationId;
2509
- n && t.callbacks.onConversationIdChange(n);
2510
- }
2511
- function Wn(e) {
2512
- for (let t of e) if (t && typeof t == "object" && t.type === "item") {
2513
- let e = t.value;
2514
- if (e && typeof e == "object") return e;
2515
- }
2516
- return null;
2517
- }
2518
- function Gn(e) {
2519
- let t = e.chart ?? e.generatedChart;
2520
- if (t && typeof t == "object") return t;
2521
- let n = e.aiMessageAssets ?? e.ai_message_assets;
2522
- if (Array.isArray(n)) {
2523
- let e = Wn(n);
2524
- if (e) return e;
2525
- }
2526
- let r = e.result;
2527
- if (r && typeof r == "object") {
2528
- let e = r.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2529
- if (Array.isArray(t)) return Wn(t);
2530
- }
2531
- return null;
2532
- }
2533
- function Kn(e) {
2534
- for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2535
- let e = t.value;
2536
- if (e && typeof e == "object" && Array.isArray(e.views)) return e;
2537
- }
2538
- return null;
2539
- }
2540
- function qn(e) {
2541
- for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2542
- let e = t.name;
2543
- if (e && typeof e == "object") return e;
2544
- }
2545
- }
2546
- function Jn(...e) {
2547
- return e.find(Array.isArray);
2548
- }
2549
- function Yn(e) {
2550
- if (e.views && Array.isArray(e.views)) return e;
2551
- let t = e.aiMessageAssets ?? e.ai_message_assets;
2552
- if (Array.isArray(t)) return Kn(t);
2553
- let n = e.result;
2554
- if (n && typeof n == "object") {
2555
- let e = n.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2556
- if (Array.isArray(t)) return Kn(t);
2557
- }
2558
- return null;
2559
- }
2560
- function Xn(e) {
2561
- let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = Jn(t, n?.aiMessageAssets ?? n?.ai_message_assets);
2562
- return r ? qn(r) : void 0;
2563
- }
2564
- //#endregion
2565
- //#region src/components/ai-chat/stream/stream-processor.ts
2566
- var Zn = /* @__PURE__ */ new Set([
2567
- "conversation-id",
2568
- "conversation_id",
2569
- "keepalive",
2570
- "ping",
2571
- "finish",
2572
- "done"
2573
- ]);
2574
- function Qn(e, t, n) {
2575
- return {
2576
- agent: n.agent,
2577
- conversationId: t.callbacks.getConversationId(),
2578
- ...typeof e.messageId == "string" ? { messageId: e.messageId } : {},
2579
- raw: e
2580
- };
2581
- }
2582
- function Q(e, t, n, r, i) {
2583
- let a = {
2584
- ...Qn(n, e, t),
2585
- recognized: !0,
2586
- type: r,
2587
- data: i
2588
- };
2589
- e.callbacks.onStep(a);
2590
- }
2591
- function $n(e, t, n, r, i) {
2592
- let a = {
2593
- ...Qn(n, e, t),
2594
- recognized: !1,
2595
- type: r,
2596
- data: i
2597
- };
2598
- e.callbacks.onStep(a);
2599
- }
2600
- function er(e) {
2601
- e.state.progressCollapsed || (e.state.progressCollapsed = !0, e.callbacks.onProgressCollapsed(!0));
2602
- }
2603
- function tr(e, t) {
2604
- er(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
2605
- }
2606
- function nr(e) {
2607
- if (!e) return null;
2608
- let t = e.descriptionMetadata?.decision;
2609
- if (t === "create" || t === "edit" || t === "question") return t;
2610
- for (let t of e.children ?? []) {
2611
- let e = nr(t);
2612
- if (e) return e;
2613
- }
2614
- return null;
2615
- }
2616
- function rr(e, t, n) {
2617
- if (!Rn(e)) return !1;
2618
- let r = e.progress;
2619
- if (t.callbacks.onProgress(r), Q(t, n, e, "progress", r), t.state.decision === null) {
2620
- let i = nr(r);
2621
- i && (t.state.decision = i, Q(t, n, e, "decision", { decision: i }));
2622
- }
2623
- return !0;
2624
- }
2625
- function ir(e) {
2626
- return !!e.error || e.type === "error" || typeof e.error_text == "string";
2627
- }
2628
- function ar(e) {
2629
- return typeof e.error_text == "string" && e.error_text ? e.error_text : typeof e.error == "string" && e.error ? e.error : o("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" });
2630
- }
2631
- function or(e, t, n) {
2632
- if (!ir(e)) return !1;
2633
- let r = ar(e);
2634
- return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage), Dr(e, t, n, e.error ?? r), !0;
2635
- }
2636
- function sr(e) {
2637
- return typeof e.question == "string" && e.question ? e.question : typeof e.text == "string" && e.text ? e.text : "";
2638
- }
2639
- function cr(e, t, n) {
2640
- if (e.type !== "interrupt") return !1;
2641
- let r = sr(e);
2642
- return r && (t.state.interruptQuestion = r, tr(t, r), Q(t, n, e, "interrupt", { question: r })), Dr(e, t, n), !0;
2643
- }
2644
- function lr(e) {
2645
- return typeof e.asset_id == "string" ? e.asset_id : typeof e.asset_type == "string" ? e.asset_type : "default";
2646
- }
2647
- function ur(e) {
2648
- return typeof e.asset_type == "string" ? e.asset_type : "";
2649
- }
2650
- function dr(e) {
2651
- return {
2652
- assetType: ur(e),
2653
- snapshot: {}
2654
- };
2655
- }
2656
- function fr(e, t) {
2657
- return {
2658
- ...e,
2659
- ...t
2660
- };
2661
- }
2662
- function pr(e) {
2663
- let t = e.asset_delta ?? e.delta;
2664
- return t && typeof t == "object" ? t : null;
2665
- }
2666
- function mr(e, t) {
2667
- t.state.assets[lr(e)] = dr(e);
2668
- }
2669
- function hr(e, t) {
2670
- let n = lr(e), r = t.state.assets[n] ?? dr(e), i = pr(e);
2671
- i && (r.snapshot = fr(r.snapshot, i)), t.state.assets[n] = r;
2672
- }
2673
- function gr(e, t) {
2674
- let n = e.asset ?? e.value ?? e.asset_delta ?? e.delta;
2675
- return n && typeof n == "object" ? fr(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
2676
- }
2677
- function _r(e, t, n) {
2678
- let r = lr(e), i = t.state.assets[r], a = i?.assetType || ur(e), o = gr(e, i);
2679
- delete t.state.assets[r], br(a, o, e, t, n);
2680
- }
2681
- function vr(e, t, n) {
2682
- switch (e.type) {
2683
- case "asset_start": return mr(e, t), !0;
2684
- case "asset_delta": return hr(e, t), !0;
2685
- case "asset_end": return _r(e, t, n), !0;
2686
- default: return !1;
2687
- }
2688
- }
2689
- function yr(e, t, n, r) {
2690
- n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), Q(n, r, t, "chart", e);
2691
- }
2692
- function br(e, t, n, r, i) {
2693
- switch (e) {
2694
- case "dashboard-title": {
2695
- let e = t.name;
2696
- e && typeof e == "object" && (r.state.dashboardName = e, Q(r, i, n, "dashboard-title", { name: e }));
2697
- return;
2698
- }
2699
- case "dashboard-layout":
2700
- Q(r, i, n, "dashboard-layout", t);
2701
- return;
2702
- case "dashboard-item":
2703
- Q(r, i, n, "dashboard-item", {
2704
- slot: Number(t.slot),
2705
- chart: t.chart ?? t
2706
- });
2707
- return;
2708
- case "dashboard":
2709
- r.state.dashboardSnapshot = t;
2710
- return;
2711
- default: xr(e, t, n, r, i);
2712
- }
2713
- }
2714
- function xr(e, t, n, r, i) {
2715
- if (i.chartAssetType && e === i.chartAssetType) {
2716
- yr(t, n, r, i);
2717
- return;
2718
- }
2719
- if (i.dashboardAssetType && e === i.dashboardAssetType) {
2720
- r.state.dashboardSnapshot = t;
2721
- return;
2722
- }
2723
- $n(r, i, n, e || "asset", t);
2724
- }
2725
- function Sr(e, t, n) {
2726
- let r = !1;
2727
- if (n.dashboardAssetType) {
2728
- let n = Yn(e);
2729
- if (n) {
2730
- t.state.dashboardSnapshot = n;
2731
- let i = Xn(e);
2732
- i && (t.state.dashboardName = i), r = !0;
2733
- }
2734
- }
2735
- if (n.chartAssetType && !t.state.chartSnapshot) {
2736
- let i = Gn(e);
2737
- i && (yr(i, e, t, n), r = !0);
2738
- }
2739
- return r;
2740
- }
2741
- function Cr(e, t, n) {
2742
- return {
2743
- ...e,
2744
- generatedChart: t,
2745
- conversationId: n.callbacks.getConversationId()
2746
- };
2747
- }
2748
- function wr(e, t, n) {
2749
- for (let r of Object.keys(t.state.assets)) {
2750
- let i = t.state.assets[r];
2751
- delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) && br(i.assetType, i.snapshot, e, t, n);
2752
- }
2753
- }
2754
- function Tr(e, t) {
2755
- let n = Vn(e);
2756
- !n || t.aiMessage.message === n || (t.aiMessage.message = n, t.callbacks.onMessageUpdate(t.aiMessage));
2757
- }
2758
- function Er(e, t, n) {
2759
- let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? Yn(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? Gn(e) : null);
2760
- return {
2761
- agent: n.agent,
2762
- conversationId: t.callbacks.getConversationId(),
2763
- message: t.aiMessage,
2764
- ...r ? { dashboard: r } : {},
2765
- ...i ? { chart: Cr(e, i, t) } : {},
2766
- ...t.state.dashboardName ? { name: t.state.dashboardName } : {},
2767
- raw: e
2768
- };
2769
- }
2770
- function Dr(e, t, n, r) {
2771
- if (!t.state.completed) {
2772
- if (t.state.completed = !0, wr(e, t, n), er(t), r !== void 0) {
2773
- t.callbacks.onComplete({
2774
- agent: n.agent,
2775
- conversationId: t.callbacks.getConversationId(),
2776
- message: t.aiMessage,
2777
- error: r,
2778
- raw: e
2779
- });
2780
- return;
2781
- }
2782
- Tr(e, t), t.callbacks.onComplete(Er(e, t, n));
2783
- }
2784
- }
2785
- function Or(e) {
2786
- return typeof e.type == "string" && e.type ? e.type : typeof e.asset_type == "string" && e.asset_type ? e.asset_type : "";
2787
- }
2788
- function kr(e, t, n) {
2789
- let r = Bn(e);
2790
- return r ? (t.state.accumulatedText += r, tr(t, r), Q(t, n, e, "text", {
2791
- delta: r,
2792
- text: t.state.accumulatedText
2793
- }), !0) : !1;
2794
- }
2795
- function Ar(e, t, n, r, i) {
2796
- if (r || i) return;
2797
- let a = Or(e);
2798
- a && !Zn.has(a) && $n(t, n, e, a, e);
2799
- }
2800
- function jr(e, t, n) {
2801
- if (Un(e, t), rr(e, t, n) || or(e, t, n) || cr(e, t, n) || vr(e, t, n)) return;
2802
- let r = kr(e, t, n), i = Sr(e, t, n), a = r || i, o = Hn(e);
2803
- Ar(e, t, n, a, o), o && Dr(e, t, n);
2804
- }
2805
- //#endregion
2806
- //#region src/components/ai-chat/stream/registry.ts
2807
- function Mr(e) {
2808
- switch (e) {
2809
- case "dashboard": return {
2810
- agent: e,
2811
- dashboardAssetType: "dashboard"
2812
- };
2813
- case "item": return {
2814
- agent: e,
2815
- chartAssetType: "item"
2816
- };
2817
- default: return { agent: e };
2818
- }
2819
- }
2820
- function Nr(e) {
2821
- let t = Mr(e);
2822
- return (e, n) => jr(e, n, t);
2823
- }
2824
- function Pr() {
2825
- return {
2826
- progressCollapsed: !1,
2827
- accumulatedText: "",
2828
- decision: null,
2829
- assets: {},
2830
- dashboardSnapshot: null,
2831
- dashboardName: void 0,
2832
- chartSnapshot: null,
2833
- interruptQuestion: null,
2834
- completed: !1
2835
- };
2836
- }
2837
- //#endregion
2838
- //#region src/components/ai-chat/session/ai-chat-session.ts
2839
- function Fr() {
2840
- return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
2841
- }
2842
- var Ir = class {
2843
- constructor(e, t = {}) {
2844
- this._uiBridgeCallbacks = {}, this._subscribers = /* @__PURE__ */ new Set(), this._state = {
2845
- messages: [],
2846
- selectedDatasets: [],
2847
- isGenerating: !1,
2848
- progress: null,
2849
- progressCollapsed: !1,
2850
- conversationId: null,
2851
- inflightMessage: null
2852
- }, this._abortController = null, this._inflightMessage = null, this._receivedProgress = !1, this._config = {
2853
- apiUrl: "https://api.luzmo.com",
2854
- apiVersion: "0.1.0",
2855
- stream: !0,
2856
- ...e
2857
- }, this._hostCallbacks = t, this._state = {
2858
- ...this._state,
2859
- messages: e.messages ? [...e.messages] : [],
2860
- selectedDatasets: e.selectedDatasets ? [...e.selectedDatasets] : [],
2861
- conversationId: e.conversationId ?? null,
2862
- isGenerating: e.isGenerating ?? !1,
2863
- progress: e.progress ?? null,
2864
- progressCollapsed: e.progressCollapsed ?? !1
2865
- };
2866
- }
2867
- get state() {
2868
- return this._state;
2869
- }
2870
- get isGenerating() {
2871
- return this._state.isGenerating;
2872
- }
2873
- subscribe(e) {
2874
- return this._subscribers.add(e), e(this._state), () => {
2875
- this._subscribers.delete(e);
2876
- };
2877
- }
2878
- setUiBridge(e) {
2879
- this._uiBridgeCallbacks = e;
2880
- }
2881
- updateConfig(e) {
2882
- this._config = {
2883
- ...this._config,
2884
- ...e
2885
- };
2886
- let t = {};
2887
- if ("conversationId" in e) {
2888
- let n = e.conversationId ?? null;
2889
- n !== this._state.conversationId && (t.conversationId = n);
2890
- }
2891
- if ("selectedDatasets" in e && e.selectedDatasets) {
2892
- let n = [...e.selectedDatasets];
2893
- this._areSelectedDatasetsEqual(n, this._state.selectedDatasets) || (t.selectedDatasets = n);
2894
- }
2895
- if ("messages" in e && e.messages) {
2896
- let n = [...e.messages];
2897
- this._areChatMessagesEqual(n, this._state.messages) || (t.messages = n);
2898
- }
2899
- "isGenerating" in e && e.isGenerating !== this._state.isGenerating && (t.isGenerating = e.isGenerating), "progress" in e && (t.progress = e.progress ?? null), "progressCollapsed" in e && e.progressCollapsed !== this._state.progressCollapsed && (t.progressCollapsed = e.progressCollapsed), Object.keys(t).length > 0 && this._patchState(t);
2900
- }
2901
- setSelectedDatasets(e) {
2902
- this._patchState({ selectedDatasets: [...e] }), this._emit("onDatasetsChanged", this._state.selectedDatasets);
2903
- }
2904
- addDataset(e) {
2905
- this._state.selectedDatasets.some((t) => t.id === e.id) || (this._patchState({ selectedDatasets: [...this._state.selectedDatasets, e] }), this._emit("onDatasetsChanged", this._state.selectedDatasets));
2906
- }
2907
- removeDataset(e) {
2908
- let t = this._state.selectedDatasets.filter((t) => t.id !== e);
2909
- t.length !== this._state.selectedDatasets.length && (this._patchState({ selectedDatasets: t }), this._emit("onDatasetsChanged", this._state.selectedDatasets));
2910
- }
2911
- isDatasetRequirementMet() {
2912
- return !this._config.requireDataset || this._state.selectedDatasets.length > 0;
2913
- }
2914
- getAiPromptUrl() {
2915
- return Cn(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
2916
- }
2917
- buildRequestBody(e, t, n = []) {
2918
- return jn(this._config.agent, {
2919
- prompt: e,
2920
- datasetIds: t,
2921
- authKey: this._config.authKey,
2922
- authToken: this._config.authToken,
2923
- conversationId: this._state.conversationId,
2924
- chart: this._config.chart ?? null,
2925
- dashboard: this._config.dashboard ?? null,
2926
- currentScreenMode: this._config.currentScreenMode,
2927
- localeId: this._config.localeId,
2928
- timezoneId: this._config.timezoneId,
2929
- task: this._config.task,
2930
- modelPreference: this._config.modelPreference,
2931
- apiVersion: this._config.apiVersion,
2932
- stream: this._config.stream,
2933
- attachmentUrls: n
2934
- });
2935
- }
2936
- buildPromptSubmittedDetail(e) {
2937
- let t = e.attachmentUrls ?? [];
2938
- return {
2939
- prompt: e.prompt,
2940
- selectedDatasets: e.selectedDatasets,
2941
- datasetIds: e.datasetIds,
2942
- agent: this._config.agent,
2943
- request: this.buildRequestBody(e.prompt, e.datasetIds, t),
2944
- url: this.getAiPromptUrl(),
2945
- ...e.signal ? { signal: e.signal } : {},
2946
- ...e.attachments?.length ? { attachments: e.attachments } : {},
2947
- ...t.length ? { attachmentUrls: t } : {}
2948
- };
2949
- }
2950
- async _resolveAttachmentUrls(e, t) {
2951
- if (e.attachmentUrls?.length) return r(e.attachmentUrls), [...e.attachmentUrls];
2952
- let n = (e.attachments ?? []).map((e) => e.file).filter((e) => !!e);
2953
- if (n.length === 0) return [];
2954
- a(n);
2955
- let o = this._hostCallbacks.uploadAttachments ?? this._uiBridgeCallbacks.uploadAttachments;
2956
- if (typeof o == "function") return this._normalizeUploadedUrls(await o(n, { signal: t }), n.length);
2957
- let { authKey: s, authToken: c, apiUrl: l = "https://api.luzmo.com", apiVersion: u = "0.1.0" } = this._config;
2958
- if (!s || !c) {
2959
- if (this._hasCallback("onPromptSubmitted")) return [];
2960
- throw Error("Image attachments require authKey/authToken for built-in upload, or provide uploadAttachments / attachmentUrls.");
2961
- }
2962
- return this._normalizeUploadedUrls(await i({
2963
- files: n,
2964
- authKey: s,
2965
- authToken: c,
2966
- apiUrl: l,
2967
- apiVersion: u,
2968
- signal: t
2969
- }), n.length);
2970
- }
2971
- _normalizeUploadedUrls(e, t) {
2972
- let n = Array.isArray(e) ? e.filter((e) => typeof e == "string" && e.trim().length > 0) : [];
2973
- if (n.length !== t) throw Error(`Image upload returned ${n.length} URL(s) for ${t} file(s). Return one non-empty signed URL per file, in the same order.`);
2974
- return r(n), n;
2975
- }
2976
- async submit(e) {
2977
- let t = e.datasetIds ?? this._state.selectedDatasets.map((e) => e.id);
2978
- if (!this.isDatasetRequirementMet()) return;
2979
- this._abortInflight();
2980
- let n = new AbortController();
2981
- this._abortController = n;
2982
- let r;
2983
- try {
2984
- r = await this._resolveAttachmentUrls(e, n.signal);
2985
- } catch (e) {
2986
- if (this._abortController === n && (this._abortController = null), n.signal.aborted || e.name === "AbortError") return;
2987
- throw e;
2988
- }
2989
- if (n.signal.aborted || this._abortController !== n) return;
2990
- let i = {
2991
- id: e.aiMessageId ?? Fr(),
2992
- type: "ai",
2993
- message: ""
2994
- }, a = [...this._state.messages];
2995
- if (!e.skipUserMessage) {
2996
- let t = {
2997
- id: Fr(),
2998
- type: "user",
2999
- message: e.prompt,
3000
- ...r.length ? { attachmentUrls: r } : {}
3001
- };
3002
- a = [...a, t], this._emit("onMessageSent", t, [...this._state.selectedDatasets]);
3003
- }
3004
- a = [...a, i], this._inflightMessage = i, this._receivedProgress = !1, this._patchState({
3005
- messages: a,
3006
- isGenerating: !0,
3007
- progress: Ln(),
3008
- progressCollapsed: !1,
3009
- inflightMessage: i
3010
- });
3011
- let o = t, s = [...this._state.selectedDatasets];
3012
- if (this._hasCallback("onPromptSubmitted")) {
3013
- let t = this.buildPromptSubmittedDetail({
3014
- prompt: e.prompt,
3015
- selectedDatasets: s,
3016
- datasetIds: o,
3017
- signal: n.signal,
3018
- attachments: e.attachments,
3019
- attachmentUrls: r
3020
- });
3021
- try {
3022
- await this._invokeCallback("onPromptSubmitted", t);
3023
- } catch (e) {
3024
- e.name === "AbortError" ? this.abort() : (this._handleSubmitError(e, i), this._finalizeInflightMessage()), this._patchState({ isGenerating: !1 });
3025
- }
3026
- return;
3027
- }
3028
- let c = this.buildRequestBody(e.prompt, t, r), l = Nr(this._config.agent), u = {
3029
- aiMessage: i,
3030
- callbacks: this._createStreamCallbacks(),
3031
- state: Pr()
3032
- }, d = this._config.fetchStreaming ?? Nn, ee = !1;
3033
- try {
3034
- let { body: e, conversationId: t } = await d({
3035
- url: this.getAiPromptUrl(),
3036
- body: c,
3037
- signal: n.signal
3038
- });
3039
- t && this._setConversationId(t), await In(e, (e) => l(e, u)), ee = !0;
3040
- } catch (e) {
3041
- e.name !== "AbortError" && (this._handleSubmitError(e, i), ee = !0);
3042
- } finally {
3043
- this._abortController === n && (ee ? this._finalizeInflightMessage() : this._discardInflightMessage(), this._patchState({ isGenerating: !1 }), this._abortController = null);
3044
- }
3045
- }
3046
- async restore(e) {
3047
- if (this._config.agent !== "item") return {};
3048
- let t = Mn(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3049
- if (this._patchState({
3050
- isGenerating: !0,
3051
- progress: null,
3052
- progressCollapsed: !1
3053
- }), this._hasCallback("onRestoreRequested")) {
3054
- let n = {
3055
- apiMessageId: e.restoreToMessageId,
3056
- messageIndex: e.messageIndex,
3057
- request: t,
3058
- url: this.getAiPromptUrl()
3059
- };
3060
- try {
3061
- await this._invokeCallback("onRestoreRequested", n);
3062
- } finally {
3063
- this._patchState({ isGenerating: !1 });
3064
- }
3065
- return {};
3066
- }
3067
- try {
3068
- let n = await fetch(this.getAiPromptUrl(), {
3069
- method: "POST",
3070
- headers: { "Content-Type": "application/json" },
3071
- mode: "cors",
3072
- body: JSON.stringify(t)
3073
- });
3074
- if (!n.ok) {
3075
- let e = await n.json().catch(() => null);
3076
- throw Error(e?.message || `API request failed with status ${n.status}`);
3077
- }
3078
- let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? Gn(r) : null), a = {
3079
- ...typeof r?.message == "string" ? { message: r.message } : {},
3080
- ...i ? { chart: {
3081
- ...r,
3082
- generatedChart: i
3083
- } } : {}
3084
- }, o = e.messageIndex >= 0 && e.messageIndex < this._state.messages.length ? this._state.messages.slice(0, e.messageIndex + 1) : this._state.messages;
3085
- if (a.message && o[e.messageIndex]?.type === "ai" && (o[e.messageIndex] = {
3086
- ...o[e.messageIndex],
3087
- message: a.message
3088
- }), this._patchState({ messages: [...o] }), a.chart || a.message) {
3089
- let t = o[e.messageIndex], n = t?.type === "ai" ? t : {
3090
- id: Fr(),
3091
- type: "ai",
3092
- message: a.message ?? ""
3093
- };
3094
- this._emit("onComplete", {
3095
- agent: this._config.agent,
3096
- conversationId: this._state.conversationId,
3097
- message: n,
3098
- ...a.chart ? { chart: a.chart } : {},
3099
- ...r ? { raw: r } : {}
3100
- });
3101
- }
3102
- return a;
3103
- } finally {
3104
- this._patchState({ isGenerating: !1 });
3105
- }
3106
- }
3107
- buildRestoreRequest(e) {
3108
- return Mn(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3109
- }
3110
- abort(e = {}) {
3111
- this._abortController?.abort(), this._abortController = null, e.notify && this._inflightMessage ? this._markInflightCancelled(e.cancelledMessage) : this._discardInflightMessage(), this._patchState({
3112
- isGenerating: !1,
3113
- progress: null,
3114
- progressCollapsed: !1
3115
- }), e.notify && this._emit("onPromptStopped");
3116
- }
3117
- _abortInflight() {
3118
- this._abortController?.abort(), this._abortController = null, this._discardInflightMessage();
3119
- }
3120
- _createStreamCallbacks() {
3121
- return {
3122
- onConversationIdChange: (e) => this._setConversationId(e),
3123
- onProgress: (e) => {
3124
- this._receivedProgress = !0, this._patchState({ progress: e });
3125
- },
3126
- onProgressCollapsed: (e) => {
3127
- this._patchState({ progressCollapsed: e });
3128
- },
3129
- onMessageUpdate: (e) => {
3130
- this._inflightMessage = e, this._upsertMessage(e), this._patchState({ inflightMessage: { ...e } });
3131
- },
3132
- getConversationId: () => this._state.conversationId,
3133
- onStep: (e) => {
3134
- this._emit("onStep", e);
3135
- },
3136
- onComplete: (e) => {
3137
- this._emit("onComplete", e);
3138
- }
3139
- };
3140
- }
3141
- _setConversationId(e) {
3142
- this._config = {
3143
- ...this._config,
3144
- conversationId: e
3145
- }, this._patchState({ conversationId: e }), this._emit("onConversationIdChange", e);
3146
- }
3147
- _upsertMessage(e) {
3148
- let t = this._state.messages.findIndex((t) => t.id === e.id);
3149
- if (t === -1) {
3150
- this._patchState({ messages: [...this._state.messages, { ...e }] });
3151
- return;
3152
- }
3153
- let n = this._state.messages.map((n, r) => r === t ? { ...e } : n);
3154
- this._patchState({ messages: n });
3155
- }
3156
- _finalizeInflightMessage() {
3157
- this._inflightMessage && (this._state.progress && this._receivedProgress && (this._inflightMessage.progress = structuredClone(this._state.progress), this._upsertMessage(this._inflightMessage)), this._inflightMessage = null, this._receivedProgress = !1, this._patchState({
3158
- progress: null,
3159
- progressCollapsed: !1,
3160
- inflightMessage: null
3161
- }));
3162
- }
3163
- _removeInflightFromMessages() {
3164
- this._inflightMessage && this._patchState({ messages: this._state.messages.filter((e) => e.id !== this._inflightMessage.id) });
3165
- }
3166
- _markInflightCancelled(e) {
3167
- this._inflightMessage && (this._inflightMessage.message = e ?? o("Response cancelled.", { desc: "Placeholder shown in ai chat where the assistant reply would appear when the user stops an in-flight response" }), this._inflightMessage.isCancelled = !0, this._inflightMessage.hasChart = !1, delete this._inflightMessage.progress, this._upsertMessage(this._inflightMessage), this._inflightMessage = null, this._receivedProgress = !1, this._patchState({ inflightMessage: null }));
3168
- }
3169
- _discardInflightMessage() {
3170
- let e = !!(this._inflightMessage || this._state.inflightMessage);
3171
- this._removeInflightFromMessages(), this._inflightMessage = null, this._receivedProgress = !1, e && this._patchState({ inflightMessage: null });
3172
- }
3173
- _handleSubmitError(e, t) {
3174
- t.message = o("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" }), t.isError = !0, delete t.progress, this._inflightMessage = t, this._upsertMessage(t), this._patchState({
3175
- inflightMessage: { ...t },
3176
- progress: null,
3177
- progressCollapsed: !1
3178
- }), this._emit("onComplete", {
3179
- agent: this._config.agent,
3180
- conversationId: this._state.conversationId,
3181
- message: t,
3182
- error: e
3183
- });
3184
- }
3185
- _hasCallback(e) {
3186
- return typeof this._hostCallbacks[e] == "function" || typeof this._uiBridgeCallbacks[e] == "function";
3187
- }
3188
- _emit(e, ...t) {
3189
- this._invokeCallback(e, ...t);
3190
- }
3191
- async _invokeCallback(e, ...t) {
3192
- let n = this._hostCallbacks[e], r = this._uiBridgeCallbacks[e];
3193
- typeof n == "function" && await n(...t), typeof r == "function" && await r(...t);
3194
- }
3195
- _patchState(e) {
3196
- this._state = {
3197
- ...this._state,
3198
- ...e
3199
- }, this._emit("onStateChange", this._state);
3200
- for (let e of this._subscribers) e(this._state);
3201
- }
3202
- _areSelectedDatasetsEqual(e, t) {
3203
- return e.length === t.length && e.every((e, n) => e.id === t[n]?.id);
3204
- }
3205
- _areChatMessagesEqual(e, t) {
3206
- return e.length === t.length && e.every((e, n) => {
3207
- let r = t[n];
3208
- return e.id === r?.id && e.apiMessageId === r?.apiMessageId && e.type === r?.type && e.message === r?.message && e.isError === r?.isError && e.isCancelled === r?.isCancelled && e.hasChart === r?.hasChart && JSON.stringify(e.progress ?? null) === JSON.stringify(r?.progress ?? null) && JSON.stringify(e.actions ?? null) === JSON.stringify(r?.actions ?? null) && JSON.stringify(e.attachmentUrls ?? null) === JSON.stringify(r?.attachmentUrls ?? null);
3209
- });
3210
- }
3211
- };
3212
- function Lr(e, t) {
3213
- return new Ir(e, t);
3214
- }
3215
- //#endregion
3216
- //#region src/components/ai-chat/session/ai-chat-session-controller.ts
3217
- var Rr = class {
3218
- constructor(e) {
3219
- this.options = e, this._session = null, this._ownsSession = !1, this._seededFromProps = !1, this._unsubscribe = null;
3220
- }
3221
- get current() {
3222
- return this._session;
3223
- }
3224
- get state() {
3225
- if (this._session) return this._session.state;
3226
- let e = this.options.getSeed();
3227
- return {
3228
- messages: e.messages,
3229
- selectedDatasets: e.selectedDatasets,
3230
- isGenerating: !1,
3231
- progress: null,
3232
- progressCollapsed: !1,
3233
- conversationId: e.conversationId,
3234
- inflightMessage: null
3235
- };
3236
- }
3237
- get ownsCurrentSession() {
3238
- return this._ownsSession;
3239
- }
3240
- setSession(e) {
3241
- if (!e) {
3242
- this._clearSession();
3243
- return;
3244
- }
3245
- this._ownsSession && this._session !== e && this._session?.abort(), this._ownsSession = !1, this._session = e, this._mergeHostElementConfig(e), this._wire(e);
3246
- }
3247
- syncProperties(e) {
3248
- if (!e.has("chatSession")) {
3249
- if (this._createSessionIfMissing(), this._session) {
3250
- let t = this.options.getConfig();
3251
- Object.keys(t).some((t) => e.has(t)) && (this._ownsSession ? this._session.updateConfig(t) : this._mergeHostElementConfig(this._session));
3252
- }
3253
- (e.has("messages") || e.has("selectedDatasets")) && this._seedFromPropsOnce();
3254
- }
3255
- }
3256
- requireSession() {
3257
- return this._createSessionIfMissing(), this._ownsSession ? this._session.updateConfig(this.options.getConfig()) : this._session && this._mergeHostElementConfig(this._session), this._session;
3258
- }
3259
- _mergeHostElementConfig(e) {
3260
- let t = this.options.getConfig(), n = {
3261
- authKey: t.authKey,
3262
- authToken: t.authToken,
3263
- apiUrl: t.apiUrl,
3264
- apiVersion: t.apiVersion,
3265
- stream: t.stream,
3266
- localeId: t.localeId,
3267
- timezoneId: t.timezoneId,
3268
- modelPreference: t.modelPreference,
3269
- requireDataset: t.requireDataset,
3270
- agent: t.agent
3271
- };
3272
- t.task !== void 0 && (n.task = t.task), t.chart != null && (n.chart = t.chart), t.dashboard != null && (n.dashboard = t.dashboard), t.currentScreenMode != null && (n.currentScreenMode = t.currentScreenMode), t.conversationId != null && (n.conversationId = t.conversationId), e.updateConfig(n);
3273
- }
3274
- connect() {
3275
- this._session && this._wire(this._session);
3276
- }
3277
- teardown() {
3278
- this._unwire(), this._ownsSession &&= (this._session?.abort(), this._session = null, !1), this._seededFromProps = !1;
3279
- }
3280
- _createSessionIfMissing() {
3281
- if (this._session) return;
3282
- let e = this.options.getSeed();
3283
- this._session = Lr({
3284
- ...this.options.getConfig(),
3285
- messages: e.messages.length > 0 ? [...e.messages] : void 0,
3286
- selectedDatasets: e.selectedDatasets.length > 0 ? [...e.selectedDatasets] : void 0
3287
- }), this._ownsSession = !0, this._seededFromProps = e.messages.length > 0 || e.selectedDatasets.length > 0, this._wire(this._session);
3288
- }
3289
- _clearSession() {
3290
- this._unwire(), this._ownsSession && this._session?.abort(), this._session = null, this._ownsSession = !1;
3291
- }
3292
- _seedFromPropsOnce() {
3293
- if (!this._ownsSession || this._seededFromProps) return;
3294
- let e = this.requireSession(), t = this.options.getSeed(), n = {};
3295
- e.state.messages.length === 0 && t.messages.length > 0 && (n.messages = [...t.messages]), e.state.selectedDatasets.length === 0 && t.selectedDatasets.length > 0 && (n.selectedDatasets = [...t.selectedDatasets]), Object.keys(n).length > 0 && (e.updateConfig(n), this._seededFromProps = !0);
3296
- }
3297
- _wire(e) {
3298
- this._unwire(), e.setUiBridge(this.options.createDomBridge()), this._unsubscribe = e.subscribe(() => {
3299
- this.options.onRenderNeeded();
3300
- });
3301
- }
3302
- _unwire() {
3303
- this._unsubscribe?.(), this._unsubscribe = null;
3304
- }
3305
- }, $ = class t extends e {
3306
- constructor(...e) {
3307
- super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.flagOpendata = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._lastProcessedInitialPrompt = null, this._session = new Rr({
3308
- getConfig: () => this._buildSessionConfig(),
3309
- getSeed: () => ({
3310
- messages: this.messages,
3311
- selectedDatasets: this.selectedDatasets,
3312
- conversationId: this.conversationId
3313
- }),
3314
- createDomBridge: () => this._createDomBridgeCallbacks(),
3315
- onRenderNeeded: () => {
3316
- this.requestUpdate(), this.updateComplete.then(() => this._scrollToBottom());
3317
- }
3318
- }), this._handleAssistantMessageActionsSlotChange = (e) => {
3319
- let t = e.target.assignedElements({ flatten: !0 }).length > 0;
3320
- this._setAssistantMessageActionsSlotHasContent(t);
3321
- }, this._handleAssistantMessageActionConfirmKeydown = (e) => {
3322
- e.key !== "Escape" || !this._pendingAssistantMessageAction || (e.preventDefault(), e.stopPropagation(), this._cancelAssistantMessageActionConfirm());
3323
- };
3324
- }
3325
- static {
3326
- this.styles = ee(bn);
3327
- }
3328
- static {
3329
- this.tagName = "luzmo-ai-chat";
3330
- }
3331
- static {
3332
- this.assistantMessageActionsSlot = "assistant-message-actions";
3333
- }
3334
- get session() {
3335
- return this._session.current;
3336
- }
3337
- _getRenderState() {
3338
- return this._session.state;
3339
- }
3340
- _createDomBridgeCallbacks() {
3341
- return {
3342
- onMessageSent: (e, t) => {
3343
- this.dispatchEvent(new CustomEvent("luzmo-message-sent", {
3344
- detail: {
3345
- message: e,
3346
- selectedDatasets: t
3347
- },
3348
- bubbles: !0,
3349
- composed: !0
3350
- }));
3351
- },
3352
- onDatasetsChanged: (e) => {
3353
- this.dispatchEvent(new CustomEvent("luzmo-datasets-changed", {
3354
- detail: { selectedDatasets: e },
3355
- bubbles: !0,
3356
- composed: !0
3357
- }));
3358
- },
3359
- onConversationIdChange: (e) => this._emitConversationIdChanged(e),
3360
- onStep: (e) => {
3361
- this.dispatchEvent(new CustomEvent("luzmo-step", {
3362
- detail: e,
3363
- bubbles: !0,
3364
- composed: !0
3365
- }));
3366
- },
3367
- onComplete: (e) => {
3368
- this.dispatchEvent(new CustomEvent("luzmo-complete", {
3369
- detail: e,
3370
- bubbles: !0,
3371
- composed: !0
3372
- }));
3373
- },
3374
- onPromptStopped: () => {
3375
- this.dispatchEvent(new CustomEvent("luzmo-stop", {
3376
- bubbles: !0,
3377
- composed: !0
3378
- }));
3379
- },
3380
- ...typeof this.uploadAttachments == "function" ? { uploadAttachments: (e, t) => this.uploadAttachments(e, t) } : {}
3381
- };
3382
- }
3383
- get _resolvedAcceptedFileTypes() {
3384
- return this.acceptedFileTypes.length > 0 ? this.acceptedFileTypes : this.allowImages ? [...n] : [];
3385
- }
3386
- _buildSessionConfig() {
3387
- return {
3388
- agent: this.agent,
3389
- authKey: this.authKey,
3390
- authToken: this.authToken,
3391
- apiUrl: this.apiUrl,
3392
- apiVersion: this.apiVersion,
3393
- stream: this.stream,
3394
- conversationId: this.conversationId,
3395
- chart: this.chart,
3396
- dashboard: this.dashboard,
3397
- currentScreenMode: this.currentScreenMode,
3398
- localeId: this.localeId,
3399
- timezoneId: this.timezoneId,
3400
- task: this.task,
3401
- modelPreference: this.modelPreference,
3402
- requireDataset: this.requireDataset
3403
- };
3404
- }
3405
- _emitConversationIdChanged(e) {
3406
- this.conversationId = e, this.dispatchEvent(new CustomEvent("luzmo-conversation-id-changed", {
3407
- detail: { conversationId: e },
3408
- bubbles: !0,
3409
- composed: !0
3410
- }));
3411
- }
3412
- async _restoreViaSession(e, t) {
3413
- await this._session.requireSession().restore({
3414
- restoreToMessageId: e,
3415
- messageIndex: t
3416
- });
3417
- }
3418
- async _handleRestoreState(e, t) {
3419
- if (e.apiMessageId && this.agent === "item") try {
3420
- await this._restoreViaSession(e.apiMessageId, t);
3421
- } catch (e) {
3422
- console.error("AI restore error:", e);
3423
- }
3424
- }
3425
- _handleDatasetSelected(e) {
3426
- this._session.requireSession().addDataset(e.detail);
3427
- }
3428
- _handleDatasetRemoved(e) {
3429
- this._session.requireSession().removeDataset(e.detail.id);
3430
- }
3431
- async _submitViaSession(e, t = {}) {
3432
- let n = this._session.requireSession();
3433
- if (!n.isDatasetRequirementMet()) return !1;
3434
- this._textareaValue = "";
3435
- try {
3436
- return await n.submit({
3437
- prompt: e,
3438
- ...t
3439
- }), !0;
3440
- } catch (e) {
3441
- return e.name !== "AbortError" && console.error("AI prompt session error:", e), !1;
3442
- }
3443
- }
3444
- async _handlePromptSubmitted(e) {
3445
- let t = e.detail.prompt;
3446
- await this._submitViaSession(t, {
3447
- ...e.detail.attachments?.length ? { attachments: e.detail.attachments } : {},
3448
- ...e.detail.attachmentUrls?.length ? { attachmentUrls: e.detail.attachmentUrls } : {}
3449
- }) || (this._textareaValue = t);
3450
- }
3451
- _handlePromptStopped() {
3452
- let e = this._session.current;
3453
- if (this._textareaValue = "", e) {
3454
- e.abort({
3455
- notify: !0,
3456
- cancelledMessage: this.cancelledMessage ?? void 0
3457
- });
3458
- return;
3459
- }
3460
- this.dispatchEvent(new CustomEvent("luzmo-stop", {
3461
- bubbles: !0,
3462
- composed: !0
3463
- }));
3464
- }
3465
- async _handleEmptyStateSuggestionSelected(e) {
3466
- let { prompt: t, selectedDatasets: n } = e.detail, r = this._session.requireSession();
3467
- n?.length && r.setSelectedDatasets(n), await this._submitViaSession(t);
3468
- }
3469
- async _processInitialPrompt() {
3470
- !this.initialPrompt || this.initialPrompt === this._lastProcessedInitialPrompt || this._session.requireSession().isDatasetRequirementMet() && (this._lastProcessedInitialPrompt = this.initialPrompt, await this._submitViaSession(this.initialPrompt, { skipUserMessage: !0 }));
3471
- }
3472
- connectedCallback() {
3473
- super.connectedCallback(), this._session.connect();
3474
- }
3475
- disconnectedCallback() {
3476
- super.disconnectedCallback(), this._session.teardown();
3477
- }
3478
- _scrollToBottom() {
3479
- let e = this.shadowRoot?.querySelector(".chat-messages-container");
3480
- e && requestAnimationFrame(() => {
3481
- requestAnimationFrame(() => {
3482
- e.scrollTop = e.scrollHeight;
3483
- });
3484
- });
3485
- }
3486
- willUpdate(e) {
3487
- super.willUpdate?.(e), this._syncPendingAssistantMessageAction();
3488
- }
3489
- updated(e) {
3490
- super.updated?.(e), this._syncSession(e), this._handleInitialPromptChange(), e.has("uploadAttachments") && this._session.current?.setUiBridge(this._createDomBridgeCallbacks()), this.updateComplete.then(() => {
3491
- this._syncAssistantMessageActionsVisibility(), this._focusPendingAssistantMessageActionConfirm();
3492
- });
3493
- }
3494
- _syncSession(e) {
3495
- if (e.has("chatSession")) {
3496
- this._session.setSession(this.chatSession);
3497
- return;
3498
- }
3499
- this._session.syncProperties(e);
3500
- }
3501
- _handleInitialPromptChange() {
3502
- this.initialPrompt && this.initialPrompt !== this._lastProcessedInitialPrompt ? this._processInitialPrompt() : this.initialPrompt || (this._lastProcessedInitialPrompt = null);
3503
- }
3504
- _renderMarkdown(e) {
3505
- let t = String(Z.parse(e, { async: !1 }));
3506
- return lt.sanitize(t, {
3507
- ALLOWED_TAGS: /* @__PURE__ */ "p.br.strong.em.b.i.u.s.code.pre.blockquote.hr.ul.ol.li.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td.a".split("."),
3508
- ALLOWED_ATTR: [
3509
- "href",
3510
- "title",
3511
- "target",
3512
- "rel"
3513
- ],
3514
- ALLOW_DATA_ATTR: !1,
3515
- FORBID_TAGS: [
3516
- "script",
3517
- "style",
3518
- "iframe",
3519
- "object",
3520
- "embed",
3521
- "link",
3522
- "form",
3523
- "input",
3524
- "button"
3525
- ],
3526
- FORBID_ATTR: [
3527
- "onerror",
3528
- "onload",
3529
- "onclick",
3530
- "onmouseover",
3531
- "onfocus",
3532
- "onblur"
3533
- ]
3534
- });
3535
- }
3536
- _renderProgress() {
3537
- let { progress: e, progressCollapsed: t } = this._getRenderState();
3538
- return e?.children?.length ? u`
3539
- <luzmo-progress-steps
3540
- .progress=${e}
3541
- ?collapsed=${t}
3542
- size="s"
3543
- ></luzmo-progress-steps>
3544
- ` : d;
3545
- }
3546
- _isLastAiMessageWithProgress(e, t) {
3547
- for (let n = t.length - 1; n >= 0; n--) if (t[n].type === "ai" && t[n].progress?.children?.length) return t[n].id === e.id;
3548
- return !1;
3549
- }
3550
- _syncAssistantMessageActionsVisibility() {
3551
- let e = ((this.shadowRoot?.querySelector(`slot[name="${t.assistantMessageActionsSlot}"]`) ?? null)?.assignedElements({ flatten: !0 }).length ?? 0) > 0;
3552
- this._setAssistantMessageActionsSlotHasContent(e);
3553
- }
3554
- _setAssistantMessageActionsSlotHasContent(e) {
3555
- e !== this._assistantMessageActionsSlotHasContent && (this._assistantMessageActionsSlotHasContent = e);
3556
- }
3557
- _isLatestAssistantMessage(e, t) {
3558
- return !!(t && e === t);
3559
- }
3560
- _hasBuiltInAssistantMessageActions(e) {
3561
- return (e.actions?.length ?? 0) > 0;
3562
- }
3563
- _assistantMessageActionsFooterHasContent(e, t) {
3564
- return this._hasBuiltInAssistantMessageActions(e) || t && this._assistantMessageActionsSlotHasContent;
3565
- }
3566
- _syncPendingAssistantMessageAction() {
3567
- let e = this._pendingAssistantMessageAction;
3568
- if (!e) return;
3569
- let { messages: t } = this._getRenderState(), n = t.find((t) => t.id === e.messageId), r = n?.actions?.find((t) => t.id === e.actionId);
3570
- (!n || !r?.confirm) && (this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1);
3571
- }
3572
- _getDefaultAssistantMessageActionConfirmMessage() {
3573
- return o("Are you sure?", { desc: "Default assistant message action confirmation prompt" });
3574
- }
3575
- _isAssistantMessageActionConfirming(e) {
3576
- let t = this._pendingAssistantMessageAction, n = e.id;
3577
- return !!(t && n && t.messageId === n);
3578
- }
3579
- _getPendingAssistantMessageAction(e) {
3580
- let t = this._pendingAssistantMessageAction, n = e.id;
3581
- if (!(!t || !n || t.messageId !== n)) return e.actions?.find((e) => e.id === t.actionId);
3582
- }
3583
- _handleAssistantMessageAction(e, t) {
3584
- let n = e.id;
3585
- n && this.dispatchEvent(new CustomEvent("luzmo-assistant-message-action", {
3586
- detail: {
3587
- messageId: n,
3588
- actionId: t.id,
3589
- message: e
3590
- },
3591
- bubbles: !0,
3592
- composed: !0
3593
- }));
3594
- }
3595
- _handleAssistantMessageActionClick(e, t) {
3596
- let n = e.id;
3597
- if (n) {
3598
- if (t.confirm) {
3599
- this._pendingAssistantMessageAction = {
3600
- messageId: n,
3601
- actionId: t.id
3602
- }, this._shouldFocusAssistantMessageActionConfirm = !0;
3603
- return;
3604
- }
3605
- this._handleAssistantMessageAction(e, t);
3606
- }
3607
- }
3608
- _cancelAssistantMessageActionConfirm() {
3609
- this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1;
3610
- }
3611
- _confirmAssistantMessageAction(e, t) {
3612
- this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._handleAssistantMessageAction(e, t);
3613
- }
3614
- _focusPendingAssistantMessageActionConfirm() {
3615
- !this._shouldFocusAssistantMessageActionConfirm || !this._pendingAssistantMessageAction || (this._shouldFocusAssistantMessageActionConfirm = !1, (this.shadowRoot?.querySelector("luzmo-button.assistant-message-action-confirm-cancel"))?.focus?.());
3616
- }
3617
- _renderBuiltInAssistantMessageAction(e, t) {
3618
- return u`
3619
- <luzmo-button
3620
- class="assistant-message-action"
3621
- size="xs"
3622
- variant="neutral"
3623
- treatment="outline"
3624
- ?disabled=${this.disabled || t.disabled || !e.id}
3625
- @click=${() => this._handleAssistantMessageActionClick(e, t)}
3626
- >
3627
- ${t.icon ? u`<luzmo-icon slot="icon" .icon=${t.icon} size="xs"></luzmo-icon>` : d}
3628
- ${t.label}
3629
- </luzmo-button>
3630
- `;
3631
- }
3632
- _renderAssistantMessageActionConfirm(e) {
3633
- let t = this._getPendingAssistantMessageAction(e);
3634
- if (!t) return d;
3635
- let n = t.confirmMessage ?? this._getDefaultAssistantMessageActionConfirmMessage(), r = this.disabled || t.disabled || !e.id;
3636
- return u`
3637
- <span class="assistant-message-action-confirm-message" role="status" aria-live="polite">${n}</span>
3638
- <div class="assistant-message-action-confirm-controls">
3639
- <luzmo-button
3640
- class="assistant-message-action-confirm-cancel"
3641
- size="xs"
3642
- variant="neutral"
3643
- treatment="outline"
3644
- quiet
3645
- ?disabled=${this.disabled}
3646
- @click=${this._cancelAssistantMessageActionConfirm}
3647
- >
3648
- ${o("Cancel", { desc: "Cancel assistant message action confirmation" })}
3649
- </luzmo-button>
3650
- <luzmo-button
3651
- class="assistant-message-action-confirm-confirm"
3652
- size="xs"
3653
- variant=${t.confirmVariant ?? "negative"}
3654
- ?disabled=${r}
3655
- @click=${() => this._confirmAssistantMessageAction(e, t)}
3656
- >
3657
- ${t.label}
3658
- </luzmo-button>
3659
- </div>
3660
- `;
3661
- }
3662
- _renderAssistantMessageActions(e, n) {
3663
- let r = e.actions ?? [], i = r.length > 0, a = this._isLatestAssistantMessage(e, n), o = this._isAssistantMessageActionConfirming(e);
3664
- return !i && !a ? d : u`
3665
- <div
3666
- class="assistant-message-actions ${this._assistantMessageActionsFooterHasContent(e, a) ? "assistant-message-actions--has-content" : ""} ${o ? "assistant-message-actions--confirming" : ""}"
3667
- @keydown=${o ? this._handleAssistantMessageActionConfirmKeydown : d}
3668
- >
3669
- ${o ? this._renderAssistantMessageActionConfirm(e) : u`
3670
- ${r.map((t) => this._renderBuiltInAssistantMessageAction(e, t))}
3671
- ${a ? u`
3672
- <slot
3673
- name=${t.assistantMessageActionsSlot}
3674
- @slotchange=${this._handleAssistantMessageActionsSlotChange}
3675
- ></slot>
3676
- ` : d}
3677
- `}
3678
- </div>
3679
- `;
3680
- }
3681
- _renderRestoreMenu(e, t, n, r = !1) {
3682
- if (!(this.agent === "item" && this.showAssistantContextMenu && e.hasChart && e.apiMessageId && !e.isError && e.id !== n)) return d;
3683
- let i = `context-menu-trigger-${e.apiMessageId}`;
3684
- return u`
3685
- <div class="assistant-context-menu">
3686
- <button
3687
- id=${i}
3688
- class="assistant-context-menu-trigger"
3689
- type="button"
3690
- aria-label=${o("Open restore menu", { desc: "Accessible label for the ai chat restore menu trigger" })}
3691
- aria-haspopup="menu"
3692
- ?disabled=${r}
3693
- >
3694
- ${c(s)}
3695
- </button>
3696
- <luzmo-overlay
3697
- trigger="${i}@click"
3698
- placement="bottom-end"
3699
- >
3700
- <luzmo-popover>
3701
- <button
3702
- class="assistant-context-menu-item"
3703
- type="button"
3704
- ?disabled=${r}
3705
- @click=${() => this._handleRestoreState(e, t)}
3706
- >
3707
- ${o("Restore state", { desc: "Context menu action that restores the chart to this message state" })}
3708
- </button>
3709
- </luzmo-popover>
3710
- </luzmo-overlay>
3711
- </div>
3712
- `;
3713
- }
3714
- _renderMessages() {
3715
- let { messages: e, inflightMessage: t, isGenerating: n } = this._getRenderState(), r = t !== null, i = e.filter((e) => !t || e.id !== t.id), a = [...i].reverse().find((e) => e.type === "ai"), s = a?.id;
3716
- return i.map((t) => {
3717
- let c = !!t.progress?.children?.length, l = c && this._isLastAiMessageWithProgress(t, i), ee = c && (r || n || !l), f = c ? u`
3718
- <luzmo-progress-steps
3719
- .progress=${t.progress}
3720
- ?condensed=${ee}
3721
- collapsed
3722
- no-animate
3723
- size="s"
3724
- ></luzmo-progress-steps>
3725
- ` : d;
3726
- if (t.type === "user") {
3727
- let e = t.attachmentUrls ?? [];
3728
- return u`
3729
- <luzmo-chat-message
3730
- avatar-placement="bottom"
3731
- position="right"
3732
- variant="primary"
3733
- size="s"
3734
- >
3735
- <div class="user-message-content">
3736
- ${e.length > 0 ? u`
3737
- <div class="user-message-attachments">
3738
- ${e.map((e) => u`
3739
- <img
3740
- class="user-message-attachment"
3741
- src=${e}
3742
- alt=${o("Attached image", { desc: "Accessible label for an image attached to a user chat message" })}
3743
- width="64"
3744
- height="64"
3745
- />
3746
- `)}
3747
- </div>
3748
- ` : d}
3749
- <div class="user-message-text">${t.message}</div>
3750
- </div>
3751
- </luzmo-chat-message>
3752
- `;
3753
- }
3754
- let p = e.indexOf(t), m = t.isError ? "error" : t.isCancelled ? "cancelled" : "", ne = t.isCancelled ? t.message : u`<div class="markdown-content">${te(this._renderMarkdown(t.message))}</div>`;
3755
- return u`
3756
- ${f}
3757
- <div class="assistant-message-wrapper">
3758
- <div class="assistant-message-body">
3759
- <luzmo-chat-message
3760
- class=${m}
3761
- role=${t.isError ? "alert" : d}
3762
- avatar-placement="bottom"
3763
- position="left"
3764
- quiet
3765
- size="s"
3766
- >
3767
- ${ne}
3768
- </luzmo-chat-message>
3769
-
3770
- ${this._renderRestoreMenu(t, p, s, r)}
3771
- </div>
3772
-
3773
- ${this._renderAssistantMessageActions(t, a)}
3774
- </div>
3775
- `;
3776
- });
3777
- }
3778
- _renderStreamingResponse() {
3779
- let { inflightMessage: e } = this._getRenderState();
3780
- return e?.message ? u`
3781
- <luzmo-chat-message
3782
- avatar-placement="bottom"
3783
- position="left"
3784
- quiet
3785
- size="s"
3786
- >
3787
- <div class="markdown-content">${te(this._renderMarkdown(e.message))}</div>
3788
- </luzmo-chat-message>
3789
- ` : d;
3790
- }
3791
- _renderLoadingMessage() {
3792
- let { isGenerating: e, progress: t, inflightMessage: n } = this._getRenderState();
3793
- if (!e || t?.children?.length || n?.message) return d;
3794
- let r = this.agent === "dashboard" ? !this.dashboard : this.chart?.type === "placeholder", i = this.agent === "dashboard" ? r ? o("Creating dashboard...", { desc: "Label for ai chat creating dashboard message" }) : o("Updating dashboard...", { desc: "Label for ai chat updating dashboard message" }) : r ? o("Creating item...", { desc: "Label for ai chat creating item message" }) : o("Updating item...", { desc: "Label for ai chat updating item message" });
3795
- return u`
3796
- <luzmo-chat-message
3797
- avatar-placement="bottom"
3798
- position="left"
3799
- quiet
3800
- size="s"
3801
- >
3802
- <div class="loading-message" role="status" aria-live="polite">
3803
- <span class="icon-lg">${c(l, { className: "spin" })}</span>
3804
- <span class="loading-message-text">${this.loadingMessage || i}</span>
3805
- </div>
3806
- </luzmo-chat-message>
3807
- `;
3808
- }
3809
- _renderEmptyState() {
3810
- if (this._getRenderState().messages.length > 0) return d;
3811
- let e = o("What can I help you with?", { desc: "Title for the AI chat empty state" }), t = this.emptyStateSuggestions.length > 0;
3812
- return u`
3813
- <luzmo-ai-chat-empty-state
3814
- .title=${this.emptyStateTitle || e}
3815
- .subtitle=${t ? this.emptyStateSubtitle : ""}
3816
- .suggestions=${this.emptyStateSuggestions}
3817
- ?disabled=${this.disabled || this._getRenderState().isGenerating}
3818
- @luzmo-suggestion-selected=${this._handleEmptyStateSuggestionSelected}
3819
- ></luzmo-ai-chat-empty-state>
3820
- `;
3821
- }
3822
- render() {
3823
- let { selectedDatasets: e, isGenerating: t } = this._getRenderState();
3824
- return u`
3825
- <div class="chat-container" role="region" aria-label=${o("AI Chat", { desc: "Accessible label for AI chat region" })}>
3826
- <div class="chat-messages-container" role="log" aria-live="polite">
3827
- ${this._renderEmptyState()}
3828
- ${this._renderMessages()}
3829
- ${this._renderProgress()}
3830
- ${this._renderStreamingResponse()}
3831
- ${this._renderLoadingMessage()}
3832
- </div>
3833
-
3834
- <luzmo-ai-interaction-textarea
3835
- role="group"
3836
- aria-label=${o("AI prompt input", { desc: "Accessible label for the ai chat prompt input area" })}
3837
- .value=${this._textareaValue}
3838
- .selectedDatasets=${e}
3839
- .placeholder=${this.placeholder}
3840
- ?disabled=${this.disabled}
3841
- ?is-generating=${t}
3842
- ?stoppable=${this.stoppable}
3843
- ?hide-dataset-button=${this.hideDatasetButton}
3844
- ?hide-dataset-icons=${this.hideDatasetIcons}
3845
- ?disable-dataset-modification=${this.disableDatasetModification}
3846
- ?hide-selected-datasets=${this.hideSelectedDatasets}
3847
- ?disable-column-mentions=${this.disableColumnMentions}
3848
- ?require-dataset=${this.requireDataset}
3849
- ?allow-images=${this.allowImages}
3850
- ?allow-voice-input=${this.allowVoiceInput}
3851
- .acceptedFileTypes=${this._resolvedAcceptedFileTypes}
3852
- .uploadAttachments=${this.uploadAttachments}
3853
- auth-key=${this.authKey}
3854
- auth-token=${this.authToken}
3855
- api-url=${this.apiUrl}
3856
- api-version=${this.apiVersion}
3857
- app-server=${this.appServer}
3858
- ?flag-opendata=${this.flagOpendata}
3859
- @prompt-submitted=${this._handlePromptSubmitted}
3860
- @prompt-stopped=${this._handlePromptStopped}
3861
- @dataset-selected=${this._handleDatasetSelected}
3862
- @dataset-removed=${this._handleDatasetRemoved}
3863
- ></luzmo-ai-interaction-textarea>
3864
- </div>
3865
- `;
3866
- }
3867
- };
3868
- t([f({ type: Array })], $.prototype, "messages", void 0), t([f({
3869
- type: Array,
3870
- attribute: "selected-datasets"
3871
- })], $.prototype, "selectedDatasets", void 0), t([f({ type: String })], $.prototype, "placeholder", void 0), t([f({
3872
- type: Boolean,
3873
- reflect: !0
3874
- })], $.prototype, "disabled", void 0), t([f({
3875
- type: Boolean,
3876
- reflect: !0
3877
- })], $.prototype, "stoppable", void 0), t([f({
3878
- type: Boolean,
3879
- attribute: "show-assistant-context-menu"
3880
- })], $.prototype, "showAssistantContextMenu", void 0), t([f({
3881
- type: String,
3882
- attribute: "auth-key"
3883
- })], $.prototype, "authKey", void 0), t([f({
3884
- type: String,
3885
- attribute: "auth-token"
3886
- })], $.prototype, "authToken", void 0), t([f({
3887
- type: String,
3888
- attribute: "api-url"
3889
- })], $.prototype, "apiUrl", void 0), t([f({
3890
- type: String,
3891
- attribute: "app-server"
3892
- })], $.prototype, "appServer", void 0), t([f({
3893
- type: Boolean,
3894
- attribute: "flag-opendata"
3895
- })], $.prototype, "flagOpendata", void 0), t([f({
3896
- type: Boolean,
3897
- attribute: "hide-dataset-button"
3898
- })], $.prototype, "hideDatasetButton", void 0), t([f({
3899
- type: Boolean,
3900
- attribute: "hide-dataset-icons"
3901
- })], $.prototype, "hideDatasetIcons", void 0), t([f({
3902
- type: Boolean,
3903
- attribute: "disable-dataset-modification"
3904
- })], $.prototype, "disableDatasetModification", void 0), t([f({
3905
- type: Boolean,
3906
- attribute: "hide-selected-datasets"
3907
- })], $.prototype, "hideSelectedDatasets", void 0), t([f({
3908
- type: Boolean,
3909
- attribute: "disable-column-mentions"
3910
- })], $.prototype, "disableColumnMentions", void 0), t([f({
3911
- type: Boolean,
3912
- attribute: "require-dataset"
3913
- })], $.prototype, "requireDataset", void 0), t([f({
3914
- type: Boolean,
3915
- reflect: !0,
3916
- attribute: "allow-images"
3917
- })], $.prototype, "allowImages", void 0), t([f({
3918
- type: Boolean,
3919
- reflect: !0,
3920
- attribute: "allow-voice-input"
3921
- })], $.prototype, "allowVoiceInput", void 0), t([f({
3922
- type: Array,
3923
- attribute: "accepted-file-types"
3924
- })], $.prototype, "acceptedFileTypes", void 0), t([f({ attribute: !1 })], $.prototype, "uploadAttachments", void 0), t([f({ type: String })], $.prototype, "agent", void 0), t([f({ type: String })], $.prototype, "task", void 0), t([f({
3925
- type: String,
3926
- attribute: "model-preference"
3927
- })], $.prototype, "modelPreference", void 0), t([f({ attribute: !1 })], $.prototype, "chatSession", void 0), t([f({
3928
- type: String,
3929
- attribute: "conversation-id"
3930
- })], $.prototype, "conversationId", void 0), t([f({
3931
- type: Object,
3932
- attribute: "chart"
3933
- })], $.prototype, "chart", void 0), t([f({ type: Object })], $.prototype, "dashboard", void 0), t([f({
3934
- type: String,
3935
- attribute: "current-screen-mode"
3936
- })], $.prototype, "currentScreenMode", void 0), t([f({
3937
- type: String,
3938
- attribute: "locale-id"
3939
- })], $.prototype, "localeId", void 0), t([f({
3940
- type: String,
3941
- attribute: "timezone-id"
3942
- })], $.prototype, "timezoneId", void 0), t([f({
3943
- type: String,
3944
- attribute: "api-version"
3945
- })], $.prototype, "apiVersion", void 0), t([f({ converter: { fromAttribute: (e) => e !== "false" && e !== null } })], $.prototype, "stream", void 0), t([f({
3946
- type: String,
3947
- attribute: "loading-message"
3948
- })], $.prototype, "loadingMessage", void 0), t([f({
3949
- type: String,
3950
- attribute: "cancelled-message"
3951
- })], $.prototype, "cancelledMessage", void 0), t([f({
3952
- type: String,
3953
- attribute: "initial-prompt"
3954
- })], $.prototype, "initialPrompt", void 0), t([f({
3955
- type: String,
3956
- attribute: "empty-state-title"
3957
- })], $.prototype, "emptyStateTitle", void 0), t([f({
3958
- type: String,
3959
- attribute: "empty-state-subtitle"
3960
- })], $.prototype, "emptyStateSubtitle", void 0), t([f({
3961
- type: Array,
3962
- attribute: !1
3963
- })], $.prototype, "emptyStateSuggestions", void 0), t([p()], $.prototype, "_textareaValue", void 0), t([p()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), t([p()], $.prototype, "_pendingAssistantMessageAction", void 0);
3964
- //#endregion
3965
- //#region src/components/ai-chat/ai-chat-events.ts
3966
- function zr(e) {
3967
- return e.recognized === !0;
3968
- }
3969
- //#endregion
3970
- //#region src/components/ai-chat/index.ts
3971
- customElements.get("luzmo-ai-chat") || customElements.define("luzmo-ai-chat", $);
3972
- //#endregion
3973
- export { wn as C, Dn as S, Sn as T, Mn as _, Lr as a, kn as b, Mr as c, Yn as d, Ln as f, In as g, Pn as h, Ir as i, jr as l, Nn as m, $ as n, Pr as o, Rn as p, Rr as r, Nr as s, zr as t, Gn as u, An as v, Cn as w, On as x, jn as y };