@inkeep/open-knowledge 0.28.3-beta.0 → 0.29.0-beta.0
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/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/config-schema.json +17 -0
- package/dist/config.user.schema.json +17 -0
- package/dist/constants-Dddf4Zbt.mjs +2 -0
- package/dist/{dist-C5-CAALs.mjs → dist-CzszUkVL.mjs} +4 -4
- package/dist/{dist-Dovb2Y8A.mjs → dist-YCnI0BBU.mjs} +1 -1
- package/dist/{gh-detect-RYp8nY6_.mjs → gh-detect-V88Du2MF.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/init-CGWSpnxf.mjs +1 -0
- package/dist/{init-_gsMrA9E.mjs → init-T4iNBuZr.mjs} +4 -4
- package/dist/{loader-BIDmV6nB.mjs → loader-DrYPDE4W.mjs} +2 -2
- package/dist/loader-u8jcWe4s.mjs +1 -0
- package/dist/{open-browser-DsUKCX2k.mjs → open-browser-ngpLclet.mjs} +2 -2
- package/dist/preview-CzKjLznn.mjs +1 -0
- package/dist/{preview-C5qa70B1.mjs → preview-DCgISA37.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-BAYdjZuv.js → ActivityModeContent-9CRsXwpX.js} +2 -2
- package/dist/public/assets/CodeMirrorPropInput-DTQhS7of.js +3 -0
- package/dist/public/assets/{ConsentDialogBody-BpN264j2.js → ConsentDialogBody-CG9T8kVb.js} +1 -1
- package/dist/public/assets/{DocumentContext-4LoWVX6a.js → DocumentContext-fCycsmXU.js} +2 -2
- package/dist/public/assets/{EnableSyncConfirmDialog-BAn4HLBE.js → EnableSyncConfirmDialog-Di9PpxcJ.js} +1 -1
- package/dist/public/assets/{GraphPanel-DRCXD8j9.js → GraphPanel-RxqTHyYU.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-DiwlvR-i.js → ManagedArtifactProperties-OmaGINfG.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-B8n3lxlu.js → McpConsentDialogBody-ikl9jWLz.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-D-KWi_oQ.js → MermaidDocEditor-DmgH_l9s.js} +1 -1
- package/dist/public/assets/{PropertyPanel-BIo71wnL.js → PropertyPanel-DW-wXPL8.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-DFVfSeGr.js → SettingsDialogBody-DLKGYz4m.js} +3 -3
- package/dist/public/assets/{ShareBranchSwitchDialog-W119_5xw.js → ShareBranchSwitchDialog-BO-B5Z58.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-BV-gfJdd.js → ShareReceiveDialog-C2putkgB.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-CEdvRkzl.js → ShareReceiveMissDialog-WUihVM0X.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-BKNk72vD.js → SkillEditorActions-DBG6FPch.js} +1 -1
- package/dist/public/assets/SourceEditor-Dli-GA4u.js +1 -0
- package/dist/public/assets/{TerminalPanel-BaruKVIX.js → TerminalPanel-B5-ikSnl.js} +21 -21
- package/dist/public/assets/{_baseFor-gIylPeg5.js → _baseFor-CCfTEsdD.js} +1 -1
- package/dist/public/assets/{agent-presence-BNxXhK7I.js → agent-presence-EPReOnD1.js} +1 -1
- package/dist/public/assets/{arc-C4yhEJQw.js → arc-lAkd3r-L.js} +1 -1
- package/dist/public/assets/architecture-YZFGNWBL-xBtaj0ft.js +1 -0
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-DC4AvWYl.js → architectureDiagram-Q4EWVU46-BRnvRY5Q.js} +1 -1
- package/dist/public/assets/{auth-state-cache-BZTq5BNY.js → auth-state-cache-CwFOes4V.js} +5 -5
- package/dist/public/assets/{blockDiagram-DXYQGD6D-C1cL6qRh.js → blockDiagram-DXYQGD6D-DK-9tYVp.js} +1 -1
- package/dist/public/assets/{c4Diagram-AHTNJAMY-D6DqCCxr.js → c4Diagram-AHTNJAMY-lOxwQVJ2.js} +1 -1
- package/dist/public/assets/{calendar-BcHFwA_d.js → calendar-BN0WiQjJ.js} +1 -1
- package/dist/public/assets/channel-Cr8di4AE.js +1 -0
- package/dist/public/assets/{chunk-2KRD3SAO-Em1kdvE5.js → chunk-2KRD3SAO-D1p7fU3I.js} +1 -1
- package/dist/public/assets/{chunk-336JU56O-COSGTnty.js → chunk-336JU56O-K0-WqSB1.js} +2 -2
- package/dist/public/assets/chunk-426QAEUC-DXNyRebD.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-X8pZgMic.js → chunk-4BX2VUAB-Ce60rzXr.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-CVfL5Gbl.js → chunk-4TB4RGXK-Bcpr4K8K.js} +1 -1
- package/dist/public/assets/chunk-55IACEB6-dVWfrfbT.js +1 -0
- package/dist/public/assets/{chunk-5FUZZQ4R-DXnyU1FU.js → chunk-5FUZZQ4R-WUVPPhbh.js} +1 -1
- package/dist/public/assets/{chunk-5PVQY5BW-BfWflEdC.js → chunk-5PVQY5BW-DSuJYE-B.js} +1 -1
- package/dist/public/assets/{chunk-67CJDMHE-DO9QtOw-.js → chunk-67CJDMHE-CMHniVm1.js} +1 -1
- package/dist/public/assets/{chunk-7N4EOEYR-BORVqcDw.js → chunk-7N4EOEYR-BnaZcLw1.js} +1 -1
- package/dist/public/assets/{chunk-AA7GKIK3-By1Z9lsq.js → chunk-AA7GKIK3-N9zR7tEI.js} +1 -1
- package/dist/public/assets/{chunk-BSJP7CBP-DGkoofP8.js → chunk-BSJP7CBP-D8qH6A-U.js} +1 -1
- package/dist/public/assets/{chunk-CIAEETIT-Ba--itJL.js → chunk-CIAEETIT-DG1ExqXf.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-CdoK23Sp.js → chunk-EDXVE4YY-BJMsRQKs.js} +1 -1
- package/dist/public/assets/{chunk-ENJZ2VHE-DswT8yfW.js → chunk-ENJZ2VHE-q2eFK8Oq.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-x1q3bw7Q.js → chunk-FMBD7UC4-BRFfFZUV.js} +1 -1
- package/dist/public/assets/{chunk-FOC6F5B3-DhD5rfUR.js → chunk-FOC6F5B3-DbCYqa4I.js} +1 -1
- package/dist/public/assets/{chunk-ICPOFSXX-D9NDunVu.js → chunk-ICPOFSXX-DpFBQyTN.js} +1 -1
- package/dist/public/assets/{chunk-K5T4RW27-BvwWfXcd.js → chunk-K5T4RW27-C5T8nhQn.js} +1 -1
- package/dist/public/assets/{chunk-KGLVRYIC-DwbKIj1d.js → chunk-KGLVRYIC-DK87tkyy.js} +1 -1
- package/dist/public/assets/{chunk-LIHQZDEY-BoNEjWhP.js → chunk-LIHQZDEY-h3Er4C0s.js} +1 -1
- package/dist/public/assets/{chunk-ORNJ4GCN-DAGke0iu.js → chunk-ORNJ4GCN-BxcDDNpi.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-f6ekO3O0.js → chunk-OYMX7WX6-_s09vzcl.js} +1 -1
- package/dist/public/assets/chunk-QZHKN3VN-BwjAXRaB.js +1 -0
- package/dist/public/assets/{chunk-U2HBQHQK-DmscK_CK.js → chunk-U2HBQHQK-A9XuAVDt.js} +1 -1
- package/dist/public/assets/{chunk-X2U36JSP-Drcsz9sU.js → chunk-X2U36JSP-ByDdWxg2.js} +1 -1
- package/dist/public/assets/{chunk-XPW4576I-BaXHEna0.js → chunk-XPW4576I-DZebSSCr.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-mwyjbKot.js → chunk-YZCP3GAM-BHEVWDS1.js} +1 -1
- package/dist/public/assets/{chunk-ZZ45TVLE-CFmm3SWp.js → chunk-ZZ45TVLE-eIBBBHMO.js} +1 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-DiVFvVhC.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-B1FOCtng.js +1 -0
- package/dist/public/assets/clone-C4oDGqJ8.js +1 -0
- package/dist/public/assets/config-context-CE3SCVYc.js +1 -0
- package/dist/public/assets/{config-provider-BWb73zbu.js → config-provider-idYtRijR.js} +1 -1
- package/dist/public/assets/{cose-bilkent-S5V4N54A-DvX8tKj-.js → cose-bilkent-S5V4N54A-wGFgKvnX.js} +1 -1
- package/dist/public/assets/{dagre-DFSkGxKB.js → dagre-B3d6sa-P.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-Bl5Wtmeo.js → dagre-KV5264BT-JDUs3Ywf.js} +1 -1
- package/dist/public/assets/{diagram-5BDNPKRD-tjMIOssc.js → diagram-5BDNPKRD-Dg4G7P9n.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-CK9r2ubE.js → diagram-G4DWMVQ6-_btq3fcX.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-pPXE2_j5.js → diagram-MMDJMWI5-CcvSXwi1.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-Be2tSIFw.js → diagram-TYMM5635-D22ra0aB.js} +1 -1
- package/dist/public/assets/{dist-w6PaZv_P.js → dist-vGnNU_kt.js} +70 -70
- package/dist/public/assets/{dist-CPN2_D7r.js → dist-wGNuEzOi.js} +1 -1
- package/dist/public/assets/{doc-hash-C03kKowq.js → doc-hash-DZPPDZDP.js} +1 -1
- package/dist/public/assets/{documents-events-DI5rparw.js → documents-events-C387FFj2.js} +1 -1
- package/dist/public/assets/{erDiagram-SMLLAGMA-B3cWhMkB.js → erDiagram-SMLLAGMA-Dj8YMxjW.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-BL5arZRQ.js → file-tree-adapter-DohgQL5I.js} +1 -1
- package/dist/public/assets/{flatten-C63FDqGp.js → flatten-ujIQdAhg.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-Bk7b9VCg.js → flowDiagram-DWJPFMVM-DDcEWD-q.js} +1 -1
- package/dist/public/assets/folder-open-BF5DIykr.js +1 -0
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-CSPHkGTp.js → ganttDiagram-T4ZO3ILL-CKgBVe7I.js} +1 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-C_wYiB1L.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-DmEcXdKa.js → gitGraphDiagram-UUTBAWPF-5Yvrsclr.js} +1 -1
- package/dist/public/assets/{graphlib-D4vC2miW.js → graphlib-BKd5zl5M.js} +1 -1
- package/dist/public/assets/{index-Cib7ZHDq.js → index-BESZ1LvY.js} +12 -12
- package/dist/public/assets/info-OMHHGYJF-Dr8H9qWn.js +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-B90k1FDC.js → infoDiagram-42DDH7IO-DWX2gsFq.js} +1 -1
- package/dist/public/assets/{isEmpty-DKDyjxZL.js → isEmpty-DO9Crefy.js} +1 -1
- package/dist/public/assets/isSymbol-BhFc7brD.js +1 -0
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-CrJNhiO8.js → ishikawaDiagram-UXIWVN3A-BRI718L_.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-CDnYFlD-.js → journeyDiagram-VCZTEJTY-7vOUzwhV.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-P5CLe5Ry.js → kanban-definition-6JOO6SKY-DPb75KVR.js} +1 -1
- package/dist/public/assets/{keyboard-shortcuts-Ck5NV6iM.js → keyboard-shortcuts-CKBtlgh1.js} +1 -1
- package/dist/public/assets/{line-CesgYl1m.js → line-CSmMFPEZ.js} +1 -1
- package/dist/public/assets/{linear-B5q34u3D.js → linear-2o-zj9Qh.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-D4lUxfcL.js → mermaid-parser.core-Dx4yPDvJ.js} +2 -2
- package/dist/public/assets/{mermaid.core-4wEyIHsI.js → mermaid.core-B0jTlahc.js} +3 -3
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-BFkxkOoR.js → mindmap-definition-QFDTVHPH-CEt4YJY1.js} +1 -1
- package/dist/public/assets/{navigation-targets-B6Hw2XJV.js → navigation-targets-v47kYNlN.js} +1 -1
- package/dist/public/assets/{now-C1KCZH9r.js → now-By2-TWwE.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DgGRfk-7.js → open-managed-artifact-tab-BylvD5LD.js} +1 -1
- package/dist/public/assets/{ordinal-mOcmz1dH.js → ordinal-CCfGWVix.js} +1 -1
- package/dist/public/assets/packet-4T2RLAQJ-BqCK9xgc.js +1 -0
- package/dist/public/assets/pending-receive-nav-store-NlnPJ3yz.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-C4ahAmji.js +1 -0
- package/dist/public/assets/{pieDiagram-DEJITSTG-xrZk9MzS.js → pieDiagram-DEJITSTG-DaX8KHz8.js} +1 -1
- package/dist/public/assets/{prop-types-D8wS8GrY.js → prop-types-DDCTJMGl.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-6Gq9f5n0.js → quadrantDiagram-34T5L4WZ-DmqJPLei.js} +1 -1
- package/dist/public/assets/radar-PYXPWWZC-BBRhwenM.js +1 -0
- package/dist/public/assets/{receive-store-BI47GRKC.js → receive-store-S3luT2x-.js} +1 -1
- package/dist/public/assets/{reduce-DSZ8N5lq.js → reduce-C_-1aIfA.js} +1 -1
- package/dist/public/assets/{requirementDiagram-MS252O5E-Bz4BXIxO.js → requirementDiagram-MS252O5E-D6rjssTu.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-JUUNe85z.js → sankeyDiagram-XADWPNL6-DLPqNSxl.js} +1 -1
- package/dist/public/assets/{selection-context-C4wC-Ghg.js → selection-context-BeAbIsTm.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-CMIYv0yF.js → sequenceDiagram-FGHM5R23-7YmLLx2D.js} +1 -1
- package/dist/public/assets/skill-actions-CCgKV1BP.js +1 -0
- package/dist/public/assets/{skills-api-C3qDxUFx.js → skills-api-CDt3rqi3.js} +1 -1
- package/dist/public/assets/{src-vR35WiAc.js → src-DR1IlxwI.js} +1 -1
- package/dist/public/assets/{src-CznLk2iY.js → src-ePqEpSu0.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-zOcM60tH.js → stateDiagram-FHFEXIEX-BcQiMDhd.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-Cv6psfet.js +1 -0
- package/dist/public/assets/{target-navigation-intent-C_XjZSz3.js → target-navigation-intent-9hvgFXB8.js} +1 -1
- package/dist/public/assets/{telemetry-impl-Ba-VbTNc.js → telemetry-impl-DehWSZsy.js} +2 -2
- package/dist/public/assets/{telemetry-startup-DNaRc3no.js → telemetry-startup-SAmXunjr.js} +1 -1
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-BZmnLBNO.js → timeline-definition-GMOUNBTQ-D2PEfPtg.js} +1 -1
- package/dist/public/assets/treeView-SZITEDCU-C9VZH09i.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-sLmeiUzQ.js +1 -0
- package/dist/public/assets/{typing-burst-detector-Dgtw-3rX.js → typing-burst-detector-CEJxVkAD.js} +1 -1
- package/dist/public/assets/{vennDiagram-DHZGUBPP-CQdhzc6t.js → vennDiagram-DHZGUBPP-C7vJQ4cy.js} +1 -1
- package/dist/public/assets/wardley-RL74JXVD-DxEEV_jo.js +1 -0
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-BqO3bSrz.js → wardleyDiagram-NUSXRM2D-cZLQAvwn.js} +1 -1
- package/dist/public/assets/{workspace-paths-CjJf8ypr.js → workspace-paths-Dhhbnhbw.js} +1 -1
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-B096Qbw8.js → xychartDiagram-5P7HB3ND-C7hMSIXA.js} +1 -1
- package/dist/public/index.html +33 -32
- package/dist/{repair-launch-json-uYLLfiiZ.mjs → repair-launch-json-BQQaFuKa.mjs} +2 -2
- package/dist/{repair-mcp-configs-BWkPeg38.mjs → repair-mcp-configs-COKWe8pq.mjs} +2 -2
- package/dist/repair-skills-DAdqIWrM.mjs +1 -0
- package/dist/{repair-skills-2C-BzNy8.mjs → repair-skills-q1ij3mTL.mjs} +2 -2
- package/dist/schemas/v0/config.user.schema.json +17 -0
- package/dist/server-lock-GuuouVft-Bm1fDFIJ.mjs +1 -0
- package/dist/{server-lock-iLcBw_q0-pnLGEjec.mjs → server-lock-iLcBw_q0-CU5aT1xR.mjs} +3 -3
- package/dist/{src-C4Asr6cU.mjs → src-D0bM1z_b.mjs} +2 -2
- package/dist/{start-Cdu39pNg.mjs → start-Sq4c1D8L.mjs} +2 -2
- package/dist/start-rgO6nXNS.mjs +1 -0
- package/dist/{write-project-skill-CpL-pVrC.mjs → write-project-skill-IMZdJi1p.mjs} +2 -2
- package/package.json +1 -1
- package/dist/constants-KGjHbPVT.mjs +0 -2
- package/dist/init-BGAkmr8T.mjs +0 -1
- package/dist/loader-BvVnU_Yq.mjs +0 -1
- package/dist/preview-ByfE8Z7y.mjs +0 -1
- package/dist/public/assets/CodeMirrorPropInput-DCRAs5QF.js +0 -3
- package/dist/public/assets/SourceEditor-BNOhVAgE.js +0 -1
- package/dist/public/assets/architecture-YZFGNWBL-DcH0Xwye.js +0 -1
- package/dist/public/assets/channel-DvmTCFK0.js +0 -1
- package/dist/public/assets/chunk-426QAEUC-lxQgJP7J.js +0 -1
- package/dist/public/assets/chunk-55IACEB6-CugRk1ll.js +0 -1
- package/dist/public/assets/chunk-QZHKN3VN-BkaeB1ef.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-B7ML6gIt.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-B8rZ1Wmm.js +0 -1
- package/dist/public/assets/clone-Br4VE8_-.js +0 -1
- package/dist/public/assets/config-context-CzdMgLHH.js +0 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-Ba9p2nZi.js +0 -1
- package/dist/public/assets/info-OMHHGYJF-DauoPq4L.js +0 -1
- package/dist/public/assets/isSymbol-TQCBVYcF.js +0 -1
- package/dist/public/assets/packet-4T2RLAQJ-wCm--Lnm.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-BjQLDTHU.js +0 -1
- package/dist/public/assets/pie-ZZUOXDRM-SVjTW51k.js +0 -1
- package/dist/public/assets/radar-PYXPWWZC-CpEUEFTa.js +0 -1
- package/dist/public/assets/skill-actions-CZuNBoQO.js +0 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-D_B4Ywf0.js +0 -1
- package/dist/public/assets/treeView-SZITEDCU-CxW1Fi0N.js +0 -1
- package/dist/public/assets/treemap-W4RFUUIX-DSnxX8Tx.js +0 -1
- package/dist/public/assets/wardley-RL74JXVD-9K1UST4U.js +0 -1
- package/dist/repair-skills-Bs__ORRR.mjs +0 -1
- package/dist/server-lock-GuuouVft-BPXunOvH.mjs +0 -1
- package/dist/start-BuL_hB3J.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-Oap1F4vk.js → ActivityPanelDiffView-B6QdoucA.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-CgB6cL13.js → __vite-browser-external-BR8_t-ok.js} +0 -0
- /package/dist/public/assets/{array-DvTWoG0m.js → array-CuvIgdMf.js} +0 -0
- /package/dist/public/assets/{clike-0lvcGvys.js → clike-BpCX2P2I.js} +0 -0
- /package/dist/public/assets/{colors-IR5jcHwc.js → colors-viOD3yoc.js} +0 -0
- /package/dist/public/assets/{cursor-DpRaFU6k.js → cursor-Diqcx2dn.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-CX-taWeI.js → cytoscape.esm-mXzA4jyQ.js} +0 -0
- /package/dist/public/assets/{defaultLocale-gFRIUUHz.js → defaultLocale-Brze29Nm.js} +0 -0
- /package/dist/public/assets/{diff-BYaxtv-Y.js → diff-B-RpHLEu.js} +0 -0
- /package/dist/public/assets/{dist-D8DsXAmQ.js → dist-B_WDz9Fr.js} +0 -0
- /package/dist/public/assets/{dist-BLM0vqZu.js → dist-BxbpSpXO.js} +0 -0
- /package/dist/public/assets/{dist-CTdX28hn.js → dist-CepaWG6n.js} +0 -0
- /package/dist/public/assets/{external-link-B2-UigeZ.js → external-link-27uXLNxg.js} +0 -0
- /package/dist/public/assets/{format-1Qr8HOYT.js → format-2O9Da5Lm.js} +0 -0
- /package/dist/public/assets/{go-s8LhlcQN.js → go-3CbI6agw.js} +0 -0
- /package/dist/public/assets/{init-BiVQaVme.js → init-AaQV2WsU.js} +0 -0
- /package/dist/public/assets/{isObjectLike-CplF2yFH.js → isObjectLike-D3Jc2RN1.js} +0 -0
- /package/dist/public/assets/{lua-BJMsYVXC.js → lua-CImTx43q.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-BIFsQSdo.js → mcp-consent-store-BxRtlIhJ.js} +0 -0
- /package/dist/public/assets/{min-3e1jfujw.js → min-CIIm51Yo.js} +0 -0
- /package/dist/public/assets/{panzoom.es-KLVlk3tM.js → panzoom.es-B9PeX97a.js} +0 -0
- /package/dist/public/assets/{path-G868Kf9B.js → path-B33pvNxs.js} +0 -0
- /package/dist/public/assets/{pdf-Cm0Z_df8.js → pdf-WLEpkBFf.js} +0 -0
- /package/dist/public/assets/{pdf.worker-U3xqv7qk.js → pdf.worker-BZkygqjt.js} +0 -0
- /package/dist/public/assets/{perl-DVyM2C9-.js → perl-Blo9V_bV.js} +0 -0
- /package/dist/public/assets/{properties-NhXpAKoe.js → properties-BbTKbq9k.js} +0 -0
- /package/dist/public/assets/{r-D725PTfh.js → r-BoaXxHWr.js} +0 -0
- /package/dist/public/assets/{rough.esm-DHcrZ6TO.js → rough.esm-DfPytGQ-.js} +0 -0
- /package/dist/public/assets/{ruby-D1PV8skF.js → ruby-Dl-I4pxG.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-ZQ-JmihW.js → share-metadata-rows-BttnPmuW.js} +0 -0
- /package/dist/public/assets/{shell-BymBffsk.js → shell-BbGOQhIp.js} +0 -0
- /package/dist/public/assets/{sql-DSkPJi80.js → sql-Bwur_qe2.js} +0 -0
- /package/dist/public/assets/{src-BMeqqHjK.js → src-COe6dO0Z.js} +0 -0
- /package/dist/public/assets/{swift-DvFGtMVO.js → swift-T0hDoOb-.js} +0 -0
- /package/dist/public/assets/{textarea-BV8h2udO.js → textarea-CfltWSGa.js} +0 -0
- /package/dist/public/assets/{toml-4Y1WOP_Q.js → toml-DDz4twot.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-
|
|
1
|
+
import{n as e,r as t}from"./src-DR1IlxwI.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-DpFBQyTN.js";import{r as f}from"./chunk-5PVQY5BW-DSuJYE-B.js";import{t as p}from"./chunk-426QAEUC-DXNyRebD.js";import{t as m}from"./chunk-4BX2VUAB-Ce60rzXr.js";import{t as h}from"./mermaid-parser.core-Dx4yPDvJ.js";import{t as g}from"./chunk-QZHKN3VN-BwjAXRaB.js";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=e(()=>{_.reset(),s()},`clear`),y=e(()=>_.records.stack[0],`getRoot`),b=e(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:e((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:e(()=>f(x,d().treeView),`getConfig`),getAccTitle:u,getAccDescription:o,getDiagramTitle:r,setAccDescription:n,setAccTitle:i,setDiagramTitle:a},C=e(e=>{m(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:e(async e=>{let n=await h(`treeView`,e);t.debug(n),C(n)},`parse`)},T=e((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=e((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=e((t,n,r)=>{let i=0,a=0,o=e((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=e((e,n=0)=>{o(t,e,r,n),e.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=e.BBox;if(e.children.length){let{y:n,height:o}=e.children[e.children.length-1].BBox;E(t,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:e((e,n,r,i)=>{t.debug(`Rendering treeView diagram
|
|
2
2
|
`+e);let a=i.db,o=a.getRoot(),s=a.getConfig(),l=p(n),u=l.append(`g`);u.attr(`class`,`tree-view`);let{totalHeight:d,totalWidth:f}=D(u,o,s);l.attr(`viewBox`,`-${s.lineThickness/2} 0 ${f} ${d}`),c(l,d,f,s.useMaxWidth)},`draw`)},k={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},A={db:S,renderer:O,parser:w,styles:e(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r}=f(k,e);return`
|
|
3
3
|
.treeView-node-label {
|
|
4
4
|
font-size: ${t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-vR35WiAc.js";import{B as n,C as r,E as i,V as a,W as o,_ as s,a as c,c as l,d as u,v as d,y as f}from"./chunk-ICPOFSXX-D9NDunVu.js";import{t as p}from"./ordinal-mOcmz1dH.js";import{C as m}from"./src-BMeqqHjK.js";import{t as h}from"./defaultLocale-gFRIUUHz.js";import{r as g}from"./chunk-5PVQY5BW-BfWflEdC.js";import{t as _}from"./chunk-426QAEUC-lxQgJP7J.js";import{t as v}from"./chunk-4BX2VUAB-X8pZgMic.js";import{t as y}from"./mermaid-parser.core-D4lUxfcL.js";import{t as b}from"./chunk-EDXVE4YY-CdoK23Sp.js";import{i as x,n as S}from"./chunk-X2U36JSP-Drcsz9sU.js";function C(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function w(){return this.eachAfter(C)}function T(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function E(e,t){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]);return this}function D(e,t){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]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function O(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function k(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function A(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function j(e){for(var t=this,n=M(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function M(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function N(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function P(){return Array.from(this)}function F(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*L(){var e=this,t,n=[e],r,i,a;do 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]);while(n.length)}function R(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=V)):t===void 0&&(t=B);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;return n.eachBefore(U)}function z(){return R(this).eachBefore(H)}function B(e){return e.children}function V(e){return Array.isArray(e)?e[1]:null}function H(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function U(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W(e){this.data=e,this.depth=this.height=0,this.parent=null}W.prototype=R.prototype={constructor:W,count:w,each:T,eachAfter:D,eachBefore:E,find:O,sum:k,sort:A,path:j,ancestors:N,descendants:P,leaves:F,links:I,copy:z,[Symbol.iterator]:L};function G(e){if(typeof e!=`function`)throw Error();return e}function K(){return 0}function q(e){return function(){return e}}function J(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ee(e,t,n,r,i){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}function te(e,t,n,r,i){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}var ne=(1+Math.sqrt(5))/2;function re(e,t,n,r,i,a){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;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);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){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ee(c,n,r,i,h?r+=m*g/h:a):te(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var ie=(function e(t){function n(e,n,r,i,a){re(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ne);function ae(){var e=ie,t=!1,n=1,r=1,i=[0],a=K,o=K,s=K,c=K,l=K;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(J),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;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))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=G(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:q(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:q(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:q(+e),u):l},u}var Y=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=a,this.getAccTitle=d,this.setDiagramTitle=o,this.getDiagramTitle=r,this.getAccDescription=s,this.setAccDescription=n}static{e(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=u,t=f();return g({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{S(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){c(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function X(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,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();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}e(X,`buildHierarchy`);var oe=e((t,n)=>{v(t,n);let r=[];for(let e of t.TreemapRows??[])e.$type===`ClassDefStatement`&&n.addClass(e.className??``,e.styleText??``);for(let e of t.TreemapRows??[]){let t=e.item;if(!t)continue;let i=e.indent?parseInt(e.indent):0,a=se(t),o=t.classSelector?n.getStylesForClass(t.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:t.$type,value:t.value,classSelector:t.classSelector,cssCompiledStyles:s};r.push(c)}let i=X(r),a=e((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),se=e(e=>e.name?String(e.name):``,`getItemName`),Z={parser:{yy:void 0},parse:e(async e=>{try{let n=await y(`treemap`,e);t.debug(`Treemap AST:`,n);let r=Z.parser?.yy;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.`);oe(n,r)}catch(e){throw t.error(`Error parsing treemap:`,e),e}},`parse`)},ce=10,Q=10,$=25,le={draw:e((n,r,i,a)=>{let o=a.db,s=o.getConfig(),c=s.padding??ce,u=o.getDiagramTitle(),d=o.getRoot(),{themeVariables:g}=f();if(!d)return;let v=u?30:0,y=_(r),S=s.nodeWidth?s.nodeWidth*Q:960,C=s.nodeHeight?s.nodeHeight*Q:500,w=S,T=C+v;y.attr(`viewBox`,`0 0 ${w} ${T}`),l(y,T,w,s.useMaxWidth);let E;try{let t=s.valueFormat||`,`;if(t===`$0,0`)E=e(e=>`$`+h(`,`)(e),`valueFormat`);else if(t.startsWith(`$`)&&t.includes(`,`)){let n=/\.\d+/.exec(t),r=n?n[0]:``;E=e(e=>`$`+h(`,`+r)(e),`valueFormat`)}else if(t.startsWith(`$`)){let n=t.substring(1);E=e(e=>`$`+h(n||``)(e),`valueFormat`)}else E=h(t)}catch(e){t.error(`Error creating format function:`,e),E=h(`,`)}let D=p().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),O=p().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),k=p().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);u&&y.append(`text`).attr(`x`,w/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let A=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),j=R(d).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),M=ae().size([S,C]).paddingTop(e=>e.children&&e.children.length>0?$+Q:0).paddingInner(c).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)(j),N=M.descendants().filter(e=>e.children&&e.children.length>0),P=A.selectAll(`.treemapSection`).data(N).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.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;`:``),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${r}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,$),P.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=>D(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>O(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=x({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),P.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:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=m(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=s.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let a=Math.max(15,i),o=t.node();if(o.getComputedTextLength()>a){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),o.getComputedTextLength()>a&&t.text(``);break}if(t.text(e+`...`),o.getComputedTextLength()<=a)break}}}),s.showValues!==!1&&P.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?E(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let F=M.leaves(),I=A.selectAll(`.treemapLeafGroup`).data(F).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})`);I.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`style`,e=>x({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`stroke-width`,3),I.append(`clipPath`).attr(`id`,(e,t)=>`clip-${r}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),I.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:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){let t=m(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-8,o=r-8;if(a<10||o<10){t.style(`display`,`none`);return}let s=parseInt(t.style(`font-size`),10),c=.6;for(;i.getComputedTextLength()>a&&s>8;)s--,t.style(`font-size`,`${s}px`);let l=Math.max(6,Math.min(28,Math.round(s*c))),u=s+2+l;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;t.style(`font-size`,`${s}px`),(i.getComputedTextLength()>a||s<8||o<s)&&t.style(`display`,`none`)}),s.showValues!==!1&&I.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.value?E(e.value):``).each(function(e){let t=m(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=m(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(6,Math.min(28,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+2;t.attr(`y`,o);let s=e.x1-e.x0,c=e.y1-e.y0-4,l=s-8;t.node().getComputedTextLength()>l||o+a>c||a<6?t.style(`display`,`none`):t.style(`display`,null)}),b(y,s.diagramPadding??8,`flowchart`,s?.useMaxWidth||!1)},`draw`),getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`)},ue={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},de={parser:Z,get db(){return new Y},renderer:le,styles:e(({treemap:e}={})=>{let t=g(i(),f().themeVariables),n=g(ue,e),r=n.titleColor??t.titleColor,a=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`
|
|
1
|
+
import{n as e,r as t}from"./src-DR1IlxwI.js";import{B as n,C as r,E as i,V as a,W as o,_ as s,a as c,c as l,d as u,v as d,y as f}from"./chunk-ICPOFSXX-DpFBQyTN.js";import{t as p}from"./ordinal-CCfGWVix.js";import{C as m}from"./src-COe6dO0Z.js";import{t as h}from"./defaultLocale-Brze29Nm.js";import{r as g}from"./chunk-5PVQY5BW-DSuJYE-B.js";import{t as _}from"./chunk-426QAEUC-DXNyRebD.js";import{t as v}from"./chunk-4BX2VUAB-Ce60rzXr.js";import{t as y}from"./mermaid-parser.core-Dx4yPDvJ.js";import{t as b}from"./chunk-EDXVE4YY-BJMsRQKs.js";import{i as x,n as S}from"./chunk-X2U36JSP-ByDdWxg2.js";function C(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function w(){return this.eachAfter(C)}function T(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function E(e,t){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]);return this}function D(e,t){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]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function O(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function k(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function A(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function j(e){for(var t=this,n=M(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function M(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function N(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function P(){return Array.from(this)}function F(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*L(){var e=this,t,n=[e],r,i,a;do 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]);while(n.length)}function R(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=V)):t===void 0&&(t=B);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;return n.eachBefore(U)}function z(){return R(this).eachBefore(H)}function B(e){return e.children}function V(e){return Array.isArray(e)?e[1]:null}function H(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function U(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W(e){this.data=e,this.depth=this.height=0,this.parent=null}W.prototype=R.prototype={constructor:W,count:w,each:T,eachAfter:D,eachBefore:E,find:O,sum:k,sort:A,path:j,ancestors:N,descendants:P,leaves:F,links:I,copy:z,[Symbol.iterator]:L};function G(e){if(typeof e!=`function`)throw Error();return e}function K(){return 0}function q(e){return function(){return e}}function J(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ee(e,t,n,r,i){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}function te(e,t,n,r,i){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}var ne=(1+Math.sqrt(5))/2;function re(e,t,n,r,i,a){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;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);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){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ee(c,n,r,i,h?r+=m*g/h:a):te(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var ie=(function e(t){function n(e,n,r,i,a){re(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ne);function ae(){var e=ie,t=!1,n=1,r=1,i=[0],a=K,o=K,s=K,c=K,l=K;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(J),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;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))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=G(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:q(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:q(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:q(+e),u):l},u}var Y=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=a,this.getAccTitle=d,this.setDiagramTitle=o,this.getDiagramTitle=r,this.getAccDescription=s,this.setAccDescription=n}static{e(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=u,t=f();return g({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{S(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){c(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function X(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,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();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}e(X,`buildHierarchy`);var oe=e((t,n)=>{v(t,n);let r=[];for(let e of t.TreemapRows??[])e.$type===`ClassDefStatement`&&n.addClass(e.className??``,e.styleText??``);for(let e of t.TreemapRows??[]){let t=e.item;if(!t)continue;let i=e.indent?parseInt(e.indent):0,a=se(t),o=t.classSelector?n.getStylesForClass(t.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:t.$type,value:t.value,classSelector:t.classSelector,cssCompiledStyles:s};r.push(c)}let i=X(r),a=e((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),se=e(e=>e.name?String(e.name):``,`getItemName`),Z={parser:{yy:void 0},parse:e(async e=>{try{let n=await y(`treemap`,e);t.debug(`Treemap AST:`,n);let r=Z.parser?.yy;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.`);oe(n,r)}catch(e){throw t.error(`Error parsing treemap:`,e),e}},`parse`)},ce=10,Q=10,$=25,le={draw:e((n,r,i,a)=>{let o=a.db,s=o.getConfig(),c=s.padding??ce,u=o.getDiagramTitle(),d=o.getRoot(),{themeVariables:g}=f();if(!d)return;let v=u?30:0,y=_(r),S=s.nodeWidth?s.nodeWidth*Q:960,C=s.nodeHeight?s.nodeHeight*Q:500,w=S,T=C+v;y.attr(`viewBox`,`0 0 ${w} ${T}`),l(y,T,w,s.useMaxWidth);let E;try{let t=s.valueFormat||`,`;if(t===`$0,0`)E=e(e=>`$`+h(`,`)(e),`valueFormat`);else if(t.startsWith(`$`)&&t.includes(`,`)){let n=/\.\d+/.exec(t),r=n?n[0]:``;E=e(e=>`$`+h(`,`+r)(e),`valueFormat`)}else if(t.startsWith(`$`)){let n=t.substring(1);E=e(e=>`$`+h(n||``)(e),`valueFormat`)}else E=h(t)}catch(e){t.error(`Error creating format function:`,e),E=h(`,`)}let D=p().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),O=p().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),k=p().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);u&&y.append(`text`).attr(`x`,w/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let A=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),j=R(d).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),M=ae().size([S,C]).paddingTop(e=>e.children&&e.children.length>0?$+Q:0).paddingInner(c).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)(j),N=M.descendants().filter(e=>e.children&&e.children.length>0),P=A.selectAll(`.treemapSection`).data(N).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.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;`:``),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${r}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,$),P.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=>D(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>O(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=x({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),P.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:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=m(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=s.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let a=Math.max(15,i),o=t.node();if(o.getComputedTextLength()>a){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),o.getComputedTextLength()>a&&t.text(``);break}if(t.text(e+`...`),o.getComputedTextLength()<=a)break}}}),s.showValues!==!1&&P.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?E(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let F=M.leaves(),I=A.selectAll(`.treemapLeafGroup`).data(F).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})`);I.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`style`,e=>x({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`stroke-width`,3),I.append(`clipPath`).attr(`id`,(e,t)=>`clip-${r}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),I.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:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){let t=m(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-8,o=r-8;if(a<10||o<10){t.style(`display`,`none`);return}let s=parseInt(t.style(`font-size`),10),c=.6;for(;i.getComputedTextLength()>a&&s>8;)s--,t.style(`font-size`,`${s}px`);let l=Math.max(6,Math.min(28,Math.round(s*c))),u=s+2+l;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;t.style(`font-size`,`${s}px`),(i.getComputedTextLength()>a||s<8||o<s)&&t.style(`display`,`none`)}),s.showValues!==!1&&I.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.value?E(e.value):``).each(function(e){let t=m(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=m(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(6,Math.min(28,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+2;t.attr(`y`,o);let s=e.x1-e.x0,c=e.y1-e.y0-4,l=s-8;t.node().getComputedTextLength()>l||o+a>c||a<6?t.style(`display`,`none`):t.style(`display`,null)}),b(y,s.diagramPadding??8,`flowchart`,s?.useMaxWidth||!1)},`draw`),getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`)},ue={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},de={parser:Z,get db(){return new Y},renderer:le,styles:e(({treemap:e}={})=>{let t=g(i(),f().themeVariables),n=g(ue,e),r=n.titleColor??t.titleColor,a=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${n.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${n.sectionStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-
|
|
1
|
+
import{n as e,r as t}from"./src-DR1IlxwI.js";import{B as n,C as r,E as i,V as a,W as o,_ as s,a as c,c as l,d as u,v as d,y as f}from"./chunk-ICPOFSXX-DpFBQyTN.js";import{r as p}from"./chunk-5PVQY5BW-DSuJYE-B.js";import{t as m}from"./chunk-426QAEUC-DXNyRebD.js";import{t as h}from"./chunk-4BX2VUAB-Ce60rzXr.js";import{t as g}from"./mermaid-parser.core-Dx4yPDvJ.js";var _={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},v={axes:[],curves:[],options:_},y=structuredClone(v),b=u.radar,x=e(()=>p({...b,...f().radar}),`getConfig`),S=e(()=>y.axes,`getAxes`),C=e(()=>y.curves,`getCurves`),w=e(()=>y.options,`getOptions`),T=e(e=>{y.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),E=e(e=>{y.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:D(e.entries)}))},`setCurves`),D=e(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=S();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),O={getAxes:S,getCurves:C,getOptions:w,setAxes:T,setCurves:E,setOptions:e(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});y.options={showLegend:t.showLegend?.value??_.showLegend,ticks:t.ticks?.value??_.ticks,max:t.max?.value??_.max,min:t.min?.value??_.min,graticule:t.graticule?.value??_.graticule}},`setOptions`),getConfig:x,clear:e(()=>{c(),y=structuredClone(v)},`clear`),setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},k=e(e=>{h(e,O);let{axes:t,curves:n,options:r}=e;O.setAxes(t),O.setCurves(n),O.setOptions(r)},`populate`),A={parse:e(async e=>{let n=await g(`radar`,e);t.debug(n),k(n)},`parse`)},j=e((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),c=i.getConfig(),l=i.getDiagramTitle(),u=M(m(t),c),d=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),f=s.min,p=Math.min(c.width,c.height)/2;N(u,a,p,s.ticks,s.graticule),P(u,a,p,c),F(u,a,o,f,d,s.graticule,c),R(u,o,s.showLegend,c),u.append(`text`).attr(`class`,`radarTitle`).text(l).attr(`x`,0).attr(`y`,-c.height/2-c.marginTop)},`draw`),M=e((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return l(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),N=e((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),P=e((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function F(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=I(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,L(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}e(F,`drawCurves`);function I(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}e(I,`relativeRadius`);function L(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}e(L,`closedRoundCurve`);function R(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}e(R,`drawLegend`);var z={draw:j},B=e((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${i};
|
|
4
4
|
fill: ${i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-
|
|
1
|
+
import{n as e,r as t}from"./src-DR1IlxwI.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-DpFBQyTN.js";import{r as f}from"./chunk-5PVQY5BW-DSuJYE-B.js";import{t as p}from"./chunk-426QAEUC-DXNyRebD.js";import{t as m}from"./chunk-4BX2VUAB-Ce60rzXr.js";import{t as h}from"./mermaid-parser.core-Dx4yPDvJ.js";var g=l.packet,_=class{constructor(){this.packet=[],this.setAccTitle=i,this.getAccTitle=u,this.setDiagramTitle=a,this.getDiagramTitle=r,this.getAccDescription=o,this.setAccDescription=n}static{e(this,`PacketDB`)}getConfig(){let e=f({...g,...d().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){s(),this.packet=[]}},v=1e4,y=e((e,n)=>{m(e,n);let r=-1,i=[],a=1,{bitsPerRow:o}=n.getConfig();for(let{start:s,end:c,bits:l,label:u}of e.blocks){if(s!==void 0&&c!==void 0&&c<s)throw Error(`Packet block ${s} - ${c} is invalid. End must be greater than start.`);if(s??=r+1,s!==r+1)throw Error(`Packet block ${s} - ${c??s} is not contiguous. It should start from ${r+1}.`);if(l===0)throw Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(c??=s+(l??1)-1,l??=c-s+1,r=c,t.debug(`Packet block ${s} - ${r} with label ${u}`);i.length<=o+1&&n.getPacket().length<v;){let[e,t]=b({start:s,end:c,bits:l,label:u},a,o);if(i.push(e),e.end+1===a*o&&(n.pushWord(i),i=[],a++),!t)break;({start:s,end:c,bits:l,label:u}=t)}}n.pushWord(i)},`populate`),b=e((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),x={parser:{yy:void 0},parse:e(async e=>{let n=await h(`packet`,e),r=x.parser?.yy;if(!(r instanceof _))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);t.debug(n),y(n,r)},`parse`)},S=e((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),m=o+s,h=m*(d.length+1)-(f?0:o),g=l*u+2,_=p(t);_.attr(`viewBox`,`0 0 ${g} ${h}`),c(_,h,g,a.useMaxWidth);for(let[e,t]of d.entries())C(_,t,e,a);_.append(`text`).text(f).attr(`x`,g/2).attr(`y`,h-m/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),C=e((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),w={draw:S},T={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},E={parser:x,get db(){return new _},renderer:w,styles:e(({packet:e}={})=>{let t=f(T,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|