uigraph 1.0.0 → 1.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/dist/bin.mjs +134 -56911
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-D7zWJuPJ.js +1 -0
- package/dist/viewer/assets/actor-avatar-Bu-mKKXB.js +1 -0
- package/dist/viewer/assets/{api-adapters-CnQpLiWI.js → api-adapters-tfr51BsS.js} +1 -1
- package/dist/viewer/assets/{api-endpoints-DCA5GNpC.js → api-endpoints-D-Whnnwd.js} +9 -9
- package/dist/viewer/assets/{api-group-endpoints-page-Di42W69y.js → api-group-endpoints-page-B9R1EI4i.js} +9 -9
- package/dist/viewer/assets/{arc-Cn8owoDw.js → arc-DauzQXFu.js} +1 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-CXzgHd-c.js +36 -0
- package/dist/viewer/assets/{arrow-left-DWcMgM2U.js → arrow-left-DpQqmf17.js} +1 -1
- package/dist/viewer/assets/avatar-DAFUyk1i.js +43 -0
- package/dist/viewer/assets/badge-hR3QvPWv.js +1 -0
- package/dist/viewer/assets/better-delete-confirmation-modal-CGEQ5O4X.js +1 -0
- package/dist/viewer/assets/better-dialog-DcIxFWwk.js +1 -0
- package/dist/viewer/assets/{blockDiagram-I7D4REHJ-CbYzOsL_.js → blockDiagram-I7D4REHJ-CFHWUw4z.js} +2 -2
- package/dist/viewer/assets/{brands-Bd4RklRx.js → brands-DtmA1AhP.js} +1 -1
- package/dist/viewer/assets/button-DZj74qS7.js +1 -0
- package/dist/viewer/assets/{c4Diagram-7LVT6UL2-CLkVbphC.js → c4Diagram-7LVT6UL2-BHSggPKI.js} +6 -6
- package/dist/viewer/assets/{calendar-C0xdI_ag.js → calendar-Bolgc8E5.js} +1 -1
- package/dist/viewer/assets/channel-CNRSofFP.js +1 -0
- package/dist/viewer/assets/{check-XjanpAFg.js → check-BpmCQNbj.js} +1 -1
- package/dist/viewer/assets/checkbox-CFJfXL6R.js +1 -0
- package/dist/viewer/assets/{chevron-down-R7pQzyLD.js → chevron-down-DDsUE_xz.js} +1 -1
- package/dist/viewer/assets/{chevron-up-CRPypfOs.js → chevron-up-DVznKMGv.js} +1 -1
- package/dist/viewer/assets/{chunk-2Q5K7J3B-CcvtugCu.js → chunk-2Q5K7J3B-CNfz5YDQ.js} +1 -1
- package/dist/viewer/assets/{chunk-5VM5RSS4-CpZHHr12.js → chunk-5VM5RSS4-CwIhjvMe.js} +1 -1
- package/dist/viewer/assets/{chunk-F27PBJKO-DeAl4iOc.js → chunk-F27PBJKO-YFexFJof.js} +1 -1
- package/dist/viewer/assets/{chunk-IMKFNOWR-BfrPe7pS.js → chunk-IMKFNOWR-GY2yrvuo.js} +1 -1
- package/dist/viewer/assets/{chunk-JWPE2WC7-DDjyvUmZ.js → chunk-JWPE2WC7-xd0JGvne.js} +1 -1
- package/dist/viewer/assets/chunk-OB3PAWPO-DJIP1M4r.js +12 -0
- package/dist/viewer/assets/{chunk-POPQ4Y6H-DkDb0mzz.js → chunk-POPQ4Y6H-Bh6rizEy.js} +1 -1
- package/dist/viewer/assets/{chunk-SVP7TREG-D-K2XIGs.js → chunk-SVP7TREG-DtNrjvpq.js} +1 -1
- package/dist/viewer/assets/{chunk-TICWLB2K-DWMQQx6z.js → chunk-TICWLB2K-DrERwtw8.js} +1 -1
- package/dist/viewer/assets/{chunk-XXDRQBXY-DfkljAyM.js → chunk-XXDRQBXY-fYo04iwY.js} +1 -1
- package/dist/viewer/assets/{circle-alert-pm13M-Ef.js → circle-alert-Bl7DXYD_.js} +1 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/color-input-ClkkG_kZ.js +11 -0
- package/dist/viewer/assets/{common-Y7ySZBdh.js → common-DLCsGQ-t.js} +1 -1
- package/dist/viewer/assets/{component-icons-D1BDAuEt.js → component-icons-MJ61E9nt.js} +2 -2
- package/dist/viewer/assets/{copy-CN4K2f_R.js → copy-DMJJonQF.js} +1 -1
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-Dplz8nVT.js +1 -0
- package/dist/viewer/assets/cross-button-D5qst1tj.js +1 -0
- package/dist/viewer/assets/{cynefin-OW5HDTMX-yz-uw9Kz.js → cynefin-OW5HDTMX-DiBs4CI8.js} +1 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-COXS8-dI.js +62 -0
- package/dist/viewer/assets/{dagre-GXQ25YYZ-zjZDwXOe.js → dagre-GXQ25YYZ-K8qvfG8D.js} +2 -2
- package/dist/viewer/assets/dashboard-diagrams-page-Cb0xNr4W.js +2 -0
- package/dist/viewer/assets/dashboard-diagrams-page-inner-CD--zr5q.js +1 -0
- package/dist/viewer/assets/dashboard-docs-page-BfWR9Ai9.js +2 -0
- package/dist/viewer/assets/dashboard-docs-page-inner-BLbX-YwF.js +67 -0
- package/dist/viewer/assets/dashboard-layout-sTeeHNsZ.js +1 -0
- package/dist/viewer/assets/dashboard-lens-layout-D-tu_4kn.js +1 -0
- package/dist/viewer/assets/dashboard-map-frame-page-7pDmbTSe.js +1 -0
- package/dist/viewer/assets/dashboard-plans-page-CfwOZ34A.js +1 -0
- package/dist/viewer/assets/dashboard-service-apis-k93fjW51.js +1 -0
- package/dist/viewer/assets/{dashboard-service-diagrams-CIjk95Jk.js → dashboard-service-diagrams-BIWUxX-Y.js} +3 -3
- package/dist/viewer/assets/dashboard-service-docs-CnniTD6Q.js +1 -0
- package/dist/viewer/assets/{dashboard-service-overview-CzePVPjl.js → dashboard-service-overview-CGBu4omY.js} +5 -5
- package/dist/viewer/assets/dashboard-services-DEscIO2O.js +1 -0
- package/dist/viewer/assets/{db-type-badge-DOgu1Pyc.js → db-type-badge-UbPgpwQf.js} +2 -2
- package/dist/viewer/assets/debounce-Cp8eREM4-D7o-Pzb-.js +2 -0
- package/dist/viewer/assets/{dependencies-CYdEztHw.js → dependencies-DK2GDlhQ.js} +1 -1
- package/dist/viewer/assets/{dependency-graph-DbyfN-rC.js → dependency-graph-xBEnCS0J.js} +3 -3
- package/dist/viewer/assets/{diagram-S7CK7UJ4-q-NHkUCx.js → diagram-S7CK7UJ4-D-liadVe.js} +2 -2
- package/dist/viewer/assets/diagram-UQ7AKVKN-CnA8mgXp.js +41 -0
- package/dist/viewer/assets/{diagram-VSXAHHWV-DZc1kHGx.js → diagram-VSXAHHWV-Ck7dgRFR.js} +2 -2
- package/dist/viewer/assets/diagram-VX7I27RA-Cm1LHbu3.js +24 -0
- package/dist/viewer/assets/diagram-Z3DM3KII-DV3yBUCB.js +24 -0
- package/dist/viewer/assets/diagram-live-preview-DzJ7Nxp1.js +2 -0
- package/dist/viewer/assets/{diagram-portal-page-CWxuok9E.js → diagram-portal-page-gguGLULH.js} +24 -24
- package/dist/viewer/assets/{diagrams-C1xkRPqT.js → diagrams-BqBSv2eb.js} +4 -4
- package/dist/viewer/assets/dialog-D7wzTt0L.js +6 -0
- package/dist/viewer/assets/{doc-file-content-B06roi8L.js → doc-file-content-Be0au9Vo.js} +4 -4
- package/dist/viewer/assets/{download-CLdCXVsO.js → download-DhyZ3g4F.js} +1 -1
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BXbHVQvG.js +1 -0
- package/dist/viewer/assets/{editor-vqK4qAnB.js → editor-F9o4zoeB.js} +2 -2
- package/dist/viewer/assets/{erDiagram-RLTQ6QDP-BWuA-aqV.js → erDiagram-RLTQ6QDP-DMfiWput.js} +2 -2
- package/dist/viewer/assets/{file-text-BvszilVL.js → file-text-BFqJQ67P.js} +1 -1
- package/dist/viewer/assets/flow-diagram-preview-B83UU1n_.js +1 -0
- package/dist/viewer/assets/{flowDiagram-HODETNUW-Db0QtNj4.js → flowDiagram-HODETNUW-BNFS2Mkr.js} +1 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-DFDsYJNp.js +292 -0
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-BVHabPDp.js +106 -0
- package/dist/viewer/assets/global-loader-XJO9_e0l.js +1 -0
- package/dist/viewer/assets/{globe-Jl6eIZmG.js → globe-CJ35KsQW.js} +1 -1
- package/dist/viewer/assets/gql-FFIj8zdp.js +1 -0
- package/dist/viewer/assets/{grid-scroll-body-CPqSxU6-.js → grid-scroll-body-DC5pYDPJ.js} +2 -2
- package/dist/viewer/assets/iconBase-DtqdW2XR.js +1 -0
- package/dist/viewer/assets/index-B6MxYIzs.js +1 -0
- package/dist/viewer/assets/index-BC5xdBQU.js +48 -0
- package/dist/viewer/assets/index-BIrx3oY4.js +1 -0
- package/dist/viewer/assets/{index-jm22RWpY.js → index-BZGsDmUx.js} +5 -5
- package/dist/viewer/assets/{index-Poftp9f1.js → index-BZXhpoWr.js} +4 -4
- package/dist/viewer/assets/index-Bn2bqqMd.js +1 -0
- package/dist/viewer/assets/{index-HU5pz3kj.js → index-BpCVYTvP.js} +36 -36
- package/dist/viewer/assets/{index-Bt2YHgxl.js → index-CBOYhBKJ.js} +1 -1
- package/dist/viewer/assets/index-CH7cEAxj.js +17 -0
- package/dist/viewer/assets/index-CIf0GId3.js +74 -0
- package/dist/viewer/assets/{index-D7MEHpJf.js → index-Ck66Ic_p.js} +4 -4
- package/dist/viewer/assets/index-Cp9mIQ8F.js +1 -0
- package/dist/viewer/assets/{index-c6Bxcoqm.js → index-DDmBuMKI.js} +1 -1
- package/dist/viewer/assets/{index-BSyJbFDG.js → index-DY3BFyb6.js} +1 -1
- package/dist/viewer/assets/{index-BS94XVnd.js → index-DkzZ-ZvR.js} +1 -1
- package/dist/viewer/assets/{index-C_43VC19.js → index-PglMbhys.js} +1 -1
- package/dist/viewer/assets/infoDiagram-27XIBGKW-CG-wwxBf.js +2 -0
- package/dist/viewer/assets/input--C59pq6j.js +1 -0
- package/dist/viewer/assets/{ishikawaDiagram-5VMMS53U-C4PzFnZ4.js → ishikawaDiagram-5VMMS53U-BlgV7ceJ.js} +2 -2
- package/dist/viewer/assets/{journeyDiagram-3NMN7TZE-Dpn3bBNo.js → journeyDiagram-3NMN7TZE-Cn03_Xl6.js} +2 -2
- package/dist/viewer/assets/{kanban-definition-UXKFOSKX-CJ99H4G6.js → kanban-definition-UXKFOSKX-CJogvDPY.js} +6 -6
- package/dist/viewer/assets/{layout-Bfvxt_D5.js → layout-B26eC4yQ.js} +1 -1
- package/dist/viewer/assets/{lens-run-page-DZneics-.js → lens-run-page-Ba1ppzJt.js} +3 -3
- package/dist/viewer/assets/lens-runs-page-BnUS57LM.js +1 -0
- package/dist/viewer/assets/{link-2-C75goIOt.js → link-2-D1e0xznG.js} +1 -1
- package/dist/viewer/assets/linked-project-dot-BY1gEES9.js +543 -0
- package/dist/viewer/assets/{loader-circle-C5jZoM7X.js → loader-circle-CiqyoJF7.js} +1 -1
- package/dist/viewer/assets/{merge-Cy7YkrN7.js → merge-BhOMvhW1.js} +1 -1
- package/dist/viewer/assets/mermaid.core-BDgZg3kW.js +312 -0
- package/dist/viewer/assets/method-badge-DErZP7y5.js +1 -0
- package/dist/viewer/assets/{mindmap-definition-YA3MSWOX-yQCKA-K4.js → mindmap-definition-YA3MSWOX-DFkLu0ac.js} +2 -2
- package/dist/viewer/assets/nav-links-DZWMpwMR.js +61 -0
- package/dist/viewer/assets/{network-COWNXGMM.js → network-B1apzT1s.js} +1 -1
- package/dist/viewer/assets/{nosql-editor-modal-DTiWkc_r.js → nosql-editor-modal-CvH0SWAi.js} +5 -5
- package/dist/viewer/assets/not-found-page-C-fn8QeM.js +1 -0
- package/dist/viewer/assets/organization-dependency-graph-page-BryP-iJL.js +1 -0
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-g1cM14-L.js +1 -0
- package/dist/viewer/assets/{pieDiagram-E7YTZNPT-DqnkpCX4.js → pieDiagram-E7YTZNPT-WEnDsMY3.js} +2 -2
- package/dist/viewer/assets/{plus-DQakmTjA.js → plus-DbyuOgKB.js} +1 -1
- package/dist/viewer/assets/popover-476u3TN0.js +1 -0
- package/dist/viewer/assets/preload-helper-BlTxHScW.js +1 -0
- package/dist/viewer/assets/{quadrantDiagram-AXDQQJYC-iQjJfars.js → quadrantDiagram-AXDQQJYC-NdfQCpzF.js} +2 -2
- package/dist/viewer/assets/query-D9oj6LGx.js +50 -0
- package/dist/viewer/assets/{quill-rCHj4fCw.js → quill-Cde5JMRD.js} +1 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-BYhlXlMY.js +1 -0
- package/dist/viewer/assets/{react-BNzYaZuG.js → react-Bx48XWN4.js} +1 -1
- package/dist/viewer/assets/react-flow-wrapper-BcbvHgxz.js +277 -0
- package/dist/viewer/assets/{requirementDiagram-BXWQKSXE-Bv-Vh1dW.js → requirementDiagram-BXWQKSXE-C25Bcm2L.js} +2 -2
- package/dist/viewer/assets/{sankeyDiagram-P5KCCOFB-C__uD07f.js → sankeyDiagram-P5KCCOFB-h8LiCsgk.js} +2 -2
- package/dist/viewer/assets/scroll-area-RagrStGj.js +6 -0
- package/dist/viewer/assets/{search-DW-qhXLk.js → search-vw7ucoOs.js} +1 -1
- package/dist/viewer/assets/section-loader-C4hOfhQS.js +1 -0
- package/dist/viewer/assets/section-not-found-BnrXiPog.js +1 -0
- package/dist/viewer/assets/select-D9fbrr7O.js +1 -0
- package/dist/viewer/assets/{sequenceDiagram-WJ2MYXX4-1RbvcHwO.js → sequenceDiagram-WJ2MYXX4-CDRVvD30.js} +2 -2
- package/dist/viewer/assets/{service-context-C17u_Fw9.js → service-context-D5nBtU18.js} +1 -1
- package/dist/viewer/assets/{service-database-list-page-cYuDHIls.js → service-database-list-page-DBjaDLVy.js} +2 -2
- package/dist/viewer/assets/service-database-page-CenNCgwf.js +2 -0
- package/dist/viewer/assets/service-database-page-inner-gS51TQTZ.js +85 -0
- package/dist/viewer/assets/{service-doc-Dir8g83J.js → service-doc-C-jHqT1U.js} +4 -4
- package/dist/viewer/assets/{service-doc-preview-modal-bJ6tJ5YR.js → service-doc-preview-modal-5sX6FOu1.js} +2 -2
- package/dist/viewer/assets/service-layout-Bf0vZBCH.js +1 -0
- package/dist/viewer/assets/service-pages-CFikvX4t.js +1 -0
- package/dist/viewer/assets/{services-Crqkffr5.js → services-Ivav34WC.js} +4 -4
- package/dist/viewer/assets/{share-2-BmYmqN4k.js → share-2-CQEaWbfH.js} +1 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BJ6ndnPM.js +1 -0
- package/dist/viewer/assets/stateDiagram-D77RDMKH-B_tNCX3o.js +1 -0
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-Dl9wqdli.js +1 -0
- package/dist/viewer/assets/{style-DgSU0bQl.js → style-BPesJvJr.js} +8 -8
- package/dist/viewer/assets/super-circle-loader-DSkos6uP.js +1 -0
- package/dist/viewer/assets/super-logo-loader-Cxlbn6MB.js +1 -0
- package/dist/viewer/assets/swimlanes-42K2YHIH-CzURzYwf.js +1 -0
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-DrIlwFtk.js +8 -0
- package/dist/viewer/assets/table-B4pFND-o.js +1 -0
- package/dist/viewer/assets/textarea-Clgdv3Oi.js +1 -0
- package/dist/viewer/assets/{timeline-definition-24CTP7MA-C4yuLwUH.js → timeline-definition-24CTP7MA-D0YXQE1U.js} +2 -2
- package/dist/viewer/assets/ui-graph-logo-gHowu5gP.js +1 -0
- package/dist/viewer/assets/{upload-CRsS43j9.js → upload-CYb3nN_5.js} +1 -1
- package/dist/viewer/assets/{uploads-BOQHX9l4.js → uploads-CX2kdXbM.js} +8 -8
- package/dist/viewer/assets/{use-debounced-value-Ba-kkCUY.js → use-debounced-value-BpNFJd3C.js} +1 -1
- package/dist/viewer/assets/{use-localstorage-DIisTx-J.js → use-localstorage-D233xVb0.js} +1 -1
- package/dist/viewer/assets/use-permissions-BvmxJJ5r.js +1 -0
- package/dist/viewer/assets/{use-scoped-storage-C4RzED-E.js → use-scoped-storage-DL1XVp1j.js} +1 -1
- package/dist/viewer/assets/useMutation-D5ZHwHsx.js +1 -0
- package/dist/viewer/assets/useQuery-Dhe6uxrL.js +1 -0
- package/dist/viewer/assets/{vennDiagram-4TSXK5OY-BCtqXZqe.js → vennDiagram-4TSXK5OY-SSjHlqCQ.js} +2 -2
- package/dist/viewer/assets/{wardleyDiagram-VM6X3IG4-D3OtZJoT.js → wardleyDiagram-VM6X3IG4-CZWNdQxH.js} +2 -2
- package/dist/viewer/assets/{xychartDiagram-S5SC5T6Z-DxLL2CHH.js → xychartDiagram-S5SC5T6Z-B2qAGeb0.js} +2 -2
- package/dist/viewer/assets/zod-BMU4UTQt.js +1 -0
- package/dist/viewer/index.html +10 -1
- package/package.json +56 -56
- package/dist/abort-signals-B4fc3ahg.mjs +0 -34
- package/dist/anthropic-messages-KPxCHqBN.mjs +0 -14327
- package/dist/auth-storage-BvNH97p9.mjs +0 -2180
- package/dist/azure-openai-config-BbeCSg4y.mjs +0 -55
- package/dist/azure-openai-responses-BRzy8RfL.mjs +0 -182
- package/dist/classifier-shared-DBUHiTGw.mjs +0 -105
- package/dist/cli-2R6QQFp1.mjs +0 -451
- package/dist/cloudflare-workers-ai-system-one-BfqwmRQf.mjs +0 -44
- package/dist/config-D8DMGzIq.mjs +0 -647
- package/dist/cross-spawn-B2jIQPlu.mjs +0 -404
- package/dist/diagnostics-xdSgQR8t.mjs +0 -131
- package/dist/dist-BRyghrKX.mjs +0 -404
- package/dist/dist-D0EzrblG.mjs +0 -12161
- package/dist/dist-EKhnHWHG.mjs +0 -140221
- package/dist/dist-pQtuusFv.mjs +0 -1243
- package/dist/easter-egg-3d-C9_btlWn.mjs +0 -1225
- package/dist/env-api-keys-uytNub6O.mjs +0 -122
- package/dist/error-body-FhmCtR7m.mjs +0 -101
- package/dist/esm-D5isprgl.mjs +0 -1533
- package/dist/esm-DnqE4pfM.mjs +0 -104876
- package/dist/execute-BoTKl80U.mjs +0 -1715
- package/dist/github-copilot-headers-DWcTgoXr.mjs +0 -22
- package/dist/google-generative-ai-Brs5YpJo.mjs +0 -332
- package/dist/google-shared-2CyYa4VE.mjs +0 -33438
- package/dist/google-vertex-DZDUQPKa.mjs +0 -378
- package/dist/hash-DN7ukSfd.mjs +0 -16
- package/dist/headers-GhQHLk-3.mjs +0 -17
- package/dist/jiti-9kWALm4Y.mjs +0 -5439
- package/dist/jiti-loader-f21DrY1K.mjs +0 -27
- package/dist/jiti-static-loader-BI_w28l7.mjs +0 -41704
- package/dist/json-parse-B2mHg7o7.mjs +0 -381
- package/dist/keybinding-hints-D0nLU3ZH.mjs +0 -17899
- package/dist/lib-Dj1gKQJc.mjs +0 -24379
- package/dist/llama-cpp-classify-C73BoMYd.mjs +0 -344
- package/dist/mistral-conversations-DXVR7znL.mjs +0 -698
- package/dist/models-DBdii9gQ.mjs +0 -1255
- package/dist/multipart-parser-DLw9Z0uJ.mjs +0 -298
- package/dist/node-B0NU8X55.mjs +0 -2479
- package/dist/node-B8gaKm9g.mjs +0 -23
- package/dist/openai-I3_AqKDX.mjs +0 -17357
- package/dist/openai-codex-responses-PcZHDuBD.mjs +0 -1198
- package/dist/openai-completions-a_mH01ii.mjs +0 -994
- package/dist/openai-decisions-Du8y4mQG.mjs +0 -142
- package/dist/openai-prompt-cache-Bc6qNWt0.mjs +0 -8
- package/dist/openai-responses-a9lV_U7O.mjs +0 -270
- package/dist/openai-responses-shared-CDs_PBiH.mjs +0 -598
- package/dist/openrouter-images-D0Zc8Cjs.mjs +0 -125
- package/dist/photon_rs-DCvMOMu0.mjs +0 -4252
- package/dist/pi-messages-B5ietIBq.mjs +0 -306
- package/dist/provider-env-BJhgA66g.mjs +0 -37
- package/dist/provider-retry-DXYM7rVE.mjs +0 -79
- package/dist/runtime-DTkBxiaM.mjs +0 -2822
- package/dist/sanitize-unicode-CqChtoM6.mjs +0 -26
- package/dist/shell-836_JFnI.mjs +0 -162
- package/dist/source-CKPndhKl.mjs +0 -478
- package/dist/src-DNm2QRm3.mjs +0 -5028
- package/dist/system-one-shared-DUAFtNa8.mjs +0 -75
- package/dist/token-DEUkymby.mjs +0 -56
- package/dist/token-util-Cx5S4eKt.mjs +0 -3
- package/dist/tool-DHDYqsyG.mjs +0 -6673
- package/dist/transform-messages-BClk99Vn.mjs +0 -477
- package/dist/typesafe-system-one-D2d8j8hZ.mjs +0 -24
- package/dist/typescript-Br-vsRJV.mjs +0 -6737
- package/dist/uuid-CNCZqNBb.mjs +0 -49
- package/dist/v2-1z8ijsD3.mjs +0 -6120
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-j5YaKnl9.js +0 -1
- package/dist/viewer/assets/actor-avatar-DqmoY8Xc.js +0 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-D80cJKz_.js +0 -36
- package/dist/viewer/assets/avatar-BI7D-Aia.js +0 -43
- package/dist/viewer/assets/badge-870-A4Y6.js +0 -1
- package/dist/viewer/assets/better-delete-confirmation-modal-Dib31LVb.js +0 -1
- package/dist/viewer/assets/better-dialog-D3AAiahr.js +0 -1
- package/dist/viewer/assets/button-DadqadpO.js +0 -1
- package/dist/viewer/assets/channel-DRkt3LIn.js +0 -1
- package/dist/viewer/assets/checkbox-BXpR079x.js +0 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-G5CebNaC.js +0 -1
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-G5CebNaC.js +0 -1
- package/dist/viewer/assets/color-input-Efm-lxDy.js +0 -11
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-CrSHFmnp.js +0 -1
- package/dist/viewer/assets/cross-button-5Sr5rWVP.js +0 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-Bdl_eBdu.js +0 -62
- package/dist/viewer/assets/dashboard-diagrams-page-DMupOe1m.js +0 -2
- package/dist/viewer/assets/dashboard-diagrams-page-inner-Dh0yKh2A.js +0 -1
- package/dist/viewer/assets/dashboard-docs-page-DWJ1qOQz.js +0 -2
- package/dist/viewer/assets/dashboard-docs-page-inner-Fs6G3oGo.js +0 -67
- package/dist/viewer/assets/dashboard-layout-D36InAaB.js +0 -1
- package/dist/viewer/assets/dashboard-lens-layout-Cv1Xx3hY.js +0 -1
- package/dist/viewer/assets/dashboard-map-frame-page-CTn61NUO.js +0 -1
- package/dist/viewer/assets/dashboard-plans-page-DxFJkrgK.js +0 -1
- package/dist/viewer/assets/dashboard-service-apis-BHtD9s5z.js +0 -1
- package/dist/viewer/assets/dashboard-service-docs-Uv_1uxxO.js +0 -1
- package/dist/viewer/assets/dashboard-services-CUP-L4Jg.js +0 -1
- package/dist/viewer/assets/diagram-UQ7AKVKN-DhFcurW6.js +0 -41
- package/dist/viewer/assets/diagram-VX7I27RA-DE1nREE8.js +0 -24
- package/dist/viewer/assets/diagram-Z3DM3KII-CSrYcCbc.js +0 -24
- package/dist/viewer/assets/diagram-live-preview-i5doxXLH.js +0 -2
- package/dist/viewer/assets/dialog-D_HtNS17.js +0 -6
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BfL8m_sf.js +0 -1
- package/dist/viewer/assets/flow-diagram-preview-T0Z4iMVU.js +0 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-CsITpniw.js +0 -292
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-B4eCBGoe.js +0 -106
- package/dist/viewer/assets/iconBase-BoDZfJgC.js +0 -1
- package/dist/viewer/assets/index-5E1tJ7yK.js +0 -125
- package/dist/viewer/assets/index-7XpV2DRw.js +0 -1
- package/dist/viewer/assets/index-C0Rs3s9Z.js +0 -1
- package/dist/viewer/assets/index-CzHjJWeV.js +0 -1
- package/dist/viewer/assets/index-DcEA6SIV.js +0 -74
- package/dist/viewer/assets/infoDiagram-27XIBGKW-lTebN5Ix.js +0 -2
- package/dist/viewer/assets/input-YvHTVS0E.js +0 -1
- package/dist/viewer/assets/lens-runs-page-DoAOObxx.js +0 -1
- package/dist/viewer/assets/linked-project-dot-Ds2uEmJ9.js +0 -543
- package/dist/viewer/assets/mermaid.core-BCRBv8Us.js +0 -312
- package/dist/viewer/assets/method-badge-DMYDKdDZ.js +0 -1
- package/dist/viewer/assets/nav-links-8vT2ixiI.js +0 -61
- package/dist/viewer/assets/not-found-page-CnfLlhS4.js +0 -1
- package/dist/viewer/assets/organization-dependency-graph-page-3xqIxjNx.js +0 -1
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-CMXqeAum.js +0 -1
- package/dist/viewer/assets/popover-CN9ni1N3.js +0 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-CfqToX3W.js +0 -1
- package/dist/viewer/assets/react-flow-wrapper-BPlRstyO.js +0 -276
- package/dist/viewer/assets/scroll-area-BodE-n7W.js +0 -6
- package/dist/viewer/assets/section-loader-BzpYM_Nx.js +0 -1
- package/dist/viewer/assets/select-DDtnmSET.js +0 -1
- package/dist/viewer/assets/service-database-page-CMi1wF4h.js +0 -2
- package/dist/viewer/assets/service-database-page-inner-CoqAj93L.js +0 -85
- package/dist/viewer/assets/service-layout-0NMm_bKG.js +0 -1
- package/dist/viewer/assets/service-pages-dfnc91SU.js +0 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BRJi3gCg.js +0 -1
- package/dist/viewer/assets/stateDiagram-D77RDMKH-DdLsfxgy.js +0 -1
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-DFwg8Qki.js +0 -1
- package/dist/viewer/assets/super-circle-loader-D8MElOMh.js +0 -1
- package/dist/viewer/assets/super-logo-loader-DJYiRbCS.js +0 -1
- package/dist/viewer/assets/swimlanes-42K2YHIH-AuYjrPqh.js +0 -1
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-0nIGA8_4.js +0 -8
- package/dist/viewer/assets/table-Bi4Auk9Z.js +0 -1
- package/dist/viewer/assets/textarea-MgxZ5x6-.js +0 -1
- package/dist/viewer/assets/ui-graph-logo-D4jRhd4z.js +0 -1
- package/dist/viewer/assets/use-permissions-6JVET753.js +0 -1
- package/dist/viewer/assets/useMutation-CmVaR9zz.js +0 -1
- package/dist/viewer/assets/useQuery-B8yYhO0c.js +0 -1
- package/dist/viewer/assets/zod-Dc4H6VVJ.js +0 -1
- package/dist/virtual-modules-DnCx0Gdx.mjs +0 -340
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as St}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as St}from"./chunk-JWPE2WC7-xd0JGvne.js";import{s as Mt,g as Nt,n as zt,m as Lt,a as Tt,b as At,_ as u,W as Xt,x as Et,z as U,l as K,F as Yt,d as It,o as Ft,c as j}from"./mermaid.core-BDgZg3kW.js";import{p as Bt}from"./cynefin-OW5HDTMX-DiBs4CI8.js";import"./preload-helper-BlTxHScW.js";import"./index-CH7cEAxj.js";import"./transform-BqqRT-Iy.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,w=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,w)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const w=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(w,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,w)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:w}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=w??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,w,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
|
|
2
2
|
`+e);const a=Ht(),d=qt(),w=a.nodeRadius*1.6,C=x.db,g=C.getWardleyData(),B=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,E=Yt(n);E.selectAll("*").remove(),It(E,b,S,a.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const v=E.append("g").attr("class","wardley-map"),G=E.append("defs");G.append("marker").attr("id",`arrow-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-end-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-start-${n}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const Y=S-a.padding*2,I=b-a.padding*2;B&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(B);const z=u(t=>a.padding+t/100*Y,"projectX"),L=u(t=>b-a.padding-t/100*I,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const ut=g.axes.xLabel??"Evolution",wt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+Y/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(ut),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+I/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+I/2})`).text(wt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Gt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,o=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{o.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{o.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=o[p],f=a.padding+l.start*Y,h=a.padding+l.end*Y,y=(f+h)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const o=s/4,i=a.padding+Y*o;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-I*o).attr("y2",b-a.padding-I*o).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const i=o.componentIds.map(h=>({id:h,pos:c.get(h),node:g.nodes.find(y=>y.id===h)})).filter(h=>h.pos&&h.node).sort((h,y)=>h.node.x-y.node.x);for(let h=0;h<i.length-1;h++){const y=i[h],m=i[h+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(o.componentIds.forEach(h=>{const y=c.get(h);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(o.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const V=v.append("g").attr("class","wardley-links"),_=new Map;g.pipelines.forEach(t=>{_.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||_.get(t.target)?.has(t.source)));V.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.x+l/h*p}).attr("y1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.y+f/h*p}).attr("x2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.x+l/h*p}).attr("y2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.y+f/h*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${n})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${n})`:null),V.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=o.y-s.y,l=o.x-s.x,f=Math.sqrt(l*l+p*p),h=8,y=p/f;return i+y*h}).attr("y",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.y+o.y)/2,p=o.x-s.x,l=o.y-s.y,f=Math.sqrt(p*p+l*l),h=8,y=-p/f;return i+y*h}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=(s.y+o.y)/2,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f),y=8,m=f/h,P=-l/h,N=i+m*y,O=p+P*y;let X=Math.atan2(f,l)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${N} ${O})`}).text(t=>t.label);const mt=v.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const o=z(t.targetX),i=L(t.targetY),p=o-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),h=a.nodeRadius+2,y=f>h?o-p/f*h:o,m=f>h?i-l/f*h:i;return{origin:s,targetX:o,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);mt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${n})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const q=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let o=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y1",t=>{const s=c.get(t.id),o=t.isPipelineParent?w:a.nodeRadius*2;return s.y-o/2}).attr("x2",t=>{const s=c.get(t.id);let o=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y2",t=>{const s=c.get(t.id),o=t.isPipelineParent?w:a.nodeRadius*2;return s.y+o/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let o=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const i=t.labelOffsetX??o;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let o=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const i=t.labelOffsetY??o;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const o=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(o.length>1)for(let i=0;i<o.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[i].x).attr("y1",o[i].y).attr("x2",o[i+1].x).attr("y2",o[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),o=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(h.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",o+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(H=>{const W=H.node(),Pt=W.getComputedTextLength();m=Math.max(m,Pt);const Ct=W.getBBox();P=Math.max(P,Ct.height)});const N=m+i*2+105,O=h.length*p+i*2+P/2,X=a.padding,bt=S-a.padding-N,$t=a.padding,vt=b-a.padding-O;s=Math.max(X,Math.min(s,bt)),o=Math.max($t,Math.min(o,vt)),y.forEach((H,W)=>{H.attr("x",s+i).attr("y",o+i+(W+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",o).attr("width",N).attr("height",O).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const o=z(s.x),i=L(s.y);t.append("text").attr("x",o).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=`
|
|
3
3
|
M ${o} ${i-l/2}
|
|
4
4
|
L ${o+p-f} ${i-l/2}
|
|
@@ -75,4 +75,4 @@ import{p as St}from"./chunk-JWPE2WC7-DDjyvUmZ.js";import{s as Mt,g as Nt,n as zt
|
|
|
75
75
|
.wardley-notes text {
|
|
76
76
|
fill: ${a.axisTextColor};
|
|
77
77
|
}
|
|
78
|
-
`},"styles"),
|
|
78
|
+
`},"styles"),ae={parser:Q,db:Dt,renderer:Vt,styles:_t};export{ae as diagram};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{s as ai,g as oi,n as It,m as ri,a as hi,b as li,_ as a,l as zt,F as ci,d as gi,o as ui,x as mt,i as di,z as Bt,A as xi,W as fi,aB as pi,a8 as vt}from"./mermaid.core-
|
|
1
|
+
import{s as ai,g as oi,n as It,m as ri,a as hi,b as li,_ as a,l as zt,F as ci,d as gi,o as ui,x as mt,i as di,z as Bt,A as xi,W as fi,aB as pi,a8 as vt}from"./mermaid.core-BDgZg3kW.js";import"./transform-BqqRT-Iy.js";import{i as mi}from"./init-Gi6I4Gst.js";import{o as yi}from"./ordinal-Cboi1Yqb.js";import{l as Lt}from"./linear-BT-xgETh.js";import"./preload-helper-BlTxHScW.js";import"./index-CH7cEAxj.js";import"./value-wA6veExk.js";import"./defaultLocale-DX6XiGOO.js";function bi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,h=new Array(n);++s<n;)h[s]=t+s*e;return h}function ut(){var t=yi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,h,l,d=!1,x=0,C=0,k=.5;delete t.unknown;function R(){var b=i().length,E=n<s,v=E?n:s,L=E?s:n;h=(L-v)/Math.max(1,b-x+C*2),d&&(h=Math.floor(h)),v+=(L-v-h*(b-x))*k,l=h*(1-x),d&&(v=Math.round(v),l=Math.round(l));var M=bi(b).map(function(m){return v+h*m});return e(E?M.reverse():M)}return t.domain=function(b){return arguments.length?(i(b),R()):i()},t.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,R()):[s,n]},t.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,d=!0,R()},t.bandwidth=function(){return l},t.step=function(){return h},t.round=function(b){return arguments.length?(d=!!b,R()):d},t.padding=function(b){return arguments.length?(x=Math.min(1,C=+b),R()):x},t.paddingInner=function(b){return arguments.length?(x=Math.min(1,b),R()):x},t.paddingOuter=function(b){return arguments.length?(C=+b,R()):C},t.align=function(b){return arguments.length?(k=Math.max(0,Math.min(1,b)),R()):k},t.copy=function(){return ut(i(),[s,n]).round(d).paddingInner(x).paddingOuter(C).align(k)},mi.apply(R(),arguments)}var dt=(function(){var t=a(function(W,r,g,u){for(g=g||{},u=W.length;u--;g[W[u]]=r);return g},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],h=[1,6],l=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],x=[1,25],C=[1,26],k=[1,28],R=[1,29],b=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],m=[1,35],D=[1,36],c=[1,37],B=[1,43],F=[1,42],X=[1,47],N=[1,50],_=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],w=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(r,g,u,f,S,o,Z){var p=o.length-1;switch(S){case 5:f.setOrientation(o[p]);break;case 9:f.setDiagramTitle(o[p].text.trim());break;case 12:f.setLineData({text:"",type:"text"},o[p]);break;case 13:f.setLineData(o[p-1],o[p]);break;case 14:f.setBarData({text:"",type:"text"},o[p]);break;case 15:f.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),f.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:f.setXAxisTitle(o[p]);break;case 25:f.setXAxisTitle(o[p-1]);break;case 26:f.setXAxisTitle({type:"text",text:""});break;case 27:f.setXAxisBand(o[p]);break;case 28:f.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:f.setYAxisTitle(o[p]);break;case 33:f.setYAxisTitle(o[p-1]);break;case 34:f.setYAxisTitle({type:"text",text:""});break;case 35:f.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:n,37:h,38:l}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:n,37:h,38:l}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:h,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:n,37:h,38:l}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:n,37:h,38:l}),{11:23,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:39,13:38,24:B,29:F,30:x,31:40,32:41,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:45,15:44,29:X,30:x,35:46,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:49,17:48,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:52,17:51,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(H,[2,39],{41:55,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c}),t(H,[2,40]),t(H,[2,41]),t(w,[2,42]),t(w,[2,44]),t(w,[2,45]),t(w,[2,46]),t(w,[2,47]),t(w,[2,48]),t(w,[2,49]),t(w,[2,50]),t(w,[2,51]),t(w,[2,52]),t(w,[2,53]),t(_,[2,10]),t(_,[2,24],{32:41,31:56,24:B,29:F}),t(_,[2,26]),t(_,[2,27]),{33:[1,57]},{11:59,30:x,34:58,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,11]),t(_,[2,32],{35:60,29:X}),t(_,[2,34]),{33:[1,61]},t(_,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(_,[2,14]),{17:66,24:N},t(_,[2,16]),t(_,[2,17]),t(w,[2,43]),t(_,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(_,[2,33]),{29:[1,70]},t(_,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(O,[2,23],{30:[1,73]}),t(_,[2,15]),t(_,[2,28]),t(_,[2,29]),{11:59,30:x,34:74,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,35]),t(_,[2,19]),{25:75,27:64,29:A},t(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:a(function(r){var g=this,u=[0],f=[],S=[null],o=[],Z=this.table,p="",et=0,kt=0,ii=2,Tt=1,ei=o.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&($.yy[ht]=this.yy[ht]);P.setInput(r,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var lt=P.yylloc;o.push(lt);var si=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ni(z){u.length=u.length-2*z,S.length=S.length-z,o.length=o.length-z}a(ni,"popStack");function Dt(){var z;return z=f.pop()||P.lex()||Tt,typeof z!="number"&&(z instanceof Array&&(f=z,z=f.pop()),z=g.symbols_[z]||z),z}a(Dt,"lex");for(var I,U,V,ct,j={},st,Y,Pt,nt;;){if(U=u[u.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Dt()),V=Z[U]&&Z[U][I]),typeof V>"u"||!V.length||!V[0]){var gt="";nt=[];for(st in Z[U])this.terminals_[st]&&st>ii&&nt.push("'"+this.terminals_[st]+"'");P.showPosition?gt="Parse error on line "+(et+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
3
|
Expecting `+nt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":gt="Parse error on line "+(et+1)+": Unexpected "+(I==Tt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(gt,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:lt,expected:nt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+I);switch(V[0]){case 1:u.push(I),S.push(P.yytext),o.push(P.yylloc),u.push(V[1]),I=null,kt=P.yyleng,p=P.yytext,et=P.yylineno,lt=P.yylloc;break;case 2:if(Y=this.productions_[V[1]][1],j.$=S[S.length-Y],j._$={first_line:o[o.length-(Y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Y||1)].first_column,last_column:o[o.length-1].last_column},si&&(j._$.range=[o[o.length-(Y||1)].range[0],o[o.length-1].range[1]]),ct=this.performAction.apply(j,[p,kt,et,$.yy,V[1],S,o].concat(ei)),typeof ct<"u")return ct;Y&&(u=u.slice(0,-1*Y*2),S=S.slice(0,-1*Y),o=o.slice(0,-1*Y)),u.push(this.productions_[V[1]][0]),S.push(j.$),o.push(j._$),Pt=Z[u[u.length-2]][u[u.length-1]],u.push(Pt);break;case 3:return!0}}return!0},"parse")},K=(function(){var W={EOF:1,parseError:a(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:a(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===f.length?this.yylloc.first_column:0)+f[f.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
5
|
`+g+"^"},"showPosition"),test_match:a(function(r,g){var u,f,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),f=r[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var o in S)this[o]=S[o];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,g,u,f;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),o=0;o<S.length;o++)if(u=this._input.match(this.rules[S[o]]),u&&(!g||u[0].length>g[0].length)){if(g=u,f=o,this.options.backtrack_lexer){if(r=this.test_match(u,S[o]),r!==!1)return r;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(r=this.test_match(g,S[f]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
6
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var g=this.next();return g||this.lex()},"lex"),begin:a(function(g){this.conditionStack.push(g)},"begin"),popState:a(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a(function(g){this.begin(g)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(g,u,f,S){switch(f){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W})();T.lexer=K;function q(){this.yy={}}return a(q,"Parser"),q.prototype=T,T.Parser=q,new q})();dt.parser=dt;var wi=dt;function at(t){return t.type==="bar"}a(at,"isBarPlot");function ot(t){return t.type==="band"}a(ot,"isBandAxisData");function Q(t){return t.type==="linear"}a(Q,"isLinearAxisData");var yt=class{constructor(t){this.parentGroup=t}static{a(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((n,h)=>Math.max(h.length,n),0)*i,height:i};const e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const h=pi(s,1,n),l=h?h.width:n.length*i,d=h?h.height:i;e.width=Math.max(e.width,l),e.height=Math.max(e.height,d)}return s.remove(),e}},Et=.7,Mt=.2,Ot=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{a(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Et*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Et*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=Mt*t.width;this.outerPadding=Math.min(e.width/2,s);let n=e.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(n=Math.max(n,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*e.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*e.height))),n+=this.axisConfig.labelPadding*2,this.labelTextHeight=e.height,n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=Mt*t.height;this.outerPadding=Math.min(e.height/2,s);const n=e.width+this.axisConfig.labelPadding*2;n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const i=this.normalizedLabelRotationInRad;return i===0?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${i},${this.getScaleValue(e)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},Ai=class extends Ot{static{a(this,"BandAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.categories=e,this.scale=ut().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=ut().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),zt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},Ci=class extends Ot{static{a(this,"LinearAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.domain=e,this.scale=Lt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Lt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function xt(t,i,e,s){const n=new yt(s);return ot(t)?new Ai(i,e,t.categories,t.title,n):new Ci(i,e,[t.min,t.max],t.title,n)}a(xt,"getAxis");var Si=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{a(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function Vt(t,i,e,s){const n=new yt(s);return new Si(n,t,i,e)}a(Vt,"getChartTitleComponent");var Ri=.75,_i=.5,ki=.35;function ft(t){return{fontSize:t,markerSize:t*Ri,markerSpacing:t*ki,itemSpacing:t*_i}}a(ft,"getLegendLayout");var Ti=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{a(this,"ChartLegend")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(x=>x.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:i,markerSize:e,markerSpacing:s,itemSpacing:n}=ft(this.chartConfig.legendFontSize),h=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(x=>x.title),i),l=this.chartConfig.legendPadding*2+e+s+h.width,d=this.chartConfig.legendPadding*2+this.visiblePlots.length*i+(this.visiblePlots.length-1)*n;return l<=t.width&&d<=t.height?(this.boundingRect.width=l,this.boundingRect.height=d):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];const{fontSize:t,markerSize:i,markerSpacing:e,itemSpacing:s}=ft(this.chartConfig.legendFontSize),n=t+s,h=this.boundingRect.x+this.chartConfig.legendPadding,l=this.boundingRect.y+this.chartConfig.legendPadding,d=[],x=[];for(const[C,k]of this.visiblePlots.entries())if(at(k))d.push({x:h,y:l+C*n,width:i,height:i,fill:k.fill,strokeFill:k.fill,strokeWidth:0});else{const R=l+C*n+i/2;x.push({path:`M ${h},${R} L ${h+i},${R}`,strokeFill:k.strokeFill,strokeWidth:k.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:d},{groupTexts:["legend","markers"],type:"path",data:x},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((C,k)=>({text:C.title,x:h+i+e,y:l+k*n+i/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};function Ft(t,i,e,s){const n=new yt(s);return new Ti(n,t,i,e)}a(Ft,"getChartLegendComponent");var Di=class{constructor(t,i,e,s,n){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=n}static{a(this,"LinePlot")}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;if(this.orientation==="horizontal"?i=vt().y(s=>s[0]).x(s=>s[1])(t):i=vt().x(s=>s[0]).y(s=>s[1])(t),!i)return[];const e=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const h=[];for(const[l,[d,x]]of t.entries()){const C=this.plotData.pointLabels[l];C&&(this.orientation==="horizontal"?h.push({x:x+10,y:d,text:C,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):h.push({x:d,y:x-10,text:C,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}h.length>0&&e.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:h})}return e}},Pi=class{constructor(t,i,e,s,n,h){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=n,this.plotIndex=h}static{a(this,"BarPlot")}getDrawableElement(){const t=this.barData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),e=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=e/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:this.boundingRect.x,y:n[0]-s,height:e,width:n[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:n[0]-s,y:n[1],width:e,height:this.boundingRect.y+this.boundingRect.height-n[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},vi=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{a(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new Di(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new Pi(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break}return t}};function Wt(t,i,e){return new vi(t,i,e)}a(Wt,"getPlotComponent");var Li=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:Vt(t,i,e,s),plot:Wt(t,i,e),legend:Ft(t,i,e,s),xAxis:xt(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:xt(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{a(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n={width:0,height:0},h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:h,height:l});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=d.width,t-=d.width,n=this.componentStore.legend.calculateSpace({width:t,height:l}),t-=n.width,t>0&&(h+=t,t=0),i>0&&(l+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:l}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.legend.setBoundingBoxXY({x:e+h,y:s+Math.max((l-n.height)/2,0)}),this.componentStore.xAxis.setRange([e,e+h]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+l}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(x=>at(x))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=0,h={width:0,height:0},l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),x=this.componentStore.plot.calculateSpace({width:l,height:d});t-=x.width,i-=x.height,x=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=x.height,i-=x.height,this.componentStore.xAxis.setAxisPosition("left"),x=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=x.width,s=x.width,this.componentStore.yAxis.setAxisPosition("top"),x=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=x.height,n=e+x.height,h=this.componentStore.legend.calculateSpace({width:t,height:d}),t-=h.width,t>0&&(l+=t,t=0),i>0&&(d+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:d}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.legend.setBoundingBoxXY({x:s+l,y:n+Math.max((d-h.height)/2,0)}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([n,n+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(C=>at(C))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},Ei=class{static{a(this,"XYChartBuilder")}static build(t,i,e,s){return new Li(t,i,e,s).getDrawableElement()}},J=0,Xt,tt=At(),it=wt(),y=Ct(),pt=it.plotColorPalette.split(",").map(t=>t.trim()),rt=!1,bt=!1;function wt(){const t=fi(),i=mt();return Bt(t.xyChart,i.themeVariables.xyChart)}a(wt,"getChartDefaultThemeConfig");function At(){const t=mt();return Bt(xi.xyChart,t.xyChart)}a(At,"getChartDefaultConfig");function Ct(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Ct,"getChartDefaultData");function G(t){const i=mt();return di(t.trim(),i)}a(G,"textSanitizer");function Nt(t){Xt=t}a(Nt,"setTmpSVGG");function Yt(t){t==="horizontal"?tt.chartOrientation="horizontal":tt.chartOrientation="vertical"}a(Yt,"setOrientation");function Ht(t){y.xAxis.title=G(t.text)}a(Ht,"setXAxisTitle");function St(t,i){y.xAxis={type:"linear",title:y.xAxis.title,min:t,max:i},rt=!0}a(St,"setXAxisRangeData");function $t(t){y.xAxis={type:"band",title:y.xAxis.title,categories:t.map(i=>G(i.text))},rt=!0}a($t,"setXAxisBand");function Ut(t){y.yAxis.title=G(t.text)}a(Ut,"setYAxisTitle");function Gt(t,i){y.yAxis={type:"linear",title:y.yAxis.title,min:t,max:i},bt=!0}a(Gt,"setYAxisRangeData");function qt(t){const i=Math.min(...t),e=Math.max(...t),s=Q(y.yAxis)?y.yAxis.min:1/0,n=Q(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,i),max:Math.max(n,e)}}a(qt,"setYAxisRangeFromPlotData");function Rt(t){let i=[];if(t.length===0)return i;if(!rt){const e=Q(y.xAxis)?y.xAxis.min:1/0,s=Q(y.xAxis)?y.xAxis.max:-1/0;St(Math.min(e,1),Math.max(s,t.length))}if(ot(y.xAxis)&&t.length>y.xAxis.categories.length&&(t=t.slice(0,y.xAxis.categories.length)),bt||qt(t),ot(y.xAxis)&&(i=y.xAxis.categories.map((e,s)=>[e,t[s]])),Q(y.xAxis)){const e=y.xAxis.min,s=y.xAxis.max;if(t.length===1)i=[[`${e}`,t[0]]];else{const n=(s-e)/(t.length-1);i=t.map((h,l)=>[`${e+l*n}`,h])}}return i}a(Rt,"transformDataWithoutCategory");function _t(t){return pt[t===0?0:t%pt.length]}a(_t,"getPlotColorFromPalette");function jt(t,i){const e=i.map(l=>l.value),s=i.map(l=>l.label?G(l.label):""),n=Rt(e),h=s.some(l=>l!=="");y.plots.push({type:"line",title:G(t.text),strokeFill:_t(J),strokeWidth:2,data:n,...h?{pointLabels:s}:{}}),J++}a(jt,"setLineData");function Qt(t,i){const e=i.map(n=>n.value),s=Rt(e);y.plots.push({type:"bar",title:G(t.text),fill:_t(J),data:s}),J++}a(Qt,"setBarData");function Kt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=It(),Ei.build(tt,y,it,Xt)}a(Kt,"getDrawableElem");function Zt(){return it}a(Zt,"getChartThemeConfig");function Jt(){return tt}a(Jt,"getChartConfig");function ti(){return y}a(ti,"getXYChartData");var Mi=a(function(){ui(),J=0,tt=At(),y=Ct(),it=wt(),pt=it.plotColorPalette.split(",").map(t=>t.trim()),rt=!1,bt=!1},"clear"),Ii={getDrawableElem:Kt,clear:Mi,setAccTitle:li,getAccTitle:hi,setDiagramTitle:ri,getDiagramTitle:It,getAccDescription:oi,setAccDescription:ai,setOrientation:Yt,setXAxisTitle:Ht,setXAxisRangeData:St,setXAxisBand:$t,setYAxisTitle:Ut,setYAxisRangeData:Gt,setLineData:jt,setBarData:Qt,setTmpSVGG:Nt,getChartThemeConfig:Zt,getChartConfig:Jt,getXYChartData:ti},zi=a((t,i,e,s)=>{const n=s.db,h=n.getChartThemeConfig(),l=n.getChartConfig(),d=n.getXYChartData().plots[0].data.map(m=>m[1]);function x(m){return m==="top"?"text-before-edge":"middle"}a(x,"getDominantBaseLine");function C(m){return m==="left"?"start":m==="right"?"end":"middle"}a(C,"getTextAnchor");function k(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}a(k,"getTextTransformation"),zt.debug(`Rendering xychart chart
|
|
7
|
-
`+t);const R=ci(i),b=R.append("g").attr("class","main"),E=b.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");gi(R,l.height,l.width,!0),R.attr("viewBox",`0 0 ${l.width} ${l.height}`),E.attr("fill",h.backgroundColor),n.setTmpSVGG(R.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(m){let D=b,c="";for(const[B]of m.entries()){let F=b;B>0&&L[c]&&(F=L[c]),c+=m[B],D=L[c],D||(D=L[c]=F.append("g").attr("class",m[B]))}return D}a(M,"getGroup");for(const m of v){if(m.data.length===0)continue;const D=M(m.groupTexts);switch(m.type){case"rect":if(D.selectAll("rect").data(m.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){const c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let B=function(A,O){const{data:T,label:K}=A;return O*K.length*F<=T.width-X};a(B,"fitsHorizontally");const F=.7,X=10,N=m.data.map((A,O)=>({data:A,label:d[O].toString()})).filter(A=>A.data.width>0&&A.data.height>0),_=N.map(A=>{const{data:O}=A;let T=O.height*.7;for(;!B(A,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(..._)),w=a(A=>c?A.data.x+A.data.width+X:A.data.x+A.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",w).attr("y",A=>A.data.y+A.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${H}px`).text(A=>A.label)}else{let B=function(w,A,O){const{data:T,label:K}=w,W=A*K.length*.7,r=T.x+T.width/2,g=r-W/2,u=r+W/2,f=g>=T.x&&u<=T.x+T.width,S=T.y+O+A<=T.y+T.height;return f&&S};a(B,"fitsInBar");const F=10,X=m.data.map((w,A)=>({data:w,label:d[A].toString()})).filter(w=>w.data.width>0&&w.data.height>0),N=X.map(w=>{const{data:A,label:O}=w;let T=A.width/(O.length*.7);for(;!B(w,T,F)&&T>0;)T-=1;return T}),_=Math.floor(Math.min(...N)),H=a(w=>c?w.data.y-F:w.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",w=>w.data.x+w.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${_}px`).text(w=>w.label)}}break;case"text":D.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>x(c.verticalPos)).attr("text-anchor",c=>C(c.horizontalPos)).attr("transform",c=>k(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(m.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Bi={draw:zi}
|
|
7
|
+
`+t);const R=ci(i),b=R.append("g").attr("class","main"),E=b.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");gi(R,l.height,l.width,!0),R.attr("viewBox",`0 0 ${l.width} ${l.height}`),E.attr("fill",h.backgroundColor),n.setTmpSVGG(R.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(m){let D=b,c="";for(const[B]of m.entries()){let F=b;B>0&&L[c]&&(F=L[c]),c+=m[B],D=L[c],D||(D=L[c]=F.append("g").attr("class",m[B]))}return D}a(M,"getGroup");for(const m of v){if(m.data.length===0)continue;const D=M(m.groupTexts);switch(m.type){case"rect":if(D.selectAll("rect").data(m.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){const c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let B=function(A,O){const{data:T,label:K}=A;return O*K.length*F<=T.width-X};a(B,"fitsHorizontally");const F=.7,X=10,N=m.data.map((A,O)=>({data:A,label:d[O].toString()})).filter(A=>A.data.width>0&&A.data.height>0),_=N.map(A=>{const{data:O}=A;let T=O.height*.7;for(;!B(A,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(..._)),w=a(A=>c?A.data.x+A.data.width+X:A.data.x+A.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",w).attr("y",A=>A.data.y+A.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${H}px`).text(A=>A.label)}else{let B=function(w,A,O){const{data:T,label:K}=w,W=A*K.length*.7,r=T.x+T.width/2,g=r-W/2,u=r+W/2,f=g>=T.x&&u<=T.x+T.width,S=T.y+O+A<=T.y+T.height;return f&&S};a(B,"fitsInBar");const F=10,X=m.data.map((w,A)=>({data:w,label:d[A].toString()})).filter(w=>w.data.width>0&&w.data.height>0),N=X.map(w=>{const{data:A,label:O}=w;let T=A.width/(O.length*.7);for(;!B(w,T,F)&&T>0;)T-=1;return T}),_=Math.floor(Math.min(...N)),H=a(w=>c?w.data.y-F:w.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",w=>w.data.x+w.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${_}px`).text(w=>w.label)}}break;case"text":D.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>x(c.verticalPos)).attr("text-anchor",c=>C(c.horizontalPos)).attr("transform",c=>k(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(m.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Bi={draw:zi},Ui={parser:wi,db:Ii,renderer:Bi};export{Ui as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as A}from"./index-CH7cEAxj.js";var Ve=e=>e.type==="checkbox",Te=e=>e.type==="file",ye=e=>e instanceof Date,K=e=>e==null;const rr=e=>typeof e=="object";var $=e=>!K(e)&&!Array.isArray(e)&&rr(e)&&!ye(e),Ge=e=>$(e)&&e.target?Ve(e.target)?e.target.checked:Te(e.target)?e.target.files:e.target.value:e;const ht=/[.[\]'"]/;var he=e=>e.split(ht).filter(Boolean);function gt(e,s){const r=he(s);let i=e._formValues,n=e._defaultValues;for(let l=0;l<r.length-1;l++){const u=r[l];if(i=i==null?i:i[u],n=n==null?n:n[u],i===null||n===null)return null}}var jr=(e,s)=>s.split(".").some((r,i,n)=>!isNaN(Number(r))&&e.has(n.slice(0,i).join("."))),Ne=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function M(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);const s=typeof Blob<"u"&&e instanceof Blob,r=typeof FileList<"u"&&e instanceof FileList;if(Ne&&(s||r))return e;const i=Array.isArray(e),n=Object.getPrototypeOf(e);if(!i&&n&&e.constructor!==Object)return e;const l=i?new Array(e.length):Object.create(n);for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(l[u]=M(e[u]));return l}const de={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Y={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_t=[Y.required,Y.min,Y.max,Y.minLength,Y.maxLength,Y.pattern,Y.validate],Ee="form",Wr="root",tr=["__proto__","constructor","prototype"],vt=/^\w*$/;var ve=e=>vt.test(e),O=e=>e===void 0,h=(e,s,r)=>{if(!s||!$(e))return r;const i=ve(s)?[s]:he(s);if(i.some(l=>tr.includes(l)))return r;const n=i.reduce((l,u)=>K(l)?void 0:l[u],e);return O(n)||n===e?O(e[s])?r:e[s]:n},te=e=>typeof e=="boolean",Z=e=>typeof e=="function",S=(e,s,r)=>{let i=-1;const n=ve(s)?[s]:he(s),l=n.length,u=l-1;for(;++i<l;){const c=n[i];let g=r;if(i!==u){const b=e[c];g=$(b)||Array.isArray(b)?b:isNaN(+n[i+1])?{}:[]}if(tr.includes(c))return;e[c]=g,e=e[c]}};const qr=A.createContext(null);qr.displayName="HookFormControlContext";const sr=()=>A.useContext(qr);var Hr=(e,s,r,i=!0)=>{const n={};for(const l in e)Object.defineProperty(n,l,{get:()=>{const u=l;return s._proxyFormState[u]!==ne.all&&(s._proxyFormState[u]=!i||ne.all),r&&(r[u]=!0),e[u]}});return n};const ir=Ne?A.useLayoutEffect:A.useEffect;var Vt=e=>{const s=e.constructor&&e.constructor.prototype;return $(s)&&s.hasOwnProperty("isPrototypeOf")},Ye=e=>K(e)||!rr(e);const Ar=(e,s)=>s.length===0&&!Array.isArray(e)&&!Vt(e);function Q(e,s,r=!1,i=new WeakMap){if(e===s)return!0;if(Ye(e)||Ye(s))return Object.is(e,s);if(ye(e)&&ye(s))return Object.is(e.getTime(),s.getTime());const n=Object.keys(e),l=Object.keys(s);if(n.length!==l.length)return!1;if(Ar(e,n)||Ar(s,l))return Object.is(e,s);if(!n.length&&Array.isArray(e)!==Array.isArray(s))return!1;const u=i.get(e);if(u&&u.has(s))return!0;if(u)u.add(s);else{const c=new WeakSet;c.add(s),i.set(e,c)}for(const c of n){const g=e[c];if(!(c in s))return!1;if(!r||c!=="ref"){const b=s[c];if(ye(g)&&ye(b)||($(g)||Array.isArray(g))&&($(b)||Array.isArray(b))?!Q(g,b,r,i):!Object.is(g,b))return!1}}return!0}function nr(e){const s=A.useRef(!1),r=A.useRef(!1),i=A.useRef(void 0),n=A.useRef(0);n.current++,!r.current&&e&&(r.current=!0,i.current=M(e()));const l=A.useCallback((c,g,b)=>{if(c&&(s.current||r.current&&n.current>1)){const C=g();Q(i.current,C)||b(C)}s.current=!0},[]),u=A.useCallback((c,g)=>{c&&(i.current=M(g()))},[]);return{resyncIfNeeded:l,snapshot:u}}function mt(e){const s=sr(),{control:r=s,disabled:i,name:n,exact:l}=e||{},u=()=>({...r._formState,defaultValues:r._defaultValues}),[c,g]=A.useState(u),b=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:C,snapshot:x}=nr(u);return ir(()=>{C(!i,u,g);const R=r._subscribe({name:n,formState:b.current,exact:l,callback:D=>{!i&&g({...r._formState,...D,defaultValues:r._defaultValues})}});return()=>{R(),x(!i,u)}},[r,n,i,l,C,x]),A.useEffect(()=>{b.current.isValid&&r._setValid(!0)},[r]),A.useMemo(()=>Hr(c,r,b.current,!1),[c,r])}var J=e=>typeof e=="string",Ke=(e,s,r,i,n)=>J(e)?(i&&s.watch.add(e),h(r,e,n)):Array.isArray(e)?e.map(l=>(i&&s.watch.add(l),h(r,l,h(n,l)))):(i&&(s.watchAll=!0),r);function bt(e){const s=sr(),{control:r=s,name:i,defaultValue:n,disabled:l,exact:u,compute:c}=e||{},g=A.useRef(n),b=A.useRef(c),C=A.useRef(r),x=A.useRef(i);b.current=c;const R=()=>{const G=r._getWatch(i,g.current);return b.current?b.current(G):G},[D,p]=A.useState(R),B=A.useRef(D),se=A.useCallback(G=>{const L=Ke(i,r._names,G||r._formValues,!1,g.current);return b.current?b.current(L):L},[r._formValues,r._names,i]),P=A.useCallback(G=>{if(!l){const L=Ke(i,r._names,G||r._formValues,!1,g.current);if(b.current){const j=b.current(L);Q(j,B.current)||(p(j),B.current=j)}else p(L)}},[r._formValues,r._names,l,i]),{resyncIfNeeded:ie,snapshot:v}=nr(R),w=A.useRef(P);w.current=P;const E=A.useRef(se);E.current=se,ir(()=>{C.current!==r||!Q(x.current,i)?(C.current=r,x.current=i,w.current()):ie(!l,()=>E.current(),L=>{const j=M(L);p(j),B.current=j});const G=r._subscribe({name:i,formState:{values:!0},exact:u,callback:L=>{w.current(L.values)}});return()=>{G(),v(!l,()=>E.current())}},[r,u,i,l,ie,v]),A.useEffect(()=>r._removeUnmounted());const k=C.current!==r,ae=x.current;return A.useMemo(()=>{if(l)return!1;const G=!k&&!Q(ae,i);return k||G},[l,k,i,ae])?se():D}function At(e){const s=sr(),{name:r,disabled:i,control:n=s,shouldUnregister:l,defaultValue:u,exact:c=!0}=e,g=jr(n._names.array,r),b=A.useMemo(()=>{const w=h(n._formValues,r,h(n._defaultValues,r,u));return O(w)?gt(n,r):w},[n,r,u]),C=bt({control:n,name:r,defaultValue:b,exact:c}),x=mt({control:n,name:r,exact:c}),R=A.useRef(e),D=A.useRef(null),p=A.useRef(n.register(r,{...e.rules,value:C,...te(e.disabled)?{disabled:e.disabled}:{}}));R.current=e;const B=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!h(x.errors,r)},isDirty:{enumerable:!0,get:()=>!!h(x.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!h(x.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!h(x.validatingFields,r)},error:{enumerable:!0,get:()=>h(x.errors,r)}}),[x,r]),se=A.useCallback(w=>{const E=Ge(w);return h(n._fields,r)||(p.current=n.register(r,{...R.current.rules,value:E})),p.current.onChange({target:{value:Ge(w),name:r},type:de.CHANGE})},[r,n]),P=A.useCallback(()=>{const w=h(n._formValues,r);return h(n._fields,r)||(p.current=n.register(r,{...R.current.rules,value:w})),p.current.onBlur({target:{value:w,name:r},type:de.BLUR})},[r,n]),ie=A.useCallback(w=>{w&&(D.current={focus:()=>Z(w.focus)&&w.focus(),select:()=>Z(w.select)&&w.select(),setCustomValidity:k=>Z(w.setCustomValidity)&&w.setCustomValidity(k),reportValidity:()=>Z(w.reportValidity)&&w.reportValidity()});const E=h(n._fields,r);E&&E._f&&w&&(E._f.ref=D.current,E._f._c=!0)},[n._fields,r]),v=A.useMemo(()=>({name:r,value:C,...te(i)||x.disabled?{disabled:x.disabled||i}:{},onChange:se,onBlur:P,ref:ie}),[r,i,x.disabled,se,P,ie,C]);return A.useEffect(()=>{const w=n._options.shouldUnregister||l;p.current=n.register(r,{...R.current.rules,...te(R.current.disabled)?{disabled:R.current.disabled}:{}});const E=(k,ae)=>{const z=h(n._fields,k);z&&z._f&&(z._f.mount=ae,z._f._c=ae)};if(E(r,!0),w){const k=M(h(l?n._defaultValues:n._options.values||n._defaultValues,r,h(n._options.defaultValues,r,R.current.defaultValue)));S(n._defaultValues,r,k),O(h(n._formValues,r))&&S(n._formValues,r,k)}if(!g&&n.register(r,{...R.current.rules,...te(R.current.disabled)?{disabled:R.current.disabled}:{}}),D.current){const k=h(n._fields,r);k&&k._f&&(k._f.ref=D.current)}return()=>{(g?w&&!n._state.action:w)?n.unregister(r):E(r,!1)}},[r,n,g,l]),A.useEffect(()=>{n._setDisabledField({disabled:i,name:r})},[i,r,n]),A.useMemo(()=>({field:v,formState:x,fieldState:B}),[v,x,B])}const Wt=e=>e.render(At(e));var Ce=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched}),qe=(e,s,r)=>{if(r)return!1;if(s.watchAll||s.watch.has(e))return!0;for(const i of s.watch)if(e.startsWith(i)&&e.charAt(i.length)===".")return!0;return!1};const we=(e,s,r)=>{for(const i of r||Object.keys(e)){if(i==="_f")continue;const n=r?h(e,i):e[i];if(n){const{_f:l}=n;if(l){if(l.refs&&l.refs[0]&&s(l.refs[0],l.name))return!0;if(l.ref&&s(l.ref,l.name))return!0;if(we(n,s))return!0}else if(($(n)||Array.isArray(n))&&we(n,s))return!0}}};var Fr=(e,s,r)=>{const i=h(e,r),n=Array.isArray(i)?i:[];return S(n,Wr,s[r]),S(e,r,n),e},H=e=>$(e)&&!Object.keys(e).length,Se=e=>{if(!Ne)return!1;const s=e?e.ownerDocument:0;return e instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},pe=e=>e.type==="radio",Ie=e=>e instanceof RegExp,ar=(e,s,r,i,n)=>s?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:n||!0}}:{};const Er={value:!1,isValid:!1},wr={value:!0,isValid:!0};var zr=e=>{if(!Array.isArray(e))return Er;if(e.length>1){const r=e.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:r,isValid:!!r.length}}const s=e[0];return!s||!s.checked||s.disabled?Er:!s.attributes||!("value"in s.attributes)||O(s.value)||s.value===""?wr:{value:s.value,isValid:!0}};const xr={isValid:!1,value:null};var Gr=e=>Array.isArray(e)?e.reduce((s,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:s,xr):xr;function Dr(e,s,r="validate"){if(J(e)||Array.isArray(e)&&e.every(J)||te(e)&&!e)return{type:r,message:J(e)?e:"",ref:s}}var _e=e=>$(e)&&!Ie(e)?e:{value:e,message:""},kr=async(e,s,r,i,n,l)=>{const{ref:u,refs:c,required:g,maxLength:b,minLength:C,min:x,max:R,pattern:D,validate:p,name:B,valueAsNumber:se,mount:P,_c:ie}=e._f,v=h(r,B);if(!P||s.has(B))return{};const w=c?c[0]:u,E=I=>{if(n&&w.reportValidity){const T=te(I)?"":I||"";c?c.forEach(W=>Z(W.setCustomValidity)&&W.setCustomValidity(T)):w.setCustomValidity(T),w.reportValidity()}},k={},ae=pe(u),z=Ve(u),G=ae||z,L=(se||Te(u))&&O(u.value)&&O(v)||Se(u)&&u.value===""&&!ie||v===""||Array.isArray(v)&&!v.length,j=ar.bind(null,B,i,k),me=(I,T,W,X=Y.maxLength,oe=Y.minLength)=>{const le=I?T:W;k[B]={type:I?X:oe,message:le,ref:u,...j(I?X:oe,le)}};if(l?!Array.isArray(v)||!v.length:g&&(!G&&(L||K(v))||te(v)&&!v||z&&!zr(c).isValid||ae&&!Gr(c).isValid)){const{value:I,message:T}=J(g)?{value:!!g,message:g}:_e(g);if(I&&(k[B]={type:Y.required,message:T,ref:w,...j(Y.required,T)},!i))return E(T),k}if(!L&&(!K(x)||!K(R))){let I,T;const W=_e(R),X=_e(x);if(!K(v)&&!ye(v)&&!isNaN(v)){const oe=u.valueAsNumber||v&&+v;K(W.value)||(I=oe>W.value),K(X.value)||(T=oe<X.value)}else{const oe=u.valueAsDate||new Date(v),le=Le=>new Date(new Date().toDateString()+" "+Le),De=u.type=="time",ce=u.type=="week";J(W.value)&&v&&(I=De?le(v)>le(W.value):ce?v>W.value:oe>new Date(W.value)),J(X.value)&&v&&(T=De?le(v)<le(X.value):ce?v<X.value:oe<new Date(X.value))}if((I||T)&&(me(!!I,W.message,X.message,Y.max,Y.min),!i))return E(k[B].message),k}if((b||C)&&!L&&(J(v)||l&&Array.isArray(v))){const I=_e(b),T=_e(C),W=!K(I.value)&&v.length>+I.value,X=!K(T.value)&&v.length<+T.value;if((W||X)&&(me(W,I.message,T.message),!i))return E(k[B].message),k}if(D&&!L&&J(v)){const{value:I,message:T}=_e(D);if(Ie(I)&&!v.match(I)&&(k[B]={type:Y.pattern,message:T,ref:u,...j(Y.pattern,T)},!i))return E(T),k}if(p){if(Z(p)){const I=await p(v,r),T=Dr(I,w);if(T&&(k[B]={...T,...j(Y.validate,T.message)},!i))return E(T.message),k}else if($(p)){let I={};for(const T in p){if(!H(I)&&!i)break;const W=Dr(await p[T](v,r),w,T);W&&(I={...W,...j(T,W.message)},i||E(W.message),i&&(k[B]=I))}if(!H(I)&&(k[B]={ref:w,...I},!i))return k}}const xe=k[B];return E(xe?xe.message:!0),k},He=e=>Array.isArray(e)?e:[e],Yr=e=>Array.isArray(e)?e.filter(Boolean):[];function Ft(e,s){const r=s.length-1;let i=0;for(;i<r;){if(K(e)){e=void 0;break}e=e[s[i]],i++}return e}function Et(e){for(const s in e)if(e.hasOwnProperty(s)&&!O(e[s]))return!1;return!0}function q(e,s){if(J(s)&&Object.prototype.hasOwnProperty.call(e,s))return delete e[s],e;const r=Array.isArray(s)?s:ve(s)?[s]:he(s);if(r.some(u=>tr.includes(String(u))))return e;const i=r.length===1?e:Ft(e,r),n=r.length-1,l=r[n];return i&&delete i[l],n!==0&&($(i)&&H(i)||Array.isArray(i)&&Et(i))&&q(e,r.slice(0,-1)),e}const wt=A.createContext(null);wt.displayName="HookFormContext";var Or=()=>{let e=new Set,s=0;return{get observers(){return Array.from(e)},next:l=>{const u=e;s++;for(const c of u)c.next&&c.next(l);u===e&&s--},subscribe:l=>(e.add(l),{unsubscribe:()=>{s&&(e=new Set(e),s=0),e.delete(l)}}),unsubscribe:()=>{e=new Set,s=0}}};function Kr(e,s){const r=Array.isArray(e)?[]:{};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=e[i],l=s[i];n&&($(n)||Array.isArray(n))&&l?r[i]=Kr(n,l):e[i]&&(r[i]=l)}return r}const Cr=(e,s)=>e!==null&&rr(e)&&Object.prototype.hasOwnProperty.call(e,s);var Rr=(e,s)=>{if(!s)return!1;let r=e;for(const i of ve(s)?[s]:he(s)){if(!Cr(r,i))return Cr(e,s);r=r[i]}return!0},xt=e=>Ve(e)?e.checked!==e.defaultChecked:!pe(e)&&"defaultValue"in e&&e.value!==e.defaultValue,Zr=e=>e.type==="select-multiple",Dt=e=>pe(e)||Ve(e),ze=e=>Se(e)&&e.isConnected;function Sr(e){return Array.isArray(e)||$(e)}function Jr(e,s,r="",i=[]){for(const n in e){const l=r?`${r}.${n}`:n,u=e[n];Sr(u)&&Sr(h(s,l))?Jr(u,s,l,i):i.push(l)}return i}var kt=e=>{for(const s in e)if(Z(e[s]))return!0;return!1};function Qr(e){return Array.isArray(e)||$(e)&&!kt(e)}function Xr(e){return!!(e&&"_f"in e)}function et(e){return Array.isArray(e)?!e.some(s=>!O(s)):!Object.keys(e).length}function Ze(e,s){Array.isArray(e)?e[s]=void 0:delete e[s]}function Je(e,s={},r){for(const i in e){const n=e[i],l=r&&r[i];Qr(n)&&(!Array.isArray(n)||!Xr(l))?(s[i]=Array.isArray(n)?[]:{},Je(n,s[i],l),et(s[i])&&Ze(s,i)):O(n)||(s[i]=!0)}return s}function fe(e,s,r,i){r||(r=Je(s,Array.isArray(s)?[]:{},i));for(const n in e){const l=e[n],u=i&&i[n];Qr(l)&&(!Array.isArray(l)||!Xr(u))?(O(s)||Ye(r[n])?r[n]=Je(l,Array.isArray(l)?[]:{},u):fe(l,K(s)?{}:s[n],r[n],u),et(r[n])&&Ze(r,n)):Q(l,s[n])?Ze(r,n):r[n]=!0}return r}var Ot=(e,s)=>{const r=s.split("."),i=[];let n=r[0];for(let l=1;l<r.length;n+="."+r[l++])!isNaN(+r[l])&&e.has(n)&&i.push(`${n}.${r[l]}`);return i},Qe=(e,{valueAsNumber:s,valueAsDate:r,setValueAs:i})=>O(e)?e:s?e===""?NaN:e&&+e:r&&J(e)?new Date(e):i?i(e):e;function Ir(e){const s=e.ref;return Te(s)?s.files:pe(s)?Gr(e.refs).value:Zr(s)?[...s.selectedOptions].map(({value:r})=>r):Ve(s)?zr(e.refs).value:Qe(s.value,e)}var Ct=(e,s,r,i)=>{const n={};for(const l of e){const u=h(s,l);u&&S(n,l,u._f)}return{criteriaMode:r,names:[...e],fields:n,shouldUseNativeValidation:i}},Fe=e=>O(e)?e:Ie(e)?e.source:$(e)?Ie(e.value)?e.value.source:e.value:e;const Tr="AsyncFunction";var Rt=e=>{if(!e||!e.validate)return!1;if(Z(e.validate))return e.validate.constructor.name===Tr;if($(e.validate)){for(const s in e.validate)if(e.validate[s].constructor.name===Tr)return!0}return!1},St=e=>e.mount&&(e.required||!O(e.required)&&e.required!==!1||!O(e.min)||!O(e.max)||!O(e.maxLength)||!O(e.minLength)||e.pattern||e.validate);function Nr(e,s,r){const i=h(e,r);if(i&&(i.type||i.message)||Array.isArray(i))return{error:i,name:r};const n=r.split(".");for(;n.length;){const l=n.join("."),u=h(s,l),c=h(e,l);if(u&&!Array.isArray(u)&&r!==l)return{name:r};if(c&&c.type)return{name:l,error:c};if(c&&c.root&&c.root.type)return{name:`${l}.root`,error:c.root};n.pop()}return{name:r}}var It=(e,s,r)=>{const i=Object.keys(e).filter(n=>n!=="name");return!i.length||r&&i.length>=Object.keys(s).length||i.find(n=>s[n]===(!r||ne.all))};const pr=(e,s,r)=>r?e===s||e.startsWith(s+"."):e.startsWith(s)||s.startsWith(e);var Lr=(e,s,r)=>{if(!e||!s||e===s)return!0;if(!Array.isArray(e))return pr(e,s,r);for(const i of e)if(i&&pr(i,s,r))return!0;return!1},Tt=(e,s,r,i,n)=>n.isOnAll?!1:!r&&n.isOnTouch?!(s||e):(r?i.isOnBlur:n.isOnBlur)?!e:(r?i.isOnChange:n.isOnChange)?e:!0,Nt=(e,s)=>{const r=h(e,s);!Yr(r).length&&!(r&&r.root)&&q(e,s)};const Re={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0},pt=(e,s)=>{for(const r in e)delete e[r];Object.assign(e,s)},rt={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Lt(e={}){let s={...Re,...e},r={...M(rt),isLoading:Z(s.defaultValues),errors:s.errors||{},disabled:s.disabled||!1},i={},n=$(s.defaultValues)||$(s.values)?M(s.defaultValues||s.values)||{}:{},l=s.shouldUnregister?{}:M(n),u={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},c=!1,g={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const b={},C={},x=new Set;let R=Ce(s.mode),D=Ce(s.reValidateMode);const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},B={...p},se={},P=(...t)=>t.some(a=>B[a]||se[a]),ie=t=>{for(const a of x)if(Lr(a.name,t,a.exact))return!0;return!1},v={array:Or(),state:Or()};let w=0,E=0,k=s.criteriaMode===ne.all;const ae=(t,a)=>o=>{clearTimeout(C[t]),C[t]=setTimeout(a,o)},z=t=>{clearTimeout(C[t]),delete C[t],delete b[t]},G=t=>{z(t);const a=`${t}.`;for(const o of Object.keys(b))o.startsWith(a)&&z(o)},L=async t=>{if(!u.keepIsValid&&!s.disabled&&(P("isValid")||t)){const a=++w;let o;s.resolver?(o=H((await ce()).errors),a===w&&j()):o=await ge({fields:i,onlyCheckValid:!0,eventType:de.VALID}),a===w&&o!==r.isValid&&v.state.next({isValid:o})}},j=(t,a)=>{!s.disabled&&P("isValidating","validatingFields")&&((t||g.mount).forEach(o=>{o&&(a?S(r.validatingFields,o,a):q(r.validatingFields,o))}),v.state.next({validatingFields:r.validatingFields,isValidating:!H(r.validatingFields)}))},me=()=>{r.dirtyFields=fe(n,l,void 0,i)},xe=(t,a=[],o,f,d=!0,_=!0)=>{if(f&&o&&!s.disabled){u.action=!0;const y=h(i,t);if(u.actionArrayLengths.has(t)||u.actionArrayLengths.set(t,Array.isArray(y)?y.length:0),_&&Array.isArray(y)){const U=o(y,f.argA,f.argB);d&&S(i,t,U)}const V=h(r.errors,t);if(_&&Array.isArray(V)){const U=V.root,ee=o(V,f.argA,f.argB)||V;U&&(ee.root=U),d&&S(r.errors,t,ee),Nt(r.errors,t),r.errors={...r.errors}}const m=h(r.touchedFields,t),F=_&&Array.isArray(m);if(F){const U=o(m,f.argA,f.argB);d&&S(r.touchedFields,t,U)}const N=h(r.dirtyFields,t);if(_&&Array.isArray(N)){const U=o(N,f.argA,f.argB)||N;d&&S(r.dirtyFields,t,U)}P("dirtyFields")?me():c=!0,v.state.next({name:t,isDirty:ue(t,a),dirtyFields:r.dirtyFields,...F&&{touchedFields:r.touchedFields},errors:r.errors,isValid:r.isValid})}else S(l,t,a)},I=(t,a)=>{S(r.errors,t,a),r.errors={...r.errors},v.state.next({errors:r.errors})},T=t=>{Object.keys(b).forEach(z);const a=!H(t);r.errors=t,v.state.next({errors:r.errors,...a?{isValid:!1}:{}}),!a&&u.mount&&L()},W=t=>{const a=ve(t)?[t]:he(t);let o=l,f=n;for(let d=0;d<a.length-1;d++){const _=a[d];if(o=K(o)?o:o[_],f=K(f)?f:f[_],o===null&&f!==null)return!0}return!1},X=t=>{if(!u.actionArrayLengths.size)return!1;const a=ve(t)?[t]:he(t);let o=l,f="",d=-1,_=0;for(let y=0;y<a.length;y++){if(K(o))return!1;const V=a[y];if(f=f?`${f}.${V}`:V,Array.isArray(o)&&+V>=o.length)return d===-1?!1:y===d?+V<_:!0;if(u.actionArrayLengths.has(f)&&(d=y+1,_=u.actionArrayLengths.get(f)),o=o[V],O(o)&&d!==-1&&y>d&&+a[d]<_)return!0}return!1},oe=(t,a,o,f)=>{const d=h(i,t);if(d){if(W(t)||X(t))return;const _=O(h(l,t)),y=h(l,t,O(o)?h(n,t):o),V=!!f&&!r.isReady&&xt(f);if(O(y)||f&&f.defaultChecked||V||a){const m=a?y:Ir(d._f);P("dirtyFields")&&!Q(h(l,t),m)&&(c=!0),S(l,t,m),V&&le(t,m)}else Ue(t,y);u.mount&&!u.action&&(s.resolver&&P("isValidating","validatingFields")?Promise.resolve().then(()=>L()):L(),_&&r.isDirty&&P("isDirty")&&(ue()||(r.isDirty=!1,v.state.next({...r}))),s.shouldUnregister&&_&&!O(h(l,t))&&qe(t,g)&&(u.watch=!0))}},le=(t,a,o,f,d)=>{let _=!1,y=!1;const V={name:t};if(!s.disabled||f===!0){if(!o||f){const m=Q(h(n,t),a);if(P("isDirty")&&(y=r.isDirty,r.isDirty=V.isDirty=!m||ue(),_=y!==V.isDirty),y=!!h(r.dirtyFields,t),m)q(r.dirtyFields,t);else{const N=h(n,t),U=h(i,t),ee=!(U&&U._f)&&($(N)||Array.isArray(N))?fe(N,a,void 0,U):!0;S(r.dirtyFields,t,ee)}let F=!1;if(c||m&&(P("isDirty")?r.isDirty:ue())){c=!1;const N=fe(n,l,void 0,i);Q(r.dirtyFields,N)||(F=!0,pt(r.dirtyFields,N))}V.dirtyFields=r.dirtyFields,_=_||P("dirtyFields")&&(F||y!==!m)}if(o){const m=Rr(r.touchedFields,t)?h(r.touchedFields,t):void 0;m||(S(r.touchedFields,t,o),V.touchedFields=r.touchedFields,_=_||P("touchedFields")&&m!==o)}_&&d&&v.state.next(V)}return _?V:{}},De=(t,a,o,f)=>{const d=h(r.errors,t),_=P("isValid")&&te(a)&&r.isValid!==a;if(s.delayError&&o?(b[t]=ae(t,()=>I(t,o)),b[t](s.delayError)):(z(t),o?S(r.errors,t,o):q(r.errors,t),r.errors={...r.errors}),(o?!Q(d,o,!0):d)||!H(f)||_){const y={...f,..._&&te(a)?{isValid:a}:{},errors:r.errors,name:t};v.state.next(y)}},ce=async t=>(j(t,!0),await s.resolver(l,s.context,Ct(t||g.mount,i,s.criteriaMode,s.shouldUseNativeValidation))),Le=async t=>{const a=E,{errors:o}=await ce(t);if(a!==E)return o;if(j(t),t){for(const f of t){const d=h(o,f);G(f);const _=g.array.has(f)&&$(d)&&!Object.keys(d).some(m=>!Number.isNaN(Number(m))),y=h(i,f),V=$(y)&&Object.keys(y).some(m=>m!=="_f");_?Fr(r.errors,{[f]:d},f):d&&(d.type||d.message)||Array.isArray(d)||$(d)&&V?S(r.errors,f,d):q(r.errors,f)}r.errors={...r.errors}}else Object.keys(b).forEach(z),r.errors=o;return o},or=async({name:t,eventType:a})=>{if(s.validate){const o=E,f=await s.validate({formValues:l,formState:r,name:t,eventType:a});if(o!==E)return!0;if($(f)){let d=!0;Pe(Ee);for(const _ in f){const y=f[_];y&&(d=!1,ke(`${Ee}.${_}`,{message:J(y.message)?y.message:"",type:y.type||Y.validate}))}return d}else return J(f)||!f?(ke(Ee,{message:f||"",type:Y.validate}),!1):(Pe(Ee),!0)}return!0},ge=async({fields:t,onlyCheckValid:a,name:o,eventType:f,context:d={valid:!0,runRootValidation:!1}})=>{const _=E;if(s.validate&&!d.runRootValidation&&(d.runRootValidation=!0,!await or({name:o,eventType:f})&&(d.valid=!1,a)))return d.valid;for(const y in t){const V=t[y];if(V){const{_f:m,...F}=V;if(m){const N=g.array.has(m.name),U=V._f&&Rt(V._f),ee=P("isValidating","validatingFields");U&&ee&&j([m.name],!0);const re=await kr(V,g.disabled,l,k,s.shouldUseNativeValidation&&!a,N);if(_!==E)return d.valid;if(U&&ee&&j([m.name]),re[m.name]&&(d.valid=!1,a)||(a||(z(m.name),h(re,m.name)?N?Fr(r.errors,re,m.name):S(r.errors,m.name,re[m.name]):q(r.errors,m.name)),s.shouldUseNativeValidation&&re[m.name]))break}!H(F)&&await ge({context:d,onlyCheckValid:a,fields:F,name:y,eventType:f})}}return d.valid},tt=()=>{for(const t of g.unMount){const a=h(i,t);a&&(a._f.refs?a._f.refs.every(o=>!ze(o)):!ze(a._f.ref))&&Be(t)}g.unMount=new Set},ue=(t,a)=>(t&&a&&S(l,t,a),!Q(u.mount?l:n,n)),Me=(t,a,o)=>{const f=u.mount?l:O(a)||!O(t)?n:a;return Ke(t,g,O(t)?{...f}:f,o,a)},st=t=>Yr(h(u.mount?l:n,t,s.shouldUnregister?h(n,t,[]):[])),Ue=(t,a,o={},f=!1,d=!1,_=!1)=>{const y=h(i,t);let V=a;if(y){const m=y._f;m&&(!m.disabled&&S(l,t,Qe(a,m)),V=Se(m.ref)&&K(a)?"":a,Zr(m.ref)?[...m.ref.options].forEach(F=>F.selected=V.includes(F.value)):m.refs?Ve(m.ref)?m.refs.forEach(F=>{(!F.defaultChecked||!F.disabled)&&(Array.isArray(V)?F.checked=!!V.find(N=>N===F.value):F.checked=V===F.value||!!V)}):m.refs.forEach(F=>F.checked=F.value===V):Te(m.ref)?m.ref.value="":(m.ref.value=V,!m.ref.type&&!d&&!_&&v.state.next({name:t,values:f?l:ie(t)?M(l):void 0})))}(o.shouldDirty||o.shouldTouch)&&le(t,y&&y._f&&!y._f.disabled&&(y._f.valueAsNumber||y._f.valueAsDate||y._f.setValueAs)?Qe(a,y._f):V,o.shouldTouch,o.shouldDirty,!d),o.shouldValidate&&Ae(t,{delayError:o.delayError}),o.shouldValidate&&y&&y._f&&y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&Ae(y._f.deps)},lr=(t,a,o,f=!1,d=!1,_=!1)=>{g.array.has(t)&&v.array.next({name:t,values:f?l:M(l)});for(const y in a){if(!a.hasOwnProperty(y))continue;const V=a[y],m=t+"."+y,F=h(i,m);(g.array.has(t)||$(V)||F&&!F._f)&&!ye(V)?lr(m,V,o,f,d,_):Ue(m,V,o,f,d,_)}},ur=(t,a,o,f,d=!1)=>{const _=h(i,t),y=g.array.has(t),V=f?a:M(a),m=h(l,t),F=Q(m,V);if(F||S(l,t,V),y)v.array.next({name:t,values:f?l:M(l)}),P("isDirty","dirtyFields")&&o.shouldDirty&&(me(),d||v.state.next({name:t,dirtyFields:r.dirtyFields,isDirty:ue(t,V)})),o.shouldValidate&&Ae(t,{delayError:o.delayError});else{const N=Array.isArray(V)&&!V.length||H(V),U=!F&&!d;!_||_._f||K(V)||N?Ue(t,V,o,f,d,U):lr(t,V,o,f,d,U)}if(!F&&!d){const N=qe(t,g),U=u.mount||N?t:void 0,ee=y?[]:Ot(g.array,t),re=f?l:ie(U)||ee.some(ie)?M(l):void 0;v.state.next({...N&&r,name:U,values:re});for(const We of ee)v.state.next({name:We,values:re})}},be=(t,a,o={})=>ur(t,a,o,!1),it=(t,a={})=>{const o=Z(t)?t(l):t;if(!Q(l,o)){l={...l,...o};for(const f of g.mount)Rr(o,f)&&ur(f,h(o,f),a,!0,!0);v.state.next({...r,name:void 0,type:void 0,...x.size?{values:l}:{}}),a.shouldValidate&&L()}},fr=async t=>{u.mount=!0;const a=t.target;let o=a.name,f=!0;const d=h(i,o),_=y=>{f=Number.isNaN(y)||ye(y)&&isNaN(y.getTime())||Q(y,h(l,o,y))};if(d){let y,V;const m=a.type?Ir(d._f):Ge(t),F=t.type===de.BLUR||t.type===de.FOCUS_OUT,N=!St(d._f)&&!s.validate&&!s.resolver&&!h(r.errors,o)&&!d._f.deps,U=N||Tt(F,h(r.touchedFields,o),r.isSubmitted,D,R),ee=qe(o,g,F);S(l,o,M(m)),F?(!a||!a.readOnly)&&(d._f.onBlur&&d._f.onBlur(t),Object.prototype.hasOwnProperty.call(b,o)&&b[o](0)):d._f.onChange&&d._f.onChange(t);const re=le(o,m,F),We=!H(re)||ee;if(!F&&v.state.next({name:o,type:t.type,...ie(o)?{values:M(l)}:{}}),U)return(!N||!r.isValid)&&P("isValid")&&(s.mode==="onBlur"?F&&L():F||L()),We&&v.state.next({name:o,...ee?{}:re});if(!s.resolver&&s.validate&&await or({name:o,eventType:t.type}),!F&&ee&&v.state.next({...r}),s.resolver){const Oe=E,{errors:mr}=await ce([o]);if(Oe!==E)return;if(j([o]),_(m),!f){!H(re)&&v.state.next(re);return}const yt=Nr(r.errors,i,o),br=Nr(mr,i,yt.name||o);y=br.error,o=br.name,V=H(mr)}else{const Oe=E;if(j([o],!0),y=(await kr(d,g.disabled,l,k,s.shouldUseNativeValidation))[o],Oe!==E)return;if(j([o]),_(m),f){if(y)V=!1;else if(P("isValid")&&(V=await ge({fields:i,onlyCheckValid:!0,name:o,eventType:t.type}),Oe!==E))return}}f&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&Ae(d._f.deps),De(o,V,y,re))}},cr=(t,a)=>{if(h(r.errors,a)&&t.focus)return t.focus(),1},Ae=async(t,a={})=>{let o,f;const d=He(t);if(s.resolver){const _=E,y=await Le(O(t)?t:d);if(o=H(y),f=t?!d.some(V=>h(y,V)):o,_!==E)return f}else t?(f=(await Promise.all(d.map(async _=>{const y=h(i,_);return await ge({fields:y&&y._f?{[_]:y}:y,eventType:de.TRIGGER})}))).every(Boolean),!(!f&&!r.isValid)&&L()):f=o=await ge({fields:i,name:t,eventType:de.TRIGGER});if(a.delayError&&s.delayError&&J(t)){const _=h(r.errors,t);_?(q(r.errors,t),b[t]=ae(t,()=>I(t,_)),b[t](s.delayError)):z(t)}if(a.shouldTouch)for(const _ of t?d:g.mount)!g.array.has(_)&&S(r.touchedFields,_,!0);return r.errors={...r.errors},v.state.next({...!J(t)||P("isValid")&&o!==r.isValid?{}:{name:t},...s.resolver||!t?{isValid:o}:{},...a.shouldTouch&&P("touchedFields")?{touchedFields:r.touchedFields}:{},errors:r.errors}),a.shouldFocus&&!f&&we(i,cr,t?d:g.mount),f},nt=(t,a)=>{let o={...u.mount?l:n};return a&&(o=Kr(a.dirtyFields?r.dirtyFields:r.touchedFields,o)),O(t)?o:J(t)?h(o,t):t.map(f=>h(o,f))},at=t=>O(t)?{...r.errors}:J(t)?h(r.errors,t):t.map(a=>h(r.errors,a)),dr=(t,a)=>{const o=a||r,f=h(o.errors,t);return{invalid:!!f,isDirty:!!h(o.dirtyFields,t),error:f,isValidating:!!h(o.validatingFields,t),isTouched:!!h(o.touchedFields,t)}},Pe=t=>{const a=t?He(t):void 0;a?a.forEach(o=>{G(o),q(r.errors,o),r.errors={...r.errors},v.state.next({name:o,errors:r.errors})}):(Object.keys(b).forEach(z),r.errors={},v.state.next({errors:r.errors}))},ke=(t,a,o)=>{G(t);const f=(h(i,t,{_f:{}})._f||{}).ref,d=h(r.errors,t)||{},{ref:_,message:y,type:V,types:m,...F}=d;S(r.errors,t,{...F,...a,ref:f}),r.errors={...r.errors},v.state.next({name:t,errors:r.errors,isValid:!1}),o&&o.shouldFocus&&f&&f.focus&&f.focus()},ot=(t,a)=>{if(Z(t)){const o={};x.add(o);const{unsubscribe:f}=v.state.subscribe({next:d=>"values"in d&&t(d.values||Me(void 0,a),d)});return{unsubscribe:()=>{x.delete(o),f()}}}return Me(t,a,!0)},yr=t=>{const a={name:t.name,exact:t.exact};t.formState&&t.formState.values&&x.add(a);const{unsubscribe:o}=v.state.subscribe({next:f=>{if(Lr(t.name,f.name,t.exact)&&It(f,t.formState||B,t.reRenderRoot)){const d=f.values||{...l};t.callback({...r,...f,values:d,defaultValues:n})}}});return()=>{x.delete(a),o()}},lt=t=>{u.mount=!0;const a=Object.keys(t.formState||{}).filter(f=>t.formState&&t.formState[f]);for(const f of a)se[f]=(se[f]||0)+1;const o=yr({...t,formState:{...p,...t.formState}});return()=>{for(const f of a.splice(0))se[f]--;o()}},Be=(t,a={})=>{for(const o of t?He(t):g.mount)g.mount.delete(o),g.array.delete(o),g.disabled.delete(o),a.keepValue||(q(i,o),q(l,o)),a.keepError||(G(o),q(r.errors,o)),!a.keepDirty&&q(r.dirtyFields,o),!a.keepTouched&&q(r.touchedFields,o),!a.keepIsValidating&&q(r.validatingFields,o),!s.shouldUnregister&&!a.keepDefaultValue&&q(n,o);a.keepError||(r.errors={...r.errors}),x.size&&v.state.next({values:M(l)}),v.state.next({...r,...a.keepDirty?{}:{isDirty:ue()},...a.keepIsValidating?{}:{isValidating:!H(r.validatingFields)}}),!a.keepIsValid&&L()},hr=({disabled:t,name:a})=>{if(te(t)&&u.mount||t||g.disabled.has(a)){const d=g.disabled.has(a)!==!!t;t?g.disabled.add(a):g.disabled.delete(a),d&&u.mount&&!u.action&&L()}},$e=(t,a={})=>{let o=h(i,t);const f=te(a.disabled)||te(s.disabled),d=!g.registerName.has(t)&&o&&o._f&&!o._f.mount;if(S(i,t,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:t}},name:t,mount:!0,...a}}),g.mount.add(t),o&&o._f){const _=h(i,t);for(const y of _t)y in a||delete _._f[y]}return o&&!d?hr({disabled:te(a.disabled)?a.disabled:s.disabled,name:t}):oe(t,!0,a.value),{...f?{disabled:a.disabled||s.disabled}:{},...s.progressive?{required:!!a.required,min:Fe(a.min),max:Fe(a.max),minLength:Fe(a.minLength),maxLength:Fe(a.maxLength),pattern:Fe(a.pattern)}:{},name:t,onChange:fr,onBlur:fr,ref:_=>{if(_){g.registerName.add(t),$e(t,a),g.registerName.delete(t),o=h(i,t);const y=O(_.value)&&_.querySelectorAll&&_.querySelectorAll("input,select,textarea")[0]||_,V=Dt(y),m=o._f.refs||[];if(V?m.find(N=>N===y):y===o._f.ref)return;const F={...o._f};V?(F.refs=[...m.filter(ze),y,...Array.isArray(h(n,t))?[{}]:[]],F.ref={type:y.type,name:t}):(F.ref=y,delete F.refs),S(i,t,{_f:F}),oe(t,!1,void 0,y)}else o=h(i,t,{}),o._f&&(o._f.mount=!1),(s.shouldUnregister||a.shouldUnregister)&&!(jr(g.array,t)&&u.action)&&g.unMount.add(t)}}},je=()=>s.shouldFocusError&&!s.shouldUseNativeValidation&&we(i,cr,g.mount),ut=t=>{te(t)&&(v.state.next({disabled:t}),we(i,(a,o)=>{const f=h(i,o);f&&(a.disabled=f._f.disabled||t,Array.isArray(f._f.refs)&&f._f.refs.forEach(d=>{d.disabled=f._f.disabled||t}))},0))},gr=(t,a)=>async o=>{let f,d;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let _=M(l);if(v.state.next({isSubmitting:!0}),s.resolver){const y=E,{errors:V,values:m}=await ce();if(y!==E)return;j(),Object.keys(b).forEach(z),r.errors=V,_=M(m)}else{const y=E;if(await ge({fields:i,eventType:de.SUBMIT}),y!==E)return;q(r.errors,Wr),r.errors={...r.errors}}if(g.disabled.size)for(const y of g.disabled)q(_,y);if(H(r.errors)){v.state.next({errors:{}});try{f=await t(_,o)}catch(y){d=y}}else a&&await a({...r.errors},o),je(),setTimeout(je);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(r.errors)&&!d,submitCount:r.submitCount+1,errors:r.errors}),d)throw d;return f},ft=(t,a={})=>{h(i,t)&&(q(r.validatingFields,t),O(a.defaultValue)?be(t,M(h(n,t))):(be(t,a.defaultValue),S(n,t,M(a.defaultValue))),a.keepTouched||q(r.touchedFields,t),a.keepDirty||(q(r.dirtyFields,t),r.isDirty=a.defaultValue?ue(t,M(h(n,t))):ue()),a.keepError||(G(t),q(r.errors,t),r.errors={...r.errors},L()),v.state.next({...r,isValidating:!H(r.validatingFields)}))},_r=(t,a={})=>{E++;const o=t?M(t):n,f=M(o),d=H(t),_=f,y=i;if(Object.keys(b).forEach(z),a.keepDefaultValues||(n=o),!a.keepValues){if(a.keepDirtyValues){const V=new Set([...g.mount,...Jr(fe(n,l,void 0,y),r.dirtyFields)]);for(const m of V){const F=h(r.dirtyFields,m),N=h(l,m),U=h(_,m);F&&!O(N)?S(_,m,N):!F&&!O(U)&&be(m,U)}}else{if(Ne&&O(t))for(const V of g.mount){const m=h(i,V);if(m&&m._f){const F=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;if(Se(F)){const N=F.closest("form");if(N){N.reset();break}}}}if(a.keepFieldsRef)for(const V of g.mount)be(V,h(_,V));else i={}}if(s.shouldUnregister){if(l=a.keepDefaultValues?M(n):{},a.keepFieldsRef)for(const V of g.mount)S(l,V,h(_,V))}else l=M(_);v.array.next({values:{..._}}),v.state.next({name:void 0,type:void 0,values:{..._}})}g={mount:a.keepDirtyValues?g.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!B.isValid||!!a.keepIsValid||!!a.keepDirtyValues||!s.shouldUnregister&&!H(_),u.watch=!!s.shouldUnregister,u.keepIsValid=!!a.keepIsValid,u.action=!1,u.actionArrayLengths.clear(),c=!1,a.keepErrors||(r.errors={}),v.state.next({submitCount:a.keepSubmitCount?r.submitCount:0,isDirty:d?!1:a.keepDirty?r.isDirty:a.keepValues?ue():!!(a.keepDefaultValues&&t&&!Q(t,n)),isSubmitted:a.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:d?{}:a.keepDirtyValues?a.keepDefaultValues&&l?fe(n,l,void 0,y):r.dirtyFields:a.keepDefaultValues&&t?fe(n,t,void 0,y):a.keepDirty?r.dirtyFields:a.keepValues?fe(n,l,void 0,y):{},touchedFields:a.keepTouched?r.touchedFields:{},...!a.keepIsValidating&&(r.isValidating||!H(r.validatingFields))?{validatingFields:{},isValidating:!1}:null,errors:a.keepErrors?r.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:n})},vr=(t,a)=>_r(Z(t)?t(l):t,{...s.resetOptions,...a}),ct=(t,a={})=>{const o=h(i,t),f=o&&o._f;if(f){const d=f.refs?f.refs[0]:f.ref;d.focus&&setTimeout(()=>{d.focus(),a.shouldSelect&&Z(d.select)&&d.select()})}},dt=t=>{const{name:a,type:o,values:f,...d}=t;Object.keys(d).length&&(r={...r,...d})};v.state.subscribe({next:dt});const Vr={control:{register:$e,unregister:Be,getFieldState:dr,handleSubmit:gr,setError:ke,_subscribe:yr,_runSchema:ce,_updateIsValidating:j,_focusError:je,_getWatch:Me,_getDirty:ue,_setValid:L,_setFieldArray:xe,_setDisabledField:hr,_setErrors:T,_getFieldArray:st,_reset:_r,_resetDefaultValues:()=>Z(s.defaultValues)&&s.defaultValues().then(t=>{vr(t,s.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:tt,_disableForm:ut,_subjects:v,_proxyFormState:B,get _fields(){return i},get _formValues(){return l},get _state(){return u},set _state(t){u=t},get _defaultValues(){return n},get _names(){return g},set _names(t){g=t},get _formState(){return r},get _options(){return s},set _options(t){s={...s,...t},R=Ce(s.mode),D=Ce(s.reValidateMode),k=s.criteriaMode===ne.all}},subscribe:lt,trigger:Ae,register:$e,handleSubmit:gr,watch:ot,setValue:be,setValues:it,getValues:nt,getErrors:at,reset:vr,resetField:ft,resetDefaultValues:(t,a={})=>{if(n=M(t),!a.keepDirty){const o=fe(n,l,void 0,i);r.dirtyFields=o,r.isDirty=!H(o)}a.keepIsValid||L(),v.state.next({...r,defaultValues:n})},clearErrors:Pe,unregister:Be,setError:ke,setFocus:ct,getFieldState:dr};return{...Vr,formControl:Vr}}const Mr={mode:Re.mode,reValidateMode:Re.reValidateMode,shouldFocusError:Re.shouldFocusError,resolver:void 0,criteriaMode:void 0,delayError:void 0,shouldUnregister:void 0,shouldUseNativeValidation:void 0,context:void 0};function qt(e={}){const s=A.useRef(void 0),r=A.useRef(void 0),i=A.useRef(e.formControl),n=A.useRef(!!e.validate),[l,u]=A.useState(()=>({...M(rt),isLoading:Z(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z(e.defaultValues)?void 0:e.defaultValues}));if(!s.current||e.formControl&&i.current!==e.formControl)if(i.current=e.formControl,e.formControl)s.current={...e.formControl,formState:l},e.defaultValues&&!Z(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:D,...p}=Lt(e);s.current={...p,formState:l}}const c=s.current.control,g=c._options,b={};for(const D in Mr)D in g&&!(D in e)&&(b[D]=Mr[D]);c._options={...b,...e,validate:e.validate};const C=()=>({...c._formState,defaultValues:c._defaultValues}),{resyncIfNeeded:x,snapshot:R}=nr(C);return ir(()=>{x(!0,C,u);const D=c._subscribe({formState:c._proxyFormState,callback:()=>u({...c._formState,defaultValues:c._defaultValues}),reRenderRoot:!0});return u(p=>({...p,isReady:!0})),c._formState.isReady=!0,()=>{D(),R(!0,C)}},[c,x,R]),A.useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),A.useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),A.useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),A.useEffect(()=>{n.current&&!e.validate&&s.current&&s.current.clearErrors(Ee),n.current=!!e.validate},[e.validate]),A.useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),A.useEffect(()=>{if(c._proxyFormState.isDirty){const D=c._getDirty();D!==l.isDirty&&c._subjects.state.next({isDirty:D})}},[c,l.isDirty]),A.useEffect(()=>{e.values&&!Q(e.values,r.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),c._options.resetOptions&&c._options.resetOptions.keepIsValid||c._setValid(),r.current=e.values,u(D=>({...D}))):c._resetDefaultValues()},[c,e.values]),A.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),s.current.formState=A.useMemo(()=>Hr(l,c),[c,l]),s.current}const Ur=(e,s,r)=>{if(e&&"reportValidity"in e){const i=h(r,s);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},Xe=(e,s)=>{for(const r in s.fields){const i=s.fields[r];i&&i.ref&&"reportValidity"in i.ref?Ur(i.ref,r,e):i&&i.refs&&i.refs.forEach(n=>Ur(n,r,e))}},Pr=(e,s)=>{s.shouldUseNativeValidation&&Xe(e,s);const r={};for(const i in e){const n=h(s.fields,i),l=Object.assign(e[i]||{},{ref:n&&n.refs?n.refs[0]:n&&n.ref});if(Mt(s.names||Object.keys(e),i)){const u=Object.assign({},h(r,i));S(u,"root",l),S(r,i,u)}else S(r,i,l)}return r},Mt=(e,s)=>{const r=Br(s).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(i=>Br(i).match(`^${r}\\.\\d+`))};function Br(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},er.apply(null,arguments)}function $r(e,s){try{var r=e()}catch(i){return s(i)}return r&&r.then?r.then(void 0,s):r}function Ut(e,s){for(var r=Object.create(null);e.length;){var i=e[0],n=i.code,l=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var c,g,b=i.unionErrors.reduce(function(R,D){return D.errors.length<R.errors.length?D:R}).errors[0];r[u]={message:(c=b?.message)!=null?c:l,type:(g=b?.code)!=null?g:n}}else r[u]={message:l,type:n};if("unionErrors"in i&&i.unionErrors.forEach(function(R){return R.errors.forEach(function(D){return e.push(D)})}),s){var C=r[u].types,x=C&&C[i.code];r[u]=ar(u,s,r,n,x?[].concat(x,i.message):i.message)}e.shift()}return r}function Pt(e,s){for(var r=Object.create(null),i=function(){var n=e[0],l=n.code,u=n.message,c=n.path.join(".");if(!r[c])if(n.code==="invalid_union"&&n.errors.length>0){var g,b,C=n.errors.reduce(function(D,p){return p.length<D.length?p:D})[0];r[c]={message:(g=C?.message)!=null?g:u,type:(b=C?.code)!=null?b:l}}else r[c]={message:u,type:l};if(n.code==="invalid_union"&&n.errors.forEach(function(D){return D.forEach(function(p){return e.push(er({},p,{path:[].concat(n.path,p.path)}))})}),s){var x=r[c].types,R=x&&x[n.code];r[c]=ar(c,s,r,l,R?[].concat(R,n.message):n.message)}e.shift()};e.length;)i();return r}function Ht(e,s,r){if(r===void 0&&(r={}),(function(i){return"_zod"in i&&typeof i._zod=="object"})(e))return function(i,n,l){try{return Promise.resolve($r(function(){function u(g){return l.shouldUseNativeValidation&&Xe({},l),{errors:{},values:r.raw?Object.assign({},i):g}}var c=e;return r.mode==="sync"?u(c.parse(i,s)):Promise.resolve(c.parseAsync(i,s)).then(u)},function(u){if((function(c){var g;return!(c==null||(g=c._zod)==null||(g=g.traits)==null||!g.has("$ZodError"))})(u))return{values:{},errors:Pr(Pt(u.issues,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}};if((function(i){return"_def"in i&&typeof i._def=="object"})(e))return function(i,n,l){try{return Promise.resolve($r(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,s)).then(function(u){return l.shouldUseNativeValidation&&Xe({},l),{errors:{},values:r.raw?Object.assign({},i):u}})},function(u){if((function(c){return Array.isArray(c?.issues)})(u))return{values:{},errors:Pr(Ut(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}};throw new Error("Invalid input: not a Zod schema")}export{Wt as C,Ht as a,qt as u};
|
package/dist/viewer/index.html
CHANGED
|
@@ -38,7 +38,16 @@
|
|
|
38
38
|
--font-fira-code: 'Fira Code', monospace;
|
|
39
39
|
}
|
|
40
40
|
</style>
|
|
41
|
-
<script type="module" crossorigin src="/assets/index-
|
|
41
|
+
<script type="module" crossorigin src="/assets/index-BC5xdBQU.js"></script>
|
|
42
|
+
<link rel="modulepreload" crossorigin href="/assets/index-CH7cEAxj.js">
|
|
43
|
+
<link rel="modulepreload" crossorigin href="/assets/query-D9oj6LGx.js">
|
|
44
|
+
<link rel="modulepreload" crossorigin href="/assets/global-loader-XJO9_e0l.js">
|
|
45
|
+
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
|
|
46
|
+
<link rel="modulepreload" crossorigin href="/assets/chunk-OB3PAWPO-DJIP1M4r.js">
|
|
47
|
+
<link rel="modulepreload" crossorigin href="/assets/section-not-found-BnrXiPog.js">
|
|
48
|
+
<link rel="modulepreload" crossorigin href="/assets/gql-FFIj8zdp.js">
|
|
49
|
+
<link rel="modulepreload" crossorigin href="/assets/debounce-Cp8eREM4-D7o-Pzb-.js">
|
|
50
|
+
<link rel="modulepreload" crossorigin href="/assets/index-B6MxYIzs.js">
|
|
42
51
|
<link rel="stylesheet" crossorigin href="/assets/index-m8s6_jQi.css">
|
|
43
52
|
</head>
|
|
44
53
|
<body class="bg-background text-foreground font-sans antialiased">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uigraph",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Generate UIGraph artifacts for a repository with a coding agent and edit them in a local UIGraph viewer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"architecture",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@commander-js/extra-typings": "^15.0.0",
|
|
46
46
|
"@inquirer/prompts": "^8.7.3",
|
|
47
|
+
"@uigraph/lens": "^1.0.0",
|
|
47
48
|
"@uigraph/sdk": "^1.2.17",
|
|
48
49
|
"commander": "^15.0.0",
|
|
49
50
|
"consola": "^3.4.2",
|
|
@@ -52,63 +53,62 @@
|
|
|
52
53
|
"picocolors": "^1.1.1",
|
|
53
54
|
"tinyglobby": "^0.2.17",
|
|
54
55
|
"yaml": "^2.9.1",
|
|
55
|
-
"zod": "^4.
|
|
56
|
+
"zod": "^4.6.7"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@apollo/client": "^3.14.1",
|
|
59
60
|
"@codemirror/lang-css": "^6.3.1",
|
|
60
61
|
"@codemirror/lang-go": "^6.0.1",
|
|
61
|
-
"@codemirror/lang-html": "^6.4.
|
|
62
|
-
"@codemirror/view": "^6.43.
|
|
62
|
+
"@codemirror/lang-html": "^6.4.12",
|
|
63
|
+
"@codemirror/view": "^6.43.14",
|
|
63
64
|
"@eslint/compat": "^1.4.1",
|
|
64
|
-
"@eslint/eslintrc": "^3.3.
|
|
65
|
+
"@eslint/eslintrc": "^3.3.7",
|
|
65
66
|
"@eslint/js": "^9.39.5",
|
|
66
67
|
"@fontsource/fira-code": "^5.3.0",
|
|
67
68
|
"@fontsource/inter": "^5.3.0",
|
|
68
69
|
"@fontsource/poppins": "^5.3.0",
|
|
69
70
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
70
|
-
"@hookform/resolvers": "^5.
|
|
71
|
+
"@hookform/resolvers": "^5.9.1",
|
|
71
72
|
"@hugeicons/core-free-icons": "^4.3.5",
|
|
72
73
|
"@hugeicons/react": "^1.1.10",
|
|
73
|
-
"@radix-ui/react-accordion": "^1.
|
|
74
|
-
"@radix-ui/react-alert-dialog": "^1.1
|
|
75
|
-
"@radix-ui/react-avatar": "^1.
|
|
76
|
-
"@radix-ui/react-checkbox": "^1.
|
|
77
|
-
"@radix-ui/react-collapsible": "^1.1
|
|
78
|
-
"@radix-ui/react-dialog": "^1.1
|
|
79
|
-
"@radix-ui/react-dropdown-menu": "^2.1
|
|
80
|
-
"@radix-ui/react-hover-card": "^1.1
|
|
81
|
-
"@radix-ui/react-label": "^2.1.
|
|
82
|
-
"@radix-ui/react-popover": "^1.1
|
|
83
|
-
"@radix-ui/react-scroll-area": "^1.
|
|
84
|
-
"@radix-ui/react-select": "^2.
|
|
85
|
-
"@radix-ui/react-separator": "^1.
|
|
86
|
-
"@radix-ui/react-slider": "^1.
|
|
87
|
-
"@radix-ui/react-slot": "^1.
|
|
88
|
-
"@radix-ui/react-switch": "^1.
|
|
89
|
-
"@radix-ui/react-toggle": "^1.1
|
|
90
|
-
"@radix-ui/react-toggle-group": "^1.1
|
|
91
|
-
"@radix-ui/react-tooltip": "^1.
|
|
74
|
+
"@radix-ui/react-accordion": "^1.3.1",
|
|
75
|
+
"@radix-ui/react-alert-dialog": "^1.2.1",
|
|
76
|
+
"@radix-ui/react-avatar": "^1.3.1",
|
|
77
|
+
"@radix-ui/react-checkbox": "^1.4.1",
|
|
78
|
+
"@radix-ui/react-collapsible": "^1.2.1",
|
|
79
|
+
"@radix-ui/react-dialog": "^1.3.1",
|
|
80
|
+
"@radix-ui/react-dropdown-menu": "^2.2.1",
|
|
81
|
+
"@radix-ui/react-hover-card": "^1.2.1",
|
|
82
|
+
"@radix-ui/react-label": "^2.1.17",
|
|
83
|
+
"@radix-ui/react-popover": "^1.3.1",
|
|
84
|
+
"@radix-ui/react-scroll-area": "^1.4.0",
|
|
85
|
+
"@radix-ui/react-select": "^2.4.1",
|
|
86
|
+
"@radix-ui/react-separator": "^1.2.0",
|
|
87
|
+
"@radix-ui/react-slider": "^1.6.1",
|
|
88
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
89
|
+
"@radix-ui/react-switch": "^1.4.1",
|
|
90
|
+
"@radix-ui/react-toggle": "^1.2.1",
|
|
91
|
+
"@radix-ui/react-toggle-group": "^1.2.1",
|
|
92
|
+
"@radix-ui/react-tooltip": "^1.4.1",
|
|
92
93
|
"@tailwindcss/vite": "^4.3.3",
|
|
93
|
-
"@tanstack/react-query": "^5.104.
|
|
94
|
-
"@tiptap/extension-mention": "^3.
|
|
95
|
-
"@tiptap/extension-placeholder": "^3.
|
|
96
|
-
"@tiptap/react": "^3.
|
|
97
|
-
"@tiptap/starter-kit": "^3.
|
|
94
|
+
"@tanstack/react-query": "^5.104.2",
|
|
95
|
+
"@tiptap/extension-mention": "^3.32.0",
|
|
96
|
+
"@tiptap/extension-placeholder": "^3.32.0",
|
|
97
|
+
"@tiptap/react": "^3.32.0",
|
|
98
|
+
"@tiptap/starter-kit": "^3.32.0",
|
|
98
99
|
"@types/dagre": "^0.7.54",
|
|
99
100
|
"@types/js-yaml": "^4.0.9",
|
|
100
|
-
"@types/lodash": "^4.17.
|
|
101
|
+
"@types/lodash": "^4.17.26",
|
|
101
102
|
"@types/ms": "^2.1.0",
|
|
102
103
|
"@types/node": "^20.19.43",
|
|
103
|
-
"@types/react": "^19.
|
|
104
|
-
"@types/react-dom": "^19.
|
|
104
|
+
"@types/react": "^19.3.0",
|
|
105
|
+
"@types/react-dom": "^19.3.0",
|
|
105
106
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
106
|
-
"@
|
|
107
|
-
"@uiw/codemirror
|
|
108
|
-
"@uiw/react-codemirror": "^4.25.11",
|
|
107
|
+
"@uiw/codemirror-themes-all": "^4.25.12",
|
|
108
|
+
"@uiw/react-codemirror": "^4.25.12",
|
|
109
109
|
"@vitejs/plugin-react": "^4.7.0",
|
|
110
|
-
"@xyflow/react": "^12.
|
|
111
|
-
"axios": "^1.
|
|
110
|
+
"@xyflow/react": "^12.12.0",
|
|
111
|
+
"axios": "^1.20.0",
|
|
112
112
|
"class-variance-authority": "^0.7.1",
|
|
113
113
|
"clsx": "^2.1.1",
|
|
114
114
|
"cmdk": "^1.1.1",
|
|
@@ -120,16 +120,16 @@
|
|
|
120
120
|
"eslint-plugin-check-file": "^3.3.2",
|
|
121
121
|
"eslint-plugin-import": "^2.32.0",
|
|
122
122
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
123
|
-
"eslint-plugin-prettier": "^5.5.
|
|
123
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
124
124
|
"eslint-plugin-react": "^7.37.5",
|
|
125
125
|
"eslint-plugin-react-func": "^0.1.18",
|
|
126
126
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
127
127
|
"flickr-justified-gallery": "^2.2.0",
|
|
128
128
|
"framer-motion": "^12.43.0",
|
|
129
129
|
"fuse.js": "^7.5.0",
|
|
130
|
-
"highlight.js": "^11.
|
|
130
|
+
"highlight.js": "^11.12.0",
|
|
131
131
|
"html-to-image": "1.11.11",
|
|
132
|
-
"js-yaml": "^4.3.
|
|
132
|
+
"js-yaml": "^4.3.2",
|
|
133
133
|
"jsonc-parser": "^3.3.1",
|
|
134
134
|
"katex": "^0.17.0",
|
|
135
135
|
"lightgallery": "^2.9.0",
|
|
@@ -137,40 +137,40 @@
|
|
|
137
137
|
"lucide-react": "^0.514.0",
|
|
138
138
|
"mermaid": "^11.17.2",
|
|
139
139
|
"ms": "^2.1.3",
|
|
140
|
-
"nuqs": "^2.
|
|
141
|
-
"prettier": "^3.9.
|
|
140
|
+
"nuqs": "^2.10.2",
|
|
141
|
+
"prettier": "^3.9.10",
|
|
142
142
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
143
143
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
144
144
|
"quill": "^2.0.3",
|
|
145
|
-
"react": "^19.
|
|
146
|
-
"react-colorful": "^5.8.
|
|
145
|
+
"react": "^19.3.0",
|
|
146
|
+
"react-colorful": "^5.8.1",
|
|
147
147
|
"react-day-picker": "^9.14.0",
|
|
148
|
-
"react-dom": "^19.
|
|
149
|
-
"react-hook-form": "^7.
|
|
148
|
+
"react-dom": "^19.3.0",
|
|
149
|
+
"react-hook-form": "^7.90.0",
|
|
150
150
|
"react-icons": "^5.7.0",
|
|
151
151
|
"react-markdown": "^10.1.0",
|
|
152
152
|
"react-photo-view": "^1.2.7",
|
|
153
|
-
"react-router-dom": "^7.18.
|
|
154
|
-
"react-syntax-highlighter": "^16.1.
|
|
153
|
+
"react-router-dom": "^7.18.4",
|
|
154
|
+
"react-syntax-highlighter": "^16.1.2",
|
|
155
155
|
"react-textarea-autosize": "^8.5.9",
|
|
156
156
|
"rehype-katex": "^7.0.1",
|
|
157
157
|
"rehype-raw": "^7.0.0",
|
|
158
158
|
"rehype-sanitize": "^6.0.0",
|
|
159
159
|
"remark-gfm": "^4.0.1",
|
|
160
160
|
"remark-math": "^6.0.0",
|
|
161
|
-
"sass": "^1.
|
|
162
|
-
"sonner": "^2.0.
|
|
163
|
-
"tailwind-merge": "^3.
|
|
161
|
+
"sass": "^1.105.1",
|
|
162
|
+
"sonner": "^2.0.8",
|
|
163
|
+
"tailwind-merge": "^3.7.0",
|
|
164
164
|
"tailwindcss": "^4.3.3",
|
|
165
|
-
"tsdown": "^0.22.
|
|
165
|
+
"tsdown": "^0.22.14",
|
|
166
166
|
"tw-animate-css": "^1.4.0",
|
|
167
167
|
"typescript": "^5.9.3",
|
|
168
|
-
"typescript-eslint": "^8.
|
|
168
|
+
"typescript-eslint": "^8.71.2",
|
|
169
169
|
"unrun": "^0.3.1",
|
|
170
170
|
"urlpattern-polyfill": "^10.1.0",
|
|
171
171
|
"usehooks-ts": "^3.1.1",
|
|
172
|
-
"vite": "^6.4.
|
|
172
|
+
"vite": "^6.4.4",
|
|
173
173
|
"vitest": "^4.1.11",
|
|
174
|
-
"zustand": "^5.0.
|
|
174
|
+
"zustand": "^5.0.15"
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@earendil-works+pi-ai@1.2.0_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_dcf109e705e96235bfb9a180457030de/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js
|
|
2
|
-
function combineAbortSignals(signals) {
|
|
3
|
-
const activeSignals = signals.filter((signal) => signal !== void 0);
|
|
4
|
-
if (activeSignals.length === 0) return { cleanup: () => {} };
|
|
5
|
-
if (activeSignals.length === 1) return {
|
|
6
|
-
signal: activeSignals[0],
|
|
7
|
-
cleanup: () => {}
|
|
8
|
-
};
|
|
9
|
-
const controller = new AbortController();
|
|
10
|
-
const listeners = [];
|
|
11
|
-
const abort = (signal) => {
|
|
12
|
-
if (!controller.signal.aborted) controller.abort(signal.reason);
|
|
13
|
-
};
|
|
14
|
-
for (const signal of activeSignals) {
|
|
15
|
-
if (signal.aborted) {
|
|
16
|
-
abort(signal);
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
const listener = () => abort(signal);
|
|
20
|
-
signal.addEventListener("abort", listener, { once: true });
|
|
21
|
-
listeners.push({
|
|
22
|
-
signal,
|
|
23
|
-
listener
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
signal: controller.signal,
|
|
28
|
-
cleanup: () => {
|
|
29
|
-
for (const { signal, listener } of listeners) signal.removeEventListener("abort", listener);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { combineAbortSignals as t };
|