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,541 @@
1
+ import { n as e, t } from "./objectSpread2.js";
2
+ import { n, t as r } from "./asyncToGenerator.js";
3
+ import { n as i, r as a } from "./chunk-AGHRB4JF.js";
4
+ import { D as o, H as s, K as c, U as l, a as u, b as d, c as f, f as p, v as m, w as h, y as g } from "./chunk-CSCIHK7Q.js";
5
+ import { t as _ } from "./ordinal.js";
6
+ import { Q as v } from "./src.js";
7
+ import { t as y } from "./defaultLocale.js";
8
+ import { i as b } from "./chunk-5ZQYHXKU.js";
9
+ import { t as x } from "./chunk-WU5MYG2G.js";
10
+ import { i as S, n as C } from "./chunk-NZK2D7GU.js";
11
+ import { t as w } from "./mermaid-parser.core.js";
12
+ import { t as T } from "./chunk-4BX2VUAB.js";
13
+ import { t as ee } from "./chunk-2J33WTMH.js";
14
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/count.js
15
+ function E(e) {
16
+ var t = 0, n = e.children, r = n && n.length;
17
+ if (!r) t = 1;
18
+ else for (; --r >= 0;) t += n[r].value;
19
+ e.value = t;
20
+ }
21
+ function D() {
22
+ return this.eachAfter(E);
23
+ }
24
+ //#endregion
25
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/each.js
26
+ function O(e, t) {
27
+ let n = -1;
28
+ for (let r of this) e.call(t, r, ++n, this);
29
+ return this;
30
+ }
31
+ //#endregion
32
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
33
+ function k(e, t) {
34
+ for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
35
+ return this;
36
+ }
37
+ //#endregion
38
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
39
+ function A(e, t) {
40
+ for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
41
+ for (; n = i.pop();) e.call(t, n, ++c, this);
42
+ return this;
43
+ }
44
+ //#endregion
45
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/find.js
46
+ function j(e, t) {
47
+ let n = -1;
48
+ for (let r of this) if (e.call(t, r, ++n, this)) return r;
49
+ }
50
+ //#endregion
51
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sum.js
52
+ function M(e) {
53
+ return this.eachAfter(function(t) {
54
+ for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
55
+ t.value = n;
56
+ });
57
+ }
58
+ //#endregion
59
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sort.js
60
+ function N(e) {
61
+ return this.eachBefore(function(t) {
62
+ t.children && t.children.sort(e);
63
+ });
64
+ }
65
+ //#endregion
66
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/path.js
67
+ function P(e) {
68
+ for (var t = this, n = F(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
69
+ for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
70
+ return r;
71
+ }
72
+ function F(e, t) {
73
+ if (e === t) return e;
74
+ var n = e.ancestors(), r = t.ancestors(), i = null;
75
+ for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
76
+ return i;
77
+ }
78
+ //#endregion
79
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/ancestors.js
80
+ function I() {
81
+ for (var e = this, t = [e]; e = e.parent;) t.push(e);
82
+ return t;
83
+ }
84
+ //#endregion
85
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/descendants.js
86
+ function L() {
87
+ return Array.from(this);
88
+ }
89
+ //#endregion
90
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/leaves.js
91
+ function te() {
92
+ var e = [];
93
+ return this.eachBefore(function(t) {
94
+ t.children || e.push(t);
95
+ }), e;
96
+ }
97
+ //#endregion
98
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/links.js
99
+ function ne() {
100
+ var e = this, t = [];
101
+ return e.each(function(n) {
102
+ n !== e && t.push({
103
+ source: n.parent,
104
+ target: n
105
+ });
106
+ }), t;
107
+ }
108
+ //#endregion
109
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/iterator.js
110
+ function* re() {
111
+ var e = this, t, n = [e], r, i, a;
112
+ do
113
+ for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
114
+ while (n.length);
115
+ }
116
+ //#endregion
117
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js
118
+ function R(e, t) {
119
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = V)) : t === void 0 && (t = B);
120
+ for (var n = new W(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new W(o[s])), a.parent = r, a.depth = r.depth + 1;
121
+ return n.eachBefore(U);
122
+ }
123
+ function z() {
124
+ return R(this).eachBefore(H);
125
+ }
126
+ function B(e) {
127
+ return e.children;
128
+ }
129
+ function V(e) {
130
+ return Array.isArray(e) ? e[1] : null;
131
+ }
132
+ function H(e) {
133
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
134
+ }
135
+ function U(e) {
136
+ var t = 0;
137
+ do
138
+ e.height = t;
139
+ while ((e = e.parent) && e.height < ++t);
140
+ }
141
+ function W(e) {
142
+ this.data = e, this.depth = this.height = 0, this.parent = null;
143
+ }
144
+ W.prototype = R.prototype = {
145
+ constructor: W,
146
+ count: D,
147
+ each: O,
148
+ eachAfter: A,
149
+ eachBefore: k,
150
+ find: j,
151
+ sum: M,
152
+ sort: N,
153
+ path: P,
154
+ ancestors: I,
155
+ descendants: L,
156
+ leaves: te,
157
+ links: ne,
158
+ copy: z,
159
+ [Symbol.iterator]: re
160
+ };
161
+ //#endregion
162
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/accessors.js
163
+ function G(e) {
164
+ if (typeof e != "function") throw Error();
165
+ return e;
166
+ }
167
+ //#endregion
168
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/constant.js
169
+ function K() {
170
+ return 0;
171
+ }
172
+ function q(e) {
173
+ return function() {
174
+ return e;
175
+ };
176
+ }
177
+ //#endregion
178
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/round.js
179
+ function ie(e) {
180
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
181
+ }
182
+ //#endregion
183
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/dice.js
184
+ function ae(e, t, n, r, i) {
185
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
186
+ }
187
+ //#endregion
188
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/slice.js
189
+ function oe(e, t, n, r, i) {
190
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
191
+ }
192
+ //#endregion
193
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/squarify.js
194
+ var se = (1 + Math.sqrt(5)) / 2;
195
+ function ce(e, t, n, r, i, a) {
196
+ for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
197
+ p = i - n, m = a - r;
198
+ do
199
+ g = s[d++].value;
200
+ while (!g && d < f);
201
+ for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
202
+ if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
203
+ g -= l;
204
+ break;
205
+ }
206
+ b = y;
207
+ }
208
+ o.push(c = {
209
+ value: g,
210
+ dice: p < m,
211
+ children: s.slice(u, d)
212
+ }), c.dice ? ae(c, n, r, i, h ? r += m * g / h : a) : oe(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
213
+ }
214
+ return o;
215
+ }
216
+ var le = (function e(t) {
217
+ function n(e, n, r, i, a) {
218
+ ce(t, e, n, r, i, a);
219
+ }
220
+ return n.ratio = function(t) {
221
+ return e((t = +t) > 1 ? t : 1);
222
+ }, n;
223
+ })(se);
224
+ //#endregion
225
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/index.js
226
+ function ue() {
227
+ var e = le, t = !1, n = 1, r = 1, i = [0], a = K, o = K, s = K, c = K, l = K;
228
+ function u(e) {
229
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ie), e;
230
+ }
231
+ function d(t) {
232
+ var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
233
+ d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
234
+ }
235
+ return u.round = function(e) {
236
+ return arguments.length ? (t = !!e, u) : t;
237
+ }, u.size = function(e) {
238
+ return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
239
+ }, u.tile = function(t) {
240
+ return arguments.length ? (e = G(t), u) : e;
241
+ }, u.padding = function(e) {
242
+ return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
243
+ }, u.paddingInner = function(e) {
244
+ return arguments.length ? (a = typeof e == "function" ? e : q(+e), u) : a;
245
+ }, u.paddingOuter = function(e) {
246
+ return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
247
+ }, u.paddingTop = function(e) {
248
+ return arguments.length ? (o = typeof e == "function" ? e : q(+e), u) : o;
249
+ }, u.paddingRight = function(e) {
250
+ return arguments.length ? (s = typeof e == "function" ? e : q(+e), u) : s;
251
+ }, u.paddingBottom = function(e) {
252
+ return arguments.length ? (c = typeof e == "function" ? e : q(+e), u) : c;
253
+ }, u.paddingLeft = function(e) {
254
+ return arguments.length ? (l = typeof e == "function" ? e : q(+e), u) : l;
255
+ }, u;
256
+ }
257
+ e(), n();
258
+ var J, Y = (J = class {
259
+ constructor() {
260
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = l, this.getAccTitle = g, this.setDiagramTitle = c, this.getDiagramTitle = h, this.getAccDescription = m, this.setAccDescription = s;
261
+ }
262
+ getNodes() {
263
+ return this.nodes;
264
+ }
265
+ getConfig() {
266
+ var e;
267
+ let n = p, r = d();
268
+ return b(t(t({}, n.treemap), (e = r.treemap) == null ? {} : e));
269
+ }
270
+ addNode(e, t) {
271
+ this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root != null || (this.root = e));
272
+ }
273
+ getRoot() {
274
+ return {
275
+ name: "",
276
+ children: this.outerNodes
277
+ };
278
+ }
279
+ addClass(e, t) {
280
+ var n;
281
+ let r = (n = this.classes.get(e)) == null ? {
282
+ id: e,
283
+ styles: [],
284
+ textStyles: []
285
+ } : n, i = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
286
+ i && i.forEach((e) => {
287
+ C(e) && (r != null && r.textStyles ? r.textStyles.push(e) : r.textStyles = [e]), r != null && r.styles ? r.styles.push(e) : r.styles = [e];
288
+ }), this.classes.set(e, r);
289
+ }
290
+ getClasses() {
291
+ return this.classes;
292
+ }
293
+ getStylesForClass(e) {
294
+ var t, n;
295
+ return (t = (n = this.classes.get(e)) == null ? void 0 : n.styles) == null ? [] : t;
296
+ }
297
+ clear() {
298
+ u(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
299
+ }
300
+ }, i(J, "TreeMapDB"), J);
301
+ function X(e) {
302
+ if (!e.length) return [];
303
+ let t = [], n = [];
304
+ return e.forEach((e) => {
305
+ let r = {
306
+ name: e.name,
307
+ children: e.type === "Leaf" ? void 0 : []
308
+ };
309
+ for (r.classSelector = e == null ? void 0 : e.classSelector, e != null && e.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
310
+ if (n.length === 0) t.push(r);
311
+ else {
312
+ let e = n[n.length - 1].node;
313
+ e.children ? e.children.push(r) : e.children = [r];
314
+ }
315
+ e.type !== "Leaf" && n.push({
316
+ node: r,
317
+ level: e.level
318
+ });
319
+ }), t;
320
+ }
321
+ i(X, "buildHierarchy");
322
+ var de = /* @__PURE__ */ i((e, t) => {
323
+ var n, r;
324
+ T(e, t);
325
+ let a = [];
326
+ for (let r of (n = e.TreemapRows) == null ? [] : n) if (r.$type === "ClassDefStatement") {
327
+ var o, s;
328
+ t.addClass((o = r.className) == null ? "" : o, (s = r.styleText) == null ? "" : s);
329
+ }
330
+ for (let n of (r = e.TreemapRows) == null ? [] : r) {
331
+ let e = n.item;
332
+ if (!e) continue;
333
+ let r = n.indent ? parseInt(n.indent) : 0, i = fe(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
334
+ level: r,
335
+ name: i,
336
+ type: e.$type,
337
+ value: e.value,
338
+ classSelector: e.classSelector,
339
+ cssCompiledStyles: s
340
+ };
341
+ a.push(c);
342
+ }
343
+ let c = X(a), l = /* @__PURE__ */ i((e, n) => {
344
+ for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && l(r.children, n + 1);
345
+ }, "addNodesRecursively");
346
+ l(c, 0);
347
+ }, "populate"), fe = /* @__PURE__ */ i((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
348
+ parser: { yy: void 0 },
349
+ parse: /* @__PURE__ */ i(function() {
350
+ var e = r(function* (e) {
351
+ try {
352
+ var t;
353
+ let n = yield w("treemap", e);
354
+ a.debug("Treemap AST:", n);
355
+ let r = (t = Z.parser) == null ? void 0 : t.yy;
356
+ if (!(r instanceof Y)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
357
+ de(n, r);
358
+ } catch (e) {
359
+ throw a.error("Error parsing treemap:", e), e;
360
+ }
361
+ });
362
+ return function(t) {
363
+ return e.apply(this, arguments);
364
+ };
365
+ }(), "parse")
366
+ }, pe = 10, Q = 10, $ = 25, me = {
367
+ draw: /* @__PURE__ */ i((e, t, n, r) => {
368
+ var o, s;
369
+ let c = r.db, l = c.getConfig(), u = (o = l.padding) == null ? pe : o, p = c.getDiagramTitle(), m = c.getRoot(), { themeVariables: h } = d();
370
+ if (!m) return;
371
+ let g = p ? 30 : 0, b = x(t), C = l.nodeWidth ? l.nodeWidth * Q : 960, w = l.nodeHeight ? l.nodeHeight * Q : 500, T = C, E = w + g;
372
+ b.attr("viewBox", `0 0 ${T} ${E}`), f(b, E, T, l.useMaxWidth);
373
+ let D;
374
+ try {
375
+ let e = l.valueFormat || ",";
376
+ if (e === "$0,0") D = /* @__PURE__ */ i((e) => "$" + y(",")(e), "valueFormat");
377
+ else if (e.startsWith("$") && e.includes(",")) {
378
+ let t = /\.\d+/.exec(e), n = t ? t[0] : "";
379
+ D = /* @__PURE__ */ i((e) => "$" + y("," + n)(e), "valueFormat");
380
+ } else if (e.startsWith("$")) {
381
+ let t = e.substring(1);
382
+ D = /* @__PURE__ */ i((e) => "$" + y(t || "")(e), "valueFormat");
383
+ } else D = y(e);
384
+ } catch (e) {
385
+ a.error("Error creating format function:", e), D = y(",");
386
+ }
387
+ let O = _().range([
388
+ "transparent",
389
+ h.cScale0,
390
+ h.cScale1,
391
+ h.cScale2,
392
+ h.cScale3,
393
+ h.cScale4,
394
+ h.cScale5,
395
+ h.cScale6,
396
+ h.cScale7,
397
+ h.cScale8,
398
+ h.cScale9,
399
+ h.cScale10,
400
+ h.cScale11
401
+ ]), k = _().range([
402
+ "transparent",
403
+ h.cScalePeer0,
404
+ h.cScalePeer1,
405
+ h.cScalePeer2,
406
+ h.cScalePeer3,
407
+ h.cScalePeer4,
408
+ h.cScalePeer5,
409
+ h.cScalePeer6,
410
+ h.cScalePeer7,
411
+ h.cScalePeer8,
412
+ h.cScalePeer9,
413
+ h.cScalePeer10,
414
+ h.cScalePeer11
415
+ ]), A = _().range([
416
+ h.cScaleLabel0,
417
+ h.cScaleLabel1,
418
+ h.cScaleLabel2,
419
+ h.cScaleLabel3,
420
+ h.cScaleLabel4,
421
+ h.cScaleLabel5,
422
+ h.cScaleLabel6,
423
+ h.cScaleLabel7,
424
+ h.cScaleLabel8,
425
+ h.cScaleLabel9,
426
+ h.cScaleLabel10,
427
+ h.cScaleLabel11
428
+ ]);
429
+ p && b.append("text").attr("x", T / 2).attr("y", g / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
430
+ let j = b.append("g").attr("transform", `translate(0, ${g})`).attr("class", "treemapContainer"), M = R(m).sum((e) => {
431
+ var t;
432
+ return (t = e.value) == null ? 0 : t;
433
+ }).sort((e, t) => {
434
+ var n, r;
435
+ return ((n = t.value) == null ? 0 : n) - ((r = e.value) == null ? 0 : r);
436
+ }), N = ue().size([C, w]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(u).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(M), P = N.descendants().filter((e) => e.children && e.children.length > 0), F = j.selectAll(".treemapSection").data(P).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
437
+ F.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), F.append("clipPath").attr("id", (e, n) => `clip-section-${t}-${n}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), F.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => O(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => k(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
438
+ if (e.depth === 0) return "display: none;";
439
+ let t = S({ cssCompiledStyles: e.data.cssCompiledStyles });
440
+ return t.nodeStyles + ";" + t.borderStyles.join(";");
441
+ }), F.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + A(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + S({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
442
+ if (e.depth === 0) return;
443
+ let t = v(this), n = e.data.name;
444
+ t.text(n);
445
+ let r = e.x1 - e.x0, i;
446
+ i = l.showValues !== !1 && e.value ? r - 10 - 30 - 10 - 6 : r - 6 - 6;
447
+ let a = Math.max(15, i), o = t.node();
448
+ if (o.getComputedTextLength() > a) {
449
+ let e = n;
450
+ for (; e.length > 0;) {
451
+ if (e = n.substring(0, e.length - 1), e.length === 0) {
452
+ t.text("..."), o.getComputedTextLength() > a && t.text("");
453
+ break;
454
+ }
455
+ if (t.text(e + "..."), o.getComputedTextLength() <= a) break;
456
+ }
457
+ }
458
+ }), l.showValues !== !1 && F.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? D(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + A(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + S({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
459
+ let I = N.leaves(), L = j.selectAll(".treemapLeafGroup").data(I).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
460
+ L.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? O(e.parent.data.name) : O(e.data.name)).attr("style", (e) => S({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? O(e.parent.data.name) : O(e.data.name)).attr("stroke-width", 3), L.append("clipPath").attr("id", (e, n) => `clip-${t}-${n}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), L.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + A(e.data.name) + ";" + S({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, n) => `url(#clip-${t}-${n})`).text((e) => e.data.name).each(function(e) {
461
+ let t = v(this), n = e.x1 - e.x0, r = e.y1 - e.y0, i = t.node(), a = n - 8, o = r - 8;
462
+ if (a < 10 || o < 10) {
463
+ t.style("display", "none");
464
+ return;
465
+ }
466
+ let s = parseInt(t.style("font-size"), 10), c = .6;
467
+ for (; i.getComputedTextLength() > a && s > 8;) s--, t.style("font-size", `${s}px`);
468
+ let l = Math.max(6, Math.min(28, Math.round(s * c))), u = s + 2 + l;
469
+ for (; u > o && s > 8 && (s--, l = Math.max(6, Math.min(28, Math.round(s * c))), !(l < 6 && s === 8));) t.style("font-size", `${s}px`), u = s + 2 + l;
470
+ t.style("font-size", `${s}px`), (i.getComputedTextLength() > a || s < 8 || o < s) && t.style("display", "none");
471
+ }), l.showValues !== !1 && L.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
472
+ return (e.y1 - e.y0) / 2;
473
+ }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + A(e.data.name) + ";" + S({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, n) => `url(#clip-${t}-${n})`).text((e) => e.value ? D(e.value) : "").each(function(e) {
474
+ let t = v(this), n = this.parentNode;
475
+ if (!n) {
476
+ t.style("display", "none");
477
+ return;
478
+ }
479
+ let r = v(n).select(".treemapLabel");
480
+ if (r.empty() || r.style("display") === "none") {
481
+ t.style("display", "none");
482
+ return;
483
+ }
484
+ let i = parseFloat(r.style("font-size")), a = Math.max(6, Math.min(28, Math.round(i * .6)));
485
+ t.style("font-size", `${a}px`);
486
+ let o = (e.y1 - e.y0) / 2 + i / 2 + 2;
487
+ t.attr("y", o);
488
+ let s = e.x1 - e.x0, c = e.y1 - e.y0 - 4, l = s - 8;
489
+ t.node().getComputedTextLength() > l || o + a > c || a < 6 ? t.style("display", "none") : t.style("display", null);
490
+ }), ee(b, (s = l.diagramPadding) == null ? 8 : s, "flowchart", (l == null ? void 0 : l.useMaxWidth) || !1);
491
+ }, "draw"),
492
+ getClasses: /* @__PURE__ */ i(function(e, t) {
493
+ return t.db.getClasses();
494
+ }, "getClasses")
495
+ }, he = {
496
+ sectionStrokeColor: "black",
497
+ sectionStrokeWidth: "1",
498
+ sectionFillColor: "#efefef",
499
+ leafStrokeColor: "black",
500
+ leafStrokeWidth: "1",
501
+ leafFillColor: "#efefef",
502
+ labelFontSize: "12px",
503
+ valueFontSize: "10px",
504
+ titleFontSize: "14px"
505
+ }, ge = {
506
+ parser: Z,
507
+ get db() {
508
+ return new Y();
509
+ },
510
+ renderer: me,
511
+ styles: /* @__PURE__ */ i(({ treemap: e } = {}) => {
512
+ var t, n, r;
513
+ let i = b(o(), d().themeVariables), a = b(he, e), s = (t = a.titleColor) == null ? i.titleColor : t, c = (n = a.labelColor) == null ? i.textColor : n, l = (r = a.valueColor) == null ? i.textColor : r;
514
+ return `
515
+ .treemapNode.section {
516
+ stroke: ${a.sectionStrokeColor};
517
+ stroke-width: ${a.sectionStrokeWidth};
518
+ fill: ${a.sectionFillColor};
519
+ }
520
+ .treemapNode.leaf {
521
+ stroke: ${a.leafStrokeColor};
522
+ stroke-width: ${a.leafStrokeWidth};
523
+ fill: ${a.leafFillColor};
524
+ }
525
+ .treemapLabel {
526
+ fill: ${c};
527
+ font-size: ${a.labelFontSize};
528
+ }
529
+ .treemapValue {
530
+ fill: ${l};
531
+ font-size: ${a.valueFontSize};
532
+ }
533
+ .treemapTitle {
534
+ fill: ${s};
535
+ font-size: ${a.titleFontSize};
536
+ }
537
+ `;
538
+ }, "getStyles")
539
+ };
540
+ //#endregion
541
+ export { ge as diagram };
@@ -0,0 +1,39 @@
1
+ //#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js
2
+ function e(e) {
3
+ let t = e.regex;
4
+ return {
5
+ name: "Diff",
6
+ aliases: ["patch"],
7
+ contains: [
8
+ {
9
+ className: "meta",
10
+ relevance: 10,
11
+ match: t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/, /^\*\*\* +\d+,\d+ +\*\*\*\*$/, /^--- +\d+,\d+ +----$/)
12
+ },
13
+ {
14
+ className: "comment",
15
+ variants: [{
16
+ begin: t.either(/Index: /, /^index/, /={3,}/, /^-{3}/, /^\*{3} /, /^\+{3}/, /^diff --git/),
17
+ end: /$/
18
+ }, { match: /^\*{15}$/ }]
19
+ },
20
+ {
21
+ className: "addition",
22
+ begin: /^\+/,
23
+ end: /$/
24
+ },
25
+ {
26
+ className: "deletion",
27
+ begin: /^-/,
28
+ end: /$/
29
+ },
30
+ {
31
+ className: "addition",
32
+ begin: /^!/,
33
+ end: /$/
34
+ }
35
+ ]
36
+ };
37
+ }
38
+ //#endregion
39
+ export { e as default };
@@ -0,0 +1,26 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ //#region node_modules/.pnpm/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/directory-open-01563666.js
3
+ e();
4
+ var n = function() {
5
+ var e = t(function* (e = [{}]) {
6
+ return Array.isArray(e) || (e = [e]), e[0].recursive = e[0].recursive || !1, new Promise((t, n) => {
7
+ let r = document.createElement("input");
8
+ r.type = "file", r.webkitdirectory = !0;
9
+ let i = (e) => {
10
+ typeof a == "function" && a(), t(e);
11
+ }, a = e[0].legacySetup && e[0].legacySetup(i, () => a(n), r);
12
+ r.addEventListener("change", () => {
13
+ let t = Array.from(r.files);
14
+ e[0].recursive ? e[0].recursive && e[0].skipDirectory && (t = t.filter((t) => t.webkitRelativePath.split("/").every((t) => !e[0].skipDirectory({
15
+ name: t,
16
+ kind: "directory"
17
+ })))) : t = t.filter((e) => e.webkitRelativePath.split("/").length === 2), i(t);
18
+ }), r.click();
19
+ });
20
+ });
21
+ return function() {
22
+ return e.apply(this, arguments);
23
+ };
24
+ }();
25
+ //#endregion
26
+ export { n as default };
@@ -0,0 +1,83 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ //#region node_modules/.pnpm/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/directory-open-4ed118d0.js
3
+ e();
4
+ function n(e) {
5
+ function t(e) {
6
+ if (Object(e) !== e) return Promise.reject(/* @__PURE__ */ TypeError(e + " is not an object."));
7
+ var t = e.done;
8
+ return Promise.resolve(e.value).then(function(e) {
9
+ return {
10
+ value: e,
11
+ done: t
12
+ };
13
+ });
14
+ }
15
+ return n = function(e) {
16
+ this.s = e, this.n = e.next;
17
+ }, n.prototype = {
18
+ s: null,
19
+ n: null,
20
+ next: function() {
21
+ return t(this.n.apply(this.s, arguments));
22
+ },
23
+ return: function(e) {
24
+ var n = this.s.return;
25
+ return n === void 0 ? Promise.resolve({
26
+ value: e,
27
+ done: !0
28
+ }) : t(n.apply(this.s, arguments));
29
+ },
30
+ throw: function(e) {
31
+ var n = this.s.return;
32
+ return n === void 0 ? Promise.reject(e) : t(n.apply(this.s, arguments));
33
+ }
34
+ }, new n(e);
35
+ }
36
+ var r = function() {
37
+ var e = t(function* (e, t, i = e.name, a) {
38
+ let o = [], s = [];
39
+ var c, l = !1, u = !1;
40
+ try {
41
+ for (var d, f = function(e) {
42
+ var t, r, i, a = 2;
43
+ for (typeof Symbol < "u" && (r = Symbol.asyncIterator, i = Symbol.iterator); a--;) {
44
+ if (r && (t = e[r]) != null) return t.call(e);
45
+ if (i && (t = e[i]) != null) return new n(t.call(e));
46
+ r = "@@asyncIterator", i = "@@iterator";
47
+ }
48
+ throw TypeError("Object is not async iterable");
49
+ }(e.values()); l = !(d = yield f.next()).done; l = !1) {
50
+ let n = d.value, c = `${i}/${n.name}`;
51
+ n.kind === "file" ? s.push(n.getFile().then((t) => (t.directoryHandle = e, t.handle = n, Object.defineProperty(t, "webkitRelativePath", {
52
+ configurable: !0,
53
+ enumerable: !0,
54
+ get: () => c
55
+ })))) : n.kind !== "directory" || !t || a && a(n) || o.push(r(n, t, c, a));
56
+ }
57
+ } catch (e) {
58
+ u = !0, c = e;
59
+ } finally {
60
+ try {
61
+ l && f.return != null && (yield f.return());
62
+ } finally {
63
+ if (u) throw c;
64
+ }
65
+ }
66
+ return [...(yield Promise.all(o)).flat(), ...yield Promise.all(s)];
67
+ });
68
+ return function(t, n) {
69
+ return e.apply(this, arguments);
70
+ };
71
+ }(), i = function() {
72
+ var e = t(function* (e = {}) {
73
+ return e.recursive = e.recursive || !1, r(yield window.showDirectoryPicker({
74
+ id: e.id,
75
+ startIn: e.startIn
76
+ }), e.recursive, void 0, e.skipDirectory);
77
+ });
78
+ return function() {
79
+ return e.apply(this, arguments);
80
+ };
81
+ }();
82
+ //#endregion
83
+ export { i as default };