file-viewer3 1.0.8 → 1.0.26

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 (370) hide show
  1. package/LICENSE +160 -0
  2. package/README.en.md +390 -0
  3. package/README.md +306 -89
  4. package/dist/components/3MFLoader.js +527 -0
  5. package/dist/components/AMFLoader.js +188 -0
  6. package/dist/components/ArchiveViewer.js +526 -0
  7. package/dist/components/AudioViewer.js +66 -0
  8. package/dist/components/CadViewer.js +9040 -0
  9. package/dist/components/CodeViewer.js +151 -0
  10. package/dist/components/ColladaLoader.js +2282 -0
  11. package/dist/components/DrawingViewer.js +295 -0
  12. package/dist/components/EdaViewer.js +630 -0
  13. package/dist/components/EmailViewer.js +276 -0
  14. package/dist/components/EpubViewer.js +172 -0
  15. package/dist/components/FBXLoader.js +1574 -0
  16. package/dist/components/GLTFLoader.js +1383 -0
  17. package/dist/components/ImageViewer.js +1516 -1895
  18. package/dist/components/KMZLoader.js +45 -0
  19. package/dist/components/MarkdownViewer.js +1456 -1557
  20. package/dist/components/ModelViewer.js +797 -0
  21. package/dist/components/OBJLoader.js +287 -0
  22. package/dist/components/OfdViewer.js +133 -0
  23. package/dist/components/PCDLoader.js +141 -0
  24. package/dist/components/PLYLoader.js +305 -0
  25. package/dist/components/PdfView.js +27662 -21655
  26. package/dist/components/PptxRender.js +11170 -21118
  27. package/dist/components/STLLoader.js +83 -0
  28. package/dist/components/TDSLoader.js +228 -0
  29. package/dist/components/TypstViewer.js +1697 -0
  30. package/dist/components/USDLoader.js +2526 -0
  31. package/dist/components/UmdViewer.js +1873 -0
  32. package/dist/components/VRMLLoader.js +6422 -0
  33. package/dist/components/VTKLoader.js +337 -0
  34. package/dist/components/XYZLoader.js +30 -0
  35. package/dist/components/XlsxTable.js +7871 -69873
  36. package/dist/components/__vite-browser-external.js +7 -0
  37. package/dist/components/_plugin-vue_export-helper.js +8 -0
  38. package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
  39. package/dist/components/arc.js +79 -0
  40. package/dist/components/architecture-7EHR7CIX.js +3 -0
  41. package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
  42. package/dist/components/archive.js +24 -0
  43. package/dist/components/asyncToGenerator.js +29 -0
  44. package/dist/components/audio.js +19 -0
  45. package/dist/components/az-AZ-76LH7QW2.js +523 -0
  46. package/dist/components/bash.js +169 -0
  47. package/dist/components/bg-BG-XCXSNQG7.js +523 -0
  48. package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
  49. package/dist/components/bn-BD-2XOGV67Q.js +523 -0
  50. package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
  51. package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
  52. package/dist/components/cad.js +23 -0
  53. package/dist/components/cfb.js +1174 -0
  54. package/dist/components/channel.js +5 -0
  55. package/dist/components/chunk-2J33WTMH.js +26 -0
  56. package/dist/components/chunk-3OPIFGDE.js +4167 -0
  57. package/dist/components/chunk-4BX2VUAB.js +19 -0
  58. package/dist/components/chunk-55IACEB6.js +9 -0
  59. package/dist/components/chunk-5ZQYHXKU.js +669 -0
  60. package/dist/components/chunk-6U3AYISY.js +624 -0
  61. package/dist/components/chunk-727SXJPM.js +3356 -0
  62. package/dist/components/chunk-AGHRB4JF.js +324 -0
  63. package/dist/components/chunk-AQP2D5EJ.js +2055 -0
  64. package/dist/components/chunk-BSJP7CBP.js +83 -0
  65. package/dist/components/chunk-CSCIHK7Q.js +3500 -0
  66. package/dist/components/chunk-EIO257PC.js +1836 -0
  67. package/dist/components/chunk-FMBD7UC4.js +5 -0
  68. package/dist/components/chunk-K2UTITRG.js +17627 -0
  69. package/dist/components/chunk-KSCS5N6A.js +572 -0
  70. package/dist/components/chunk-L5ZTLDWV.js +40 -0
  71. package/dist/components/chunk-LZXEDZCA.js +60 -0
  72. package/dist/components/chunk-ND2GUHAM.js +61 -0
  73. package/dist/components/chunk-NNHCCRGN.js +20425 -0
  74. package/dist/components/chunk-NZK2D7GU.js +68 -0
  75. package/dist/components/chunk-O5CBEL6O.js +1894 -0
  76. package/dist/components/chunk-QZHKN3VN.js +12 -0
  77. package/dist/components/chunk-SRAX5OIU.js +22 -0
  78. package/dist/components/chunk-WU5MYG2G.js +14 -0
  79. package/dist/components/chunk-XPW4576I.js +1146 -0
  80. package/dist/components/chunk-Z3N5DIM6.js +59 -0
  81. package/dist/components/chunk-ZUYEQ4TG.js +22 -0
  82. package/dist/components/chunk.js +23 -0
  83. package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
  84. package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
  85. package/dist/components/compiler.js +2 -0
  86. package/dist/components/core.js +845 -0
  87. package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
  88. package/dist/components/cpp.js +225 -0
  89. package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
  90. package/dist/components/csharp.js +260 -0
  91. package/dist/components/css.js +140 -0
  92. package/dist/components/cytoscape.esm.js +18114 -0
  93. package/dist/components/da-DK-5WZEPLOC.js +523 -0
  94. package/dist/components/dagre-BM42HDAG.js +325 -0
  95. package/dist/components/dagre.js +1936 -0
  96. package/dist/components/de-DE-XR44H4JA.js +523 -0
  97. package/dist/components/defaultLocale.js +201 -0
  98. package/dist/components/defineProperty.js +50 -0
  99. package/dist/components/diagram-2AECGRRQ.js +229 -0
  100. package/dist/components/diagram-5GNKFQAL.js +108 -0
  101. package/dist/components/diagram-KO2AKTUF.js +443 -0
  102. package/dist/components/diagram-LMA3HP47.js +139 -0
  103. package/dist/components/diagram-OG6HWLK6.js +541 -0
  104. package/dist/components/diff.js +39 -0
  105. package/dist/components/directory-open-01563666.js +26 -0
  106. package/dist/components/directory-open-4ed118d0.js +83 -0
  107. package/dist/components/dist.js +50 -0
  108. package/dist/components/dist2.js +3291 -0
  109. package/dist/components/dist3.js +1593 -0
  110. package/dist/components/documentSearch.js +378 -0
  111. package/dist/components/docx-preview.js +3113 -0
  112. package/dist/components/drawing.js +19 -0
  113. package/dist/components/ebook.js +16 -0
  114. package/dist/components/eda.js +20 -0
  115. package/dist/components/el-GR-BZB4AONW.js +523 -0
  116. package/dist/components/email.js +21 -0
  117. package/dist/components/en-B4ZKOASM.js +3 -0
  118. package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
  119. package/dist/components/es-ES-U4NZUMDT.js +523 -0
  120. package/dist/components/eu-ES-A7QVB2H4.js +523 -0
  121. package/dist/components/eventmodeling-FCH6USID.js +3 -0
  122. package/dist/components/fa-IR-HGAKTJCU.js +523 -0
  123. package/dist/components/fflate.module.js +323 -0
  124. package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
  125. package/dist/components/file-open-002ab408.js +38 -0
  126. package/dist/components/file-open-7c801643.js +24 -0
  127. package/dist/components/file-save-3189631c.js +40 -0
  128. package/dist/components/file-save-745eba88.js +36 -0
  129. package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
  130. package/dist/components/fr-FR-RHASNOE6.js +523 -0
  131. package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
  132. package/dist/components/gitGraph-WXDBUCRP.js +3 -0
  133. package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
  134. package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
  135. package/dist/components/global-compiler.js +23 -0
  136. package/dist/components/global-renderer.js +23 -0
  137. package/dist/components/go.js +140 -0
  138. package/dist/components/graphlib.js +1267 -0
  139. package/dist/components/he-IL-6SHJWFNN.js +523 -0
  140. package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
  141. package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
  142. package/dist/components/id-ID-SAP4L64H.js +523 -0
  143. package/dist/components/image-GAAHSSAO.js +3 -0
  144. package/dist/components/image-blob-reduce.esm.js +1429 -0
  145. package/dist/components/image.js +17 -0
  146. package/dist/components/info-J43DQDTF.js +3 -0
  147. package/dist/components/infoDiagram-5YYISTIA.js +26 -0
  148. package/dist/components/ini.js +88 -0
  149. package/dist/components/init.js +15 -0
  150. package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
  151. package/dist/components/it-IT-JPQ66NNP.js +523 -0
  152. package/dist/components/ja-JP-DBVTYXUO.js +523 -0
  153. package/dist/components/java.js +169 -0
  154. package/dist/components/javascript.js +436 -0
  155. package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
  156. package/dist/components/json.js +36 -0
  157. package/dist/components/jszip.min.js +3033 -0
  158. package/dist/components/kaa-6HZHGXH3.js +523 -0
  159. package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
  160. package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
  161. package/dist/components/katex.js +21979 -0
  162. package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
  163. package/dist/components/km-KH-HSX4SM5Z.js +523 -0
  164. package/dist/components/ko-KR-MTYHY66A.js +523 -0
  165. package/dist/components/ku-TR-6OUDTVRD.js +523 -0
  166. package/dist/components/lib.js +4877 -0
  167. package/dist/components/libarchive.js +360 -0
  168. package/dist/components/linear.js +289 -0
  169. package/dist/components/lt-LT-XHIRWOB4.js +523 -0
  170. package/dist/components/lv-LV-5QDEKY6T.js +523 -0
  171. package/dist/components/markdown.js +181 -0
  172. package/dist/components/md.js +17 -0
  173. package/dist/components/mermaid-parser.core.js +328 -0
  174. package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
  175. package/dist/components/model.js +21 -0
  176. package/dist/components/mp4.js +12 -0
  177. package/dist/components/mr-IN-CRQNXWMA.js +523 -0
  178. package/dist/components/my-MM-5M5IBNSE.js +523 -0
  179. package/dist/components/nb-NO-T6EIAALU.js +523 -0
  180. package/dist/components/nestedRender.js +158 -0
  181. package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
  182. package/dist/components/nn-NO-6E72VCQL.js +523 -0
  183. package/dist/components/objectSpread2.js +29 -0
  184. package/dist/components/objectWithoutProperties.js +28 -0
  185. package/dist/components/oc-FR-POXYY2M6.js +523 -0
  186. package/dist/components/ofd.js +5261 -0
  187. package/dist/components/ofd2.js +16 -0
  188. package/dist/components/ordinal.js +65 -0
  189. package/dist/components/pa-IN-N4M65BXN.js +523 -0
  190. package/dist/components/packet-YPE3B663.js +3 -0
  191. package/dist/components/pdf.js +24 -0
  192. package/dist/components/percentages-BXMCSKIN.js +3 -0
  193. package/dist/components/php.js +294 -0
  194. package/dist/components/pica.js +1009 -0
  195. package/dist/components/pie-LRSECV5Y.js +3 -0
  196. package/dist/components/pie.js +47 -0
  197. package/dist/components/pieDiagram-4H26LBE5.js +130 -0
  198. package/dist/components/pl-PL-T2D74RX3.js +523 -0
  199. package/dist/components/postal-mime.js +3146 -0
  200. package/dist/components/pptx.js +15 -0
  201. package/dist/components/printLayout.js +42 -0
  202. package/dist/components/prod.js +21770 -0
  203. package/dist/components/pt-BR-5N22H2LF.js +523 -0
  204. package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
  205. package/dist/components/python.js +238 -0
  206. package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
  207. package/dist/components/radar-GUYGQ44K.js +3 -0
  208. package/dist/components/renderer.js +2 -0
  209. package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
  210. package/dist/components/ro-RO-JPDTUUEW.js +523 -0
  211. package/dist/components/rough.esm.js +1355 -0
  212. package/dist/components/roundRect.js +90 -0
  213. package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
  214. package/dist/components/rust.js +169 -0
  215. package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
  216. package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
  217. package/dist/components/shared.js +175 -0
  218. package/dist/components/shared2.js +4 -0
  219. package/dist/components/si-LK-N5RQ5JYF.js +523 -0
  220. package/dist/components/sk-SK-C5VTKIMK.js +523 -0
  221. package/dist/components/sl-SI-NN7IZMDC.js +523 -0
  222. package/dist/components/sourceLoading.js +134 -0
  223. package/dist/components/sql.js +118 -0
  224. package/dist/components/src.js +2664 -0
  225. package/dist/components/src2.js +10722 -0
  226. package/dist/components/stateDiagram-AJRCARHV.js +217 -0
  227. package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
  228. package/dist/components/subset-shared.chunk.js +3 -0
  229. package/dist/components/subset-worker.chunk.js +21 -0
  230. package/dist/components/sv-SE-XGPEYMSR.js +523 -0
  231. package/dist/components/ta-IN-2NMHFXQM.js +523 -0
  232. package/dist/components/text.js +20 -0
  233. package/dist/components/th-TH-HPSO5L25.js +523 -0
  234. package/dist/components/three.module.js +13134 -0
  235. package/dist/components/time.js +910 -0
  236. package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
  237. package/dist/components/tr-TR-DEFEU3FU.js +523 -0
  238. package/dist/components/treeView-BLDUP644.js +3 -0
  239. package/dist/components/treemap-LRROVOQU.js +3 -0
  240. package/dist/components/typescript.js +521 -0
  241. package/dist/components/typst.js +25 -0
  242. package/dist/components/uk-UA-QMV73CPH.js +523 -0
  243. package/dist/components/umd.js +16 -0
  244. package/dist/components/use.js +422 -0
  245. package/dist/components/util.js +49 -0
  246. package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
  247. package/dist/components/vi-VN-M7AON7JQ.js +523 -0
  248. package/dist/components/viewerZoom.js +92 -0
  249. package/dist/components/wardley-L42UT6IY.js +3 -0
  250. package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
  251. package/dist/components/wasm-pack-shim.js +1711 -0
  252. package/dist/components/wasm-pack-shim2.js +934 -0
  253. package/dist/components/wasm.js +97 -0
  254. package/dist/components/word.js +3055 -0
  255. package/dist/components/worker-ref.js +15 -20
  256. package/dist/components/xlsx.js +21 -0
  257. package/dist/components/xml.js +166 -0
  258. package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
  259. package/dist/components/yaml.js +144 -0
  260. package/dist/components/zh-CN-LNUGB5OW.js +523 -0
  261. package/dist/components/zh-HK-E62DVLB3.js +523 -0
  262. package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
  263. package/dist/file-viewer3.css +2 -0
  264. package/dist/index.mjs +3292 -5
  265. package/dist/src/App.vue.d.ts +3 -0
  266. package/dist/src/compare/CompareApp.vue.d.ts +3 -0
  267. package/dist/src/compare/main.d.ts +0 -0
  268. package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
  269. package/dist/src/components/HelloWorld.vue.d.ts +3 -0
  270. package/dist/src/components/utils.d.ts +4 -0
  271. package/dist/src/main.d.ts +0 -0
  272. package/dist/src/package/common/printCapability.d.ts +27 -0
  273. package/dist/src/package/common/printLayout.d.ts +16 -0
  274. package/dist/src/package/common/sourceLoading.d.ts +10 -0
  275. package/dist/src/package/common/type.d.ts +522 -8
  276. package/dist/src/package/common/worker-ref.d.ts +1 -1
  277. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
  278. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
  279. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
  280. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
  281. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
  282. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
  283. package/dist/src/package/components/FileViewer/index.d.ts +1 -1
  284. package/dist/src/package/components/FileViewer/util.d.ts +2 -1
  285. package/dist/src/package/index.d.ts +14 -4
  286. package/dist/src/package/use/documentLocation.d.ts +15 -0
  287. package/dist/src/package/use/documentSearch.d.ts +234 -0
  288. package/dist/src/package/use/index.d.ts +4 -0
  289. package/dist/src/package/use/loading.d.ts +33 -0
  290. package/dist/src/package/use/viewerZoom.d.ts +42 -0
  291. package/dist/src/package/use/worker.d.ts +2 -2
  292. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
  293. package/dist/src/package/vendors/archive/cache.d.ts +10 -0
  294. package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
  295. package/dist/src/package/vendors/archive/index.d.ts +3 -0
  296. package/dist/src/package/vendors/archive/shared.d.ts +24 -0
  297. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
  298. package/dist/src/package/vendors/audio/index.d.ts +7 -0
  299. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
  300. package/dist/src/package/vendors/cad/index.d.ts +8 -0
  301. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
  302. package/dist/src/package/vendors/drawing/index.d.ts +7 -0
  303. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
  304. package/dist/src/package/vendors/ebook/index.d.ts +7 -0
  305. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
  306. package/dist/src/package/vendors/eda/index.d.ts +2 -0
  307. package/dist/src/package/vendors/eda/parser.d.ts +77 -0
  308. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
  309. package/dist/src/package/vendors/email/index.d.ts +2 -0
  310. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
  311. package/dist/src/package/vendors/image/index.d.ts +1 -1
  312. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
  313. package/dist/src/package/vendors/md/index.d.ts +1 -1
  314. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
  315. package/dist/src/package/vendors/model/index.d.ts +3 -0
  316. package/dist/src/package/vendors/model/shared.d.ts +1 -0
  317. package/dist/src/package/vendors/nestedRender.d.ts +10 -0
  318. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
  319. package/dist/src/package/vendors/ofd/index.d.ts +7 -0
  320. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
  321. package/dist/src/package/vendors/pdf/index.d.ts +2 -1
  322. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  323. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
  324. package/dist/src/package/vendors/pptx/index.d.ts +1 -1
  325. package/dist/src/package/vendors/renders.d.ts +1 -1
  326. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
  327. package/dist/src/package/vendors/text/index.d.ts +6 -2
  328. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
  329. package/dist/src/package/vendors/typst/index.d.ts +8 -0
  330. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
  331. package/dist/src/package/vendors/umd/index.d.ts +7 -0
  332. package/dist/src/package/vendors/umd/parser.d.ts +30 -0
  333. package/dist/src/package/vendors/word/doc.d.ts +5 -0
  334. package/dist/src/package/vendors/word/docx.d.ts +5 -0
  335. package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
  336. package/dist/src/package/vendors/word/index.d.ts +3 -0
  337. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
  338. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
  339. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
  340. package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
  341. package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
  342. package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
  343. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
  344. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
  345. package/dist/style.css +1 -57
  346. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  347. package/dist/wasm/cad/dwg-worker.js +24 -0
  348. package/dist/wasm/cad/libredwg-web.js +15 -0
  349. package/dist/wasm/cad/libredwg-web.wasm +0 -0
  350. package/package.json +118 -42
  351. package/.vscode/extensions.json +0 -3
  352. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  353. package/dist/components/_commonjsHelpers.js +0 -36
  354. package/dist/components/docx-preview.min.js +0 -5287
  355. package/dist/components/index.js +0 -1717
  356. package/dist/favicon.ico +0 -0
  357. package/dist/index.umd.js +0 -436
  358. package/dist/src/package/vendors/docx/index.d.ts +0 -4
  359. package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
  360. package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  361. package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  362. package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  363. package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  364. package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  365. package/dist/worker/pdf.worker.js +0 -66
  366. package/dist/worker/pptx.worker.js +0 -21
  367. package/dist/worker/sheet.worker.js +0 -38
  368. package/dist/worker/xlsx.worker.js +0 -65
  369. /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
  370. /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
