@spteck/react-controls-v2 2.0.18 → 2.2.1

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 (662) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +143 -387
  3. package/dist/LocalizationProvider-BLjmybBa.cjs +2 -0
  4. package/dist/LocalizationProvider-BSlUf0tp.js +497 -0
  5. package/dist/_arrayEach-CnIMt1eB.js +61 -0
  6. package/dist/_arrayEach-vx8gLv03.cjs +2 -0
  7. package/dist/abstractions/ILocalizationProvider.d.ts +52 -0
  8. package/dist/abstractions/index.d.ts +1 -0
  9. package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +52 -0
  10. package/dist/abstractions/providers/LocalizationProvider.d.ts +47 -0
  11. package/dist/abstractions/providers/index.d.ts +3 -1
  12. package/dist/ar-C1pLt8fa.js +219 -0
  13. package/dist/ar-Jzw7PLrc.cjs +2 -0
  14. package/dist/arc-DPTV8xm_.js +132 -0
  15. package/dist/arc-fdHOvWdS.cjs +2 -0
  16. package/dist/architecture-7HQA4BMR-BAUhgjE2.js +6 -0
  17. package/dist/architecture-7HQA4BMR-DwCjpO72.cjs +2 -0
  18. package/dist/architectureDiagram-VXUJARFQ-B5yGOjRk.js +8680 -0
  19. package/dist/architectureDiagram-VXUJARFQ-C7K57uon.cjs +2 -0
  20. package/dist/az-C0Ow5Hxa.cjs +2 -0
  21. package/dist/az-C3-F9ybX.js +219 -0
  22. package/dist/bg-YB0TmpRF.cjs +2 -0
  23. package/dist/bg-w2e_udiK.js +219 -0
  24. package/dist/blockDiagram-VD42YOAC-B9MtQVc8.js +3756 -0
  25. package/dist/blockDiagram-VD42YOAC-CXUX1_9K.cjs +2 -0
  26. package/dist/bs-BoW04lRb.cjs +2 -0
  27. package/dist/bs-CEe_gjEx.js +219 -0
  28. package/dist/c4Diagram-YG6GDRKO-0rSYap-S.cjs +2 -0
  29. package/dist/c4Diagram-YG6GDRKO-CKFTKCbq.js +2483 -0
  30. package/dist/ca-Bsy2Y5pS.cjs +2 -0
  31. package/dist/ca-CKpd72XI.js +219 -0
  32. package/dist/channel-CJ2FoHig.js +8 -0
  33. package/dist/channel-DjKs64mj.cjs +2 -0
  34. package/dist/chunk-4BX2VUAB-DJlF8TIZ.cjs +2 -0
  35. package/dist/chunk-4BX2VUAB-ghaW5jSQ.js +18 -0
  36. package/dist/chunk-55IACEB6-9B1z6QHL.cjs +2 -0
  37. package/dist/chunk-55IACEB6-__yJgpDO.js +14 -0
  38. package/dist/chunk-B4BG7PRW-Dbzu88Oo.cjs +2 -0
  39. package/dist/chunk-B4BG7PRW-NVucxzRs.js +1828 -0
  40. package/dist/chunk-DI55MBZ5-Bun58OTZ.js +1928 -0
  41. package/dist/chunk-DI55MBZ5-e__JA50C.cjs +2 -0
  42. package/dist/chunk-FMBD7UC4-DulgQOWY.js +20 -0
  43. package/dist/chunk-FMBD7UC4-Pi8Fs7F6.cjs +2 -0
  44. package/dist/chunk-QN33PNHL-DA_6jplh.js +26 -0
  45. package/dist/chunk-QN33PNHL-DcHwlyDo.cjs +2 -0
  46. package/dist/chunk-QZHKN3VN-BfGBK4_s.cjs +2 -0
  47. package/dist/chunk-QZHKN3VN-C5x9oEL1.js +18 -0
  48. package/dist/chunk-TZMSLE5B-BCBp8EeB.cjs +2 -0
  49. package/dist/chunk-TZMSLE5B-Bj2-6aT8.js +109 -0
  50. package/dist/classDiagram-2ON5EDUG-BGUaVc1W.cjs +2 -0
  51. package/dist/classDiagram-2ON5EDUG-BcR1HP9z.js +20 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs +2 -0
  53. package/dist/classDiagram-v2-WZHVMYZB-BcR1HP9z.js +20 -0
  54. package/dist/components/AISearchControl/index.d.ts +1 -0
  55. package/dist/components/Card/index.d.ts +0 -1
  56. package/dist/components/Carousel/index.d.ts +0 -3
  57. package/dist/components/Container/Container.d.ts +1 -9
  58. package/dist/components/Container/IContainerProps.d.ts +10 -4
  59. package/dist/components/Container/index.d.ts +1 -1
  60. package/dist/components/ContentRenderer/ContentRenderer.d.ts +1 -37
  61. package/dist/components/ContentRenderer/IContentRendererProps.d.ts +45 -0
  62. package/dist/components/ContentRenderer/index.d.ts +1 -1
  63. package/dist/components/DataGridV2/DataGridHandle.d.ts +14 -0
  64. package/dist/components/DataGridV2/DataGridV2.d.ts +2 -36
  65. package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +25 -0
  66. package/dist/components/DataGridV2/index.d.ts +1 -0
  67. package/dist/components/Grid/useGridStyles.d.ts +1 -1
  68. package/dist/components/ItemPicker/IItemPickerOption.d.ts +14 -0
  69. package/dist/components/ItemPicker/IItemPickerPagingInfo.d.ts +9 -0
  70. package/dist/components/ItemPicker/IItemPickerProps.d.ts +54 -0
  71. package/dist/components/ItemPicker/ItemPicker.d.ts +4 -0
  72. package/dist/components/ItemPicker/index.d.ts +5 -0
  73. package/dist/components/ItemPicker/useItemPickerStyles.d.ts +10 -0
  74. package/dist/components/KPIControl/IKpiCardData.d.ts +19 -0
  75. package/dist/components/KPIControl/IKpiCardProps.d.ts +6 -0
  76. package/dist/components/KPIControl/KpiCard.d.ts +4 -0
  77. package/dist/components/KPIControl/KpiCardCompact.d.ts +4 -0
  78. package/dist/components/KPIControl/KpiCardSkeleton.d.ts +8 -0
  79. package/dist/components/KPIControl/Kpis.d.ts +7 -0
  80. package/dist/components/KPIControl/NoKpisCard.d.ts +8 -0
  81. package/dist/components/KPIControl/index.d.ts +8 -0
  82. package/dist/components/KPIControl/useKpiStyles.d.ts +33 -0
  83. package/dist/components/ListToolbar/FlatItem.d.ts +8 -0
  84. package/dist/components/ListToolbar/IListToolbarProps.d.ts +27 -0
  85. package/dist/components/ListToolbar/IToolbarItem.d.ts +37 -0
  86. package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +13 -0
  87. package/dist/components/ListToolbar/ListToolbar.d.ts +5 -0
  88. package/dist/components/ListToolbar/ToolbarItemRenderer.d.ts +7 -0
  89. package/dist/components/ListToolbar/helpers.d.ts +6 -0
  90. package/dist/components/ListToolbar/index.d.ts +4 -0
  91. package/dist/components/ListToolbar/useListToolbarStyles.d.ts +16 -0
  92. package/dist/components/ListToolbar/useOverflowIndex.d.ts +18 -0
  93. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +1 -1
  94. package/dist/components/MarkdownRenderer/useMarkdownStyles.d.ts +4 -0
  95. package/dist/components/MermaidDiagram/IMermaidDiagramProps.d.ts +31 -0
  96. package/dist/components/MermaidDiagram/MermaidDiagram.d.ts +4 -0
  97. package/dist/components/MermaidDiagram/index.d.ts +4 -0
  98. package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +9 -0
  99. package/dist/components/Navigation/INavigationProps.d.ts +141 -0
  100. package/dist/components/Navigation/Navigation.d.ts +27 -0
  101. package/dist/components/Navigation/index.d.ts +4 -0
  102. package/dist/components/Navigation/useNavigationStyles.d.ts +13 -0
  103. package/dist/components/SelectTime/IOptionTimeProps.d.ts +23 -0
  104. package/dist/components/SelectTime/ISelectTimeProps.d.ts +25 -0
  105. package/dist/components/SelectTime/OptionTime.d.ts +16 -0
  106. package/dist/components/SelectTime/SelectTime.d.ts +4 -0
  107. package/dist/components/SelectTime/index.d.ts +7 -0
  108. package/dist/components/SelectTime/useOptionTimeStyles.d.ts +6 -0
  109. package/dist/components/SelectTime/useSelectTimeStyles.d.ts +7 -0
  110. package/dist/components/SplitPane/ISplitPaneProps.d.ts +28 -0
  111. package/dist/components/SplitPane/SplitPane.d.ts +10 -0
  112. package/dist/components/SplitPane/index.d.ts +4 -0
  113. package/dist/components/SplitPane/useSplitPaneStyles.d.ts +13 -0
  114. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +1 -1
  115. package/dist/components/adaptiveCardHost/fluentUI/renderCompat.d.ts +7 -0
  116. package/dist/components/aiAssistant/index.d.ts +1 -0
  117. package/dist/components/appDashboard/IAppDashboardProps.d.ts +2 -2
  118. package/dist/components/breadcrumb/IBreadcrumProps.d.ts +1 -1
  119. package/dist/components/breadcrumb/index.d.ts +1 -0
  120. package/dist/components/customControlBar/CustomControlBar.d.ts +1 -13
  121. package/dist/components/customControlBar/IControlItem.d.ts +6 -0
  122. package/dist/components/customControlBar/ICustomControlBarProps.d.ts +11 -0
  123. package/dist/components/customControlBar/index.d.ts +2 -0
  124. package/dist/components/dropDownField/useDropdownFieldStyles.d.ts +5 -0
  125. package/dist/components/index.d.ts +7 -0
  126. package/dist/components/inputField/IInputFieldProps.d.ts +22 -0
  127. package/dist/components/inputField/InputField.d.ts +4 -0
  128. package/dist/components/inputField/index.d.ts +3 -0
  129. package/dist/components/inputField/useInputFieldStyles.d.ts +5 -0
  130. package/dist/components/renderDrawer/RenderDrawer.d.ts +1 -4
  131. package/dist/components/renderHeader/index.d.ts +1 -0
  132. package/dist/components/searchControl/ISearchControlProps.d.ts +14 -0
  133. package/dist/components/searchControl/SearchControl.d.ts +5 -0
  134. package/dist/components/searchControl/index.d.ts +3 -0
  135. package/dist/components/searchControl/useSearchControlStyles.d.ts +13 -0
  136. package/dist/components/stackv2/StackV2.d.ts +1 -1
  137. package/dist/components/worldMap/index.d.ts +2 -0
  138. package/dist/components/worldMap/useContentToolTipStyles.d.ts +2 -8
  139. package/dist/cose-bilkent-S5V4N54A-BcLbJZT7.cjs +2 -0
  140. package/dist/cose-bilkent-S5V4N54A-CtEV3dGx.js +4934 -0
  141. package/dist/cs-D-801PIR.cjs +2 -0
  142. package/dist/cs-DQvRPciB.js +219 -0
  143. package/dist/cy-BxyJCM05.js +219 -0
  144. package/dist/cy-aUPUcn-S.cjs +2 -0
  145. package/dist/cytoscape.esm-BS1owLay.js +30250 -0
  146. package/dist/cytoscape.esm-BxB3woZB.cjs +10 -0
  147. package/dist/da-B05ad5Iq.js +219 -0
  148. package/dist/da-CTiLOqut.cjs +2 -0
  149. package/dist/dagre-6UL2VRFP-BZ9apxkx.js +696 -0
  150. package/dist/dagre-6UL2VRFP-FmOJGmX_.cjs +2 -0
  151. package/dist/de-DJ5iwpd7.js +219 -0
  152. package/dist/de-Dm204UMA.cjs +2 -0
  153. package/dist/defaultLocale-7NeEK7SF.cjs +2 -0
  154. package/dist/defaultLocale-DVr69WTU.js +207 -0
  155. package/dist/diagram-PSM6KHXK-BZxXJahR.cjs +2 -0
  156. package/dist/diagram-PSM6KHXK-_wkJk__z.js +848 -0
  157. package/dist/diagram-QEK2KX5R-NQiK3YZe.cjs +2 -0
  158. package/dist/diagram-QEK2KX5R-YQAU79Lo.js +305 -0
  159. package/dist/diagram-S2PKOQOG-Cob2HIrt.cjs +2 -0
  160. package/dist/diagram-S2PKOQOG-D8jaJbP8.js +212 -0
  161. package/dist/el-CBS9mHS3.js +219 -0
  162. package/dist/el-DbtZj-ph.cjs +2 -0
  163. package/dist/erDiagram-Q2GNP2WA-DAzex-RZ.cjs +2 -0
  164. package/dist/erDiagram-Q2GNP2WA-syuB6Tgc.js +1160 -0
  165. package/dist/es-Bo08apQr.js +219 -0
  166. package/dist/es-Cc-4Vqf7.cjs +2 -0
  167. package/dist/et-D5pQ66eY.cjs +2 -0
  168. package/dist/et-pRL0Tmle.js +219 -0
  169. package/dist/eu-Br68gaf7.js +219 -0
  170. package/dist/eu-RZ-27koK.cjs +2 -0
  171. package/dist/fi-BCXB-k_X.js +219 -0
  172. package/dist/fi-Dqa9mgnW.cjs +2 -0
  173. package/dist/flowDiagram-NV44I4VS-CXJA5Xu7.js +2339 -0
  174. package/dist/flowDiagram-NV44I4VS-DOcXDmk8.cjs +2 -0
  175. package/dist/fr-B7fhkle4.cjs +2 -0
  176. package/dist/fr-gKE1SSIF.js +219 -0
  177. package/dist/ga-4Hf7vKvr.cjs +2 -0
  178. package/dist/ga-C1SpITZy.js +219 -0
  179. package/dist/ganttDiagram-JELNMOA3-BodaBsjX.js +3652 -0
  180. package/dist/ganttDiagram-JELNMOA3-oeOE4Au1.cjs +2 -0
  181. package/dist/gitGraph-G5XIXVHT-BAoUh2t9.js +6 -0
  182. package/dist/gitGraph-G5XIXVHT-bEuOx0_B.cjs +2 -0
  183. package/dist/gitGraphDiagram-V2S2FVAM-B5dByD3_.js +1215 -0
  184. package/dist/gitGraphDiagram-V2S2FVAM-D4G2FRg-.cjs +2 -0
  185. package/dist/gl-COSpsMSK.cjs +2 -0
  186. package/dist/gl-CSzCeu2L.js +219 -0
  187. package/dist/graph-C7xixGrW.cjs +2 -0
  188. package/dist/graph-DH3cnEko.js +421 -0
  189. package/dist/he-BrkfqoIm.js +219 -0
  190. package/dist/he-C7Wi6-EL.cjs +2 -0
  191. package/dist/hi-C1RGDPzn.js +219 -0
  192. package/dist/hi-ojklJj-a.cjs +2 -0
  193. package/dist/hooks/index.d.ts +1 -0
  194. package/dist/hooks/useLocalizationStrings.d.ts +71 -0
  195. package/dist/hr-CsO_h2VT.js +219 -0
  196. package/dist/hr-DkEwOCGU.cjs +2 -0
  197. package/dist/hu-CVtbM-V2.js +219 -0
  198. package/dist/hu-D8uAAzvN.cjs +2 -0
  199. package/dist/id-18yPGK2f.cjs +2 -0
  200. package/dist/id-CARSN0W8.js +219 -0
  201. package/dist/index-CP55uT1-.js +55270 -0
  202. package/dist/index-DkoeCnje.cjs +428 -0
  203. package/dist/index.cjs +2 -0
  204. package/dist/index.d.ts +14 -0
  205. package/dist/index.js +165 -200
  206. package/dist/info-VBDWY6EO-CCtIeR-l.js +6 -0
  207. package/dist/info-VBDWY6EO-CIQZzC1h.cjs +2 -0
  208. package/dist/infoDiagram-HS3SLOUP-BCGLBWdb.js +32 -0
  209. package/dist/infoDiagram-HS3SLOUP-l61UBAGu.cjs +2 -0
  210. package/dist/init-DZ96s0AS.cjs +2 -0
  211. package/dist/init-ZxktEp_H.js +17 -0
  212. package/dist/it-BVq911RW.cjs +2 -0
  213. package/dist/it-ClWGK7XT.js +219 -0
  214. package/dist/ja-BgcKuKZ4.cjs +2 -0
  215. package/dist/ja-DGL12HwE.js +219 -0
  216. package/dist/journeyDiagram-XKPGCS4Q-CngaMpvw.js +1255 -0
  217. package/dist/journeyDiagram-XKPGCS4Q-DDFQr_sf.cjs +2 -0
  218. package/dist/kanban-definition-3W4ZIXB7-DE64tG2k.js +1049 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Yh2cXBd5.cjs +2 -0
  220. package/dist/katex-DPu4QpBP.cjs +2 -0
  221. package/dist/katex-Dd1-wdX2.js +14523 -0
  222. package/dist/kk-CkKXbKso.js +219 -0
  223. package/dist/kk-Dn3FBkOR.cjs +2 -0
  224. package/dist/ko-CKAbV25b.cjs +2 -0
  225. package/dist/ko-QYvDV2aw.js +219 -0
  226. package/dist/layout-D6yO7DzL.cjs +2 -0
  227. package/dist/layout-bxkZz7Cm.js +1919 -0
  228. package/dist/linear-CytTXQM2.cjs +2 -0
  229. package/dist/linear-R5bATomY.js +341 -0
  230. package/dist/localization/ILibraryStrings.d.ts +299 -0
  231. package/dist/localization/defaults/ar.d.ts +8 -0
  232. package/dist/localization/defaults/az.d.ts +8 -0
  233. package/dist/localization/defaults/bg.d.ts +8 -0
  234. package/dist/localization/defaults/bs.d.ts +8 -0
  235. package/dist/localization/defaults/ca.d.ts +8 -0
  236. package/dist/localization/defaults/cs.d.ts +8 -0
  237. package/dist/localization/defaults/cy.d.ts +8 -0
  238. package/dist/localization/defaults/da.d.ts +8 -0
  239. package/dist/localization/defaults/de.d.ts +8 -0
  240. package/dist/localization/defaults/el.d.ts +8 -0
  241. package/dist/localization/defaults/en.d.ts +8 -0
  242. package/dist/localization/defaults/es.d.ts +8 -0
  243. package/dist/localization/defaults/et.d.ts +8 -0
  244. package/dist/localization/defaults/eu.d.ts +8 -0
  245. package/dist/localization/defaults/fi.d.ts +8 -0
  246. package/dist/localization/defaults/fr.d.ts +8 -0
  247. package/dist/localization/defaults/ga.d.ts +8 -0
  248. package/dist/localization/defaults/gl.d.ts +8 -0
  249. package/dist/localization/defaults/he.d.ts +8 -0
  250. package/dist/localization/defaults/hi.d.ts +8 -0
  251. package/dist/localization/defaults/hr.d.ts +8 -0
  252. package/dist/localization/defaults/hu.d.ts +8 -0
  253. package/dist/localization/defaults/id.d.ts +8 -0
  254. package/dist/localization/defaults/index.d.ts +47 -0
  255. package/dist/localization/defaults/it.d.ts +8 -0
  256. package/dist/localization/defaults/ja.d.ts +8 -0
  257. package/dist/localization/defaults/kk.d.ts +8 -0
  258. package/dist/localization/defaults/ko.d.ts +8 -0
  259. package/dist/localization/defaults/lt.d.ts +8 -0
  260. package/dist/localization/defaults/lv.d.ts +8 -0
  261. package/dist/localization/defaults/mk.d.ts +8 -0
  262. package/dist/localization/defaults/ms.d.ts +8 -0
  263. package/dist/localization/defaults/nb.d.ts +8 -0
  264. package/dist/localization/defaults/nl.d.ts +8 -0
  265. package/dist/localization/defaults/pl.d.ts +8 -0
  266. package/dist/localization/defaults/pt.d.ts +8 -0
  267. package/dist/localization/defaults/ro.d.ts +8 -0
  268. package/dist/localization/defaults/ru.d.ts +8 -0
  269. package/dist/localization/defaults/sk.d.ts +8 -0
  270. package/dist/localization/defaults/sl.d.ts +8 -0
  271. package/dist/localization/defaults/sr.d.ts +8 -0
  272. package/dist/localization/defaults/sv.d.ts +8 -0
  273. package/dist/localization/defaults/th.d.ts +8 -0
  274. package/dist/localization/defaults/tr.d.ts +8 -0
  275. package/dist/localization/defaults/uk.d.ts +8 -0
  276. package/dist/localization/defaults/vi.d.ts +8 -0
  277. package/dist/localization/defaults/zh.d.ts +8 -0
  278. package/dist/localization/index.d.ts +8 -0
  279. package/dist/localization/utils.d.ts +10 -0
  280. package/dist/lt-BKnFyiLV.js +219 -0
  281. package/dist/lt-BnGNEsIS.cjs +2 -0
  282. package/dist/lv-Clqo0Ogm.js +219 -0
  283. package/dist/lv-D3rJQRhc.cjs +2 -0
  284. package/dist/maplibre-gl-D9TSGNCf.cjs +6 -0
  285. package/dist/maplibre-gl-DwyiD0x9.js +23511 -0
  286. package/dist/mermaid-parser.core-BbdofhA6.js +23791 -0
  287. package/dist/mermaid-parser.core-C4ChZJz4.cjs +2 -0
  288. package/dist/mindmap-definition-VGOIOE7T-BonbrEly.cjs +2 -0
  289. package/dist/mindmap-definition-VGOIOE7T-C8FL7caj.js +1129 -0
  290. package/dist/mk-EhcD0RzW.js +219 -0
  291. package/dist/mk-hVxJgrE0.cjs +2 -0
  292. package/dist/ms-CJACwjo7.js +219 -0
  293. package/dist/ms-D0txYckK.cjs +2 -0
  294. package/dist/nb-BfKRl99z.cjs +2 -0
  295. package/dist/nb-NCgnP0Pu.js +219 -0
  296. package/dist/nl-EgsNCunP.js +219 -0
  297. package/dist/nl-ZXiLkBj_.cjs +2 -0
  298. package/dist/ordinal-BZdahNih.cjs +2 -0
  299. package/dist/ordinal-DSZU4PqD.js +77 -0
  300. package/dist/packet-DYOGHKS2-64UpspMA.cjs +2 -0
  301. package/dist/packet-DYOGHKS2-DCndr5Wp.js +6 -0
  302. package/dist/pie-VRWISCQL-B_5_SIgL.cjs +2 -0
  303. package/dist/pie-VRWISCQL-BbSFz_Jh.js +6 -0
  304. package/dist/pieDiagram-ADFJNKIX-C8b4kPLp.cjs +2 -0
  305. package/dist/pieDiagram-ADFJNKIX-CQjh4P80.js +238 -0
  306. package/dist/pl-H28GVtiG.js +219 -0
  307. package/dist/pl-tVjdYTB9.cjs +2 -0
  308. package/dist/providers.cjs +2 -0
  309. package/dist/providers.js +252 -1
  310. package/dist/pt-1k62N9F3.cjs +2 -0
  311. package/dist/pt-BSPZhWKl.js +211 -0
  312. package/dist/quadrantDiagram-AYHSOK5B-Bb99yQJL.cjs +2 -0
  313. package/dist/quadrantDiagram-AYHSOK5B-BiLBDCHf.js +1338 -0
  314. package/dist/radar-ZZBFDIW7-DC8bA3_e.cjs +2 -0
  315. package/dist/radar-ZZBFDIW7-DpGZ3D_F.js +6 -0
  316. package/dist/requirementDiagram-UZGBJVZJ-BeLfR5tA.cjs +2 -0
  317. package/dist/requirementDiagram-UZGBJVZJ-D6hcN5kf.js +1164 -0
  318. package/dist/ro-9Qt1qDDA.cjs +2 -0
  319. package/dist/ro-BpaZLre_.js +219 -0
  320. package/dist/ru-4WxRouIU.cjs +2 -0
  321. package/dist/ru-CUZzD-Tx.js +219 -0
  322. package/dist/sankeyDiagram-TZEHDZUN-7K2pggbF.js +1194 -0
  323. package/dist/sankeyDiagram-TZEHDZUN-T1lqY3ke.cjs +2 -0
  324. package/dist/sequenceDiagram-WL72ISMW-CaSRrEHR.cjs +2 -0
  325. package/dist/sequenceDiagram-WL72ISMW-DymCRly8.js +3882 -0
  326. package/dist/sk-CoQ6XiCY.js +219 -0
  327. package/dist/sk-uWukDQab.cjs +2 -0
  328. package/dist/sl-B6DVbKg6.cjs +2 -0
  329. package/dist/sl-CHW-ZGol.js +219 -0
  330. package/dist/sr-BOD8Tc-D.cjs +2 -0
  331. package/dist/sr-EQGjIBJE.js +219 -0
  332. package/dist/stateDiagram-FKZM4ZOC-B3uhYYpW.js +449 -0
  333. package/dist/stateDiagram-FKZM4ZOC-BETxyYxX.cjs +2 -0
  334. package/dist/stateDiagram-v2-4FDKWEC3-B4AjT1wB.cjs +2 -0
  335. package/dist/stateDiagram-v2-4FDKWEC3-BuiA8K0X.js +20 -0
  336. package/dist/style.css +1 -0
  337. package/dist/sv-B6nLuQr7.cjs +2 -0
  338. package/dist/sv-DTxWN6ED.js +219 -0
  339. package/dist/th-BVPzHvBf.js +219 -0
  340. package/dist/th-DmULV6uT.cjs +2 -0
  341. package/dist/timeline-definition-IT6M3QCI-CsJvwNrg.cjs +2 -0
  342. package/dist/timeline-definition-IT6M3QCI-DNROY61n.js +1227 -0
  343. package/dist/tr-BE5geTUC.cjs +2 -0
  344. package/dist/tr-BHR1QA-D.js +219 -0
  345. package/dist/treemap-GDKQZRPO-DbPXSmw-.js +6 -0
  346. package/dist/treemap-GDKQZRPO-Dj3L_VQH.cjs +2 -0
  347. package/dist/uk-Bc5TwelE.js +219 -0
  348. package/dist/uk-DS5ukB_-.cjs +2 -0
  349. package/dist/vi-D9FF4kkG.cjs +2 -0
  350. package/dist/vi-DC0eQZb7.js +219 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CXT2FhOm.cjs +2 -0
  352. package/dist/xychartDiagram-PRI3JC2R-D7UaoGaC.js +1887 -0
  353. package/dist/zh-CGcOiJ3s.cjs +2 -0
  354. package/dist/zh-GsCLn8OE.js +219 -0
  355. package/package.json +95 -92
  356. package/dist/ILoggingProvider-C4FFlnQ0.js +0 -2
  357. package/dist/ILoggingProvider-C4FFlnQ0.js.map +0 -1
  358. package/dist/ILoggingProvider-CYYYCGLY.mjs +0 -18
  359. package/dist/ILoggingProvider-CYYYCGLY.mjs.map +0 -1
  360. package/dist/abstractions/IApplicationContext.d.ts.map +0 -1
  361. package/dist/abstractions/IAuthenticationProvider.d.ts.map +0 -1
  362. package/dist/abstractions/IGraphProvider.d.ts.map +0 -1
  363. package/dist/abstractions/ILoggingProvider.d.ts.map +0 -1
  364. package/dist/abstractions/IPageContext.d.ts.map +0 -1
  365. package/dist/abstractions/IStorageProvider.d.ts.map +0 -1
  366. package/dist/abstractions/index.d.ts.map +0 -1
  367. package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts.map +0 -1
  368. package/dist/abstractions/providers/DefaultGraphClient.d.ts.map +0 -1
  369. package/dist/abstractions/providers/LocalStorageProvider.d.ts.map +0 -1
  370. package/dist/abstractions/providers/index.d.ts.map +0 -1
  371. package/dist/components/AISearchControl/AISearchControl.d.ts.map +0 -1
  372. package/dist/components/AISearchControl/AISearchIcon.d.ts.map +0 -1
  373. package/dist/components/AISearchControl/AISearchIconExample.d.ts.map +0 -1
  374. package/dist/components/AISearchControl/index.d.ts.map +0 -1
  375. package/dist/components/AISearchControl/useAISearchControlStyles.d.ts.map +0 -1
  376. package/dist/components/AspectRatio/AspectRatio.d.ts.map +0 -1
  377. package/dist/components/AspectRatio/IAspectRationProps.d.ts.map +0 -1
  378. package/dist/components/AspectRatio/index.d.ts.map +0 -1
  379. package/dist/components/AspectRatio/useAspectRatioStyles.d.ts.map +0 -1
  380. package/dist/components/Card/Card.d.ts.map +0 -1
  381. package/dist/components/Card/ICardProps.d.ts.map +0 -1
  382. package/dist/components/Card/index.d.ts.map +0 -1
  383. package/dist/components/Card/useCardStyles.d.ts.map +0 -1
  384. package/dist/components/Carousel/Carousel.d.ts.map +0 -1
  385. package/dist/components/Carousel/ICarouselProps.d.ts.map +0 -1
  386. package/dist/components/Carousel/index.d.ts.map +0 -1
  387. package/dist/components/Carousel/useCarouselButton.d.ts.map +0 -1
  388. package/dist/components/Carousel/useCarouselStyles.d.ts.map +0 -1
  389. package/dist/components/Carousel/useCarouselStylesMain.d.ts.map +0 -1
  390. package/dist/components/Center/Center.d.ts.map +0 -1
  391. package/dist/components/Center/ICenterProps.d.ts.map +0 -1
  392. package/dist/components/Center/index.d.ts.map +0 -1
  393. package/dist/components/Center/useCenterStyles.d.ts.map +0 -1
  394. package/dist/components/Container/Container.d.ts.map +0 -1
  395. package/dist/components/Container/IContainerProps.d.ts.map +0 -1
  396. package/dist/components/Container/index.d.ts.map +0 -1
  397. package/dist/components/Container/useContainerStyles.d.ts.map +0 -1
  398. package/dist/components/ContentRenderer/ContentRenderer.d.ts.map +0 -1
  399. package/dist/components/ContentRenderer/index.d.ts.map +0 -1
  400. package/dist/components/DataGridV2/DataGridV2.d.ts.map +0 -1
  401. package/dist/components/DataGridV2/index.d.ts.map +0 -1
  402. package/dist/components/DataGridV2/useDataGridV2Styles.d.ts.map +0 -1
  403. package/dist/components/Grid/Grid.d.ts.map +0 -1
  404. package/dist/components/Grid/IGridProps.d.ts.map +0 -1
  405. package/dist/components/Grid/index.d.ts.map +0 -1
  406. package/dist/components/Grid/useGridStyles.d.ts.map +0 -1
  407. package/dist/components/Layout/ILayoutProps.d.ts.map +0 -1
  408. package/dist/components/Layout/Layout.d.ts.map +0 -1
  409. package/dist/components/Layout/LayoutItem.d.ts.map +0 -1
  410. package/dist/components/Layout/index.d.ts.map +0 -1
  411. package/dist/components/Layout/useLayoutStyles.d.ts.map +0 -1
  412. package/dist/components/ListItemActivityMessage/IAction.d.ts.map +0 -1
  413. package/dist/components/ListItemActivityMessage/IActivity.d.ts.map +0 -1
  414. package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts.map +0 -1
  415. package/dist/components/ListItemActivityMessage/IActor.d.ts.map +0 -1
  416. package/dist/components/ListItemActivityMessage/IUserActor.d.ts.map +0 -1
  417. package/dist/components/ListItemActivityMessage/ListItemActivityMessage.d.ts.map +0 -1
  418. package/dist/components/ListItemActivityMessage/index.d.ts.map +0 -1
  419. package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts.map +0 -1
  420. package/dist/components/LivePersona/ILivePersonaProps.d.ts.map +0 -1
  421. package/dist/components/LivePersona/LivePersona.d.ts.map +0 -1
  422. package/dist/components/LivePersona/index.d.ts.map +0 -1
  423. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
  424. package/dist/components/MarkdownRenderer/index.d.ts.map +0 -1
  425. package/dist/components/Popup/Popup.d.ts.map +0 -1
  426. package/dist/components/Popup/index.d.ts.map +0 -1
  427. package/dist/components/Provider/UniversalProvider.d.ts.map +0 -1
  428. package/dist/components/Provider/index.d.ts.map +0 -1
  429. package/dist/components/RenderLabel/RenderLabel.d.ts.map +0 -1
  430. package/dist/components/RenderLabel/index.d.ts.map +0 -1
  431. package/dist/components/RenderLabel/useRenderLabelStylesStyles.d.ts.map +0 -1
  432. package/dist/components/RenderSpninner/RenderSpinner.d.ts.map +0 -1
  433. package/dist/components/RenderSpninner/index.d.ts.map +0 -1
  434. package/dist/components/Space/ISpaceProps.d.ts.map +0 -1
  435. package/dist/components/Space/SPace.d.ts.map +0 -1
  436. package/dist/components/Space/index.d.ts.map +0 -1
  437. package/dist/components/Space/useSpaceStyles.d.ts.map +0 -1
  438. package/dist/components/Stack/IStackProps.d.ts.map +0 -1
  439. package/dist/components/Stack/Stack.d.ts.map +0 -1
  440. package/dist/components/Stack/StackItem.d.ts.map +0 -1
  441. package/dist/components/Stack/index.d.ts.map +0 -1
  442. package/dist/components/Stack/useStackStyles.d.ts.map +0 -1
  443. package/dist/components/StackedUsers/IStackedUsersProps.d.ts.map +0 -1
  444. package/dist/components/StackedUsers/StackedUsers.d.ts.map +0 -1
  445. package/dist/components/StackedUsers/index.d.ts.map +0 -1
  446. package/dist/components/StackedUsers/useStackedUsersStyles.d.ts.map +0 -1
  447. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +0 -1
  448. package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +0 -1
  449. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +0 -1
  450. package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts.map +0 -1
  451. package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +0 -1
  452. package/dist/components/adaptiveCardHost/fluentUI/Actions.d.ts.map +0 -1
  453. package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts.map +0 -1
  454. package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts.map +0 -1
  455. package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts.map +0 -1
  456. package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts.map +0 -1
  457. package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts.map +0 -1
  458. package/dist/components/adaptiveCardHost/fluentUI/FluentUITimeInput.d.ts.map +0 -1
  459. package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts.map +0 -1
  460. package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +0 -1
  461. package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +0 -1
  462. package/dist/components/adaptiveCardHost/fluentUI/IconButton.d.ts.map +0 -1
  463. package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts.map +0 -1
  464. package/dist/components/adaptiveCardHost/fluentUI/index.d.ts.map +0 -1
  465. package/dist/components/adaptiveCardHost/fluentUI/inlineButtonRootStyle.d.ts.map +0 -1
  466. package/dist/components/adaptiveCardHost/fluentUI/internalRender.d.ts.map +0 -1
  467. package/dist/components/adaptiveCardHost/index.d.ts.map +0 -1
  468. package/dist/components/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +0 -1
  469. package/dist/components/adaptiveCardHost/models/IAadInfo.d.ts.map +0 -1
  470. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +0 -1
  471. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +0 -1
  472. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts.map +0 -1
  473. package/dist/components/adaptiveCardHost/models/ICultureInfo.d.ts.map +0 -1
  474. package/dist/components/adaptiveCardHost/models/ISPListInfo.d.ts.map +0 -1
  475. package/dist/components/adaptiveCardHost/models/ISPListItemInfo.d.ts.map +0 -1
  476. package/dist/components/adaptiveCardHost/models/ISPSiteInfo.d.ts.map +0 -1
  477. package/dist/components/adaptiveCardHost/models/ISPWebInfo.d.ts.map +0 -1
  478. package/dist/components/adaptiveCardHost/models/IUserInfo.d.ts.map +0 -1
  479. package/dist/components/adaptiveCardHost/models/index.d.ts.map +0 -1
  480. package/dist/components/aiAssistant/AIAssistant.d.ts.map +0 -1
  481. package/dist/components/aiAssistant/ChatAction.d.ts.map +0 -1
  482. package/dist/components/aiAssistant/ChatInput.d.ts.map +0 -1
  483. package/dist/components/aiAssistant/ChatInputProps.d.ts.map +0 -1
  484. package/dist/components/aiAssistant/ChatInputWithMensions.d.ts.map +0 -1
  485. package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts.map +0 -1
  486. package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts.map +0 -1
  487. package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts.map +0 -1
  488. package/dist/components/aiAssistant/ChatList.d.ts.map +0 -1
  489. package/dist/components/aiAssistant/ChatState.d.ts.map +0 -1
  490. package/dist/components/aiAssistant/IAIAssistantProps.d.ts.map +0 -1
  491. package/dist/components/aiAssistant/IChatItem.d.ts.map +0 -1
  492. package/dist/components/aiAssistant/IResponse.d.ts.map +0 -1
  493. package/dist/components/aiAssistant/LoadingDots.d.ts.map +0 -1
  494. package/dist/components/aiAssistant/chatReducer.d.ts.map +0 -1
  495. package/dist/components/aiAssistant/index.d.ts.map +0 -1
  496. package/dist/components/aiAssistant/useAIAssistantStyles.d.ts.map +0 -1
  497. package/dist/components/aiAssistant/useChatInputStyles.d.ts.map +0 -1
  498. package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts.map +0 -1
  499. package/dist/components/aiAssistant/useLoadingDotsStyles.d.ts.map +0 -1
  500. package/dist/components/aiAssistant/useStreamRequest.d.ts.map +0 -1
  501. package/dist/components/aiAssistant/useStyles.d.ts.map +0 -1
  502. package/dist/components/appDashboard/AppDashboard.d.ts.map +0 -1
  503. package/dist/components/appDashboard/IAppDashboardProps.d.ts.map +0 -1
  504. package/dist/components/appDashboard/NoDashboards.d.ts.map +0 -1
  505. package/dist/components/appDashboard/index.d.ts.map +0 -1
  506. package/dist/components/appDashboard/selectZoom/SelectZoom.d.ts.map +0 -1
  507. package/dist/components/appDashboard/useDashboardStyles.d.ts.map +0 -1
  508. package/dist/components/baseComponentProps/IBaseProps.d.ts.map +0 -1
  509. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +0 -1
  510. package/dist/components/breadcrumb/IBreadcrumItem.d.ts.map +0 -1
  511. package/dist/components/breadcrumb/IBreadcrumProps.d.ts.map +0 -1
  512. package/dist/components/breadcrumb/OverflowMenu.d.ts.map +0 -1
  513. package/dist/components/breadcrumb/index.d.ts.map +0 -1
  514. package/dist/components/breadcrumb/useBreadcrumStyles.d.ts.map +0 -1
  515. package/dist/components/buttonMenu/ButtonMenu.d.ts.map +0 -1
  516. package/dist/components/buttonMenu/IButtonMenuOption.d.ts.map +0 -1
  517. package/dist/components/buttonMenu/index.d.ts.map +0 -1
  518. package/dist/components/calendarControl/CalendarControl.d.ts.map +0 -1
  519. package/dist/components/calendarControl/Day.d.ts.map +0 -1
  520. package/dist/components/calendarControl/DayView.d.ts.map +0 -1
  521. package/dist/components/calendarControl/EventDetailsPopover.d.ts.map +0 -1
  522. package/dist/components/calendarControl/EventPopoverCard.d.ts.map +0 -1
  523. package/dist/components/calendarControl/EventRender.d.ts.map +0 -1
  524. package/dist/components/calendarControl/RenderEventToDayOfMonth.d.ts.map +0 -1
  525. package/dist/components/calendarControl/SelectCalendarView.d.ts.map +0 -1
  526. package/dist/components/calendarControl/Toolbar.d.ts.map +0 -1
  527. package/dist/components/calendarControl/WeekView.d.ts.map +0 -1
  528. package/dist/components/calendarControl/hooks/index.d.ts.map +0 -1
  529. package/dist/components/calendarControl/hooks/useCalendar.d.ts.map +0 -1
  530. package/dist/components/calendarControl/hooks/useCalendarStyles.d.ts.map +0 -1
  531. package/dist/components/calendarControl/hooks/useDayViewStyles.d.ts.map +0 -1
  532. package/dist/components/calendarControl/hooks/useUtils.d.ts.map +0 -1
  533. package/dist/components/calendarControl/hooks/useWeekViewStyles.d.ts.map +0 -1
  534. package/dist/components/calendarControl/index.d.ts.map +0 -1
  535. package/dist/components/calendarControl/models/ECalendarViews.d.ts.map +0 -1
  536. package/dist/components/calendarControl/models/IAttendee.d.ts.map +0 -1
  537. package/dist/components/calendarControl/models/ICalendarControlProps.d.ts.map +0 -1
  538. package/dist/components/calendarControl/models/ICalendarDay.d.ts.map +0 -1
  539. package/dist/components/calendarControl/models/IEventColors.d.ts.map +0 -1
  540. package/dist/components/calendarControl/models/IEvents.d.ts.map +0 -1
  541. package/dist/components/calendarControl/models/IStrings.d.ts.map +0 -1
  542. package/dist/components/calendarControl/models/index.d.ts.map +0 -1
  543. package/dist/components/customControlBar/CustomControlBar.d.ts.map +0 -1
  544. package/dist/components/customControlBar/index.d.ts.map +0 -1
  545. package/dist/components/dataGrid/DataGrid.d.ts.map +0 -1
  546. package/dist/components/dataGrid/IColumnConfig.d.ts.map +0 -1
  547. package/dist/components/dataGrid/IDataGridProps.d.ts.map +0 -1
  548. package/dist/components/dataGrid/ISortState.d.ts.map +0 -1
  549. package/dist/components/dataGrid/index.d.ts.map +0 -1
  550. package/dist/components/dataGrid/stack/IStackProps.d.ts.map +0 -1
  551. package/dist/components/dataGrid/stack/Stack.d.ts.map +0 -1
  552. package/dist/components/dataGrid/useDataGridStyles.d.ts.map +0 -1
  553. package/dist/components/dropDownField/DropDownField.d.ts.map +0 -1
  554. package/dist/components/dropDownField/IDropDownFieldProps.d.ts.map +0 -1
  555. package/dist/components/dropDownField/IOption.d.ts.map +0 -1
  556. package/dist/components/dropDownField/index.d.ts.map +0 -1
  557. package/dist/components/genericOverFlowMenu/GenericOverFlowMenu.d.ts.map +0 -1
  558. package/dist/components/genericOverFlowMenu/index.d.ts.map +0 -1
  559. package/dist/components/genericOverFlowMenu/useOverflowMenuStyles.d.ts.map +0 -1
  560. package/dist/components/iconButton/IconButton.d.ts.map +0 -1
  561. package/dist/components/iconButton/IconButtonProps.d.ts.map +0 -1
  562. package/dist/components/iconButton/index.d.ts.map +0 -1
  563. package/dist/components/index.d.ts.map +0 -1
  564. package/dist/components/mensions/IMensionsProps.d.ts.map +0 -1
  565. package/dist/components/mensions/Mensions.d.ts.map +0 -1
  566. package/dist/components/mensions/MensionsExample.d.ts.map +0 -1
  567. package/dist/components/mensions/index.d.ts.map +0 -1
  568. package/dist/components/mensions/useMensionsStyles.d.ts.map +0 -1
  569. package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts.map +0 -1
  570. package/dist/components/renderAdaptiveCard/index.d.ts.map +0 -1
  571. package/dist/components/renderDialog/RenderDialog.d.ts.map +0 -1
  572. package/dist/components/renderDialog/index.d.ts.map +0 -1
  573. package/dist/components/renderDrawer/RenderDrawer.d.ts.map +0 -1
  574. package/dist/components/renderDrawer/index.d.ts.map +0 -1
  575. package/dist/components/renderHeader/IRenderHeaderProps.d.ts.map +0 -1
  576. package/dist/components/renderHeader/RenderHeader.d.ts.map +0 -1
  577. package/dist/components/renderHeader/index.d.ts.map +0 -1
  578. package/dist/components/renderHeader/useRenderHeaderStyles.d.ts.map +0 -1
  579. package/dist/components/selectDay/SelectDay.d.ts.map +0 -1
  580. package/dist/components/selectDay/index.d.ts.map +0 -1
  581. package/dist/components/selectMonth/CalendarMonth.d.ts.map +0 -1
  582. package/dist/components/selectMonth/SelectMonth.d.ts.map +0 -1
  583. package/dist/components/selectMonth/index.d.ts.map +0 -1
  584. package/dist/components/selectView/SelectView.d.ts.map +0 -1
  585. package/dist/components/selectView/index.d.ts.map +0 -1
  586. package/dist/components/selectWeek/SelectWeek.d.ts.map +0 -1
  587. package/dist/components/selectWeek/index.d.ts.map +0 -1
  588. package/dist/components/shareDialog/ShareDialog.d.ts.map +0 -1
  589. package/dist/components/shareDialog/index.d.ts.map +0 -1
  590. package/dist/components/showError/IErrorDisplayProps.d.ts.map +0 -1
  591. package/dist/components/showError/ShowError.d.ts.map +0 -1
  592. package/dist/components/showError/index.d.ts.map +0 -1
  593. package/dist/components/showError/useShowErrorStyles.d.ts.map +0 -1
  594. package/dist/components/showMessage/IShowMessage.d.ts.map +0 -1
  595. package/dist/components/showMessage/ShowMessage.d.ts.map +0 -1
  596. package/dist/components/showMessage/index.d.ts.map +0 -1
  597. package/dist/components/showMessage/useShowMessageStyles.d.ts.map +0 -1
  598. package/dist/components/stackv2/IStackV2Props.d.ts.map +0 -1
  599. package/dist/components/stackv2/StackV2.d.ts.map +0 -1
  600. package/dist/components/stackv2/index.d.ts.map +0 -1
  601. package/dist/components/svgImages/BusinessReportIcon.d.ts.map +0 -1
  602. package/dist/components/typographyControl/ITypographyControlProps.d.ts.map +0 -1
  603. package/dist/components/typographyControl/TypographyControl.d.ts.map +0 -1
  604. package/dist/components/typographyControl/index.d.ts.map +0 -1
  605. package/dist/components/userCard/IUserCardProps.d.ts.map +0 -1
  606. package/dist/components/userCard/IUserInfo.d.ts.map +0 -1
  607. package/dist/components/userCard/UserCard.d.ts.map +0 -1
  608. package/dist/components/userCard/constants.d.ts.map +0 -1
  609. package/dist/components/userCard/index.d.ts.map +0 -1
  610. package/dist/components/userCard/useUserCardStyles.d.ts.map +0 -1
  611. package/dist/components/userCard/useUserProfile.d.ts.map +0 -1
  612. package/dist/components/videoPlayer/VideoPlayer.d.ts.map +0 -1
  613. package/dist/components/videoPlayer/index.d.ts.map +0 -1
  614. package/dist/components/videoPlayer/useVideoStyles.d.ts.map +0 -1
  615. package/dist/components/worldMap/IWorldMapProps.d.ts.map +0 -1
  616. package/dist/components/worldMap/MapNavigation.d.ts.map +0 -1
  617. package/dist/components/worldMap/MaplibreWorldMapProps.d.ts.map +0 -1
  618. package/dist/components/worldMap/TooltipContent.d.ts.map +0 -1
  619. package/dist/components/worldMap/WorldMap.d.ts.map +0 -1
  620. package/dist/components/worldMap/WorldMapControl.d.ts.map +0 -1
  621. package/dist/components/worldMap/data.d.ts.map +0 -1
  622. package/dist/components/worldMap/index.d.ts.map +0 -1
  623. package/dist/components/worldMap/marker.d.ts.map +0 -1
  624. package/dist/components/worldMap/useCleanMapStyle.d.ts.map +0 -1
  625. package/dist/components/worldMap/useContentToolTipStyles.d.ts.map +0 -1
  626. package/dist/components/worldMap/useGeocodedCountries.d.ts.map +0 -1
  627. package/dist/constants/EBreakPoints.d.ts.map +0 -1
  628. package/dist/constants/EMessageTypes.d.ts.map +0 -1
  629. package/dist/constants/index.d.ts.map +0 -1
  630. package/dist/hooks/index.d.ts.map +0 -1
  631. package/dist/hooks/useAIAssistant.d.ts.map +0 -1
  632. package/dist/hooks/useAIAssistantParser.d.ts.map +0 -1
  633. package/dist/hooks/useGraphAPI.d.ts.map +0 -1
  634. package/dist/hooks/useIndexedDB.d.ts.map +0 -1
  635. package/dist/hooks/useLogging.d.ts.map +0 -1
  636. package/dist/hooks/usePolling.d.ts.map +0 -1
  637. package/dist/hooks/useTimeZone.d.ts.map +0 -1
  638. package/dist/hooks/useTimeZoneHelper.d.ts.map +0 -1
  639. package/dist/index.d.ts.map +0 -1
  640. package/dist/index.js.map +0 -1
  641. package/dist/index.mjs +0 -27983
  642. package/dist/index.mjs.map +0 -1
  643. package/dist/models/IAppCardContainer.d.ts.map +0 -1
  644. package/dist/models/index.d.ts.map +0 -1
  645. package/dist/providers.js.map +0 -1
  646. package/dist/providers.mjs +0 -250
  647. package/dist/providers.mjs.map +0 -1
  648. package/dist/types/TBaseSpacing.d.ts.map +0 -1
  649. package/dist/types/THorizontalSpacing.d.ts.map +0 -1
  650. package/dist/types/THorizontalSpacingBreakPoints.d.ts.map +0 -1
  651. package/dist/types/TLayoutBreakPoints.d.ts.map +0 -1
  652. package/dist/types/TPaddingBreakPoints.d.ts.map +0 -1
  653. package/dist/types/TPading.d.ts.map +0 -1
  654. package/dist/types/TVerticalSpacing.d.ts.map +0 -1
  655. package/dist/types/TVerticalSpacingBreakPoints.d.ts.map +0 -1
  656. package/dist/types/index.d.ts.map +0 -1
  657. package/dist/utils/contentDetector.d.ts.map +0 -1
  658. package/dist/utils/index.d.ts.map +0 -1
  659. package/dist/utils/lodash.d.ts.map +0 -1
  660. package/dist/utils/useComponentsUtils.d.ts.map +0 -1
  661. package/dist/utils/useDateUtils.d.ts.map +0 -1
  662. package/dist/utils/useImageUtils.d.ts.map +0 -1
