@fudanda/admin-antd 0.0.0-stage → 2.20261024.1-beta.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/LICENSE +21 -0
- package/README.md +58 -3
- package/THIRD_PARTY_NOTICES.md +55 -0
- package/dist/assets/libarchive-DxGirPmi.wasm +0 -0
- package/dist/assets/pdfium-BJ2Yip8Q.wasm +0 -0
- package/dist/assets/ppt-font-cjk-DxgKpThH.otf +0 -0
- package/dist/assets/ppt-native-Cz5DBbag.wasm +0 -0
- package/dist/assets/pptx.worker-CtaL8LO_.js +30 -0
- package/dist/assets/worker-C5LZNsKY.mjs +1650 -0
- package/dist/assets/worker-CDeo9jS-.js +40 -0
- package/dist/assets/worker-bundle-Dx5mKZOL.js +6 -0
- package/dist/automation.d.ts +3 -0
- package/dist/automation.js +15 -0
- package/dist/chunks/App-DNjXLysb.js +79 -0
- package/dist/chunks/AppModal-DJzQA6FR.js +1 -0
- package/dist/chunks/ArcBaseAdmin-BZrHGq2f.js +1 -0
- package/dist/chunks/ConfigurableTable-DzmZDd8F.js +55 -0
- package/dist/chunks/DashboardPage-BohGodSl.js +22 -0
- package/dist/chunks/DataScopePanel-B2-x8Jcz.js +1 -0
- package/dist/chunks/DateTimeText-CIt0Qy45.js +1 -0
- package/dist/chunks/DepartmentsPage-DMWY__Y_.js +1 -0
- package/dist/chunks/DictTag-2-adKbYg.js +1 -0
- package/dist/chunks/DictsPage-DILDyHi-.js +15 -0
- package/dist/chunks/EditFormModal-DNHOZHxM.js +1 -0
- package/dist/chunks/EmptyIllustration-DUC3RZmF.js +1 -0
- package/dist/chunks/EntityContextRuntime-DMklAv-k.js +1 -0
- package/dist/chunks/EntityContextRuntime-sslBZqYD.js +1 -0
- package/dist/chunks/EntityRelationButton-DWn1rC2J.js +8 -0
- package/dist/chunks/ExportButton-AzH4D0oW.js +1 -0
- package/dist/chunks/FileNameCell-DPyi64Rv.js +1 -0
- package/dist/chunks/FileStorageConfigsPage-CzuOgeK0.js +15 -0
- package/dist/chunks/FileTypeIcon-DIih3XQG.js +1 -0
- package/dist/chunks/FileViewerPreviewPanel-CMqVtGCr.js +41 -0
- package/dist/chunks/FilesPage-BaEBCOCs.js +43 -0
- package/dist/chunks/IdentitySecurityPage-BO7nY8id.js +1 -0
- package/dist/chunks/JsonPreviewPanel-Dhbza-Uu.js +1 -0
- package/dist/chunks/LogStatsScaffold-CLycj3da.js +1 -0
- package/dist/chunks/LoginLogsPage-DTmHi8u0.js +1 -0
- package/dist/chunks/LoginLogsTable-DVmHnC6V.js +1 -0
- package/dist/chunks/MarkdownPreviewPanel-DoiaAeRv.js +51 -0
- package/dist/chunks/MasterDetailLayout-sjPWw8BI.js +8 -0
- package/dist/chunks/MemberAssignmentSheet-Czbt6_zv.js +1 -0
- package/dist/chunks/MenuCommandPalette-BCOzf-Kq.js +8 -0
- package/dist/chunks/MenusPage-DN8DTGB1.js +1 -0
- package/dist/chunks/ModalFooter-RMlvqrO9.js +1 -0
- package/dist/chunks/MonacoPreviewPanel-Dnz7xpWP.js +1 -0
- package/dist/chunks/NavListPanel-vjIOIqK0.js +1 -0
- package/dist/chunks/OnlineSessionsPage-FoHYZKlR.js +1 -0
- package/dist/chunks/OperationLogsPage-BeRnGcBJ.js +1 -0
- package/dist/chunks/OperationLogsTable-COI-Lp-y.js +1 -0
- package/dist/chunks/PDFPreviewPanel-BIQuBnZZ.js +37 -0
- package/dist/chunks/PasswordInput-DGEJO9yx.js +1 -0
- package/dist/chunks/PositionsPage-DohI0luX.js +1 -0
- package/dist/chunks/PreferencesSheetBody-B9niQABW.js +43 -0
- package/dist/chunks/ProfilePage-CVTRv7xb.js +15 -0
- package/dist/chunks/RelationPanel-B1X6AVaM.js +36 -0
- package/dist/chunks/ResponsiveTableActions-y54aSdhs.js +1 -0
- package/dist/chunks/RolesPage-CtUw93L8.js +1 -0
- package/dist/chunks/ScrollArea-DqjJmHDN.js +11 -0
- package/dist/chunks/SearchToolbar-CvgYKUjr.js +1 -0
- package/dist/chunks/SessionClientTag-DIwnYodW.js +22 -0
- package/dist/chunks/SessionConflictModal-BLNuDsN_.js +1 -0
- package/dist/chunks/SettingRow-DVNmTJWC.js +1 -0
- package/dist/chunks/SettingsPage-BRnCxYQm.js +26 -0
- package/dist/chunks/StatCard-Czjfs0fa.js +4 -0
- package/dist/chunks/UTIF-QUtClmQd.js +1 -0
- package/dist/chunks/UserAvatar-B8CFnTCn.js +1 -0
- package/dist/chunks/UserDisplay-J0Re8z-7.js +1 -0
- package/dist/chunks/UserGroupsPage-CNwbejx-.js +1 -0
- package/dist/chunks/UserLogsPanels-BHeSxWrk.js +36 -0
- package/dist/chunks/UserTransferSelect-CAeyxdor.js +22 -0
- package/dist/chunks/UsersPage-BXt9fOru.js +36 -0
- package/dist/chunks/abnfDiagram-VCTEODGH-Z6OhNjoW.js +1 -0
- package/dist/chunks/activity-DBu4axwF.js +8 -0
- package/dist/chunks/arc-B3K1fDeF.js +1 -0
- package/dist/chunks/architecture-7GRP2DOG-CMtoOwin.js +1 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7-V5A7S5fY.js +36 -0
- package/dist/chunks/archive-B_IKvysI.js +72 -0
- package/dist/chunks/array-BrHhzP_A.js +1 -0
- package/dist/chunks/arrow-left-CsxBMzKY.js +8 -0
- package/dist/chunks/avsc-C0VoJRmm.js +160 -0
- package/dist/chunks/blockDiagram-I7D4REHJ-CFKGJkc_.js +129 -0
- package/dist/chunks/browser-BKLM0ThC-mnGPrtB_.js +1 -0
- package/dist/chunks/browser-index-JqxD-45S.js +1 -0
- package/dist/chunks/builtin_esm-external-require-react-BsBndGeN.js +1 -0
- package/dist/chunks/bundle-DbfUnEV1.js +29 -0
- package/dist/chunks/c4Diagram-7LVT6UL2-BqYYoXPe.js +38 -0
- package/dist/chunks/channel-C9Dr7Z-W.js +1 -0
- package/dist/chunks/chart-data-DImT_Mzn.js +5 -0
- package/dist/chunks/chart-renderer-k-Rd8vdL.js +7 -0
- package/dist/chunks/chevron-down-mn2tSKQd.js +8 -0
- package/dist/chunks/chevron-right-EBApfX6q.js +15 -0
- package/dist/chunks/chevrons-up-down-2M6hY6wt.js +15 -0
- package/dist/chunks/chunk-2E4U76K2-DNbbdpCx.js +1 -0
- package/dist/chunks/chunk-2Q5K7J3B-CmAE3Vs0.js +1 -0
- package/dist/chunks/chunk-2ZTRR5NV-BjsSRgBv.js +2 -0
- package/dist/chunks/chunk-3Z5EZCMW-uYiqz-6y.js +1 -0
- package/dist/chunks/chunk-4HAMMTFA-Aw59LwS3.js +62 -0
- package/dist/chunks/chunk-5V3GS4D5-B_CVcJic.js +1 -0
- package/dist/chunks/chunk-5VM5RSS4-DMlsEAcl.js +15 -0
- package/dist/chunks/chunk-6AZGARVD-CgAiC5mV.js +1 -0
- package/dist/chunks/chunk-6EIED4P4-CXz5D9B0.js +1 -0
- package/dist/chunks/chunk-6K3QC6MW-DtaQ52mY.js +1 -0
- package/dist/chunks/chunk-6TQVIW2G-D0YDxefI.js +1 -0
- package/dist/chunks/chunk-747NJXEK-DGoElbDa.js +2 -0
- package/dist/chunks/chunk-75Z2AOVW-IO9R6faP.js +2 -0
- package/dist/chunks/chunk-CLGD4ZFX-tRS89bnq.js +1 -0
- package/dist/chunks/chunk-DU6HZSFF-Bx48E1rg.js +125 -0
- package/dist/chunks/chunk-F27PBJKO-DtLva7y0.js +1 -0
- package/dist/chunks/chunk-FOHPRMQF-B8MMrnxV.js +255 -0
- package/dist/chunks/chunk-GMAD6QVW-D41KnniX.js +72 -0
- package/dist/chunks/chunk-GVQU2GXP-CVzgM_ui.js +1 -0
- package/dist/chunks/chunk-I5DQTOEV-CoecQT42.js +1 -0
- package/dist/chunks/chunk-ICYGCRZG-lH3opfCY.js +1 -0
- package/dist/chunks/chunk-IH6LHLGP-tD-j3Rsy.js +1 -0
- package/dist/chunks/chunk-IMKFNOWR-CL9pLQhV.js +231 -0
- package/dist/chunks/chunk-JWPE2WC7-Wk0BVLn5.js +1 -0
- package/dist/chunks/chunk-KI3K4JFJ-C-3Y_9er.js +1 -0
- package/dist/chunks/chunk-L3NEJ4N5-CmvrS7Dt.js +1 -0
- package/dist/chunks/chunk-LNGE3PJU-BP1fsJRz.js +34 -0
- package/dist/chunks/chunk-OSK3NFVY-C9uWOXTC.js +10 -0
- package/dist/chunks/chunk-OUJLGHUK-Cm55l9bx.js +2 -0
- package/dist/chunks/chunk-P2QGCYS3-C9bc1yiM.js +1 -0
- package/dist/chunks/chunk-POPQ4Y6H-P1s5xaxM.js +1 -0
- package/dist/chunks/chunk-PWAF6VOD-IORmPx9D.js +1 -0
- package/dist/chunks/chunk-SHT3W25Y-Bip4melZ.js +168 -0
- package/dist/chunks/chunk-SVP7TREG-BKCgUOuy.js +88 -0
- package/dist/chunks/chunk-TICWLB2K-12W2EmSx.js +206 -0
- package/dist/chunks/chunk-TLUHSLCS-DsqF476v.js +1 -0
- package/dist/chunks/chunk-UY3FDG6J-71d_M6t3.js +1 -0
- package/dist/chunks/chunk-XHIXRSVI-C2X1-xC6.js +1 -0
- package/dist/chunks/chunk-XXDRQBXY-Bl6AoSZF.js +1 -0
- package/dist/chunks/chunk-Y2CYZVJY-DjEHBC-3.js +1 -0
- package/dist/chunks/circle-check-RKAno__V.js +8 -0
- package/dist/chunks/circle-x-BB5x-D-8.js +8 -0
- package/dist/chunks/classDiagram-ZZMXUADV-CZrpYcfK.js +1 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY-CZrpYcfK.js +1 -0
- package/dist/chunks/clipboard-ERcMSMRH.js +1 -0
- package/dist/chunks/clock-CniP1gZS.js +8 -0
- package/dist/chunks/confirm-BtBBEqk8.js +1 -0
- package/dist/chunks/controls-C5dPckUT.js +1 -0
- package/dist/chunks/copy-ofLPH1I0.js +8 -0
- package/dist/chunks/cose-bilkent-JH36ORCC-D9OUqkk5.js +1 -0
- package/dist/chunks/createLucideIcon-BtwfYE6A.js +83 -0
- package/dist/chunks/cynefin-OW5HDTMX-B8_kUynj.js +1 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ-DhQChnCg.js +62 -0
- package/dist/chunks/cytoscape.esm-wDUnleWx.js +339 -0
- package/dist/chunks/dagre-GXQ25YYZ-CfbwC_a5.js +4 -0
- package/dist/chunks/dagre-ZVAWSfFw.js +1 -0
- package/dist/chunks/data-B05HzECj.js +28 -0
- package/dist/chunks/date-picker-CPUxgHVv.js +1 -0
- package/dist/chunks/defaultLocale-BvxIcb9Y.js +1 -0
- package/dist/chunks/deleteAction-CCocr5uV.js +1 -0
- package/dist/chunks/diagram-D9cwc7QH.js +5 -0
- package/dist/chunks/diagram-S7CK7UJ4-DVPbdtMm.js +30 -0
- package/dist/chunks/diagram-UQ7AKVKN-D_ZBhGLL.js +41 -0
- package/dist/chunks/diagram-VSXAHHWV-Dqypp-OX.js +3 -0
- package/dist/chunks/diagram-VX7I27RA-CbWJVJ_L.js +24 -0
- package/dist/chunks/diagram-Z3DM3KII-CUyP4-RY.js +24 -0
- package/dist/chunks/direct-engine-thps0u7R.js +5 -0
- package/dist/chunks/dist-Bauqz5on.js +1 -0
- package/dist/chunks/dist-CWj_XYki.js +1 -0
- package/dist/chunks/dist-D_KGQS7-.js +11 -0
- package/dist/chunks/dist-DdW4yNBK.js +1 -0
- package/dist/chunks/docx-preview-CPN81HCr.js +11 -0
- package/dist/chunks/download--5IybXxz.js +8 -0
- package/dist/chunks/drawing-D2Qrun-P.js +48 -0
- package/dist/chunks/ebnfDiagram-PWID7BFC-C5NMigjm.js +1 -0
- package/dist/chunks/ellipsis-Dux1Nxa5.js +8 -0
- package/dist/chunks/email-ByshRsFv.js +61 -0
- package/dist/chunks/emailHtml-BAKcRhSm.js +1 -0
- package/dist/chunks/erDiagram-RLTQ6QDP-B5rUHJPJ.js +99 -0
- package/dist/chunks/eventmodeling-NTZA5JFV-C74no5BH.js +1 -0
- package/dist/chunks/export-BkwewH6Q.js +1 -0
- package/dist/chunks/export-DlTz5dc2.js +341 -0
- package/dist/chunks/eye-off-BtJoIT5n.js +8 -0
- package/dist/chunks/feedback-BnjMKZpz.js +1 -0
- package/dist/chunks/file-utils-DyvnVEoH.js +1 -0
- package/dist/chunks/fit-CsnhEncA.js +1 -0
- package/dist/chunks/flowDiagram-HODETNUW-BuMvaSeo.js +1 -0
- package/dist/chunks/form-CQutQFiD.js +1 -0
- package/dist/chunks/funnel-BwQjQI4Y.js +8 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY-DIAlbvVg.js +292 -0
- package/dist/chunks/geo-DR0fL7r2.js +38 -0
- package/dist/chunks/gitGraph-4MIJSDKK-Ce5mOfp1.js +1 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX-DN3G9xiQ.js +106 -0
- package/dist/chunks/graphlib-CYBMTUbW.js +1 -0
- package/dist/chunks/icons-CbRx5Om7.js +1 -0
- package/dist/chunks/illustrations-DT1eq6jI.js +1 -0
- package/dist/chunks/image-ez9hvzKT.js +17 -0
- package/dist/chunks/index.es-OAWlVkoK.js +16 -0
- package/dist/chunks/info-A6RAGUB7-BP6lMBIR.js +1 -0
- package/dist/chunks/info-BQa8C31Y.js +8 -0
- package/dist/chunks/infoDiagram-27XIBGKW-BhQtr_Ti.js +2 -0
- package/dist/chunks/init-Ca_Ibf4y.js +1 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U-CLR6CAi4.js +70 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE-_-Q7sjsP.js +139 -0
- package/dist/chunks/json-viewer-DHYRjY8I.js +1 -0
- package/dist/chunks/jszip.min-hNOoGCeG.js +14 -0
- package/dist/chunks/kanban-definition-UXKFOSKX-D97mHeUZ.js +89 -0
- package/dist/chunks/katex-D5qu7EYh.js +257 -0
- package/dist/chunks/layout-grid-Bp9bwiQZ.js +8 -0
- package/dist/chunks/lib-BlRm3nk1.js +15 -0
- package/dist/chunks/lib-C1nFUu19.js +4 -0
- package/dist/chunks/lib-CqYXBtHb.js +1 -0
- package/dist/chunks/libarchive-DRzzJvQl.js +7 -0
- package/dist/chunks/line-BV7qVRkM.js +1 -0
- package/dist/chunks/line-qVHaOdPp.js +1 -0
- package/dist/chunks/linear-DXABSWHW.js +1 -0
- package/dist/chunks/list-0CbyOlT9.js +1 -0
- package/dist/chunks/list-DCcWnjUg.js +8 -0
- package/dist/chunks/listTableProps-DDynsnLF.js +1 -0
- package/dist/chunks/log-in-OzbNes8i.js +8 -0
- package/dist/chunks/lucide-react-VfAPsQQ5.js +8 -0
- package/dist/chunks/maplibre-gl-Bxi83GUP.js +819 -0
- package/dist/chunks/maplibre-shared-Oo0L8Lll.js +6 -0
- package/dist/chunks/maximize-CnmQ11E7.js +8 -0
- package/dist/chunks/media-DoGe_p4O.js +1 -0
- package/dist/chunks/menu-mQgsexFx.js +15 -0
- package/dist/chunks/mermaid-parser.core-DvCAQkzY.js +3 -0
- package/dist/chunks/mermaid.core-CxOC6yPr.js +15 -0
- package/dist/chunks/messages-CFyOVxEM.js +1 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX-A2UgnMwx.js +96 -0
- package/dist/chunks/minimize-Bpau_zCe.js +8 -0
- package/dist/chunks/msg-BzZbudMm.js +7 -0
- package/dist/chunks/ofd-C7DKqJ6Z.js +33 -0
- package/dist/chunks/ofd-DrJyXIpS.js +14 -0
- package/dist/chunks/openDocument-DGzqlyJg.js +12 -0
- package/dist/chunks/options-B65xkxOY.js +1 -0
- package/dist/chunks/ordinal-NuFkISw7.js +1 -0
- package/dist/chunks/packet-AYTQ26CC-DS6h3a5l.js +1 -0
- package/dist/chunks/panzoom.es-DnuzxUQi.js +1 -0
- package/dist/chunks/parse-6ZQGx714.js +1 -0
- package/dist/chunks/parser-DC3PvpL4.js +72 -0
- package/dist/chunks/path-VUNELGFR.js +1 -0
- package/dist/chunks/pegDiagram-XKGWAZYB-DxQqpKfh.js +1 -0
- package/dist/chunks/pie-WAS4IAKB-BsaegmNA.js +1 -0
- package/dist/chunks/pieDiagram-E7YTZNPT-BUsnkTkJ.js +39 -0
- package/dist/chunks/postal-mime-DMcA5b7k.js +28 -0
- package/dist/chunks/ppt-B0WY5Gks.js +30 -0
- package/dist/chunks/ppt-BIiNnCyj.js +1 -0
- package/dist/chunks/pptx-DX5KDFZ7.js +109 -0
- package/dist/chunks/preload-helper-C-73SErw.js +1 -0
- package/dist/chunks/print-mask-Dguzv0rv.js +17 -0
- package/dist/chunks/printLayout-oeudvFkr.js +34 -0
- package/dist/chunks/printMask-LefOTJqk.js +8 -0
- package/dist/chunks/psd-hjeNFQZ-.js +36 -0
- package/dist/chunks/purify.es-BsWMI_aG.js +5 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC-BmQNSzhY.js +7 -0
- package/dist/chunks/radar-RG4KPBEZ-BoHdw2h7.js +1 -0
- package/dist/chunks/railroad-74A4TZTK-BifJffb4.js +1 -0
- package/dist/chunks/railroad-abnf-HS5TGJTU-CMEPumRO.js +1 -0
- package/dist/chunks/railroad-ebnf-LZEXJU2U-B06BgAeN.js +1 -0
- package/dist/chunks/railroad-peg-WCYAUIDC-CMjriUEs.js +1 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU-B2t5KY26.js +1 -0
- package/dist/chunks/react-runtime-x2lFbSKq.js +11 -0
- package/dist/chunks/refresh-cw-Dz8O9-Hp.js +8 -0
- package/dist/chunks/rendered-slot-YhfmcMJr.js +1 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE-CBBfNOAp.js +84 -0
- package/dist/chunks/rolldown-runtime-BKuNeK48.js +1 -0
- package/dist/chunks/rotate-ccw-D2__Zisi.js +8 -0
- package/dist/chunks/rotate-cw-BSTVLlWY.js +8 -0
- package/dist/chunks/rough.esm-CVrpq1dW.js +1 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB-Cp8SrFyb.js +40 -0
- package/dist/chunks/save-w-NwiMMY.js +8 -0
- package/dist/chunks/search-DYZU68h1.js +8 -0
- package/dist/chunks/search-filters-CRIhZ0gL.js +1 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4-PDtVfEoj.js +162 -0
- package/dist/chunks/shield-alert-De_Hx56I.js +8 -0
- package/dist/chunks/sizeCapture-INFHLROL-DA-kAaXB.js +1 -0
- package/dist/chunks/skeleton-CrjMjJNr.js +1 -0
- package/dist/chunks/spreadsheet-BzbBEhmY.js +1 -0
- package/dist/chunks/spreadsheet-LR3SOG-x.js +58 -0
- package/dist/chunks/sql-wasm-browser-CFddXd9f.js +2 -0
- package/dist/chunks/src-C1iDJpBK.js +1 -0
- package/dist/chunks/src-vLpLkuQx.js +1 -0
- package/dist/chunks/stateDiagram-D77RDMKH-C1Sx8KUD.js +1 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH-7wYLSzBX.js +1 -0
- package/dist/chunks/swimlanes-42K2YHIH-BmybX9eL.js +1 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N-DxhXklfm.js +8 -0
- package/dist/chunks/tabs-BobA_IcO.js +1 -0
- package/dist/chunks/theme-controller-D-ATwFal.js +1 -0
- package/dist/chunks/timeline-definition-24CTP7MA-QS9QNm2i.js +120 -0
- package/dist/chunks/tinycolor-CG1wnM-U.js +1 -0
- package/dist/chunks/togeojson.es-BE8iM7U6.js +1 -0
- package/dist/chunks/toolbar-controls-CThS0xuP.js +15 -0
- package/dist/chunks/trash-tHBT8Mpw.js +8 -0
- package/dist/chunks/treeView-Q6P3EWNA-CN0l7whJ.js +1 -0
- package/dist/chunks/treemap-WGGIJYW6-C4P1fQxS.js +1 -0
- package/dist/chunks/typography-DKK_iHcj.js +1 -0
- package/dist/chunks/ui-BFsHoY7a.js +1 -0
- package/dist/chunks/ui-utils-ClxYogUQ.js +1 -0
- package/dist/chunks/upload-M-n6woFv.js +8 -0
- package/dist/chunks/useCrudOperationColumn-D935tixd.js +1 -0
- package/dist/chunks/useListPage-CbcOQG4m.js +1 -0
- package/dist/chunks/useModalViewport-HF7te75S.js +1 -0
- package/dist/chunks/useRowSelection-4GOMFmjG.js +1 -0
- package/dist/chunks/useStatusToggle-B2qZaoc-.js +1 -0
- package/dist/chunks/user-round-kYfBkPNu.js +15 -0
- package/dist/chunks/users-BXZLb4TY.js +8 -0
- package/dist/chunks/vennDiagram-4TSXK5OY-CVd73ycc.js +34 -0
- package/dist/chunks/view-B8ZvC8z3.js +1 -0
- package/dist/chunks/viewer-Ct88ypIL.js +24 -0
- package/dist/chunks/wardley-WFR3VGLG-cG9pRFwD.js +1 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4-B42d0Gqz.js +78 -0
- package/dist/chunks/wordDoc-BZY3ZnxN.js +152 -0
- package/dist/chunks/wordDocx-Bt2mlB3C.js +77 -0
- package/dist/chunks/wordMl-Y_ghyTZ8.js +1 -0
- package/dist/chunks/worker-engine-B4e92GsN.js +17369 -0
- package/dist/chunks/x-Ak9hw1R9.js +8 -0
- package/dist/chunks/xmind-CF9YwkOD.js +58 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z-B_Owv9Ho.js +7 -0
- package/dist/file-viewer/flyfish-viewer-assets.json +46 -0
- package/dist/file-viewer/vendor/docx/docx.worker.js +5 -0
- package/dist/file-viewer/vendor/docx/jszip.min.js +13 -0
- package/dist/file-viewer/vendor/xlsx/sheet.worker.js +107 -0
- package/dist/file-viewer/wasm/data/sql-wasm.wasm +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/public/avatars/avatar-01.svg +1 -0
- package/dist/public/avatars/avatar-02.svg +1 -0
- package/dist/public/avatars/avatar-03.svg +1 -0
- package/dist/public/avatars/avatar-04.svg +1 -0
- package/dist/public/avatars/avatar-05.svg +1 -0
- package/dist/public/avatars/avatar-06.svg +1 -0
- package/dist/public/avatars/avatar-07.svg +1 -0
- package/dist/public/avatars/avatar-08.svg +1 -0
- package/dist/public/avatars/avatar-09.svg +1 -0
- package/dist/public/avatars/avatar-10.svg +1 -0
- package/dist/public/avatars/avatar-11.svg +1 -0
- package/dist/public/avatars/avatar-12.svg +1 -0
- package/dist/public/monaco/vs/abap-D-t0cyap.js +1 -0
- package/dist/public/monaco/vs/apex-CcIm7xu6.js +1 -0
- package/dist/public/monaco/vs/assets/css.worker-URu8fCFR.js +97 -0
- package/dist/public/monaco/vs/assets/editor.worker-lj3bdIIn.js +30 -0
- package/dist/public/monaco/vs/assets/editorWebWorkerMain-CA_vMoUU.js +30 -0
- package/dist/public/monaco/vs/assets/html.worker-D1SL3iM8.js +474 -0
- package/dist/public/monaco/vs/assets/json.worker-CoJx_OPf.js +62 -0
- package/dist/public/monaco/vs/assets/ts.worker-BWKtMYOk.js +67722 -0
- package/dist/public/monaco/vs/azcli-BA0tQDCg.js +1 -0
- package/dist/public/monaco/vs/basic-languages/monaco.contribution.js +1 -0
- package/dist/public/monaco/vs/bat-C397hTD6.js +1 -0
- package/dist/public/monaco/vs/bicep-DF5aW17k.js +2 -0
- package/dist/public/monaco/vs/cameligo-plsz8qhj.js +1 -0
- package/dist/public/monaco/vs/clojure-Y2auQMzK.js +1 -0
- package/dist/public/monaco/vs/coffee-Bu45yuWE.js +1 -0
- package/dist/public/monaco/vs/cpp-CkKPQIni.js +1 -0
- package/dist/public/monaco/vs/csharp-CX28MZyh.js +1 -0
- package/dist/public/monaco/vs/csp-D8uWnyxW.js +1 -0
- package/dist/public/monaco/vs/css-CaeNmE3S.js +3 -0
- package/dist/public/monaco/vs/css.worker-CyhWkhHo.js +1 -0
- package/dist/public/monaco/vs/cssMode-CV6Ay48H.js +1 -0
- package/dist/public/monaco/vs/cypher-DVThT8BS.js +1 -0
- package/dist/public/monaco/vs/dart-CmGfCvrO.js +1 -0
- package/dist/public/monaco/vs/dockerfile-CZqqYdch.js +1 -0
- package/dist/public/monaco/vs/ecl-30fUercY.js +1 -0
- package/dist/public/monaco/vs/editor/editor.main.css +1 -0
- package/dist/public/monaco/vs/editor/editor.main.js +1 -0
- package/dist/public/monaco/vs/editor-KLE6jdfb.js +831 -0
- package/dist/public/monaco/vs/editor.js +1 -0
- package/dist/public/monaco/vs/editorWorkerHost-fVE1cjcC.js +35 -0
- package/dist/public/monaco/vs/elixir-xjPaIfzF.js +1 -0
- package/dist/public/monaco/vs/flow9-DqtmStfK.js +1 -0
- package/dist/public/monaco/vs/freemarker2-FWreY7v7.js +3 -0
- package/dist/public/monaco/vs/fsharp-BOMdg4U1.js +1 -0
- package/dist/public/monaco/vs/go-D_hbi-Jt.js +1 -0
- package/dist/public/monaco/vs/graphql-CKUU4kLG.js +1 -0
- package/dist/public/monaco/vs/handlebars-CZi4pHCH.js +1 -0
- package/dist/public/monaco/vs/hcl-DTaboeZW.js +1 -0
- package/dist/public/monaco/vs/html-j_7ZTNRU.js +1 -0
- package/dist/public/monaco/vs/html.worker-CA3iAimZ.js +1 -0
- package/dist/public/monaco/vs/htmlMode-27by_KM4.js +1 -0
- package/dist/public/monaco/vs/index-049xrXrp.js +1 -0
- package/dist/public/monaco/vs/index-CBVt3dzv.js +5 -0
- package/dist/public/monaco/vs/index.js +1 -0
- package/dist/public/monaco/vs/ini-CsNwO04R.js +1 -0
- package/dist/public/monaco/vs/initialize-DL0l1TGY.js +1 -0
- package/dist/public/monaco/vs/java-CI4ZMsH9.js +1 -0
- package/dist/public/monaco/vs/javascript-DTJl4Jn1.js +1 -0
- package/dist/public/monaco/vs/json.worker-BizpAl9O.js +1 -0
- package/dist/public/monaco/vs/jsonMode-DLUiMUrI.js +1 -0
- package/dist/public/monaco/vs/julia-BwzEvaQw.js +1 -0
- package/dist/public/monaco/vs/kotlin-IUYPiTV8.js +1 -0
- package/dist/public/monaco/vs/language/css/monaco.contribution.js +1 -0
- package/dist/public/monaco/vs/language/html/monaco.contribution.js +1 -0
- package/dist/public/monaco/vs/language/json/monaco.contribution.js +1 -0
- package/dist/public/monaco/vs/language/typescript/monaco.contribution.js +1 -0
- package/dist/public/monaco/vs/less-C0eDYdqa.js +2 -0
- package/dist/public/monaco/vs/lexon-iON-Kj97.js +1 -0
- package/dist/public/monaco/vs/liquid-CLJYelW6.js +1 -0
- package/dist/public/monaco/vs/loader.js +1368 -0
- package/dist/public/monaco/vs/lspLanguageFeatures-BIkJOWLw.js +2 -0
- package/dist/public/monaco/vs/lua-DtygF91M.js +1 -0
- package/dist/public/monaco/vs/m3-CsR4AuFi.js +1 -0
- package/dist/public/monaco/vs/main-BEx-Fmlo.js +15 -0
- package/dist/public/monaco/vs/main-DsK8pnKg.js +3 -0
- package/dist/public/monaco/vs/markdown-C_rD0bIw.js +1 -0
- package/dist/public/monaco/vs/mdx-CpzZIPHF.js +1 -0
- package/dist/public/monaco/vs/mips-CiYP61RB.js +1 -0
- package/dist/public/monaco/vs/monaco.contribution-9cKT3C7t.js +1 -0
- package/dist/public/monaco/vs/monaco.contribution-BE88ZNGY.js +1 -0
- package/dist/public/monaco/vs/monaco.contribution-BPhsneLd.js +1 -0
- package/dist/public/monaco/vs/monaco.contribution-BgRy6xDf.js +1 -0
- package/dist/public/monaco/vs/msdax-C38-sJlp.js +1 -0
- package/dist/public/monaco/vs/mysql-CdtbpvbG.js +1 -0
- package/dist/public/monaco/vs/nls/lang/cs.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/cs.js +9 -0
- package/dist/public/monaco/vs/nls/lang/de.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/de.js +9 -0
- package/dist/public/monaco/vs/nls/lang/es.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/es.js +9 -0
- package/dist/public/monaco/vs/nls/lang/fr.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/fr.js +9 -0
- package/dist/public/monaco/vs/nls/lang/it.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/it.js +9 -0
- package/dist/public/monaco/vs/nls/lang/ja.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/ja.js +9 -0
- package/dist/public/monaco/vs/nls/lang/ko.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/ko.js +9 -0
- package/dist/public/monaco/vs/nls/lang/pl.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/pl.js +9 -0
- package/dist/public/monaco/vs/nls/lang/pt-br.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/pt-br.js +9 -0
- package/dist/public/monaco/vs/nls/lang/ru.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/ru.js +9 -0
- package/dist/public/monaco/vs/nls/lang/tr.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/tr.js +9 -0
- package/dist/public/monaco/vs/nls/lang/zh-cn.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/zh-cn.js +9 -0
- package/dist/public/monaco/vs/nls/lang/zh-tw.d.ts +1 -0
- package/dist/public/monaco/vs/nls/lang/zh-tw.js +9 -0
- package/dist/public/monaco/vs/nls.messages-loader.js +1 -0
- package/dist/public/monaco/vs/objective-c-CntZFaHX.js +1 -0
- package/dist/public/monaco/vs/pascal-r6kuqfl_.js +1 -0
- package/dist/public/monaco/vs/pascaligo-BiXoTmXh.js +1 -0
- package/dist/public/monaco/vs/perl-DABw_TcH.js +1 -0
- package/dist/public/monaco/vs/pgsql-me_jFXeX.js +1 -0
- package/dist/public/monaco/vs/php-D_kh-9LK.js +1 -0
- package/dist/public/monaco/vs/pla-VfZjczW0.js +1 -0
- package/dist/public/monaco/vs/postiats-BBSzz8Pk.js +1 -0
- package/dist/public/monaco/vs/powerquery-Dt-g_2cc.js +1 -0
- package/dist/public/monaco/vs/powershell-B-7ap1zc.js +1 -0
- package/dist/public/monaco/vs/protobuf-BmtuEB1A.js +2 -0
- package/dist/public/monaco/vs/pug-BRpRNeEb.js +1 -0
- package/dist/public/monaco/vs/python-CqWUUgfu.js +1 -0
- package/dist/public/monaco/vs/qsharp-BzsFaUU9.js +1 -0
- package/dist/public/monaco/vs/r-f8dDdrp4.js +1 -0
- package/dist/public/monaco/vs/razor-hok5y9Km.js +1 -0
- package/dist/public/monaco/vs/redis-fvZQY4PI.js +1 -0
- package/dist/public/monaco/vs/redshift-45Et0LQi.js +1 -0
- package/dist/public/monaco/vs/restructuredtext-C7UUFKFD.js +1 -0
- package/dist/public/monaco/vs/ruby-CZO8zYTz.js +1 -0
- package/dist/public/monaco/vs/rust-Bfetafyc.js +1 -0
- package/dist/public/monaco/vs/sb-3GYllVck.js +1 -0
- package/dist/public/monaco/vs/scala-foMgrKo1.js +1 -0
- package/dist/public/monaco/vs/scheme-CHdMtr7p.js +1 -0
- package/dist/public/monaco/vs/scss-C1cmLt9V.js +3 -0
- package/dist/public/monaco/vs/shell-ClXCKCEW.js +1 -0
- package/dist/public/monaco/vs/solidity-MZ6ExpPy.js +1 -0
- package/dist/public/monaco/vs/sophia-DWkuSsPQ.js +1 -0
- package/dist/public/monaco/vs/sparql-AUGFYSyk.js +1 -0
- package/dist/public/monaco/vs/sql-32GpJSV2.js +1 -0
- package/dist/public/monaco/vs/st-CuDFIVZ_.js +1 -0
- package/dist/public/monaco/vs/swift-t-PfMj7W.js +1 -0
- package/dist/public/monaco/vs/systemverilog-Ch4vA8Yt.js +1 -0
- package/dist/public/monaco/vs/tcl-D74tq1nH.js +1 -0
- package/dist/public/monaco/vs/toggleHighContrast-qGX7E9o7.js +61 -0
- package/dist/public/monaco/vs/ts.worker-2QLmBukE.js +1 -0
- package/dist/public/monaco/vs/tsMode-B0S_kp2q.js +11 -0
- package/dist/public/monaco/vs/twig-C6taOxMV.js +1 -0
- package/dist/public/monaco/vs/typescript-_2t_511t.js +1 -0
- package/dist/public/monaco/vs/typespec-8OfoLt6R.js +1 -0
- package/dist/public/monaco/vs/vb-Dyb2648j.js +1 -0
- package/dist/public/monaco/vs/wgsl-BhLXMOR0.js +298 -0
- package/dist/public/monaco/vs/workers-BBttULjf.js +1 -0
- package/dist/public/monaco/vs/xml-cZjNDqDT.js +1 -0
- package/dist/public/monaco/vs/yaml-A1fOIdH6.js +1 -0
- package/dist/src-LbWcrSWe.js +3 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +113 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{w as t}from"./chunk-FOHPRMQF-B8MMrnxV.js";import{n,r}from"./chunk-KI3K4JFJ-C-3Y_9er.js";function i(){return(i=e((()=>{r(),t()})))()}i();export{n as createGitGraphServices};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,r as n}from"./chunk-Y2CYZVJY-DjEHBC-3.js";import{C as r,S as i,t as a,w as o}from"./src-C1iDJpBK.js";import{U as s,W as c,X as l,a as u,b as d,f,j as p,q as m,s as h,v as g,w as _,x as v,y}from"./chunk-DU6HZSFF-Bx48E1rg.js";import{_ as b,d as x,h as ee,i as te}from"./chunk-75Z2AOVW-IO9R6faP.js";import{n as ne,t as re}from"./chunk-JWPE2WC7-Wk0BVLn5.js";import{n as ie,r as ae}from"./mermaid-parser.core-DvCAQkzY.js";import{n as oe,t as se}from"./chunk-2Q5K7J3B-CmAE3Vs0.js";function S(){return ee({length:7})}function ce(e,t){let n=/* @__PURE__ */ Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}function C(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}function w(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in D.records.branches)D.records.branches.get(e)===t.id&&r.push(e);if(o.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=D.records.commits.get(t.parents[0]);C(e,t,n),t.parents[1]&&e.push(D.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=D.records.commits.get(t.parents[0]);C(e,t,n)}e=ce(e,e=>e.id),w(e)}var T,le,E,D,ue,de,fe,pe,me,he,ge,O,_e,ve,ye,be,xe,k,A,Se,Ce,we,Te,Ee,De,Oe,ke,j,M,N,P,F,I,L,R,Ae,z,B,V,H,U,W,G,K,je,q,J,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,Y,We,X,Ge,Ke,qe,Je,Ye,Z,Q,Xe,Ze,$,Qe,$e,et,tt,nt;function rt(){return(rt=e((()=>{oe(),re(),x(),p(),r(),n(),ie(),a(),T={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},le=f.gitGraph,E=/* @__PURE__ */ t(()=>te({...le,...d().gitGraph}),`getConfig`),D=new se(()=>{let e=E(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:/* @__PURE__ */ new Map,head:null,branchConfig:/* @__PURE__ */ new Map([[t,{name:t,order:n}]]),branches:/* @__PURE__ */ new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}}),t(S,`getID`),t(ce,`uniqBy`),ue=/* @__PURE__ */ t(function(e){D.records.direction=e},`setDirection`),de=/* @__PURE__ */ t(function(e){o.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{D.records.options=JSON.parse(e)}catch(e){o.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),fe=/* @__PURE__ */ t(function(){return D.records.options},`getOptions`),pe=/* @__PURE__ */ t(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;o.info(`commit`,t,n,r,i),o.debug(`Entering commit:`,t,n,r,i);let a=E();n=h.sanitizeText(n,a),t=h.sanitizeText(t,a),i=i?.map(e=>h.sanitizeText(e,a));let s={id:n||D.records.seq+`-`+S(),message:t,seq:D.records.seq++,type:r??T.NORMAL,tags:i??[],parents:D.records.head==null?[]:[D.records.head.id],branch:D.records.currBranch};D.records.head=s,o.info(`main branch`,a.mainBranchName),D.records.commits.has(s.id)&&o.warn(`Commit ID ${s.id} already exists`),D.records.commits.set(s.id,s),D.records.branches.set(D.records.currBranch,s.id),o.debug(`in pushCommit `+s.id)},`commit`),me=/* @__PURE__ */ t(function(e){let t=e.name,n=e.order;if(t=h.sanitizeText(t,E()),D.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);D.records.branches.set(t,D.records.head==null?null:D.records.head.id),D.records.branchConfig.set(t,{name:t,order:n}),O(t),o.debug(`in createBranch`)},`branch`),he=/* @__PURE__ */ t(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=E();t=h.sanitizeText(t,a),n&&=h.sanitizeText(n,a);let s=D.records.branches.get(D.records.currBranch),c=D.records.branches.get(t),l=s?D.records.commits.get(s):void 0,u=c?D.records.commits.get(c):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(D.records.currBranch===t){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${D.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!D.records.branches.has(t)){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&D.records.commits.has(n)){let e=/* @__PURE__ */ Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let d=c||``,f={id:n||`${D.records.seq}-${S()}`,message:`merged branch ${t} into ${D.records.currBranch}`,seq:D.records.seq++,parents:D.records.head==null?[]:[D.records.head.id,d],branch:D.records.currBranch,type:T.MERGE,customType:r,customId:!!n,tags:i??[]};D.records.head=f,D.records.commits.set(f.id,f),D.records.branches.set(D.records.currBranch,f.id),o.debug(D.records.branches),o.debug(`in mergeBranch`)},`merge`),ge=/* @__PURE__ */ t(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;o.debug(`Entering cherryPick:`,t,n,r);let a=E();if(t=h.sanitizeText(t,a),n=h.sanitizeText(n,a),r=r?.map(e=>h.sanitizeText(e,a)),i=h.sanitizeText(i,a),!t||!D.records.commits.has(t)){let e=/* @__PURE__ */ Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let s=D.records.commits.get(t);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw/* @__PURE__ */ Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===T.MERGE&&!i)throw/* @__PURE__ */ Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!D.records.commits.has(n)){if(c===D.records.currBranch){let e=/* @__PURE__ */ Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=D.records.branches.get(D.records.currBranch);if(e===void 0||!e){let e=/* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${D.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=D.records.commits.get(e);if(a===void 0||!a){let e=/* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${D.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:D.records.seq+`-`+S(),message:`cherry-picked ${s?.message} into ${D.records.currBranch}`,seq:D.records.seq++,parents:D.records.head==null?[]:[D.records.head.id,s.id],branch:D.records.currBranch,type:T.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${s.id}${s.type===T.MERGE?`|parent:${i}`:``}`]};D.records.head=l,D.records.commits.set(l.id,l),D.records.branches.set(D.records.currBranch,l.id),o.debug(D.records.branches),o.debug(`in cherryPick`)}},`cherryPick`),O=/* @__PURE__ */ t(function(e){if(e=h.sanitizeText(e,E()),D.records.branches.has(e)){D.records.currBranch=e;let t=D.records.branches.get(D.records.currBranch);t===void 0||!t?D.records.head=null:D.records.head=D.records.commits.get(t)??null}else{let t=/* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`),t(C,`upsert`),t(w,`prettyPrintCommitHistory`),_e=/* @__PURE__ */ t(function(){o.debug(D.records.commits);let e=k()[0];w([e])},`prettyPrint`),ve=/* @__PURE__ */ t(function(){D.reset(),u()},`clear`),ye=/* @__PURE__ */ t(function(){return[...D.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),be=/* @__PURE__ */ t(function(){return D.records.branches},`getBranches`),xe=/* @__PURE__ */ t(function(){return D.records.commits},`getCommits`),k=/* @__PURE__ */ t(function(){let e=[...D.records.commits.values()];return e.forEach(function(e){o.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:T,getConfig:E,setDirection:ue,setOptions:de,getOptions:fe,commit:pe,branch:me,merge:he,cherryPick:ge,checkout:O,prettyPrint:_e,clear:ve,getBranchesAsObjArray:ye,getBranches:be,getCommits:xe,getCommitsArray:k,getCurrentBranch:/* @__PURE__ */ t(function(){return D.records.currBranch},`getCurrentBranch`),getDirection:/* @__PURE__ */ t(function(){return D.records.direction},`getDirection`),getHead:/* @__PURE__ */ t(function(){return D.records.head},`getHead`),setAccTitle:c,getAccTitle:y,getAccDescription:g,setAccDescription:s,setDiagramTitle:m,getDiagramTitle:_},Se=/* @__PURE__ */ t((e,t)=>{ne(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)Ce(n,t)},`populate`),Ce=/* @__PURE__ */ t((e,n)=>{let r={Commit:/* @__PURE__ */ t(e=>n.commit(we(e)),`Commit`),Branch:/* @__PURE__ */ t(e=>n.branch(Te(e)),`Branch`),Merge:/* @__PURE__ */ t(e=>n.merge(Ee(e)),`Merge`),Checkout:/* @__PURE__ */ t(e=>n.checkout(De(e)),`Checkout`),CherryPicking:/* @__PURE__ */ t(e=>n.cherryPick(Oe(e)),`CherryPicking`)}[e.$type];r?r(e):o.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),we=/* @__PURE__ */ t(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?T.NORMAL:T[e.type],tags:e.tags??void 0}),`parseCommit`),Te=/* @__PURE__ */ t(e=>({name:e.name,order:e.order??0}),`parseBranch`),Ee=/* @__PURE__ */ t(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:T[e.type],tags:e.tags??void 0}),`parseMerge`),De=/* @__PURE__ */ t(e=>e.branch,`parseCheckout`),Oe=/* @__PURE__ */ t(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),ke={parse:/* @__PURE__ */ t(async e=>{let t=await ae(`gitGraph`,e);o.debug(t),Se(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=/* @__PURE__ */ new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=/* @__PURE__ */ new Set([`redux-color`,`redux-dark-color`]),Ae=/* @__PURE__ */ new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=/* @__PURE__ */ t((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=/* @__PURE__ */ new Map,V=/* @__PURE__ */ new Map,H=30,U=/* @__PURE__ */ new Map,W=[],G=0,K=`LR`,je=/* @__PURE__ */ t(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=/* @__PURE__ */ t(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=/* @__PURE__ */ t(e=>{let n,r,i;return K===`BT`?(r=/* @__PURE__ */ t((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=/* @__PURE__ */ t((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let t=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),Me=/* @__PURE__ */ t(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ne=/* @__PURE__ */ t((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Fe(n),i=Math.max(r,i)):a.push(n),Ie(n,r)}),r=i,a.forEach(e=>{Le(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Me(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Pe=/* @__PURE__ */ t(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Fe=/* @__PURE__ */ t(e=>Pe(e)+M,`calculateCommitPosition`),Ie=/* @__PURE__ */ t((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),Le=/* @__PURE__ */ t((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Re=/* @__PURE__ */ t((e,t,n,r,i,a)=>{let{theme:o}=v(),s=I.has(o??``),c=R.has(o??``),l=Ae.has(o??``);if(a===T.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===T.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===T.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===T.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ze=/* @__PURE__ */ t((e,t,n,r,i)=>{if(t.type!==T.CHERRY_PICK&&(t.customId&&t.type===T.MERGE||t.type!==T.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Be=/* @__PURE__ */ t((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
|
+
${r-a/2-N/2},${l+P}
|
|
3
|
+
${r-a/2-N/2},${l-P}
|
|
4
|
+
${n.posWithOffset-a/2-N},${l-s-P}
|
|
5
|
+
${n.posWithOffset+a/2+N},${l-s-P}
|
|
6
|
+
${n.posWithOffset+a/2+N},${l+s+P}
|
|
7
|
+
${n.posWithOffset-a/2-N},${l+s+P}`),t.attr(`cy`,l).attr(`cx`,r-a/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
8
|
+
${n.x},${o+2}
|
|
9
|
+
${n.x},${o-2}
|
|
10
|
+
${n.x+j},${o-s-2}
|
|
11
|
+
${n.x+j+a+4},${o-s-2}
|
|
12
|
+
${n.x+j+a+4},${o+s+2}
|
|
13
|
+
${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),Ve=/* @__PURE__ */ t(e=>{switch(e.customType??e.type){case T.NORMAL:return`commit-normal`;case T.REVERSE:return`commit-reverse`;case T.HIGHLIGHT:return`commit-highlight`;case T.MERGE:return`commit-merge`;case T.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),He=/* @__PURE__ */ t((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),Ue=/* @__PURE__ */ t((e,t,n)=>{let r=K===`BT`&&n?t:t+j,i=B.get(e.branch)?.pos,a=K===`TB`||K===`BT`?B.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=I.has(v().theme??``);return{x:a,y:K===`TB`||K===`BT`?r:i+(o?L/2+1:-2),posWithOffset:r}},`getCommitPosition`),Y=/* @__PURE__ */ t((e,n,r,i)=>{let a=e.append(`g`).attr(`class`,`commit-bullets`),o=e.append(`g`).attr(`class`,`commit-labels`),s=K===`TB`||K===`BT`?H:0,c=[...n.keys()],l=i.parallelCommits??!1,u=/* @__PURE__ */ t((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=c.sort(u);K===`BT`&&(l&&Ne(d,n,s),d=d.reverse()),d.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);l&&(s=He(t,K,s,V));let c=Ue(t,s,l);if(r){let e=Ve(t),n=t.customType??t.type,r=B.get(t.branch)?.index??0;Re(a,t,c,e,r,n),ze(o,t,c,s,i),Be(o,t,c,s)}K===`TB`||K===`BT`?V.set(t.id,{x:c.x,y:c.posWithOffset}):V.set(t.id,{x:c.posWithOffset,y:c.y}),s=K===`BT`&&l?s+M:s+M+j,s>G&&(G=s)})},`drawCommits`),We=/* @__PURE__ */ t((e,n,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.x<i.x:r.y<i.y)?n.branch:e.branch,s=/* @__PURE__ */ t(e=>e.branch===o,`isOnBranchToGetCurve`),c=/* @__PURE__ */ t(t=>t.seq>e.seq&&t.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),X=/* @__PURE__ */ t((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):X(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Ge=/* @__PURE__ */ t((e,t,n,r)=>{let{theme:i}=v(),a=R.has(i??``),o=V.get(t.id),s=V.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let c=We(t,n,o,s,r),l=``,u=``,d=0,f=0,p=B.get(n.branch)?.index;n.type===T.MERGE&&t.id!==n.parents[0]&&(p=B.get(t.branch)?.index);let m;if(c){l=`A 10 10, 0, 0, 0,`,u=`A 10 10, 0, 0, 1,`,d=10,f=10;let e=o.y<s.y?X(o.y,s.y):X(s.y,o.y),n=o.x<s.x?X(o.x,s.x):X(s.x,o.x);K===`TB`?o.x<s.x?m=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${u} ${n} ${o.y+f} L ${n} ${s.y-d} ${l} ${n+f} ${s.y} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${l} ${n} ${o.y+f} L ${n} ${s.y-d} ${u} ${n-f} ${s.y} L ${s.x} ${s.y}`):K===`BT`?o.x<s.x?m=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${l} ${n} ${o.y-f} L ${n} ${s.y+d} ${u} ${n+f} ${s.y} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${u} ${n} ${o.y-f} L ${n} ${s.y+d} ${l} ${n-f} ${s.y} L ${s.x} ${s.y}`):o.y<s.y?m=`M ${o.x} ${o.y} L ${o.x} ${e-d} ${l} ${o.x+f} ${e} L ${s.x-d} ${e} ${u} ${s.x} ${e+f} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${o.x} ${e+d} ${u} ${o.x+f} ${e} L ${s.x-d} ${e} ${l} ${s.x} ${e-f} L ${s.x} ${s.y}`)}else l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,K===`TB`?(o.x<s.x&&(m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+f} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${u} ${o.x-f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${l} ${s.x} ${o.y+f} L ${s.x} ${s.y}`),o.x===s.x&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):K===`BT`?(o.x<s.x&&(m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-f} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${l} ${o.x-f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${u} ${s.x} ${o.y-f} L ${s.x} ${s.y}`),o.x===s.x&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.y<s.y&&(m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+f} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+f} ${s.y} L ${s.x} ${s.y}`),o.y>s.y&&(m=n.type===T.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-f} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+f} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(m===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,m).attr(`class`,`arrow arrow`+z(p,F,a))},`drawArrow`),Ke=/* @__PURE__ */ t((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Ge(n,t.get(e),r,t)})})},`drawArrows`),qe=/* @__PURE__ */ t((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=v(),{dropShadow:s,THEME_COLOR_LIMIT:c}=o,l=I.has(a??``),u=R.has(a??``),d=e.append(`g`);t.forEach((e,t)=>{let a=z(t,l?c:F,u),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let f=K===`TB`||K===`BT`?o:l?o+L/2+1:o-2,p=d.append(`line`);p.attr(`x1`,0),p.attr(`y1`,f),p.attr(`x2`,G),p.attr(`y2`,f),p.attr(`class`,`branch branch`+a),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.push(f);let m=e.name,h=q(m),g=d.insert(`rect`),_=d.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);_.node().appendChild(h);let v=h.getBBox(),y=l?0:4,b=l?16:0,x=l?L:0;i===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${l?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(f-v.height/2-2)+`)`),K===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(f-12-x/2)+`)`)})},`drawBranches`),Je=/* @__PURE__ */ t(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),Ye={draw:/* @__PURE__ */ t(function(e,t,n,r){je(),o.debug(`in gitgraph renderer`,e+`
|
|
14
|
+
`,`id:`,t,n);let a=r.db;if(!a.getConfig){o.error(`getConfig method is not available on db`);return}let s=a.getConfig(),c=s.rotateCommitLabel??!1;U=a.getCommits();let u=a.getBranchesAsObjArray();K=a.getDirection();let d=i(`[id="${t}"]`),{look:f,theme:p,themeVariables:m}=v(),{useGradient:h,gradientStart:g,gradientStop:_,filterColor:y}=m;if(h){let e=d.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}f===`neo`&&I.has(p??``)&&d.append(`defs`).append(`filter`).attr(`id`,t+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,y);let x=0;u.forEach((e,t)=>{let n=q(e.name),r=d.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();x=Je(e.name,x,t,o,c),a.remove(),i.remove(),r.remove()}),Y(d,U,!1,s),s.showBranches&&qe(d,u,s,t),Ke(d,U),Y(d,U,!0,s),b.insertTitle(d,`gitTitleText`,s.titleTopMargin??0,a.getDiagramTitle()),l(void 0,d,s.diagramPadding,s.useMaxWidth)},`draw`)},Z=8,Q=/* @__PURE__ */ new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Xe=/* @__PURE__ */ new Set([`redux-color`,`redux-dark-color`]),Ze=/* @__PURE__ */ new Set([`neo`,`neo-dark`]),$=/* @__PURE__ */ new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Qe=/* @__PURE__ */ new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),$e=/* @__PURE__ */ t(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
|
|
15
|
+
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return n},`genGitGraphGradient`),et=/* @__PURE__ */ t(e=>{let{theme:t,themeVariables:n}=d(),{borderColorArray:r}=n,i=Q.has(t);if(Ze.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
|
|
17
|
+
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${$e(e)}`;else{let r=n%Z;t+=`
|
|
24
|
+
.branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
|
|
25
|
+
.commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
|
|
26
|
+
.commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
|
|
27
|
+
.arrow${n} { stroke: ${e[`git`+r]}; }
|
|
28
|
+
`}return t}if(Xe.has(t)){let n=``;for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
29
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
30
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
33
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{let o=a%r.length;n+=`
|
|
36
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
37
|
+
.commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
39
|
+
.label${a} { fill: ${$.has(t)?e.mainBkg:r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${r[o]}; }
|
|
41
|
+
`}return n}{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
|
|
42
|
+
.branch-label${n} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
43
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``}}
|
|
46
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return t}},`genColor`),tt=/* @__PURE__ */ t(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Z;return`
|
|
50
|
+
.branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
|
|
51
|
+
.commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
|
|
52
|
+
.commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
|
|
53
|
+
.label${t} { fill: ${e[`git`+n]}; }
|
|
54
|
+
.arrow${t} { stroke: ${e[`git`+n]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,`normalTheme`),nt={parser:ke,db:A,renderer:Ye,styles:/* @__PURE__ */ t(e=>{let{theme:t}=d(),n=Qe.has(t);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${n?et(e):tt(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${n?`4 2`:`2`};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${n?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${Q.has(t)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},`getStyles`)}})))()}rt();export{nt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";var t;function n(){return(n=e((()=>{t=typeof global==`object`&&global&&global.Object===Object&&global})))()}var r,i;function a(){return(a=e((()=>{n(),r=typeof self==`object`&&self&&self.Object===Object&&self,i=t||r||Function(`return this`)()})))()}var o;function s(){return(s=e((()=>{a(),o=i.Symbol})))()}function c(e){var t=u.call(e,f),n=e[f];try{e[f]=void 0;var r=!0}catch{}var i=d.call(e);return r&&(t?e[f]=n:delete e[f]),i}var l,u,d,f;function p(){return(p=e((()=>{s(),l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=o?o.toStringTag:void 0})))()}function m(e){return h.call(e)}var h;function g(){return(g=e((()=>{h=Object.prototype.toString})))()}function _(e){return e==null?e===void 0?y:v:ee&&ee in Object(e)?c(e):m(e)}var v,y,ee;function b(){return(b=e((()=>{s(),p(),g(),v=`[object Null]`,y=`[object Undefined]`,ee=o?o.toStringTag:void 0})))()}function x(e){return typeof e==`object`&&!!e}function S(){return(S=e((()=>{})))()}function te(e){return typeof e==`symbol`||x(e)&&_(e)==ne}var ne;function re(){return(re=e((()=>{b(),S(),ne=`[object Symbol]`})))()}function ie(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ae(){return(ae=e((()=>{})))()}var C;function w(){return(w=e((()=>{C=Array.isArray})))()}function oe(e){if(typeof e==`string`)return e;if(C(e))return ie(e,oe)+``;if(te(e))return le?le.call(e):``;var t=e+``;return t==`0`&&1/e==-se?`-0`:t}var se,ce,le;function ue(){return(ue=e((()=>{s(),ae(),w(),re(),se=1/0,ce=o?o.prototype:void 0,le=ce?ce.toString:void 0})))()}function de(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function fe(){return(fe=e((()=>{})))()}function T(e){return e}function E(){return(E=e((()=>{})))()}function pe(e){if(!de(e))return!1;var t=_(e);return t==he||t==ge||t==me||t==_e}var me,he,ge,_e;function ve(){return(ve=e((()=>{b(),fe(),me=`[object AsyncFunction]`,he=`[object Function]`,ge=`[object GeneratorFunction]`,_e=`[object Proxy]`})))()}var ye;function be(){return(be=e((()=>{a(),ye=i[`__core-js_shared__`]})))()}function xe(e){return!!Se&&Se in e}var Se;function Ce(){return(Ce=e((()=>{be(),Se=function(){var e=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()})))()}function D(e){if(e!=null){try{return we.call(e)}catch{}try{return e+``}catch{}}return``}var we;function Te(){return(Te=e((()=>{we=Function.prototype.toString})))()}function Ee(e){return!de(e)||xe(e)?!1:(pe(e)?Ne:Oe).test(D(e))}var De,Oe,ke,Ae,je,Me,Ne;function Pe(){return(Pe=e((()=>{ve(),Ce(),fe(),Te(),De=/[\\^$.*+?()[\]{}|]/g,Oe=/^\[object .+?Constructor\]$/,ke=Function.prototype,Ae=Object.prototype,je=ke.toString,Me=Ae.hasOwnProperty,Ne=RegExp(`^`+je.call(Me).replace(De,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)})))()}function Fe(e,t){return e?.[t]}function Ie(){return(Ie=e((()=>{})))()}function O(e,t){var n=Fe(e,t);return Ee(n)?n:void 0}function k(){return(k=e((()=>{Pe(),Ie()})))()}var Le;function Re(){return(Re=e((()=>{k(),a(),Le=O(i,`WeakMap`)})))()}function ze(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Be(){return(Be=e((()=>{})))()}function Ve(){}function He(){return(He=e((()=>{})))()}function Ue(e){var t=0,n=0;return function(){var r=Ke(),i=Ge-(r-n);if(n=r,i>0){if(++t>=We)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var We,Ge,Ke;function qe(){return(qe=e((()=>{We=800,Ge=16,Ke=Date.now})))()}function A(e){return function(){return e}}function Je(){return(Je=e((()=>{})))()}var Ye;function Xe(){return(Xe=e((()=>{k(),Ye=function(){try{var e=O(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})))()}var Ze;function Qe(){return(Qe=e((()=>{Je(),Xe(),E(),Ze=Ye?function(e,t){return Ye(e,`toString`,{configurable:!0,enumerable:!1,value:A(t),writable:!0})}:T})))()}var $e;function et(){return(et=e((()=>{Qe(),qe(),$e=Ue(Ze)})))()}function tt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(){return(nt=e((()=>{})))()}function rt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function it(){return(it=e((()=>{})))()}function at(e){return e!==e}function ot(){return(ot=e((()=>{})))()}function st(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ct(){return(ct=e((()=>{})))()}function lt(e,t,n){return t===t?st(e,t,n):rt(e,at,n)}function ut(){return(ut=e((()=>{it(),ot(),ct()})))()}function dt(e,t){return!!(e!=null&&e.length)&<(e,t,0)>-1}function ft(){return(ft=e((()=>{ut()})))()}function pt(e,t){var n=typeof e;return t??=mt,!!t&&(n==`number`||n!=`symbol`&&ht.test(e))&&e>-1&&e%1==0&&e<t}var mt,ht;function gt(){return(gt=e((()=>{mt=9007199254740991,ht=/^(?:0|[1-9]\d*)$/})))()}function _t(e,t){return e===t||e!==e&&t!==t}function vt(){return(vt=e((()=>{})))()}function yt(e,t,n){return t=bt(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=bt(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ze(e,this,s)}}var bt;function xt(){return(xt=e((()=>{Be(),bt=Math.max})))()}function St(e,t){return $e(yt(e,t,T),e+``)}function Ct(){return(Ct=e((()=>{E(),xt(),et()})))()}function wt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Tt}var Tt;function Et(){return(Et=e((()=>{Tt=9007199254740991})))()}function Dt(e){return e!=null&&wt(e.length)&&!pe(e)}function j(){return(j=e((()=>{ve(),Et()})))()}function Ot(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||kt)}var kt;function At(){return(At=e((()=>{kt=Object.prototype})))()}function jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Mt(){return(Mt=e((()=>{})))()}function Nt(e){return x(e)&&_(e)==Pt}var Pt;function Ft(){return(Ft=e((()=>{b(),S(),Pt=`[object Arguments]`})))()}var It,Lt,Rt,M;function N(){return(N=e((()=>{Ft(),S(),It=Object.prototype,Lt=It.hasOwnProperty,Rt=It.propertyIsEnumerable,M=Nt(function(){return arguments}())?Nt:function(e){return x(e)&&Lt.call(e,`callee`)&&!Rt.call(e,`callee`)}})))()}function zt(){return!1}function Bt(){return(Bt=e((()=>{})))()}var Vt,Ht,Ut,P;function Wt(){return(Wt=e((()=>{a(),Bt(),Vt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ht=Vt&&typeof module==`object`&&module&&!module.nodeType&&module,Ut=Ht&&Ht.exports===Vt?i.Buffer:void 0,P=(Ut?Ut.isBuffer:void 0)||zt})))()}function Gt(e){return x(e)&&wt(e.length)&&!!F[_(e)]}var Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,F;function _n(){return(_n=e((()=>{b(),Et(),S(),Kt=`[object Arguments]`,qt=`[object Array]`,Jt=`[object Boolean]`,Yt=`[object Date]`,Xt=`[object Error]`,Zt=`[object Function]`,Qt=`[object Map]`,$t=`[object Number]`,en=`[object Object]`,tn=`[object RegExp]`,nn=`[object Set]`,rn=`[object String]`,an=`[object WeakMap]`,on=`[object ArrayBuffer]`,sn=`[object DataView]`,cn=`[object Float32Array]`,ln=`[object Float64Array]`,un=`[object Int8Array]`,dn=`[object Int16Array]`,fn=`[object Int32Array]`,pn=`[object Uint8Array]`,mn=`[object Uint8ClampedArray]`,hn=`[object Uint16Array]`,gn=`[object Uint32Array]`,F={},F[cn]=F[ln]=F[un]=F[dn]=F[fn]=F[pn]=F[mn]=F[hn]=F[gn]=!0,F[Kt]=F[qt]=F[on]=F[Jt]=F[sn]=F[Yt]=F[Xt]=F[Zt]=F[Qt]=F[$t]=F[en]=F[tn]=F[nn]=F[rn]=F[an]=!1})))()}function vn(e){return function(t){return e(t)}}function yn(){return(yn=e((()=>{})))()}var bn,I,xn,Sn;function Cn(){return(Cn=e((()=>{n(),bn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,I=bn&&typeof module==`object`&&module&&!module.nodeType&&module,xn=I&&I.exports===bn&&t.process,Sn=function(){try{return I&&I.require&&I.require(`util`).types||xn&&xn.binding&&xn.binding(`util`)}catch{}}()})))()}var wn,L;function R(){return(R=e((()=>{_n(),yn(),Cn(),wn=Sn&&Sn.isTypedArray,L=wn?vn(wn):Gt})))()}function Tn(e,t){var n=C(e),r=!n&&M(e),i=!n&&!r&&P(e),a=!n&&!r&&!i&&L(e),o=n||r||i||a,s=o?jt(e.length,String):[],c=s.length;for(var l in e)(t||En.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||pt(l,c)))&&s.push(l);return s}var En;function Dn(){return(Dn=e((()=>{Mt(),N(),w(),Wt(),gt(),R(),En=Object.prototype.hasOwnProperty})))()}function On(e,t){return function(n){return e(t(n))}}function kn(){return(kn=e((()=>{})))()}var An;function jn(){return(jn=e((()=>{kn(),An=On(Object.keys,Object)})))()}function Mn(e){if(!Ot(e))return An(e);var t=[];for(var n in Object(e))Nn.call(e,n)&&n!=`constructor`&&t.push(n);return t}var Nn;function Pn(){return(Pn=e((()=>{At(),jn(),Nn=Object.prototype.hasOwnProperty})))()}function z(e){return Dt(e)?Tn(e):Mn(e)}function B(){return(B=e((()=>{Dn(),Pn(),j()})))()}function Fn(e,t){if(C(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||te(e)?!0:Ln.test(e)||!In.test(e)||t!=null&&e in Object(t)}var In,Ln;function Rn(){return(Rn=e((()=>{w(),re(),In=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ln=/^\w*$/})))()}var V;function H(){return(H=e((()=>{k(),V=O(Object,`create`)})))()}function zn(){this.__data__=V?V(null):{},this.size=0}function Bn(){return(Bn=e((()=>{H()})))()}function Vn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Hn(){return(Hn=e((()=>{})))()}function Un(e){var t=this.__data__;if(V){var n=t[e];return n===Wn?void 0:n}return Gn.call(t,e)?t[e]:void 0}var Wn,Gn;function Kn(){return(Kn=e((()=>{H(),Wn=`__lodash_hash_undefined__`,Gn=Object.prototype.hasOwnProperty})))()}function qn(e){var t=this.__data__;return V?t[e]!==void 0:Jn.call(t,e)}var Jn;function Yn(){return(Yn=e((()=>{H(),Jn=Object.prototype.hasOwnProperty})))()}function Xn(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=V&&t===void 0?Zn:t,this}var Zn;function Qn(){return(Qn=e((()=>{H(),Zn=`__lodash_hash_undefined__`})))()}function U(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(){return($n=e((()=>{Bn(),Hn(),Kn(),Yn(),Qn(),U.prototype.clear=zn,U.prototype.delete=Vn,U.prototype.get=Un,U.prototype.has=qn,U.prototype.set=Xn})))()}function er(){this.__data__=[],this.size=0}function tr(){return(tr=e((()=>{})))()}function nr(e,t){for(var n=e.length;n--;)if(_t(e[n][0],t))return n;return-1}function rr(){return(rr=e((()=>{vt()})))()}function ir(e){var t=this.__data__,n=nr(t,e);return n<0?!1:(n==t.length-1?t.pop():ar.call(t,n,1),--this.size,!0)}var ar;function or(){return(or=e((()=>{rr(),ar=Array.prototype.splice})))()}function sr(e){var t=this.__data__,n=nr(t,e);return n<0?void 0:t[n][1]}function cr(){return(cr=e((()=>{rr()})))()}function lr(e){return nr(this.__data__,e)>-1}function ur(){return(ur=e((()=>{rr()})))()}function dr(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fr(){return(fr=e((()=>{rr()})))()}function W(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pr(){return(pr=e((()=>{tr(),or(),cr(),ur(),fr(),W.prototype.clear=er,W.prototype.delete=ir,W.prototype.get=sr,W.prototype.has=lr,W.prototype.set=dr})))()}var G;function mr(){return(mr=e((()=>{k(),a(),G=O(i,`Map`)})))()}function hr(){this.size=0,this.__data__={hash:new U,map:new(G||W),string:new U}}function gr(){return(gr=e((()=>{$n(),pr(),mr()})))()}function _r(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function vr(){return(vr=e((()=>{})))()}function yr(e,t){var n=e.__data__;return _r(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function br(){return(br=e((()=>{vr()})))()}function xr(e){var t=yr(this,e).delete(e);return this.size-=+!!t,t}function Sr(){return(Sr=e((()=>{br()})))()}function Cr(e){return yr(this,e).get(e)}function wr(){return(wr=e((()=>{br()})))()}function Tr(e){return yr(this,e).has(e)}function Er(){return(Er=e((()=>{br()})))()}function Dr(e,t){var n=yr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Or(){return(Or=e((()=>{br()})))()}function K(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){return(kr=e((()=>{gr(),Sr(),wr(),Er(),Or(),K.prototype.clear=hr,K.prototype.delete=xr,K.prototype.get=Cr,K.prototype.has=Tr,K.prototype.set=Dr})))()}function Ar(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(jr);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ar.Cache||K),n}var jr;function Mr(){return(Mr=e((()=>{kr(),jr=`Expected a function`,Ar.Cache=K})))()}function Nr(e){var t=Ar(e,function(e){return n.size===Pr&&n.clear(),e}),n=t.cache;return t}var Pr;function Fr(){return(Fr=e((()=>{Mr(),Pr=500})))()}var Ir,Lr,Rr;function zr(){return(zr=e((()=>{Fr(),Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/\\(\\)?/g,Rr=Nr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ir,function(e,n,r,i){t.push(r?i.replace(Lr,`$1`):n||e)}),t})})))()}function Br(e){return e==null?``:oe(e)}function Vr(){return(Vr=e((()=>{ue()})))()}function Hr(e,t){return C(e)?e:Fn(e,t)?[e]:Rr(Br(e))}function Ur(){return(Ur=e((()=>{w(),Rn(),zr(),Vr()})))()}function Wr(e){if(typeof e==`string`||te(e))return e;var t=e+``;return t==`0`&&1/e==-Gr?`-0`:t}var Gr;function q(){return(q=e((()=>{re(),Gr=1/0})))()}function Kr(e,t){t=Hr(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Wr(t[n++])];return n&&n==r?e:void 0}function qr(){return(qr=e((()=>{Ur(),q()})))()}function Jr(e,t,n){var r=e==null?void 0:Kr(e,t);return r===void 0?n:r}function Yr(){return(Yr=e((()=>{qr()})))()}function Xr(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Zr(){return(Zr=e((()=>{})))()}function Qr(e){return C(e)||M(e)||!!($r&&e&&e[$r])}var $r;function ei(){return(ei=e((()=>{s(),N(),w(),$r=o?o.isConcatSpreadable:void 0})))()}function ti(e,t,n,r,i){var a=-1,o=e.length;for(n||=Qr,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ti(s,t-1,n,r,i):Xr(i,s):r||(i[i.length]=s)}return i}function ni(){return(ni=e((()=>{Zr(),ei()})))()}function ri(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ii(){return(ii=e((()=>{})))()}function ai(){this.__data__=new W,this.size=0}function oi(){return(oi=e((()=>{pr()})))()}function si(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ci(){return(ci=e((()=>{})))()}function li(e){return this.__data__.get(e)}function ui(){return(ui=e((()=>{})))()}function di(e){return this.__data__.has(e)}function fi(){return(fi=e((()=>{})))()}function pi(e,t){var n=this.__data__;if(n instanceof W){var r=n.__data__;if(!G||r.length<mi-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new K(r)}return n.set(e,t),this.size=n.size,this}var mi;function hi(){return(hi=e((()=>{pr(),mr(),kr(),mi=200})))()}function J(e){var t=this.__data__=new W(e);this.size=t.size}function gi(){return(gi=e((()=>{pr(),oi(),ci(),ui(),fi(),hi(),J.prototype.clear=ai,J.prototype.delete=si,J.prototype.get=li,J.prototype.has=di,J.prototype.set=pi})))()}function _i(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function vi(){return(vi=e((()=>{})))()}function yi(){return[]}function bi(){return(bi=e((()=>{})))()}var xi,Si,Ci;function wi(){return(wi=e((()=>{vi(),bi(),xi=Object.prototype.propertyIsEnumerable,Si=Object.getOwnPropertySymbols,Ci=Si?function(e){return e==null?[]:(e=Object(e),_i(Si(e),function(t){return xi.call(e,t)}))}:yi})))()}function Ti(e,t,n){var r=t(e);return C(e)?r:Xr(r,n(e))}function Ei(){return(Ei=e((()=>{Zr(),w()})))()}function Di(e){return Ti(e,z,Ci)}function Oi(){return(Oi=e((()=>{Ei(),wi(),B()})))()}var ki;function Ai(){return(Ai=e((()=>{k(),a(),ki=O(i,`DataView`)})))()}var ji;function Mi(){return(Mi=e((()=>{k(),a(),ji=O(i,`Promise`)})))()}var Y;function Ni(){return(Ni=e((()=>{k(),a(),Y=O(i,`Set`)})))()}var Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,X,Gi;function Ki(){return(Ki=e((()=>{Ai(),mr(),Mi(),Ni(),Re(),b(),Te(),Pi=`[object Map]`,Fi=`[object Object]`,Ii=`[object Promise]`,Li=`[object Set]`,Ri=`[object WeakMap]`,zi=`[object DataView]`,Bi=D(ki),Vi=D(G),Hi=D(ji),Ui=D(Y),Wi=D(Le),X=_,(ki&&X(new ki(/* @__PURE__ */ new ArrayBuffer(1)))!=zi||G&&X(new G)!=Pi||ji&&X(ji.resolve())!=Ii||Y&&X(new Y)!=Li||Le&&X(new Le)!=Ri)&&(X=function(e){var t=_(e),n=t==Fi?e.constructor:void 0,r=n?D(n):``;if(r)switch(r){case Bi:return zi;case Vi:return Pi;case Hi:return Ii;case Ui:return Li;case Wi:return Ri}return t}),Gi=X})))()}var qi;function Ji(){return(Ji=e((()=>{a(),qi=i.Uint8Array})))()}function Yi(e){return this.__data__.set(e,Xi),this}var Xi;function Zi(){return(Zi=e((()=>{Xi=`__lodash_hash_undefined__`})))()}function Qi(e){return this.__data__.has(e)}function $i(){return($i=e((()=>{})))()}function ea(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new K;++t<n;)this.add(e[t])}function ta(){return(ta=e((()=>{kr(),Zi(),$i(),ea.prototype.add=ea.prototype.push=Yi,ea.prototype.has=Qi})))()}function na(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ra(){return(ra=e((()=>{})))()}function ia(e,t){return e.has(t)}function aa(){return(aa=e((()=>{})))()}function oa(e,t,n,r,i,a){var o=n&sa,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&ca?new ea:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!na(t,function(e,t){if(!ia(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var sa,ca;function la(){return(la=e((()=>{ta(),ra(),aa(),sa=1,ca=2})))()}function ua(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function da(){return(da=e((()=>{})))()}function fa(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function pa(){return(pa=e((()=>{})))()}function ma(e,t,n,r,i,a,o){switch(n){case Da:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ea:return!(e.byteLength!=t.byteLength||!a(new qi(e),new qi(t)));case _a:case va:case xa:return _t(+e,+t);case ya:return e.name==t.name&&e.message==t.message;case Sa:case wa:return e==t+``;case ba:var s=ua;case Ca:var c=r&ha;if(s||=fa,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=ga,o.set(e,t);var u=oa(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ta:if(ka)return ka.call(e)==ka.call(t)}return!1}var ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka;function Aa(){return(Aa=e((()=>{s(),Ji(),vt(),la(),da(),pa(),ha=1,ga=2,_a=`[object Boolean]`,va=`[object Date]`,ya=`[object Error]`,ba=`[object Map]`,xa=`[object Number]`,Sa=`[object RegExp]`,Ca=`[object Set]`,wa=`[object String]`,Ta=`[object Symbol]`,Ea=`[object ArrayBuffer]`,Da=`[object DataView]`,Oa=o?o.prototype:void 0,ka=Oa?Oa.valueOf:void 0})))()}function ja(e,t,n,r,i,a){var o=n&Ma,s=Di(e),c=s.length;if(c!=Di(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Na.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Ma,Na;function Pa(){return(Pa=e((()=>{Oi(),Ma=1,Na=Object.prototype.hasOwnProperty})))()}function Fa(e,t,n,r,i,a){var o=C(e),s=C(t),c=o?Ra:Gi(e),l=s?Ra:Gi(t);c=c==La?za:c,l=l==La?za:l;var u=c==za,d=l==za,f=c==l;if(f&&P(e)){if(!P(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new J,o||L(e)?oa(e,t,n,r,i,a):ma(e,t,c,n,r,i,a);if(!(n&Ia)){var p=u&&Ba.call(e,`__wrapped__`),m=d&&Ba.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new J,i(h,g,n,r,a)}}return f?(a||=new J,ja(e,t,n,r,i,a)):!1}var Ia,La,Ra,za,Ba;function Va(){return(Va=e((()=>{gi(),la(),Aa(),Pa(),Ki(),w(),Wt(),R(),Ia=1,La=`[object Arguments]`,Ra=`[object Array]`,za=`[object Object]`,Ba=Object.prototype.hasOwnProperty})))()}function Ha(e,t,n,r,i){return e===t?!0:e==null||t==null||!x(e)&&!x(t)?e!==e&&t!==t:Fa(e,t,n,r,Ha,i)}function Ua(){return(Ua=e((()=>{Va(),S()})))()}function Wa(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new J;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Ha(u,l,Ga|Ka,r,d):f))return!1}}return!0}var Ga,Ka;function qa(){return(qa=e((()=>{gi(),Ua(),Ga=1,Ka=2})))()}function Ja(e){return e===e&&!de(e)}function Ya(){return(Ya=e((()=>{fe()})))()}function Xa(e){for(var t=z(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ja(i)]}return t}function Za(){return(Za=e((()=>{Ya(),B()})))()}function Qa(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function $a(){return($a=e((()=>{})))()}function eo(e){var t=Xa(e);return t.length==1&&t[0][2]?Qa(t[0][0],t[0][1]):function(n){return n===e||Wa(n,e,t)}}function to(){return(to=e((()=>{qa(),Za(),$a()})))()}function no(e,t){return e!=null&&t in Object(e)}function ro(){return(ro=e((()=>{})))()}function io(e,t,n){t=Hr(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Wr(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&wt(i)&&pt(o,i)&&(C(e)||M(e)))}function ao(){return(ao=e((()=>{Ur(),N(),w(),gt(),Et(),q()})))()}function oo(e,t){return e!=null&&io(e,t,no)}function so(){return(so=e((()=>{ro(),ao()})))()}function co(e,t){return Fn(e)&&Ja(t)?Qa(Wr(e),t):function(n){var r=Jr(n,e);return r===void 0&&r===t?oo(n,e):Ha(t,r,lo|uo)}}var lo,uo;function fo(){return(fo=e((()=>{Ua(),Yr(),so(),Rn(),Ya(),$a(),q(),lo=1,uo=2})))()}function po(e){return function(t){return t?.[e]}}function mo(){return(mo=e((()=>{})))()}function ho(e){return function(t){return Kr(t,e)}}function go(){return(go=e((()=>{qr()})))()}function _o(e){return Fn(e)?po(Wr(e)):ho(e)}function vo(){return(vo=e((()=>{mo(),go(),Rn(),q()})))()}function yo(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?C(e)?co(e[0],e[1]):eo(e):_o(e)}function bo(){return(bo=e((()=>{to(),fo(),E(),w(),vo()})))()}function xo(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function So(){return(So=e((()=>{})))()}var Co;function wo(){return(wo=e((()=>{So(),Co=xo()})))()}function To(e,t){return e&&Co(e,t,z)}function Eo(){return(Eo=e((()=>{wo(),B()})))()}function Do(e,t){return function(n,r){if(n==null)return n;if(!Dt(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Oo(){return(Oo=e((()=>{j()})))()}var ko;function Ao(){return(Ao=e((()=>{Eo(),Oo(),ko=Do(To)})))()}function jo(e){return x(e)&&Dt(e)}function Mo(){return(Mo=e((()=>{j(),S()})))()}function No(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Po(){return(Po=e((()=>{})))()}function Fo(e){return typeof e==`function`?e:T}function Io(){return(Io=e((()=>{E()})))()}function Z(e,t){return(C(e)?tt:ko)(e,Fo(t))}function Lo(){return(Lo=e((()=>{nt(),Ao(),Io(),w()})))()}function Ro(e,t){var n=[];return ko(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function zo(){return(zo=e((()=>{Ao()})))()}function Bo(e,t){return(C(e)?_i:Ro)(e,yo(t,3))}function Vo(){return(Vo=e((()=>{vi(),zo(),bo(),w()})))()}function Ho(e,t){return ie(t,function(t){return e[t]})}function Uo(){return(Uo=e((()=>{ae()})))()}function Wo(e){return e==null?[]:Ho(e,z(e))}function Go(){return(Go=e((()=>{Uo(),B()})))()}function Ko(e){if(e==null)return!0;if(Dt(e)&&(C(e)||typeof e==`string`||typeof e.splice==`function`||P(e)||L(e)||M(e)))return!e.length;var t=Gi(e);if(t==qo||t==Jo)return!e.size;if(Ot(e))return!Mn(e).length;for(var n in e)if(Yo.call(e,n))return!1;return!0}var qo,Jo,Yo;function Xo(){return(Xo=e((()=>{Pn(),Ki(),N(),w(),j(),Wt(),At(),R(),qo=`[object Map]`,Jo=`[object Set]`,Yo=Object.prototype.hasOwnProperty})))()}function Q(e){return e===void 0}function Zo(){return(Zo=e((()=>{})))()}function Qo(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function $o(){return($o=e((()=>{})))()}function es(e,t,n){var r=C(e)?ri:Qo,i=arguments.length<3;return r(e,yo(t,4),n,i,ko)}function ts(){return(ts=e((()=>{ii(),Ao(),bo(),$o(),w()})))()}var ns;function rs(){return(rs=e((()=>{Ni(),He(),pa(),ns=Y&&1/fa(new Y([,-0]))[1]==1/0?function(e){return new Y(e)}:Ve})))()}function is(e,t,n){var r=-1,i=dt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=No;else if(a>=as){var l=t?null:ns(e);if(l)return fa(l);o=!1,i=ia,c=new ea}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var as;function os(){return(os=e((()=>{ta(),ft(),Po(),aa(),rs(),pa(),as=200})))()}var ss;function cs(){return(cs=e((()=>{ni(),Ct(),os(),Mo(),ss=St(function(e){return is(ti(e,1,jo,!0))})})))()}function ls(e,t){e[t]?e[t]++:e[t]=1}function us(e,t){--e[t]||delete e[t]}function ds(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+hs+a+hs+(Q(r)?ms:r)}function fs(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function ps(e,t){return ds(e,t.v,t.w,t.name)}var ms,$,hs,gs;function _s(){return(_s=e((()=>{Je(),ve(),B(),Vo(),Xo(),Lo(),Zo(),cs(),Go(),ts(),ms=`\0`,$=`\0`,hs=``,gs=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=A(void 0),this._defaultEdgeLabelFn=A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[$]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return pe(e)||(e=A(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return z(this._nodes)}sources(){var e=this;return Bo(this.nodes(),function(t){return Ko(e._in[t])})}sinks(){var e=this;return Bo(this.nodes(),function(t){return Ko(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return Z(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=$,this._children[e]={},this._children[$][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Z(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),Z(z(this._in[e]),t),delete this._in[e],delete this._preds[e],Z(z(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Q(t))t=$;else{t+=``;for(var n=t;!Q(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==$)return t}}children(e){if(Q(e)&&(e=$),this._isCompound){var t=this._children[e];if(t)return z(t)}else if(e===$)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return z(t)}successors(e){var t=this._sucs[e];if(t)return z(t)}neighbors(e){var t=this.predecessors(e);if(t)return ss(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;Z(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),Z(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&Z(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return pe(e)||(e=A(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Wo(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return es(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Q(n)||(n=``+n);var o=ds(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Q(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=fs(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,ls(this._preds[t],e),ls(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?ps(this._isDirected,arguments[0]):ds(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?ps(this._isDirected,arguments[0]):ds(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?ps(this._isDirected,arguments[0]):ds(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],us(this._preds[t],e),us(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Wo(n);return t?Bo(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Wo(n);return t?Bo(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},gs.prototype._nodeCount=0,gs.prototype._edgeCount=0})))()}function vs(){return(vs=e((()=>{_s()})))()}export{Wr as $,ae as $t,io as A,_t as At,Ci as B,Ye as Bt,wo as C,Ot as Ct,mo as D,Ct as Dt,po as E,St as Et,Ki as F,it as Ft,gi as G,pe as Gt,bi as H,A as Ht,Di as I,tt as It,Xr as J,fe as Jt,ti as K,T as Kt,Oi as L,nt as Lt,qi as M,gt as Mt,Ji as N,pt as Nt,oo as O,xt as Ot,Gi as P,rt as Pt,q as Q,ie as Qt,Ti as R,et as Rt,Co as S,At as St,bo as T,Dt as Tt,yi as U,Je as Ut,wi as V,Xe as Vt,J as W,ve as Wt,Kr as X,w as Xt,Zr as Y,de as Yt,qr as Z,C as Zt,jo as _,yn as _t,es as a,b as an,z as at,To as b,N as bt,Go as c,a as cn,kn as ct,Vo as d,Dn as dt,re as en,Hr as et,Z as f,R as ft,Mo as g,vn as gt,Io as h,Sn as ht,ts as i,_ as in,B as it,ao as j,vt as jt,so as k,yt as kt,Wo as l,i as ln,On as lt,Fo as m,Cn as mt,gs as n,S as nn,Vr as nt,Zo as o,o as on,Mn as ot,Lo as p,L as pt,ni as q,E as qt,_s as r,x as rn,Br as rt,Q as s,s as sn,Pn as st,vs as t,te as tn,Ur as tt,Bo as u,Tn as ut,ko as v,Wt as vt,yo as w,j as wt,Eo as x,M as xt,Ao as y,P as yt,Ei as z,$e as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./rolldown-runtime-BKuNeK48.js";import{n,t as r}from"./preload-helper-C-73SErw.js";import i,{useSyncExternalStore as a}from"react";function o(e){return!!(typeof e==`function`||typeof e==`object`&&e&&`$$typeof`in e)}function s(){return m??=r(()=>import(`./lucide-react-VfAPsQQ5.js`).then(e=>/* @__PURE__ */ t(e.default,1)).then(e=>{let t=e.default??e;f=Object.fromEntries(Object.entries(t).filter(([e,t])=>/^[A-Z]/.test(e)&&!e.endsWith(`Icon`)&&e!==`createLucideIcon`&&o(t))),p=Object.keys(f).sort((e,t)=>e.localeCompare(t)),h.forEach(e=>e())}),[],import.meta.url),m}function c(e){return h.add(e),()=>h.delete(e)}function l(){return s(),a(c,()=>f!==null,()=>!1)}function u(){return l(),p}function d(e,t=16,n={}){if(!f)return s(),null;let r=f[e];return r?i.createElement(r,{strokeWidth:1.5,...n,size:t}):null}var f,p,m,h;function g(){return(g=e((()=>{n(),f=null,p=[],m=null,h=/* @__PURE__ */ new Set})))()}export{l as i,d as n,u as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{jsx as t}from"react/jsx-runtime";import{Empty as n}from"antd";var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y;function b(){return(b=e((()=>{r=()=>/* @__PURE__ */ t(n,{image:n.PRESENTED_IMAGE_SIMPLE,description:!1}),i=r,a=r,o=r,s=r,c=r,l=r,u=r,d=r,f=r,p=r,m=r,h=r,g=r,_=r,v=r,y=r})))()}b();export{o as IllustrationConstruction,m as IllustrationConstructionDark,l as IllustrationFailure,_ as IllustrationFailureDark,i as IllustrationIdle,f as IllustrationIdleDark,c as IllustrationNoAccess,g as IllustrationNoAccessDark,d as IllustrationNoContent,y as IllustrationNoContentDark,a as IllustrationNoResult,p as IllustrationNoResultDark,s as IllustrationNotFound,h as IllustrationNotFoundDark,u as IllustrationSuccess,v as IllustrationSuccessDark};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{a as t,c as n,h as r,i,r as a,s as o,v as s}from"./fit-CsnhEncA.js";import{n as c,t as l}from"./messages-CFyOVxEM.js";async function u(e,n,a,o){var c;let u=l(o?.options),d=n.ownerDocument||document,f=await g(e,a);(c=o?.registerThumbnailAdapter)==null||c.call(o,{capture:()=>new Blob([e],{type:m(a)})});let h=1,y=1,b=1,x=0,S=t(),C=d.createElement(`div`);C.className=`image-viewer`,C.dataset.viewerZoomProvider=`image`;let w=d.createElement(`div`);w.className=`image-stage`;let T=d.createElement(`img`);T.alt=u(`image.alt`),T.src=f,T.tabIndex=0,T.setAttribute(`role`,`button`),T.setAttribute(`aria-haspopup`,`dialog`),w.append(T),C.append(w);let E=v(d,f,u),D=()=>E.open(T),O=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),E.open(T))};T.addEventListener(`click`,D),T.addEventListener(`keydown`,O);let k=()=>Math.min(.1,y||.1),A=e=>{let t=k();return Math.min(5,Math.max(t,_(e)))},j=()=>{let e=T.naturalWidth||0,t=T.naturalHeight||0;if(!e||!t)return 1;let n=Math.max((C.clientWidth||0)-48,1),r=Math.max((C.clientHeight||x||0)-48,1);return Math.min(1,n/e,r/t)},M=()=>{y=j(),b=A(y*h),T.naturalWidth&&T.naturalHeight?(T.style.width=`${Math.max(1,Math.round(T.naturalWidth*b))}px`,T.style.height=`${Math.max(1,Math.round(T.naturalHeight*b))}px`):(T.style.width=`auto`,T.style.height=x>0?`${Math.max(1,Math.round(x*h))}px`:`${h*100}%`)},N=()=>{x=C.clientHeight||0,M(),S.emit()},P=new ResizeObserver(N);P.observe(C),T.addEventListener(`load`,N);let F=()=>({scale:b,label:`${Math.round(b*100)}%`,canZoomIn:b<5,canZoomOut:b>k(),canReset:Math.abs(h-1)>.001,minScale:k(),maxScale:5}),I=e=>(h=A(e)/Math.max(y,.001),M(),S.emit(),F());return r(C,{zoomIn:()=>I(b+.15),zoomOut:()=>I(b-.15),resetZoom:()=>(h=1,M(),S.emit(),F()),setZoom:I,fit:e=>{let t=T.naturalWidth||0,n=T.naturalHeight||0;if(!t||!n)return{applied:!1,mode:e.mode,resize:e.resize,source:e.source,reason:`image-not-ready`,provider:`zoom`};let r=e.mode===`auto`?`scale-down`:e.mode,a=i({mode:r,viewportWidth:Math.max(1,e.viewportWidth||C.clientWidth||0),viewportHeight:Math.max(1,e.viewportHeight||C.clientHeight||x||0),contentWidth:t,contentHeight:n,currentScale:b,minScale:e.minScale??k(),maxScale:e.maxScale??5});if(!a)return{applied:!1,mode:e.mode,resize:e.resize,source:e.source,reason:`unmeasurable`,provider:`zoom`};let o=I(a);return{applied:!0,mode:e.mode,resize:e.resize,scale:o.scale,source:e.source,provider:`zoom`}},getState:F,subscribe:S.subscribe}),n.replaceChildren(p(d),C),(o?.surface?.shadowRoot||n).append(E.element),N(),{$el:n,unmount(){var e;(e=o?.registerThumbnailAdapter)==null||e.call(o,null),s(C),P.disconnect(),T.removeEventListener(`load`,N),T.removeEventListener(`click`,D),T.removeEventListener(`keydown`,O),E.destroy(),n.replaceChildren()}}}var d,f,p,m,h,g,_,v;function y(){return(y=e((()=>{n(),a(),c(),o(),d={avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,heic:`image/heic`,heif:`image/heif`,ico:`image/x-icon`,jxl:`image/jxl`,jpg:`image/jpeg`,jpeg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,tif:`image/tiff`,tiff:`image/tiff`,webp:`image/webp`},f=`
|
|
2
|
+
.image-viewer{position:relative;width:100%;height:100%;overflow:auto;background:var(--file-viewer-render-surface-background,#eef1f4);box-sizing:border-box}
|
|
3
|
+
.image-stage{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
|
|
4
|
+
.image-stage img{display:block;width:auto;max-width:none;margin:0 auto;border:0;box-shadow:0 18px 48px rgba(15,23,42,.16);background:#fff;cursor:zoom-in}
|
|
5
|
+
.image-stage img:focus-visible{outline:3px solid #2563eb;outline-offset:4px}
|
|
6
|
+
.image-lightbox{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:40px;background:rgba(15,23,42,.9);box-sizing:border-box;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility 0s linear .18s}
|
|
7
|
+
.image-lightbox[data-open='true']{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
|
|
8
|
+
.image-lightbox img{display:block;max-width:100%;max-height:100%;object-fit:contain;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.4);cursor:default;transform:scale(.985);transition:transform .18s ease}
|
|
9
|
+
.image-lightbox[data-open='true'] img{transform:scale(1)}
|
|
10
|
+
.image-lightbox button{position:absolute;top:16px;right:16px;display:grid;width:40px;height:40px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(255,255,255,.96);color:#172033;font:400 27px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.24);transition:background-color .14s ease,transform .14s ease}
|
|
11
|
+
.image-lightbox button:hover{background:#fff;transform:scale(1.04)}
|
|
12
|
+
.image-lightbox button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
|
|
13
|
+
[data-viewer-theme='dark'] .image-viewer{background:var(--file-viewer-render-surface-background,#101820)}
|
|
14
|
+
@media (prefers-color-scheme:dark){[data-viewer-theme='system'] .image-viewer{background:var(--file-viewer-render-surface-background,#101820)}}
|
|
15
|
+
@media (max-width:767px){.image-stage{padding:12px}.image-lightbox{padding:16px}.image-lightbox button{top:12px;right:12px}}
|
|
16
|
+
@media (prefers-reduced-motion:reduce){.image-lightbox,.image-lightbox img,.image-lightbox button{transition:none}}
|
|
17
|
+
`,p=e=>{let t=e.createElement(`style`);return t.textContent=f,t},m=e=>{let t=(e||``).trim().toLowerCase();return d[t]||`image/*`},h=async e=>await new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{let r=e.target?.result;typeof r==`string`?t(r):n(/* @__PURE__ */ Error(`Unable to read image data URL.`))},r.onerror=()=>n(r.error||/* @__PURE__ */ Error(`Unable to read image data URL.`)),r.readAsDataURL(e)}),g=async(e,t)=>{let n=(t||``).trim().toLowerCase();if(n===`heic`||n===`heif`)throw Error(`HEIC/HEIF image conversion has moved out of @file-viewer/core. Install and pass @file-viewer/renderer-image, or use @file-viewer/preset-all.`);return h(new Blob([e],{type:m(n)}))},_=e=>Number(e.toFixed(3)),v=(e,t,n)=>{let r=e.createElement(`div`);r.className=`image-lightbox`,r.dataset.open=`false`,r.setAttribute(`role`,`dialog`),r.setAttribute(`aria-modal`,`true`),r.setAttribute(`aria-hidden`,`true`);let i=e.createElement(`img`);i.alt=n(`image.lightbox.alt`),i.src=t;let a=e.createElement(`button`);a.type=`button`,a.setAttribute(`aria-label`,n(`image.lightbox.close`)),a.textContent=`×`;let o=null,s=()=>{r.dataset.open===`true`&&(r.dataset.open=`false`,r.setAttribute(`aria-hidden`,`true`),o?.isConnected&&o.focus({preventScroll:!0}),o=null)},c=e=>{e.key===`Escape`&&r.dataset.open===`true`&&(e.preventDefault(),s())};return a.addEventListener(`click`,s),r.addEventListener(`click`,e=>{e.target===r&&s()}),e.addEventListener(`keydown`,c),r.append(i,a),{element:r,open(t){o=t||(e.activeElement instanceof HTMLElement?e.activeElement:null),r.dataset.open=`true`,r.setAttribute(`aria-hidden`,`false`),a.focus({preventScroll:!0})},destroy(){a.removeEventListener(`click`,s),e.removeEventListener(`keydown`,c),r.remove()}}}})))()}y();export{u as default};
|