@@ -0,0 +1,2055 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ import { n, r } from "./chunk-AGHRB4JF.js";
3
+ import { H as i, K as a, U as o, a as s, s as c, v as l, w as u, x as d, y as f } from "./chunk-CSCIHK7Q.js";
4
+ import { g as p, s as m } from "./chunk-5ZQYHXKU.js";
5
+ import { r as h } from "./chunk-LZXEDZCA.js";
6
+ import { t as g } from "./chunk-55IACEB6.js";
7
+ import { t as _ } from "./chunk-2J33WTMH.js";
8
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AQP2D5EJ.mjs
9
+ e();
10
+ var v, y = (function() {
11
+ var e = /* @__PURE__ */ n(function(e, t, n, r) {
12
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
13
+ return n;
14
+ }, "o"), t = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 16], l = [1, 17], u = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
15
+ 1,
16
+ 4,
17
+ 5,
18
+ 16,
19
+ 17,
20
+ 19,
21
+ 21,
22
+ 22,
23
+ 24,
24
+ 25,
25
+ 26,
26
+ 27,
27
+ 28,
28
+ 29,
29
+ 33,
30
+ 35,
31
+ 37,
32
+ 38,
33
+ 41,
34
+ 45,
35
+ 48,
36
+ 51,
37
+ 52,
38
+ 53,
39
+ 54,
40
+ 57
41
+ ], j = [
42
+ 1,
43
+ 4,
44
+ 5,
45
+ 14,
46
+ 15,
47
+ 16,
48
+ 17,
49
+ 19,
50
+ 21,
51
+ 22,
52
+ 24,
53
+ 25,
54
+ 26,
55
+ 27,
56
+ 28,
57
+ 29,
58
+ 33,
59
+ 35,
60
+ 37,
61
+ 38,
62
+ 39,
63
+ 40,
64
+ 41,
65
+ 45,
66
+ 48,
67
+ 51,
68
+ 52,
69
+ 53,
70
+ 54,
71
+ 57
72
+ ], M = [
73
+ 4,
74
+ 5,
75
+ 16,
76
+ 17,
77
+ 19,
78
+ 21,
79
+ 22,
80
+ 24,
81
+ 25,
82
+ 26,
83
+ 27,
84
+ 28,
85
+ 29,
86
+ 33,
87
+ 35,
88
+ 37,
89
+ 38,
90
+ 41,
91
+ 45,
92
+ 48,
93
+ 51,
94
+ 52,
95
+ 53,
96
+ 54,
97
+ 57
98
+ ], N = {
99
+ trace: /* @__PURE__ */ n(function() {}, "trace"),
100
+ yy: {},
101
+ symbols_: {
102
+ error: 2,
103
+ start: 3,
104
+ SPACE: 4,
105
+ NL: 5,
106
+ SD: 6,
107
+ document: 7,
108
+ line: 8,
109
+ statement: 9,
110
+ classDefStatement: 10,
111
+ styleStatement: 11,
112
+ cssClassStatement: 12,
113
+ idStatement: 13,
114
+ DESCR: 14,
115
+ "-->": 15,
116
+ HIDE_EMPTY: 16,
117
+ scale: 17,
118
+ WIDTH: 18,
119
+ COMPOSIT_STATE: 19,
120
+ STRUCT_START: 20,
121
+ STRUCT_STOP: 21,
122
+ STATE_DESCR: 22,
123
+ AS: 23,
124
+ ID: 24,
125
+ FORK: 25,
126
+ JOIN: 26,
127
+ CHOICE: 27,
128
+ CONCURRENT: 28,
129
+ note: 29,
130
+ notePosition: 30,
131
+ NOTE_TEXT: 31,
132
+ direction: 32,
133
+ acc_title: 33,
134
+ acc_title_value: 34,
135
+ acc_descr: 35,
136
+ acc_descr_value: 36,
137
+ acc_descr_multiline_value: 37,
138
+ CLICK: 38,
139
+ STRING: 39,
140
+ HREF: 40,
141
+ classDef: 41,
142
+ CLASSDEF_ID: 42,
143
+ CLASSDEF_STYLEOPTS: 43,
144
+ DEFAULT: 44,
145
+ style: 45,
146
+ STYLE_IDS: 46,
147
+ STYLEDEF_STYLEOPTS: 47,
148
+ class: 48,
149
+ CLASSENTITY_IDS: 49,
150
+ STYLECLASS: 50,
151
+ direction_tb: 51,
152
+ direction_bt: 52,
153
+ direction_rl: 53,
154
+ direction_lr: 54,
155
+ eol: 55,
156
+ ";": 56,
157
+ EDGE_STATE: 57,
158
+ STYLE_SEPARATOR: 58,
159
+ left_of: 59,
160
+ right_of: 60,
161
+ $accept: 0,
162
+ $end: 1
163
+ },
164
+ terminals_: {
165
+ 2: "error",
166
+ 4: "SPACE",
167
+ 5: "NL",
168
+ 6: "SD",
169
+ 14: "DESCR",
170
+ 15: "-->",
171
+ 16: "HIDE_EMPTY",
172
+ 17: "scale",
173
+ 18: "WIDTH",
174
+ 19: "COMPOSIT_STATE",
175
+ 20: "STRUCT_START",
176
+ 21: "STRUCT_STOP",
177
+ 22: "STATE_DESCR",
178
+ 23: "AS",
179
+ 24: "ID",
180
+ 25: "FORK",
181
+ 26: "JOIN",
182
+ 27: "CHOICE",
183
+ 28: "CONCURRENT",
184
+ 29: "note",
185
+ 31: "NOTE_TEXT",
186
+ 33: "acc_title",
187
+ 34: "acc_title_value",
188
+ 35: "acc_descr",
189
+ 36: "acc_descr_value",
190
+ 37: "acc_descr_multiline_value",
191
+ 38: "CLICK",
192
+ 39: "STRING",
193
+ 40: "HREF",
194
+ 41: "classDef",
195
+ 42: "CLASSDEF_ID",
196
+ 43: "CLASSDEF_STYLEOPTS",
197
+ 44: "DEFAULT",
198
+ 45: "style",
199
+ 46: "STYLE_IDS",
200
+ 47: "STYLEDEF_STYLEOPTS",
201
+ 48: "class",
202
+ 49: "CLASSENTITY_IDS",
203
+ 50: "STYLECLASS",
204
+ 51: "direction_tb",
205
+ 52: "direction_bt",
206
+ 53: "direction_rl",
207
+ 54: "direction_lr",
208
+ 56: ";",
209
+ 57: "EDGE_STATE",
210
+ 58: "STYLE_SEPARATOR",
211
+ 59: "left_of",
212
+ 60: "right_of"
213
+ },
214
+ productions_: [
215
+ 0,
216
+ [3, 2],
217
+ [3, 2],
218
+ [3, 2],
219
+ [7, 0],
220
+ [7, 2],
221
+ [8, 2],
222
+ [8, 1],
223
+ [8, 1],
224
+ [9, 1],
225
+ [9, 1],
226
+ [9, 1],
227
+ [9, 1],
228
+ [9, 2],
229
+ [9, 3],
230
+ [9, 4],
231
+ [9, 1],
232
+ [9, 2],
233
+ [9, 1],
234
+ [9, 4],
235
+ [9, 3],
236
+ [9, 6],
237
+ [9, 1],
238
+ [9, 1],
239
+ [9, 1],
240
+ [9, 1],
241
+ [9, 4],
242
+ [9, 4],
243
+ [9, 1],
244
+ [9, 2],
245
+ [9, 2],
246
+ [9, 1],
247
+ [9, 5],
248
+ [9, 5],
249
+ [10, 3],
250
+ [10, 3],
251
+ [11, 3],
252
+ [12, 3],
253
+ [32, 1],
254
+ [32, 1],
255
+ [32, 1],
256
+ [32, 1],
257
+ [55, 1],
258
+ [55, 1],
259
+ [13, 1],
260
+ [13, 1],
261
+ [13, 3],
262
+ [13, 3],
263
+ [30, 1],
264
+ [30, 1]
265
+ ],
266
+ performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
267
+ var s = a.length - 1;
268
+ switch (i) {
269
+ case 3: return r.setRootDoc(a[s]), a[s];
270
+ case 4:
271
+ this.$ = [];
272
+ break;
273
+ case 5:
274
+ a[s] != "nl" && (a[s - 1].push(a[s]), this.$ = a[s - 1]);
275
+ break;
276
+ case 6:
277
+ case 7:
278
+ this.$ = a[s];
279
+ break;
280
+ case 8:
281
+ this.$ = "nl";
282
+ break;
283
+ case 12:
284
+ this.$ = a[s];
285
+ break;
286
+ case 13:
287
+ let e = a[s - 1];
288
+ e.description = r.trimColon(a[s]), this.$ = e;
289
+ break;
290
+ case 14:
291
+ this.$ = {
292
+ stmt: "relation",
293
+ state1: a[s - 2],
294
+ state2: a[s]
295
+ };
296
+ break;
297
+ case 15:
298
+ let t = r.trimColon(a[s]);
299
+ this.$ = {
300
+ stmt: "relation",
301
+ state1: a[s - 3],
302
+ state2: a[s - 1],
303
+ description: t
304
+ };
305
+ break;
306
+ case 19:
307
+ this.$ = {
308
+ stmt: "state",
309
+ id: a[s - 3],
310
+ type: "default",
311
+ description: "",
312
+ doc: a[s - 1]
313
+ };
314
+ break;
315
+ case 20:
316
+ var c = a[s], l = a[s - 2].trim();
317
+ if (a[s].match(":")) {
318
+ var u = a[s].split(":");
319
+ c = u[0], l = [l, u[1]];
320
+ }
321
+ this.$ = {
322
+ stmt: "state",
323
+ id: c,
324
+ type: "default",
325
+ description: l
326
+ };
327
+ break;
328
+ case 21:
329
+ this.$ = {
330
+ stmt: "state",
331
+ id: a[s - 3],
332
+ type: "default",
333
+ description: a[s - 5],
334
+ doc: a[s - 1]
335
+ };
336
+ break;
337
+ case 22:
338
+ this.$ = {
339
+ stmt: "state",
340
+ id: a[s],
341
+ type: "fork"
342
+ };
343
+ break;
344
+ case 23:
345
+ this.$ = {
346
+ stmt: "state",
347
+ id: a[s],
348
+ type: "join"
349
+ };
350
+ break;
351
+ case 24:
352
+ this.$ = {
353
+ stmt: "state",
354
+ id: a[s],
355
+ type: "choice"
356
+ };
357
+ break;
358
+ case 25:
359
+ this.$ = {
360
+ stmt: "state",
361
+ id: r.getDividerId(),
362
+ type: "divider"
363
+ };
364
+ break;
365
+ case 26:
366
+ this.$ = {
367
+ stmt: "state",
368
+ id: a[s - 1].trim(),
369
+ note: {
370
+ position: a[s - 2].trim(),
371
+ text: a[s].trim()
372
+ }
373
+ };
374
+ break;
375
+ case 29:
376
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
377
+ break;
378
+ case 30:
379
+ case 31:
380
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
381
+ break;
382
+ case 32:
383
+ this.$ = {
384
+ stmt: "click",
385
+ id: a[s - 3],
386
+ url: a[s - 2],
387
+ tooltip: a[s - 1]
388
+ };
389
+ break;
390
+ case 33:
391
+ this.$ = {
392
+ stmt: "click",
393
+ id: a[s - 3],
394
+ url: a[s - 1],
395
+ tooltip: ""
396
+ };
397
+ break;
398
+ case 34:
399
+ case 35:
400
+ this.$ = {
401
+ stmt: "classDef",
402
+ id: a[s - 1].trim(),
403
+ classes: a[s].trim()
404
+ };
405
+ break;
406
+ case 36:
407
+ this.$ = {
408
+ stmt: "style",
409
+ id: a[s - 1].trim(),
410
+ styleClass: a[s].trim()
411
+ };
412
+ break;
413
+ case 37:
414
+ this.$ = {
415
+ stmt: "applyClass",
416
+ id: a[s - 1].trim(),
417
+ styleClass: a[s].trim()
418
+ };
419
+ break;
420
+ case 38:
421
+ r.setDirection("TB"), this.$ = {
422
+ stmt: "dir",
423
+ value: "TB"
424
+ };
425
+ break;
426
+ case 39:
427
+ r.setDirection("BT"), this.$ = {
428
+ stmt: "dir",
429
+ value: "BT"
430
+ };
431
+ break;
432
+ case 40:
433
+ r.setDirection("RL"), this.$ = {
434
+ stmt: "dir",
435
+ value: "RL"
436
+ };
437
+ break;
438
+ case 41:
439
+ r.setDirection("LR"), this.$ = {
440
+ stmt: "dir",
441
+ value: "LR"
442
+ };
443
+ break;
444
+ case 44:
445
+ case 45:
446
+ this.$ = {
447
+ stmt: "state",
448
+ id: a[s].trim(),
449
+ type: "default",
450
+ description: ""
451
+ };
452
+ break;
453
+ case 46:
454
+ this.$ = {
455
+ stmt: "state",
456
+ id: a[s - 2].trim(),
457
+ classes: [a[s].trim()],
458
+ type: "default",
459
+ description: ""
460
+ };
461
+ break;
462
+ case 47:
463
+ this.$ = {
464
+ stmt: "state",
465
+ id: a[s - 2].trim(),
466
+ classes: [a[s].trim()],
467
+ type: "default",
468
+ description: ""
469
+ };
470
+ break;
471
+ }
472
+ }, "anonymous"),
473
+ table: [
474
+ {
475
+ 3: 1,
476
+ 4: t,
477
+ 5: r,
478
+ 6: i
479
+ },
480
+ { 1: [3] },
481
+ {
482
+ 3: 5,
483
+ 4: t,
484
+ 5: r,
485
+ 6: i
486
+ },
487
+ {
488
+ 3: 6,
489
+ 4: t,
490
+ 5: r,
491
+ 6: i
492
+ },
493
+ e([
494
+ 1,
495
+ 4,
496
+ 5,
497
+ 16,
498
+ 17,
499
+ 19,
500
+ 22,
501
+ 24,
502
+ 25,
503
+ 26,
504
+ 27,
505
+ 28,
506
+ 29,
507
+ 33,
508
+ 35,
509
+ 37,
510
+ 38,
511
+ 41,
512
+ 45,
513
+ 48,
514
+ 51,
515
+ 52,
516
+ 53,
517
+ 54,
518
+ 57
519
+ ], a, { 7: 7 }),
520
+ { 1: [2, 1] },
521
+ { 1: [2, 2] },
522
+ {
523
+ 1: [2, 3],
524
+ 4: o,
525
+ 5: s,
526
+ 8: 8,
527
+ 9: 10,
528
+ 10: 12,
529
+ 11: 13,
530
+ 12: 14,
531
+ 13: 15,
532
+ 16: c,
533
+ 17: l,
534
+ 19: u,
535
+ 22: d,
536
+ 24: f,
537
+ 25: p,
538
+ 26: m,
539
+ 27: h,
540
+ 28: g,
541
+ 29: _,
542
+ 32: 25,
543
+ 33: v,
544
+ 35: y,
545
+ 37: b,
546
+ 38: x,
547
+ 41: S,
548
+ 45: C,
549
+ 48: w,
550
+ 51: T,
551
+ 52: E,
552
+ 53: D,
553
+ 54: O,
554
+ 57: k
555
+ },
556
+ e(A, [2, 5]),
557
+ {
558
+ 9: 39,
559
+ 10: 12,
560
+ 11: 13,
561
+ 12: 14,
562
+ 13: 15,
563
+ 16: c,
564
+ 17: l,
565
+ 19: u,
566
+ 22: d,
567
+ 24: f,
568
+ 25: p,
569
+ 26: m,
570
+ 27: h,
571
+ 28: g,
572
+ 29: _,
573
+ 32: 25,
574
+ 33: v,
575
+ 35: y,
576
+ 37: b,
577
+ 38: x,
578
+ 41: S,
579
+ 45: C,
580
+ 48: w,
581
+ 51: T,
582
+ 52: E,
583
+ 53: D,
584
+ 54: O,
585
+ 57: k
586
+ },
587
+ e(A, [2, 7]),
588
+ e(A, [2, 8]),
589
+ e(A, [2, 9]),
590
+ e(A, [2, 10]),
591
+ e(A, [2, 11]),
592
+ e(A, [2, 12], {
593
+ 14: [1, 40],
594
+ 15: [1, 41]
595
+ }),
596
+ e(A, [2, 16]),
597
+ { 18: [1, 42] },
598
+ e(A, [2, 18], { 20: [1, 43] }),
599
+ { 23: [1, 44] },
600
+ e(A, [2, 22]),
601
+ e(A, [2, 23]),
602
+ e(A, [2, 24]),
603
+ e(A, [2, 25]),
604
+ {
605
+ 30: 45,
606
+ 31: [1, 46],
607
+ 59: [1, 47],
608
+ 60: [1, 48]
609
+ },
610
+ e(A, [2, 28]),
611
+ { 34: [1, 49] },
612
+ { 36: [1, 50] },
613
+ e(A, [2, 31]),
614
+ {
615
+ 13: 51,
616
+ 24: f,
617
+ 57: k
618
+ },
619
+ {
620
+ 42: [1, 52],
621
+ 44: [1, 53]
622
+ },
623
+ { 46: [1, 54] },
624
+ { 49: [1, 55] },
625
+ e(j, [2, 44], { 58: [1, 56] }),
626
+ e(j, [2, 45], { 58: [1, 57] }),
627
+ e(A, [2, 38]),
628
+ e(A, [2, 39]),
629
+ e(A, [2, 40]),
630
+ e(A, [2, 41]),
631
+ e(A, [2, 6]),
632
+ e(A, [2, 13]),
633
+ {
634
+ 13: 58,
635
+ 24: f,
636
+ 57: k
637
+ },
638
+ e(A, [2, 17]),
639
+ e(M, a, { 7: 59 }),
640
+ { 24: [1, 60] },
641
+ { 24: [1, 61] },
642
+ { 23: [1, 62] },
643
+ { 24: [2, 48] },
644
+ { 24: [2, 49] },
645
+ e(A, [2, 29]),
646
+ e(A, [2, 30]),
647
+ {
648
+ 39: [1, 63],
649
+ 40: [1, 64]
650
+ },
651
+ { 43: [1, 65] },
652
+ { 43: [1, 66] },
653
+ { 47: [1, 67] },
654
+ { 50: [1, 68] },
655
+ { 24: [1, 69] },
656
+ { 24: [1, 70] },
657
+ e(A, [2, 14], { 14: [1, 71] }),
658
+ {
659
+ 4: o,
660
+ 5: s,
661
+ 8: 8,
662
+ 9: 10,
663
+ 10: 12,
664
+ 11: 13,
665
+ 12: 14,
666
+ 13: 15,
667
+ 16: c,
668
+ 17: l,
669
+ 19: u,
670
+ 21: [1, 72],
671
+ 22: d,
672
+ 24: f,
673
+ 25: p,
674
+ 26: m,
675
+ 27: h,
676
+ 28: g,
677
+ 29: _,
678
+ 32: 25,
679
+ 33: v,
680
+ 35: y,
681
+ 37: b,
682
+ 38: x,
683
+ 41: S,
684
+ 45: C,
685
+ 48: w,
686
+ 51: T,
687
+ 52: E,
688
+ 53: D,
689
+ 54: O,
690
+ 57: k
691
+ },
692
+ e(A, [2, 20], { 20: [1, 73] }),
693
+ { 31: [1, 74] },
694
+ { 24: [1, 75] },
695
+ { 39: [1, 76] },
696
+ { 39: [1, 77] },
697
+ e(A, [2, 34]),
698
+ e(A, [2, 35]),
699
+ e(A, [2, 36]),
700
+ e(A, [2, 37]),
701
+ e(j, [2, 46]),
702
+ e(j, [2, 47]),
703
+ e(A, [2, 15]),
704
+ e(A, [2, 19]),
705
+ e(M, a, { 7: 78 }),
706
+ e(A, [2, 26]),
707
+ e(A, [2, 27]),
708
+ { 5: [1, 79] },
709
+ { 5: [1, 80] },
710
+ {
711
+ 4: o,
712
+ 5: s,
713
+ 8: 8,
714
+ 9: 10,
715
+ 10: 12,
716
+ 11: 13,
717
+ 12: 14,
718
+ 13: 15,
719
+ 16: c,
720
+ 17: l,
721
+ 19: u,
722
+ 21: [1, 81],
723
+ 22: d,
724
+ 24: f,
725
+ 25: p,
726
+ 26: m,
727
+ 27: h,
728
+ 28: g,
729
+ 29: _,
730
+ 32: 25,
731
+ 33: v,
732
+ 35: y,
733
+ 37: b,
734
+ 38: x,
735
+ 41: S,
736
+ 45: C,
737
+ 48: w,
738
+ 51: T,
739
+ 52: E,
740
+ 53: D,
741
+ 54: O,
742
+ 57: k
743
+ },
744
+ e(A, [2, 32]),
745
+ e(A, [2, 33]),
746
+ e(A, [2, 21])
747
+ ],
748
+ defaultActions: {
749
+ 5: [2, 1],
750
+ 6: [2, 2],
751
+ 47: [2, 48],
752
+ 48: [2, 49]
753
+ },
754
+ parseError: /* @__PURE__ */ n(function(e, t) {
755
+ if (t.recoverable) this.trace(e);
756
+ else {
757
+ var n = Error(e);
758
+ throw n.hash = t, n;
759
+ }
760
+ }, "parseError"),
761
+ parse: /* @__PURE__ */ n(function(e) {
762
+ var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
763
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
764
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
765
+ var v = h.yylloc;
766
+ o.push(v);
767
+ var y = h.options && h.options.ranges;
768
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
769
+ function b(e) {
770
+ r.length -= 2 * e, a.length -= e, o.length -= e;
771
+ }
772
+ n(b, "popStack");
773
+ function x() {
774
+ var e = i.pop() || h.lex() || p;
775
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
776
+ }
777
+ n(x, "lex");
778
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
779
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
780
+ var M = "";
781
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
782
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
783
+ text: h.match,
784
+ token: this.terminals_[S] || S,
785
+ line: h.yylineno,
786
+ loc: v,
787
+ expected: j
788
+ });
789
+ }
790
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
791
+ switch (T[0]) {
792
+ case 1:
793
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
794
+ break;
795
+ case 2:
796
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
797
+ first_line: o[o.length - (k || 1)].first_line,
798
+ last_line: o[o.length - 1].last_line,
799
+ first_column: o[o.length - (k || 1)].first_column,
800
+ last_column: o[o.length - 1].last_column
801
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
802
+ c,
803
+ u,
804
+ l,
805
+ g.yy,
806
+ T[1],
807
+ a,
808
+ o
809
+ ].concat(m)), E !== void 0) return E;
810
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
811
+ break;
812
+ case 3: return !0;
813
+ }
814
+ }
815
+ return !0;
816
+ }, "parse")
817
+ };
818
+ N.lexer = /* @__PURE__ */ (function() {
819
+ return {
820
+ EOF: 1,
821
+ parseError: /* @__PURE__ */ n(function(e, t) {
822
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
823
+ else throw Error(e);
824
+ }, "parseError"),
825
+ setInput: /* @__PURE__ */ n(function(e, t) {
826
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
827
+ first_line: 1,
828
+ first_column: 0,
829
+ last_line: 1,
830
+ last_column: 0
831
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
832
+ }, "setInput"),
833
+ input: /* @__PURE__ */ n(function() {
834
+ var e = this._input[0];
835
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
836
+ }, "input"),
837
+ unput: /* @__PURE__ */ n(function(e) {
838
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
839
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
840
+ var r = this.match.split(/(?:\r\n?|\n)/g);
841
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
842
+ var i = this.yylloc.range;
843
+ return this.yylloc = {
844
+ first_line: this.yylloc.first_line,
845
+ last_line: this.yylineno + 1,
846
+ first_column: this.yylloc.first_column,
847
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
848
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
849
+ }, "unput"),
850
+ more: /* @__PURE__ */ n(function() {
851
+ return this._more = !0, this;
852
+ }, "more"),
853
+ reject: /* @__PURE__ */ n(function() {
854
+ if (this.options.backtrack_lexer) this._backtrack = !0;
855
+ else 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(), {
856
+ text: "",
857
+ token: null,
858
+ line: this.yylineno
859
+ });
860
+ return this;
861
+ }, "reject"),
862
+ less: /* @__PURE__ */ n(function(e) {
863
+ this.unput(this.match.slice(e));
864
+ }, "less"),
865
+ pastInput: /* @__PURE__ */ n(function() {
866
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
867
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
868
+ }, "pastInput"),
869
+ upcomingInput: /* @__PURE__ */ n(function() {
870
+ var e = this.match;
871
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
872
+ }, "upcomingInput"),
873
+ showPosition: /* @__PURE__ */ n(function() {
874
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
875
+ return e + this.upcomingInput() + "\n" + t + "^";
876
+ }, "showPosition"),
877
+ test_match: /* @__PURE__ */ n(function(e, t) {
878
+ var n, r, i;
879
+ if (this.options.backtrack_lexer && (i = {
880
+ yylineno: this.yylineno,
881
+ yylloc: {
882
+ first_line: this.yylloc.first_line,
883
+ last_line: this.last_line,
884
+ first_column: this.yylloc.first_column,
885
+ last_column: this.yylloc.last_column
886
+ },
887
+ yytext: this.yytext,
888
+ match: this.match,
889
+ matches: this.matches,
890
+ matched: this.matched,
891
+ yyleng: this.yyleng,
892
+ offset: this.offset,
893
+ _more: this._more,
894
+ _input: this._input,
895
+ yy: this.yy,
896
+ conditionStack: this.conditionStack.slice(0),
897
+ done: this.done
898
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
899
+ first_line: this.yylloc.last_line,
900
+ last_line: this.yylineno + 1,
901
+ first_column: this.yylloc.last_column,
902
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
903
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
904
+ if (this._backtrack) {
905
+ for (var a in i) this[a] = i[a];
906
+ return !1;
907
+ }
908
+ return !1;
909
+ }, "test_match"),
910
+ next: /* @__PURE__ */ n(function() {
911
+ if (this.done) return this.EOF;
912
+ this._input || (this.done = !0);
913
+ var e, t, n, r;
914
+ this._more || (this.yytext = "", this.match = "");
915
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
916
+ if (t = n, r = a, this.options.backtrack_lexer) {
917
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
918
+ if (this._backtrack) {
919
+ t = !1;
920
+ continue;
921
+ } else return !1;
922
+ } else if (!this.options.flex) break;
923
+ }
924
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
925
+ text: "",
926
+ token: null,
927
+ line: this.yylineno
928
+ });
929
+ }, "next"),
930
+ lex: /* @__PURE__ */ n(function() {
931
+ return this.next() || this.lex();
932
+ }, "lex"),
933
+ begin: /* @__PURE__ */ n(function(e) {
934
+ this.conditionStack.push(e);
935
+ }, "begin"),
936
+ popState: /* @__PURE__ */ n(function() {
937
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
938
+ }, "popState"),
939
+ _currentRules: /* @__PURE__ */ n(function() {
940
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
941
+ }, "_currentRules"),
942
+ topState: /* @__PURE__ */ n(function(e) {
943
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
944
+ }, "topState"),
945
+ pushState: /* @__PURE__ */ n(function(e) {
946
+ this.begin(e);
947
+ }, "pushState"),
948
+ stateStackSize: /* @__PURE__ */ n(function() {
949
+ return this.conditionStack.length;
950
+ }, "stateStackSize"),
951
+ options: { "case-insensitive": !0 },
952
+ performAction: /* @__PURE__ */ n(function(e, t, r, i) {
953
+ function a() {
954
+ let n = t.yytext.indexOf("%%");
955
+ if (n === 0) return !1;
956
+ if (n > 0) {
957
+ let r = t.yytext.slice(0, n), i = t.yytext.slice(n);
958
+ i && e.lexer.unput(i), t.yytext = r;
959
+ }
960
+ return !0;
961
+ }
962
+ switch (n(a, "processId"), r) {
963
+ case 0: return 38;
964
+ case 1: return 40;
965
+ case 2: return 39;
966
+ case 3: return 44;
967
+ case 4: return 51;
968
+ case 5: return 52;
969
+ case 6: return 53;
970
+ case 7: return 54;
971
+ case 8: return 5;
972
+ case 9: break;
973
+ case 10: break;
974
+ case 11: break;
975
+ case 12: break;
976
+ case 13: return this.pushState("SCALE"), 17;
977
+ case 14: return 18;
978
+ case 15:
979
+ this.popState();
980
+ break;
981
+ case 16: return this.begin("acc_title"), 33;
982
+ case 17: return this.popState(), "acc_title_value";
983
+ case 18: return this.begin("acc_descr"), 35;
984
+ case 19: return this.popState(), "acc_descr_value";
985
+ case 20:
986
+ this.begin("acc_descr_multiline");
987
+ break;
988
+ case 21:
989
+ this.popState();
990
+ break;
991
+ case 22: return "acc_descr_multiline_value";
992
+ case 23: return this.pushState("CLASSDEF"), 41;
993
+ case 24: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
994
+ case 25: return this.popState(), this.pushState("CLASSDEFID"), 42;
995
+ case 26: return this.popState(), 43;
996
+ case 27: return this.pushState("CLASS"), 48;
997
+ case 28: return this.popState(), this.pushState("CLASS_STYLE"), 49;
998
+ case 29: return this.popState(), 50;
999
+ case 30: return this.pushState("STYLE"), 45;
1000
+ case 31: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
1001
+ case 32: return this.popState(), 47;
1002
+ case 33: return this.pushState("SCALE"), 17;
1003
+ case 34: return 18;
1004
+ case 35:
1005
+ this.popState();
1006
+ break;
1007
+ case 36:
1008
+ this.pushState("STATE");
1009
+ break;
1010
+ case 37: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1011
+ case 38: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1012
+ case 39: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1013
+ case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1014
+ case 41: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1015
+ case 42: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1016
+ case 43: return 51;
1017
+ case 44: return 52;
1018
+ case 45: return 53;
1019
+ case 46: return 54;
1020
+ case 47:
1021
+ this.pushState("STATE_STRING");
1022
+ break;
1023
+ case 48: return this.pushState("STATE_ID"), "AS";
1024
+ case 49: return a() ? (this.popState(), "ID") : void 0;
1025
+ case 50:
1026
+ this.popState();
1027
+ break;
1028
+ case 51: return "STATE_DESCR";
1029
+ case 52: return 19;
1030
+ case 53:
1031
+ this.popState();
1032
+ break;
1033
+ case 54: return this.popState(), this.pushState("struct"), 20;
1034
+ case 55: return this.popState(), 21;
1035
+ case 56: break;
1036
+ case 57: return this.begin("NOTE"), 29;
1037
+ case 58: return this.popState(), this.pushState("NOTE_ID"), 59;
1038
+ case 59: return this.popState(), this.pushState("NOTE_ID"), 60;
1039
+ case 60:
1040
+ this.popState(), this.pushState("FLOATING_NOTE");
1041
+ break;
1042
+ case 61: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1043
+ case 62: break;
1044
+ case 63: return "NOTE_TEXT";
1045
+ case 64: return a() ? (this.popState(), "ID") : void 0;
1046
+ case 65: return a() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1047
+ case 66: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
1048
+ case 67: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
1049
+ case 68: return 6;
1050
+ case 69: return 6;
1051
+ case 70: return 16;
1052
+ case 71: return 57;
1053
+ case 72: return a() ? 24 : void 0;
1054
+ case 73: return t.yytext = t.yytext.trim(), 14;
1055
+ case 74: return 15;
1056
+ case 75: return 28;
1057
+ case 76: return 58;
1058
+ case 77: return 5;
1059
+ case 78: return "INVALID";
1060
+ }
1061
+ }, "anonymous"),
1062
+ rules: [
1063
+ /^(?:click\b)/i,
1064
+ /^(?:href\b)/i,
1065
+ /^(?:"[^"]*")/i,
1066
+ /^(?:default\b)/i,
1067
+ /^(?:.*direction\s+TB[^\n]*)/i,
1068
+ /^(?:.*direction\s+BT[^\n]*)/i,
1069
+ /^(?:.*direction\s+RL[^\n]*)/i,
1070
+ /^(?:.*direction\s+LR[^\n]*)/i,
1071
+ /^(?:[\n]+)/i,
1072
+ /^(?:[\s]+)/i,
1073
+ /^(?:((?!\n)\s)+)/i,
1074
+ /^(?:#[^\n]*)/i,
1075
+ /^(?:%%(?!\{)[^\n]*)/i,
1076
+ /^(?:scale\s+)/i,
1077
+ /^(?:\d+)/i,
1078
+ /^(?:\s+width\b)/i,
1079
+ /^(?:accTitle\s*:\s*)/i,
1080
+ /^(?:(?!\n||)*[^\n]*)/i,
1081
+ /^(?:accDescr\s*:\s*)/i,
1082
+ /^(?:(?!\n||)*[^\n]*)/i,
1083
+ /^(?:accDescr\s*\{\s*)/i,
1084
+ /^(?:[\}])/i,
1085
+ /^(?:[^\}]*)/i,
1086
+ /^(?:classDef\s+)/i,
1087
+ /^(?:DEFAULT\s+)/i,
1088
+ /^(?:\w+\s+)/i,
1089
+ /^(?:[^\n]*)/i,
1090
+ /^(?:class\s+)/i,
1091
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1092
+ /^(?:[^\n]*)/i,
1093
+ /^(?:style\s+)/i,
1094
+ /^(?:[\w,]+\s+)/i,
1095
+ /^(?:[^\n]*)/i,
1096
+ /^(?:scale\s+)/i,
1097
+ /^(?:\d+)/i,
1098
+ /^(?:\s+width\b)/i,
1099
+ /^(?:state\s+)/i,
1100
+ /^(?:.*<<fork>>)/i,
1101
+ /^(?:.*<<join>>)/i,
1102
+ /^(?:.*<<choice>>)/i,
1103
+ /^(?:.*\[\[fork\]\])/i,
1104
+ /^(?:.*\[\[join\]\])/i,
1105
+ /^(?:.*\[\[choice\]\])/i,
1106
+ /^(?:.*direction\s+TB[^\n]*)/i,
1107
+ /^(?:.*direction\s+BT[^\n]*)/i,
1108
+ /^(?:.*direction\s+RL[^\n]*)/i,
1109
+ /^(?:.*direction\s+LR[^\n]*)/i,
1110
+ /^(?:["])/i,
1111
+ /^(?:\s*as\s+)/i,
1112
+ /^(?:[^\n\{]*)/i,
1113
+ /^(?:["])/i,
1114
+ /^(?:[^"]*)/i,
1115
+ /^(?:[^\n\s\{]+)/i,
1116
+ /^(?:\n)/i,
1117
+ /^(?:\{)/i,
1118
+ /^(?:\})/i,
1119
+ /^(?:[\n])/i,
1120
+ /^(?:note\s+)/i,
1121
+ /^(?:left of\b)/i,
1122
+ /^(?:right of\b)/i,
1123
+ /^(?:")/i,
1124
+ /^(?:\s*as\s*)/i,
1125
+ /^(?:["])/i,
1126
+ /^(?:[^"]*)/i,
1127
+ /^(?:[^\n]*)/i,
1128
+ /^(?:\s*[^:\n\s\-]+)/i,
1129
+ /^(?:\s*:[^:\n;]+)/i,
1130
+ /^(?:[\s\S]*?\n\s*end note\b)/i,
1131
+ /^(?:stateDiagram\s+)/i,
1132
+ /^(?:stateDiagram-v2\s+)/i,
1133
+ /^(?:hide empty description\b)/i,
1134
+ /^(?:\[\*\])/i,
1135
+ /^(?:[^:\n\s\-\{]+)/i,
1136
+ /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1137
+ /^(?:-->)/i,
1138
+ /^(?:--)/i,
1139
+ /^(?::::)/i,
1140
+ /^(?:$)/i,
1141
+ /^(?:.)/i
1142
+ ],
1143
+ conditions: {
1144
+ LINE: {
1145
+ rules: [
1146
+ 10,
1147
+ 11,
1148
+ 12
1149
+ ],
1150
+ inclusive: !1
1151
+ },
1152
+ struct: {
1153
+ rules: [
1154
+ 10,
1155
+ 11,
1156
+ 12,
1157
+ 23,
1158
+ 27,
1159
+ 30,
1160
+ 36,
1161
+ 43,
1162
+ 44,
1163
+ 45,
1164
+ 46,
1165
+ 55,
1166
+ 56,
1167
+ 57,
1168
+ 71,
1169
+ 72,
1170
+ 73,
1171
+ 74,
1172
+ 75,
1173
+ 76
1174
+ ],
1175
+ inclusive: !1
1176
+ },
1177
+ FLOATING_NOTE_ID: {
1178
+ rules: [64],
1179
+ inclusive: !1
1180
+ },
1181
+ FLOATING_NOTE: {
1182
+ rules: [
1183
+ 61,
1184
+ 62,
1185
+ 63
1186
+ ],
1187
+ inclusive: !1
1188
+ },
1189
+ NOTE_TEXT: {
1190
+ rules: [66, 67],
1191
+ inclusive: !1
1192
+ },
1193
+ NOTE_ID: {
1194
+ rules: [65],
1195
+ inclusive: !1
1196
+ },
1197
+ NOTE: {
1198
+ rules: [
1199
+ 58,
1200
+ 59,
1201
+ 60
1202
+ ],
1203
+ inclusive: !1
1204
+ },
1205
+ STYLEDEF_STYLEOPTS: {
1206
+ rules: [],
1207
+ inclusive: !1
1208
+ },
1209
+ STYLEDEF_STYLES: {
1210
+ rules: [32],
1211
+ inclusive: !1
1212
+ },
1213
+ STYLE_IDS: {
1214
+ rules: [],
1215
+ inclusive: !1
1216
+ },
1217
+ STYLE: {
1218
+ rules: [31],
1219
+ inclusive: !1
1220
+ },
1221
+ CLASS_STYLE: {
1222
+ rules: [29],
1223
+ inclusive: !1
1224
+ },
1225
+ CLASS: {
1226
+ rules: [28],
1227
+ inclusive: !1
1228
+ },
1229
+ CLASSDEFID: {
1230
+ rules: [26],
1231
+ inclusive: !1
1232
+ },
1233
+ CLASSDEF: {
1234
+ rules: [24, 25],
1235
+ inclusive: !1
1236
+ },
1237
+ acc_descr_multiline: {
1238
+ rules: [21, 22],
1239
+ inclusive: !1
1240
+ },
1241
+ acc_descr: {
1242
+ rules: [19],
1243
+ inclusive: !1
1244
+ },
1245
+ acc_title: {
1246
+ rules: [17],
1247
+ inclusive: !1
1248
+ },
1249
+ SCALE: {
1250
+ rules: [
1251
+ 14,
1252
+ 15,
1253
+ 34,
1254
+ 35
1255
+ ],
1256
+ inclusive: !1
1257
+ },
1258
+ ALIAS: {
1259
+ rules: [],
1260
+ inclusive: !1
1261
+ },
1262
+ STATE_ID: {
1263
+ rules: [49],
1264
+ inclusive: !1
1265
+ },
1266
+ STATE_STRING: {
1267
+ rules: [50, 51],
1268
+ inclusive: !1
1269
+ },
1270
+ FORK_STATE: {
1271
+ rules: [],
1272
+ inclusive: !1
1273
+ },
1274
+ STATE: {
1275
+ rules: [
1276
+ 10,
1277
+ 11,
1278
+ 12,
1279
+ 37,
1280
+ 38,
1281
+ 39,
1282
+ 40,
1283
+ 41,
1284
+ 42,
1285
+ 47,
1286
+ 48,
1287
+ 52,
1288
+ 53,
1289
+ 54
1290
+ ],
1291
+ inclusive: !1
1292
+ },
1293
+ ID: {
1294
+ rules: [
1295
+ 10,
1296
+ 11,
1297
+ 12
1298
+ ],
1299
+ inclusive: !1
1300
+ },
1301
+ INITIAL: {
1302
+ rules: [
1303
+ 0,
1304
+ 1,
1305
+ 2,
1306
+ 3,
1307
+ 4,
1308
+ 5,
1309
+ 6,
1310
+ 7,
1311
+ 8,
1312
+ 9,
1313
+ 11,
1314
+ 12,
1315
+ 13,
1316
+ 16,
1317
+ 18,
1318
+ 20,
1319
+ 23,
1320
+ 27,
1321
+ 30,
1322
+ 33,
1323
+ 36,
1324
+ 54,
1325
+ 57,
1326
+ 68,
1327
+ 69,
1328
+ 70,
1329
+ 71,
1330
+ 72,
1331
+ 73,
1332
+ 74,
1333
+ 76,
1334
+ 77,
1335
+ 78
1336
+ ],
1337
+ inclusive: !0
1338
+ }
1339
+ }
1340
+ };
1341
+ })();
1342
+ function P() {
1343
+ this.yy = {};
1344
+ }
1345
+ return n(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1346
+ })();
1347
+ y.parser = y;
1348
+ var b = y, x = "TB", S = "TB", C = "dir", w = "state", T = "root", E = "relation", D = "classDef", O = "style", k = "applyClass", A = "default", j = "divider", M = "fill:none", N = "fill: #333", P = "c", ee = "markdown", F = "normal", I = "rect", L = "rectWithTitle", te = "stateStart", ne = "stateEnd", R = "divider", re = "roundedWithTitle", ie = "note", ae = "noteGroup", z = "statediagram", oe = `${z}-state`, B = "transition", se = "note", ce = `${B} note-edge`, le = `${z}-${se}`, ue = `${z}-cluster`, de = `${z}-cluster-alt`, V = "parent", H = "note", fe = "state", U = "----", pe = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ n((e, t = S) => {
1349
+ if (!e.doc) return t;
1350
+ let n = t;
1351
+ for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1352
+ return n;
1353
+ }, "getDir"), me = {
1354
+ getClasses: /* @__PURE__ */ n(function(e, t) {
1355
+ return t.db.getClasses();
1356
+ }, "getClasses"),
1357
+ draw: /* @__PURE__ */ n(/* @__PURE__ */ function() {
1358
+ var e = t(function* (e, t, n, i) {
1359
+ var a, o;
1360
+ r.info("REF0:"), r.info("Drawing state diagram (v2)", t);
1361
+ let { securityLevel: s, state: c, layout: l } = d();
1362
+ i.db.extract(i.db.getRootDocV2());
1363
+ let u = i.db.getData(), f = g(t, s);
1364
+ u.type = i.type, u.layoutAlgorithm = l, u.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, u.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, d().look === "neo" ? u.markers = ["barbNeo"] : u.markers = ["barb"], u.diagramId = t, yield h(u, f);
1365
+ try {
1366
+ (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, t) => {
1367
+ var n;
1368
+ let i = typeof t == "string" ? t : typeof (t == null ? void 0 : t.id) == "string" ? t.id : "";
1369
+ if (!i) {
1370
+ r.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(t));
1371
+ return;
1372
+ }
1373
+ let a = (n = f.node()) == null ? void 0 : n.querySelectorAll("g"), o;
1374
+ if (a == null || a.forEach((e) => {
1375
+ var t;
1376
+ ((t = e.textContent) == null ? void 0 : t.trim()) === i && (o = e);
1377
+ }), !o) {
1378
+ r.warn("⚠️ Could not find node matching text:", i);
1379
+ return;
1380
+ }
1381
+ let s = o.parentNode;
1382
+ if (!s) {
1383
+ r.warn("⚠️ Node has no parent, cannot wrap:", i);
1384
+ return;
1385
+ }
1386
+ let c = document.createElementNS("http://www.w3.org/2000/svg", "a"), l = e.url.replace(/^"+|"+$/g, "");
1387
+ if (c.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", l), c.setAttribute("target", "_blank"), e.tooltip) {
1388
+ let t = e.tooltip.replace(/^"+|"+$/g, "");
1389
+ c.setAttribute("title", t);
1390
+ }
1391
+ s.replaceChild(c, o), c.appendChild(o), r.info("🔗 Wrapped node in <a> tag for:", i, e.url);
1392
+ });
1393
+ } catch (e) {
1394
+ r.error("❌ Error injecting clickable links:", e);
1395
+ }
1396
+ p.insertTitle(f, "statediagramTitleText", (a = c == null ? void 0 : c.titleTopMargin) == null ? 25 : a, i.db.getDiagramTitle()), _(f, 8, z, (o = c == null ? void 0 : c.useMaxWidth) == null ? !0 : o);
1397
+ });
1398
+ return function(t, n, r, i) {
1399
+ return e.apply(this, arguments);
1400
+ };
1401
+ }(), "draw"),
1402
+ getDir: G
1403
+ }, K = /* @__PURE__ */ new Map(), q = 0;
1404
+ function J(e = "", t = 0, n = "", r = U) {
1405
+ return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1406
+ }
1407
+ n(J, "stateDomId");
1408
+ var he = /* @__PURE__ */ n((e, t, n, i, a, o, s, l) => {
1409
+ r.trace("items", t), t.forEach((t) => {
1410
+ switch (t.stmt) {
1411
+ case w:
1412
+ Z(e, t, n, i, a, o, s, l);
1413
+ break;
1414
+ case A:
1415
+ Z(e, t, n, i, a, o, s, l);
1416
+ break;
1417
+ case E:
1418
+ {
1419
+ var r;
1420
+ Z(e, t.state1, n, i, a, o, s, l), Z(e, t.state2, n, i, a, o, s, l);
1421
+ let u = s === "neo", f = {
1422
+ id: "edge" + q,
1423
+ start: t.state1.id,
1424
+ end: t.state2.id,
1425
+ arrowhead: "normal",
1426
+ arrowTypeEnd: u ? "arrow_barb_neo" : "arrow_barb",
1427
+ style: M,
1428
+ labelStyle: "",
1429
+ label: c.sanitizeText((r = t.description) == null ? "" : r, d()),
1430
+ arrowheadStyle: N,
1431
+ labelpos: P,
1432
+ labelType: ee,
1433
+ thickness: F,
1434
+ classes: B,
1435
+ look: s
1436
+ };
1437
+ a.push(f), q++;
1438
+ }
1439
+ break;
1440
+ }
1441
+ });
1442
+ }, "setupDoc"), ge = /* @__PURE__ */ n((e, t = S) => {
1443
+ let n = t;
1444
+ if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1445
+ return n;
1446
+ }, "getDir");
1447
+ function Y(e, t, n) {
1448
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1449
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1450
+ let r = n.get(e);
1451
+ if (r) {
1452
+ var i;
1453
+ t.cssCompiledStyles = [...(i = t.cssCompiledStyles) == null ? [] : i, ...r.styles];
1454
+ }
1455
+ }));
1456
+ let r = e.find((e) => e.id === t.id);
1457
+ r ? Object.assign(r, t) : e.push(t);
1458
+ }
1459
+ n(Y, "insertOrUpdateNode");
1460
+ function X(e) {
1461
+ var t, n;
1462
+ return (t = e == null || (n = e.classes) == null ? void 0 : n.join(" ")) == null ? "" : t;
1463
+ }
1464
+ n(X, "getClassesFromDbInfo");
1465
+ function _e(e) {
1466
+ var t;
1467
+ return (t = e == null ? void 0 : e.styles) == null ? [] : t;
1468
+ }
1469
+ n(_e, "getStylesFromDbInfo");
1470
+ var Z = /* @__PURE__ */ n((e, t, n, i, a, o, s, l) => {
1471
+ let u = t.id, f = n.get(u), p = X(f), m = _e(f), h = d();
1472
+ if (r.info("dataFetcher parsedItem", t, f, m), u !== "root") {
1473
+ var g;
1474
+ let n = I;
1475
+ t.start === !0 ? n = te : t.start === !1 && (n = ne), t.type !== A && (n = t.type), K.get(u) || K.set(u, {
1476
+ id: u,
1477
+ shape: n,
1478
+ description: c.sanitizeText(u, h),
1479
+ cssClasses: `${p} ${oe}`,
1480
+ cssStyles: m
1481
+ });
1482
+ let d = K.get(u);
1483
+ if (t.description) {
1484
+ if (Array.isArray(d.description)) d.shape = L, d.description.push(t.description);
1485
+ else {
1486
+ var _;
1487
+ (_ = d.description) != null && _.length && d.description.length > 0 ? (d.shape = L, d.description === u ? d.description = [t.description] : d.description = [d.description, t.description]) : (d.shape = I, d.description = t.description);
1488
+ }
1489
+ d.description = c.sanitizeTextOrArray(d.description, h);
1490
+ }
1491
+ ((g = d.description) == null ? void 0 : g.length) === 1 && d.shape === L && (d.type === "group" ? d.shape = re : d.shape = I), !d.type && t.doc && (r.info("Setting cluster for XCX", u, ge(t)), d.type = "group", d.isGroup = !0, d.dir = ge(t), d.shape = t.type === j ? R : re, d.cssClasses = `${d.cssClasses} ${ue} ${o ? de : ""}`);
1492
+ let f = {
1493
+ labelStyle: "",
1494
+ shape: d.shape,
1495
+ label: d.description,
1496
+ cssClasses: d.cssClasses,
1497
+ cssCompiledStyles: [],
1498
+ cssStyles: d.cssStyles,
1499
+ id: u,
1500
+ dir: d.dir,
1501
+ domId: J(u, q),
1502
+ type: d.type,
1503
+ isGroup: d.type === "group",
1504
+ padding: 8,
1505
+ rx: 10,
1506
+ ry: 10,
1507
+ look: s,
1508
+ labelType: "markdown"
1509
+ };
1510
+ if (f.shape === R && (f.label = ""), e && e.id !== "root" && (r.trace("Setting node ", u, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, t.note) {
1511
+ var v;
1512
+ let e = {
1513
+ labelStyle: "",
1514
+ shape: ie,
1515
+ label: t.note.text,
1516
+ labelType: "markdown",
1517
+ cssClasses: le,
1518
+ cssStyles: [],
1519
+ cssCompiledStyles: [],
1520
+ id: u + pe + "-" + q,
1521
+ domId: J(u, q, H),
1522
+ type: d.type,
1523
+ isGroup: d.type === "group",
1524
+ padding: (v = h.flowchart) == null ? void 0 : v.padding,
1525
+ look: s,
1526
+ position: t.note.position
1527
+ }, n = u + W, r = {
1528
+ labelStyle: "",
1529
+ shape: ae,
1530
+ label: t.note.text,
1531
+ cssClasses: d.cssClasses,
1532
+ cssStyles: [],
1533
+ id: u + W,
1534
+ domId: J(u, q, V),
1535
+ type: "group",
1536
+ isGroup: !0,
1537
+ padding: 16,
1538
+ look: s,
1539
+ position: t.note.position
1540
+ };
1541
+ q++, r.id = n, e.parentId = n, Y(i, r, l), Y(i, e, l), Y(i, f, l);
1542
+ let o = u, c = e.id;
1543
+ t.note.position === "left of" && (o = e.id, c = u), a.push({
1544
+ id: o + "-" + c,
1545
+ start: o,
1546
+ end: c,
1547
+ arrowhead: "none",
1548
+ arrowTypeEnd: "",
1549
+ style: M,
1550
+ labelStyle: "",
1551
+ classes: ce,
1552
+ arrowheadStyle: N,
1553
+ labelpos: P,
1554
+ labelType: ee,
1555
+ thickness: F,
1556
+ look: s
1557
+ });
1558
+ } else Y(i, f, l);
1559
+ }
1560
+ t.doc && (r.trace("Adding nodes children "), he(t, t.doc, n, i, a, !o, s, l));
1561
+ }, "dataFetcher"), ve = /* @__PURE__ */ n(() => {
1562
+ K.clear(), q = 0;
1563
+ }, "reset"), Q = {
1564
+ START_NODE: "[*]",
1565
+ START_TYPE: "start",
1566
+ END_NODE: "[*]",
1567
+ END_TYPE: "end",
1568
+ COLOR_KEYWORD: "color",
1569
+ FILL_KEYWORD: "fill",
1570
+ BG_FILL: "bgFill",
1571
+ STYLECLASS_SEP: ","
1572
+ }, ye = /* @__PURE__ */ n(() => /* @__PURE__ */ new Map(), "newClassesList"), be = /* @__PURE__ */ n(() => ({
1573
+ relations: [],
1574
+ states: /* @__PURE__ */ new Map(),
1575
+ documents: {}
1576
+ }), "newDoc"), $ = /* @__PURE__ */ n((e) => JSON.parse(JSON.stringify(e)), "clone"), xe = (v = class {
1577
+ constructor(e) {
1578
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = ye(), this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = f, this.setAccTitle = o, this.getAccDescription = l, this.setAccDescription = i, this.setDiagramTitle = a, this.getDiagramTitle = u, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1579
+ }
1580
+ extract(e) {
1581
+ this.clear(!0);
1582
+ for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1583
+ case w:
1584
+ this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1585
+ break;
1586
+ case E:
1587
+ this.addRelation(t.state1, t.state2, t.description);
1588
+ break;
1589
+ case D:
1590
+ this.addStyleClass(t.id.trim(), t.classes);
1591
+ break;
1592
+ case O:
1593
+ this.handleStyleDef(t);
1594
+ break;
1595
+ case k:
1596
+ this.setCssClass(t.id.trim(), t.styleClass);
1597
+ break;
1598
+ case "click":
1599
+ this.addLink(t.id, t.url, t.tooltip);
1600
+ break;
1601
+ }
1602
+ let t = this.getStates(), n = d();
1603
+ ve(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1604
+ for (let e of this.nodes) if (Array.isArray(e.label)) {
1605
+ if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
1606
+ e.label = e.label[0];
1607
+ }
1608
+ }
1609
+ handleStyleDef(e) {
1610
+ let t = e.id.trim().split(","), n = e.styleClass.split(",");
1611
+ for (let e of t) {
1612
+ let t = this.getState(e);
1613
+ if (!t) {
1614
+ let n = e.trim();
1615
+ this.addState(n), t = this.getState(n);
1616
+ }
1617
+ t && (t.styles = n.map((e) => {
1618
+ var t;
1619
+ return (t = e.replace(/;/g, "")) == null ? void 0 : t.trim();
1620
+ }));
1621
+ }
1622
+ }
1623
+ setRootDoc(e) {
1624
+ r.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1625
+ }
1626
+ docTranslator(e, t, n) {
1627
+ if (t.stmt === E) {
1628
+ this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1629
+ return;
1630
+ }
1631
+ if (t.stmt === w && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== T && t.stmt !== w || !t.doc) return;
1632
+ let r = [], i = [];
1633
+ for (let e of t.doc) if (e.type === j) {
1634
+ let t = $(e);
1635
+ t.doc = $(i), r.push(t), i = [];
1636
+ } else i.push(e);
1637
+ if (r.length > 0 && i.length > 0) {
1638
+ let e = {
1639
+ stmt: w,
1640
+ id: m(),
1641
+ type: "divider",
1642
+ doc: $(i)
1643
+ };
1644
+ r.push($(e)), t.doc = r;
1645
+ }
1646
+ t.doc.forEach((e) => this.docTranslator(t, e, !0));
1647
+ }
1648
+ getRootDocV2() {
1649
+ return this.docTranslator({
1650
+ id: T,
1651
+ stmt: T
1652
+ }, {
1653
+ id: T,
1654
+ stmt: T,
1655
+ doc: this.rootDoc
1656
+ }, !0), {
1657
+ id: T,
1658
+ doc: this.rootDoc
1659
+ };
1660
+ }
1661
+ addState(e, t = A, n = void 0, i = void 0, a = void 0, o = void 0, s = void 0, l = void 0) {
1662
+ let u = e == null ? void 0 : e.trim();
1663
+ if (!this.currentDocument.states.has(u)) r.info("Adding state ", u, i), this.currentDocument.states.set(u, {
1664
+ stmt: w,
1665
+ id: u,
1666
+ descriptions: [],
1667
+ type: t,
1668
+ doc: n,
1669
+ note: a,
1670
+ classes: [],
1671
+ styles: [],
1672
+ textStyles: []
1673
+ });
1674
+ else {
1675
+ let e = this.currentDocument.states.get(u);
1676
+ if (!e) throw Error(`State not found: ${u}`);
1677
+ e.doc || (e.doc = n), e.type || (e.type = t);
1678
+ }
1679
+ if (i && (r.info("Setting state description", u, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(u, e.trim()))), a) {
1680
+ let e = this.currentDocument.states.get(u);
1681
+ if (!e) throw Error(`State not found: ${u}`);
1682
+ e.note = a, e.note.text = c.sanitizeText(e.note.text, d());
1683
+ }
1684
+ o && (r.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(u, e.trim()))), s && (r.info("Setting state styles", u, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setStyle(u, e.trim()))), l && (r.info("Setting state styles", u, s), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(u, e.trim())));
1685
+ }
1686
+ clear(e) {
1687
+ this.nodes = [], this.edges = [], this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = ye(), e || (this.links = /* @__PURE__ */ new Map(), s());
1688
+ }
1689
+ getState(e) {
1690
+ return this.currentDocument.states.get(e);
1691
+ }
1692
+ getStates() {
1693
+ return this.currentDocument.states;
1694
+ }
1695
+ logDocuments() {
1696
+ r.info("Documents = ", this.documents);
1697
+ }
1698
+ getRelations() {
1699
+ return this.currentDocument.relations;
1700
+ }
1701
+ addLink(e, t, n) {
1702
+ this.links.set(e, {
1703
+ url: t,
1704
+ tooltip: n
1705
+ }), r.warn("Adding link", e, t, n);
1706
+ }
1707
+ getLinks() {
1708
+ return this.links;
1709
+ }
1710
+ startIdIfNeeded(e = "") {
1711
+ return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1712
+ }
1713
+ startTypeIfNeeded(e = "", t = A) {
1714
+ return e === Q.START_NODE ? Q.START_TYPE : t;
1715
+ }
1716
+ endIdIfNeeded(e = "") {
1717
+ return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1718
+ }
1719
+ endTypeIfNeeded(e = "", t = A) {
1720
+ return e === Q.END_NODE ? Q.END_TYPE : t;
1721
+ }
1722
+ addRelationObjs(e, t, n = "") {
1723
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
1724
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1725
+ id1: r,
1726
+ id2: a,
1727
+ relationTitle: c.sanitizeText(n, d())
1728
+ });
1729
+ }
1730
+ addRelation(e, t, n) {
1731
+ if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1732
+ else if (typeof e == "string" && typeof t == "string") {
1733
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
1734
+ this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
1735
+ id1: r,
1736
+ id2: a,
1737
+ relationTitle: n ? c.sanitizeText(n, d()) : void 0
1738
+ });
1739
+ }
1740
+ }
1741
+ addDescription(e, t) {
1742
+ var n;
1743
+ let r = this.currentDocument.states.get(e), i = t.startsWith(":") ? t.replace(":", "").trim() : t;
1744
+ r == null || (n = r.descriptions) == null || n.push(c.sanitizeText(i, d()));
1745
+ }
1746
+ cleanupLabel(e) {
1747
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1748
+ }
1749
+ getDividerId() {
1750
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1751
+ }
1752
+ addStyleClass(e, t = "") {
1753
+ this.classes.has(e) || this.classes.set(e, {
1754
+ id: e,
1755
+ styles: [],
1756
+ textStyles: []
1757
+ });
1758
+ let n = this.classes.get(e);
1759
+ t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1760
+ let t = e.replace(/([^;]*);/, "$1").trim();
1761
+ if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
1762
+ let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
1763
+ n.textStyles.push(e);
1764
+ }
1765
+ n.styles.push(t);
1766
+ });
1767
+ }
1768
+ getClasses() {
1769
+ return this.classes;
1770
+ }
1771
+ setCssClass(e, t) {
1772
+ e.split(",").forEach((e) => {
1773
+ var n;
1774
+ let r = this.getState(e);
1775
+ if (!r) {
1776
+ let t = e.trim();
1777
+ this.addState(t), r = this.getState(t);
1778
+ }
1779
+ r == null || (n = r.classes) == null || n.push(t);
1780
+ });
1781
+ }
1782
+ setStyle(e, t) {
1783
+ var n;
1784
+ (n = this.getState(e)) == null || (n = n.styles) == null || n.push(t);
1785
+ }
1786
+ setTextStyle(e, t) {
1787
+ var n;
1788
+ (n = this.getState(e)) == null || (n = n.textStyles) == null || n.push(t);
1789
+ }
1790
+ getDirectionStatement() {
1791
+ return this.rootDoc.find((e) => e.stmt === C);
1792
+ }
1793
+ getDirection() {
1794
+ var e, t;
1795
+ return (e = (t = this.getDirectionStatement()) == null ? void 0 : t.value) == null ? x : e;
1796
+ }
1797
+ setDirection(e) {
1798
+ let t = this.getDirectionStatement();
1799
+ t ? t.value = e : this.rootDoc.unshift({
1800
+ stmt: C,
1801
+ value: e
1802
+ });
1803
+ }
1804
+ trimColon(e) {
1805
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1806
+ }
1807
+ getData() {
1808
+ let e = d();
1809
+ return {
1810
+ nodes: this.nodes,
1811
+ edges: this.edges,
1812
+ other: {},
1813
+ config: e,
1814
+ direction: G(this.getRootDocV2())
1815
+ };
1816
+ }
1817
+ getConfig() {
1818
+ return d().state;
1819
+ }
1820
+ }, n(v, "StateDB"), v.relationType = {
1821
+ AGGREGATION: 0,
1822
+ EXTENSION: 1,
1823
+ COMPOSITION: 2,
1824
+ DEPENDENCY: 3
1825
+ }, v), Se = /* @__PURE__ */ n((e) => {
1826
+ var t;
1827
+ return `
1828
+ defs [id$="-barbEnd"] {
1829
+ fill: ${e.transitionColor};
1830
+ stroke: ${e.transitionColor};
1831
+ }
1832
+ g.stateGroup text {
1833
+ fill: ${e.nodeBorder};
1834
+ stroke: none;
1835
+ font-size: 10px;
1836
+ }
1837
+ g.stateGroup text {
1838
+ fill: ${e.textColor};
1839
+ stroke: none;
1840
+ font-size: 10px;
1841
+
1842
+ }
1843
+ g.stateGroup .state-title {
1844
+ font-weight: bolder;
1845
+ fill: ${e.stateLabelColor};
1846
+ }
1847
+
1848
+ g.stateGroup rect {
1849
+ fill: ${e.mainBkg};
1850
+ stroke: ${e.nodeBorder};
1851
+ }
1852
+
1853
+ g.stateGroup line {
1854
+ stroke: ${e.lineColor};
1855
+ stroke-width: ${e.strokeWidth || 1};
1856
+ }
1857
+
1858
+ .transition {
1859
+ stroke: ${e.transitionColor};
1860
+ stroke-width: ${e.strokeWidth || 1};
1861
+ fill: none;
1862
+ }
1863
+
1864
+ .stateGroup .composit {
1865
+ fill: ${e.background};
1866
+ border-bottom: 1px
1867
+ }
1868
+
1869
+ .stateGroup .alt-composit {
1870
+ fill: #e0e0e0;
1871
+ border-bottom: 1px
1872
+ }
1873
+
1874
+ .state-note {
1875
+ stroke: ${e.noteBorderColor};
1876
+ fill: ${e.noteBkgColor};
1877
+
1878
+ text {
1879
+ fill: ${e.noteTextColor};
1880
+ stroke: none;
1881
+ font-size: 10px;
1882
+ }
1883
+ }
1884
+
1885
+ .stateLabel .box {
1886
+ stroke: none;
1887
+ stroke-width: 0;
1888
+ fill: ${e.mainBkg};
1889
+ opacity: 0.5;
1890
+ }
1891
+
1892
+ .edgeLabel .label rect {
1893
+ fill: ${e.labelBackgroundColor};
1894
+ opacity: 0.5;
1895
+ }
1896
+ .edgeLabel {
1897
+ background-color: ${e.edgeLabelBackground};
1898
+ p {
1899
+ background-color: ${e.edgeLabelBackground};
1900
+ }
1901
+ rect {
1902
+ opacity: 0.5;
1903
+ background-color: ${e.edgeLabelBackground};
1904
+ fill: ${e.edgeLabelBackground};
1905
+ }
1906
+ text-align: center;
1907
+ }
1908
+ .edgeLabel .label text {
1909
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1910
+ }
1911
+ .label div .edgeLabel {
1912
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1913
+ }
1914
+
1915
+ .stateLabel text {
1916
+ fill: ${e.stateLabelColor};
1917
+ font-size: 10px;
1918
+ font-weight: bold;
1919
+ }
1920
+
1921
+ .node circle.state-start {
1922
+ fill: ${e.specialStateColor};
1923
+ stroke: ${e.specialStateColor};
1924
+ }
1925
+
1926
+ .node .fork-join {
1927
+ fill: ${e.specialStateColor};
1928
+ stroke: ${e.specialStateColor};
1929
+ }
1930
+
1931
+ .node circle.state-end {
1932
+ fill: ${e.innerEndBackground};
1933
+ stroke: ${e.background};
1934
+ stroke-width: 1.5
1935
+ }
1936
+ .end-state-inner {
1937
+ fill: ${e.compositeBackground || e.background};
1938
+ // stroke: ${e.background};
1939
+ stroke-width: 1.5
1940
+ }
1941
+
1942
+ .node rect {
1943
+ fill: ${e.stateBkg || e.mainBkg};
1944
+ stroke: ${e.stateBorder || e.nodeBorder};
1945
+ stroke-width: ${e.strokeWidth || 1}px;
1946
+ }
1947
+ .node polygon {
1948
+ fill: ${e.mainBkg};
1949
+ stroke: ${e.stateBorder || e.nodeBorder};;
1950
+ stroke-width: ${e.strokeWidth || 1}px;
1951
+ }
1952
+ [id$="-barbEnd"] {
1953
+ fill: ${e.lineColor};
1954
+ }
1955
+
1956
+ .statediagram-cluster rect {
1957
+ fill: ${e.compositeTitleBackground};
1958
+ stroke: ${e.stateBorder || e.nodeBorder};
1959
+ stroke-width: ${e.strokeWidth || 1}px;
1960
+ }
1961
+
1962
+ .cluster-label, .nodeLabel {
1963
+ color: ${e.stateLabelColor};
1964
+ // line-height: 1;
1965
+ }
1966
+
1967
+ .statediagram-cluster rect.outer {
1968
+ rx: 5px;
1969
+ ry: 5px;
1970
+ }
1971
+ .statediagram-state .divider {
1972
+ stroke: ${e.stateBorder || e.nodeBorder};
1973
+ }
1974
+
1975
+ .statediagram-state .title-state {
1976
+ rx: 5px;
1977
+ ry: 5px;
1978
+ }
1979
+ .statediagram-cluster.statediagram-cluster .inner {
1980
+ fill: ${e.compositeBackground || e.background};
1981
+ }
1982
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1983
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1984
+ }
1985
+
1986
+ .statediagram-cluster .inner {
1987
+ rx:0;
1988
+ ry:0;
1989
+ }
1990
+
1991
+ .statediagram-state rect.basic {
1992
+ rx: 5px;
1993
+ ry: 5px;
1994
+ }
1995
+ .statediagram-state rect.divider {
1996
+ stroke-dasharray: 10,10;
1997
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1998
+ }
1999
+
2000
+ .note-edge {
2001
+ stroke-dasharray: 5;
2002
+ }
2003
+
2004
+ .statediagram-note rect {
2005
+ fill: ${e.noteBkgColor};
2006
+ stroke: ${e.noteBorderColor};
2007
+ stroke-width: 1px;
2008
+ rx: 0;
2009
+ ry: 0;
2010
+ }
2011
+ .statediagram-note rect {
2012
+ fill: ${e.noteBkgColor};
2013
+ stroke: ${e.noteBorderColor};
2014
+ stroke-width: 1px;
2015
+ rx: 0;
2016
+ ry: 0;
2017
+ }
2018
+
2019
+ .statediagram-note text {
2020
+ fill: ${e.noteTextColor};
2021
+ }
2022
+
2023
+ .statediagram-note .nodeLabel {
2024
+ color: ${e.noteTextColor};
2025
+ }
2026
+ .statediagram .edgeLabel {
2027
+ color: red; // ${e.noteTextColor};
2028
+ }
2029
+
2030
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
2031
+ fill: ${e.lineColor};
2032
+ stroke: ${e.lineColor};
2033
+ stroke-width: ${e.strokeWidth || 1};
2034
+ }
2035
+
2036
+ .statediagramTitleText {
2037
+ text-anchor: middle;
2038
+ font-size: 18px;
2039
+ fill: ${e.textColor};
2040
+ }
2041
+
2042
+ [data-look="neo"].statediagram-cluster rect {
2043
+ fill: ${e.mainBkg};
2044
+ stroke: ${e.useGradient ? "url(" + e.svgId + "-gradient)" : e.stateBorder || e.nodeBorder};
2045
+ stroke-width: ${(t = e.strokeWidth) == null ? 1 : t};
2046
+ }
2047
+ [data-look="neo"].statediagram-cluster rect.outer {
2048
+ rx: ${e.radius}px;
2049
+ ry: ${e.radius}px;
2050
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
2051
+ }
2052
+ `;
2053
+ }, "getStyles");
2054
+ //#endregion
2055
+ export { Se as i, b as n, me as r, xe as t };