@@ -0,0 +1,1928 @@
1
+ var _a;
2
+ import { g as getDiagramElement } from "./chunk-55IACEB6-__yJgpDO.js";
3
+ import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DA_6jplh.js";
4
+ import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as setDiagramTitle, t as getDiagramTitle, ab as generateId, k as common_default, z as clear } from "./index-CP55uT1-.js";
5
+ var parser = function() {
6
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
7
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
8
+ return o2;
9
+ }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 16], $V7 = [1, 17], $V8 = [1, 18], $V9 = [1, 19], $Va = [1, 33], $Vb = [1, 20], $Vc = [1, 21], $Vd = [1, 22], $Ve = [1, 23], $Vf = [1, 24], $Vg = [1, 26], $Vh = [1, 27], $Vi = [1, 28], $Vj = [1, 29], $Vk = [1, 30], $Vl = [1, 31], $Vm = [1, 32], $Vn = [1, 35], $Vo = [1, 36], $Vp = [1, 37], $Vq = [1, 38], $Vr = [1, 34], $Vs = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], $Vt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $Vu = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57];
10
+ var parser2 = {
11
+ trace: /* @__PURE__ */ __name(function trace() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { "error": 2, "start": 3, "SPACE": 4, "NL": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "classDefStatement": 10, "styleStatement": 11, "cssClassStatement": 12, "idStatement": 13, "DESCR": 14, "-->": 15, "HIDE_EMPTY": 16, "scale": 17, "WIDTH": 18, "COMPOSIT_STATE": 19, "STRUCT_START": 20, "STRUCT_STOP": 21, "STATE_DESCR": 22, "AS": 23, "ID": 24, "FORK": 25, "JOIN": 26, "CHOICE": 27, "CONCURRENT": 28, "note": 29, "notePosition": 30, "NOTE_TEXT": 31, "direction": 32, "acc_title": 33, "acc_title_value": 34, "acc_descr": 35, "acc_descr_value": 36, "acc_descr_multiline_value": 37, "CLICK": 38, "STRING": 39, "HREF": 40, "classDef": 41, "CLASSDEF_ID": 42, "CLASSDEF_STYLEOPTS": 43, "DEFAULT": 44, "style": 45, "STYLE_IDS": 46, "STYLEDEF_STYLEOPTS": 47, "class": 48, "CLASSENTITY_IDS": 49, "STYLECLASS": 50, "direction_tb": 51, "direction_bt": 52, "direction_rl": 53, "direction_lr": 54, "eol": 55, ";": 56, "EDGE_STATE": 57, "STYLE_SEPARATOR": 58, "left_of": 59, "right_of": 60, "$accept": 0, "$end": 1 },
15
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
16
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
17
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
18
+ var $0 = $$.length - 1;
19
+ switch (yystate) {
20
+ case 3:
21
+ yy.setRootDoc($$[$0]);
22
+ return $$[$0];
23
+ case 4:
24
+ this.$ = [];
25
+ break;
26
+ case 5:
27
+ if ($$[$0] != "nl") {
28
+ $$[$0 - 1].push($$[$0]);
29
+ this.$ = $$[$0 - 1];
30
+ }
31
+ break;
32
+ case 6:
33
+ case 7:
34
+ this.$ = $$[$0];
35
+ break;
36
+ case 8:
37
+ this.$ = "nl";
38
+ break;
39
+ case 12:
40
+ this.$ = $$[$0];
41
+ break;
42
+ case 13:
43
+ const stateStmt = $$[$0 - 1];
44
+ stateStmt.description = yy.trimColon($$[$0]);
45
+ this.$ = stateStmt;
46
+ break;
47
+ case 14:
48
+ this.$ = { stmt: "relation", state1: $$[$0 - 2], state2: $$[$0] };
49
+ break;
50
+ case 15:
51
+ const relDescription = yy.trimColon($$[$0]);
52
+ this.$ = { stmt: "relation", state1: $$[$0 - 3], state2: $$[$0 - 1], description: relDescription };
53
+ break;
54
+ case 19:
55
+ this.$ = { stmt: "state", id: $$[$0 - 3], type: "default", description: "", doc: $$[$0 - 1] };
56
+ break;
57
+ case 20:
58
+ var id = $$[$0];
59
+ var description = $$[$0 - 2].trim();
60
+ if ($$[$0].match(":")) {
61
+ var parts = $$[$0].split(":");
62
+ id = parts[0];
63
+ description = [description, parts[1]];
64
+ }
65
+ this.$ = { stmt: "state", id, type: "default", description };
66
+ break;
67
+ case 21:
68
+ this.$ = { stmt: "state", id: $$[$0 - 3], type: "default", description: $$[$0 - 5], doc: $$[$0 - 1] };
69
+ break;
70
+ case 22:
71
+ this.$ = { stmt: "state", id: $$[$0], type: "fork" };
72
+ break;
73
+ case 23:
74
+ this.$ = { stmt: "state", id: $$[$0], type: "join" };
75
+ break;
76
+ case 24:
77
+ this.$ = { stmt: "state", id: $$[$0], type: "choice" };
78
+ break;
79
+ case 25:
80
+ this.$ = { stmt: "state", id: yy.getDividerId(), type: "divider" };
81
+ break;
82
+ case 26:
83
+ this.$ = { stmt: "state", id: $$[$0 - 1].trim(), note: { position: $$[$0 - 2].trim(), text: $$[$0].trim() } };
84
+ break;
85
+ case 29:
86
+ this.$ = $$[$0].trim();
87
+ yy.setAccTitle(this.$);
88
+ break;
89
+ case 30:
90
+ case 31:
91
+ this.$ = $$[$0].trim();
92
+ yy.setAccDescription(this.$);
93
+ break;
94
+ case 32:
95
+ this.$ = {
96
+ stmt: "click",
97
+ id: $$[$0 - 3],
98
+ url: $$[$0 - 2],
99
+ tooltip: $$[$0 - 1]
100
+ };
101
+ break;
102
+ case 33:
103
+ this.$ = {
104
+ stmt: "click",
105
+ id: $$[$0 - 3],
106
+ url: $$[$0 - 1],
107
+ tooltip: ""
108
+ };
109
+ break;
110
+ case 34:
111
+ case 35:
112
+ this.$ = { stmt: "classDef", id: $$[$0 - 1].trim(), classes: $$[$0].trim() };
113
+ break;
114
+ case 36:
115
+ this.$ = { stmt: "style", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
116
+ break;
117
+ case 37:
118
+ this.$ = { stmt: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
119
+ break;
120
+ case 38:
121
+ yy.setDirection("TB");
122
+ this.$ = { stmt: "dir", value: "TB" };
123
+ break;
124
+ case 39:
125
+ yy.setDirection("BT");
126
+ this.$ = { stmt: "dir", value: "BT" };
127
+ break;
128
+ case 40:
129
+ yy.setDirection("RL");
130
+ this.$ = { stmt: "dir", value: "RL" };
131
+ break;
132
+ case 41:
133
+ yy.setDirection("LR");
134
+ this.$ = { stmt: "dir", value: "LR" };
135
+ break;
136
+ case 44:
137
+ case 45:
138
+ this.$ = { stmt: "state", id: $$[$0].trim(), type: "default", description: "" };
139
+ break;
140
+ case 46:
141
+ this.$ = { stmt: "state", id: $$[$0 - 2].trim(), classes: [$$[$0].trim()], type: "default", description: "" };
142
+ break;
143
+ case 47:
144
+ this.$ = { stmt: "state", id: $$[$0 - 2].trim(), classes: [$$[$0].trim()], type: "default", description: "" };
145
+ break;
146
+ }
147
+ }, "anonymous"),
148
+ table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 7]), o($Vs, [2, 8]), o($Vs, [2, 9]), o($Vs, [2, 10]), o($Vs, [2, 11]), o($Vs, [2, 12], { 14: [1, 40], 15: [1, 41] }), o($Vs, [2, 16]), { 18: [1, 42] }, o($Vs, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, o($Vs, [2, 22]), o($Vs, [2, 23]), o($Vs, [2, 24]), o($Vs, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, o($Vs, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, o($Vs, [2, 31]), { 13: 51, 24: $Va, 57: $Vr }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, o($Vt, [2, 44], { 58: [1, 56] }), o($Vt, [2, 45], { 58: [1, 57] }), o($Vs, [2, 38]), o($Vs, [2, 39]), o($Vs, [2, 40]), o($Vs, [2, 41]), o($Vs, [2, 6]), o($Vs, [2, 13]), { 13: 58, 24: $Va, 57: $Vr }, o($Vs, [2, 17]), o($Vu, $V3, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, o($Vs, [2, 29]), o($Vs, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, o($Vs, [2, 14], { 14: [1, 71] }), { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 21: [1, 72], 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, o($Vs, [2, 34]), o($Vs, [2, 35]), o($Vs, [2, 36]), o($Vs, [2, 37]), o($Vt, [2, 46]), o($Vt, [2, 47]), o($Vs, [2, 15]), o($Vs, [2, 19]), o($Vu, $V3, { 7: 78 }), o($Vs, [2, 26]), o($Vs, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 21: [1, 81], 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 32]), o($Vs, [2, 33]), o($Vs, [2, 21])],
149
+ defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
150
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
151
+ if (hash.recoverable) {
152
+ this.trace(str);
153
+ } else {
154
+ var error = new Error(str);
155
+ error.hash = hash;
156
+ throw error;
157
+ }
158
+ }, "parseError"),
159
+ parse: /* @__PURE__ */ __name(function parse(input) {
160
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
161
+ var args = lstack.slice.call(arguments, 1);
162
+ var lexer2 = Object.create(this.lexer);
163
+ var sharedState = { yy: {} };
164
+ for (var k in this.yy) {
165
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
166
+ sharedState.yy[k] = this.yy[k];
167
+ }
168
+ }
169
+ lexer2.setInput(input, sharedState.yy);
170
+ sharedState.yy.lexer = lexer2;
171
+ sharedState.yy.parser = this;
172
+ if (typeof lexer2.yylloc == "undefined") {
173
+ lexer2.yylloc = {};
174
+ }
175
+ var yyloc = lexer2.yylloc;
176
+ lstack.push(yyloc);
177
+ var ranges = lexer2.options && lexer2.options.ranges;
178
+ if (typeof sharedState.yy.parseError === "function") {
179
+ this.parseError = sharedState.yy.parseError;
180
+ } else {
181
+ this.parseError = Object.getPrototypeOf(this).parseError;
182
+ }
183
+ function popStack(n) {
184
+ stack.length = stack.length - 2 * n;
185
+ vstack.length = vstack.length - n;
186
+ lstack.length = lstack.length - n;
187
+ }
188
+ __name(popStack, "popStack");
189
+ function lex() {
190
+ var token;
191
+ token = tstack.pop() || lexer2.lex() || EOF;
192
+ if (typeof token !== "number") {
193
+ if (token instanceof Array) {
194
+ tstack = token;
195
+ token = tstack.pop();
196
+ }
197
+ token = self.symbols_[token] || token;
198
+ }
199
+ return token;
200
+ }
201
+ __name(lex, "lex");
202
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
203
+ while (true) {
204
+ state = stack[stack.length - 1];
205
+ if (this.defaultActions[state]) {
206
+ action = this.defaultActions[state];
207
+ } else {
208
+ if (symbol === null || typeof symbol == "undefined") {
209
+ symbol = lex();
210
+ }
211
+ action = table[state] && table[state][symbol];
212
+ }
213
+ if (typeof action === "undefined" || !action.length || !action[0]) {
214
+ var errStr = "";
215
+ expected = [];
216
+ for (p in table[state]) {
217
+ if (this.terminals_[p] && p > TERROR) {
218
+ expected.push("'" + this.terminals_[p] + "'");
219
+ }
220
+ }
221
+ if (lexer2.showPosition) {
222
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
223
+ } else {
224
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
225
+ }
226
+ this.parseError(errStr, {
227
+ text: lexer2.match,
228
+ token: this.terminals_[symbol] || symbol,
229
+ line: lexer2.yylineno,
230
+ loc: yyloc,
231
+ expected
232
+ });
233
+ }
234
+ if (action[0] instanceof Array && action.length > 1) {
235
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
236
+ }
237
+ switch (action[0]) {
238
+ case 1:
239
+ stack.push(symbol);
240
+ vstack.push(lexer2.yytext);
241
+ lstack.push(lexer2.yylloc);
242
+ stack.push(action[1]);
243
+ symbol = null;
244
+ {
245
+ yyleng = lexer2.yyleng;
246
+ yytext = lexer2.yytext;
247
+ yylineno = lexer2.yylineno;
248
+ yyloc = lexer2.yylloc;
249
+ }
250
+ break;
251
+ case 2:
252
+ len = this.productions_[action[1]][1];
253
+ yyval.$ = vstack[vstack.length - len];
254
+ yyval._$ = {
255
+ first_line: lstack[lstack.length - (len || 1)].first_line,
256
+ last_line: lstack[lstack.length - 1].last_line,
257
+ first_column: lstack[lstack.length - (len || 1)].first_column,
258
+ last_column: lstack[lstack.length - 1].last_column
259
+ };
260
+ if (ranges) {
261
+ yyval._$.range = [
262
+ lstack[lstack.length - (len || 1)].range[0],
263
+ lstack[lstack.length - 1].range[1]
264
+ ];
265
+ }
266
+ r = this.performAction.apply(yyval, [
267
+ yytext,
268
+ yyleng,
269
+ yylineno,
270
+ sharedState.yy,
271
+ action[1],
272
+ vstack,
273
+ lstack
274
+ ].concat(args));
275
+ if (typeof r !== "undefined") {
276
+ return r;
277
+ }
278
+ if (len) {
279
+ stack = stack.slice(0, -1 * len * 2);
280
+ vstack = vstack.slice(0, -1 * len);
281
+ lstack = lstack.slice(0, -1 * len);
282
+ }
283
+ stack.push(this.productions_[action[1]][0]);
284
+ vstack.push(yyval.$);
285
+ lstack.push(yyval._$);
286
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
287
+ stack.push(newState);
288
+ break;
289
+ case 3:
290
+ return true;
291
+ }
292
+ }
293
+ return true;
294
+ }, "parse")
295
+ };
296
+ var lexer = /* @__PURE__ */ function() {
297
+ var lexer2 = {
298
+ EOF: 1,
299
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
300
+ if (this.yy.parser) {
301
+ this.yy.parser.parseError(str, hash);
302
+ } else {
303
+ throw new Error(str);
304
+ }
305
+ }, "parseError"),
306
+ // resets the lexer, sets new input
307
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
308
+ this.yy = yy || this.yy || {};
309
+ this._input = input;
310
+ this._more = this._backtrack = this.done = false;
311
+ this.yylineno = this.yyleng = 0;
312
+ this.yytext = this.matched = this.match = "";
313
+ this.conditionStack = ["INITIAL"];
314
+ this.yylloc = {
315
+ first_line: 1,
316
+ first_column: 0,
317
+ last_line: 1,
318
+ last_column: 0
319
+ };
320
+ if (this.options.ranges) {
321
+ this.yylloc.range = [0, 0];
322
+ }
323
+ this.offset = 0;
324
+ return this;
325
+ }, "setInput"),
326
+ // consumes and returns one char from the input
327
+ input: /* @__PURE__ */ __name(function() {
328
+ var ch = this._input[0];
329
+ this.yytext += ch;
330
+ this.yyleng++;
331
+ this.offset++;
332
+ this.match += ch;
333
+ this.matched += ch;
334
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
335
+ if (lines) {
336
+ this.yylineno++;
337
+ this.yylloc.last_line++;
338
+ } else {
339
+ this.yylloc.last_column++;
340
+ }
341
+ if (this.options.ranges) {
342
+ this.yylloc.range[1]++;
343
+ }
344
+ this._input = this._input.slice(1);
345
+ return ch;
346
+ }, "input"),
347
+ // unshifts one char (or a string) into the input
348
+ unput: /* @__PURE__ */ __name(function(ch) {
349
+ var len = ch.length;
350
+ var lines = ch.split(/(?:\r\n?|\n)/g);
351
+ this._input = ch + this._input;
352
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
353
+ this.offset -= len;
354
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
355
+ this.match = this.match.substr(0, this.match.length - 1);
356
+ this.matched = this.matched.substr(0, this.matched.length - 1);
357
+ if (lines.length - 1) {
358
+ this.yylineno -= lines.length - 1;
359
+ }
360
+ var r = this.yylloc.range;
361
+ this.yylloc = {
362
+ first_line: this.yylloc.first_line,
363
+ last_line: this.yylineno + 1,
364
+ first_column: this.yylloc.first_column,
365
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
366
+ };
367
+ if (this.options.ranges) {
368
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
369
+ }
370
+ this.yyleng = this.yytext.length;
371
+ return this;
372
+ }, "unput"),
373
+ // When called from action, caches matched text and appends it on next action
374
+ more: /* @__PURE__ */ __name(function() {
375
+ this._more = true;
376
+ return this;
377
+ }, "more"),
378
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
379
+ reject: /* @__PURE__ */ __name(function() {
380
+ if (this.options.backtrack_lexer) {
381
+ this._backtrack = true;
382
+ } else {
383
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
384
+ text: "",
385
+ token: null,
386
+ line: this.yylineno
387
+ });
388
+ }
389
+ return this;
390
+ }, "reject"),
391
+ // retain first n characters of the match
392
+ less: /* @__PURE__ */ __name(function(n) {
393
+ this.unput(this.match.slice(n));
394
+ }, "less"),
395
+ // displays already matched input, i.e. for error messages
396
+ pastInput: /* @__PURE__ */ __name(function() {
397
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
398
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
399
+ }, "pastInput"),
400
+ // displays upcoming input, i.e. for error messages
401
+ upcomingInput: /* @__PURE__ */ __name(function() {
402
+ var next = this.match;
403
+ if (next.length < 20) {
404
+ next += this._input.substr(0, 20 - next.length);
405
+ }
406
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
407
+ }, "upcomingInput"),
408
+ // displays the character position where the lexing error occurred, i.e. for error messages
409
+ showPosition: /* @__PURE__ */ __name(function() {
410
+ var pre = this.pastInput();
411
+ var c = new Array(pre.length + 1).join("-");
412
+ return pre + this.upcomingInput() + "\n" + c + "^";
413
+ }, "showPosition"),
414
+ // test the lexed token: return FALSE when not a match, otherwise return token
415
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
416
+ var token, lines, backup;
417
+ if (this.options.backtrack_lexer) {
418
+ backup = {
419
+ yylineno: this.yylineno,
420
+ yylloc: {
421
+ first_line: this.yylloc.first_line,
422
+ last_line: this.last_line,
423
+ first_column: this.yylloc.first_column,
424
+ last_column: this.yylloc.last_column
425
+ },
426
+ yytext: this.yytext,
427
+ match: this.match,
428
+ matches: this.matches,
429
+ matched: this.matched,
430
+ yyleng: this.yyleng,
431
+ offset: this.offset,
432
+ _more: this._more,
433
+ _input: this._input,
434
+ yy: this.yy,
435
+ conditionStack: this.conditionStack.slice(0),
436
+ done: this.done
437
+ };
438
+ if (this.options.ranges) {
439
+ backup.yylloc.range = this.yylloc.range.slice(0);
440
+ }
441
+ }
442
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
443
+ if (lines) {
444
+ this.yylineno += lines.length;
445
+ }
446
+ this.yylloc = {
447
+ first_line: this.yylloc.last_line,
448
+ last_line: this.yylineno + 1,
449
+ first_column: this.yylloc.last_column,
450
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
451
+ };
452
+ this.yytext += match[0];
453
+ this.match += match[0];
454
+ this.matches = match;
455
+ this.yyleng = this.yytext.length;
456
+ if (this.options.ranges) {
457
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
458
+ }
459
+ this._more = false;
460
+ this._backtrack = false;
461
+ this._input = this._input.slice(match[0].length);
462
+ this.matched += match[0];
463
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
464
+ if (this.done && this._input) {
465
+ this.done = false;
466
+ }
467
+ if (token) {
468
+ return token;
469
+ } else if (this._backtrack) {
470
+ for (var k in backup) {
471
+ this[k] = backup[k];
472
+ }
473
+ return false;
474
+ }
475
+ return false;
476
+ }, "test_match"),
477
+ // return next match in input
478
+ next: /* @__PURE__ */ __name(function() {
479
+ if (this.done) {
480
+ return this.EOF;
481
+ }
482
+ if (!this._input) {
483
+ this.done = true;
484
+ }
485
+ var token, match, tempMatch, index;
486
+ if (!this._more) {
487
+ this.yytext = "";
488
+ this.match = "";
489
+ }
490
+ var rules = this._currentRules();
491
+ for (var i = 0; i < rules.length; i++) {
492
+ tempMatch = this._input.match(this.rules[rules[i]]);
493
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
494
+ match = tempMatch;
495
+ index = i;
496
+ if (this.options.backtrack_lexer) {
497
+ token = this.test_match(tempMatch, rules[i]);
498
+ if (token !== false) {
499
+ return token;
500
+ } else if (this._backtrack) {
501
+ match = false;
502
+ continue;
503
+ } else {
504
+ return false;
505
+ }
506
+ } else if (!this.options.flex) {
507
+ break;
508
+ }
509
+ }
510
+ }
511
+ if (match) {
512
+ token = this.test_match(match, rules[index]);
513
+ if (token !== false) {
514
+ return token;
515
+ }
516
+ return false;
517
+ }
518
+ if (this._input === "") {
519
+ return this.EOF;
520
+ } else {
521
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
522
+ text: "",
523
+ token: null,
524
+ line: this.yylineno
525
+ });
526
+ }
527
+ }, "next"),
528
+ // return next match that has a token
529
+ lex: /* @__PURE__ */ __name(function lex() {
530
+ var r = this.next();
531
+ if (r) {
532
+ return r;
533
+ } else {
534
+ return this.lex();
535
+ }
536
+ }, "lex"),
537
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
538
+ begin: /* @__PURE__ */ __name(function begin(condition) {
539
+ this.conditionStack.push(condition);
540
+ }, "begin"),
541
+ // pop the previously active lexer condition state off the condition stack
542
+ popState: /* @__PURE__ */ __name(function popState() {
543
+ var n = this.conditionStack.length - 1;
544
+ if (n > 0) {
545
+ return this.conditionStack.pop();
546
+ } else {
547
+ return this.conditionStack[0];
548
+ }
549
+ }, "popState"),
550
+ // produce the lexer rule set which is active for the currently active lexer condition state
551
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
552
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
553
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
554
+ } else {
555
+ return this.conditions["INITIAL"].rules;
556
+ }
557
+ }, "_currentRules"),
558
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
559
+ topState: /* @__PURE__ */ __name(function topState(n) {
560
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
561
+ if (n >= 0) {
562
+ return this.conditionStack[n];
563
+ } else {
564
+ return "INITIAL";
565
+ }
566
+ }, "topState"),
567
+ // alias for begin(condition)
568
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
569
+ this.begin(condition);
570
+ }, "pushState"),
571
+ // return the number of states currently on the stack
572
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
573
+ return this.conditionStack.length;
574
+ }, "stateStackSize"),
575
+ options: { "case-insensitive": true },
576
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
577
+ switch ($avoiding_name_collisions) {
578
+ case 0:
579
+ return 38;
580
+ case 1:
581
+ return 40;
582
+ case 2:
583
+ return 39;
584
+ case 3:
585
+ return 44;
586
+ case 4:
587
+ return 51;
588
+ case 5:
589
+ return 52;
590
+ case 6:
591
+ return 53;
592
+ case 7:
593
+ return 54;
594
+ case 8:
595
+ break;
596
+ case 9:
597
+ break;
598
+ case 10:
599
+ return 5;
600
+ case 11:
601
+ break;
602
+ case 12:
603
+ break;
604
+ case 13:
605
+ break;
606
+ case 14:
607
+ break;
608
+ case 15:
609
+ this.pushState("SCALE");
610
+ return 17;
611
+ case 16:
612
+ return 18;
613
+ case 17:
614
+ this.popState();
615
+ break;
616
+ case 18:
617
+ this.begin("acc_title");
618
+ return 33;
619
+ case 19:
620
+ this.popState();
621
+ return "acc_title_value";
622
+ case 20:
623
+ this.begin("acc_descr");
624
+ return 35;
625
+ case 21:
626
+ this.popState();
627
+ return "acc_descr_value";
628
+ case 22:
629
+ this.begin("acc_descr_multiline");
630
+ break;
631
+ case 23:
632
+ this.popState();
633
+ break;
634
+ case 24:
635
+ return "acc_descr_multiline_value";
636
+ case 25:
637
+ this.pushState("CLASSDEF");
638
+ return 41;
639
+ case 26:
640
+ this.popState();
641
+ this.pushState("CLASSDEFID");
642
+ return "DEFAULT_CLASSDEF_ID";
643
+ case 27:
644
+ this.popState();
645
+ this.pushState("CLASSDEFID");
646
+ return 42;
647
+ case 28:
648
+ this.popState();
649
+ return 43;
650
+ case 29:
651
+ this.pushState("CLASS");
652
+ return 48;
653
+ case 30:
654
+ this.popState();
655
+ this.pushState("CLASS_STYLE");
656
+ return 49;
657
+ case 31:
658
+ this.popState();
659
+ return 50;
660
+ case 32:
661
+ this.pushState("STYLE");
662
+ return 45;
663
+ case 33:
664
+ this.popState();
665
+ this.pushState("STYLEDEF_STYLES");
666
+ return 46;
667
+ case 34:
668
+ this.popState();
669
+ return 47;
670
+ case 35:
671
+ this.pushState("SCALE");
672
+ return 17;
673
+ case 36:
674
+ return 18;
675
+ case 37:
676
+ this.popState();
677
+ break;
678
+ case 38:
679
+ this.pushState("STATE");
680
+ break;
681
+ case 39:
682
+ this.popState();
683
+ yy_.yytext = yy_.yytext.slice(0, -8).trim();
684
+ return 25;
685
+ case 40:
686
+ this.popState();
687
+ yy_.yytext = yy_.yytext.slice(0, -8).trim();
688
+ return 26;
689
+ case 41:
690
+ this.popState();
691
+ yy_.yytext = yy_.yytext.slice(0, -10).trim();
692
+ return 27;
693
+ case 42:
694
+ this.popState();
695
+ yy_.yytext = yy_.yytext.slice(0, -8).trim();
696
+ return 25;
697
+ case 43:
698
+ this.popState();
699
+ yy_.yytext = yy_.yytext.slice(0, -8).trim();
700
+ return 26;
701
+ case 44:
702
+ this.popState();
703
+ yy_.yytext = yy_.yytext.slice(0, -10).trim();
704
+ return 27;
705
+ case 45:
706
+ return 51;
707
+ case 46:
708
+ return 52;
709
+ case 47:
710
+ return 53;
711
+ case 48:
712
+ return 54;
713
+ case 49:
714
+ this.pushState("STATE_STRING");
715
+ break;
716
+ case 50:
717
+ this.pushState("STATE_ID");
718
+ return "AS";
719
+ case 51:
720
+ this.popState();
721
+ return "ID";
722
+ case 52:
723
+ this.popState();
724
+ break;
725
+ case 53:
726
+ return "STATE_DESCR";
727
+ case 54:
728
+ return 19;
729
+ case 55:
730
+ this.popState();
731
+ break;
732
+ case 56:
733
+ this.popState();
734
+ this.pushState("struct");
735
+ return 20;
736
+ case 57:
737
+ break;
738
+ case 58:
739
+ this.popState();
740
+ return 21;
741
+ case 59:
742
+ break;
743
+ case 60:
744
+ this.begin("NOTE");
745
+ return 29;
746
+ case 61:
747
+ this.popState();
748
+ this.pushState("NOTE_ID");
749
+ return 59;
750
+ case 62:
751
+ this.popState();
752
+ this.pushState("NOTE_ID");
753
+ return 60;
754
+ case 63:
755
+ this.popState();
756
+ this.pushState("FLOATING_NOTE");
757
+ break;
758
+ case 64:
759
+ this.popState();
760
+ this.pushState("FLOATING_NOTE_ID");
761
+ return "AS";
762
+ case 65:
763
+ break;
764
+ case 66:
765
+ return "NOTE_TEXT";
766
+ case 67:
767
+ this.popState();
768
+ return "ID";
769
+ case 68:
770
+ this.popState();
771
+ this.pushState("NOTE_TEXT");
772
+ return 24;
773
+ case 69:
774
+ this.popState();
775
+ yy_.yytext = yy_.yytext.substr(2).trim();
776
+ return 31;
777
+ case 70:
778
+ this.popState();
779
+ yy_.yytext = yy_.yytext.slice(0, -8).trim();
780
+ return 31;
781
+ case 71:
782
+ return 6;
783
+ case 72:
784
+ return 6;
785
+ case 73:
786
+ return 16;
787
+ case 74:
788
+ return 57;
789
+ case 75:
790
+ return 24;
791
+ case 76:
792
+ yy_.yytext = yy_.yytext.trim();
793
+ return 14;
794
+ case 77:
795
+ return 15;
796
+ case 78:
797
+ return 28;
798
+ case 79:
799
+ return 58;
800
+ case 80:
801
+ return 5;
802
+ case 81:
803
+ return "INVALID";
804
+ }
805
+ }, "anonymous"),
806
+ rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
807
+ conditions: { "LINE": { "rules": [12, 13], "inclusive": false }, "struct": { "rules": [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78], "inclusive": false }, "FLOATING_NOTE_ID": { "rules": [67], "inclusive": false }, "FLOATING_NOTE": { "rules": [64, 65, 66], "inclusive": false }, "NOTE_TEXT": { "rules": [69, 70], "inclusive": false }, "NOTE_ID": { "rules": [68], "inclusive": false }, "NOTE": { "rules": [61, 62, 63], "inclusive": false }, "STYLEDEF_STYLEOPTS": { "rules": [], "inclusive": false }, "STYLEDEF_STYLES": { "rules": [34], "inclusive": false }, "STYLE_IDS": { "rules": [], "inclusive": false }, "STYLE": { "rules": [33], "inclusive": false }, "CLASS_STYLE": { "rules": [31], "inclusive": false }, "CLASS": { "rules": [30], "inclusive": false }, "CLASSDEFID": { "rules": [28], "inclusive": false }, "CLASSDEF": { "rules": [26, 27], "inclusive": false }, "acc_descr_multiline": { "rules": [23, 24], "inclusive": false }, "acc_descr": { "rules": [21], "inclusive": false }, "acc_title": { "rules": [19], "inclusive": false }, "SCALE": { "rules": [16, 17, 36, 37], "inclusive": false }, "ALIAS": { "rules": [], "inclusive": false }, "STATE_ID": { "rules": [51], "inclusive": false }, "STATE_STRING": { "rules": [52, 53], "inclusive": false }, "FORK_STATE": { "rules": [], "inclusive": false }, "STATE": { "rules": [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], "inclusive": false }, "ID": { "rules": [12, 13], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], "inclusive": true } }
808
+ };
809
+ return lexer2;
810
+ }();
811
+ parser2.lexer = lexer;
812
+ function Parser() {
813
+ this.yy = {};
814
+ }
815
+ __name(Parser, "Parser");
816
+ Parser.prototype = parser2;
817
+ parser2.Parser = Parser;
818
+ return new Parser();
819
+ }();
820
+ parser.parser = parser;
821
+ var stateDiagram_default = parser;
822
+ var DEFAULT_DIAGRAM_DIRECTION = "TB";
823
+ var DEFAULT_NESTED_DOC_DIR = "TB";
824
+ var STMT_DIRECTION = "dir";
825
+ var STMT_STATE = "state";
826
+ var STMT_ROOT = "root";
827
+ var STMT_RELATION = "relation";
828
+ var STMT_CLASSDEF = "classDef";
829
+ var STMT_STYLEDEF = "style";
830
+ var STMT_APPLYCLASS = "applyClass";
831
+ var DEFAULT_STATE_TYPE = "default";
832
+ var DIVIDER_TYPE = "divider";
833
+ var G_EDGE_STYLE = "fill:none";
834
+ var G_EDGE_ARROWHEADSTYLE = "fill: #333";
835
+ var G_EDGE_LABELPOS = "c";
836
+ var G_EDGE_LABELTYPE = "text";
837
+ var G_EDGE_THICKNESS = "normal";
838
+ var SHAPE_STATE = "rect";
839
+ var SHAPE_STATE_WITH_DESC = "rectWithTitle";
840
+ var SHAPE_START = "stateStart";
841
+ var SHAPE_END = "stateEnd";
842
+ var SHAPE_DIVIDER = "divider";
843
+ var SHAPE_GROUP = "roundedWithTitle";
844
+ var SHAPE_NOTE = "note";
845
+ var SHAPE_NOTEGROUP = "noteGroup";
846
+ var CSS_DIAGRAM = "statediagram";
847
+ var CSS_STATE = "state";
848
+ var CSS_DIAGRAM_STATE = `${CSS_DIAGRAM}-${CSS_STATE}`;
849
+ var CSS_EDGE = "transition";
850
+ var CSS_NOTE = "note";
851
+ var CSS_NOTE_EDGE = "note-edge";
852
+ var CSS_EDGE_NOTE_EDGE = `${CSS_EDGE} ${CSS_NOTE_EDGE}`;
853
+ var CSS_DIAGRAM_NOTE = `${CSS_DIAGRAM}-${CSS_NOTE}`;
854
+ var CSS_CLUSTER = "cluster";
855
+ var CSS_DIAGRAM_CLUSTER = `${CSS_DIAGRAM}-${CSS_CLUSTER}`;
856
+ var CSS_CLUSTER_ALT = "cluster-alt";
857
+ var CSS_DIAGRAM_CLUSTER_ALT = `${CSS_DIAGRAM}-${CSS_CLUSTER_ALT}`;
858
+ var PARENT = "parent";
859
+ var NOTE = "note";
860
+ var DOMID_STATE = "state";
861
+ var DOMID_TYPE_SPACER = "----";
862
+ var NOTE_ID = `${DOMID_TYPE_SPACER}${NOTE}`;
863
+ var PARENT_ID = `${DOMID_TYPE_SPACER}${PARENT}`;
864
+ var getDir = /* @__PURE__ */ __name((parsedItem, defaultDir = DEFAULT_NESTED_DOC_DIR) => {
865
+ if (!parsedItem.doc) {
866
+ return defaultDir;
867
+ }
868
+ let dir = defaultDir;
869
+ for (const parsedItemDoc of parsedItem.doc) {
870
+ if (parsedItemDoc.stmt === "dir") {
871
+ dir = parsedItemDoc.value;
872
+ }
873
+ }
874
+ return dir;
875
+ }, "getDir");
876
+ var getClasses = /* @__PURE__ */ __name(function(text, diagramObj) {
877
+ return diagramObj.db.getClasses();
878
+ }, "getClasses");
879
+ var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
880
+ log.info("REF0:");
881
+ log.info("Drawing state diagram (v2)", id);
882
+ const { securityLevel, state: conf, layout } = getConfig2();
883
+ diag.db.extract(diag.db.getRootDocV2());
884
+ const data4Layout = diag.db.getData();
885
+ const svg = getDiagramElement(id, securityLevel);
886
+ data4Layout.type = diag.type;
887
+ data4Layout.layoutAlgorithm = layout;
888
+ data4Layout.nodeSpacing = (conf == null ? void 0 : conf.nodeSpacing) || 50;
889
+ data4Layout.rankSpacing = (conf == null ? void 0 : conf.rankSpacing) || 50;
890
+ data4Layout.markers = ["barb"];
891
+ data4Layout.diagramId = id;
892
+ await render(data4Layout, svg);
893
+ const padding = 8;
894
+ try {
895
+ const links = typeof diag.db.getLinks === "function" ? diag.db.getLinks() : /* @__PURE__ */ new Map();
896
+ links.forEach((linkInfo, key) => {
897
+ var _a2;
898
+ const stateId = typeof key === "string" ? key : typeof (key == null ? void 0 : key.id) === "string" ? key.id : "";
899
+ if (!stateId) {
900
+ log.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(key));
901
+ return;
902
+ }
903
+ const allNodes = (_a2 = svg.node()) == null ? void 0 : _a2.querySelectorAll("g");
904
+ let matchedElem;
905
+ allNodes == null ? void 0 : allNodes.forEach((g) => {
906
+ var _a3;
907
+ const text2 = (_a3 = g.textContent) == null ? void 0 : _a3.trim();
908
+ if (text2 === stateId) {
909
+ matchedElem = g;
910
+ }
911
+ });
912
+ if (!matchedElem) {
913
+ log.warn("⚠️ Could not find node matching text:", stateId);
914
+ return;
915
+ }
916
+ const parent = matchedElem.parentNode;
917
+ if (!parent) {
918
+ log.warn("⚠️ Node has no parent, cannot wrap:", stateId);
919
+ return;
920
+ }
921
+ const a = document.createElementNS("http://www.w3.org/2000/svg", "a");
922
+ const cleanedUrl = linkInfo.url.replace(/^"+|"+$/g, "");
923
+ a.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", cleanedUrl);
924
+ a.setAttribute("target", "_blank");
925
+ if (linkInfo.tooltip) {
926
+ const tooltip = linkInfo.tooltip.replace(/^"+|"+$/g, "");
927
+ a.setAttribute("title", tooltip);
928
+ }
929
+ parent.replaceChild(a, matchedElem);
930
+ a.appendChild(matchedElem);
931
+ log.info("🔗 Wrapped node in <a> tag for:", stateId, linkInfo.url);
932
+ });
933
+ } catch (err) {
934
+ log.error("❌ Error injecting clickable links:", err);
935
+ }
936
+ utils_default.insertTitle(
937
+ svg,
938
+ "statediagramTitleText",
939
+ (conf == null ? void 0 : conf.titleTopMargin) ?? 25,
940
+ diag.db.getDiagramTitle()
941
+ );
942
+ setupViewPortForSVG(svg, padding, CSS_DIAGRAM, (conf == null ? void 0 : conf.useMaxWidth) ?? true);
943
+ }, "draw");
944
+ var stateRenderer_v3_unified_default = {
945
+ getClasses,
946
+ draw,
947
+ getDir
948
+ };
949
+ var nodeDb = /* @__PURE__ */ new Map();
950
+ var graphItemCount = 0;
951
+ function stateDomId(itemId = "", counter = 0, type = "", typeSpacer = DOMID_TYPE_SPACER) {
952
+ const typeStr = type !== null && type.length > 0 ? `${typeSpacer}${type}` : "";
953
+ return `${DOMID_STATE}-${itemId}${typeStr}-${counter}`;
954
+ }
955
+ __name(stateDomId, "stateDomId");
956
+ var setupDoc = /* @__PURE__ */ __name((parentParsedItem, doc, diagramStates, nodes, edges, altFlag, look, classes) => {
957
+ log.trace("items", doc);
958
+ doc.forEach((item) => {
959
+ switch (item.stmt) {
960
+ case STMT_STATE:
961
+ dataFetcher(parentParsedItem, item, diagramStates, nodes, edges, altFlag, look, classes);
962
+ break;
963
+ case DEFAULT_STATE_TYPE:
964
+ dataFetcher(parentParsedItem, item, diagramStates, nodes, edges, altFlag, look, classes);
965
+ break;
966
+ case STMT_RELATION:
967
+ {
968
+ dataFetcher(
969
+ parentParsedItem,
970
+ item.state1,
971
+ diagramStates,
972
+ nodes,
973
+ edges,
974
+ altFlag,
975
+ look,
976
+ classes
977
+ );
978
+ dataFetcher(
979
+ parentParsedItem,
980
+ item.state2,
981
+ diagramStates,
982
+ nodes,
983
+ edges,
984
+ altFlag,
985
+ look,
986
+ classes
987
+ );
988
+ const edgeData = {
989
+ id: "edge" + graphItemCount,
990
+ start: item.state1.id,
991
+ end: item.state2.id,
992
+ arrowhead: "normal",
993
+ arrowTypeEnd: "arrow_barb",
994
+ style: G_EDGE_STYLE,
995
+ labelStyle: "",
996
+ label: common_default.sanitizeText(item.description ?? "", getConfig2()),
997
+ arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
998
+ labelpos: G_EDGE_LABELPOS,
999
+ labelType: G_EDGE_LABELTYPE,
1000
+ thickness: G_EDGE_THICKNESS,
1001
+ classes: CSS_EDGE,
1002
+ look
1003
+ };
1004
+ edges.push(edgeData);
1005
+ graphItemCount++;
1006
+ }
1007
+ break;
1008
+ }
1009
+ });
1010
+ }, "setupDoc");
1011
+ var getDir2 = /* @__PURE__ */ __name((parsedItem, defaultDir = DEFAULT_NESTED_DOC_DIR) => {
1012
+ let dir = defaultDir;
1013
+ if (parsedItem.doc) {
1014
+ for (const parsedItemDoc of parsedItem.doc) {
1015
+ if (parsedItemDoc.stmt === "dir") {
1016
+ dir = parsedItemDoc.value;
1017
+ }
1018
+ }
1019
+ }
1020
+ return dir;
1021
+ }, "getDir");
1022
+ function insertOrUpdateNode(nodes, nodeData, classes) {
1023
+ if (!nodeData.id || nodeData.id === "</join></fork>" || nodeData.id === "</choice>") {
1024
+ return;
1025
+ }
1026
+ if (nodeData.cssClasses) {
1027
+ if (!Array.isArray(nodeData.cssCompiledStyles)) {
1028
+ nodeData.cssCompiledStyles = [];
1029
+ }
1030
+ nodeData.cssClasses.split(" ").forEach((cssClass) => {
1031
+ const classDef = classes.get(cssClass);
1032
+ if (classDef) {
1033
+ nodeData.cssCompiledStyles = [...nodeData.cssCompiledStyles ?? [], ...classDef.styles];
1034
+ }
1035
+ });
1036
+ }
1037
+ const existingNodeData = nodes.find((node) => node.id === nodeData.id);
1038
+ if (existingNodeData) {
1039
+ Object.assign(existingNodeData, nodeData);
1040
+ } else {
1041
+ nodes.push(nodeData);
1042
+ }
1043
+ }
1044
+ __name(insertOrUpdateNode, "insertOrUpdateNode");
1045
+ function getClassesFromDbInfo(dbInfoItem) {
1046
+ var _a2;
1047
+ return ((_a2 = dbInfoItem == null ? void 0 : dbInfoItem.classes) == null ? void 0 : _a2.join(" ")) ?? "";
1048
+ }
1049
+ __name(getClassesFromDbInfo, "getClassesFromDbInfo");
1050
+ function getStylesFromDbInfo(dbInfoItem) {
1051
+ return (dbInfoItem == null ? void 0 : dbInfoItem.styles) ?? [];
1052
+ }
1053
+ __name(getStylesFromDbInfo, "getStylesFromDbInfo");
1054
+ var dataFetcher = /* @__PURE__ */ __name((parent, parsedItem, diagramStates, nodes, edges, altFlag, look, classes) => {
1055
+ var _a2, _b, _c;
1056
+ const itemId = parsedItem.id;
1057
+ const dbState = diagramStates.get(itemId);
1058
+ const classStr = getClassesFromDbInfo(dbState);
1059
+ const style = getStylesFromDbInfo(dbState);
1060
+ const config = getConfig2();
1061
+ log.info("dataFetcher parsedItem", parsedItem, dbState, style);
1062
+ if (itemId !== "root") {
1063
+ let shape = SHAPE_STATE;
1064
+ if (parsedItem.start === true) {
1065
+ shape = SHAPE_START;
1066
+ } else if (parsedItem.start === false) {
1067
+ shape = SHAPE_END;
1068
+ }
1069
+ if (parsedItem.type !== DEFAULT_STATE_TYPE) {
1070
+ shape = parsedItem.type;
1071
+ }
1072
+ if (!nodeDb.get(itemId)) {
1073
+ nodeDb.set(itemId, {
1074
+ id: itemId,
1075
+ shape,
1076
+ description: common_default.sanitizeText(itemId, config),
1077
+ cssClasses: `${classStr} ${CSS_DIAGRAM_STATE}`,
1078
+ cssStyles: style
1079
+ });
1080
+ }
1081
+ const newNode = nodeDb.get(itemId);
1082
+ if (parsedItem.description) {
1083
+ if (Array.isArray(newNode.description)) {
1084
+ newNode.shape = SHAPE_STATE_WITH_DESC;
1085
+ newNode.description.push(parsedItem.description);
1086
+ } else {
1087
+ if (((_a2 = newNode.description) == null ? void 0 : _a2.length) && newNode.description.length > 0) {
1088
+ newNode.shape = SHAPE_STATE_WITH_DESC;
1089
+ if (newNode.description === itemId) {
1090
+ newNode.description = [parsedItem.description];
1091
+ } else {
1092
+ newNode.description = [newNode.description, parsedItem.description];
1093
+ }
1094
+ } else {
1095
+ newNode.shape = SHAPE_STATE;
1096
+ newNode.description = parsedItem.description;
1097
+ }
1098
+ }
1099
+ newNode.description = common_default.sanitizeTextOrArray(newNode.description, config);
1100
+ }
1101
+ if (((_b = newNode.description) == null ? void 0 : _b.length) === 1 && newNode.shape === SHAPE_STATE_WITH_DESC) {
1102
+ if (newNode.type === "group") {
1103
+ newNode.shape = SHAPE_GROUP;
1104
+ } else {
1105
+ newNode.shape = SHAPE_STATE;
1106
+ }
1107
+ }
1108
+ if (!newNode.type && parsedItem.doc) {
1109
+ log.info("Setting cluster for XCX", itemId, getDir2(parsedItem));
1110
+ newNode.type = "group";
1111
+ newNode.isGroup = true;
1112
+ newNode.dir = getDir2(parsedItem);
1113
+ newNode.shape = parsedItem.type === DIVIDER_TYPE ? SHAPE_DIVIDER : SHAPE_GROUP;
1114
+ newNode.cssClasses = `${newNode.cssClasses} ${CSS_DIAGRAM_CLUSTER} ${altFlag ? CSS_DIAGRAM_CLUSTER_ALT : ""}`;
1115
+ }
1116
+ const nodeData = {
1117
+ labelStyle: "",
1118
+ shape: newNode.shape,
1119
+ label: newNode.description,
1120
+ cssClasses: newNode.cssClasses,
1121
+ cssCompiledStyles: [],
1122
+ cssStyles: newNode.cssStyles,
1123
+ id: itemId,
1124
+ dir: newNode.dir,
1125
+ domId: stateDomId(itemId, graphItemCount),
1126
+ type: newNode.type,
1127
+ isGroup: newNode.type === "group",
1128
+ padding: 8,
1129
+ rx: 10,
1130
+ ry: 10,
1131
+ look
1132
+ };
1133
+ if (nodeData.shape === SHAPE_DIVIDER) {
1134
+ nodeData.label = "";
1135
+ }
1136
+ if (parent && parent.id !== "root") {
1137
+ log.trace("Setting node ", itemId, " to be child of its parent ", parent.id);
1138
+ nodeData.parentId = parent.id;
1139
+ }
1140
+ nodeData.centerLabel = true;
1141
+ if (parsedItem.note) {
1142
+ const noteData = {
1143
+ labelStyle: "",
1144
+ shape: SHAPE_NOTE,
1145
+ label: parsedItem.note.text,
1146
+ cssClasses: CSS_DIAGRAM_NOTE,
1147
+ // useHtmlLabels: false,
1148
+ cssStyles: [],
1149
+ cssCompiledStyles: [],
1150
+ id: itemId + NOTE_ID + "-" + graphItemCount,
1151
+ domId: stateDomId(itemId, graphItemCount, NOTE),
1152
+ type: newNode.type,
1153
+ isGroup: newNode.type === "group",
1154
+ padding: (_c = config.flowchart) == null ? void 0 : _c.padding,
1155
+ look,
1156
+ position: parsedItem.note.position
1157
+ };
1158
+ const parentNodeId = itemId + PARENT_ID;
1159
+ const groupData = {
1160
+ labelStyle: "",
1161
+ shape: SHAPE_NOTEGROUP,
1162
+ label: parsedItem.note.text,
1163
+ cssClasses: newNode.cssClasses,
1164
+ cssStyles: [],
1165
+ id: itemId + PARENT_ID,
1166
+ domId: stateDomId(itemId, graphItemCount, PARENT),
1167
+ type: "group",
1168
+ isGroup: true,
1169
+ padding: 16,
1170
+ //getConfig().flowchart.padding
1171
+ look,
1172
+ position: parsedItem.note.position
1173
+ };
1174
+ graphItemCount++;
1175
+ groupData.id = parentNodeId;
1176
+ noteData.parentId = parentNodeId;
1177
+ insertOrUpdateNode(nodes, groupData, classes);
1178
+ insertOrUpdateNode(nodes, noteData, classes);
1179
+ insertOrUpdateNode(nodes, nodeData, classes);
1180
+ let from = itemId;
1181
+ let to = noteData.id;
1182
+ if (parsedItem.note.position === "left of") {
1183
+ from = noteData.id;
1184
+ to = itemId;
1185
+ }
1186
+ edges.push({
1187
+ id: from + "-" + to,
1188
+ start: from,
1189
+ end: to,
1190
+ arrowhead: "none",
1191
+ arrowTypeEnd: "",
1192
+ style: G_EDGE_STYLE,
1193
+ labelStyle: "",
1194
+ classes: CSS_EDGE_NOTE_EDGE,
1195
+ arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
1196
+ labelpos: G_EDGE_LABELPOS,
1197
+ labelType: G_EDGE_LABELTYPE,
1198
+ thickness: G_EDGE_THICKNESS,
1199
+ look
1200
+ });
1201
+ } else {
1202
+ insertOrUpdateNode(nodes, nodeData, classes);
1203
+ }
1204
+ }
1205
+ if (parsedItem.doc) {
1206
+ log.trace("Adding nodes children ");
1207
+ setupDoc(parsedItem, parsedItem.doc, diagramStates, nodes, edges, !altFlag, look, classes);
1208
+ }
1209
+ }, "dataFetcher");
1210
+ var reset = /* @__PURE__ */ __name(() => {
1211
+ nodeDb.clear();
1212
+ graphItemCount = 0;
1213
+ }, "reset");
1214
+ var CONSTANTS = {
1215
+ START_NODE: "[*]",
1216
+ START_TYPE: "start",
1217
+ END_NODE: "[*]",
1218
+ END_TYPE: "end",
1219
+ COLOR_KEYWORD: "color",
1220
+ FILL_KEYWORD: "fill",
1221
+ BG_FILL: "bgFill",
1222
+ STYLECLASS_SEP: ","
1223
+ };
1224
+ var newClassesList = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Map(), "newClassesList");
1225
+ var newDoc = /* @__PURE__ */ __name(() => ({
1226
+ relations: [],
1227
+ states: /* @__PURE__ */ new Map(),
1228
+ documents: {}
1229
+ }), "newDoc");
1230
+ var clone = /* @__PURE__ */ __name((o) => JSON.parse(JSON.stringify(o)), "clone");
1231
+ var StateDB = (_a = class {
1232
+ constructor(version) {
1233
+ this.version = version;
1234
+ this.nodes = [];
1235
+ this.edges = [];
1236
+ this.rootDoc = [];
1237
+ this.classes = newClassesList();
1238
+ this.documents = { root: newDoc() };
1239
+ this.currentDocument = this.documents.root;
1240
+ this.startEndCount = 0;
1241
+ this.dividerCnt = 0;
1242
+ this.links = /* @__PURE__ */ new Map();
1243
+ this.getAccTitle = getAccTitle;
1244
+ this.setAccTitle = setAccTitle;
1245
+ this.getAccDescription = getAccDescription;
1246
+ this.setAccDescription = setAccDescription;
1247
+ this.setDiagramTitle = setDiagramTitle;
1248
+ this.getDiagramTitle = getDiagramTitle;
1249
+ this.clear();
1250
+ this.setRootDoc = this.setRootDoc.bind(this);
1251
+ this.getDividerId = this.getDividerId.bind(this);
1252
+ this.setDirection = this.setDirection.bind(this);
1253
+ this.trimColon = this.trimColon.bind(this);
1254
+ }
1255
+ /**
1256
+ * Convert all of the statements (stmts) that were parsed into states and relationships.
1257
+ * This is done because a state diagram may have nested sections,
1258
+ * where each section is a 'document' and has its own set of statements.
1259
+ * Ex: the section within a fork has its own statements, and incoming and outgoing statements
1260
+ * refer to the fork as a whole (document).
1261
+ * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
1262
+ * This will push the statement into the list of statements for the current document.
1263
+ */
1264
+ extract(statements) {
1265
+ this.clear(true);
1266
+ for (const item of Array.isArray(statements) ? statements : statements.doc) {
1267
+ switch (item.stmt) {
1268
+ case STMT_STATE:
1269
+ this.addState(item.id.trim(), item.type, item.doc, item.description, item.note);
1270
+ break;
1271
+ case STMT_RELATION:
1272
+ this.addRelation(item.state1, item.state2, item.description);
1273
+ break;
1274
+ case STMT_CLASSDEF:
1275
+ this.addStyleClass(item.id.trim(), item.classes);
1276
+ break;
1277
+ case STMT_STYLEDEF:
1278
+ this.handleStyleDef(item);
1279
+ break;
1280
+ case STMT_APPLYCLASS:
1281
+ this.setCssClass(item.id.trim(), item.styleClass);
1282
+ break;
1283
+ case "click":
1284
+ this.addLink(item.id, item.url, item.tooltip);
1285
+ break;
1286
+ }
1287
+ }
1288
+ const diagramStates = this.getStates();
1289
+ const config = getConfig2();
1290
+ reset();
1291
+ dataFetcher(
1292
+ void 0,
1293
+ this.getRootDocV2(),
1294
+ diagramStates,
1295
+ this.nodes,
1296
+ this.edges,
1297
+ true,
1298
+ config.look,
1299
+ this.classes
1300
+ );
1301
+ for (const node of this.nodes) {
1302
+ if (!Array.isArray(node.label)) {
1303
+ continue;
1304
+ }
1305
+ node.description = node.label.slice(1);
1306
+ if (node.isGroup && node.description.length > 0) {
1307
+ throw new Error(
1308
+ `Group nodes can only have label. Remove the additional description for node [${node.id}]`
1309
+ );
1310
+ }
1311
+ node.label = node.label[0];
1312
+ }
1313
+ }
1314
+ handleStyleDef(item) {
1315
+ const ids = item.id.trim().split(",");
1316
+ const styles = item.styleClass.split(",");
1317
+ for (const id of ids) {
1318
+ let state = this.getState(id);
1319
+ if (!state) {
1320
+ const trimmedId = id.trim();
1321
+ this.addState(trimmedId);
1322
+ state = this.getState(trimmedId);
1323
+ }
1324
+ if (state) {
1325
+ state.styles = styles.map((s) => {
1326
+ var _a2;
1327
+ return (_a2 = s.replace(/;/g, "")) == null ? void 0 : _a2.trim();
1328
+ });
1329
+ }
1330
+ }
1331
+ }
1332
+ setRootDoc(o) {
1333
+ log.info("Setting root doc", o);
1334
+ this.rootDoc = o;
1335
+ if (this.version === 1) {
1336
+ this.extract(o);
1337
+ } else {
1338
+ this.extract(this.getRootDocV2());
1339
+ }
1340
+ }
1341
+ docTranslator(parent, node, first) {
1342
+ if (node.stmt === STMT_RELATION) {
1343
+ this.docTranslator(parent, node.state1, true);
1344
+ this.docTranslator(parent, node.state2, false);
1345
+ return;
1346
+ }
1347
+ if (node.stmt === STMT_STATE) {
1348
+ if (node.id === CONSTANTS.START_NODE) {
1349
+ node.id = parent.id + (first ? "_start" : "_end");
1350
+ node.start = first;
1351
+ } else {
1352
+ node.id = node.id.trim();
1353
+ }
1354
+ }
1355
+ if (node.stmt !== STMT_ROOT && node.stmt !== STMT_STATE || !node.doc) {
1356
+ return;
1357
+ }
1358
+ const doc = [];
1359
+ let currentDoc = [];
1360
+ for (const stmt of node.doc) {
1361
+ if (stmt.type === DIVIDER_TYPE) {
1362
+ const newNode = clone(stmt);
1363
+ newNode.doc = clone(currentDoc);
1364
+ doc.push(newNode);
1365
+ currentDoc = [];
1366
+ } else {
1367
+ currentDoc.push(stmt);
1368
+ }
1369
+ }
1370
+ if (doc.length > 0 && currentDoc.length > 0) {
1371
+ const newNode = {
1372
+ stmt: STMT_STATE,
1373
+ id: generateId(),
1374
+ type: "divider",
1375
+ doc: clone(currentDoc)
1376
+ };
1377
+ doc.push(clone(newNode));
1378
+ node.doc = doc;
1379
+ }
1380
+ node.doc.forEach((docNode) => this.docTranslator(node, docNode, true));
1381
+ }
1382
+ getRootDocV2() {
1383
+ this.docTranslator(
1384
+ { id: STMT_ROOT, stmt: STMT_ROOT },
1385
+ { id: STMT_ROOT, stmt: STMT_ROOT, doc: this.rootDoc },
1386
+ true
1387
+ );
1388
+ return { id: STMT_ROOT, doc: this.rootDoc };
1389
+ }
1390
+ /**
1391
+ * Function called by parser when a node definition has been found.
1392
+ *
1393
+ * @param descr - description for the state. Can be a string or a list or strings
1394
+ * @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
1395
+ * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
1396
+ * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
1397
+ */
1398
+ addState(id, type = DEFAULT_STATE_TYPE, doc = void 0, descr = void 0, note = void 0, classes = void 0, styles = void 0, textStyles = void 0) {
1399
+ const trimmedId = id == null ? void 0 : id.trim();
1400
+ if (!this.currentDocument.states.has(trimmedId)) {
1401
+ log.info("Adding state ", trimmedId, descr);
1402
+ this.currentDocument.states.set(trimmedId, {
1403
+ stmt: STMT_STATE,
1404
+ id: trimmedId,
1405
+ descriptions: [],
1406
+ type,
1407
+ doc,
1408
+ note,
1409
+ classes: [],
1410
+ styles: [],
1411
+ textStyles: []
1412
+ });
1413
+ } else {
1414
+ const state = this.currentDocument.states.get(trimmedId);
1415
+ if (!state) {
1416
+ throw new Error(`State not found: ${trimmedId}`);
1417
+ }
1418
+ if (!state.doc) {
1419
+ state.doc = doc;
1420
+ }
1421
+ if (!state.type) {
1422
+ state.type = type;
1423
+ }
1424
+ }
1425
+ if (descr) {
1426
+ log.info("Setting state description", trimmedId, descr);
1427
+ const descriptions = Array.isArray(descr) ? descr : [descr];
1428
+ descriptions.forEach((des) => this.addDescription(trimmedId, des.trim()));
1429
+ }
1430
+ if (note) {
1431
+ const doc2 = this.currentDocument.states.get(trimmedId);
1432
+ if (!doc2) {
1433
+ throw new Error(`State not found: ${trimmedId}`);
1434
+ }
1435
+ doc2.note = note;
1436
+ doc2.note.text = common_default.sanitizeText(doc2.note.text, getConfig2());
1437
+ }
1438
+ if (classes) {
1439
+ log.info("Setting state classes", trimmedId, classes);
1440
+ const classesList = Array.isArray(classes) ? classes : [classes];
1441
+ classesList.forEach((cssClass) => this.setCssClass(trimmedId, cssClass.trim()));
1442
+ }
1443
+ if (styles) {
1444
+ log.info("Setting state styles", trimmedId, styles);
1445
+ const stylesList = Array.isArray(styles) ? styles : [styles];
1446
+ stylesList.forEach((style) => this.setStyle(trimmedId, style.trim()));
1447
+ }
1448
+ if (textStyles) {
1449
+ log.info("Setting state styles", trimmedId, styles);
1450
+ const textStylesList = Array.isArray(textStyles) ? textStyles : [textStyles];
1451
+ textStylesList.forEach((textStyle) => this.setTextStyle(trimmedId, textStyle.trim()));
1452
+ }
1453
+ }
1454
+ clear(saveCommon) {
1455
+ this.nodes = [];
1456
+ this.edges = [];
1457
+ this.documents = { root: newDoc() };
1458
+ this.currentDocument = this.documents.root;
1459
+ this.startEndCount = 0;
1460
+ this.classes = newClassesList();
1461
+ if (!saveCommon) {
1462
+ this.links = /* @__PURE__ */ new Map();
1463
+ clear();
1464
+ }
1465
+ }
1466
+ getState(id) {
1467
+ return this.currentDocument.states.get(id);
1468
+ }
1469
+ getStates() {
1470
+ return this.currentDocument.states;
1471
+ }
1472
+ logDocuments() {
1473
+ log.info("Documents = ", this.documents);
1474
+ }
1475
+ getRelations() {
1476
+ return this.currentDocument.relations;
1477
+ }
1478
+ /**
1479
+ * Adds a clickable link to a state.
1480
+ */
1481
+ addLink(stateId, url, tooltip) {
1482
+ this.links.set(stateId, { url, tooltip });
1483
+ log.warn("Adding link", stateId, url, tooltip);
1484
+ }
1485
+ /**
1486
+ * Get all registered links.
1487
+ */
1488
+ getLinks() {
1489
+ return this.links;
1490
+ }
1491
+ /**
1492
+ * If the id is a start node ( [*] ), then return a new id constructed from
1493
+ * the start node name and the current start node count.
1494
+ * else return the given id
1495
+ */
1496
+ startIdIfNeeded(id = "") {
1497
+ if (id === CONSTANTS.START_NODE) {
1498
+ this.startEndCount++;
1499
+ return `${CONSTANTS.START_TYPE}${this.startEndCount}`;
1500
+ }
1501
+ return id;
1502
+ }
1503
+ /**
1504
+ * If the id is a start node ( [*] ), then return the start type ('start')
1505
+ * else return the given type
1506
+ */
1507
+ startTypeIfNeeded(id = "", type = DEFAULT_STATE_TYPE) {
1508
+ return id === CONSTANTS.START_NODE ? CONSTANTS.START_TYPE : type;
1509
+ }
1510
+ /**
1511
+ * If the id is an end node ( [*] ), then return a new id constructed from
1512
+ * the end node name and the current start_end node count.
1513
+ * else return the given id
1514
+ */
1515
+ endIdIfNeeded(id = "") {
1516
+ if (id === CONSTANTS.END_NODE) {
1517
+ this.startEndCount++;
1518
+ return `${CONSTANTS.END_TYPE}${this.startEndCount}`;
1519
+ }
1520
+ return id;
1521
+ }
1522
+ /**
1523
+ * If the id is an end node ( [*] ), then return the end type
1524
+ * else return the given type
1525
+ *
1526
+ */
1527
+ endTypeIfNeeded(id = "", type = DEFAULT_STATE_TYPE) {
1528
+ return id === CONSTANTS.END_NODE ? CONSTANTS.END_TYPE : type;
1529
+ }
1530
+ addRelationObjs(item1, item2, relationTitle = "") {
1531
+ const id1 = this.startIdIfNeeded(item1.id.trim());
1532
+ const type1 = this.startTypeIfNeeded(item1.id.trim(), item1.type);
1533
+ const id2 = this.startIdIfNeeded(item2.id.trim());
1534
+ const type2 = this.startTypeIfNeeded(item2.id.trim(), item2.type);
1535
+ this.addState(
1536
+ id1,
1537
+ type1,
1538
+ item1.doc,
1539
+ item1.description,
1540
+ item1.note,
1541
+ item1.classes,
1542
+ item1.styles,
1543
+ item1.textStyles
1544
+ );
1545
+ this.addState(
1546
+ id2,
1547
+ type2,
1548
+ item2.doc,
1549
+ item2.description,
1550
+ item2.note,
1551
+ item2.classes,
1552
+ item2.styles,
1553
+ item2.textStyles
1554
+ );
1555
+ this.currentDocument.relations.push({
1556
+ id1,
1557
+ id2,
1558
+ relationTitle: common_default.sanitizeText(relationTitle, getConfig2())
1559
+ });
1560
+ }
1561
+ /**
1562
+ * Add a relation between two items. The items may be full objects or just the string id of a state.
1563
+ */
1564
+ addRelation(item1, item2, title) {
1565
+ if (typeof item1 === "object" && typeof item2 === "object") {
1566
+ this.addRelationObjs(item1, item2, title);
1567
+ } else if (typeof item1 === "string" && typeof item2 === "string") {
1568
+ const id1 = this.startIdIfNeeded(item1.trim());
1569
+ const type1 = this.startTypeIfNeeded(item1);
1570
+ const id2 = this.endIdIfNeeded(item2.trim());
1571
+ const type2 = this.endTypeIfNeeded(item2);
1572
+ this.addState(id1, type1);
1573
+ this.addState(id2, type2);
1574
+ this.currentDocument.relations.push({
1575
+ id1,
1576
+ id2,
1577
+ relationTitle: title ? common_default.sanitizeText(title, getConfig2()) : void 0
1578
+ });
1579
+ }
1580
+ }
1581
+ addDescription(id, descr) {
1582
+ var _a2;
1583
+ const theState = this.currentDocument.states.get(id);
1584
+ const _descr = descr.startsWith(":") ? descr.replace(":", "").trim() : descr;
1585
+ (_a2 = theState == null ? void 0 : theState.descriptions) == null ? void 0 : _a2.push(common_default.sanitizeText(_descr, getConfig2()));
1586
+ }
1587
+ cleanupLabel(label) {
1588
+ return label.startsWith(":") ? label.slice(2).trim() : label.trim();
1589
+ }
1590
+ getDividerId() {
1591
+ this.dividerCnt++;
1592
+ return `divider-id-${this.dividerCnt}`;
1593
+ }
1594
+ /**
1595
+ * Called when the parser comes across a (style) class definition
1596
+ * @example classDef my-style fill:#f96;
1597
+ *
1598
+ * @param id - the id of this (style) class
1599
+ * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1600
+ */
1601
+ addStyleClass(id, styleAttributes = "") {
1602
+ if (!this.classes.has(id)) {
1603
+ this.classes.set(id, { id, styles: [], textStyles: [] });
1604
+ }
1605
+ const foundClass = this.classes.get(id);
1606
+ if (styleAttributes && foundClass) {
1607
+ styleAttributes.split(CONSTANTS.STYLECLASS_SEP).forEach((attrib) => {
1608
+ const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
1609
+ if (RegExp(CONSTANTS.COLOR_KEYWORD).exec(attrib)) {
1610
+ const newStyle1 = fixedAttrib.replace(CONSTANTS.FILL_KEYWORD, CONSTANTS.BG_FILL);
1611
+ const newStyle2 = newStyle1.replace(CONSTANTS.COLOR_KEYWORD, CONSTANTS.FILL_KEYWORD);
1612
+ foundClass.textStyles.push(newStyle2);
1613
+ }
1614
+ foundClass.styles.push(fixedAttrib);
1615
+ });
1616
+ }
1617
+ }
1618
+ getClasses() {
1619
+ return this.classes;
1620
+ }
1621
+ /**
1622
+ * Add a (style) class or css class to a state with the given id.
1623
+ * If the state isn't already in the list of known states, add it.
1624
+ * Might be called by parser when a style class or CSS class should be applied to a state
1625
+ *
1626
+ * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
1627
+ * @param cssClassName - CSS class name
1628
+ */
1629
+ setCssClass(itemIds, cssClassName) {
1630
+ itemIds.split(",").forEach((id) => {
1631
+ var _a2;
1632
+ let foundState = this.getState(id);
1633
+ if (!foundState) {
1634
+ const trimmedId = id.trim();
1635
+ this.addState(trimmedId);
1636
+ foundState = this.getState(trimmedId);
1637
+ }
1638
+ (_a2 = foundState == null ? void 0 : foundState.classes) == null ? void 0 : _a2.push(cssClassName);
1639
+ });
1640
+ }
1641
+ /**
1642
+ * Add a style to a state with the given id.
1643
+ * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1644
+ * where 'style' is the keyword
1645
+ * stateId is the id of a state
1646
+ * the rest of the string is the styleText (all of the attributes to be applied to the state)
1647
+ *
1648
+ * @param itemId - The id of item to apply the style to
1649
+ * @param styleText - the text of the attributes for the style
1650
+ */
1651
+ setStyle(itemId, styleText) {
1652
+ var _a2, _b;
1653
+ (_b = (_a2 = this.getState(itemId)) == null ? void 0 : _a2.styles) == null ? void 0 : _b.push(styleText);
1654
+ }
1655
+ /**
1656
+ * Add a text style to a state with the given id
1657
+ *
1658
+ * @param itemId - The id of item to apply the css class to
1659
+ * @param cssClassName - CSS class name
1660
+ */
1661
+ setTextStyle(itemId, cssClassName) {
1662
+ var _a2, _b;
1663
+ (_b = (_a2 = this.getState(itemId)) == null ? void 0 : _a2.textStyles) == null ? void 0 : _b.push(cssClassName);
1664
+ }
1665
+ /**
1666
+ * Finds the direction statement in the root document.
1667
+ * @returns the direction statement if present
1668
+ */
1669
+ getDirectionStatement() {
1670
+ return this.rootDoc.find((doc) => doc.stmt === STMT_DIRECTION);
1671
+ }
1672
+ getDirection() {
1673
+ var _a2;
1674
+ return ((_a2 = this.getDirectionStatement()) == null ? void 0 : _a2.value) ?? DEFAULT_DIAGRAM_DIRECTION;
1675
+ }
1676
+ setDirection(dir) {
1677
+ const doc = this.getDirectionStatement();
1678
+ if (doc) {
1679
+ doc.value = dir;
1680
+ } else {
1681
+ this.rootDoc.unshift({ stmt: STMT_DIRECTION, value: dir });
1682
+ }
1683
+ }
1684
+ trimColon(str) {
1685
+ return str.startsWith(":") ? str.slice(1).trim() : str.trim();
1686
+ }
1687
+ getData() {
1688
+ const config = getConfig2();
1689
+ return {
1690
+ nodes: this.nodes,
1691
+ edges: this.edges,
1692
+ other: {},
1693
+ config,
1694
+ direction: getDir(this.getRootDocV2())
1695
+ };
1696
+ }
1697
+ getConfig() {
1698
+ return getConfig2().state;
1699
+ }
1700
+ }, __name(_a, "StateDB"), _a.relationType = {
1701
+ AGGREGATION: 0,
1702
+ EXTENSION: 1,
1703
+ COMPOSITION: 2,
1704
+ DEPENDENCY: 3
1705
+ }, _a);
1706
+ var getStyles = /* @__PURE__ */ __name((options) => `
1707
+ defs #statediagram-barbEnd {
1708
+ fill: ${options.transitionColor};
1709
+ stroke: ${options.transitionColor};
1710
+ }
1711
+ g.stateGroup text {
1712
+ fill: ${options.nodeBorder};
1713
+ stroke: none;
1714
+ font-size: 10px;
1715
+ }
1716
+ g.stateGroup text {
1717
+ fill: ${options.textColor};
1718
+ stroke: none;
1719
+ font-size: 10px;
1720
+
1721
+ }
1722
+ g.stateGroup .state-title {
1723
+ font-weight: bolder;
1724
+ fill: ${options.stateLabelColor};
1725
+ }
1726
+
1727
+ g.stateGroup rect {
1728
+ fill: ${options.mainBkg};
1729
+ stroke: ${options.nodeBorder};
1730
+ }
1731
+
1732
+ g.stateGroup line {
1733
+ stroke: ${options.lineColor};
1734
+ stroke-width: 1;
1735
+ }
1736
+
1737
+ .transition {
1738
+ stroke: ${options.transitionColor};
1739
+ stroke-width: 1;
1740
+ fill: none;
1741
+ }
1742
+
1743
+ .stateGroup .composit {
1744
+ fill: ${options.background};
1745
+ border-bottom: 1px
1746
+ }
1747
+
1748
+ .stateGroup .alt-composit {
1749
+ fill: #e0e0e0;
1750
+ border-bottom: 1px
1751
+ }
1752
+
1753
+ .state-note {
1754
+ stroke: ${options.noteBorderColor};
1755
+ fill: ${options.noteBkgColor};
1756
+
1757
+ text {
1758
+ fill: ${options.noteTextColor};
1759
+ stroke: none;
1760
+ font-size: 10px;
1761
+ }
1762
+ }
1763
+
1764
+ .stateLabel .box {
1765
+ stroke: none;
1766
+ stroke-width: 0;
1767
+ fill: ${options.mainBkg};
1768
+ opacity: 0.5;
1769
+ }
1770
+
1771
+ .edgeLabel .label rect {
1772
+ fill: ${options.labelBackgroundColor};
1773
+ opacity: 0.5;
1774
+ }
1775
+ .edgeLabel {
1776
+ background-color: ${options.edgeLabelBackground};
1777
+ p {
1778
+ background-color: ${options.edgeLabelBackground};
1779
+ }
1780
+ rect {
1781
+ opacity: 0.5;
1782
+ background-color: ${options.edgeLabelBackground};
1783
+ fill: ${options.edgeLabelBackground};
1784
+ }
1785
+ text-align: center;
1786
+ }
1787
+ .edgeLabel .label text {
1788
+ fill: ${options.transitionLabelColor || options.tertiaryTextColor};
1789
+ }
1790
+ .label div .edgeLabel {
1791
+ color: ${options.transitionLabelColor || options.tertiaryTextColor};
1792
+ }
1793
+
1794
+ .stateLabel text {
1795
+ fill: ${options.stateLabelColor};
1796
+ font-size: 10px;
1797
+ font-weight: bold;
1798
+ }
1799
+
1800
+ .node circle.state-start {
1801
+ fill: ${options.specialStateColor};
1802
+ stroke: ${options.specialStateColor};
1803
+ }
1804
+
1805
+ .node .fork-join {
1806
+ fill: ${options.specialStateColor};
1807
+ stroke: ${options.specialStateColor};
1808
+ }
1809
+
1810
+ .node circle.state-end {
1811
+ fill: ${options.innerEndBackground};
1812
+ stroke: ${options.background};
1813
+ stroke-width: 1.5
1814
+ }
1815
+ .end-state-inner {
1816
+ fill: ${options.compositeBackground || options.background};
1817
+ // stroke: ${options.background};
1818
+ stroke-width: 1.5
1819
+ }
1820
+
1821
+ .node rect {
1822
+ fill: ${options.stateBkg || options.mainBkg};
1823
+ stroke: ${options.stateBorder || options.nodeBorder};
1824
+ stroke-width: 1px;
1825
+ }
1826
+ .node polygon {
1827
+ fill: ${options.mainBkg};
1828
+ stroke: ${options.stateBorder || options.nodeBorder};;
1829
+ stroke-width: 1px;
1830
+ }
1831
+ #statediagram-barbEnd {
1832
+ fill: ${options.lineColor};
1833
+ }
1834
+
1835
+ .statediagram-cluster rect {
1836
+ fill: ${options.compositeTitleBackground};
1837
+ stroke: ${options.stateBorder || options.nodeBorder};
1838
+ stroke-width: 1px;
1839
+ }
1840
+
1841
+ .cluster-label, .nodeLabel {
1842
+ color: ${options.stateLabelColor};
1843
+ // line-height: 1;
1844
+ }
1845
+
1846
+ .statediagram-cluster rect.outer {
1847
+ rx: 5px;
1848
+ ry: 5px;
1849
+ }
1850
+ .statediagram-state .divider {
1851
+ stroke: ${options.stateBorder || options.nodeBorder};
1852
+ }
1853
+
1854
+ .statediagram-state .title-state {
1855
+ rx: 5px;
1856
+ ry: 5px;
1857
+ }
1858
+ .statediagram-cluster.statediagram-cluster .inner {
1859
+ fill: ${options.compositeBackground || options.background};
1860
+ }
1861
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1862
+ fill: ${options.altBackground ? options.altBackground : "#efefef"};
1863
+ }
1864
+
1865
+ .statediagram-cluster .inner {
1866
+ rx:0;
1867
+ ry:0;
1868
+ }
1869
+
1870
+ .statediagram-state rect.basic {
1871
+ rx: 5px;
1872
+ ry: 5px;
1873
+ }
1874
+ .statediagram-state rect.divider {
1875
+ stroke-dasharray: 10,10;
1876
+ fill: ${options.altBackground ? options.altBackground : "#efefef"};
1877
+ }
1878
+
1879
+ .note-edge {
1880
+ stroke-dasharray: 5;
1881
+ }
1882
+
1883
+ .statediagram-note rect {
1884
+ fill: ${options.noteBkgColor};
1885
+ stroke: ${options.noteBorderColor};
1886
+ stroke-width: 1px;
1887
+ rx: 0;
1888
+ ry: 0;
1889
+ }
1890
+ .statediagram-note rect {
1891
+ fill: ${options.noteBkgColor};
1892
+ stroke: ${options.noteBorderColor};
1893
+ stroke-width: 1px;
1894
+ rx: 0;
1895
+ ry: 0;
1896
+ }
1897
+
1898
+ .statediagram-note text {
1899
+ fill: ${options.noteTextColor};
1900
+ }
1901
+
1902
+ .statediagram-note .nodeLabel {
1903
+ color: ${options.noteTextColor};
1904
+ }
1905
+ .statediagram .edgeLabel {
1906
+ color: red; // ${options.noteTextColor};
1907
+ }
1908
+
1909
+ #dependencyStart, #dependencyEnd {
1910
+ fill: ${options.lineColor};
1911
+ stroke: ${options.lineColor};
1912
+ stroke-width: 1;
1913
+ }
1914
+
1915
+ .statediagramTitleText {
1916
+ text-anchor: middle;
1917
+ font-size: 18px;
1918
+ fill: ${options.textColor};
1919
+ }
1920
+ `, "getStyles");
1921
+ var styles_default = getStyles;
1922
+ export {
1923
+ StateDB as S,
1924
+ stateDiagram_default as a,
1925
+ stateRenderer_v3_unified_default as b,
1926
+ styles_default as s
1927
+ };
1928
+ //# sourceMappingURL=chunk-DI55MBZ5-Bun58OTZ.js.map