@flyfish-group/file-viewer3 1.0.26 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +3 -388
- package/README.md +3 -364
- package/dist/file-viewer3.css +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +22 -126
- package/dist/components/3MFLoader.js +0 -527
- package/dist/components/AMFLoader.js +0 -188
- package/dist/components/ArchiveViewer.js +0 -526
- package/dist/components/AudioViewer.js +0 -66
- package/dist/components/CadViewer.js +0 -9040
- package/dist/components/CodeViewer.js +0 -151
- package/dist/components/ColladaLoader.js +0 -2282
- package/dist/components/DrawingViewer.js +0 -295
- package/dist/components/EdaViewer.js +0 -630
- package/dist/components/EmailViewer.js +0 -276
- package/dist/components/EpubViewer.js +0 -172
- package/dist/components/FBXLoader.js +0 -1574
- package/dist/components/GLTFLoader.js +0 -1383
- package/dist/components/ImageViewer.js +0 -1519
- package/dist/components/KMZLoader.js +0 -45
- package/dist/components/MarkdownViewer.js +0 -1476
- package/dist/components/ModelViewer.js +0 -797
- package/dist/components/OBJLoader.js +0 -287
- package/dist/components/OfdViewer.js +0 -133
- package/dist/components/PCDLoader.js +0 -141
- package/dist/components/PLYLoader.js +0 -305
- package/dist/components/PdfView.js +0 -27667
- package/dist/components/PptxRender.js +0 -11217
- package/dist/components/STLLoader.js +0 -83
- package/dist/components/TDSLoader.js +0 -228
- package/dist/components/TypstViewer.js +0 -1697
- package/dist/components/USDLoader.js +0 -2526
- package/dist/components/UmdViewer.js +0 -1873
- package/dist/components/VRMLLoader.js +0 -6422
- package/dist/components/VTKLoader.js +0 -337
- package/dist/components/XYZLoader.js +0 -30
- package/dist/components/XlsxTable.js +0 -7879
- package/dist/components/__vite-browser-external.js +0 -7
- package/dist/components/_plugin-vue_export-helper.js +0 -8
- package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
- package/dist/components/arc.js +0 -79
- package/dist/components/architecture-7EHR7CIX.js +0 -3
- package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
- package/dist/components/archive.js +0 -24
- package/dist/components/asyncToGenerator.js +0 -29
- package/dist/components/audio.js +0 -19
- package/dist/components/az-AZ-76LH7QW2.js +0 -523
- package/dist/components/bash.js +0 -169
- package/dist/components/bg-BG-XCXSNQG7.js +0 -523
- package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
- package/dist/components/bn-BD-2XOGV67Q.js +0 -523
- package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
- package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
- package/dist/components/cad.js +0 -23
- package/dist/components/cfb.js +0 -1174
- package/dist/components/channel.js +0 -5
- package/dist/components/chunk-2J33WTMH.js +0 -26
- package/dist/components/chunk-3OPIFGDE.js +0 -4167
- package/dist/components/chunk-4BX2VUAB.js +0 -19
- package/dist/components/chunk-55IACEB6.js +0 -9
- package/dist/components/chunk-5ZQYHXKU.js +0 -669
- package/dist/components/chunk-6U3AYISY.js +0 -624
- package/dist/components/chunk-727SXJPM.js +0 -3356
- package/dist/components/chunk-AGHRB4JF.js +0 -324
- package/dist/components/chunk-AQP2D5EJ.js +0 -2055
- package/dist/components/chunk-BSJP7CBP.js +0 -83
- package/dist/components/chunk-CSCIHK7Q.js +0 -3500
- package/dist/components/chunk-EIO257PC.js +0 -1836
- package/dist/components/chunk-FMBD7UC4.js +0 -5
- package/dist/components/chunk-K2UTITRG.js +0 -17627
- package/dist/components/chunk-KSCS5N6A.js +0 -572
- package/dist/components/chunk-L5ZTLDWV.js +0 -40
- package/dist/components/chunk-LZXEDZCA.js +0 -60
- package/dist/components/chunk-ND2GUHAM.js +0 -61
- package/dist/components/chunk-NNHCCRGN.js +0 -20425
- package/dist/components/chunk-NZK2D7GU.js +0 -68
- package/dist/components/chunk-O5CBEL6O.js +0 -1894
- package/dist/components/chunk-QZHKN3VN.js +0 -12
- package/dist/components/chunk-SRAX5OIU.js +0 -22
- package/dist/components/chunk-WU5MYG2G.js +0 -14
- package/dist/components/chunk-XPW4576I.js +0 -1146
- package/dist/components/chunk-Z3N5DIM6.js +0 -59
- package/dist/components/chunk-ZUYEQ4TG.js +0 -22
- package/dist/components/chunk.js +0 -23
- package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
- package/dist/components/compiler.js +0 -2
- package/dist/components/core.js +0 -845
- package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
- package/dist/components/cpp.js +0 -225
- package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
- package/dist/components/csharp.js +0 -260
- package/dist/components/css.js +0 -140
- package/dist/components/cytoscape.esm.js +0 -18114
- package/dist/components/da-DK-5WZEPLOC.js +0 -523
- package/dist/components/dagre-BM42HDAG.js +0 -325
- package/dist/components/dagre.js +0 -1936
- package/dist/components/de-DE-XR44H4JA.js +0 -523
- package/dist/components/defaultLocale.js +0 -201
- package/dist/components/defineProperty.js +0 -50
- package/dist/components/diagram-2AECGRRQ.js +0 -229
- package/dist/components/diagram-5GNKFQAL.js +0 -108
- package/dist/components/diagram-KO2AKTUF.js +0 -443
- package/dist/components/diagram-LMA3HP47.js +0 -139
- package/dist/components/diagram-OG6HWLK6.js +0 -541
- package/dist/components/diff.js +0 -39
- package/dist/components/directory-open-01563666.js +0 -26
- package/dist/components/directory-open-4ed118d0.js +0 -83
- package/dist/components/dist.js +0 -50
- package/dist/components/dist2.js +0 -3291
- package/dist/components/dist3.js +0 -1593
- package/dist/components/documentSearch.js +0 -378
- package/dist/components/docx-preview.js +0 -3113
- package/dist/components/drawing.js +0 -19
- package/dist/components/ebook.js +0 -16
- package/dist/components/eda.js +0 -20
- package/dist/components/el-GR-BZB4AONW.js +0 -523
- package/dist/components/email.js +0 -21
- package/dist/components/en-B4ZKOASM.js +0 -3
- package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
- package/dist/components/es-ES-U4NZUMDT.js +0 -523
- package/dist/components/eu-ES-A7QVB2H4.js +0 -523
- package/dist/components/eventmodeling-FCH6USID.js +0 -3
- package/dist/components/fa-IR-HGAKTJCU.js +0 -523
- package/dist/components/fflate.module.js +0 -323
- package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
- package/dist/components/file-open-002ab408.js +0 -38
- package/dist/components/file-open-7c801643.js +0 -24
- package/dist/components/file-save-3189631c.js +0 -40
- package/dist/components/file-save-745eba88.js +0 -36
- package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
- package/dist/components/fr-FR-RHASNOE6.js +0 -523
- package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
- package/dist/components/gitGraph-WXDBUCRP.js +0 -3
- package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
- package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
- package/dist/components/global-compiler.js +0 -23
- package/dist/components/global-renderer.js +0 -23
- package/dist/components/go.js +0 -140
- package/dist/components/graphlib.js +0 -1267
- package/dist/components/he-IL-6SHJWFNN.js +0 -523
- package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
- package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
- package/dist/components/id-ID-SAP4L64H.js +0 -523
- package/dist/components/image-GAAHSSAO.js +0 -3
- package/dist/components/image-blob-reduce.esm.js +0 -1429
- package/dist/components/image.js +0 -17
- package/dist/components/info-J43DQDTF.js +0 -3
- package/dist/components/infoDiagram-5YYISTIA.js +0 -26
- package/dist/components/ini.js +0 -88
- package/dist/components/init.js +0 -15
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
- package/dist/components/it-IT-JPQ66NNP.js +0 -523
- package/dist/components/ja-JP-DBVTYXUO.js +0 -523
- package/dist/components/java.js +0 -169
- package/dist/components/javascript.js +0 -436
- package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
- package/dist/components/json.js +0 -36
- package/dist/components/jszip.min.js +0 -3033
- package/dist/components/kaa-6HZHGXH3.js +0 -523
- package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
- package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
- package/dist/components/katex.js +0 -21979
- package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
- package/dist/components/km-KH-HSX4SM5Z.js +0 -523
- package/dist/components/ko-KR-MTYHY66A.js +0 -523
- package/dist/components/ku-TR-6OUDTVRD.js +0 -523
- package/dist/components/lib.js +0 -4877
- package/dist/components/libarchive.js +0 -360
- package/dist/components/linear.js +0 -289
- package/dist/components/lt-LT-XHIRWOB4.js +0 -523
- package/dist/components/lv-LV-5QDEKY6T.js +0 -523
- package/dist/components/markdown.js +0 -181
- package/dist/components/md.js +0 -17
- package/dist/components/mermaid-parser.core.js +0 -328
- package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
- package/dist/components/model.js +0 -21
- package/dist/components/mp4.js +0 -12
- package/dist/components/mr-IN-CRQNXWMA.js +0 -523
- package/dist/components/my-MM-5M5IBNSE.js +0 -523
- package/dist/components/nb-NO-T6EIAALU.js +0 -523
- package/dist/components/nestedRender.js +0 -158
- package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
- package/dist/components/nn-NO-6E72VCQL.js +0 -523
- package/dist/components/objectSpread2.js +0 -29
- package/dist/components/objectWithoutProperties.js +0 -28
- package/dist/components/oc-FR-POXYY2M6.js +0 -523
- package/dist/components/ofd.js +0 -5261
- package/dist/components/ofd2.js +0 -16
- package/dist/components/ordinal.js +0 -65
- package/dist/components/pa-IN-N4M65BXN.js +0 -523
- package/dist/components/packet-YPE3B663.js +0 -3
- package/dist/components/pdf.js +0 -24
- package/dist/components/percentages-BXMCSKIN.js +0 -3
- package/dist/components/php.js +0 -294
- package/dist/components/pica.js +0 -1009
- package/dist/components/pie-LRSECV5Y.js +0 -3
- package/dist/components/pie.js +0 -47
- package/dist/components/pieDiagram-4H26LBE5.js +0 -130
- package/dist/components/pl-PL-T2D74RX3.js +0 -523
- package/dist/components/postal-mime.js +0 -3146
- package/dist/components/pptx.js +0 -15
- package/dist/components/printLayout.js +0 -42
- package/dist/components/prod.js +0 -21770
- package/dist/components/pt-BR-5N22H2LF.js +0 -523
- package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
- package/dist/components/python.js +0 -238
- package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
- package/dist/components/radar-GUYGQ44K.js +0 -3
- package/dist/components/renderer.js +0 -2
- package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
- package/dist/components/ro-RO-JPDTUUEW.js +0 -523
- package/dist/components/rough.esm.js +0 -1355
- package/dist/components/roundRect.js +0 -90
- package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
- package/dist/components/rust.js +0 -169
- package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
- package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
- package/dist/components/shared.js +0 -175
- package/dist/components/shared2.js +0 -4
- package/dist/components/si-LK-N5RQ5JYF.js +0 -523
- package/dist/components/sk-SK-C5VTKIMK.js +0 -523
- package/dist/components/sl-SI-NN7IZMDC.js +0 -523
- package/dist/components/sourceLoading.js +0 -134
- package/dist/components/sql.js +0 -118
- package/dist/components/src.js +0 -2664
- package/dist/components/src2.js +0 -10722
- package/dist/components/stateDiagram-AJRCARHV.js +0 -217
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
- package/dist/components/subset-shared.chunk.js +0 -3
- package/dist/components/subset-worker.chunk.js +0 -21
- package/dist/components/sv-SE-XGPEYMSR.js +0 -523
- package/dist/components/ta-IN-2NMHFXQM.js +0 -523
- package/dist/components/text.js +0 -20
- package/dist/components/th-TH-HPSO5L25.js +0 -523
- package/dist/components/three.module.js +0 -13134
- package/dist/components/time.js +0 -910
- package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
- package/dist/components/tr-TR-DEFEU3FU.js +0 -523
- package/dist/components/treeView-BLDUP644.js +0 -3
- package/dist/components/treemap-LRROVOQU.js +0 -3
- package/dist/components/typescript.js +0 -521
- package/dist/components/typst.js +0 -25
- package/dist/components/uk-UA-QMV73CPH.js +0 -523
- package/dist/components/umd.js +0 -16
- package/dist/components/use.js +0 -422
- package/dist/components/util.js +0 -49
- package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
- package/dist/components/vi-VN-M7AON7JQ.js +0 -523
- package/dist/components/viewerZoom.js +0 -92
- package/dist/components/wardley-L42UT6IY.js +0 -3
- package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
- package/dist/components/wasm-pack-shim.js +0 -1711
- package/dist/components/wasm-pack-shim2.js +0 -934
- package/dist/components/wasm.js +0 -97
- package/dist/components/word.js +0 -3055
- package/dist/components/worker-ref.js +0 -16
- package/dist/components/xlsx.js +0 -21
- package/dist/components/xml.js +0 -166
- package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
- package/dist/components/yaml.js +0 -144
- package/dist/components/zh-CN-LNUGB5OW.js +0 -523
- package/dist/components/zh-HK-E62DVLB3.js +0 -523
- package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
- package/dist/index.mjs +0 -3293
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/compare/CompareApp.vue.d.ts +0 -3
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
- package/dist/src/components/HelloWorld.vue.d.ts +0 -3
- package/dist/src/components/utils.d.ts +0 -4
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +0 -27
- package/dist/src/package/common/printLayout.d.ts +0 -16
- package/dist/src/package/common/sourceLoading.d.ts +0 -10
- package/dist/src/package/common/type.d.ts +0 -544
- package/dist/src/package/common/util.d.ts +0 -5
- package/dist/src/package/common/worker-ref.d.ts +0 -12
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
- package/dist/src/package/components/FileViewer/index.d.ts +0 -2
- package/dist/src/package/components/FileViewer/util.d.ts +0 -3
- package/dist/src/package/index.d.ts +0 -22
- package/dist/src/package/use/documentLocation.d.ts +0 -15
- package/dist/src/package/use/documentSearch.d.ts +0 -234
- package/dist/src/package/use/index.d.ts +0 -5
- package/dist/src/package/use/loading.d.ts +0 -33
- package/dist/src/package/use/viewerZoom.d.ts +0 -42
- package/dist/src/package/use/worker.d.ts +0 -24
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/archive/cache.d.ts +0 -10
- package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
- package/dist/src/package/vendors/archive/index.d.ts +0 -3
- package/dist/src/package/vendors/archive/shared.d.ts +0 -24
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/audio/index.d.ts +0 -7
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/cad/index.d.ts +0 -8
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/drawing/index.d.ts +0 -7
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ebook/index.d.ts +0 -7
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/eda/index.d.ts +0 -2
- package/dist/src/package/vendors/eda/parser.d.ts +0 -77
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
- package/dist/src/package/vendors/email/index.d.ts +0 -2
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/image/index.d.ts +0 -4
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/md/index.d.ts +0 -4
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/model/index.d.ts +0 -3
- package/dist/src/package/vendors/model/shared.d.ts +0 -1
- package/dist/src/package/vendors/mp4/index.d.ts +0 -4
- package/dist/src/package/vendors/nestedRender.d.ts +0 -10
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ofd/index.d.ts +0 -7
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
- package/dist/src/package/vendors/pdf/index.d.ts +0 -2
- package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
- package/dist/src/package/vendors/pptx/index.d.ts +0 -6
- package/dist/src/package/vendors/pptx/options.d.ts +0 -39
- package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
- package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/renders.d.ts +0 -3
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/text/index.d.ts +0 -10
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/typst/index.d.ts +0 -8
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/umd/index.d.ts +0 -7
- package/dist/src/package/vendors/umd/parser.d.ts +0 -30
- package/dist/src/package/vendors/word/doc.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
- package/dist/src/package/vendors/word/index.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
- package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
- package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
- package/dist/style.css +0 -1
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +0 -24
- package/dist/wasm/cad/libredwg-web.js +0 -15
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
|
@@ -1,541 +0,0 @@
|
|
|
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 };
|
package/dist/components/diff.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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 };
|
|
@@ -1,26 +0,0 @@
|
|
|
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 };
|
|
@@ -1,83 +0,0 @@
|
|
|
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 };
|