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,2230 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ import { n, r, t as i } from "./chunk-AGHRB4JF.js";
3
+ import { H as a, K as o, U as s, a as c, b as l, v as u, w as d, x as f, y as p } from "./chunk-CSCIHK7Q.js";
4
+ import { g as m } from "./chunk-5ZQYHXKU.js";
5
+ import "./chunk-BSJP7CBP.js";
6
+ import "./chunk-L5ZTLDWV.js";
7
+ import "./chunk-NZK2D7GU.js";
8
+ import "./chunk-O5CBEL6O.js";
9
+ import "./chunk-3OPIFGDE.js";
10
+ import "./chunk-KSCS5N6A.js";
11
+ import { r as h, t as g } from "./chunk-LZXEDZCA.js";
12
+ import { t as _ } from "./chunk-55IACEB6.js";
13
+ import { t as v } from "./chunk-2J33WTMH.js";
14
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-4Y6WPE33.mjs
15
+ e();
16
+ var y, b = (function() {
17
+ var e = /* @__PURE__ */ n(function(e, t, n, r) {
18
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
19
+ return n;
20
+ }, "o"), t = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [
21
+ 5,
22
+ 6,
23
+ 8,
24
+ 9,
25
+ 11,
26
+ 13,
27
+ 21,
28
+ 22,
29
+ 23,
30
+ 24,
31
+ 41,
32
+ 42,
33
+ 43,
34
+ 44,
35
+ 45,
36
+ 46,
37
+ 54,
38
+ 72,
39
+ 74,
40
+ 77,
41
+ 89,
42
+ 90
43
+ ], s = [1, 22], c = [2, 7], l = [1, 26], u = [1, 27], d = [1, 28], f = [1, 29], p = [1, 33], m = [1, 34], h = [1, 35], g = [1, 36], _ = [1, 37], v = [1, 38], y = [1, 24], b = [1, 31], x = [1, 32], S = [1, 30], C = [1, 39], w = [1, 40], T = [
44
+ 5,
45
+ 8,
46
+ 9,
47
+ 11,
48
+ 13,
49
+ 21,
50
+ 22,
51
+ 23,
52
+ 24,
53
+ 41,
54
+ 42,
55
+ 43,
56
+ 44,
57
+ 45,
58
+ 46,
59
+ 54,
60
+ 72,
61
+ 74,
62
+ 77,
63
+ 89,
64
+ 90
65
+ ], E = [1, 61], D = [89, 90], O = [
66
+ 5,
67
+ 8,
68
+ 9,
69
+ 11,
70
+ 13,
71
+ 21,
72
+ 22,
73
+ 23,
74
+ 24,
75
+ 27,
76
+ 29,
77
+ 41,
78
+ 42,
79
+ 43,
80
+ 44,
81
+ 45,
82
+ 46,
83
+ 54,
84
+ 61,
85
+ 63,
86
+ 72,
87
+ 74,
88
+ 75,
89
+ 76,
90
+ 77,
91
+ 80,
92
+ 81,
93
+ 82,
94
+ 83,
95
+ 84,
96
+ 85,
97
+ 86,
98
+ 87,
99
+ 88,
100
+ 89,
101
+ 90
102
+ ], k = [27, 29], ee = [1, 70], A = [1, 71], te = [1, 72], ne = [1, 73], re = [1, 74], ie = [1, 75], ae = [1, 76], j = [1, 83], M = [1, 80], N = [1, 84], P = [1, 85], F = [1, 86], I = [1, 87], L = [1, 88], R = [1, 89], z = [1, 90], B = [1, 91], V = [1, 92], oe = [
103
+ 5,
104
+ 8,
105
+ 9,
106
+ 11,
107
+ 13,
108
+ 21,
109
+ 22,
110
+ 23,
111
+ 24,
112
+ 27,
113
+ 41,
114
+ 42,
115
+ 43,
116
+ 44,
117
+ 45,
118
+ 46,
119
+ 54,
120
+ 72,
121
+ 74,
122
+ 75,
123
+ 76,
124
+ 77,
125
+ 80,
126
+ 81,
127
+ 82,
128
+ 83,
129
+ 84,
130
+ 85,
131
+ 86,
132
+ 87,
133
+ 88,
134
+ 89,
135
+ 90
136
+ ], H = [63, 64], se = [1, 101], ce = [
137
+ 5,
138
+ 8,
139
+ 9,
140
+ 11,
141
+ 13,
142
+ 21,
143
+ 22,
144
+ 23,
145
+ 24,
146
+ 41,
147
+ 42,
148
+ 43,
149
+ 44,
150
+ 45,
151
+ 46,
152
+ 54,
153
+ 72,
154
+ 74,
155
+ 76,
156
+ 77,
157
+ 89,
158
+ 90
159
+ ], U = [
160
+ 5,
161
+ 8,
162
+ 9,
163
+ 11,
164
+ 13,
165
+ 21,
166
+ 22,
167
+ 23,
168
+ 24,
169
+ 41,
170
+ 42,
171
+ 43,
172
+ 44,
173
+ 45,
174
+ 46,
175
+ 54,
176
+ 72,
177
+ 74,
178
+ 75,
179
+ 76,
180
+ 77,
181
+ 80,
182
+ 81,
183
+ 82,
184
+ 83,
185
+ 84,
186
+ 85,
187
+ 86,
188
+ 87,
189
+ 88,
190
+ 89,
191
+ 90
192
+ ], W = [1, 110], G = [1, 106], K = [1, 107], q = [1, 108], J = [1, 109], Y = [1, 111], X = [1, 116], Z = [1, 117], Q = [1, 114], $ = [1, 115], le = {
193
+ trace: /* @__PURE__ */ n(function() {}, "trace"),
194
+ yy: {},
195
+ symbols_: {
196
+ error: 2,
197
+ start: 3,
198
+ directive: 4,
199
+ NEWLINE: 5,
200
+ RD: 6,
201
+ diagram: 7,
202
+ EOF: 8,
203
+ acc_title: 9,
204
+ acc_title_value: 10,
205
+ acc_descr: 11,
206
+ acc_descr_value: 12,
207
+ acc_descr_multiline_value: 13,
208
+ requirementDef: 14,
209
+ elementDef: 15,
210
+ relationshipDef: 16,
211
+ direction: 17,
212
+ styleStatement: 18,
213
+ classDefStatement: 19,
214
+ classStatement: 20,
215
+ direction_tb: 21,
216
+ direction_bt: 22,
217
+ direction_rl: 23,
218
+ direction_lr: 24,
219
+ requirementType: 25,
220
+ requirementName: 26,
221
+ STRUCT_START: 27,
222
+ requirementBody: 28,
223
+ STYLE_SEPARATOR: 29,
224
+ idList: 30,
225
+ ID: 31,
226
+ COLONSEP: 32,
227
+ id: 33,
228
+ TEXT: 34,
229
+ text: 35,
230
+ RISK: 36,
231
+ riskLevel: 37,
232
+ VERIFYMTHD: 38,
233
+ verifyType: 39,
234
+ STRUCT_STOP: 40,
235
+ REQUIREMENT: 41,
236
+ FUNCTIONAL_REQUIREMENT: 42,
237
+ INTERFACE_REQUIREMENT: 43,
238
+ PERFORMANCE_REQUIREMENT: 44,
239
+ PHYSICAL_REQUIREMENT: 45,
240
+ DESIGN_CONSTRAINT: 46,
241
+ LOW_RISK: 47,
242
+ MED_RISK: 48,
243
+ HIGH_RISK: 49,
244
+ VERIFY_ANALYSIS: 50,
245
+ VERIFY_DEMONSTRATION: 51,
246
+ VERIFY_INSPECTION: 52,
247
+ VERIFY_TEST: 53,
248
+ ELEMENT: 54,
249
+ elementName: 55,
250
+ elementBody: 56,
251
+ TYPE: 57,
252
+ type: 58,
253
+ DOCREF: 59,
254
+ ref: 60,
255
+ END_ARROW_L: 61,
256
+ relationship: 62,
257
+ LINE: 63,
258
+ END_ARROW_R: 64,
259
+ CONTAINS: 65,
260
+ COPIES: 66,
261
+ DERIVES: 67,
262
+ SATISFIES: 68,
263
+ VERIFIES: 69,
264
+ REFINES: 70,
265
+ TRACES: 71,
266
+ CLASSDEF: 72,
267
+ stylesOpt: 73,
268
+ CLASS: 74,
269
+ ALPHA: 75,
270
+ COMMA: 76,
271
+ STYLE: 77,
272
+ style: 78,
273
+ styleComponent: 79,
274
+ NUM: 80,
275
+ COLON: 81,
276
+ UNIT: 82,
277
+ SPACE: 83,
278
+ BRKT: 84,
279
+ PCT: 85,
280
+ MINUS: 86,
281
+ LABEL: 87,
282
+ SEMICOLON: 88,
283
+ unqString: 89,
284
+ qString: 90,
285
+ $accept: 0,
286
+ $end: 1
287
+ },
288
+ terminals_: {
289
+ 2: "error",
290
+ 5: "NEWLINE",
291
+ 6: "RD",
292
+ 8: "EOF",
293
+ 9: "acc_title",
294
+ 10: "acc_title_value",
295
+ 11: "acc_descr",
296
+ 12: "acc_descr_value",
297
+ 13: "acc_descr_multiline_value",
298
+ 21: "direction_tb",
299
+ 22: "direction_bt",
300
+ 23: "direction_rl",
301
+ 24: "direction_lr",
302
+ 27: "STRUCT_START",
303
+ 29: "STYLE_SEPARATOR",
304
+ 31: "ID",
305
+ 32: "COLONSEP",
306
+ 34: "TEXT",
307
+ 36: "RISK",
308
+ 38: "VERIFYMTHD",
309
+ 40: "STRUCT_STOP",
310
+ 41: "REQUIREMENT",
311
+ 42: "FUNCTIONAL_REQUIREMENT",
312
+ 43: "INTERFACE_REQUIREMENT",
313
+ 44: "PERFORMANCE_REQUIREMENT",
314
+ 45: "PHYSICAL_REQUIREMENT",
315
+ 46: "DESIGN_CONSTRAINT",
316
+ 47: "LOW_RISK",
317
+ 48: "MED_RISK",
318
+ 49: "HIGH_RISK",
319
+ 50: "VERIFY_ANALYSIS",
320
+ 51: "VERIFY_DEMONSTRATION",
321
+ 52: "VERIFY_INSPECTION",
322
+ 53: "VERIFY_TEST",
323
+ 54: "ELEMENT",
324
+ 57: "TYPE",
325
+ 59: "DOCREF",
326
+ 61: "END_ARROW_L",
327
+ 63: "LINE",
328
+ 64: "END_ARROW_R",
329
+ 65: "CONTAINS",
330
+ 66: "COPIES",
331
+ 67: "DERIVES",
332
+ 68: "SATISFIES",
333
+ 69: "VERIFIES",
334
+ 70: "REFINES",
335
+ 71: "TRACES",
336
+ 72: "CLASSDEF",
337
+ 74: "CLASS",
338
+ 75: "ALPHA",
339
+ 76: "COMMA",
340
+ 77: "STYLE",
341
+ 80: "NUM",
342
+ 81: "COLON",
343
+ 82: "UNIT",
344
+ 83: "SPACE",
345
+ 84: "BRKT",
346
+ 85: "PCT",
347
+ 86: "MINUS",
348
+ 87: "LABEL",
349
+ 88: "SEMICOLON",
350
+ 89: "unqString",
351
+ 90: "qString"
352
+ },
353
+ productions_: [
354
+ 0,
355
+ [3, 3],
356
+ [3, 2],
357
+ [3, 4],
358
+ [4, 2],
359
+ [4, 2],
360
+ [4, 1],
361
+ [7, 0],
362
+ [7, 2],
363
+ [7, 2],
364
+ [7, 2],
365
+ [7, 2],
366
+ [7, 2],
367
+ [7, 2],
368
+ [7, 2],
369
+ [7, 2],
370
+ [7, 2],
371
+ [17, 1],
372
+ [17, 1],
373
+ [17, 1],
374
+ [17, 1],
375
+ [14, 5],
376
+ [14, 7],
377
+ [28, 5],
378
+ [28, 5],
379
+ [28, 5],
380
+ [28, 5],
381
+ [28, 2],
382
+ [28, 1],
383
+ [25, 1],
384
+ [25, 1],
385
+ [25, 1],
386
+ [25, 1],
387
+ [25, 1],
388
+ [25, 1],
389
+ [37, 1],
390
+ [37, 1],
391
+ [37, 1],
392
+ [39, 1],
393
+ [39, 1],
394
+ [39, 1],
395
+ [39, 1],
396
+ [15, 5],
397
+ [15, 7],
398
+ [56, 5],
399
+ [56, 5],
400
+ [56, 2],
401
+ [56, 1],
402
+ [16, 5],
403
+ [16, 5],
404
+ [62, 1],
405
+ [62, 1],
406
+ [62, 1],
407
+ [62, 1],
408
+ [62, 1],
409
+ [62, 1],
410
+ [62, 1],
411
+ [19, 3],
412
+ [20, 3],
413
+ [20, 3],
414
+ [30, 1],
415
+ [30, 3],
416
+ [30, 1],
417
+ [30, 3],
418
+ [18, 3],
419
+ [73, 1],
420
+ [73, 3],
421
+ [78, 1],
422
+ [78, 2],
423
+ [79, 1],
424
+ [79, 1],
425
+ [79, 1],
426
+ [79, 1],
427
+ [79, 1],
428
+ [79, 1],
429
+ [79, 1],
430
+ [79, 1],
431
+ [79, 1],
432
+ [79, 1],
433
+ [26, 1],
434
+ [26, 1],
435
+ [33, 1],
436
+ [33, 1],
437
+ [35, 1],
438
+ [35, 1],
439
+ [55, 1],
440
+ [55, 1],
441
+ [58, 1],
442
+ [58, 1],
443
+ [60, 1],
444
+ [60, 1]
445
+ ],
446
+ performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
447
+ var s = a.length - 1;
448
+ switch (i) {
449
+ case 4:
450
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
451
+ break;
452
+ case 5:
453
+ case 6:
454
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
455
+ break;
456
+ case 7:
457
+ this.$ = [];
458
+ break;
459
+ case 17:
460
+ r.setDirection("TB");
461
+ break;
462
+ case 18:
463
+ r.setDirection("BT");
464
+ break;
465
+ case 19:
466
+ r.setDirection("RL");
467
+ break;
468
+ case 20:
469
+ r.setDirection("LR");
470
+ break;
471
+ case 21:
472
+ r.addRequirement(a[s - 3], a[s - 4]);
473
+ break;
474
+ case 22:
475
+ r.addRequirement(a[s - 5], a[s - 6]), r.setClass([a[s - 5]], a[s - 3]);
476
+ break;
477
+ case 23:
478
+ r.setNewReqId(a[s - 2]);
479
+ break;
480
+ case 24:
481
+ r.setNewReqText(a[s - 2]);
482
+ break;
483
+ case 25:
484
+ r.setNewReqRisk(a[s - 2]);
485
+ break;
486
+ case 26:
487
+ r.setNewReqVerifyMethod(a[s - 2]);
488
+ break;
489
+ case 29:
490
+ this.$ = r.RequirementType.REQUIREMENT;
491
+ break;
492
+ case 30:
493
+ this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
494
+ break;
495
+ case 31:
496
+ this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
497
+ break;
498
+ case 32:
499
+ this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
500
+ break;
501
+ case 33:
502
+ this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
503
+ break;
504
+ case 34:
505
+ this.$ = r.RequirementType.DESIGN_CONSTRAINT;
506
+ break;
507
+ case 35:
508
+ this.$ = r.RiskLevel.LOW_RISK;
509
+ break;
510
+ case 36:
511
+ this.$ = r.RiskLevel.MED_RISK;
512
+ break;
513
+ case 37:
514
+ this.$ = r.RiskLevel.HIGH_RISK;
515
+ break;
516
+ case 38:
517
+ this.$ = r.VerifyType.VERIFY_ANALYSIS;
518
+ break;
519
+ case 39:
520
+ this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
521
+ break;
522
+ case 40:
523
+ this.$ = r.VerifyType.VERIFY_INSPECTION;
524
+ break;
525
+ case 41:
526
+ this.$ = r.VerifyType.VERIFY_TEST;
527
+ break;
528
+ case 42:
529
+ r.addElement(a[s - 3]);
530
+ break;
531
+ case 43:
532
+ r.addElement(a[s - 5]), r.setClass([a[s - 5]], a[s - 3]);
533
+ break;
534
+ case 44:
535
+ r.setNewElementType(a[s - 2]);
536
+ break;
537
+ case 45:
538
+ r.setNewElementDocRef(a[s - 2]);
539
+ break;
540
+ case 48:
541
+ r.addRelationship(a[s - 2], a[s], a[s - 4]);
542
+ break;
543
+ case 49:
544
+ r.addRelationship(a[s - 2], a[s - 4], a[s]);
545
+ break;
546
+ case 50:
547
+ this.$ = r.Relationships.CONTAINS;
548
+ break;
549
+ case 51:
550
+ this.$ = r.Relationships.COPIES;
551
+ break;
552
+ case 52:
553
+ this.$ = r.Relationships.DERIVES;
554
+ break;
555
+ case 53:
556
+ this.$ = r.Relationships.SATISFIES;
557
+ break;
558
+ case 54:
559
+ this.$ = r.Relationships.VERIFIES;
560
+ break;
561
+ case 55:
562
+ this.$ = r.Relationships.REFINES;
563
+ break;
564
+ case 56:
565
+ this.$ = r.Relationships.TRACES;
566
+ break;
567
+ case 57:
568
+ this.$ = a[s - 2], r.defineClass(a[s - 1], a[s]);
569
+ break;
570
+ case 58:
571
+ r.setClass(a[s - 1], a[s]);
572
+ break;
573
+ case 59:
574
+ r.setClass([a[s - 2]], a[s]);
575
+ break;
576
+ case 60:
577
+ case 62:
578
+ this.$ = [a[s]];
579
+ break;
580
+ case 61:
581
+ case 63:
582
+ this.$ = a[s - 2].concat([a[s]]);
583
+ break;
584
+ case 64:
585
+ this.$ = a[s - 2], r.setCssStyle(a[s - 1], a[s]);
586
+ break;
587
+ case 65:
588
+ this.$ = [a[s]];
589
+ break;
590
+ case 66:
591
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
592
+ break;
593
+ case 68:
594
+ this.$ = a[s - 1] + a[s];
595
+ break;
596
+ }
597
+ }, "anonymous"),
598
+ table: [
599
+ {
600
+ 3: 1,
601
+ 4: 2,
602
+ 6: t,
603
+ 9: r,
604
+ 11: i,
605
+ 13: a
606
+ },
607
+ { 1: [3] },
608
+ {
609
+ 3: 8,
610
+ 4: 2,
611
+ 5: [1, 7],
612
+ 6: t,
613
+ 9: r,
614
+ 11: i,
615
+ 13: a
616
+ },
617
+ { 5: [1, 9] },
618
+ { 10: [1, 10] },
619
+ { 12: [1, 11] },
620
+ e(o, [2, 6]),
621
+ {
622
+ 3: 12,
623
+ 4: 2,
624
+ 6: t,
625
+ 9: r,
626
+ 11: i,
627
+ 13: a
628
+ },
629
+ { 1: [2, 2] },
630
+ {
631
+ 4: 17,
632
+ 5: s,
633
+ 7: 13,
634
+ 8: c,
635
+ 9: r,
636
+ 11: i,
637
+ 13: a,
638
+ 14: 14,
639
+ 15: 15,
640
+ 16: 16,
641
+ 17: 18,
642
+ 18: 19,
643
+ 19: 20,
644
+ 20: 21,
645
+ 21: l,
646
+ 22: u,
647
+ 23: d,
648
+ 24: f,
649
+ 25: 23,
650
+ 33: 25,
651
+ 41: p,
652
+ 42: m,
653
+ 43: h,
654
+ 44: g,
655
+ 45: _,
656
+ 46: v,
657
+ 54: y,
658
+ 72: b,
659
+ 74: x,
660
+ 77: S,
661
+ 89: C,
662
+ 90: w
663
+ },
664
+ e(o, [2, 4]),
665
+ e(o, [2, 5]),
666
+ { 1: [2, 1] },
667
+ { 8: [1, 41] },
668
+ {
669
+ 4: 17,
670
+ 5: s,
671
+ 7: 42,
672
+ 8: c,
673
+ 9: r,
674
+ 11: i,
675
+ 13: a,
676
+ 14: 14,
677
+ 15: 15,
678
+ 16: 16,
679
+ 17: 18,
680
+ 18: 19,
681
+ 19: 20,
682
+ 20: 21,
683
+ 21: l,
684
+ 22: u,
685
+ 23: d,
686
+ 24: f,
687
+ 25: 23,
688
+ 33: 25,
689
+ 41: p,
690
+ 42: m,
691
+ 43: h,
692
+ 44: g,
693
+ 45: _,
694
+ 46: v,
695
+ 54: y,
696
+ 72: b,
697
+ 74: x,
698
+ 77: S,
699
+ 89: C,
700
+ 90: w
701
+ },
702
+ {
703
+ 4: 17,
704
+ 5: s,
705
+ 7: 43,
706
+ 8: c,
707
+ 9: r,
708
+ 11: i,
709
+ 13: a,
710
+ 14: 14,
711
+ 15: 15,
712
+ 16: 16,
713
+ 17: 18,
714
+ 18: 19,
715
+ 19: 20,
716
+ 20: 21,
717
+ 21: l,
718
+ 22: u,
719
+ 23: d,
720
+ 24: f,
721
+ 25: 23,
722
+ 33: 25,
723
+ 41: p,
724
+ 42: m,
725
+ 43: h,
726
+ 44: g,
727
+ 45: _,
728
+ 46: v,
729
+ 54: y,
730
+ 72: b,
731
+ 74: x,
732
+ 77: S,
733
+ 89: C,
734
+ 90: w
735
+ },
736
+ {
737
+ 4: 17,
738
+ 5: s,
739
+ 7: 44,
740
+ 8: c,
741
+ 9: r,
742
+ 11: i,
743
+ 13: a,
744
+ 14: 14,
745
+ 15: 15,
746
+ 16: 16,
747
+ 17: 18,
748
+ 18: 19,
749
+ 19: 20,
750
+ 20: 21,
751
+ 21: l,
752
+ 22: u,
753
+ 23: d,
754
+ 24: f,
755
+ 25: 23,
756
+ 33: 25,
757
+ 41: p,
758
+ 42: m,
759
+ 43: h,
760
+ 44: g,
761
+ 45: _,
762
+ 46: v,
763
+ 54: y,
764
+ 72: b,
765
+ 74: x,
766
+ 77: S,
767
+ 89: C,
768
+ 90: w
769
+ },
770
+ {
771
+ 4: 17,
772
+ 5: s,
773
+ 7: 45,
774
+ 8: c,
775
+ 9: r,
776
+ 11: i,
777
+ 13: a,
778
+ 14: 14,
779
+ 15: 15,
780
+ 16: 16,
781
+ 17: 18,
782
+ 18: 19,
783
+ 19: 20,
784
+ 20: 21,
785
+ 21: l,
786
+ 22: u,
787
+ 23: d,
788
+ 24: f,
789
+ 25: 23,
790
+ 33: 25,
791
+ 41: p,
792
+ 42: m,
793
+ 43: h,
794
+ 44: g,
795
+ 45: _,
796
+ 46: v,
797
+ 54: y,
798
+ 72: b,
799
+ 74: x,
800
+ 77: S,
801
+ 89: C,
802
+ 90: w
803
+ },
804
+ {
805
+ 4: 17,
806
+ 5: s,
807
+ 7: 46,
808
+ 8: c,
809
+ 9: r,
810
+ 11: i,
811
+ 13: a,
812
+ 14: 14,
813
+ 15: 15,
814
+ 16: 16,
815
+ 17: 18,
816
+ 18: 19,
817
+ 19: 20,
818
+ 20: 21,
819
+ 21: l,
820
+ 22: u,
821
+ 23: d,
822
+ 24: f,
823
+ 25: 23,
824
+ 33: 25,
825
+ 41: p,
826
+ 42: m,
827
+ 43: h,
828
+ 44: g,
829
+ 45: _,
830
+ 46: v,
831
+ 54: y,
832
+ 72: b,
833
+ 74: x,
834
+ 77: S,
835
+ 89: C,
836
+ 90: w
837
+ },
838
+ {
839
+ 4: 17,
840
+ 5: s,
841
+ 7: 47,
842
+ 8: c,
843
+ 9: r,
844
+ 11: i,
845
+ 13: a,
846
+ 14: 14,
847
+ 15: 15,
848
+ 16: 16,
849
+ 17: 18,
850
+ 18: 19,
851
+ 19: 20,
852
+ 20: 21,
853
+ 21: l,
854
+ 22: u,
855
+ 23: d,
856
+ 24: f,
857
+ 25: 23,
858
+ 33: 25,
859
+ 41: p,
860
+ 42: m,
861
+ 43: h,
862
+ 44: g,
863
+ 45: _,
864
+ 46: v,
865
+ 54: y,
866
+ 72: b,
867
+ 74: x,
868
+ 77: S,
869
+ 89: C,
870
+ 90: w
871
+ },
872
+ {
873
+ 4: 17,
874
+ 5: s,
875
+ 7: 48,
876
+ 8: c,
877
+ 9: r,
878
+ 11: i,
879
+ 13: a,
880
+ 14: 14,
881
+ 15: 15,
882
+ 16: 16,
883
+ 17: 18,
884
+ 18: 19,
885
+ 19: 20,
886
+ 20: 21,
887
+ 21: l,
888
+ 22: u,
889
+ 23: d,
890
+ 24: f,
891
+ 25: 23,
892
+ 33: 25,
893
+ 41: p,
894
+ 42: m,
895
+ 43: h,
896
+ 44: g,
897
+ 45: _,
898
+ 46: v,
899
+ 54: y,
900
+ 72: b,
901
+ 74: x,
902
+ 77: S,
903
+ 89: C,
904
+ 90: w
905
+ },
906
+ {
907
+ 4: 17,
908
+ 5: s,
909
+ 7: 49,
910
+ 8: c,
911
+ 9: r,
912
+ 11: i,
913
+ 13: a,
914
+ 14: 14,
915
+ 15: 15,
916
+ 16: 16,
917
+ 17: 18,
918
+ 18: 19,
919
+ 19: 20,
920
+ 20: 21,
921
+ 21: l,
922
+ 22: u,
923
+ 23: d,
924
+ 24: f,
925
+ 25: 23,
926
+ 33: 25,
927
+ 41: p,
928
+ 42: m,
929
+ 43: h,
930
+ 44: g,
931
+ 45: _,
932
+ 46: v,
933
+ 54: y,
934
+ 72: b,
935
+ 74: x,
936
+ 77: S,
937
+ 89: C,
938
+ 90: w
939
+ },
940
+ {
941
+ 4: 17,
942
+ 5: s,
943
+ 7: 50,
944
+ 8: c,
945
+ 9: r,
946
+ 11: i,
947
+ 13: a,
948
+ 14: 14,
949
+ 15: 15,
950
+ 16: 16,
951
+ 17: 18,
952
+ 18: 19,
953
+ 19: 20,
954
+ 20: 21,
955
+ 21: l,
956
+ 22: u,
957
+ 23: d,
958
+ 24: f,
959
+ 25: 23,
960
+ 33: 25,
961
+ 41: p,
962
+ 42: m,
963
+ 43: h,
964
+ 44: g,
965
+ 45: _,
966
+ 46: v,
967
+ 54: y,
968
+ 72: b,
969
+ 74: x,
970
+ 77: S,
971
+ 89: C,
972
+ 90: w
973
+ },
974
+ {
975
+ 26: 51,
976
+ 89: [1, 52],
977
+ 90: [1, 53]
978
+ },
979
+ {
980
+ 55: 54,
981
+ 89: [1, 55],
982
+ 90: [1, 56]
983
+ },
984
+ {
985
+ 29: [1, 59],
986
+ 61: [1, 57],
987
+ 63: [1, 58]
988
+ },
989
+ e(T, [2, 17]),
990
+ e(T, [2, 18]),
991
+ e(T, [2, 19]),
992
+ e(T, [2, 20]),
993
+ {
994
+ 30: 60,
995
+ 33: 62,
996
+ 75: E,
997
+ 89: C,
998
+ 90: w
999
+ },
1000
+ {
1001
+ 30: 63,
1002
+ 33: 62,
1003
+ 75: E,
1004
+ 89: C,
1005
+ 90: w
1006
+ },
1007
+ {
1008
+ 30: 64,
1009
+ 33: 62,
1010
+ 75: E,
1011
+ 89: C,
1012
+ 90: w
1013
+ },
1014
+ e(D, [2, 29]),
1015
+ e(D, [2, 30]),
1016
+ e(D, [2, 31]),
1017
+ e(D, [2, 32]),
1018
+ e(D, [2, 33]),
1019
+ e(D, [2, 34]),
1020
+ e(O, [2, 81]),
1021
+ e(O, [2, 82]),
1022
+ { 1: [2, 3] },
1023
+ { 8: [2, 8] },
1024
+ { 8: [2, 9] },
1025
+ { 8: [2, 10] },
1026
+ { 8: [2, 11] },
1027
+ { 8: [2, 12] },
1028
+ { 8: [2, 13] },
1029
+ { 8: [2, 14] },
1030
+ { 8: [2, 15] },
1031
+ { 8: [2, 16] },
1032
+ {
1033
+ 27: [1, 65],
1034
+ 29: [1, 66]
1035
+ },
1036
+ e(k, [2, 79]),
1037
+ e(k, [2, 80]),
1038
+ {
1039
+ 27: [1, 67],
1040
+ 29: [1, 68]
1041
+ },
1042
+ e(k, [2, 85]),
1043
+ e(k, [2, 86]),
1044
+ {
1045
+ 62: 69,
1046
+ 65: ee,
1047
+ 66: A,
1048
+ 67: te,
1049
+ 68: ne,
1050
+ 69: re,
1051
+ 70: ie,
1052
+ 71: ae
1053
+ },
1054
+ {
1055
+ 62: 77,
1056
+ 65: ee,
1057
+ 66: A,
1058
+ 67: te,
1059
+ 68: ne,
1060
+ 69: re,
1061
+ 70: ie,
1062
+ 71: ae
1063
+ },
1064
+ {
1065
+ 30: 78,
1066
+ 33: 62,
1067
+ 75: E,
1068
+ 89: C,
1069
+ 90: w
1070
+ },
1071
+ {
1072
+ 73: 79,
1073
+ 75: j,
1074
+ 76: M,
1075
+ 78: 81,
1076
+ 79: 82,
1077
+ 80: N,
1078
+ 81: P,
1079
+ 82: F,
1080
+ 83: I,
1081
+ 84: L,
1082
+ 85: R,
1083
+ 86: z,
1084
+ 87: B,
1085
+ 88: V
1086
+ },
1087
+ e(oe, [2, 60]),
1088
+ e(oe, [2, 62]),
1089
+ {
1090
+ 73: 93,
1091
+ 75: j,
1092
+ 76: M,
1093
+ 78: 81,
1094
+ 79: 82,
1095
+ 80: N,
1096
+ 81: P,
1097
+ 82: F,
1098
+ 83: I,
1099
+ 84: L,
1100
+ 85: R,
1101
+ 86: z,
1102
+ 87: B,
1103
+ 88: V
1104
+ },
1105
+ {
1106
+ 30: 94,
1107
+ 33: 62,
1108
+ 75: E,
1109
+ 76: M,
1110
+ 89: C,
1111
+ 90: w
1112
+ },
1113
+ { 5: [1, 95] },
1114
+ {
1115
+ 30: 96,
1116
+ 33: 62,
1117
+ 75: E,
1118
+ 89: C,
1119
+ 90: w
1120
+ },
1121
+ { 5: [1, 97] },
1122
+ {
1123
+ 30: 98,
1124
+ 33: 62,
1125
+ 75: E,
1126
+ 89: C,
1127
+ 90: w
1128
+ },
1129
+ { 63: [1, 99] },
1130
+ e(H, [2, 50]),
1131
+ e(H, [2, 51]),
1132
+ e(H, [2, 52]),
1133
+ e(H, [2, 53]),
1134
+ e(H, [2, 54]),
1135
+ e(H, [2, 55]),
1136
+ e(H, [2, 56]),
1137
+ { 64: [1, 100] },
1138
+ e(T, [2, 59], { 76: M }),
1139
+ e(T, [2, 64], { 76: se }),
1140
+ {
1141
+ 33: 103,
1142
+ 75: [1, 102],
1143
+ 89: C,
1144
+ 90: w
1145
+ },
1146
+ e(ce, [2, 65], {
1147
+ 79: 104,
1148
+ 75: j,
1149
+ 80: N,
1150
+ 81: P,
1151
+ 82: F,
1152
+ 83: I,
1153
+ 84: L,
1154
+ 85: R,
1155
+ 86: z,
1156
+ 87: B,
1157
+ 88: V
1158
+ }),
1159
+ e(U, [2, 67]),
1160
+ e(U, [2, 69]),
1161
+ e(U, [2, 70]),
1162
+ e(U, [2, 71]),
1163
+ e(U, [2, 72]),
1164
+ e(U, [2, 73]),
1165
+ e(U, [2, 74]),
1166
+ e(U, [2, 75]),
1167
+ e(U, [2, 76]),
1168
+ e(U, [2, 77]),
1169
+ e(U, [2, 78]),
1170
+ e(T, [2, 57], { 76: se }),
1171
+ e(T, [2, 58], { 76: M }),
1172
+ {
1173
+ 5: W,
1174
+ 28: 105,
1175
+ 31: G,
1176
+ 34: K,
1177
+ 36: q,
1178
+ 38: J,
1179
+ 40: Y
1180
+ },
1181
+ {
1182
+ 27: [1, 112],
1183
+ 76: M
1184
+ },
1185
+ {
1186
+ 5: X,
1187
+ 40: Z,
1188
+ 56: 113,
1189
+ 57: Q,
1190
+ 59: $
1191
+ },
1192
+ {
1193
+ 27: [1, 118],
1194
+ 76: M
1195
+ },
1196
+ {
1197
+ 33: 119,
1198
+ 89: C,
1199
+ 90: w
1200
+ },
1201
+ {
1202
+ 33: 120,
1203
+ 89: C,
1204
+ 90: w
1205
+ },
1206
+ {
1207
+ 75: j,
1208
+ 78: 121,
1209
+ 79: 82,
1210
+ 80: N,
1211
+ 81: P,
1212
+ 82: F,
1213
+ 83: I,
1214
+ 84: L,
1215
+ 85: R,
1216
+ 86: z,
1217
+ 87: B,
1218
+ 88: V
1219
+ },
1220
+ e(oe, [2, 61]),
1221
+ e(oe, [2, 63]),
1222
+ e(U, [2, 68]),
1223
+ e(T, [2, 21]),
1224
+ { 32: [1, 122] },
1225
+ { 32: [1, 123] },
1226
+ { 32: [1, 124] },
1227
+ { 32: [1, 125] },
1228
+ {
1229
+ 5: W,
1230
+ 28: 126,
1231
+ 31: G,
1232
+ 34: K,
1233
+ 36: q,
1234
+ 38: J,
1235
+ 40: Y
1236
+ },
1237
+ e(T, [2, 28]),
1238
+ { 5: [1, 127] },
1239
+ e(T, [2, 42]),
1240
+ { 32: [1, 128] },
1241
+ { 32: [1, 129] },
1242
+ {
1243
+ 5: X,
1244
+ 40: Z,
1245
+ 56: 130,
1246
+ 57: Q,
1247
+ 59: $
1248
+ },
1249
+ e(T, [2, 47]),
1250
+ { 5: [1, 131] },
1251
+ e(T, [2, 48]),
1252
+ e(T, [2, 49]),
1253
+ e(ce, [2, 66], {
1254
+ 79: 104,
1255
+ 75: j,
1256
+ 80: N,
1257
+ 81: P,
1258
+ 82: F,
1259
+ 83: I,
1260
+ 84: L,
1261
+ 85: R,
1262
+ 86: z,
1263
+ 87: B,
1264
+ 88: V
1265
+ }),
1266
+ {
1267
+ 33: 132,
1268
+ 89: C,
1269
+ 90: w
1270
+ },
1271
+ {
1272
+ 35: 133,
1273
+ 89: [1, 134],
1274
+ 90: [1, 135]
1275
+ },
1276
+ {
1277
+ 37: 136,
1278
+ 47: [1, 137],
1279
+ 48: [1, 138],
1280
+ 49: [1, 139]
1281
+ },
1282
+ {
1283
+ 39: 140,
1284
+ 50: [1, 141],
1285
+ 51: [1, 142],
1286
+ 52: [1, 143],
1287
+ 53: [1, 144]
1288
+ },
1289
+ e(T, [2, 27]),
1290
+ {
1291
+ 5: W,
1292
+ 28: 145,
1293
+ 31: G,
1294
+ 34: K,
1295
+ 36: q,
1296
+ 38: J,
1297
+ 40: Y
1298
+ },
1299
+ {
1300
+ 58: 146,
1301
+ 89: [1, 147],
1302
+ 90: [1, 148]
1303
+ },
1304
+ {
1305
+ 60: 149,
1306
+ 89: [1, 150],
1307
+ 90: [1, 151]
1308
+ },
1309
+ e(T, [2, 46]),
1310
+ {
1311
+ 5: X,
1312
+ 40: Z,
1313
+ 56: 152,
1314
+ 57: Q,
1315
+ 59: $
1316
+ },
1317
+ { 5: [1, 153] },
1318
+ { 5: [1, 154] },
1319
+ { 5: [2, 83] },
1320
+ { 5: [2, 84] },
1321
+ { 5: [1, 155] },
1322
+ { 5: [2, 35] },
1323
+ { 5: [2, 36] },
1324
+ { 5: [2, 37] },
1325
+ { 5: [1, 156] },
1326
+ { 5: [2, 38] },
1327
+ { 5: [2, 39] },
1328
+ { 5: [2, 40] },
1329
+ { 5: [2, 41] },
1330
+ e(T, [2, 22]),
1331
+ { 5: [1, 157] },
1332
+ { 5: [2, 87] },
1333
+ { 5: [2, 88] },
1334
+ { 5: [1, 158] },
1335
+ { 5: [2, 89] },
1336
+ { 5: [2, 90] },
1337
+ e(T, [2, 43]),
1338
+ {
1339
+ 5: W,
1340
+ 28: 159,
1341
+ 31: G,
1342
+ 34: K,
1343
+ 36: q,
1344
+ 38: J,
1345
+ 40: Y
1346
+ },
1347
+ {
1348
+ 5: W,
1349
+ 28: 160,
1350
+ 31: G,
1351
+ 34: K,
1352
+ 36: q,
1353
+ 38: J,
1354
+ 40: Y
1355
+ },
1356
+ {
1357
+ 5: W,
1358
+ 28: 161,
1359
+ 31: G,
1360
+ 34: K,
1361
+ 36: q,
1362
+ 38: J,
1363
+ 40: Y
1364
+ },
1365
+ {
1366
+ 5: W,
1367
+ 28: 162,
1368
+ 31: G,
1369
+ 34: K,
1370
+ 36: q,
1371
+ 38: J,
1372
+ 40: Y
1373
+ },
1374
+ {
1375
+ 5: X,
1376
+ 40: Z,
1377
+ 56: 163,
1378
+ 57: Q,
1379
+ 59: $
1380
+ },
1381
+ {
1382
+ 5: X,
1383
+ 40: Z,
1384
+ 56: 164,
1385
+ 57: Q,
1386
+ 59: $
1387
+ },
1388
+ e(T, [2, 23]),
1389
+ e(T, [2, 24]),
1390
+ e(T, [2, 25]),
1391
+ e(T, [2, 26]),
1392
+ e(T, [2, 44]),
1393
+ e(T, [2, 45])
1394
+ ],
1395
+ defaultActions: {
1396
+ 8: [2, 2],
1397
+ 12: [2, 1],
1398
+ 41: [2, 3],
1399
+ 42: [2, 8],
1400
+ 43: [2, 9],
1401
+ 44: [2, 10],
1402
+ 45: [2, 11],
1403
+ 46: [2, 12],
1404
+ 47: [2, 13],
1405
+ 48: [2, 14],
1406
+ 49: [2, 15],
1407
+ 50: [2, 16],
1408
+ 134: [2, 83],
1409
+ 135: [2, 84],
1410
+ 137: [2, 35],
1411
+ 138: [2, 36],
1412
+ 139: [2, 37],
1413
+ 141: [2, 38],
1414
+ 142: [2, 39],
1415
+ 143: [2, 40],
1416
+ 144: [2, 41],
1417
+ 147: [2, 87],
1418
+ 148: [2, 88],
1419
+ 150: [2, 89],
1420
+ 151: [2, 90]
1421
+ },
1422
+ parseError: /* @__PURE__ */ n(function(e, t) {
1423
+ if (t.recoverable) this.trace(e);
1424
+ else {
1425
+ var n = Error(e);
1426
+ throw n.hash = t, n;
1427
+ }
1428
+ }, "parseError"),
1429
+ parse: /* @__PURE__ */ n(function(e) {
1430
+ 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: {} };
1431
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1432
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1433
+ var v = h.yylloc;
1434
+ o.push(v);
1435
+ var y = h.options && h.options.ranges;
1436
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1437
+ function b(e) {
1438
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1439
+ }
1440
+ n(b, "popStack");
1441
+ function x() {
1442
+ var e = i.pop() || h.lex() || p;
1443
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1444
+ }
1445
+ n(x, "lex");
1446
+ for (var S, C, w, T, E, D = {}, O, k, ee, A;;) {
1447
+ 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]) {
1448
+ var te = "";
1449
+ for (O in A = [], s[w]) this.terminals_[O] && O > f && A.push("'" + this.terminals_[O] + "'");
1450
+ te = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + A.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(te, {
1451
+ text: h.match,
1452
+ token: this.terminals_[S] || S,
1453
+ line: h.yylineno,
1454
+ loc: v,
1455
+ expected: A
1456
+ });
1457
+ }
1458
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1459
+ switch (T[0]) {
1460
+ case 1:
1461
+ 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--);
1462
+ break;
1463
+ case 2:
1464
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1465
+ first_line: o[o.length - (k || 1)].first_line,
1466
+ last_line: o[o.length - 1].last_line,
1467
+ first_column: o[o.length - (k || 1)].first_column,
1468
+ last_column: o[o.length - 1].last_column
1469
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1470
+ c,
1471
+ u,
1472
+ l,
1473
+ g.yy,
1474
+ T[1],
1475
+ a,
1476
+ o
1477
+ ].concat(m)), E !== void 0) return E;
1478
+ 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._$), ee = s[r[r.length - 2]][r[r.length - 1]], r.push(ee);
1479
+ break;
1480
+ case 3: return !0;
1481
+ }
1482
+ }
1483
+ return !0;
1484
+ }, "parse")
1485
+ };
1486
+ le.lexer = /* @__PURE__ */ (function() {
1487
+ return {
1488
+ EOF: 1,
1489
+ parseError: /* @__PURE__ */ n(function(e, t) {
1490
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1491
+ else throw Error(e);
1492
+ }, "parseError"),
1493
+ setInput: /* @__PURE__ */ n(function(e, t) {
1494
+ 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 = {
1495
+ first_line: 1,
1496
+ first_column: 0,
1497
+ last_line: 1,
1498
+ last_column: 0
1499
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1500
+ }, "setInput"),
1501
+ input: /* @__PURE__ */ n(function() {
1502
+ var e = this._input[0];
1503
+ 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;
1504
+ }, "input"),
1505
+ unput: /* @__PURE__ */ n(function(e) {
1506
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1507
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1508
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1509
+ 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);
1510
+ var i = this.yylloc.range;
1511
+ return this.yylloc = {
1512
+ first_line: this.yylloc.first_line,
1513
+ last_line: this.yylineno + 1,
1514
+ first_column: this.yylloc.first_column,
1515
+ 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
1516
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1517
+ }, "unput"),
1518
+ more: /* @__PURE__ */ n(function() {
1519
+ return this._more = !0, this;
1520
+ }, "more"),
1521
+ reject: /* @__PURE__ */ n(function() {
1522
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1523
+ 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(), {
1524
+ text: "",
1525
+ token: null,
1526
+ line: this.yylineno
1527
+ });
1528
+ return this;
1529
+ }, "reject"),
1530
+ less: /* @__PURE__ */ n(function(e) {
1531
+ this.unput(this.match.slice(e));
1532
+ }, "less"),
1533
+ pastInput: /* @__PURE__ */ n(function() {
1534
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1535
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1536
+ }, "pastInput"),
1537
+ upcomingInput: /* @__PURE__ */ n(function() {
1538
+ var e = this.match;
1539
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1540
+ }, "upcomingInput"),
1541
+ showPosition: /* @__PURE__ */ n(function() {
1542
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1543
+ return e + this.upcomingInput() + "\n" + t + "^";
1544
+ }, "showPosition"),
1545
+ test_match: /* @__PURE__ */ n(function(e, t) {
1546
+ var n, r, i;
1547
+ if (this.options.backtrack_lexer && (i = {
1548
+ yylineno: this.yylineno,
1549
+ yylloc: {
1550
+ first_line: this.yylloc.first_line,
1551
+ last_line: this.last_line,
1552
+ first_column: this.yylloc.first_column,
1553
+ last_column: this.yylloc.last_column
1554
+ },
1555
+ yytext: this.yytext,
1556
+ match: this.match,
1557
+ matches: this.matches,
1558
+ matched: this.matched,
1559
+ yyleng: this.yyleng,
1560
+ offset: this.offset,
1561
+ _more: this._more,
1562
+ _input: this._input,
1563
+ yy: this.yy,
1564
+ conditionStack: this.conditionStack.slice(0),
1565
+ done: this.done
1566
+ }, 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 = {
1567
+ first_line: this.yylloc.last_line,
1568
+ last_line: this.yylineno + 1,
1569
+ first_column: this.yylloc.last_column,
1570
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1571
+ }, 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;
1572
+ if (this._backtrack) {
1573
+ for (var a in i) this[a] = i[a];
1574
+ return !1;
1575
+ }
1576
+ return !1;
1577
+ }, "test_match"),
1578
+ next: /* @__PURE__ */ n(function() {
1579
+ if (this.done) return this.EOF;
1580
+ this._input || (this.done = !0);
1581
+ var e, t, n, r;
1582
+ this._more || (this.yytext = "", this.match = "");
1583
+ 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)) {
1584
+ if (t = n, r = a, this.options.backtrack_lexer) {
1585
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1586
+ if (this._backtrack) {
1587
+ t = !1;
1588
+ continue;
1589
+ } else return !1;
1590
+ } else if (!this.options.flex) break;
1591
+ }
1592
+ 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(), {
1593
+ text: "",
1594
+ token: null,
1595
+ line: this.yylineno
1596
+ });
1597
+ }, "next"),
1598
+ lex: /* @__PURE__ */ n(function() {
1599
+ return this.next() || this.lex();
1600
+ }, "lex"),
1601
+ begin: /* @__PURE__ */ n(function(e) {
1602
+ this.conditionStack.push(e);
1603
+ }, "begin"),
1604
+ popState: /* @__PURE__ */ n(function() {
1605
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1606
+ }, "popState"),
1607
+ _currentRules: /* @__PURE__ */ n(function() {
1608
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1609
+ }, "_currentRules"),
1610
+ topState: /* @__PURE__ */ n(function(e) {
1611
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1612
+ }, "topState"),
1613
+ pushState: /* @__PURE__ */ n(function(e) {
1614
+ this.begin(e);
1615
+ }, "pushState"),
1616
+ stateStackSize: /* @__PURE__ */ n(function() {
1617
+ return this.conditionStack.length;
1618
+ }, "stateStackSize"),
1619
+ options: { "case-insensitive": !0 },
1620
+ performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1621
+ switch (n) {
1622
+ case 0: return "title";
1623
+ case 1: return this.begin("acc_title"), 9;
1624
+ case 2: return this.popState(), "acc_title_value";
1625
+ case 3: return this.begin("acc_descr"), 11;
1626
+ case 4: return this.popState(), "acc_descr_value";
1627
+ case 5:
1628
+ this.begin("acc_descr_multiline");
1629
+ break;
1630
+ case 6:
1631
+ this.popState();
1632
+ break;
1633
+ case 7: return "acc_descr_multiline_value";
1634
+ case 8: return 21;
1635
+ case 9: return 22;
1636
+ case 10: return 23;
1637
+ case 11: return 24;
1638
+ case 12: return 5;
1639
+ case 13: break;
1640
+ case 14: break;
1641
+ case 15: break;
1642
+ case 16: return 8;
1643
+ case 17: return 6;
1644
+ case 18: return 27;
1645
+ case 19: return 40;
1646
+ case 20: return 29;
1647
+ case 21: return 32;
1648
+ case 22: return 31;
1649
+ case 23: return 34;
1650
+ case 24: return 36;
1651
+ case 25: return 38;
1652
+ case 26: return 41;
1653
+ case 27: return 42;
1654
+ case 28: return 43;
1655
+ case 29: return 44;
1656
+ case 30: return 45;
1657
+ case 31: return 46;
1658
+ case 32: return 47;
1659
+ case 33: return 48;
1660
+ case 34: return 49;
1661
+ case 35: return 50;
1662
+ case 36: return 51;
1663
+ case 37: return 52;
1664
+ case 38: return 53;
1665
+ case 39: return 54;
1666
+ case 40: return 65;
1667
+ case 41: return 66;
1668
+ case 42: return 67;
1669
+ case 43: return 68;
1670
+ case 44: return 69;
1671
+ case 45: return 70;
1672
+ case 46: return 71;
1673
+ case 47: return 57;
1674
+ case 48: return 59;
1675
+ case 49: return this.begin("style"), 77;
1676
+ case 50: return 75;
1677
+ case 51: return 81;
1678
+ case 52: return 88;
1679
+ case 53: return "PERCENT";
1680
+ case 54: return 86;
1681
+ case 55: return 84;
1682
+ case 56: break;
1683
+ case 57:
1684
+ this.begin("string");
1685
+ break;
1686
+ case 58:
1687
+ this.popState();
1688
+ break;
1689
+ case 59: return this.begin("style"), 72;
1690
+ case 60: return this.begin("style"), 74;
1691
+ case 61: return 61;
1692
+ case 62: return 64;
1693
+ case 63: return 63;
1694
+ case 64:
1695
+ this.begin("string");
1696
+ break;
1697
+ case 65:
1698
+ this.popState();
1699
+ break;
1700
+ case 66: return "qString";
1701
+ case 67: return t.yytext = t.yytext.trim(), 89;
1702
+ case 68: return 75;
1703
+ case 69: return 80;
1704
+ case 70: return 76;
1705
+ }
1706
+ }, "anonymous"),
1707
+ rules: [
1708
+ /^(?:title\s[^#\n;]+)/i,
1709
+ /^(?:accTitle\s*:\s*)/i,
1710
+ /^(?:(?!\n||)*[^\n]*)/i,
1711
+ /^(?:accDescr\s*:\s*)/i,
1712
+ /^(?:(?!\n||)*[^\n]*)/i,
1713
+ /^(?:accDescr\s*\{\s*)/i,
1714
+ /^(?:[\}])/i,
1715
+ /^(?:[^\}]*)/i,
1716
+ /^(?:.*direction\s+TB[^\n]*)/i,
1717
+ /^(?:.*direction\s+BT[^\n]*)/i,
1718
+ /^(?:.*direction\s+RL[^\n]*)/i,
1719
+ /^(?:.*direction\s+LR[^\n]*)/i,
1720
+ /^(?:(\r?\n)+)/i,
1721
+ /^(?:\s+)/i,
1722
+ /^(?:#[^\n]*)/i,
1723
+ /^(?:%[^\n]*)/i,
1724
+ /^(?:$)/i,
1725
+ /^(?:requirementDiagram\b)/i,
1726
+ /^(?:\{)/i,
1727
+ /^(?:\})/i,
1728
+ /^(?::{3})/i,
1729
+ /^(?::)/i,
1730
+ /^(?:id\b)/i,
1731
+ /^(?:text\b)/i,
1732
+ /^(?:risk\b)/i,
1733
+ /^(?:verifyMethod\b)/i,
1734
+ /^(?:requirement\b)/i,
1735
+ /^(?:functionalRequirement\b)/i,
1736
+ /^(?:interfaceRequirement\b)/i,
1737
+ /^(?:performanceRequirement\b)/i,
1738
+ /^(?:physicalRequirement\b)/i,
1739
+ /^(?:designConstraint\b)/i,
1740
+ /^(?:low\b)/i,
1741
+ /^(?:medium\b)/i,
1742
+ /^(?:high\b)/i,
1743
+ /^(?:analysis\b)/i,
1744
+ /^(?:demonstration\b)/i,
1745
+ /^(?:inspection\b)/i,
1746
+ /^(?:test\b)/i,
1747
+ /^(?:element\b)/i,
1748
+ /^(?:contains\b)/i,
1749
+ /^(?:copies\b)/i,
1750
+ /^(?:derives\b)/i,
1751
+ /^(?:satisfies\b)/i,
1752
+ /^(?:verifies\b)/i,
1753
+ /^(?:refines\b)/i,
1754
+ /^(?:traces\b)/i,
1755
+ /^(?:type\b)/i,
1756
+ /^(?:docref\b)/i,
1757
+ /^(?:style\b)/i,
1758
+ /^(?:\w+)/i,
1759
+ /^(?::)/i,
1760
+ /^(?:;)/i,
1761
+ /^(?:%)/i,
1762
+ /^(?:-)/i,
1763
+ /^(?:#)/i,
1764
+ /^(?: )/i,
1765
+ /^(?:["])/i,
1766
+ /^(?:\n)/i,
1767
+ /^(?:classDef\b)/i,
1768
+ /^(?:class\b)/i,
1769
+ /^(?:<-)/i,
1770
+ /^(?:->)/i,
1771
+ /^(?:-)/i,
1772
+ /^(?:["])/i,
1773
+ /^(?:["])/i,
1774
+ /^(?:[^"]*)/i,
1775
+ /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,
1776
+ /^(?:\w+)/i,
1777
+ /^(?:[0-9]+)/i,
1778
+ /^(?:,)/i
1779
+ ],
1780
+ conditions: {
1781
+ acc_descr_multiline: {
1782
+ rules: [
1783
+ 6,
1784
+ 7,
1785
+ 68,
1786
+ 69,
1787
+ 70
1788
+ ],
1789
+ inclusive: !1
1790
+ },
1791
+ acc_descr: {
1792
+ rules: [
1793
+ 4,
1794
+ 68,
1795
+ 69,
1796
+ 70
1797
+ ],
1798
+ inclusive: !1
1799
+ },
1800
+ acc_title: {
1801
+ rules: [
1802
+ 2,
1803
+ 68,
1804
+ 69,
1805
+ 70
1806
+ ],
1807
+ inclusive: !1
1808
+ },
1809
+ style: {
1810
+ rules: [
1811
+ 50,
1812
+ 51,
1813
+ 52,
1814
+ 53,
1815
+ 54,
1816
+ 55,
1817
+ 56,
1818
+ 57,
1819
+ 58,
1820
+ 68,
1821
+ 69,
1822
+ 70
1823
+ ],
1824
+ inclusive: !1
1825
+ },
1826
+ unqString: {
1827
+ rules: [
1828
+ 68,
1829
+ 69,
1830
+ 70
1831
+ ],
1832
+ inclusive: !1
1833
+ },
1834
+ token: {
1835
+ rules: [
1836
+ 68,
1837
+ 69,
1838
+ 70
1839
+ ],
1840
+ inclusive: !1
1841
+ },
1842
+ string: {
1843
+ rules: [
1844
+ 65,
1845
+ 66,
1846
+ 68,
1847
+ 69,
1848
+ 70
1849
+ ],
1850
+ inclusive: !1
1851
+ },
1852
+ INITIAL: {
1853
+ rules: [
1854
+ 0,
1855
+ 1,
1856
+ 3,
1857
+ 5,
1858
+ 8,
1859
+ 9,
1860
+ 10,
1861
+ 11,
1862
+ 12,
1863
+ 13,
1864
+ 14,
1865
+ 15,
1866
+ 16,
1867
+ 17,
1868
+ 18,
1869
+ 19,
1870
+ 20,
1871
+ 21,
1872
+ 22,
1873
+ 23,
1874
+ 24,
1875
+ 25,
1876
+ 26,
1877
+ 27,
1878
+ 28,
1879
+ 29,
1880
+ 30,
1881
+ 31,
1882
+ 32,
1883
+ 33,
1884
+ 34,
1885
+ 35,
1886
+ 36,
1887
+ 37,
1888
+ 38,
1889
+ 39,
1890
+ 40,
1891
+ 41,
1892
+ 42,
1893
+ 43,
1894
+ 44,
1895
+ 45,
1896
+ 46,
1897
+ 47,
1898
+ 48,
1899
+ 49,
1900
+ 59,
1901
+ 60,
1902
+ 61,
1903
+ 62,
1904
+ 63,
1905
+ 64,
1906
+ 67,
1907
+ 68,
1908
+ 69,
1909
+ 70
1910
+ ],
1911
+ inclusive: !0
1912
+ }
1913
+ }
1914
+ };
1915
+ })();
1916
+ function ue() {
1917
+ this.yy = {};
1918
+ }
1919
+ return n(ue, "Parser"), ue.prototype = le, le.Parser = ue, new ue();
1920
+ })();
1921
+ b.parser = b;
1922
+ var x = b, S = (y = class {
1923
+ constructor() {
1924
+ this.relations = [], this.latestRequirement = this.getInitialRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.latestElement = this.getInitialElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.RequirementType = {
1925
+ REQUIREMENT: "Requirement",
1926
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
1927
+ INTERFACE_REQUIREMENT: "Interface Requirement",
1928
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
1929
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
1930
+ DESIGN_CONSTRAINT: "Design Constraint"
1931
+ }, this.RiskLevel = {
1932
+ LOW_RISK: "Low",
1933
+ MED_RISK: "Medium",
1934
+ HIGH_RISK: "High"
1935
+ }, this.VerifyType = {
1936
+ VERIFY_ANALYSIS: "Analysis",
1937
+ VERIFY_DEMONSTRATION: "Demonstration",
1938
+ VERIFY_INSPECTION: "Inspection",
1939
+ VERIFY_TEST: "Test"
1940
+ }, this.Relationships = {
1941
+ CONTAINS: "contains",
1942
+ COPIES: "copies",
1943
+ DERIVES: "derives",
1944
+ SATISFIES: "satisfies",
1945
+ VERIFIES: "verifies",
1946
+ REFINES: "refines",
1947
+ TRACES: "traces"
1948
+ }, this.setAccTitle = s, this.getAccTitle = p, this.setAccDescription = a, this.getAccDescription = u, this.setDiagramTitle = o, this.getDiagramTitle = d, this.getConfig = /* @__PURE__ */ n(() => f().requirement, "getConfig"), this.clear(), this.setDirection = this.setDirection.bind(this), this.addRequirement = this.addRequirement.bind(this), this.setNewReqId = this.setNewReqId.bind(this), this.setNewReqRisk = this.setNewReqRisk.bind(this), this.setNewReqText = this.setNewReqText.bind(this), this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this), this.addElement = this.addElement.bind(this), this.setNewElementType = this.setNewElementType.bind(this), this.setNewElementDocRef = this.setNewElementDocRef.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setCssStyle = this.setCssStyle.bind(this), this.setClass = this.setClass.bind(this), this.defineClass = this.defineClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
1949
+ }
1950
+ getDirection() {
1951
+ return this.direction;
1952
+ }
1953
+ setDirection(e) {
1954
+ this.direction = e;
1955
+ }
1956
+ resetLatestRequirement() {
1957
+ this.latestRequirement = this.getInitialRequirement();
1958
+ }
1959
+ resetLatestElement() {
1960
+ this.latestElement = this.getInitialElement();
1961
+ }
1962
+ getInitialRequirement() {
1963
+ return {
1964
+ requirementId: "",
1965
+ text: "",
1966
+ risk: "",
1967
+ verifyMethod: "",
1968
+ name: "",
1969
+ type: "",
1970
+ cssStyles: [],
1971
+ classes: ["default"]
1972
+ };
1973
+ }
1974
+ getInitialElement() {
1975
+ return {
1976
+ name: "",
1977
+ type: "",
1978
+ docRef: "",
1979
+ cssStyles: [],
1980
+ classes: ["default"]
1981
+ };
1982
+ }
1983
+ addRequirement(e, t) {
1984
+ return this.requirements.has(e) || this.requirements.set(e, {
1985
+ name: e,
1986
+ type: t,
1987
+ requirementId: this.latestRequirement.requirementId,
1988
+ text: this.latestRequirement.text,
1989
+ risk: this.latestRequirement.risk,
1990
+ verifyMethod: this.latestRequirement.verifyMethod,
1991
+ cssStyles: [],
1992
+ classes: ["default"]
1993
+ }), this.resetLatestRequirement(), this.requirements.get(e);
1994
+ }
1995
+ getRequirements() {
1996
+ return this.requirements;
1997
+ }
1998
+ setNewReqId(e) {
1999
+ this.latestRequirement !== void 0 && (this.latestRequirement.requirementId = e);
2000
+ }
2001
+ setNewReqText(e) {
2002
+ this.latestRequirement !== void 0 && (this.latestRequirement.text = e);
2003
+ }
2004
+ setNewReqRisk(e) {
2005
+ this.latestRequirement !== void 0 && (this.latestRequirement.risk = e);
2006
+ }
2007
+ setNewReqVerifyMethod(e) {
2008
+ this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod = e);
2009
+ }
2010
+ addElement(e) {
2011
+ return this.elements.has(e) || (this.elements.set(e, {
2012
+ name: e,
2013
+ type: this.latestElement.type,
2014
+ docRef: this.latestElement.docRef,
2015
+ cssStyles: [],
2016
+ classes: ["default"]
2017
+ }), r.info("Added new element: ", e)), this.resetLatestElement(), this.elements.get(e);
2018
+ }
2019
+ getElements() {
2020
+ return this.elements;
2021
+ }
2022
+ setNewElementType(e) {
2023
+ this.latestElement !== void 0 && (this.latestElement.type = e);
2024
+ }
2025
+ setNewElementDocRef(e) {
2026
+ this.latestElement !== void 0 && (this.latestElement.docRef = e);
2027
+ }
2028
+ addRelationship(e, t, n) {
2029
+ this.relations.push({
2030
+ type: e,
2031
+ src: t,
2032
+ dst: n
2033
+ });
2034
+ }
2035
+ getRelationships() {
2036
+ return this.relations;
2037
+ }
2038
+ clear() {
2039
+ this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), c();
2040
+ }
2041
+ setCssStyle(e, t) {
2042
+ for (let r of e) {
2043
+ var n;
2044
+ let e = (n = this.requirements.get(r)) == null ? this.elements.get(r) : n;
2045
+ if (!t || !e) return;
2046
+ for (let n of t) n.includes(",") ? e.cssStyles.push(...n.split(",")) : e.cssStyles.push(n);
2047
+ }
2048
+ }
2049
+ setClass(e, t) {
2050
+ for (let i of e) {
2051
+ var n;
2052
+ let e = (n = this.requirements.get(i)) == null ? this.elements.get(i) : n;
2053
+ if (e) for (let n of t) {
2054
+ var r;
2055
+ e.classes.push(n);
2056
+ let t = (r = this.classes.get(n)) == null ? void 0 : r.styles;
2057
+ t && e.cssStyles.push(...t);
2058
+ }
2059
+ }
2060
+ }
2061
+ defineClass(e, t) {
2062
+ for (let n of e) {
2063
+ let e = this.classes.get(n);
2064
+ e === void 0 && (e = {
2065
+ id: n,
2066
+ styles: [],
2067
+ textStyles: []
2068
+ }, this.classes.set(n, e)), t && t.forEach(function(t) {
2069
+ if (/color/.exec(t)) {
2070
+ let n = t.replace("fill", "bgFill");
2071
+ e.textStyles.push(n);
2072
+ }
2073
+ e.styles.push(t);
2074
+ }), this.requirements.forEach((e) => {
2075
+ e.classes.includes(n) && e.cssStyles.push(...t.flatMap((e) => e.split(",")));
2076
+ }), this.elements.forEach((e) => {
2077
+ e.classes.includes(n) && e.cssStyles.push(...t.flatMap((e) => e.split(",")));
2078
+ });
2079
+ }
2080
+ }
2081
+ getClasses() {
2082
+ return this.classes;
2083
+ }
2084
+ getData() {
2085
+ let e = f(), t = [], n = [];
2086
+ for (let n of this.requirements.values()) {
2087
+ let r = n;
2088
+ r.id = n.name, r.cssStyles = n.cssStyles, r.cssClasses = n.classes.join(" "), r.shape = "requirementBox", r.look = e.look, r.colorIndex = t.length, t.push(r);
2089
+ }
2090
+ for (let n of this.elements.values()) {
2091
+ let r = n;
2092
+ r.shape = "requirementBox", r.look = e.look, r.id = n.name, r.cssStyles = n.cssStyles, r.cssClasses = n.classes.join(" "), r.colorIndex = t.length, t.push(r);
2093
+ }
2094
+ for (let t of this.relations) {
2095
+ var r, i, a, o, s, c;
2096
+ let l = 0, u = t.type === this.Relationships.CONTAINS, d = {
2097
+ id: `${t.src}-${t.dst}-${l}`,
2098
+ start: (r = (i = this.requirements.get(t.src)) == null ? void 0 : i.name) == null ? (a = this.elements.get(t.src)) == null ? void 0 : a.name : r,
2099
+ end: (o = (s = this.requirements.get(t.dst)) == null ? void 0 : s.name) == null ? (c = this.elements.get(t.dst)) == null ? void 0 : c.name : o,
2100
+ label: `&lt;&lt;${t.type}&gt;&gt;`,
2101
+ classes: "relationshipLine",
2102
+ style: ["fill:none", u ? "" : "stroke-dasharray: 10,7"],
2103
+ labelpos: "c",
2104
+ thickness: "normal",
2105
+ type: "normal",
2106
+ pattern: u ? "normal" : "dashed",
2107
+ arrowTypeStart: u ? "requirement_contains" : "",
2108
+ arrowTypeEnd: u ? "" : "requirement_arrow",
2109
+ look: e.look,
2110
+ labelType: "markdown"
2111
+ };
2112
+ n.push(d), l++;
2113
+ }
2114
+ return {
2115
+ nodes: t,
2116
+ edges: n,
2117
+ other: {},
2118
+ config: e,
2119
+ direction: this.getDirection()
2120
+ };
2121
+ }
2122
+ }, n(y, "RequirementDB"), y), C = /* @__PURE__ */ n((e) => {
2123
+ let { themeVariables: t, look: n } = l(), { bkgColorArray: r, borderColorArray: i } = t;
2124
+ if (!(i != null && i.length)) return "";
2125
+ let a = "";
2126
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) a += `
2127
+
2128
+ [data-look="${n}"][data-color-id="color-${t}"].node path {
2129
+ stroke: ${i[t]};
2130
+ fill: ${r != null && r.length ? r[t] : ""};
2131
+ }
2132
+
2133
+ [data-look="${n}"][data-color-id="color-${t}"].node rect {
2134
+ stroke: ${i[t]};
2135
+ fill: ${r != null && r.length ? r[t] : ""};
2136
+ }
2137
+ `;
2138
+ return a;
2139
+ }, "genColor"), w = /* @__PURE__ */ n((e) => {
2140
+ let { look: t, themeVariables: n } = l(), { requirementEdgeLabelBackground: r } = n;
2141
+ return `
2142
+ ${C(e)}
2143
+ marker {
2144
+ fill: ${e.relationColor};
2145
+ stroke: ${e.relationColor};
2146
+ }
2147
+
2148
+ marker.cross {
2149
+ stroke: ${e.lineColor};
2150
+ }
2151
+
2152
+ svg {
2153
+ font-family: ${e.fontFamily};
2154
+ font-size: ${e.fontSize};
2155
+ }
2156
+
2157
+ .reqBox {
2158
+ fill: ${e.requirementBackground};
2159
+ fill-opacity: 1.0;
2160
+ stroke: ${e.requirementBorderColor};
2161
+ stroke-width: ${e.requirementBorderSize};
2162
+ }
2163
+
2164
+ .reqTitle, .reqLabel{
2165
+ fill: ${e.requirementTextColor};
2166
+ }
2167
+ .reqLabelBox {
2168
+ fill: ${e.relationLabelBackground};
2169
+ fill-opacity: 1.0;
2170
+ }
2171
+
2172
+ .req-title-line {
2173
+ stroke: ${e.requirementBorderColor};
2174
+ stroke-width: ${e.requirementBorderSize};
2175
+ }
2176
+ .relationshipLine {
2177
+ stroke: ${e.relationColor};
2178
+ stroke-width: ${t === "neo" ? e.strokeWidth : "1px"};
2179
+ }
2180
+ .relationshipLabel {
2181
+ fill: ${e.relationLabelColor};
2182
+ }
2183
+ .edgeLabel {
2184
+ background-color: ${e.edgeLabelBackground};
2185
+ }
2186
+ .edgeLabel .label rect {
2187
+ fill: ${e.edgeLabelBackground};
2188
+ }
2189
+ .edgeLabel .label text {
2190
+ fill: ${e.relationLabelColor};
2191
+ }
2192
+ .divider {
2193
+ stroke: ${e.nodeBorder};
2194
+ stroke-width: 1;
2195
+ }
2196
+ .label {
2197
+ font-family: ${e.fontFamily};
2198
+ color: ${e.nodeTextColor || e.textColor};
2199
+ }
2200
+ .label text,span {
2201
+ fill: ${e.nodeTextColor || e.textColor};
2202
+ color: ${e.nodeTextColor || e.textColor};
2203
+ }
2204
+ .labelBkg {
2205
+ background-color: ${r == null ? e.edgeLabelBackground : r};
2206
+ }
2207
+
2208
+ `;
2209
+ }, "getStyles"), T = {};
2210
+ i(T, { draw: () => E });
2211
+ var E = /* @__PURE__ */ n(/* @__PURE__ */ function() {
2212
+ var e = t(function* (e, t, n, i) {
2213
+ var a, o, s, c;
2214
+ r.info("REF0:"), r.info("Drawing requirement diagram (unified)", t);
2215
+ let { securityLevel: l, state: u, layout: d, look: p } = f(), y = i.db.getData(), b = _(t, l);
2216
+ y.type = i.type, y.layoutAlgorithm = g(d), y.nodeSpacing = (a = u == null ? void 0 : u.nodeSpacing) == null ? 50 : a, y.rankSpacing = (o = u == null ? void 0 : u.rankSpacing) == null ? 50 : o, y.markers = p === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"], y.diagramId = t, yield h(y, b), m.insertTitle(b, "requirementDiagramTitleText", (s = u == null ? void 0 : u.titleTopMargin) == null ? 25 : s, i.db.getDiagramTitle()), v(b, 8, "requirementDiagram", (c = u == null ? void 0 : u.useMaxWidth) == null ? !0 : c);
2217
+ });
2218
+ return function(t, n, r, i) {
2219
+ return e.apply(this, arguments);
2220
+ };
2221
+ }(), "draw"), D = {
2222
+ parser: x,
2223
+ get db() {
2224
+ return new S();
2225
+ },
2226
+ renderer: T,
2227
+ styles: w
2228
+ };
2229
+ //#endregion
2230
+ export { D as diagram };