@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,26 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,o as n,r,s as i,t as a}from"./controls-C5dPckUT.js";import{t as o}from"./typography-DKK_iHcj.js";import{i as s}from"./feedback-BnjMKZpz.js";import{n as c,o as l,r as u}from"./search-filters-CRIhZ0gL.js";import{n as d,t as f}from"./createLucideIcon-BtwfYE6A.js";import{n as p,t as m}from"./MasterDetailLayout-sjPWw8BI.js";import{a as h,i as g,s as ee}from"./toolbar-controls-CThS0xuP.js";import{n as te,t as _}from"./rotate-ccw-D2__Zisi.js";import{n as ne,t as re}from"./save-w-NwiMMY.js";import{C as ie,S as ae,_ as oe,a as se,d as ce,g as le,r as ue,s as de,x as fe,y as v}from"./ui-BFsHoY7a.js";import{$ as y,A as pe,B as b,C as me,D as he,E as ge,F as _e,G as x,H as S,I as ve,J as ye,K as be,L as xe,M as Se,N as C,O as Ce,P as we,Q as Te,R as Ee,S as De,T as w,U as Oe,V as ke,W as Ae,X as je,Y as Me,Z as Ne,_ as Pe,a as Fe,b as T,c as Ie,d as Le,f as Re,g as ze,h as Be,i as Ve,j as He,k as Ue,l as We,n as Ge,o as Ke,p as qe,q as Je,r as Ye,s as Xe,t as Ze,u as Qe,v as $e,w as et,x as tt,y as E,z as nt}from"./parse-6ZQGx714.js";import{n as rt,t as it}from"./rendered-slot-YhfmcMJr.js";import{n as at,t as ot}from"./SearchToolbar-CvgYKUjr.js";import{n as st,t as ct}from"./EmptyIllustration-DUC3RZmF.js";import{a as lt,i as ut,o as dt,r as ft}from"./SettingRow-DVNmTJWC.js";import{i as pt,r as mt,t as ht}from"./NavListPanel-vjIOIqK0.js";import{Fragment as gt,useEffect as _t,useMemo as D,useState as vt}from"react";import{Fragment as O,jsx as k,jsxs as A}from"react/jsx-runtime";import{GoaError as yt}from"@fudanda/client";import{Link as bt}from"react-router-dom";import{settingsWriteOperations as xt}from"@fudanda/react-core/lib/native-operations";import{usePermission as St}from"@fudanda/react-core/hooks/usePermission";import{useRenderedSlot as Ct}from"@fudanda/react-core/hooks/useRenderedSlot";import{useListSearch as wt}from"@fudanda/react-core/hooks/useListSearch";import{useCurrentUserMenuTree as Tt,useMenuTree as Et}from"@fudanda/react-core/hooks/queries/menus";import{THEME_COLOR_PRESETS as Dt}from"@fudanda/react-core/lib/theme-color";import{textMatches as Ot}from"@fudanda/react-core/utils/pinyin";import{usePinyinReady as kt}from"@fudanda/react-core/hooks/usePinyinReady";import{canOverridePreference as j,defaultPreferences as At,describePreferenceCondition as jt,getPreferenceValue as M,isPreferenceApplicable as Mt,preferenceDefinitions as N,preferenceGroups as Nt,resolvePreferences as Pt,setPreferenceValue as P}from"@fudanda/shared/preferences";import{CAPTCHA_COMPLEXITY_LABELS as Ft,SETTINGS_MODULES as It}from"@fudanda/shared/settings";import{settingsKeys as Lt,useSaveSettings as Rt,useSettings as zt,useSettingsModules as Bt}from"@fudanda/react-core/hooks/queries/settings";import{useUrlSelectionState as Vt}from"@fudanda/react-core/hooks/useUrlSelectionState";import{foundationSettingSchemas as Ht}from"@fudanda/shared/settings/foundation";var Ut,Wt;function Gt(){return(Gt=e((()=>{
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.53.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
d(),Ut={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]},Ut.node,Wt=f(Ut)})))()}var Kt,qt;function Jt(){return(Jt=e((()=>{
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v1.53.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
d(),Kt={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]},Kt.node,qt=f(Kt)})))()}function Yt(){return(Yt=e((()=>{})))()}var F,I,Xt,Zt,Qt,$t;function en(){return(en=e((()=>{De(),b(),F=/*@__PURE__*/ E(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),I=e=>{let t=e.value;return!be(t)&&t.length!==void 0},Xt=/*@__PURE__*/ E(`$ZodCheckMaxLength`,(e,t)=>{var n;F.init(e,t),(n=e._zod.def).when??(n.when=I),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?pe(r):i)<=t.maximum)return;let a=Ee(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Zt=/*@__PURE__*/ E(`$ZodCheckMinLength`,(e,t)=>{var n;F.init(e,t),(n=e._zod.def).when??(n.when=I),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?pe(r):i)>=t.minimum)return;let a=Ee(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Qt=/*@__PURE__*/ E(`$ZodCheckLengthEquals`,(e,t)=>{var n;F.init(e,t),(n=e._zod.def).when??(n.when=I),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?pe(r):i;if(a===t.length)return;let o=Ee(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),$t=/*@__PURE__*/ E(`$ZodCheckOverwrite`,(e,t)=>{F.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})))()}var tn;function nn(){return(nn=e((()=>{tn={major:4,minor:6,patch:5}})))()}async function rn(e,t){let n={async:!0};return gn(await e._zod.run({value:t,issues:[]},n),n)}function an(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return gn(r,n)}catch{}return rn(e,t)},vendor:`zod`,version:1}}function on(e,t,n){e.issues.length&&t.issues.push(...Me(n,e.issues)),t.value[n]=e.value}function sn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!w(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ve(e,r,T())))}),t)}function cn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ke(e)&&ke(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=cn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=cn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ln(e,t,n){let r=/* @__PURE__ */ new Map,i,a=/* @__PURE__ */ new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=cn(t.value,n.value);if(!c.valid){if(w(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}function un(e,t){return e.value=t.issues.length?void 0:t.value,e}function dn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function fn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function pn(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>ve(e,r,T()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}function L(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function mn(e){return e.memo||(e.value=Object.freeze(e.value)),e}function hn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(S(e))}}var R,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn;function Pn(){return(Pn=e((()=>{en(),De(),b(),nn(),R=/*@__PURE__*/ E(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tn;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=w(t),a;for(let o of n){if(o._zod.def.when){if(_e(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Pe;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(he(t.issues,n,e),i||=w(t,n))});else{if(t.issues.length===n)continue;he(t.issues,n,e),i||=w(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(w(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Pe;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Pe;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return nt(this,`~standard`,an(this))},set"~standard"(e){Je(this,`~standard`,e)}}),gn=(e,t)=>e.issues.length?{issues:e.issues.map(e=>ve(e,t,T()))}:{value:e.value},_n=/*@__PURE__*/ E(`$ZodArray`,(e,t)=>{R.init(e,t);let n=tt.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>on(t,r,e)));else if(on(c,r,e),s&&c.issues.length!==0&&w(c))break}return o.length?Promise.all(o).then(()=>r):r}}),vn=/*@__PURE__*/ E(`$ZodUnion`,(e,t)=>{R.init(e,t),C(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),C(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),C(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),C(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>Ce(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>sn(t,r,e,i)):sn(o,r,e,i)}}),yn=/*@__PURE__*/ E(`$ZodIntersection`,(e,t)=>{R.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>ln(e,t,n)):ln(e,i,a)}}),bn=/*@__PURE__*/ E(`$ZodEnum`,(e,t)=>{R.init(e,t);let n=xe(t.entries),r=new Set(n);e._zod.values=r,C(e,`pattern`,e=>{let t=xe(e.def.entries).filter(e=>je.has(typeof e));return RegExp(t.length?`^(${t.map(e=>we(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),xn=/*@__PURE__*/ E(`$ZodLiteral`,(e,t)=>{R.init(e,t);let n=new Set(t.values);e._zod.values=n,C(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?we(e):e?we(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Sn=/*@__PURE__*/ E(`$ZodTransform`,(e,t)=>{R.init(e,t),e._zod.optin=`optional`,tt.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new $e(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Pe;return n.value=i,n}}),Cn=/*@__PURE__*/ E(`$ZodOptional`,(e,t)=>{R.init(e,t),C(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,C(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?/* @__PURE__ */ new Set([...t,void 0]):void 0}),C(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Ce(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>un(e,t)):un(e,r)}return t.innerType._zod.run(e,n)}}),wn=/*@__PURE__*/ E(`$ZodExactOptional`,(e,t)=>{Cn.init(e,t),C(e,`values`,e=>e.def.innerType._zod.values),C(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Tn=/*@__PURE__*/ E(`$ZodNullable`,(e,t)=>{R.init(e,t),C(e,`optin`,e=>e.def.innerType._zod.optin),C(e,`optout`,e=>e.def.innerType._zod.optout),C(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Ce(t.source)}|null)$`):void 0}),C(e,`values`,e=>e.def.innerType._zod.values?/* @__PURE__ */ new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),En=/*@__PURE__*/ E(`$ZodDefault`,(e,t)=>{R.init(e,t),e._zod.optin=`defaulted`,C(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>dn(e,t)):dn(r,t)}}),Dn=/*@__PURE__*/ E(`$ZodPrefault`,(e,t)=>{R.init(e,t),e._zod.optin=`defaulted`,C(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),On=/*@__PURE__*/ E(`$ZodNonOptional`,(e,t)=>{R.init(e,t),C(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>fn(t,e)):fn(i,e)}}),kn=/*@__PURE__*/ E(`$ZodCatch`,(e,t)=>{R.init(e,t),C(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),C(e,`optout`,e=>e.def.innerType._zod.optout),C(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>pn(e,r,t,n)):pn(e,r,t,n)}}),An=/*@__PURE__*/ E(`$ZodPipe`,(e,t)=>{R.init(e,t),C(e,`values`,e=>e.def.in._zod.values),C(e,`optin`,e=>e.def.in._zod.optin),C(e,`optout`,e=>e.def.out._zod.optout),C(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>L(e,t.in,n)):L(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>L(e,t.out,n)):L(r,t.out,n)}}),jn=/*@__PURE__*/ E(`$ZodReadonly`,(e,t)=>{R.init(e,t),C(e,`propValues`,e=>e.def.innerType._zod.propValues),C(e,`values`,e=>e.def.innerType._zod.values),C(e,`optin`,e=>e.def.innerType?._zod?.optin),C(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(mn):mn(r)}}),Mn=/*@__PURE__*/ E(`$ZodLazy`,(e,t)=>{R.init(e,t),Se(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),C(e,`pattern`,e=>e.innerType?._zod?.pattern),C(e,`propValues`,e=>e.innerType?._zod?.propValues),C(e,`optin`,e=>e.innerType?._zod?.optin??void 0),C(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Nn=/*@__PURE__*/ E(`$ZodCustom`,(e,t)=>{F.init(e,t),R.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>hn(t,n,r,e));hn(i,n,r,e)}})})))()}function Fn(e){return typeof e==`object`&&!!e}function In(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function Ln(e,t,n){let r=Gn.get(e);if(r!==void 0)return r?V:z;if(t.has(e))return V;t.add(e);let i=z,a=e=>{if(i!==V&&e?._zod){let r=Ln(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=z;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?B:o.value?._zod?Ln(o.value,t,n):z;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Ne(c);s(e?o(e,!0):B),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Ln(r,t,!1):B);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),Rn(e,i)}function Rn(e,t){return t!==B&&Gn.set(e,t===V),t}function zn(e,t){let n=e.buckets.get(t);return n||(n=/* @__PURE__ */ new WeakMap,e.buckets.set(t,n)),n}function Bn(){return qn}function Vn(e,t){let n=e[Un]?.backEdges;return n!==void 0&&Fn(t)&&n.has(t)}var Hn,Un,Wn,Gn,z,B,V,Kn,H,qn;function Jn(){return(Jn=e((()=>{b(),Hn=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Un=`~memo`,Wn=[],Gn=/*@__PURE__*/ new WeakMap,z=0,B=1,V=2,H=[],qn={alloc(e,t,n){let r=Kn;if(!r)return n;Kn=void 0;let i={value:n,issues:null};return r.set(t.value,i),H.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Vn(n,e.value))throw new Hn;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Ln(e,/* @__PURE__ */ new Set,!1);if(i===z)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===V||r?n=!0:r=!0}let l=s.value;if(!Fn(l))return t(s,c);let u=c[Un];u||(u={buckets:/* @__PURE__ */ new WeakMap,backEdges:void 0},c[Un]=u);let d;i===c?d=a:(d=zn(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...In(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=/* @__PURE__ */ new WeakSet),u.backEdges.add(f.value)),s;Kn=d;let p=H.length,m=t(s,c);Kn=void 0;let h=H.length>p?H.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?In(e.issues):Wn),e)):(h&&(h.issues=m.issues.length?In(m.issues):Wn),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}})))()}function Yn(){return{localeError:Xn()}}var Xn;function Zn(){return(Zn=e((()=>{b(),Xn=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(ye(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${y(e.values[0])}`:`Invalid option: expected one of ${Oe(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Oe(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}})))()}function Qn(){return new er}var $n,er,U;function tr(){return(tr=e((()=>{er=class{constructor(){this._map=/* @__PURE__ */ new WeakMap,this._idmap=/* @__PURE__ */ new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=/* @__PURE__ */ new WeakMap,this._idmap=/* @__PURE__ */ new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},($n=globalThis).__zod_globalRegistry??($n.__zod_globalRegistry=Qn()),U=globalThis.__zod_globalRegistry})))()}// @__NO_SIDE_EFFECTS__
|
|
16
|
+
function nr(e,t){return new Xt({check:`max_length`,...x(t),maximum:e})}// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function rr(e,t){return new Zt({check:`min_length`,...x(t),minimum:e})}// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function ir(e,t){return new Qt({check:`length_equals`,...x(t),length:e})}// @__NO_SIDE_EFFECTS__
|
|
19
|
+
function ar(e){return new $t({check:`overwrite`,tx:e})}// @__NO_SIDE_EFFECTS__
|
|
20
|
+
function or(e,t,n){return new e({type:`array`,element:t,...x(n)})}// @__NO_SIDE_EFFECTS__
|
|
21
|
+
function sr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...x(n)})}// @__NO_SIDE_EFFECTS__
|
|
22
|
+
function cr(e,t){let n=/* @__PURE__ */ lr(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(S(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(S(r))}},e(t.value,t)),t);return n}// @__NO_SIDE_EFFECTS__
|
|
23
|
+
function lr(e,t){let n=new F({check:`custom`,...x(t)});return n._zod.check=e,n}function ur(){return(ur=e((()=>{en(),b()})))()}function W(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&ge(e,t,n[t]);return e}function dr(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??U,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:/* @__PURE__ */ new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function G(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function K(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,K(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&W(o.schema,c),t.io===`input`&&q(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function fr(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function pr(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=/* @__PURE__ */ new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${fr(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+fr(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
24
|
+
|
|
25
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function mr(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;mr(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function hr(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function gr(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!yr.has(e))return null;t.push(n)}let n={},r=/* @__PURE__ */ new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??hr(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}let i=e.length===1?e[0]:gr(e)??{allOf:e};ge(n,r,i)}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=hr(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function _r(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of yr)if(t in e)return;let n=t.filter(e=>br.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=gr(t);else{let e=n[0],i=br.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>gr([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,W(e,r))}function vr(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):W(i,s),W(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())mr(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=/* @__PURE__ */ new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])_r(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}W(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ge(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:J(t,`input`,e.processors),output:J(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function q(e,t){let n=t??{seen:/* @__PURE__ */ new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return q(r.element,n);if(r.type===`set`)return q(r.valueType,n);if(r.type===`lazy`)return q(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return q(r.innerType,n);if(r.type===`intersection`)return q(r.left,n)||q(r.right,n);if(r.type===`record`||r.type===`map`)return q(r.keyType,n)||q(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:q(r.in,n)||q(r.out,n);if(r.type===`object`){for(let e in r.shape)if(q(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(q(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(q(e,n))return!0;return!!(r.rest&&q(r.rest,n))}return!1}var yr,br,xr,J;function Sr(){return(Sr=e((()=>{tr(),b(),yr=/* @__PURE__ */ new Set([`type`,`properties`,`required`,`additionalProperties`]),br=[`oneOf`,`anyOf`],xr=(e,t={})=>n=>{let r=dr({...n,processors:t});return K(e,r),pr(r,e),vr(r,e)},J=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=dr({...i??{},target:a,io:t,processors:n});return K(e,o),pr(o,e),vr(o,e)}})))()}function Cr(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Nr[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Y(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Y(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&X(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&X(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Er(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Or(t,i.mime);for(let e of i.patterns??[])Dr(t,e);return t}function wr(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(G(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Ur):JSON.parse(o)}var Y,X,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr;function Zr(){return(Zr=e((()=>{Yt(),Pn(),Sr(),b(),Y=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},X=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Tr=(e,t)=>{Y(e,`minimum`,t),X(e,`maximum`,t)},Er=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Dr=(e,t)=>{e.patterns??=/* @__PURE__ */ new Set,e.patterns.add(t)},Or=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},kr=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Ar=(e,t)=>Y(e,`minimum`,t.minimum),jr=(e,t)=>X(e,`maximum`,t.maximum),Mr=e=>(t,n)=>{kr(t,n.format);let[r,i]=e[n.format];Y(t,`minimum`,r),X(t,`maximum`,i)},Nr={greater_than:(e,t)=>Y(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>X(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Er(e,t.value),number_format:Mr(et),bigint_format:Mr(me),min_length:Ar,max_length:jr,length_equals:(e,t)=>Tr(e,t.length),min_size:Ar,max_size:jr,size_equals:(e,t)=>Tr(e,t.size),string_format:(e,t)=>{kr(e,t.format),t.pattern&&Dr(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Or(e,t.mime)},Pr=(e,t,n,r)=>{let i=e._zod.def,a=xe(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},Fr=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(G(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(G(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Ir=(e,t,n,r)=>{G(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Lr=(e,t,n,r)=>{G(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Rr=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Cr(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=K(a.element,t,{...r,path:[...r.path,`items`]})},zr=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>K(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Br=(e,t,n,r)=>{let i=e._zod.def,a=K(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=K(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Vr=(e,t,n,r)=>{let i=e._zod.def,a=K(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Hr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ur=Symbol(),Wr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=wr(i.defaultValue,e,t,n,r);o!==Ur&&(n.default=o)},Gr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=wr(i.defaultValue,e,t,n,r);o!==Ur&&(n._prefault=o)},Kr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{G(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},qr=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;K(o,t,r);let s=t.seen.get(e);s.ref=o},Jr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Yr=(e,t,n,r)=>{let i=e._zod.def;K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Xr=(e,t,n,r)=>{let i=e._zod.innerType;K(i,t,r);let a=t.seen.get(e);a.ref=i}})))()}function Qr(){tt.localeError||T(Yn())}function $r(){tt.memoizer||T({memoizer:Bn()})}function ei(e,t){return/* @__PURE__ */ or(hi,e,t)}function ti(e,t){return new gi({type:`union`,options:e,...x(t)})}function ni(e,t){return new _i({type:`intersection`,left:e,right:t})}function ri(e){return new bi({type:`transform`,transform:e})}function ii(e){return new xi({type:`optional`,innerType:e})}function ai(e){return new Si({type:`optional`,innerType:e})}function oi(e){return new Ci({type:`nullable`,innerType:e})}function si(e,t){return new wi({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Te(t)}})}function ci(e,t){return new Ti({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Te(t)}})}function li(e,t){return new Ei({type:`nonoptional`,innerType:e,...x(t)})}function ui(e,t){return new Di({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:He(t)})}function di(e,t){return new Oi({type:`pipe`,in:e,out:t})}function fi(e){return new ki({type:`readonly`,innerType:e})}function pi(e,t={}){return/* @__PURE__ */ sr(ji,e,t)}function mi(e,t){return/* @__PURE__ */ cr(e,t)}var Z,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji;function Mi(){return(Mi=e((()=>{De(),Jn(),Pn(),b(),tr(),ur(),Zr(),Sr(),Zn(),Fe(),Z=/*@__PURE__*/ E(`ZodType`,(e,t)=>(Qr(),R.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ae(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ue(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(pi(e,t))},superRefine(e,t){return this.check(mi(e,t))},overwrite(e){return this.check(/* @__PURE__ */ ar(e))},optional(){return ii(this)},exactOptional(){return ai(this)},nullable(){return oi(this)},nullish(){return ii(oi(this))},nonoptional(e){return li(this,e)},array(){return ei(this)},or(e){return ti([this,e])},and(e){return ni(this,e)},transform(e){return di(this,ri(e))},default(e){return si(this,e)},prefault(e){return ci(this,e)},catch(e){return ui(this,e)},pipe(e){return di(this,e)},readonly(){return fi(this)},describe(e){let t=this.clone();return U.add(t,{description:e}),t},meta(...e){if(e.length===0)return U.get(this);let t=this.clone();return U.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return nt(this,`~standard`,{...an(this),jsonSchema:{input:J(this,`input`),output:J(this,`output`)}})},set"~standard"(e){Je(this,`~standard`,e)},parse:function e(t,n){return Ke(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Xe(this,t,n,{callee:e})},safeParse(e,t){return Re(this,e,t)},async safeParseAsync(e,t){return qe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Je(this,`spa`,e)},validate(e,t){return Be(this,e,t)},validateAsync(e,t){return ze(this,e,t)},encode:function e(t,n){return Ye(this,t,n,{callee:e})},decode:function e(t,n){return Ze(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Ve(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Ge(this,t,n,{callee:e})},safeEncode(e,t){return Qe(this,e,t)},safeDecode(e,t){return Ie(this,e,t)},async safeEncodeAsync(e,t){return Le(this,e,t)},async safeDecodeAsync(e,t){return We(this,e,t)},toJSONSchema(e){return xr(this,{})(e)},get description(){return U.get(this)?.description},get _def(){return this._zod.def}}),hi=/*@__PURE__*/ E(`ZodArray`,(e,t)=>{$r(),_n.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rr(e,t,n,r),e.element=t.element},{min(e,t){return this.check(/* @__PURE__ */ rr(e,t))},nonempty(e){return this.check(/* @__PURE__ */ rr(1,e))},max(e,t){return this.check(/* @__PURE__ */ nr(e,t))},length(e,t){return this.check(/* @__PURE__ */ ir(e,t))},unwrap(){return this.element}}),gi=/*@__PURE__*/ E(`ZodUnion`,(e,t)=>{vn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zr(e,t,n,r),e.options=t.options}),_i=/*@__PURE__*/ E(`ZodIntersection`,(e,t)=>{yn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Br(e,t,n,r)}),vi=/*@__PURE__*/ E(`ZodEnum`,(e,t)=>{bn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pr(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new vi({...t,checks:[],...x(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new vi({...t,checks:[],...x(r),entries:i})}}),yi=/*@__PURE__*/ E(`ZodLiteral`,(e,t)=>{xn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fr(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),bi=/*@__PURE__*/ E(`ZodTransform`,(e,t)=>{$r(),Sn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lr(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new $e(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(S(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(S(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),xi=/*@__PURE__*/ E(`ZodOptional`,(e,t)=>{Cn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Si=/*@__PURE__*/ E(`ZodExactOptional`,(e,t)=>{wn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ci=/*@__PURE__*/ E(`ZodNullable`,(e,t)=>{Tn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wi=/*@__PURE__*/ E(`ZodDefault`,(e,t)=>{En.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Ti=/*@__PURE__*/ E(`ZodPrefault`,(e,t)=>{Dn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ei=/*@__PURE__*/ E(`ZodNonOptional`,(e,t)=>{On.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Di=/*@__PURE__*/ E(`ZodCatch`,(e,t)=>{kn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Oi=/*@__PURE__*/ E(`ZodPipe`,(e,t)=>{An.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qr(e,t,n,r),e.in=t.in,e.out=t.out}),ki=/*@__PURE__*/ E(`ZodReadonly`,(e,t)=>{jn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jr(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ai=/*@__PURE__*/ E(`ZodLazy`,(e,t)=>{Mn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xr(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ji=/*@__PURE__*/ E(`ZodCustom`,(e,t)=>{Nn.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ir(e,t,n,r)})})))()}function Ni({primary:e,filters:t,onRefresh:n,refreshing:r,onReset:i,actions:a,mobileActions:o,extra:s,filterTitle:c,actionTitle:l,className:u}){let d=n?/* @__PURE__ */ k(g,{onClick:n,loading:r}):null,f=Ct(),p=Pi(a)||Pi(s)?/* @__PURE__ */ A(O,{children:[/* @__PURE__ */ k(it,{ref:f.probeRef,children:a}),s]}):void 0;return/* @__PURE__ */ k(ot,{className:u,primary:/* @__PURE__ */ A(O,{children:[e,t,d,i?/* @__PURE__ */ k(h,{onClick:i}):null]}),actions:p,mobilePrimary:/* @__PURE__ */ A(O,{children:[e,d]}),mobileFilters:Pi(t)?t:void 0,mobileActions:o??(f.rendered?a:!1),filterTitle:c,actionTitle:l,onFilterReset:i})}var Pi;function Fi(){return(Fi=e((()=>{at(),ee(),rt(),Pi=e=>!!e})))()}var Ii;function Li(){return(Li=e((()=>{Ii={captchaEnabled:{title:`登录验证码`,description:`开启后登录必须输入图形验证码`},captchaComplexity:{title:`验证码复杂度`,description:`仅在开启登录验证码后生效`},uploadValidateType:{title:`校验真实文件类型`,description:`基于 magic bytes 识别,防止伪造 MIME type 绕过校验`},uploadAllowedTypes:{title:`允许的 MIME 类型`,description:`支持通配符(如 image/*);填 * 或 */* 放行全部类型`},uploadMaxSizeMb:{title:`单文件大小上限(MB)`,description:`0 表示不限制;超过的上传(含分片)将被拒绝`},chunkThresholdMb:{title:`分片上传阈值(MB)`,description:`超过该大小的文件走分片上传 + 断点续传,不超过则单请求上传;受反向代理请求体上限约束`},chunkSizeMb:{title:`分片大小(MB)`,description:`服务端裁定的分片基线,不低于对象存储要求的最小分片;文件过大时自动上调以不超过片数上限`},watermark:{title:`水印`},"watermark.enabled":{title:`页面水印`,description:`开启后全站叠加水印(防截图泄漏)`},"watermark.content":{title:`水印文本`,description:`留空则显示当前用户名`},"watermark.fontSize":{title:`字体大小(px)`},"watermark.opacity":{title:`透明度(1-100)`},preferencesEntryEnabled:{title:`偏好设置入口`,description:`显示在用户头像下拉菜单,关闭后隐藏“偏好设置”(含锁屏密码设置)`}}})))()}function Ri(e){return(e.def.checks??[]).map(e=>e._zod.def)}function Q(e){if(e instanceof Ai)return Q(e.unwrap());if(e instanceof vi)return Object.values(e.enum).filter(e=>typeof e==`string`);if(e instanceof yi){let t=[...e.values];return t.every(e=>typeof e==`string`)?t:void 0}if(e instanceof gi){let t=e.options.map(e=>Q(e));return t.every(e=>e!==void 0)?t.flat():void 0}if(e instanceof _i){let t=Q(e.def.left),n=Q(e.def.right);return t&&n?t.filter(e=>n.includes(e)):t??n}}function $(e){let t=e,n={},r=!1;for(;;){let e=t.meta();if(e&&(e.title||e.description)&&!n.title&&(n={title:e.title,description:e.description}),t instanceof Ai){let e=t.unwrap();if(!(e instanceof Z))return{meta:n,leaf:{kind:`unknown`}};t=e;continue}let i=t.def;if(i.type===`nullable`&&(r=!0),(i.type==="default"||i.type===`prefault`||i.type===`optional`||i.type===`nullable`)&&i.innerType)t=i.innerType;else break}let i=t.def,a=Q(t);if(a?.length)return{meta:n,leaf:{kind:`enum`,options:a}};switch(i.type){case`boolean`:return{meta:n,leaf:{kind:`boolean`}};case`number`:{let e=Ri(t),i=e.find(e=>e.check===`greater_than`),a=e.find(e=>e.check===`less_than`),o=e.some(e=>e.check===`number_format`)||t.def.format===`safeint`,s=(e,t)=>e?.value===void 0?void 0:e.inclusive===!1&&o?e.value+t:e.value;return{meta:n,leaf:{kind:`number`,int:o,min:s(i,1),max:s(a,-1),nullable:r}}}case`enum`:return{meta:n,leaf:{kind:`enum`,options:Object.values(i.entries??{})}};case`string`:return{meta:n,leaf:{kind:`string`,maxLength:Ri(t).find(e=>e.check===`max_length`)?.maximum}};case`array`:{let e=i.element?$(i.element):null;return e?.leaf.kind===`string`||e?.leaf.kind===`enum`?{meta:n,leaf:{kind:`string-array`,maxItems:Ri(t).find(e=>e.check===`max_length`)?.maximum}}:{meta:n,leaf:{kind:`unknown`}}}case`object`:return{meta:n,leaf:{kind:`object`,shape:t.shape}};default:return{meta:n,leaf:{kind:`unknown`}}}}function zi(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Bi(e,t,n){if(t.length===1)return{...e,[t[0]]:n};let[r,...i]=t,a=e[r]??{};return{...e,[r]:Bi(a,i,n)}}function Vi(e,t){return t.reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e)}function Hi({schema:e,value:a,inheritedValue:o,onChange:s,disabled:c,allowRevert:l=!0,enumLabels:u,excludeFields:d,fieldLabels:f}){let p=(e,t)=>s(Bi(a,e,t)),m=(e,s)=>{let d=e.join(`.`),m=Vi(a,e),h=o?Vi(o,e):void 0,g=o!==void 0&&!zi(m,h),ee=l&&g&&!c?/* @__PURE__ */ k(se,{size:`small`,theme:`borderless`,onClick:()=>p(e,h),children:`恢复继承`}):null,te=s.meta.title??f?.[d]?.title??e[e.length-1],_;switch(s.leaf.kind){case`boolean`:_=/* @__PURE__ */ k(i,{checked:!!m,disabled:c,onChange:t=>p(e,t)});break;case`number`:{let{min:t,max:n,int:i,nullable:a}=s.leaf;_=/* @__PURE__ */ k(r,{style:{width:160},min:t,max:n,precision:i?0:void 0,disabled:c,value:typeof m==`number`?m:void 0,placeholder:a?`留空 = 未设置`:void 0,onChange:t=>{typeof t==`number`&&Number.isFinite(t)?p(e,i?Math.trunc(t):t):a&&p(e,null)}});break}case`enum`:_=/* @__PURE__ */ k(n,{style:{width:200},disabled:c,value:typeof m==`string`?m:void 0,optionList:s.leaf.options.map(e=>({value:e,label:u?.[d]?.[e]??e})),onChange:t=>p(e,t)});break;case`string`:_=/* @__PURE__ */ k(t,{style:{width:280},disabled:c,maxLength:s.leaf.maxLength,value:typeof m==`string`?m:``,onChange:t=>p(e,t)});break;case`string-array`:_=/* @__PURE__ */ k(fe,{style:{width:360,maxWidth:`100%`},disabled:c,max:s.leaf.maxItems,value:Array.isArray(m)?m:[],allowDuplicates:!1,separator:[`,`,` `,`
|
|
26
|
+
`],addOnBlur:!0,placeholder:`输入后按回车添加`,onChange:t=>p(e,t)});break;default:_=/* @__PURE__ */ k(`span`,{style:{color:`var(--arc-antd-color-text-2)`},children:`该字段类型暂不支持在通用设置页编辑`})}return/* @__PURE__ */ k(ut,{title:te,description:s.meta.description??f?.[d]?.description,control:_,overridden:g,extra:ee},d)},h=(e,t)=>{let n=Object.entries(e).filter(([e])=>!d?.includes([...t,e].join(`.`))),r=n.filter(([,e])=>$(e).leaf.kind!==`object`),i=n.filter(([,e])=>$(e).leaf.kind===`object`);return/* @__PURE__ */ A(O,{children:[r.map(([e,n],r)=>/* @__PURE__ */ A(gt,{children:[r>0?/* @__PURE__ */ k(ft,{}):null,m([...t,e],$(n))]},e)),i.map(([e,n])=>{let r=$(n);return r.leaf.kind===`object`?/* @__PURE__ */ k(lt,{title:r.meta.title??f?.[[...t,e].join(`.`)]?.title??e,description:r.meta.description??f?.[[...t,e].join(`.`)]?.description,children:h(r.leaf.shape,[...t,e])},e):null})]})},g=$(e);return/* @__PURE__ */ k(`div`,{children:g.leaf.kind===`object`?h(g.leaf.shape,[]):null})}function Ui(){return(Ui=e((()=>{ie(),Mi(),dt()})))()}function Wi(e){return D(()=>{let t=[],n=(e,r)=>{for(let i of e){if(i.type===`menu`&&i.path&&i.status===`enabled`&&i.visible){let e=i.isExternal&&i.embed?`/embed/${i.id}`:i.path;t.push({id:i.id,title:i.title,path:e,icon:i.icon,breadcrumb:r})}i.children?.length&&n(i.children,i.type===`directory`?[...r,i.title]:r)}};return n(e,[]),t},[e])}function Gi(){return(Gi=e((()=>{})))()}function Ki(e,t){return!j(t,e)||M(e.defaults,t)!==M(At,t)}function qi({value:e,disabled:t,onChange:r,label:i}){let a=Dt.find(t=>t.key===e),o=a?.light.primary??e,s=Dt.map(e=>({value:e.key,label:e.name}));return a||s.push({value:e,label:e}),/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__color`,children:[/* @__PURE__ */ k(n,{"aria-label":i,value:e,optionList:s,disabled:t,onChange:e=>{typeof e==`string`&&r(e)}}),/* @__PURE__ */ k(de,{alpha:!1,usePopover:!0,value:de.colorStringToValue(o),onChange:e=>{t||r(e.hex)},children:/* @__PURE__ */ k(`button`,{type:`button`,className:`preference-policy-editor__swatch`,disabled:t,"aria-label":`自定义主题色`,title:`自定义主题色`,style:{backgroundColor:o}})})]})}function Ji({value:e,onChange:s,disabled:l}){let{hasPermission:d}=St(),f=d(`system:menu:list`),p=Et({enabled:f}),m=Tt(),h=Wi(p.data??m.data??[]),{draftParams:g,bind:ee,setField:te,handleReset:ne}=wt({defaults:Yi,listKey:Lt.module(`ui`),refetchOnSearch:!1}),re=D(()=>{let t=[{value:`/`,label:`首页(默认)`}],n=/* @__PURE__ */ new Set([`/`]);for(let e of h)!e.path.startsWith(`/`)||e.path.startsWith(`//`)||n.has(e.path)||(n.add(e.path),t.push({value:e.path,label:[...e.breadcrumb,e.title].join(` / `)}));let r=e.defaults.homePath;return n.has(r)||t.push({value:r,label:`${r}(当前已配置)`}),t},[h,e.defaults.homePath]),ie=kt(),oe=D(()=>{let t=g.keyword.trim();return N.filter(n=>g.group&&n.group!==g.group||g.changedOnly&&!Ki(e,n.path)||g.lockedOnly&&j(n.path,e)?!1:!t||[n.label,n.path,n.description,Nt.find(e=>e.id===n.group)?.label,n.applicableWhen&&jt(n.applicableWhen)].filter(Boolean).some(e=>Ot(String(e),t)))},[g,e,ie]),de=N.filter(t=>Ki(e,t.path)).length,fe=N.filter(t=>!j(t.path,e)).length,v=Pt(e,{});function y(t,n){s({...e,defaults:P(e.defaults,t,n)})}function pe(t){s({defaults:P(e.defaults,t,M(At,t)),allowUserOverride:P(e.allowUserOverride,t,!0)})}function b(i){let{path:a,kind:o}=i,s=M(e.defaults,a),c=`${i.label}默认值`;return o===`boolean`?/* @__PURE__ */ k(n,{"aria-label":c,value:String(s),optionList:Zi,disabled:l,onChange:e=>y(a,e===`true`)}):o===`number`?/* @__PURE__ */ k(r,{"aria-label":c,value:typeof s==`number`?s:void 0,min:i.min,max:i.max,step:i.step??1,precision:i.step&&i.step<1?void 0:0,suffix:i.unit,disabled:l,onChange:e=>{typeof e==`number`&&Number.isFinite(e)&&y(a,e)}}):o===`color`?/* @__PURE__ */ k(qi,{value:String(s),disabled:l,label:c,onChange:e=>y(a,e)}):o===`home-path`?/* @__PURE__ */ k(n,{"aria-label":c,value:String(s),optionList:re,filter:!0,disabled:l,loading:f?p.isFetching:m.isFetching,onChange:e=>{typeof e==`string`&&y(a,e)}}):o===`select`?/* @__PURE__ */ k(n,{"aria-label":c,value:typeof s==`number`?s:String(s),optionList:[...i.options??[]],disabled:l,onChange:e=>{(typeof e==`string`||typeof e==`number`)&&y(a,e)}}):/* @__PURE__ */ k(t,{"aria-label":c,value:String(s),disabled:l,onChange:e=>y(a,e)})}function me(e){let t=Mt(e.path,v);return/* @__PURE__ */ A(`span`,{className:`preference-policy-editor__description`,children:[e.description?/* @__PURE__ */ k(`span`,{children:e.description}):null,e.applicableWhen?/* @__PURE__ */ A(`span`,{children:[`适用条件:`,jt(e.applicableWhen)]}):null,t?null:/* @__PURE__ */ k(`span`,{className:`preference-policy-editor__hint`,children:`当前系统默认组合不满足条件,满足条件后生效。`}),e.path===`homePath`?/* @__PURE__ */ A(`span`,{children:[`用户无权访问指定页面时回到可访问的首页。`,f?``:`当前仅列出你可访问的页面。`]}):null]})}return/* @__PURE__ */ k(`div`,{className:`preference-policy-editor`,children:/* @__PURE__ */ A(lt,{title:`偏好策略`,description:`设置每项偏好的系统默认值,并决定用户是否可以修改。`,children:[/* @__PURE__ */ k(ue,{type:`info`,closeIcon:null,className:`preference-policy-editor__intro`,description:`禁止用户修改的项目会在个人偏好中隐藏并使用系统值;子项是否显示取决于父项的生效值。更改将在保存后统一生效。`}),/* @__PURE__ */ k(Ni,{primary:/* @__PURE__ */ k(u,{placeholder:`搜索偏好名称 / 说明`,...ee(`keyword`)}),filters:/* @__PURE__ */ A(O,{children:[/* @__PURE__ */ k(c,{placeholder:`全部分组`,items:Xi,...ee(`group`)}),/* @__PURE__ */ k(a,{checked:g.changedOnly,onChange:e=>te(`changedOnly`)(!!e.target.checked),children:`仅看已调整`}),/* @__PURE__ */ k(a,{checked:g.lockedOnly,onChange:e=>te(`lockedOnly`)(!!e.target.checked),children:`仅看禁止修改`})]}),onReset:ne}),/* @__PURE__ */ A(o.Text,{type:`tertiary`,size:`small`,children:[`共 `,N.length,` 项 · 已调整 `,de,` 项 · 禁止修改 `,fe,` 项 · 当前显示 `,oe.length,` 项`]}),oe.length===0?/* @__PURE__ */ k(ce,{description:`没有符合筛选条件的偏好`}):null,Nt.map(t=>{let n=oe.filter(e=>e.group===t.id);return n.length===0?null:/* @__PURE__ */ A(lt,{title:t.label,children:[/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__head`,"aria-hidden":`true`,children:[/* @__PURE__ */ k(`span`,{children:`偏好设置`}),/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__controls`,children:[/* @__PURE__ */ k(`span`,{children:`系统默认值`}),/* @__PURE__ */ k(`span`,{children:`用户可修改`}),/* @__PURE__ */ k(`span`,{})]})]}),n.map((t,n)=>/* @__PURE__ */ A(gt,{children:[n>0?/* @__PURE__ */ k(ft,{}):null,/* @__PURE__ */ k(`div`,{className:`preference-policy-editor__row`,"data-preference-path":t.path,children:/* @__PURE__ */ k(ut,{title:t.label,description:me(t),style:{flexWrap:`wrap`},control:/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__controls`,children:[/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__value`,children:[/* @__PURE__ */ k(`span`,{className:`preference-policy-editor__mobile-label`,children:`系统默认值`}),b(t)]}),/* @__PURE__ */ A(`div`,{className:`preference-policy-editor__override`,children:[/* @__PURE__ */ k(`span`,{className:`preference-policy-editor__mobile-label`,children:`用户可修改`}),/* @__PURE__ */ k(i,{"aria-label":`${t.label}用户可修改`,disabled:l,checked:j(t.path,e),onChange:n=>s({...e,allowUserOverride:P(e.allowUserOverride,t.path,n)})})]}),/* @__PURE__ */ k(ae,{content:`恢复内置默认值并允许用户修改`,children:/* @__PURE__ */ k(le,{children:/* @__PURE__ */ k(se,{theme:`borderless`,size:`small`,"aria-label":`恢复${t.label}内置策略`,icon:/* @__PURE__ */ k(_,{size:14}),disabled:l||!Ki(e,t.path),onClick:()=>pe(t.path)})})})]})})})]},t.path))]},t.id)})]})})}var Yi,Xi,Zi;function Qi(){return(Qi=e((()=>{ie(),te(),Fi(),l(),dt(),Gi(),Yi={keyword:``,group:void 0,changedOnly:!1,lockedOnly:!1},Xi=Nt.map(e=>({value:e.id,label:e.label})),Zi=[{value:`true`,label:`开启`},{value:`false`,label:`关闭`}]})))()}function $i(){let e=Bt(),t=D(()=>(e.data??[]).filter(({module:e})=>e!==`identitySecurity`),[e.data]),[n,r]=Vt(`module`),[i,a]=vt(!1),o=n===null?null:t.find(e=>e.module===n)??null,s=o??(i?null:t[0]??null),c=s?.module??null;return _t(()=>{n!==null&&o===null&&e.data&&!e.isFetching&&r(null)},[n,o,e.data,e.isFetching,r]),/* @__PURE__ */ k(`div`,{className:`page-container page-container--stretch`,children:/* @__PURE__ */ k(m,{defaultSize:260,minSize:200,maxSize:400,persistKey:`system-settings`,style:{flex:1,minHeight:0,overflow:`hidden`},showDetail:c!==null,onBack:()=>r(null),onResponsiveChange:a,master:/* @__PURE__ */ k(mt,{title:`设置模块`,loading:e.isLoading,emptyText:`没有可访问的设置模块`,dataSource:t,renderItem:e=>/* @__PURE__ */ k(ht,{active:e.module===c,onClick:()=>r(e.module),icon:/* @__PURE__ */ k(qt,{size:16}),primary:e.title,secondary:e.version>0?`v${e.version}`:void 0,meta:/* @__PURE__ */ A(`span`,{style:{display:`inline-flex`,gap:6,alignItems:`center`},children:[/* @__PURE__ */ k(v,{size:`small`,color:`grey`,children:`系统级`}),e.overriddenCount>0?/* @__PURE__ */ A(v,{size:`small`,color:`orange`,children:[e.overriddenCount,` 项覆盖`]}):null]}),extra:e.page?/* @__PURE__ */ k(ae,{content:`有专用设置页面`,children:/* @__PURE__ */ k(Wt,{size:14,style:{display:`block`,color:`var(--arc-antd-color-text-2)`}})}):void 0,extraAlwaysVisible:!!e.page},e.module)}),detail:c&&s?/* @__PURE__ */ k(ea,{module:c,meta:s},c):/* @__PURE__ */ k(`div`,{style:{padding:48},children:/* @__PURE__ */ k(ce,{...ct(`NoContent`,120),description:`选择左侧模块查看或修改设置`})})})})}function ea({module:e,meta:t}){let n=It[e],r=zt(e),i=Rt(e),a=r.data,[o,c]=vt(null);_t(()=>{c(null)},[a?.version]);let l=D(()=>o??a?.effective??null,[o,a]),u=o!==null&&JSON.stringify(o)!==JSON.stringify(a?.effective),d=e===`ui`&&l?l:null,f=e===`ui`&&a?a.effective:null,p=d&&f?N.filter(({path:e})=>M(d.preferences.defaults,e)!==M(f.preferences.defaults,e)||M(d.preferences.allowUserOverride,e)!==M(f.preferences.allowUserOverride,e)):[],h=p.filter(({path:e})=>d&&!M(d.preferences.allowUserOverride,e)).length;async function g(){if(!a||!l)return;let t=xt[e].input.safeParse({body:{version:a.version,data:l}});if(t.success)try{await i.mutateAsync(t.data),c(null),s.success(`设置已保存`)}catch(e){e instanceof yt&&e.status===409&&(c(null),r.refetch())}else{let e=t.error.issues[0];s.error(`${e.path.join(`.`)||`表单`}:${e.message}`)}}return/* @__PURE__ */ k(m.Body,{padding:24,children:/* @__PURE__ */ A(`div`,{style:{maxWidth:e===`ui`?1040:760},children:[/* @__PURE__ */ A(`div`,{style:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,gap:16,marginBottom:8},children:[/* @__PURE__ */ A(`div`,{children:[/* @__PURE__ */ k(na,{heading:5,style:{margin:0},children:n.title}),/* @__PURE__ */ k(ta,{type:`tertiary`,children:n.description})]}),!t.page&&t.canWrite?/* @__PURE__ */ k(se,{theme:`solid`,icon:/* @__PURE__ */ k(re,{size:14}),loading:i.isPending,disabled:!u,onClick:()=>void g(),children:`保存`}):null]}),/* @__PURE__ */ A(`div`,{style:{display:`flex`,gap:8,flexWrap:`wrap`,marginBottom:12},children:[/* @__PURE__ */ k(v,{color:`grey`,children:`系统级`}),a?/* @__PURE__ */ A(v,{children:[`版本 `,a.version]}):null,t.overriddenCount>0?/* @__PURE__ */ A(v,{color:`orange`,children:[t.overriddenCount,` 项覆盖`]}):null,a?.updatedAt?/* @__PURE__ */ A(ta,{type:`tertiary`,size:`small`,children:[`最后修改 `,a.updatedAt]}):null]}),t.page?/* @__PURE__ */ k(ue,{type:`info`,closeIcon:null,description:/* @__PURE__ */ A(`span`,{children:[`该模块有专用设置页面,请前往`,/* @__PURE__ */ A(bt,{to:t.page,style:{margin:`0 4px`,display:`inline-flex`,alignItems:`center`,gap:4},children:[n.title,/* @__PURE__ */ k(Wt,{size:12})]}),`修改。`]})}):null,!t.page&&!t.canWrite?/* @__PURE__ */ k(ue,{type:`warning`,closeIcon:null,description:t.scope===`platform`?`平台级设置仅平台管理员可修改,当前为只读。`:`当前账号没有修改权限,当前为只读。`}):null,p.length>0?/* @__PURE__ */ k(ue,{type:`info`,closeIcon:null,description:`待保存 ${p.length} 项偏好策略,其中 ${h} 项将统一使用系统值;允许修改的项目保留用户已有选择。`}):null,/* @__PURE__ */ k(oe,{spinning:r.isLoading,children:a&&l?/* @__PURE__ */ A(O,{children:[/* @__PURE__ */ k(Hi,{schema:Ht[e],excludeFields:e===`ui`?[`preferences`]:void 0,fieldLabels:Ii,value:l,inheritedValue:a.inherited,onChange:e=>c({...l,...e}),disabled:!!t.page||!t.canWrite,enumLabels:ra}),d?/* @__PURE__ */ k(Ji,{value:d.preferences,onChange:e=>c({...l,preferences:e}),disabled:!t.canWrite}):null]}):null})]})})}var ta,na,ra;function ia(){return(ia=e((()=>{ie(),Gt(),ne(),Jt(),st(),p(),pt(),Li(),Ui(),Qi(),{Text:ta,Title:na}=o,ra={captchaComplexity:Ft}})))()}ia();export{$i as default};
|