@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,2 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-BKuNeK48.js";var t=/* @__PURE__ */ e(((e,t)=>{var n=void 0,r=function(e){return n||(n=new Promise(function(n,r){var i=e===void 0?{}:e,a=i.onAbort;i.onAbort=function(e){r(Error(e)),a&&a(e)},i.postRun=i.postRun||[],i.postRun.push(function(){n(i)}),t=void 0;var o;o||=i===void 0?{}:i;var s=!!globalThis.window,c=!!globalThis.WorkerGlobalScope;o.onRuntimeInitialized=function(){function e(e,t){switch(typeof t){case`boolean`:D(e,+!!t);break;case`number`:_e(e,t);break;case`string`:ye(e,t,-1,-1);break;case`object`:if(t===null)ve(e);else if(t.length!=null){var n=kt(t.length);m.set(t,n),xe(e,n,t.length,-1),Z(n)}else O(e,`Wrong API use : tried to return a value of an unknown type (`+t+`).`,-1);break;default:ve(e)}}function t(e,t){for(var n=[],r=0;r<e;r+=1){var i=C(t+4*r,`i32`),a=he(i);if(a===1||a===2)i=w(i);else if(a===3)i=x(i);else if(a===4){a=i,i=ge(a),a=S(a);for(var o=new Uint8Array(i),s=0;s<i;s+=1)o[s]=m[a+s];i=o}else i=null;n.push(i)}return n}function n(e,t){this.Qa=e,this.db=t,this.Oa=1,this.yb=[]}function r(e,t){if(this.db=t,this.ob=wt(e),this.ob===null)throw Error(`Unable to allocate memory for the SQL string`);this.ub=this.ob,this.gb=this.Fb=null}function i(e){if(this.filename=`dbfile_`+(4294967295*Math.random()>>>0),e!=null){var t=this.filename,n=`/`,r=t;if(n&&(n=typeof n==`string`?n:Re(n),r=t?be(n+`/`+t):n),t=Ae(!0,!0),r=Qe(r,t),e){if(typeof e==`string`){n=Array(e.length);for(var i=0,o=e.length;i<o;++i)n[i]=e.charCodeAt(i);e=n}it(r,t|146),n=U(r,577),lt(n,e,0,e.length,0),ot(n),it(r,t)}}this.handleError(c(this.filename,a)),this.db=C(a,`i32`),Ce(this.db),this.pb={},this.Sa={}}var a=Q(4),s=o.cwrap,c=s(`sqlite3_open`,`number`,[`string`,`number`]),l=s(`sqlite3_close_v2`,`number`,[`number`]),u=s(`sqlite3_exec`,`number`,[`number`,`string`,`number`,`number`,`number`]),ee=s(`sqlite3_changes`,`number`,[`number`]),te=s(`sqlite3_prepare_v2`,`number`,[`number`,`string`,`number`,`number`,`number`]),ne=s(`sqlite3_sql`,`string`,[`number`]),re=s(`sqlite3_normalized_sql`,`string`,[`number`]),d=s(`sqlite3_prepare_v2`,`number`,[`number`,`number`,`number`,`number`,`number`]),f=s(`sqlite3_bind_text`,`number`,[`number`,`number`,`number`,`number`,`number`]),p=s(`sqlite3_bind_blob`,`number`,[`number`,`number`,`number`,`number`,`number`]),ie=s(`sqlite3_bind_double`,`number`,[`number`,`number`,`number`]),h=s(`sqlite3_bind_int`,`number`,[`number`,`number`,`number`]),g=s(`sqlite3_bind_parameter_index`,`number`,[`number`,`string`]),_=s(`sqlite3_step`,`number`,[`number`]),v=s(`sqlite3_errmsg`,`string`,[`number`]),ae=s(`sqlite3_column_count`,`number`,[`number`]),oe=s(`sqlite3_data_count`,`number`,[`number`]),y=s(`sqlite3_column_double`,`number`,[`number`,`number`]),se=s(`sqlite3_column_text`,`string`,[`number`,`number`]),b=s(`sqlite3_column_blob`,`number`,[`number`,`number`]),ce=s(`sqlite3_column_bytes`,`number`,[`number`,`number`]),le=s(`sqlite3_column_type`,`number`,[`number`,`number`]),ue=s(`sqlite3_column_name`,`string`,[`number`,`number`]),de=s(`sqlite3_reset`,`number`,[`number`]),fe=s(`sqlite3_clear_bindings`,`number`,[`number`]),pe=s(`sqlite3_finalize`,`number`,[`number`]),me=s(`sqlite3_create_function_v2`,`number`,`number string number number number number number number number`.split(` `)),he=s(`sqlite3_value_type`,`number`,[`number`]),ge=s(`sqlite3_value_bytes`,`number`,[`number`]),x=s(`sqlite3_value_text`,`string`,[`number`]),S=s(`sqlite3_value_blob`,`number`,[`number`]),w=s(`sqlite3_value_double`,`number`,[`number`]),_e=s(`sqlite3_result_double`,``,[`number`,`number`]),ve=s(`sqlite3_result_null`,``,[`number`]),ye=s(`sqlite3_result_text`,``,[`number`,`string`,`number`,`number`]),xe=s(`sqlite3_result_blob`,``,[`number`,`number`,`number`,`number`]),D=s(`sqlite3_result_int`,``,[`number`,`number`]),O=s(`sqlite3_result_error`,``,[`number`,`string`,`number`]),Se=s(`sqlite3_aggregate_context`,`number`,[`number`,`number`]),Ce=s(`RegisterExtensionFunctions`,`number`,[`number`]),k=s(`sqlite3_update_hook`,`number`,[`number`,`number`,`number`]);n.prototype.bind=function(e){if(!this.Qa)throw`Statement closed`;return this.reset(),Array.isArray(e)?this.Wb(e):typeof e==`object`&&e?this.Xb(e):!0},n.prototype.step=function(){if(!this.Qa)throw`Statement closed`;this.Oa=1;var e=_(this.Qa);switch(e){case 100:return!0;case 101:return!1;default:throw this.db.handleError(e)}},n.prototype.Pb=function(e){return e??(e=this.Oa,this.Oa+=1),y(this.Qa,e)},n.prototype.hc=function(e){if(e??(e=this.Oa,this.Oa+=1),e=se(this.Qa,e),typeof BigInt!=`function`)throw Error(`BigInt is not supported`);return BigInt(e)},n.prototype.mc=function(e){return e??(e=this.Oa,this.Oa+=1),se(this.Qa,e)},n.prototype.getBlob=function(e){e??(e=this.Oa,this.Oa+=1);var t=ce(this.Qa,e);e=b(this.Qa,e);for(var n=new Uint8Array(t),r=0;r<t;r+=1)n[r]=m[e+r];return n},n.prototype.get=function(e,t){t||={},e!=null&&this.bind(e)&&this.step(),e=[];for(var n=oe(this.Qa),r=0;r<n;r+=1)switch(le(this.Qa,r)){case 1:var i=t.useBigInt?this.hc(r):this.Pb(r);e.push(i);break;case 2:e.push(this.Pb(r));break;case 3:e.push(this.mc(r));break;case 4:e.push(this.getBlob(r));break;default:e.push(null)}return e},n.prototype.Db=function(){for(var e=[],t=ae(this.Qa),n=0;n<t;n+=1)e.push(ue(this.Qa,n));return e},n.prototype.Ob=function(e,t){e=this.get(e,t),t=this.Db();for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n},n.prototype.lc=function(){return ne(this.Qa)},n.prototype.ic=function(){return re(this.Qa)},n.prototype.Jb=function(e){return e!=null&&this.bind(e),this.step(),this.reset()},n.prototype.Lb=function(e,t){t??(t=this.Oa,this.Oa+=1),e=wt(e),this.yb.push(e),this.db.handleError(f(this.Qa,t,e,-1,0))},n.prototype.Vb=function(e,t){t??(t=this.Oa,this.Oa+=1);var n=kt(e.length);m.set(e,n),this.yb.push(n),this.db.handleError(p(this.Qa,t,n,e.length,0))},n.prototype.Kb=function(e,t){t??(t=this.Oa,this.Oa+=1),this.db.handleError((e===(e|0)?h:ie)(this.Qa,t,e))},n.prototype.Yb=function(e){e??(e=this.Oa,this.Oa+=1),p(this.Qa,e,0,0,0)},n.prototype.Mb=function(e,t){switch(t??(t=this.Oa,this.Oa+=1),typeof e){case`string`:this.Lb(e,t);return;case`number`:this.Kb(e,t);return;case`bigint`:this.Lb(e.toString(),t);return;case`boolean`:this.Kb(e+0,t);return;case`object`:if(e===null){this.Yb(t);return}if(e.length!=null){this.Vb(e,t);return}}throw`Wrong API use : tried to bind a value of an unknown type (`+e+`).`},n.prototype.Xb=function(e){var t=this;return Object.keys(e).forEach(function(n){var r=g(t.Qa,n);r!==0&&t.Mb(e[n],r)}),!0},n.prototype.Wb=function(e){for(var t=0;t<e.length;t+=1)this.Mb(e[t],t+1);return!0},n.prototype.reset=function(){return this.Cb(),fe(this.Qa)===0&&de(this.Qa)===0},n.prototype.Cb=function(){for(var e;(e=this.yb.pop())!==void 0;)Z(e)},n.prototype.cb=function(){this.Cb();var e=pe(this.Qa)===0;return delete this.db.pb[this.Qa],this.Qa=0,e},r.prototype.next=function(){if(this.ob===null)return{done:!0};if(this.gb!==null&&(this.gb.cb(),this.gb=null),!this.db.db)throw this.Ab(),Error(`Database closed`);var e=Nt(),t=Q(4);T(a),T(t);try{this.db.handleError(d(this.db.db,this.ub,-1,a,t)),this.ub=C(t,`i32`);var r=C(a,`i32`);return r===0?(this.Ab(),{done:!0}):(this.gb=new n(r,this.db),this.db.pb[r]=this.gb,{value:this.gb,done:!1})}catch(e){throw this.Fb=E(this.ub),this.Ab(),e}finally{Mt(e)}},r.prototype.Ab=function(){Z(this.ob),this.ob=null},r.prototype.jc=function(){return this.Fb===null?E(this.ub):this.Fb},typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`&&(r.prototype[Symbol.iterator]=function(){return this}),i.prototype.Jb=function(e,t){if(!this.db)throw`Database closed`;if(t){e=this.Gb(e,t);try{e.step()}finally{e.cb()}}else this.handleError(u(this.db,e,0,0,a));return this},i.prototype.exec=function(e,t,r){if(!this.db)throw`Database closed`;var i=null,o=null,s=null;try{s=o=wt(e);var c=Q(4);for(e=[];C(s,`i8`)!==0;){T(a),T(c),this.handleError(d(this.db,s,-1,a,c));var l=C(a,`i32`);if(s=C(c,`i32`),l!==0){var u=null;for(i=new n(l,this),t!=null&&i.bind(t);i.step();)u===null&&(u={columns:i.Db(),values:[]},e.push(u)),u.values.push(i.get(null,r));i.cb()}}return e}catch(e){throw i&&i.cb(),e}finally{o&&Z(o)}},i.prototype.ec=function(e,t,n,r,i){typeof t==`function`&&(r=n,n=t,t=void 0),e=this.Gb(e,t);try{for(;e.step();)n(e.Ob(null,i))}finally{e.cb()}if(typeof r==`function`)return r()},i.prototype.Gb=function(e,t){if(T(a),this.handleError(te(this.db,e,-1,a,0)),e=C(a,`i32`),e===0)throw`Nothing to prepare`;var r=new n(e,this);return t!=null&&r.bind(t),this.pb[e]=r},i.prototype.pc=function(e){return new r(e,this)},i.prototype.fc=function(){Object.values(this.pb).forEach(function(e){e.cb()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.handleError(l(this.db));var e=ut(this.filename);return this.handleError(c(this.filename,a)),this.db=C(a,`i32`),Ce(this.db),e},i.prototype.close=function(){this.db!==null&&(Object.values(this.pb).forEach(function(e){e.cb()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.fb&&=(Y(this.fb),void 0),this.handleError(l(this.db)),nt(`/`+this.filename),this.db=null)},i.prototype.handleError=function(e){if(e===0)return null;throw e=v(this.db),Error(e)},i.prototype.kc=function(){return ee(this.db)},i.prototype.bc=function(n,r){Object.prototype.hasOwnProperty.call(this.Sa,n)&&(Y(this.Sa[n]),delete this.Sa[n]);var i=X(function(n,i,a){i=t(i,a);try{var o=r.apply(null,i)}catch(e){O(n,e,-1);return}e(n,o)},`viii`);return this.Sa[n]=i,this.handleError(me(this.db,n,r.length,1,0,i,0,0,0)),this},i.prototype.ac=function(n,r){var i=r.init||function(){return null},a=r.finalize||function(e){return e},o=r.step;if(!o)throw`An aggregate function must have a step function in `+n;var s={};Object.hasOwnProperty.call(this.Sa,n)&&(Y(this.Sa[n]),delete this.Sa[n]),r=n+`__finalize`,Object.hasOwnProperty.call(this.Sa,r)&&(Y(this.Sa[r]),delete this.Sa[r]);var c=X(function(e,n,r){var a=Se(e,1);Object.hasOwnProperty.call(s,a)||(s[a]=i()),n=t(n,r),n=[s[a]].concat(n);try{s[a]=o.apply(null,n)}catch(t){delete s[a],O(e,t,-1)}},`viii`),l=X(function(t){var n=Se(t,1);try{var r=a(s[n])}catch(e){delete s[n],O(t,e,-1);return}e(t,r),delete s[n]},`vi`);return this.Sa[n]=c,this.Sa[r]=l,this.handleError(me(this.db,n,o.length-1,1,0,0,c,l,0)),this},i.prototype.vc=function(e){return this.fb&&=(k(this.db,0,0),Y(this.fb),void 0),e&&(this.fb=X(function(t,n,r,i,a){switch(n){case 18:t=`insert`;break;case 23:t=`update`;break;case 9:t=`delete`;break;default:throw`unknown operationCode in updateHook callback: `+n}if(r=E(r),i=E(i),a>2**53-1)throw`rowId too big to fit inside a Number`;e(t,r,i,Number(a))},`viiiij`),k(this.db,this.fb,0)),this},n.prototype.bind=n.prototype.bind,n.prototype.step=n.prototype.step,n.prototype.get=n.prototype.get,n.prototype.getColumnNames=n.prototype.Db,n.prototype.getAsObject=n.prototype.Ob,n.prototype.getSQL=n.prototype.lc,n.prototype.getNormalizedSQL=n.prototype.ic,n.prototype.run=n.prototype.Jb,n.prototype.reset=n.prototype.reset,n.prototype.freemem=n.prototype.Cb,n.prototype.free=n.prototype.cb,r.prototype.next=r.prototype.next,r.prototype.getRemainingSQL=r.prototype.jc,i.prototype.run=i.prototype.Jb,i.prototype.exec=i.prototype.exec,i.prototype.each=i.prototype.ec,i.prototype.prepare=i.prototype.Gb,i.prototype.iterateStatements=i.prototype.pc,i.prototype.export=i.prototype.fc,i.prototype.close=i.prototype.close,i.prototype.handleError=i.prototype.handleError,i.prototype.getRowsModified=i.prototype.kc,i.prototype.create_function=i.prototype.bc,i.prototype.create_aggregate=i.prototype.ac,i.prototype.updateHook=i.prototype.vc,o.Database=i};var l=`./this.program`,u=globalThis.document?.currentScript?.src;c&&(u=self.location.href);var ee=``,te,ne;if(s||c){try{ee=new URL(`.`,u).href}catch{}c&&(ne=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),te=async e=>{if(e=await fetch(e,{credentials:`same-origin`}),e.ok)return e.arrayBuffer();throw Error(e.status+` : `+e.url)}}var re=console.log.bind(console),d=console.error.bind(console),f,p=!1,ie,m,h,g,_,v,ae,oe,y;function se(){var e=Pt.buffer;m=new Int8Array(e),g=new Int16Array(e),h=new Uint8Array(e),new Uint16Array(e),_=new Int32Array(e),v=new Uint32Array(e),ae=new Float32Array(e),oe=new Float64Array(e),y=new BigInt64Array(e),new BigUint64Array(e)}function b(e){throw o.onAbort?.(e),e=`Aborted(`+e+`)`,d(e),p=!0,new WebAssembly.RuntimeError(e+`. Build with -sASSERTIONS for more info.`)}var ce;async function le(e){if(!f)try{var t=await te(e);return new Uint8Array(t)}catch{}if(e==ce&&f)e=new Uint8Array(f);else if(ne)e=ne(e);else throw`both async and sync fetching of the wasm failed`;return e}async function ue(e,t){try{var n=await le(e);return await WebAssembly.instantiate(n,t)}catch(e){d(`failed to asynchronously prepare wasm: ${e}`),b(e)}}async function de(e){var t=ce;if(!f)try{var n=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(n,e)}catch(e){d(`wasm streaming compile failed: ${e}`),d(`falling back to ArrayBuffer instantiation`)}return ue(t,e)}class fe{name=`ExitStatus`;constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var pe=e=>{for(;0<e.length;)e.shift()(o)},me=[],he=[],ge=()=>{var e=o.preRun.shift();he.push(e)},x=0,S=null;function C(e,t=`i8`){switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:return m[e];case`i8`:return m[e];case`i16`:return g[e>>1];case`i32`:return _[e>>2];case`i64`:return y[e>>3];case`float`:return ae[e>>2];case`double`:return oe[e>>3];case`*`:return v[e>>2];default:b(`invalid type for getValue: ${t}`)}}var w=!0;function T(e){var t=`i32`;switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:m[e]=0;break;case`i8`:m[e]=0;break;case`i16`:g[e>>1]=0;break;case`i32`:_[e>>2]=0;break;case`i64`:y[e>>3]=BigInt(0);break;case`float`:ae[e>>2]=0;break;case`double`:oe[e>>3]=0;break;case`*`:v[e>>2]=0;break;default:b(`invalid type for setValue: ${t}`)}}var _e=new TextDecoder,ve=(e,t,n,r)=>{if(n=t+n,r)return n;for(;e[t]&&!(t>=n);)++t;return t},E=(e,t,n)=>e?_e.decode(h.subarray(e,ve(h,e,t,n))):``,ye=(e,t)=>{for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];i===`.`?e.splice(r,1):i===`..`?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift(`..`);return e},be=e=>{var t=e.charAt(0)===`/`,n=e.slice(-1)===`/`;return(e=ye(e.split(`/`).filter(e=>!!e),!t).join(`/`))||t||(e=`.`),e&&n&&(e+=`/`),(t?`/`:``)+e},xe=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?`.`:(t&&=t.slice(0,-1),e+t)},D=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],O=()=>e=>crypto.getRandomValues(e),Se=e=>{(Se=O())(e)},Ce=(...e)=>{for(var t=``,n=!1,r=e.length-1;-1<=r&&!n;r--){if(n=0<=r?e[r]:`/`,typeof n!=`string`)throw TypeError(`Arguments to path.resolve must be strings`);if(!n)return``;t=n+`/`+t,n=n.charAt(0)===`/`}return t=ye(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`},k=e=>{var t=ve(e,0);return _e.decode(e.buffer?e.subarray(0,t):new Uint8Array(e.slice(0,t)))},we=[],A=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);127>=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},j=(e,t,n,r)=>{if(!(0<r))return 0;var i=n;r=n+r-1;for(var a=0;a<e.length;++a){var o=e.codePointAt(a);if(127>=o){if(n>=r)break;t[n++]=o}else if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6,t[n++]=128|o&63}else if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|o&63}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|o&63,a++}}return t[n]=0,n-i},Te=[];function Ee(e,t){Te[e]={input:[],output:[],kb:t},Ye(e,De)}var De={open(e){var t=Te[e.node.nb];if(!t)throw new F(43);e.Va=t,e.seekable=!1},close(e){e.Va.kb.lb(e.Va)},lb(e){e.Va.kb.lb(e.Va)},read(e,t,n,r){if(!e.Va||!e.Va.kb.Qb)throw new F(60);for(var i=0,a=0;a<r;a++){try{var o=e.Va.kb.Qb(e.Va)}catch{throw new F(29)}if(o===void 0&&i===0)throw new F(6);if(o==null)break;i++,t[n+a]=o}return i&&(e.node.$a=Date.now()),i},write(e,t,n,r){if(!e.Va||!e.Va.kb.Hb)throw new F(60);try{for(var i=0;i<r;i++)e.Va.kb.Hb(e.Va,t[n+i])}catch{throw new F(29)}return r&&(e.node.Ua=e.node.Ta=Date.now()),i}},Oe={Qb(){a:{if(!we.length){var e=null;if(globalThis.window?.prompt&&(e=window.prompt(`Input: `),e!==null&&(e+=`
|
|
2
|
+
`)),!e){var t=null;break a}t=Array(A(e)+1),e=j(e,t,0,t.length),t.length=e,we=t}t=we.shift()}return t},Hb(e,t){t===null||t===10?(re(k(e.output)),e.output=[]):t!=0&&e.output.push(t)},lb(e){0<e.output?.length&&(re(k(e.output)),e.output=[])},Dc(){return{yc:25856,Ac:5,xc:191,zc:35387,wc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Ec(){return 0},Fc(){return[24,80]}},ke={Hb(e,t){t===null||t===10?(d(k(e.output)),e.output=[]):t!=0&&e.output.push(t)},lb(e){0<e.output?.length&&(d(k(e.output)),e.output=[])}},M={Za:null,ab(){return M.createNode(null,`/`,16895,0)},createNode(e,t,n,r){if((n&61440)==24576||(n&61440)==4096)throw new F(63);return M.Za||={dir:{node:{Wa:M.La.Wa,Xa:M.La.Xa,mb:M.La.mb,rb:M.La.rb,Tb:M.La.Tb,xb:M.La.xb,vb:M.La.vb,Ib:M.La.Ib,wb:M.La.wb},stream:{Ya:M.Ma.Ya}},file:{node:{Wa:M.La.Wa,Xa:M.La.Xa},stream:{Ya:M.Ma.Ya,read:M.Ma.read,write:M.Ma.write,sb:M.Ma.sb,tb:M.Ma.tb}},link:{node:{Wa:M.La.Wa,Xa:M.La.Xa,eb:M.La.eb},stream:{}},Nb:{node:{Wa:M.La.Wa,Xa:M.La.Xa},stream:Je}},n=Ve(e,t,n,r),R(n.mode)?(n.La=M.Za.dir.node,n.Ma=M.Za.dir.stream,n.Na={}):(n.mode&61440)==32768?(n.La=M.Za.file.node,n.Ma=M.Za.file.stream,n.Ra=0,n.Na=null):(n.mode&61440)==40960?(n.La=M.Za.link.node,n.Ma=M.Za.link.stream):(n.mode&61440)==8192&&(n.La=M.Za.Nb.node,n.Ma=M.Za.Nb.stream),n.$a=n.Ua=n.Ta=Date.now(),e&&(e.Na[t]=n,e.$a=e.Ua=e.Ta=n.$a),n},Cc(e){return e.Na?e.Na.subarray?e.Na.subarray(0,e.Ra):new Uint8Array(e.Na):/* @__PURE__ */ new Uint8Array},La:{Wa(e){var t={};return t.cc=(e.mode&61440)==8192?e.id:1,t.oc=e.id,t.mode=e.mode,t.rc=1,t.uid=0,t.nc=0,t.nb=e.nb,t.size=R(e.mode)?4096:(e.mode&61440)==32768?e.Ra:(e.mode&61440)==40960?e.link.length:0,t.$a=new Date(e.$a),t.Ua=new Date(e.Ua),t.Ta=new Date(e.Ta),t.Zb=4096,t.$b=Math.ceil(t.size/t.Zb),t},Xa(e,t){for(var n of[`mode`,`atime`,`mtime`,`ctime`])t[n]!=null&&(e[n]=t[n]);t.size!==void 0&&(t=t.size,e.Ra!=t&&(t==0?(e.Na=null,e.Ra=0):(n=e.Na,e.Na=new Uint8Array(t),n&&e.Na.set(n.subarray(0,Math.min(t,e.Ra))),e.Ra=t)))},mb(){throw M.zb||(M.zb=new F(44),M.zb.stack=`<generic error, no stack>`),M.zb},rb(e,t,n,r){return M.createNode(e,t,n,r)},Tb(e,t,n){try{var r=L(t,n)}catch{}if(r){if(R(e.mode))for(var i in r.Na)throw new F(55);Be(r)}delete e.parent.Na[e.name],t.Na[n]=e,e.name=n,t.Ta=t.Ua=e.parent.Ta=e.parent.Ua=Date.now()},xb(e,t){delete e.Na[t],e.Ta=e.Ua=Date.now()},vb(e,t){var n=L(e,t),r;for(r in n.Na)throw new F(55);delete e.Na[t],e.Ta=e.Ua=Date.now()},Ib(e){return[`.`,`..`,...Object.keys(e.Na)]},wb(e,t,n){return e=M.createNode(e,t,41471,0),e.link=n,e},eb(e){if((e.mode&61440)!=40960)throw new F(28);return e.link}},Ma:{read(e,t,n,r,i){var a=e.node.Na;if(i>=e.node.Ra)return 0;if(e=Math.min(e.node.Ra-i,r),8<e&&a.subarray)t.set(a.subarray(i,i+e),n);else for(r=0;r<e;r++)t[n+r]=a[i+r];return e},write(e,t,n,r,i,a){if(t.buffer===m.buffer&&(a=!1),!r)return 0;if(e=e.node,e.Ua=e.Ta=Date.now(),t.subarray&&(!e.Na||e.Na.subarray)){if(a)return e.Na=t.subarray(n,n+r),e.Ra=r;if(e.Ra===0&&i===0)return e.Na=t.slice(n,n+r),e.Ra=r;if(i+r<=e.Ra)return e.Na.set(t.subarray(n,n+r),i),r}a=i+r;var o=e.Na?e.Na.length:0;if(o>=a||(a=Math.max(a,o*(1048576>o?2:1.125)>>>0),o!=0&&(a=Math.max(a,256)),o=e.Na,e.Na=new Uint8Array(a),0<e.Ra&&e.Na.set(o.subarray(0,e.Ra),0)),e.Na.subarray&&t.subarray)e.Na.set(t.subarray(n,n+r),i);else for(a=0;a<r;a++)e.Na[i+a]=t[n+a];return e.Ra=Math.max(e.Ra,i+r),r},Ya(e,t,n){if(n===1?t+=e.position:n===2&&(e.node.mode&61440)==32768&&(t+=e.node.Ra),0>t)throw new F(28);return t},sb(e,t,n,r,i){if((e.node.mode&61440)!=32768)throw new F(43);if(e=e.node.Na,i&2||!e||e.buffer!==m.buffer){i=!0,r=65536*Math.ceil(t/65536);var a=At(65536,r);if(a&&h.fill(0,a,a+r),r=a,!r)throw new F(48);e&&((0<n||n+t<e.length)&&(e=e.subarray?e.subarray(n,n+t):Array.prototype.slice.call(e,n,n+t)),m.set(e,r))}else i=!1,r=e.byteOffset;return{tc:r,Ub:i}},tb(e,t,n,r){return M.Ma.write(e,t,0,r,n,!1),0}}},Ae=(e,t)=>{var n=0;return e&&(n|=365),t&&(n|=146),n},je=null,Me={},N=[],Ne=1,P=null,Pe=!1,Fe=!0,F=class{name=`ErrnoError`;constructor(e){this.Pa=e}},Ie=class{qb={};node=null;get flags(){return this.qb.flags}set flags(e){this.qb.flags=e}get position(){return this.qb.position}set position(e){this.qb.position=e}},Le=class{La={};Ma={};ib=null;constructor(e,t,n,r){e||=this,this.parent=e,this.ab=e.ab,this.id=Ne++,this.name=t,this.mode=n,this.nb=r,this.$a=this.Ua=this.Ta=Date.now()}get read(){return(this.mode&365)==365}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)==146}set write(e){e?this.mode|=146:this.mode&=-147}};function I(e,t={}){if(!e)throw new F(44);t.Bb??=!0,e.charAt(0)===`/`||(e=`//`+e);var n=0;a:for(;40>n;n++){e=e.split(`/`).filter(e=>!!e);for(var r=je,i=`/`,a=0;a<e.length;a++){var o=a===e.length-1;if(o&&t.parent)break;if(e[a]!==`.`){if(e[a]===`..`){if(i=xe(i),r===r.parent){e=i+`/`+e.slice(a+1).join(`/`),n--;continue a}r=r.parent}else{i=be(i+`/`+e[a]);try{r=L(r,e[a])}catch(e){if(e?.Pa===44&&o&&t.sc)return{path:i};throw e}if(!r.ib||o&&!t.Bb||(r=r.ib.root),(r.mode&61440)==40960&&(!o||t.hb)){if(!r.La.eb)throw new F(52);r=r.La.eb(r),r.charAt(0)===`/`||(r=xe(i)+`/`+r),e=r+`/`+e.slice(a+1).join(`/`);continue a}}}}return{path:i,node:r}}throw new F(32)}function Re(e){for(var t;;){if(e===e.parent)return e=e.ab.Sb,t?e[e.length-1]===`/`?e+t:`${e}/${t}`:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function ze(e,t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r)|0;return(e+n>>>0)%P.length}function Be(e){var t=ze(e.parent.id,e.name);if(P[t]===e)P[t]=e.jb;else for(t=P[t];t;){if(t.jb===e){t.jb=e.jb;break}t=t.jb}}function L(e,t){var n=R(e.mode)?(n=z(e,`x`))?n:e.La.mb?0:2:54;if(n)throw new F(n);for(n=P[ze(e.id,t)];n;n=n.jb){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.La.mb(e,t)}function Ve(e,t,n,r){return e=new Le(e,t,n,r),t=ze(e.parent.id,e.name),e.jb=P[t],P[t]=e}function R(e){return(e&61440)==16384}function z(e,t){return Fe?0:t.includes(`r`)&&!(e.mode&292)||t.includes(`w`)&&!(e.mode&146)||t.includes(`x`)&&!(e.mode&73)?2:0}function He(e,t){if(!R(e.mode))return 54;try{return L(e,t),20}catch{}return z(e,`wx`)}function Ue(e,t,n){try{var r=L(e,t)}catch(e){return e.Pa}if(e=z(e,`wx`))return e;if(n){if(!R(r.mode))return 54;if(r===r.parent||Re(r)===`/`)return 10}else if(R(r.mode))return 31;return 0}function We(e){if(!e)throw new F(63);return e}function B(e){if(e=N[e],!e)throw new F(8);return e}function Ge(e,t=-1){if(e=Object.assign(new Ie,e),t==-1)a:{for(t=0;4096>=t;t++)if(!N[t])break a;throw new F(33)}return e.bb=t,N[t]=e}function Ke(e,t=-1){return e=Ge(e,t),e.Ma?.Bc?.(e),e}function qe(e,t,n){var r=e?.Ma.Xa;e=r?e:t,r??=t.La.Xa,We(r),r(e,n)}var Je={open(e){e.Ma=Me[e.node.nb].Ma,e.Ma.open?.(e)},Ya(){throw new F(70)}};function Ye(e,t){Me[e]={Ma:t}}function Xe(e,t){var n=t===`/`;if(n&&je)throw new F(10);if(!n&&t){var r=I(t,{Bb:!1});if(t=r.path,r=r.node,r.ib)throw new F(10);if(!R(r.mode))throw new F(54)}t={type:e,Gc:{},Sb:t,qc:[]},e=e.ab(t),e.ab=t,t.root=e,n?je=e:r&&(r.ib=t,r.ab&&r.ab.qc.push(t))}function Ze(e,t,n){var r=I(e,{parent:!0}).node;if(e=D(e),!e)throw new F(28);if(e===`.`||e===`..`)throw new F(20);var i=He(r,e);if(i)throw new F(i);if(!r.La.rb)throw new F(63);return r.La.rb(r,e,t,n)}function Qe(e,t=438){return Ze(e,t&4095|32768,0)}function V(e,t=511){return Ze(e,t&1023|16384,0)}function $e(e,t,n){n===void 0&&(n=t,t=438),Ze(e,t|8192,n)}function et(e,t){if(!Ce(e))throw new F(44);var n=I(t,{parent:!0}).node;if(!n)throw new F(44);t=D(t);var r=He(n,t);if(r)throw new F(r);if(!n.La.wb)throw new F(63);n.La.wb(n,t,e)}function tt(e){var t=I(e,{parent:!0}).node;e=D(e);var n=L(t,e),r=Ue(t,e,!0);if(r)throw new F(r);if(!t.La.vb)throw new F(63);if(n.ib)throw new F(10);t.La.vb(t,e),Be(n)}function nt(e){var t=I(e,{parent:!0}).node;if(!t)throw new F(44);e=D(e);var n=L(t,e),r=Ue(t,e,!1);if(r)throw new F(r);if(!t.La.xb)throw new F(63);if(n.ib)throw new F(10);t.La.xb(t,e),Be(n)}function H(e,t){return e=I(e,{hb:!t}).node,We(e.La.Wa)(e)}function rt(e,t,n,r){qe(e,t,{mode:n&4095|t.mode&-4096,Ta:Date.now(),dc:r})}function it(e,t){e=typeof e==`string`?I(e,{hb:!0}).node:e,rt(null,e,t)}function at(e,t,n){if(R(t.mode))throw new F(31);if((t.mode&61440)!=32768)throw new F(28);var r=z(t,`w`);if(r)throw new F(r);qe(e,t,{size:n,timestamp:Date.now()})}function U(e,t,n=438){if(e===``)throw new F(44);if(typeof t==`string`){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(r===void 0)throw Error(`Unknown file open mode: ${t}`);t=r}if(n=t&64?n&4095|32768:0,typeof e==`object`)r=e;else{var i=e.endsWith(`/`),a=I(e,{hb:!(t&131072),sc:!0});r=a.node,e=a.path}if(a=!1,t&64){if(r){if(t&128)throw new F(20)}else{if(i)throw new F(31);r=Ze(e,n|511,0),a=!0}}if(!r)throw new F(44);if((r.mode&61440)==8192&&(t&=-513),t&65536&&!R(r.mode))throw new F(54);if(!a&&(r?(r.mode&61440)==40960?i=32:(i=[`r`,`w`,`rw`][t&3],t&512&&(i+=`w`),i=R(r.mode)&&(i!==`r`||t&576)?31:z(r,i)):i=44,i))throw new F(i);return t&512&&!a&&(i=r,i=typeof i==`string`?I(i,{hb:!0}).node:i,at(null,i,0)),t=Ge({node:r,path:Re(r),flags:t&-131713,seekable:!0,position:0,Ma:r.Ma,uc:[],error:!1}),t.Ma.open&&t.Ma.open(t),a&&it(r,n&511),t}function ot(e){if(e.bb===null)throw new F(8);e.Eb&&=null;try{e.Ma.close&&e.Ma.close(e)}catch(e){throw e}finally{N[e.bb]=null}e.bb=null}function st(e,t,n){if(e.bb===null)throw new F(8);if(!e.seekable||!e.Ma.Ya)throw new F(70);if(n!=0&&n!=1&&n!=2)throw new F(28);e.position=e.Ma.Ya(e,t,n),e.uc=[]}function ct(e,t,n,r,i){if(0>r||0>i)throw new F(28);if(e.bb===null||(e.flags&2097155)==1)throw new F(8);if(R(e.node.mode))throw new F(31);if(!e.Ma.read)throw new F(28);var a=i!==void 0;if(!a)i=e.position;else if(!e.seekable)throw new F(70);return t=e.Ma.read(e,t,n,r,i),a||(e.position+=t),t}function lt(e,t,n,r,i){if(0>r||0>i)throw new F(28);if(e.bb===null||!(e.flags&2097155))throw new F(8);if(R(e.node.mode))throw new F(31);if(!e.Ma.write)throw new F(28);e.seekable&&e.flags&1024&&st(e,0,2);var a=i!==void 0;if(!a)i=e.position;else if(!e.seekable)throw new F(70);return t=e.Ma.write(e,t,n,r,i,void 0),a||(e.position+=t),t}function ut(e){var t=t||0,n=`binary`;n!==`utf8`&&n!==`binary`&&b(`Invalid encoding type "${n}"`),t=U(e,t),e=H(e).size;var r=new Uint8Array(e);return ct(t,r,0,e,0),n===`utf8`&&(r=k(r)),ot(t),r}function W(e,t,n){e=be(`/dev/`+e);var r=Ae(!!t,!!n);W.Rb??=64;var i=W.Rb++<<8;Ye(i,{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,n,r,i){for(var a=0,o=0;o<i;o++){try{var s=t()}catch{throw new F(29)}if(s===void 0&&a===0)throw new F(6);if(s==null)break;a++,n[r+o]=s}return a&&(e.node.$a=Date.now()),a},write(e,t,r,i){for(var a=0;a<i;a++)try{n(t[r+a])}catch{throw new F(29)}return i&&(e.node.Ua=e.node.Ta=Date.now()),a}}),$e(e,r,i)}var G={};function K(e,t,n){if(t.charAt(0)===`/`)return t;if(e=e===-100?`/`:B(e).path,t.length==0){if(!n)throw new F(44);return e}return e+`/`+t}function dt(e,t){v[e>>2]=t.cc,v[e+4>>2]=t.mode,v[e+8>>2]=t.rc,v[e+12>>2]=t.uid,v[e+16>>2]=t.nc,v[e+20>>2]=t.nb,y[e+24>>3]=BigInt(t.size),_[e+32>>2]=4096,_[e+36>>2]=t.$b;var n=t.$a.getTime(),r=t.Ua.getTime(),i=t.Ta.getTime();return y[e+40>>3]=BigInt(Math.floor(n/1e3)),v[e+48>>2]=n%1e3*1e6,y[e+56>>3]=BigInt(Math.floor(r/1e3)),v[e+64>>2]=r%1e3*1e6,y[e+72>>3]=BigInt(Math.floor(i/1e3)),v[e+80>>2]=i%1e3*1e6,y[e+88>>3]=BigInt(t.oc),0}var ft=void 0,pt=()=>{var e=_[ft>>2];return ft+=4,e},mt=0,ht=[0,31,60,91,121,152,182,213,244,274,305,335],gt=[0,31,59,90,120,151,181,212,243,273,304,334],q={},_t=e=>{if(!(e instanceof fe||e==`unwind`))throw e},vt=e=>{throw ie=e,w||0<mt||(o.onExit?.(e),p=!0),new fe(e)},yt=e=>{if(!p)try{e()}catch(e){_t(e)}finally{if(!(w||0<mt))try{ie=e=ie,vt(e)}catch(e){_t(e)}}},bt={},xt=()=>{if(!St){var e={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(globalThis.navigator?.language??`C`).replace(`-`,`_`)+`.UTF-8`,_:l||`./this.program`},t;for(t in bt)bt[t]===void 0?delete e[t]:e[t]=bt[t];var n=[];for(t in e)n.push(`${t}=${e[t]}`);St=n}return St},St,Ct=(e,t,n,r)=>{var i={string:e=>{var t=0;if(e!=null&&e!==0){t=A(e)+1;var n=Q(t);j(e,h,n,t),t=n}return t},array:e=>{var t=Q(e.length);return m.set(e,t),t}};e=o[`_`+e];var a=[],s=0;if(r)for(var c=0;c<r.length;c++){var l=i[n[c]];l?(s===0&&(s=Nt()),a[c]=l(r[c])):a[c]=r[c]}return n=e(...a),n=function(e){return s!==0&&Mt(s),t===`string`?E(e):t===`boolean`?!!e:e}(n)},wt=e=>{var t=A(e)+1,n=kt(t);return n&&j(e,h,n,t),n},J,Tt=[],Y=e=>{J.delete($.get(e)),$.set(e,null),Tt.push(e)},Et=e=>{let t=e.length;return[t%128|128,t>>7,...e]},Dt={i:127,p:127,j:126,f:125,d:124,e:111},Ot=e=>Et(Array.from(e,e=>Dt[e])),X=(e,t)=>{if(!J){J=/* @__PURE__ */ new WeakMap;var n=$.length;if(J)for(var r=0;r<0+n;r++){var i=$.get(r);i&&J.set(i,r)}}if(n=J.get(e)||0)return n;n=Tt.length?Tt.pop():$.grow(1);try{$.set(n,e)}catch(r){if(!(r instanceof TypeError))throw r;t=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Et([1,96,...Ot(t.slice(1)),...Ot(t[0]===`v`?``:t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(t),t=new WebAssembly.Instance(t,{e:{f:e}}).exports.f,$.set(n,t)}return J.set(e,n),n};if(P=Array(4096),Xe(M,`/`),V(`/tmp`),V(`/home`),V(`/home/web_user`),(function(){V(`/dev`),Ye(259,{read:()=>0,write:(e,t,n,r)=>r,Ya:()=>0}),$e(`/dev/null`,259),Ee(1280,Oe),Ee(1536,ke),$e(`/dev/tty`,1280),$e(`/dev/tty1`,1536);var e=/* @__PURE__ */ new Uint8Array(1024),t=0,n=()=>(t===0&&(Se(e),t=e.byteLength),e[--t]);W(`random`,n),W(`urandom`,n),V(`/dev/shm`),V(`/dev/shm/tmp`)})(),(function(){V(`/proc`);var e=V(`/proc/self`);V(`/proc/self/fd`),Xe({ab(){var t=Ve(e,`fd`,16895,73);return t.Ma={Ya:M.Ma.Ya},t.La={mb(e,t){e=+t;var n=B(e);return e={parent:null,ab:{Sb:`fake`},La:{eb:()=>n.path},id:e+1},e.parent=e},Ib(){return Array.from(N.entries()).filter(([,e])=>e).map(([e])=>e.toString())}},t}},`/proc/self/fd`)})(),o.noExitRuntime&&(w=o.noExitRuntime),o.print&&(re=o.print),o.printErr&&(d=o.printErr),o.wasmBinary&&(f=o.wasmBinary),o.thisProgram&&(l=o.thisProgram),o.preInit)for(typeof o.preInit==`function`&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.shift()();o.stackSave=()=>Nt(),o.stackRestore=e=>Mt(e),o.stackAlloc=e=>Q(e),o.cwrap=(e,t,n,r)=>{var i=!n||n.every(e=>e===`number`||e===`boolean`);return t!==`string`&&i&&!r?o[`_`+e]:(...r)=>Ct(e,t,n,r)},o.addFunction=X,o.removeFunction=Y,o.UTF8ToString=E,o.stringToNewUTF8=wt,o.writeArrayToMemory=(e,t)=>{m.set(e,t)};var kt,Z,At,jt,Mt,Q,Nt,Pt,$,Ft={a:(e,t,n,r)=>b(`Assertion failed: ${E(e)}, at: `+[t?E(t):`unknown filename`,n,r?E(r):`unknown function`]),i:function(e,t){try{return e=E(e),it(e,t),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},L:function(e,t,n){try{if(t=E(t),t=K(e,t),n&-8)return-28;var r=I(t,{hb:!0}).node;return r?(e=``,n&4&&(e+=`r`),n&2&&(e+=`w`),n&1&&(e+=`x`),e&&z(r,e)?-2:0):-44}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},j:function(e,t){try{var n=B(e);return rt(n,n.node,t,!1),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},h:function(e){try{var t=B(e);return qe(t,t.node,{timestamp:Date.now(),dc:!1}),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},b:function(e,t,n){ft=n;try{var r=B(e);switch(t){case 0:var i=pt();if(0>i)break;for(;N[i];)i++;return Ke(r,i).bb;case 1:case 2:return 0;case 3:return r.flags;case 4:return i=pt(),r.flags|=i,0;case 12:return i=pt(),g[i+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},g:function(e,t){try{var n=B(e),r=n.node,i=n.Ma.Wa;return e=i?n:r,i??=r.La.Wa,We(i),dt(t,i(e))}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},H:function(e,t){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return-61;var n=B(e);if(0>t||!(n.flags&2097155))throw new F(28);return at(n,n.node,t),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},G:function(e,t){try{if(t===0)return-28;var n=A(`/`)+1;return t<n?-68:(j(`/`,h,e,t),n)}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},K:function(e,t){try{return e=E(e),dt(t,H(e,!0))}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},C:function(e,t,n){try{return t=E(t),t=K(e,t),V(t,n),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},J:function(e,t,n,r){try{t=E(t);var i=r&256;return t=K(e,t,r&4096),dt(n,i?H(t,!0):H(t))}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},x:function(e,t,n,r){ft=r;try{t=E(t),t=K(e,t);var i=r?pt():0;return U(t,n,i).bb}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},v:function(e,t,n,r){try{if(t=E(t),t=K(e,t),0>=r)return-28;var i=I(t).node;if(!i)throw new F(44);if(!i.La.eb)throw new F(28);var a=i.La.eb(i),o=Math.min(r,A(a)),s=m[n+o];return j(a,h,n,r+1),m[n+o]=s,o}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},u:function(e){try{return e=E(e),tt(e),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},f:function(e,t){try{return e=E(e),dt(t,H(e))}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},r:function(e,t,n){try{if(t=E(t),t=K(e,t),n){if(n===512)tt(t);else return-28}else nt(t);return 0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},q:function(e,t,n){try{t=E(t),t=K(e,t,!0);var r=Date.now(),i,a;if(n){var o=v[n>>2]+4294967296*_[n+4>>2],s=_[n+8>>2];i=s==1073741823?r:s==1073741822?null:1e3*o+s/1e6,n+=16,o=v[n>>2]+4294967296*_[n+4>>2],s=_[n+8>>2],a=s==1073741823?r:s==1073741822?null:1e3*o+s/1e6}else a=i=r;if((a??i)!==null){e=i;var c=I(t,{hb:!0}).node;We(c.La.Xa)(c,{$a:e,Ua:a})}return 0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},m:()=>b(``),l:()=>{w=!1,mt=0},A:function(e,t){e=-9007199254740992>e||9007199254740992<e?NaN:Number(e),e=/* @__PURE__ */ new Date(1e3*e),_[t>>2]=e.getSeconds(),_[t+4>>2]=e.getMinutes(),_[t+8>>2]=e.getHours(),_[t+12>>2]=e.getDate(),_[t+16>>2]=e.getMonth(),_[t+20>>2]=e.getFullYear()-1900,_[t+24>>2]=e.getDay();var n=e.getFullYear();_[t+28>>2]=(n%4!=0||n%100==0&&n%400!=0?gt:ht)[e.getMonth()]+e.getDate()-1|0,_[t+36>>2]=-(60*e.getTimezoneOffset()),n=new Date(e.getFullYear(),6,1).getTimezoneOffset();var r=new Date(e.getFullYear(),0,1).getTimezoneOffset();_[t+32>>2]=(n!=r&&e.getTimezoneOffset()==Math.min(r,n))|0},y:function(e,t,n,r,i,a,o){i=-9007199254740992>i||9007199254740992<i?NaN:Number(i);try{var s=B(r);if(t&2&&!(n&2)&&(s.flags&2097155)!=2||(s.flags&2097155)==1)throw new F(2);if(!s.Ma.sb)throw new F(43);if(!e)throw new F(28);var c=s.Ma.sb(s,e,i,t,n),l=c.tc;return _[a>>2]=c.Ub,v[o>>2]=l,0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},z:function(e,t,n,r,i,a){a=-9007199254740992>a||9007199254740992<a?NaN:Number(a);try{var o=B(i);if(n&2){if((o.node.mode&61440)!=32768)throw new F(43);r&2||o.Ma.tb&&o.Ma.tb(o,h.slice(e,e+t),a,t,r)}}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},n:(e,t)=>(q[e]&&(clearTimeout(q[e].id),delete q[e]),t&&(q[e]={id:setTimeout(()=>{delete q[e],yt(()=>jt(e,performance.now()))},t),Hc:t}),0),B:(e,t,n,r)=>{var i=(/* @__PURE__ */ new Date()).getFullYear(),a=new Date(i,0,1).getTimezoneOffset();i=new Date(i,6,1).getTimezoneOffset(),v[e>>2]=60*Math.max(a,i),_[t>>2]=Number(a!=i),t=e=>{var t=Math.abs(e);return`UTC${0<=e?`-`:`+`}${String(Math.floor(t/60)).padStart(2,`0`)}${String(t%60).padStart(2,`0`)}`},e=t(a),t=t(i),i<a?(j(e,h,n,17),j(t,h,r,17)):(j(e,h,r,17),j(t,h,n,17))},d:()=>Date.now(),s:()=>2147483648,c:()=>performance.now(),o:e=>{var t=h.length;if(e>>>=0,2147483648<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);a:{r=(Math.min(2147483648,65536*Math.ceil(Math.max(e,r)/65536))-Pt.buffer.byteLength+65535)/65536|0;try{Pt.grow(r),se();var i=1;break a}catch{}i=void 0}if(i)return!0}return!1},E:(e,t)=>{var n=0,r=0,i;for(i of xt()){var a=t+n;v[e+r>>2]=a,n+=j(i,h,a,1/0)+1,r+=4}return 0},F:(e,t)=>{var n=xt();v[e>>2]=n.length,e=0;for(var r of n)e+=A(r)+1;return v[t>>2]=e,0},e:function(e){try{return ot(B(e)),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},p:function(e,t){try{var n=B(e);return m[t]=n.Va?2:R(n.mode)?3:(n.mode&61440)==40960?7:4,g[t+2>>1]=0,y[t+8>>3]=BigInt(0),y[t+16>>3]=BigInt(0),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},w:function(e,t,n,r){try{a:{var i=B(e);e=t;for(var a,o=t=0;o<n;o++){var s=v[e>>2],c=v[e+4>>2];e+=8;var l=ct(i,m,s,c,a);if(0>l){var u=-1;break a}if(t+=l,l<c)break;a!==void 0&&(a+=l)}u=t}return v[r>>2]=u,0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},D:function(e,t,n,r){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return 61;var i=B(e);return st(i,t,n),y[r>>3]=BigInt(i.position),i.Eb&&t===0&&n===0&&(i.Eb=null),0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},I:function(e){try{var t=B(e);return t.Ma?.lb?.(t)}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},t:function(e,t,n,r){try{a:{var i=B(e);e=t;for(var a,o=t=0;o<n;o++){var s=v[e>>2],c=v[e+4>>2];e+=8;var l=lt(i,m,s,c,a);if(0>l){var u=-1;break a}if(t+=l,l<c)break;a!==void 0&&(a+=l)}u=t}return v[r>>2]=u,0}catch(e){if(G===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},k:vt};function It(){function e(){if(o.calledRun=!0,!p){if(!o.noFSInit&&!Pe){var e,t;Pe=!0,e??=o.stdin,t??=o.stdout,n??=o.stderr,e?W(`stdin`,e):et(`/dev/tty`,`/dev/stdin`),t?W(`stdout`,null,t):et(`/dev/tty`,`/dev/stdout`),n?W(`stderr`,null,n):et(`/dev/tty1`,`/dev/stderr`),U(`/dev/stdin`,0),U(`/dev/stdout`,1),U(`/dev/stderr`,1)}if(Lt.N(),Fe=!1,o.onRuntimeInitialized?.(),o.postRun)for(typeof o.postRun==`function`&&(o.postRun=[o.postRun]);o.postRun.length;){var n=o.postRun.shift();me.push(n)}pe(me)}}if(0<x)S=It;else{if(o.preRun)for(typeof o.preRun==`function`&&(o.preRun=[o.preRun]);o.preRun.length;)ge();pe(he),0<x?S=It:o.setStatus?(o.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>o.setStatus(``),1),e()},1)):e()}}var Lt;return(async function(){function e(e){return e=Lt=e.exports,o._sqlite3_free=e.P,o._sqlite3_value_text=e.Q,o._sqlite3_prepare_v2=e.R,o._sqlite3_step=e.S,o._sqlite3_reset=e.T,o._sqlite3_exec=e.U,o._sqlite3_finalize=e.V,o._sqlite3_column_name=e.W,o._sqlite3_column_text=e.X,o._sqlite3_column_type=e.Y,o._sqlite3_errmsg=e.Z,o._sqlite3_clear_bindings=e._,o._sqlite3_value_blob=e.$,o._sqlite3_value_bytes=e.aa,o._sqlite3_value_double=e.ba,o._sqlite3_value_int=e.ca,o._sqlite3_value_type=e.da,o._sqlite3_result_blob=e.ea,o._sqlite3_result_double=e.fa,o._sqlite3_result_error=e.ga,o._sqlite3_result_int=e.ha,o._sqlite3_result_int64=e.ia,o._sqlite3_result_null=e.ja,o._sqlite3_result_text=e.ka,o._sqlite3_aggregate_context=e.la,o._sqlite3_column_count=e.ma,o._sqlite3_data_count=e.na,o._sqlite3_column_blob=e.oa,o._sqlite3_column_bytes=e.pa,o._sqlite3_column_double=e.qa,o._sqlite3_bind_blob=e.ra,o._sqlite3_bind_double=e.sa,o._sqlite3_bind_int=e.ta,o._sqlite3_bind_text=e.ua,o._sqlite3_bind_parameter_index=e.va,o._sqlite3_sql=e.wa,o._sqlite3_normalized_sql=e.xa,o._sqlite3_changes=e.ya,o._sqlite3_close_v2=e.za,o._sqlite3_create_function_v2=e.Aa,o._sqlite3_update_hook=e.Ba,o._sqlite3_open=e.Ca,kt=o._malloc=e.Da,Z=o._free=e.Ea,o._RegisterExtensionFunctions=e.Fa,At=e.Ga,jt=e.Ha,Mt=e.Ia,Q=e.Ja,Nt=e.Ka,Pt=e.M,$=e.O,se(),x--,o.monitorRunDependencies?.(x),x==0&&S&&(e=S,S=null,e()),Lt}x++,o.monitorRunDependencies?.(x);var t={a:Ft};return o.instantiateWasm?new Promise(n=>{o.instantiateWasm(t,(t,r)=>{n(e(t,r))})}):(ce??=o.locateFile?o.locateFile(`sql-wasm-browser.wasm`,ee):ee+`sql-wasm-browser.wasm`,e((await de(t)).instance))})(),It(),i}),n)};typeof e==`object`&&typeof t==`object`?(t.exports=r,t.exports.default=r):typeof define==`function`&&define.amd?define([],function(){return r}):typeof e==`object`&&(e.Module=r)}));export default t();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,r as n}from"./chunk-Y2CYZVJY-DjEHBC-3.js";import{t as r}from"./linear-DXABSWHW.js";import{t as i}from"./ordinal-NuFkISw7.js";import{r as a}from"./defaultLocale-BvxIcb9Y.js";import{n as o}from"./arc-B3K1fDeF.js";import{Et as s,St as c,Tt as l,_t as u,bt as d,dt as f,et as p,ht as m,it as h,lt as ee,mt as g,ot as _,pt as te,ut as ne,vt as re,yt as ie}from"./chunk-75Z2AOVW-IO9R6faP.js";import{t as ae}from"./line-qVHaOdPp.js";import{i as oe,r as se}from"./diagram-VX7I27RA-CbWJVJ_L.js";import{a as ce,c as le,d as ue,f as de,i as fe,l as pe,o as me,p as he,r as ge,s as _e,u as ve}from"./ganttDiagram-EL5Y4UJY-DIAlbvVg.js";import{r as ye}from"./pieDiagram-E7YTZNPT-BUsnkTkJ.js";import{r as be}from"./sankeyDiagram-P5KCCOFB-Cp8SrFyb.js";import{r as xe}from"./xychartDiagram-S5SC5T6Z-B_Owv9Ho.js";import Se from"dayjs";var v,y,Ce,b;function we(){return(we=e((()=>{n(),v={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},y={trace:/* @__PURE__ */ t((...e)=>{},`trace`),debug:/* @__PURE__ */ t((...e)=>{},`debug`),info:/* @__PURE__ */ t((...e)=>{},`info`),warn:/* @__PURE__ */ t((...e)=>{},`warn`),error:/* @__PURE__ */ t((...e)=>{},`error`),fatal:/* @__PURE__ */ t((...e)=>{},`fatal`)},Ce=/* @__PURE__ */ t(function(e=`fatal`){let t=v.fatal;typeof e==`string`?e.toLowerCase()in v&&(t=v[e]):typeof e==`number`&&(t=e),y.trace=()=>{},y.debug=()=>{},y.info=()=>{},y.warn=()=>{},y.error=()=>{},y.fatal=()=>{},t<=v.fatal&&(y.fatal=console.error?console.error.bind(console,b(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,b(`FATAL`))),t<=v.error&&(y.error=console.error?console.error.bind(console,b(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,b(`ERROR`))),t<=v.warn&&(y.warn=console.warn?console.warn.bind(console,b(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,b(`WARN`))),t<=v.info&&(y.info=console.info?console.info.bind(console,b(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,b(`INFO`))),t<=v.debug&&(y.debug=console.debug?console.debug.bind(console,b(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,b(`DEBUG`))),t<=v.trace&&(y.trace=console.debug?console.debug.bind(console,b(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,b(`TRACE`)))},`setLogLevel`),b=/* @__PURE__ */ t(e=>`%c${Se().format(`ss.SSS`)} : ${e} : `,`format`)})))()}function Te(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Ee(n)}function Ee(e){this._=e}function De(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function Oe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ke(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ae,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ae;function je(){return(je=e((()=>{Ae={value:()=>{}},Ee.prototype=Te.prototype={constructor:Ee,on:function(e,t){var n=this._,r=De(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Oe(n[i],e.name)))return i}else{if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=ke(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ke(n[i],e.name,null);return this}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ee(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}}})))()}var Me,Ne;function Pe(){return(Pe=e((()=>{Me=`http://www.w3.org/1999/xhtml`,Ne={svg:`http://www.w3.org/2000/svg`,xhtml:Me,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}})))()}function Fe(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Ne.hasOwnProperty(t)?{space:Ne[t],local:e}:e}function x(){return(x=e((()=>{Pe()})))()}function Ie(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Re(e){var t=Fe(e);return(t.local?Le:Ie)(t)}function ze(){return(ze=e((()=>{x(),Pe()})))()}function Be(){}function Ve(e){return e==null?Be:function(){return this.querySelector(e)}}function He(){return(He=e((()=>{})))()}function Ue(e){typeof e!=`function`&&(e=Ve(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new C(r,this._parents)}function We(){return(We=e((()=>{T(),He()})))()}function Ge(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ke(){return[]}function qe(e){return e==null?Ke:function(){return this.querySelectorAll(e)}}function Je(){return(Je=e((()=>{})))()}function Ye(e){return function(){return Ge(e.apply(this,arguments))}}function Xe(e){e=typeof e==`function`?Ye(e):qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new C(r,i)}function Ze(){return(Ze=e((()=>{T(),Je()})))()}function Qe(e){return function(){return this.matches(e)}}function $e(e){return function(t){return t.matches(e)}}function et(e){return function(){return rt.call(this.children,e)}}function tt(){return this.firstElementChild}function nt(e){return this.select(e==null?tt:et(typeof e==`function`?e:$e(e)))}var rt;function it(){return(it=e((()=>{rt=Array.prototype.find})))()}function at(){return Array.from(this.children)}function ot(e){return function(){return ct.call(this.children,e)}}function st(e){return this.selectAll(e==null?at:ot(typeof e==`function`?e:$e(e)))}var ct;function lt(){return(lt=e((()=>{ct=Array.prototype.filter})))()}function ut(e){typeof e!=`function`&&(e=Qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new C(r,this._parents)}function dt(){return(dt=e((()=>{T()})))()}function ft(e){return Array(e.length)}function pt(){return new C(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function ht(){return(ht=e((()=>{T(),mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}})))()}function gt(e){return function(){return e}}function _t(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function vt(e,t,n,r,i,a,o){var s,c,l=/* @__PURE__ */ new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function yt(e){return e.__data__}function bt(e,t){if(!arguments.length)return Array.from(this,yt);var n=t?vt:_t,r=this._parents,i=this._groups;typeof e!=`function`&&(e=gt(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=xt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),ee=o[l]=Array(m);n(u,d,h,ee,c[l]=Array(f),p,t);for(var g=0,_=0,te,ne;g<m;++g)if(te=h[g]){for(g>=_&&(_=g+1);!(ne=ee[_])&&++_<m;);te._next=ne||null}}return o=new C(o,r),o._enter=s,o._exit=c,o}function xt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function St(){return(St=e((()=>{T(),ht()})))()}function Ct(){return new C(this._exit||this._groups.map(ft),this._parents)}function wt(){return(wt=e((()=>{T()})))()}function Tt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Et(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new C(s,this._parents)}function Dt(){return(Dt=e((()=>{T()})))()}function Ot(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function kt(e){e||=At;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new C(i,this._parents).order()}function At(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jt(){return(jt=e((()=>{T()})))()}function Mt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nt(){return Array.from(this)}function Pt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Ft(){let e=0;for(let t of this)++e;return e}function It(){return!this.node()}function Lt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Rt(e){return function(){this.removeAttribute(e)}}function zt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Bt(e,t){return function(){this.setAttribute(e,t)}}function Vt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ht(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Ut(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wt(e,t){var n=Fe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?zt:Rt:typeof t==`function`?n.local?Ut:Ht:n.local?Vt:Bt)(n,t))}function Gt(){return(Gt=e((()=>{x()})))()}function Kt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qt(e){return function(){this.style.removeProperty(e)}}function Jt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Yt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Xt(e,t,n){return arguments.length>1?this.each((t==null?qt:typeof t==`function`?Yt:Jt)(e,t,n??``)):S(this.node(),e)}function S(e,t){return e.style.getPropertyValue(t)||Kt(e).getComputedStyle(e,null).getPropertyValue(t)}function Zt(){return(Zt=e((()=>{})))()}function Qt(e){return function(){delete this[e]}}function $t(e,t){return function(){this[e]=t}}function en(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function tn(e,t){return arguments.length>1?this.each((t==null?Qt:typeof t==`function`?en:$t)(e,t)):this.node()[e]}function nn(){return(nn=e((()=>{})))()}function rn(e){return e.trim().split(/^|\s+/)}function an(e){return e.classList||new on(e)}function on(e){this._node=e,this._names=rn(e.getAttribute(`class`)||``)}function sn(e,t){for(var n=an(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function cn(e,t){for(var n=an(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ln(e){return function(){sn(this,e)}}function un(e){return function(){cn(this,e)}}function dn(e,t){return function(){(t.apply(this,arguments)?sn:cn)(this,e)}}function fn(e,t){var n=rn(e+``);if(arguments.length<2){for(var r=an(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?dn:t?ln:un)(n,t))}function pn(){return(pn=e((()=>{on.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}})))()}function mn(){this.textContent=``}function hn(e){return function(){this.textContent=e}}function gn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function _n(e){return arguments.length?this.each(e==null?mn:(typeof e==`function`?gn:hn)(e)):this.node().textContent}function vn(){return(vn=e((()=>{})))()}function yn(){this.innerHTML=``}function bn(e){return function(){this.innerHTML=e}}function xn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Sn(e){return arguments.length?this.each(e==null?yn:(typeof e==`function`?xn:bn)(e)):this.node().innerHTML}function Cn(){return(Cn=e((()=>{})))()}function wn(){this.nextSibling&&this.parentNode.appendChild(this)}function Tn(){return this.each(wn)}function En(){return(En=e((()=>{})))()}function Dn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function On(){return this.each(Dn)}function kn(){return(kn=e((()=>{})))()}function An(e){var t=typeof e==`function`?e:Re(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function jn(){return(jn=e((()=>{ze()})))()}function Mn(){return null}function Nn(e,t){var n=typeof e==`function`?e:Re(e),r=t==null?Mn:typeof t==`function`?t:Ve(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Pn(){return(Pn=e((()=>{ze(),He()})))()}function Fn(){var e=this.parentNode;e&&e.removeChild(this)}function In(){return this.each(Fn)}function Ln(){return(Ln=e((()=>{})))()}function Rn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bn(e){return this.select(e?zn:Rn)}function Vn(){return(Vn=e((()=>{})))()}function Hn(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Un(e){return function(t){e.call(this,t,this.__data__)}}function Wn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Gn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Kn(e,t,n){return function(){var r=this.__on,i,a=Un(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function qn(e,t,n){var r=Wn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}}else{for(s=t?Kn:Gn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}}function Jn(){return(Jn=e((()=>{})))()}function Yn(e,t,n){var r=Kt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Xn(e,t){return function(){return Yn(this,e,t)}}function Zn(e,t){return function(){return Yn(this,e,t.apply(this,arguments))}}function Qn(e,t){return this.each((typeof t==`function`?Zn:Xn)(e,t))}function $n(){return($n=e((()=>{})))()}function*er(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}function C(e,t){this._groups=e,this._parents=t}function w(){return new C([[document.documentElement]],nr)}function tr(){return this}var nr;function T(){return(T=e((()=>{We(),Ze(),it(),lt(),dt(),St(),ht(),wt(),Dt(),jt(),Gt(),Zt(),nn(),pn(),vn(),Cn(),En(),kn(),jn(),Pn(),Ln(),Vn(),Jn(),$n(),nr=[null],C.prototype=w.prototype={constructor:C,select:Ue,selectAll:Xe,selectChild:nt,selectChildren:st,filter:ut,data:bt,enter:pt,exit:Ct,join:Tt,merge:Et,selection:tr,order:Ot,sort:kt,call:Mt,nodes:Nt,node:Pt,size:Ft,empty:It,each:Lt,attr:Wt,style:Xt,property:tn,classed:fn,text:_n,html:Sn,raise:Tn,lower:On,append:An,insert:Nn,remove:In,clone:Bn,datum:Hn,on:qn,dispatch:Qn,[Symbol.iterator]:er}})))()}function rr(e){return typeof e==`string`?new C([[document.querySelector(e)]],[document.documentElement]):new C([[e]],nr)}function ir(){return(ir=e((()=>{T()})))()}function ar(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function or(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sr(){return(sr=e((()=>{})))()}function E(){}function cr(){return this.rgb().formatHex()}function lr(){return this.rgb().formatHex8()}function ur(){return xr(this).formatHsl()}function dr(){return this.rgb().formatRgb()}function D(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Er.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?fr(t):n===3?new O(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?pr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?pr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Dr.exec(e))?new O(t[1],t[2],t[3],1):(t=Or.exec(e))?new O(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kr.exec(e))?pr(t[1],t[2],t[3],t[4]):(t=Ar.exec(e))?pr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jr.exec(e))?br(t[1],t[2]/100,t[3]/100,1):(t=Mr.exec(e))?br(t[1],t[2]/100,t[3]/100,t[4]):Nr.hasOwnProperty(e)?fr(Nr[e]):e===`transparent`?new O(NaN,NaN,NaN,0):null}function fr(e){return new O(e>>16&255,e>>8&255,e&255,1)}function pr(e,t,n,r){return r<=0&&(e=t=n=NaN),new O(e,t,n,r)}function mr(e){return e instanceof E||(e=D(e)),e?(e=e.rgb(),new O(e.r,e.g,e.b,e.opacity)):new O}function hr(e,t,n,r){return arguments.length===1?mr(e):new O(e,t,n,r??1)}function O(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gr(){return`#${A(this.r)}${A(this.g)}${A(this.b)}`}function _r(){return`#${A(this.r)}${A(this.g)}${A(this.b)}${A((isNaN(this.opacity)?1:this.opacity)*255)}`}function vr(){let e=yr(this.opacity);return`${e===1?`rgb(`:`rgba(`}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${e===1?`)`:`, ${e})`}`}function yr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function A(e){return e=k(e),(e<16?`0`:``)+e.toString(16)}function br(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new j(e,t,n,r)}function xr(e){if(e instanceof j)return new j(e.h,e.s,e.l,e.opacity);if(e instanceof E||(e=D(e)),!e)return new j;if(e instanceof j)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new j(o,s,c,e.opacity)}function Sr(e,t,n,r){return arguments.length===1?xr(e):new j(e,t,n,r??1)}function j(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cr(e){return e=(e||0)%360,e<0?e+360:e}function wr(e){return Math.max(0,Math.min(1,e||0))}function Tr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var M,N,P,F,I,Er,Dr,Or,kr,Ar,jr,Mr,Nr;function Pr(){return(Pr=e((()=>{M=.7,N=1/M,P=`\\s*([+-]?\\d+)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,I=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Er=/^#([0-9a-f]{3,8})$/,Dr=RegExp(`^rgb\\(${P},${P},${P}\\)$`),Or=RegExp(`^rgb\\(${I},${I},${I}\\)$`),kr=RegExp(`^rgba\\(${P},${P},${P},${F}\\)$`),Ar=RegExp(`^rgba\\(${I},${I},${I},${F}\\)$`),jr=RegExp(`^hsl\\(${F},${I},${I}\\)$`),Mr=RegExp(`^hsla\\(${F},${I},${I},${F}\\)$`),Nr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ar(E,D,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cr,formatHex:cr,formatHex8:lr,formatHsl:ur,formatRgb:dr,toString:dr}),ar(O,hr,or(E,{brighter(e){return e=e==null?N:N**+e,new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new O(k(this.r),k(this.g),k(this.b),yr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gr,formatHex:gr,formatHex8:_r,formatRgb:vr,toString:vr})),ar(j,Sr,or(E,{brighter(e){return e=e==null?N:N**+e,new j(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new j(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new O(Tr(e>=240?e-240:e+120,i,r),Tr(e,i,r),Tr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new j(Cr(this.h),wr(this.s),wr(this.l),yr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=yr(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Cr(this.h)}, ${wr(this.s)*100}%, ${wr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})))()}function Fr(){return(Fr=e((()=>{})))()}function Ir(){return(Ir=e((()=>{Fr()})))()}var L;function Lr(){return(Lr=e((()=>{L=e=>()=>e})))()}function Rr(e,t){return function(n){return e+n*t}}function zr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Br(e,t){var n=t-e;return n?Rr(e,n>180||n<-180?n-360*Math.round(n/360):n):L(isNaN(e)?t:e)}function Vr(e){return(e=+e)==1?Hr:function(t,n){return n-t?zr(t,n,e):L(isNaN(t)?n:t)}}function Hr(e,t){var n=t-e;return n?Rr(e,n):L(isNaN(e)?t:e)}function Ur(){return(Ur=e((()=>{Lr()})))()}var Wr;function Gr(){return(Gr=e((()=>{Pr(),Fr(),Ir(),Ur(),Wr=(function e(t){var n=Vr(t);function r(e,t){var r=n((e=hr(e)).r,(t=hr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Hr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)})))()}function R(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Kr(){return(Kr=e((()=>{})))()}function qr(e){return function(){return e}}function Jr(e){return function(t){return e(t)+``}}function Yr(e,t){var n=Xr.lastIndex=Zr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Xr.exec(e))&&(i=Zr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:R(r,i)})),n=Zr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Jr(c[0].x):qr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Xr,Zr;function Qr(){return(Qr=e((()=>{Xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zr=new RegExp(Xr.source,`g`)})))()}function $r(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ei,skewX:Math.atan(c)*ei,scaleX:o,scaleY:s}}var ei,ti;function ni(){return(ni=e((()=>{ei=180/Math.PI,ti={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}})))()}function ri(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ti:$r(t.a,t.b,t.c,t.d,t.e,t.f)}function ii(e){return e==null||(ai||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),ai.setAttribute(`transform`,e),!(e=ai.transform.baseVal.consolidate()))?ti:(e=e.matrix,$r(e.a,e.b,e.c,e.d,e.e,e.f))}var ai;function oi(){return(oi=e((()=>{ni()})))()}function si(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:R(e,i)},{i:c-2,x:R(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:R(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:R(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:R(e,n)},{i:s-2,x:R(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ci,li;function ui(){return(ui=e((()=>{oi(),ci=si(ri,`px, `,`px)`,`deg)`),li=si(ii,`, `,`)`,`)`)})))()}function di(){return U||=(Ci(fi),G.now()+W)}function fi(){U=0}function pi(){this._call=this._time=this._next=null}function mi(e,t,n){var r=new pi;return r.restart(e,t,n),r}function hi(){di(),++z;for(var e=Si,t;e;)(t=U-e._time)>=0&&e._call.call(void 0,t),e=e._next;--z}function gi(){U=(H=G.now())+W,z=B=0;try{hi()}finally{z=0,vi(),U=0}}function _i(){var e=G.now(),t=e-H;t>xi&&(W-=t,H=e)}function vi(){for(var e,t=Si,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Si=n);V=e,yi(r)}function yi(e){z||(B&&=clearTimeout(B),e-U>24?(e<1/0&&(B=setTimeout(gi,e-G.now()-W)),bi&&=clearInterval(bi)):(bi||=(H=G.now(),setInterval(_i,xi)),z=1,Ci(gi)))}var z,B,bi,xi,Si,V,H,U,W,G,Ci;function wi(){return(wi=e((()=>{z=0,B=0,bi=0,xi=1e3,H=0,U=0,W=0,G=typeof performance==`object`&&performance.now?performance:Date,Ci=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},pi.prototype=mi.prototype={constructor:pi,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?di():+n)+(t==null?0:+t),!this._next&&V!==this&&(V?V._next=this:Si=this,V=this),this._call=e,this._time=n,yi()},stop:function(){this._call&&(this._call=null,this._time=1/0,yi())}}})))()}function Ti(e,t,n){var r=new pi;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}function Ei(){return(Ei=e((()=>{wi()})))()}function Di(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;ki(e,n,{name:t,index:r,group:i,on:Ai,tween:ji,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Oi(e,t){var n=q(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function K(e,t){var n=q(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function q(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function ki(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=mi(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Ti(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Ti(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}var Ai,ji;function J(){return(J=e((()=>{je(),wi(),Ei(),Ai=Te(`start`,`end`,`cancel`,`interrupt`),ji=[]})))()}function Mi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n)(r=n[o]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]):a=!1;a&&delete e.__transition}}function Ni(){return(Ni=e((()=>{J()})))()}function Pi(e){return this.each(function(){Mi(this,e)})}function Fi(){return(Fi=e((()=>{Ni()})))()}function Ii(e,t){var n,r;return function(){var i=K(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Li(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=K(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ri(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=q(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ii:Li)(n,e,t))}function zi(e,t,n){var r=e._id;return e.each(function(){var e=K(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return q(e,r).value[t]}}function Y(){return(Y=e((()=>{J()})))()}function Bi(e,t){var n;return(typeof t==`number`?R:t instanceof D?Wr:(n=D(t))?(t=n,Wr):Yr)(e,t)}function Vi(){return(Vi=e((()=>{Pr(),Gr(),Qr()})))()}function Hi(e){return function(){this.removeAttribute(e)}}function Ui(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wi(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Gi(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Ki(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function qi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ji(e,t){var n=Fe(e),r=n===`transform`?li:Bi;return this.attrTween(e,typeof t==`function`?(n.local?qi:Ki)(n,r,zi(this,`attr.`+e,t)):t==null?(n.local?Ui:Hi)(n):(n.local?Gi:Wi)(n,r,t))}function Yi(){return(Yi=e((()=>{ui(),x(),Y(),Vi()})))()}function Xi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Zi(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Qi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Zi(e,i)),n}return i._value=t,i}function $i(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Xi(e,i)),n}return i._value=t,i}function ea(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Fe(e);return this.tween(n,(r.local?Qi:$i)(r,t))}function ta(){return(ta=e((()=>{x()})))()}function na(e,t){return function(){Oi(this,e).delay=+t.apply(this,arguments)}}function ra(e,t){return t=+t,function(){Oi(this,e).delay=t}}function ia(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?na:ra)(t,e)):q(this.node(),t).delay}function aa(){return(aa=e((()=>{J()})))()}function oa(e,t){return function(){K(this,e).duration=+t.apply(this,arguments)}}function sa(e,t){return t=+t,function(){K(this,e).duration=t}}function ca(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?oa:sa)(t,e)):q(this.node(),t).duration}function la(){return(la=e((()=>{J()})))()}function ua(e,t){if(typeof t!=`function`)throw Error();return function(){K(this,e).ease=t}}function da(e){var t=this._id;return arguments.length?this.each(ua(t,e)):q(this.node(),t).ease}function fa(){return(fa=e((()=>{J()})))()}function pa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();K(this,e).ease=n}}function ma(e){if(typeof e!=`function`)throw Error();return this.each(pa(this._id,e))}function ha(){return(ha=e((()=>{J()})))()}function ga(e){typeof e!=`function`&&(e=Qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function _a(){return(_a=e((()=>{Q()})))()}function va(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function ya(){return(ya=e((()=>{Q()})))()}function ba(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function xa(e,t,n){var r,i,a=ba(t)?Oi:K;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Sa(e,t){var n=this._id;return arguments.length<2?q(this.node(),n).on.on(e):this.each(xa(n,e,t))}function Ca(){return(Ca=e((()=>{J()})))()}function wa(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ta(){return this.on(`end.remove`,wa(this._id))}function Ea(){return(Ea=e((()=>{})))()}function Da(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Ve(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Di(l[f],t,n,f,l,q(u,n)));return new X(a,this._parents,t,n)}function Oa(){return(Oa=e((()=>{He(),Q(),J()})))()}function ka(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=q(u,n),h=0,ee=f.length;h<ee;++h)(p=f[h])&&Di(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}function Aa(){return(Aa=e((()=>{Je(),Q(),J()})))()}function ja(){return new Ma(this._groups,this._parents)}var Ma;function Na(){return(Na=e((()=>{T(),Ma=w.prototype.constructor})))()}function Pa(e,t){var n,r,i;return function(){var a=S(this,e),o=(this.style.removeProperty(e),S(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Fa(e){return function(){this.style.removeProperty(e)}}function Ia(e,t,n){var r,i=n+``,a;return function(){var o=S(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function La(e,t,n){var r,i,a;return function(){var o=S(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),S(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ra(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=K(this,e),l=c.on,u=c.value[a]==null?s||=Fa(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function za(e,t,n){var r=(e+=``)==`transform`?ci:Bi;return t==null?this.styleTween(e,Pa(e,r)).on(`end.style.`+e,Fa(e)):typeof t==`function`?this.styleTween(e,La(e,r,zi(this,`style.`+e,t))).each(Ra(this._id,e)):this.styleTween(e,Ia(e,r,t),n).on(`end.style.`+e,null)}function Ba(){return(Ba=e((()=>{ui(),Zt(),J(),Y(),Vi()})))()}function Va(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ha(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Va(e,a,n)),r}return a._value=t,a}function Ua(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Ha(e,t,n??``))}function Wa(){return(Wa=e((()=>{})))()}function Ga(e){return function(){this.textContent=e}}function Ka(e){return function(){var t=e(this);this.textContent=t??``}}function qa(e){return this.tween(`text`,typeof e==`function`?Ka(zi(this,`text`,e)):Ga(e==null?``:e+``))}function Ja(){return(Ja=e((()=>{Y()})))()}function Ya(e){return function(t){this.textContent=e.call(this,t)}}function Xa(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ya(r)),t}return r._value=e,r}function Za(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Xa(e))}function Qa(){return(Qa=e((()=>{})))()}function $a(){for(var e=this._name,t=this._id,n=ro(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=q(c,t);Di(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function eo(){return(eo=e((()=>{Q(),J()})))()}function to(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=K(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}function no(){return(no=e((()=>{J()})))()}function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ro(){return++io}var io,Z;function Q(){return(Q=e((()=>{T(),Yi(),ta(),aa(),la(),fa(),ha(),_a(),ya(),Ca(),Ea(),Oa(),Aa(),Na(),Ba(),Wa(),Ja(),Qa(),eo(),Y(),no(),io=0,Z=w.prototype,X.prototype={constructor:X,select:Da,selectAll:ka,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:ga,merge:va,selection:ja,transition:$a,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:Sa,attr:Ji,attrTween:ea,style:za,styleTween:Ua,text:qa,textTween:Za,remove:Ta,tween:Ri,delay:ia,duration:ca,ease:da,easeVarying:ma,end:to,[Symbol.iterator]:Z[Symbol.iterator]}})))()}function ao(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}function oo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function so(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=ro(),(n=co).time=di(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Di(c,e,t,l,o,n||oo(c,t));return new X(r,this._parents,e,t)}var co;function lo(){return(lo=e((()=>{Q(),J(),wi(),co={time:null,delay:0,duration:250,ease:ao}})))()}function uo(){return(uo=e((()=>{T(),Fi(),lo(),w.prototype.interrupt=Pi,w.prototype.transition=so})))()}function fo(){return(fo=e((()=>{uo()})))()}function po(e){return{type:e}}var mo,ho,go;function _o(){return(_o=e((()=>{fo(),{abs:mo,max:ho,min:go}=Math,[`w`,`e`].map(po),[`n`,`s`].map(po),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(po)})))()}function vo(){return(vo=e((()=>{_o()})))()}function $(e,t,n){this.k=e,this.x=t,this.y=n}function yo(){return(yo=e((()=>{$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new $(1,0,0),$.prototype})))()}function bo(){return(bo=e((()=>{fo(),yo()})))()}function xo(){return(xo=e((()=>{bo(),yo()})))()}function So(){return(So=e((()=>{he(),vo(),a(),oe(),se(),de(),xe(),r(),i(),ge(),be(),ir(),o(),ae(),ye(),d(),ie(),c(),l(),re(),m(),g(),u(),f(),ne(),te(),ee(),s(),_(),h(),p(),ue(),ve(),pe(),le(),_e(),me(),ce(),fe(),fo(),xo()})))()}export{we as C,rr as S,Ce as T,mr as _,R as a,sr as b,Br as c,L as d,Lr as f,Pr as g,D as h,Kr as i,Ur as l,O as m,Qr as n,Gr as o,E as p,Yr as r,Wr as s,So as t,Hr as u,ar as v,y as w,ir as x,or as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BKuNeK48.js";var t,n,r,i,a,o,s,c;function l(){return(l=e((()=>{t=[`BOOLEAN`,`INT32`,`INT64`,`INT96`,`FLOAT`,`DOUBLE`,`BYTE_ARRAY`,`FIXED_LEN_BYTE_ARRAY`],n=[`PLAIN`,`GROUP_VAR_INT`,`PLAIN_DICTIONARY`,`RLE`,`BIT_PACKED`,`DELTA_BINARY_PACKED`,`DELTA_LENGTH_BYTE_ARRAY`,`DELTA_BYTE_ARRAY`,`RLE_DICTIONARY`,`BYTE_STREAM_SPLIT`],r=[`REQUIRED`,`OPTIONAL`,`REPEATED`],i=[`UTF8`,`MAP`,`MAP_KEY_VALUE`,`LIST`,`ENUM`,`DECIMAL`,`DATE`,`TIME_MILLIS`,`TIME_MICROS`,`TIMESTAMP_MILLIS`,`TIMESTAMP_MICROS`,`UINT_8`,`UINT_16`,`UINT_32`,`UINT_64`,`INT_8`,`INT_16`,`INT_32`,`INT_64`,`JSON`,`BSON`,`INTERVAL`],a=[`UNCOMPRESSED`,`SNAPPY`,`GZIP`,`LZO`,`BROTLI`,`LZ4`,`ZSTD`,`LZ4_RAW`],o=[`DATA_PAGE`,`INDEX_PAGE`,`DICTIONARY_PAGE`,`DATA_PAGE_V2`],s=[`UNORDERED`,`ASCENDING`,`DESCENDING`],c=[`SPHERICAL`,`VINCENTY`,`THOMAS`,`ANDOYER`,`KARNEY`]})))()}function u(e){let t=d(e);if(t.type===1)return{type:`Point`,coordinates:f(e,t)};if(t.type===2)return{type:`LineString`,coordinates:p(e,t)};if(t.type===3)return{type:`Polygon`,coordinates:m(e,t)};if(t.type===4){let n=[];for(let r=0;r<t.count;r++)n.push(f(e,d(e)));return{type:`MultiPoint`,coordinates:n}}if(t.type===5){let n=[];for(let r=0;r<t.count;r++)n.push(p(e,d(e)));return{type:`MultiLineString`,coordinates:n}}if(t.type===6){let n=[];for(let r=0;r<t.count;r++)n.push(m(e,d(e)));return{type:`MultiPolygon`,coordinates:n}}if(t.type===7){let n=[];for(let r=0;r<t.count;r++)n.push(u(e));return{type:`GeometryCollection`,geometries:n}}throw Error(`Unsupported geometry type: ${t.type}`)}function d(e){let{view:t}=e,n=t.getUint8(e.offset++)===1,r=t.getUint32(e.offset,n);e.offset+=4;let i=r%1e3,a=Math.floor(r/1e3),o=0;i>1&&i<=7&&(o=t.getUint32(e.offset,n),e.offset+=4);let s=2;return a&&s++,a===3&&s++,{littleEndian:n,type:i,dim:s,count:o}}function f(e,t){let n=[];for(let r=0;r<t.dim;r++){let r=e.view.getFloat64(e.offset,t.littleEndian);e.offset+=8,n.push(r)}return n}function p(e,t){let n=[];for(let r=0;r<t.count;r++)n.push(f(e,t));return n}function m(e,t){let{view:n}=e,r=[];for(let i=0;i<t.count;i++){let i=n.getUint32(e.offset,t.littleEndian);e.offset+=4,r.push(p(e,{...t,count:i}))}return r}function h(e,t,n,r){if(t&&n.endsWith(`_DICTIONARY`)){let n=e;e instanceof Uint8Array&&!(t instanceof Uint8Array)&&(n=new t.constructor(e.length));for(let r=0;r<e.length;r++)n[r]=t[e[r]];return n}return g(e,r)}function g(e,t){let{element:n,parsers:r,utf8:i=!0,schemaPath:a}=t,{type:o,converted_type:s,logical_type:c}=n,l=n.repetition_type!==`REQUIRED`;if(a?.some(e=>e.element.logical_type?.type===`VARIANT`)&&o===`BYTE_ARRAY`&&s!==`UTF8`&&c?.type!==`STRING`)return e;if(s===`DECIMAL`){let t=10**-(n.scale||0),r=Array(e.length);for(let n=0;n<r.length;n++)e[n]instanceof Uint8Array?r[n]=_(e[n])*t:r[n]=Number(e[n])*t;return r}if(!s&&o===`INT96`)return Array.from(e).map(e=>r.timestampFromNanoseconds(v(e)));if(s===`DATE`)return Array.from(e).map(e=>r.dateFromDays(e));if(s===`TIMESTAMP_MILLIS`)return Array.from(e).map(e=>r.timestampFromMilliseconds(e));if(s===`TIMESTAMP_MICROS`)return Array.from(e).map(e=>r.timestampFromMicroseconds(e));if(s===`JSON`)return e.map(e=>r.jsonFromBytes(e));if(s===`BSON`)throw Error(`parquet bson not supported`);if(s===`INTERVAL`)throw Error(`parquet interval not supported`);if(c?.type===`GEOMETRY`)return e.map(e=>r.geometryFromBytes(e));if(c?.type===`GEOGRAPHY`)return e.map(e=>r.geographyFromBytes(e));if(c?.type===`UUID`)return e.map(e=>r.uuidFromBytes(e));if(s===`UTF8`||c?.type===`STRING`||i&&o===`BYTE_ARRAY`)return e.map(e=>r.stringFromBytes(e));if(s===`UINT_64`||c?.type===`INTEGER`&&c.bitWidth===64&&!c.isSigned){if(e instanceof BigInt64Array)return new BigUint64Array(e.buffer,e.byteOffset,e.length);let t=l?Array(e.length):new BigUint64Array(e.length);for(let n=0;n<t.length;n++)t[n]=e[n];return t}if(s===`UINT_32`||c?.type===`INTEGER`&&c.bitWidth===32&&!c.isSigned){if(e instanceof Int32Array)return new Uint32Array(e.buffer,e.byteOffset,e.length);let t=l?Array(e.length):new Uint32Array(e.length);for(let n=0;n<t.length;n++)t[n]=e[n]<0?4294967296+e[n]:e[n];return t}if(c?.type===`FLOAT16`)return Array.from(e).map(y);if(c?.type===`TIMESTAMP`){let{unit:t}=c,n=r.timestampFromMilliseconds;t===`MICROS`&&(n=r.timestampFromMicroseconds),t===`NANOS`&&(n=r.timestampFromNanoseconds);let i=Array(e.length);for(let t=0;t<i.length;t++)i[t]=n(e[t]);return i}return e}function _(e){if(!e.length)return 0;let t=0n;for(let n of e)t=t*256n+BigInt(n);let n=e.length*8;return t>=2n**BigInt(n-1)&&(t-=2n**BigInt(n)),Number(t)}function v(e){let t=(e>>64n)-2440588n,n=e&18446744073709551615n;return t*86400000000000n+n}function y(e){if(!e)return;let t=e[1]<<8|e[0],n=t>>15?-1:1,r=t>>10&31,i=t&1023;return r===0?n*2**-14*(i/1024):r===31?i?NaN:n*(1/0):n*2**(r-15)*(1+i/1024)}var b,x;function S(){return(S=e((()=>{b=new TextDecoder,x={timestampFromMilliseconds(e){return new Date(Number(e))},timestampFromMicroseconds(e){return new Date(Number(e/1000n))},timestampFromNanoseconds(e){return new Date(Number(e/1000000n))},dateFromDays(e){return/* @__PURE__ */ new Date(e*864e5)},stringFromBytes(e){return e&&b.decode(e)},jsonFromBytes(e){return e&&JSON.parse(b.decode(e))},geometryFromBytes(e){return e&&u({view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0})},geographyFromBytes(e){return e&&u({view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0})},uuidFromBytes(e){if(!e)return;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return t.slice(0,8)+`-`+t.slice(8,12)+`-`+t.slice(12,16)+`-`+t.slice(16,20)+`-`+t.slice(20,32)}}})))()}function C(e,t,n){let r=e[t],i=[],a=1;if(r.num_children)for(;i.length<r.num_children;){let r=e[t+a],o=C(e,t+a,[...n,r.name]);a+=o.count,i.push(o)}return{count:a,element:r,children:i,path:n}}function ee(e,t){let n=C(e,0,[]),r=[n];for(let e of t){let i=n.children.find(t=>t.element.name===e);if(!i)throw Error(`parquet schema element not found: ${t}`);r.push(i),n=i}return r}function te(e){let t=[];function n(e){if(e.children.length)for(let t of e.children)n(t);else t.push(e.path.join(`.`))}return n(e),t}function ne(e){let t=0;for(let{element:n}of e)n.repetition_type===`REPEATED`&&t++;return t}function re(e){let t=0;for(let{element:n}of e.slice(1))n.repetition_type!==`REQUIRED`&&t++;return t}function ie(e){if(!e||e.element.converted_type!==`LIST`||e.children.length>1)return!1;let t=e.children[0];return!(t.children.length>1||t.element.repetition_type!==`REPEATED`)}function ae(e){if(!e||e.element.converted_type!==`MAP`||e.children.length>1)return!1;let t=e.children[0];return t.children.length===2&&t.element.repetition_type===`REPEATED`&&t.children.find(e=>e.element.name===`key`)?.element.repetition_type!==`REPEATED`&&t.children.find(e=>e.element.name===`value`)?.element.repetition_type!==`REPEATED`}function oe(e){if(e.length!==2)return!1;let[,t]=e;return!(t.element.repetition_type===`REPEATED`||t.children.length)}function w(e){let t={},n=0;for(;e.offset<e.view.byteLength;){let r=e.view.getUint8(e.offset++),i=r&15;if(i===de)break;let a=r>>4;n=a?n+a:le(e),t[`field_${n}`]=se(e,i)}return t}function se(e,t){switch(t){case fe:return!0;case pe:return!1;case me:return e.view.getInt8(e.offset++);case he:case ge:return le(e);case _e:return ue(e);case ve:{let t=e.view.getFloat64(e.offset,!0);return e.offset+=8,t}case ye:{let t=T(e),n=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t,n}case be:{let t=e.view.getUint8(e.offset++),n=t&15,r=t>>4;r===15&&(r=T(e));let i=n===fe||n===pe,a=Array(r);for(let t=0;t<r;t++)a[t]=i?se(e,me)===1:se(e,n);return a}case xe:return w(e);default:throw Error(`thrift unhandled type: ${t}`)}}function T(e){let t=0,n=0;for(;;){let r=e.view.getUint8(e.offset++);if(t|=(r&127)<<n,!(r&128))return t;n+=7}}function ce(e){let t=0n,n=0n;for(;;){let r=e.view.getUint8(e.offset++);if(t|=BigInt(r&127)<<n,!(r&128))return t;n+=7n}}function le(e){let t=T(e);return t>>>1^-(t&1)}function ue(e){let t=ce(e);return t>>1n^-(t&1n)}var de,fe,pe,me,he,ge,_e,ve,ye,be,xe;function E(){return(E=e((()=>{de=0,fe=1,pe=2,me=3,he=4,ge=5,_e=6,ve=7,ye=8,be=9,xe=12})))()}function Se(e,t){let n=/* @__PURE__ */ new Map,r=t?.find(({key:e})=>e===`geo`)?.value,i=(r&&JSON.parse(r)?.columns)??{};for(let[e,t]of Object.entries(i)){if(t.encoding!==`WKB`)continue;let r=t.edges===`spherical`?`GEOGRAPHY`:`GEOMETRY`,i=t.crs?.id??t.crs?.ids?.[0],a=i?`${i.authority}:${i.code.toString()}`:void 0;n.set(e,{type:r,crs:a})}for(let t=1;t<e.length;t++){let{logical_type:r,name:i,num_children:a,type:o}=e[t];a?t+=a:o===`BYTE_ARRAY`&&!r&&(e[t].logical_type=n.get(i))}}function D(e){return e&&ke.decode(e)}async function Ce(e,{parsers:t,initialFetchSize:n=Oe,geoparquet:r=!0}={}){if(!e||!(e.byteLength>=0))throw Error(`parquet expected AsyncBuffer`);let i=Math.max(0,e.byteLength-n),a=await e.slice(i,e.byteLength),o=new DataView(a);if(o.getUint32(a.byteLength-4,!0)!==827474256)throw Error(`parquet file invalid (footer != PAR1)`);let s=o.getUint32(a.byteLength-8,!0);if(s>e.byteLength-8)throw Error(`parquet metadata length ${s} exceeds available buffer ${e.byteLength-8}`);if(s+8>n){let n=e.byteLength-s-8,o=await e.slice(n,i),c=new ArrayBuffer(s+8),l=new Uint8Array(c);return l.set(new Uint8Array(o)),l.set(new Uint8Array(a),i-n),we(c,{parsers:t,geoparquet:r})}return we(a,{parsers:t,geoparquet:r})}function we(e,{parsers:s,geoparquet:c=!0}={}){if(!(e instanceof ArrayBuffer))throw Error(`parquet expected ArrayBuffer`);let l=new DataView(e);if(s={...x,...s},l.byteLength<8)throw Error(`parquet file is too short`);if(l.getUint32(l.byteLength-4,!0)!==827474256)throw Error(`parquet file invalid (footer != PAR1)`);let u=l.byteLength-8,d=l.getUint32(u,!0);if(d>l.byteLength-8)throw Error(`parquet metadata length ${d} exceeds available buffer ${l.byteLength-8}`);let f=w({view:l,offset:u-d}),p=f.field_1,m=f.field_2.map(e=>({type:t[e.field_1],type_length:e.field_2,repetition_type:r[e.field_3],name:D(e.field_4),num_children:e.field_5,converted_type:i[e.field_6],scale:e.field_7,precision:e.field_8,field_id:e.field_9,logical_type:Te(e.field_10)})),h=m.filter(e=>e.type),g=f.field_3,_=f.field_4.map(e=>({columns:e.field_1.map((e,r)=>({file_path:D(e.field_1),file_offset:e.field_2,meta_data:e.field_3&&{type:t[e.field_3.field_1],encodings:e.field_3.field_2?.map(e=>n[e]),path_in_schema:e.field_3.field_3.map(D),codec:a[e.field_3.field_4],num_values:e.field_3.field_5,total_uncompressed_size:e.field_3.field_6,total_compressed_size:e.field_3.field_7,key_value_metadata:e.field_3.field_8?.map(e=>({key:D(e.field_1),value:D(e.field_2)})),data_page_offset:e.field_3.field_9,index_page_offset:e.field_3.field_10,dictionary_page_offset:e.field_3.field_11,statistics:De(e.field_3.field_12,h[r],s),encoding_stats:e.field_3.field_13?.map(e=>({page_type:o[e.field_1],encoding:n[e.field_2],count:e.field_3})),bloom_filter_offset:e.field_3.field_14,bloom_filter_length:e.field_3.field_15,size_statistics:e.field_3.field_16&&{unencoded_byte_array_data_bytes:e.field_3.field_16.field_1,repetition_level_histogram:e.field_3.field_16.field_2,definition_level_histogram:e.field_3.field_16.field_3},geospatial_statistics:e.field_3.field_17&&{bbox:e.field_3.field_17.field_1&&{xmin:e.field_3.field_17.field_1.field_1,xmax:e.field_3.field_17.field_1.field_2,ymin:e.field_3.field_17.field_1.field_3,ymax:e.field_3.field_17.field_1.field_4,zmin:e.field_3.field_17.field_1.field_5,zmax:e.field_3.field_17.field_1.field_6,mmin:e.field_3.field_17.field_1.field_7,mmax:e.field_3.field_17.field_1.field_8},geospatial_types:e.field_3.field_17.field_2}},offset_index_offset:e.field_4,offset_index_length:e.field_5,column_index_offset:e.field_6,column_index_length:e.field_7,crypto_metadata:e.field_8,encrypted_column_metadata:e.field_9})),total_byte_size:e.field_2,num_rows:e.field_3,sorting_columns:e.field_4?.map(e=>({column_idx:e.field_1,descending:e.field_2,nulls_first:e.field_3})),file_offset:e.field_5,total_compressed_size:e.field_6,ordinal:e.field_7})),v=f.field_5?.map(e=>({key:D(e.field_1),value:D(e.field_2)})),y=D(f.field_6);return c&&Se(m,v),{version:p,schema:m,num_rows:g,row_groups:_,key_value_metadata:v,created_by:y,metadata_length:d}}function O({schema:e}){return ee(e,[])[0]}function Te(e){return e?.field_1?{type:`STRING`}:e?.field_2?{type:`MAP`}:e?.field_3?{type:`LIST`}:e?.field_4?{type:`ENUM`}:e?.field_5?{type:`DECIMAL`,scale:e.field_5.field_1,precision:e.field_5.field_2}:e?.field_6?{type:`DATE`}:e?.field_7?{type:`TIME`,isAdjustedToUTC:e.field_7.field_1,unit:Ee(e.field_7.field_2)}:e?.field_8?{type:`TIMESTAMP`,isAdjustedToUTC:e.field_8.field_1,unit:Ee(e.field_8.field_2)}:e?.field_10?{type:`INTEGER`,bitWidth:e.field_10.field_1,isSigned:e.field_10.field_2}:e?.field_11?{type:`NULL`}:e?.field_12?{type:`JSON`}:e?.field_13?{type:`BSON`}:e?.field_14?{type:`UUID`}:e?.field_15?{type:`FLOAT16`}:e?.field_16?{type:`VARIANT`,specification_version:e.field_16.field_1}:e?.field_17?{type:`GEOMETRY`,crs:D(e.field_17.field_1)}:e?.field_18?{type:`GEOGRAPHY`,crs:D(e.field_18.field_1),algorithm:c[e.field_18.field_2]}:e}function Ee(e){if(e.field_1)return`MILLIS`;if(e.field_2)return`MICROS`;if(e.field_3)return`NANOS`;throw Error(`parquet time unit required`)}function De(e,t,n){return e&&{max:k(e.field_1,t,n),min:k(e.field_2,t,n),null_count:e.field_3,distinct_count:e.field_4,max_value:k(e.field_5,t,n),min_value:k(e.field_6,t,n),is_max_value_exact:e.field_7,is_min_value_exact:e.field_8}}function k(e,t,n){let{type:r,converted_type:i,logical_type:a}=t;if(e===void 0)return e;if(r===`BOOLEAN`)return e[0]===1;if(r===`BYTE_ARRAY`)return n.stringFromBytes(e);let o=new DataView(e.buffer,e.byteOffset,e.byteLength);if(r===`FLOAT`&&o.byteLength===4)return o.getFloat32(0,!0);if(r===`DOUBLE`&&o.byteLength===8)return o.getFloat64(0,!0);if(r===`INT32`&&i===`DECIMAL`&&o.byteLength===4)return o.getInt32(0,!0)*10**-(t.scale||0);if(r===`INT64`&&i===`DECIMAL`&&o.byteLength===8)return Number(o.getBigInt64(0,!0))*10**-(t.scale||0);if(r===`INT32`&&i===`DATE`)return n.dateFromDays(o.getInt32(0,!0));if(r===`INT64`&&i===`TIMESTAMP_MILLIS`)return n.timestampFromMilliseconds(o.getBigInt64(0,!0));if(r===`INT64`&&i===`TIMESTAMP_MICROS`)return n.timestampFromMicroseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`&&a?.unit===`NANOS`)return n.timestampFromNanoseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`&&a?.unit===`MICROS`)return n.timestampFromMicroseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`)return n.timestampFromMilliseconds(o.getBigInt64(0,!0));let s=i?.startsWith(`UINT_`)||a?.type===`INTEGER`&&!a.isSigned;return r===`INT32`&&s&&o.byteLength===4?o.getUint32(0,!0):r===`INT64`&&s&&o.byteLength===8?o.getBigUint64(0,!0):r===`INT32`&&o.byteLength===4?o.getInt32(0,!0):r===`INT64`&&o.byteLength===8?o.getBigInt64(0,!0):i===`DECIMAL`?_(e)*10**-(t.scale||0):a?.type===`FLOAT16`?y(e):a?.type===`UUID`?n.uuidFromBytes(e):e}var Oe,ke;function A(){return(A=e((()=>{l(),S(),E(),Oe=1<<19,ke=new TextDecoder})))()}function Ae(e,t,n=void 0){n={...x,...n};let r=w(e);return{null_pages:r.field_1,min_values:r.field_2.map(e=>k(e,t,n)),max_values:r.field_3.map(e=>k(e,t,n)),boundary_order:s[r.field_4],null_counts:r.field_5,repetition_level_histograms:r.field_6,definition_level_histograms:r.field_7}}function je(e){let t=w(e);return{page_locations:t.field_1.map(e=>({offset:e.field_1,compressed_page_size:e.field_2,first_row_index:e.field_3})),unencoded_byte_array_data_bytes:t.field_2}}function Me(){return(Me=e((()=>{l(),S(),A(),E()})))()}function j(e,t){return(e<<t|e>>64n-t)&F}function M(e,t){return e=e+t*L&F,e=j(e,31n),e*I&F}function N(e,t){return e^=M(0n,t),e*I+Pe&F}function P(e,t=0n){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=e.byteLength,i=0,a;if(r>=32){let e=t+I+L&F,o=t+L&F,s=t,c=t-I&F;for(;i+32<=r;)e=M(e,n.getBigUint64(i,!0)),i+=8,o=M(o,n.getBigUint64(i,!0)),i+=8,s=M(s,n.getBigUint64(i,!0)),i+=8,c=M(c,n.getBigUint64(i,!0)),i+=8;a=j(e,1n)+j(o,7n)+j(s,12n)+j(c,18n)&F,a=N(a,e),a=N(a,o),a=N(a,s),a=N(a,c)}else a=t+Fe&F;for(a=a+BigInt(r)&F;i+8<=r;)a^=M(0n,n.getBigUint64(i,!0)),a=j(a,27n)*I+Pe&F,i+=8;for(i+4<=r&&(a^=BigInt(n.getUint32(i,!0))*I&F,a=j(a,23n)*L+Ne&F,i+=4);i<r;)a^=BigInt(n.getUint8(i))*Fe&F,a=j(a,11n)*I&F,i+=1;return a^=a>>33n,a=a*L&F,a^=a>>29n,a=a*Ne&F,a^=a>>32n,a}var F,I,L,Ne,Pe,Fe;function Ie(){return(Ie=e((()=>{F=18446744073709551615n,I=11400714785074694791n,L=14029467366897019727n,Ne=1609587929392839161n,Pe=9650029242287828579n,Fe=2870177450012600261n})))()}function Le(e,t){return Number((e>>32n)*BigInt(t)>>32n)}function Re(e){let t=/* @__PURE__ */ new Uint32Array(8),n=Number(e&4294967295n)|0;for(let e=0;e<8;e++)t[e]=1<<(Math.imul(n,Ge[e])>>>27);return t}function ze(e,t){let n=Le(t,e.length>>3)<<3,r=Re(t);for(let t=0;t<8;t++)if((e[n+t]&r[t])===0)return!1;return!0}function Be(e){let t=w(e),n=t.field_1;if(typeof n!=`number`||n<=0||n%32!=0||!t.field_2?.field_1||!t.field_3?.field_1||!t.field_4?.field_1)return;let{view:r,offset:i}=e;if(i+n>r.byteLength)throw Error(`parquet bloom filter truncated: need ${n} bytes, have ${r.byteLength-i}`);let a=new Uint32Array(n>>2);for(let e=0;e<a.length;e++)a[e]=r.getUint32(i+e*4,!0);return e.offset=i+n,{numBytes:n,blocks:a}}function Ve(e,t){if(e==null)return;let{type:n,converted_type:r,logical_type:i}=t;if(n===`BOOLEAN`)return typeof e==`boolean`?P(new Uint8Array([+!!e])):void 0;if(n===`FLOAT`){if(typeof e!=`number`)return;let t=/* @__PURE__ */ new ArrayBuffer(4);return new DataView(t).setFloat32(0,e,!0),P(new Uint8Array(t))}if(n===`DOUBLE`){if(typeof e!=`number`)return;let t=/* @__PURE__ */ new ArrayBuffer(8);return new DataView(t).setFloat64(0,e,!0),P(new Uint8Array(t))}if(n===`INT32`){if(r===`DATE`||r===`DECIMAL`||r===`TIME_MILLIS`||i?.type===`DATE`||i?.type===`TIME`||i?.type===`DECIMAL`||typeof e!=`number`||!Number.isInteger(e))return;let t=/* @__PURE__ */ new ArrayBuffer(4);return new DataView(t).setInt32(0,e|0,!0),P(new Uint8Array(t))}if(n===`INT64`){if(r===`TIMESTAMP_MILLIS`||r===`TIMESTAMP_MICROS`||r===`TIME_MICROS`||r===`DECIMAL`||i?.type===`TIMESTAMP`||i?.type===`TIME`||i?.type===`DECIMAL`)return;let t;if(typeof e==`bigint`)t=e;else if(typeof e==`number`&&Number.isSafeInteger(e))t=BigInt(e);else return;let n=/* @__PURE__ */ new ArrayBuffer(8);return new DataView(n).setBigUint64(0,BigInt.asUintN(64,t),!0),P(new Uint8Array(n))}if(n===`BYTE_ARRAY`)return r===`JSON`||r===`BSON`||r===`DECIMAL`||i?.type===`JSON`||i?.type===`BSON`||i?.type===`VARIANT`||i?.type===`GEOMETRY`||i?.type===`GEOGRAPHY`?void 0:typeof e==`string`?P(We.encode(e)):e instanceof Uint8Array?P(e):void 0;if(n===`FIXED_LEN_BYTE_ARRAY`)return r===`DECIMAL`||r===`INTERVAL`||i?.type===`DECIMAL`||i?.type===`UUID`||i?.type===`FLOAT16`||i?.type===`GEOMETRY`||i?.type===`GEOGRAPHY`?void 0:e instanceof Uint8Array?P(e):void 0}function He(e){let t=/* @__PURE__ */ new Set;return Ue(e,t),t}function Ue(e,t){if(e){if(`$and`in e&&Array.isArray(e.$and))for(let n of e.$and)Ue(n,t);else if(`$or`in e&&Array.isArray(e.$or))for(let n of e.$or)Ue(n,t);else if(!(`$nor`in e))for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(typeof r==`object`&&r&&!Array.isArray(r)?(`$eq`in r||`$in`in r)&&t.add(n):t.add(n))}}var We,Ge;function Ke(){return(Ke=e((()=>{E(),Ie(),We=new TextEncoder,Ge=new Uint32Array([1203114875,1150766481,2284105051,2729912477,1884591559,770785867,2667333959,1550580529])})))()}function qe(e,t){let n=1e4;for(let r=0;r<t.length;r+=n)e.push(...t.slice(r,r+n))}function R(e,t,n=!0){if(n?e===t:e==t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;if(e instanceof Uint8Array&&t instanceof Uint8Array){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!R(e[r],t[r],n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r)if(!R(e[i],t[i],n))return!1;return!0}function Je(e){if(!e)return[];if(e.length===1)return e[0];let t=[];for(let n of e)qe(t,n);return t}function z(){return(z=e((()=>{})))()}function B(e){if(!e)return[];let t=[];return`$and`in e&&Array.isArray(e.$and)?t.push(...e.$and.flatMap(B)):`$or`in e&&Array.isArray(e.$or)?t.push(...e.$or.flatMap(B)):`$nor`in e&&Array.isArray(e.$nor)?t.push(...e.$nor.flatMap(B)):t.push(...Object.keys(e)),[...new Set(t)]}function Ye(e){return[...new Set(B(e).map(e=>e.split(`.`)[0]))]}function V(e,t,n=!0){return`$and`in t&&Array.isArray(t.$and)?t.$and.every(t=>V(e,t,n)):`$or`in t&&Array.isArray(t.$or)?t.$or.some(t=>V(e,t,n)):`$nor`in t&&Array.isArray(t.$nor)?!t.$nor.some(t=>V(e,t,n)):Object.entries(t).every(([t,r])=>{let i=rt(e,t);return typeof r!=`object`||!r||Array.isArray(r)?R(i,r,n):Object.entries(r||{}).every(([e,r])=>e===`$gt`?i!=null&&i>r:e===`$gte`?i!=null&&i>=r:e===`$lt`?i!=null&&i<r:e===`$lte`?i!=null&&i<=r:e===`$eq`?R(i,r,n):e===`$ne`?!R(i,r,n):e===`$in`?Array.isArray(r)&&Xe(i,r,n):e===`$nin`?Array.isArray(r)&&!Xe(i,r,n):e!==`$not`||!V({[t]:i},{[t]:r},n))})}function Xe(e,t,n){return t.some(t=>R(e,t,n)||Array.isArray(e)&&e.some(e=>R(e,t,n)))}function H({rowGroup:e,physicalColumns:t,filter:n,strict:r=!0,bloomFilters:i,schemaElements:a}){if(!n)return!1;if(`$and`in n&&Array.isArray(n.$and))return n.$and.some(n=>H({rowGroup:e,physicalColumns:t,filter:n,strict:r,bloomFilters:i,schemaElements:a}));if(`$or`in n&&Array.isArray(n.$or))return n.$or.every(n=>H({rowGroup:e,physicalColumns:t,filter:n,strict:r,bloomFilters:i,schemaElements:a}));if(`$nor`in n&&Array.isArray(n.$nor))return!1;for(let[o,s]of Object.entries(n)){let n=t.indexOf(o);if(n===-1)continue;let{min:c,max:l,min_value:u,max_value:d,null_count:f}=e.columns[n].meta_data?.statistics||{},p=u===void 0?c:u,m=d===void 0?l:d,h=p!==void 0&&m!==void 0,g=i?.[o],_=a?.[o],v=V({value:null},{value:s},r)&&(f===void 0||f>0);if(h&&!v&&Ze(s,p,m,r,_))return!0;for(let[e,t]of Object.entries(s||{}))if(g&&_){if(e===`$eq`){let e=Ve(t,_);if(e!==void 0&&!ze(g.blocks,e))return!0}if(e===`$in`&&Array.isArray(t)&&t.length>0){let e=!0;for(let n of t){let t=Ve(n,_);if(t===void 0||ze(g.blocks,t)){e=!1;break}}if(e)return!0}}}return!1}function Ze(e,t,n,r,i){if(t===void 0||n===void 0)return!1;let a=i?.type===`FLOAT`||i?.type===`DOUBLE`||i?.logical_type?.type===`FLOAT16`;for(let[o,s]of Object.entries(e||{})){let e=U(t,s,r,i),c=U(n,s,r,i),l=!(t instanceof Uint8Array||n instanceof Uint8Array)&&(i?.type!==`BYTE_ARRAY`||typeof s==`string`&&[...s].every(e=>e.charCodeAt(0)<=127));if(o===`$gt`&&l&&c!==void 0&&c<=0||o===`$gte`&&l&&c!==void 0&&c<0||o===`$lt`&&l&&e!==void 0&&e>=0||o===`$lte`&&l&&e!==void 0&&e>0)return!0;if(o===`$eq`){let e=U(s,t,r,i),a=U(s,n,r,i);if(e!==void 0&&e<0||a!==void 0&&a>0)return!0}if(o===`$ne`&&!a&&R(t,n,r)&&R(t,s,r)||o===`$in`&&Array.isArray(s)&&s.every(e=>{let a=U(e,t,r,i),o=U(e,n,r,i);return a!==void 0&&a<0||o!==void 0&&o>0})||o===`$nin`&&!a&&Array.isArray(s)&&R(t,n,r)&&s.some(e=>R(t,e,r)))return!0}return!1}function U(e,t,n,r){if(r?.type===`BYTE_ARRAY`)return typeof e!=`string`||typeof t!=`string`?void 0:Qe(it.encode(e),it.encode(t));if(e instanceof Uint8Array||t instanceof Uint8Array)return!(e instanceof Uint8Array)||!(t instanceof Uint8Array)?void 0:Qe(e,t);if(e<t)return-1;if(e>t)return 1;if(R(e,t,n))return 0}function Qe(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length<t.length?-1:+(e.length>t.length)}function $e(e,t){return V({value:null},{value:e},t)}function et(e,t,n,r=!0){if(!e)return;if(`$and`in e&&Array.isArray(e.$and)){let i;for(let a of e.$and)i=tt(i,et(a,t,n,r));return i}if(`$or`in e&&Array.isArray(e.$or)){let i=[];for(let a of e.$or){let e=et(a,t,n,r);if(!e)return;i=nt(i,e)}return i}if(`$nor`in e&&Array.isArray(e.$nor))return;let i;for(let[a,o]of Object.entries(e)){let e=t[a];if(!e)continue;let s=$e(o,r),c=[];for(let t=0;t<e.pageStarts.length;t++){let i=e.pageStarts[t],a=t+1<e.pageStarts.length?e.pageStarts[t+1]:n,l=e.nullCounts?.[t],u=s&&(l===void 0||l>0);if(e.nullPages[t]||u||!Ze(o,e.minValues[t],e.maxValues[t],r,e.element)){let e=c[c.length-1];e&&e[1]===i?e[1]=a:c.push([i,a])}}i=tt(i,c)}return i}function tt(e,t){if(!e)return t;if(!t)return e;let n=[],r=0,i=0;for(;r<e.length&&i<t.length;){let a=Math.max(e[r][0],t[i][0]),o=Math.min(e[r][1],t[i][1]);a<o&&n.push([a,o]),e[r][1]<t[i][1]?r++:i++}return n}function nt(e,t){let n=[],r=0,i=0;for(;r<e.length||i<t.length;){let a=i>=t.length||r<e.length&&e[r][0]<=t[i][0]?e[r++]:t[i++],o=n[n.length-1];o&&a[0]<=o[1]?o[1]=Math.max(o[1],a[1]):n.push([a[0],a[1]])}return n}function rt(e,t){let n=e;for(let e of t.split(`.`))n=n?.[e];return n}var it;function W(){return(W=e((()=>{Ke(),z(),it=new TextEncoder})))()}function at(e){let{metadata:t,rowStart:n=0,columns:r,useOffsetIndex:i=!1}=e;if(!t)throw Error(`parquetPlan requires metadata`);let a=[],o=[],s=[],c=ot(e);for(let e of c.groups){let t=st({...e,columns:r,useOffsetIndex:i});a.push(...t.groups),o.push(...t.fetches),s.push(...t.indexes)}return o.push(...s),{metadata:t,rowStart:n,rowEnd:c.rowEnd,columns:r,fetches:o,groups:a}}function ot({metadata:e,rowStart:t=0,rowEnd:n=1/0,columns:r,filter:i,filterStrict:a=!0,bloomFiltersByGroup:o,schemaElements:s,pageRangesByGroup:c,pageLocationsByGroup:l}){if(!e)throw Error(`parquetPlan requires metadata`);let u=O(e),d=te(u),f=i?{...pt(u),...s}:s,p=[],m=0;for(let s=0;s<e.row_groups.length;s++){let u=e.row_groups[s],h=Number(u.num_rows),g=m+h;if(h>0&&g>t&&m<n&&!H({rowGroup:u,physicalColumns:d,filter:i,strict:a,bloomFilters:o?.[s],schemaElements:f})){let e=Math.max(t-m,0),i=Math.min(n-m,h),a=c?.[s],o=l?.[s],d=a?a.map(([t,n])=>[Math.max(t,e),Math.min(n,i)]).filter(([e,t])=>e<t):[[e,i]];d.length>1&&(d=u.columns.every(e=>{let t=e.meta_data?.path_in_schema[0],n=e.meta_data?.path_in_schema.join(`.`);return r&&t&&!r.includes(t)?!0:!!(e.offset_index_offset&&e.offset_index_length)||!!(n&&o?.[n])})?ct(d,u,r,o):[[d[0][0],d[d.length-1][1]]]),d.length&&p.push({rowGroup:u,groupIndex:s,groupStart:m,groupRows:h,ranges:d,pageRanges:a,pageLocations:o})}m=g}return{groups:p,rowEnd:isFinite(n)?n:m}}function st({rowGroup:e,groupStart:t,groupRows:n,ranges:r,columns:i,useOffsetIndex:a=!1,pageRanges:o,pageLocations:s}){let c=[],l=[],u=[],d=r.length>1||r[0][0]>0||r[0][1]<n;for(let t of e.columns){let e=t.meta_data;if(t.file_path)throw Error(`parquet file_path not supported`);if(!e)throw Error(`parquet column metadata is undefined`);if(i&&!i.includes(e.path_in_schema[0]))continue;let n=e.dictionary_page_offset||e.data_page_offset,r=Number(n),l=Number(n+e.total_compressed_size),u=s?.[e.path_in_schema.join(`.`)];if(u&&d)c.push({columnMetadata:e,pageLocations:u,range:{startByte:r,endByte:l}});else if((a||o)&&t.offset_index_offset&&t.offset_index_length&&d){let r=Number(t.offset_index_offset);c.push({columnMetadata:e,offsetIndex:{startByte:r,endByte:r+t.offset_index_length},range:{startByte:Number(n),endByte:l}})}else c.push({columnMetadata:e,range:{startByte:r,endByte:l}})}let f;for(let e of c)`pageLocations`in e||(`offsetIndex`in e?u.push(e.offsetIndex):i?l.push(e.range):f&&e.range.endByte-f.startByte<=ht?f.endByte=e.range.endByte:(f&&l.push(f),f={...e.range}));return f&&l.push(f),{groups:r.map(([r,i])=>({chunks:c,rowGroup:e,groupStart:t,groupRows:n,selectStart:r,selectEnd:i})),fetches:l,indexes:u}}function ct(e,t,n,r){let i=t.columns.filter(e=>!n||n.includes(e.meta_data?.path_in_schema[0]||``)).map(e=>r?.[e.meta_data?.path_in_schema.join(`.`)||``]),a=[];for(let n of e){let e=a[a.length-1],r=e&&i.some(r=>{if(!r)return!0;let i=lt(e,r,Number(t.num_rows)),a=lt(n,r,Number(t.num_rows));return i[0]<=a[1]&&a[0]<=i[1]});e&&r?e[1]=n[1]:a.push([...n])}return a}function lt([e,t],n,r){let i=1/0,a=-1/0;for(let o=0;o<n.length;o++){let s=Number(n[o].first_row_index);(o+1<n.length?Number(n[o+1].first_row_index):r)>e&&s<t&&(i=Math.min(i,o),a=o)}return[i,a]}async function ut({file:e,metadata:t,filter:n,filterStrict:r=!0}){let i=t.row_groups.map(()=>({})),a=He(n);if(a.size===0)return i;let o=te(O(t)),s=[];return t.row_groups.forEach((t,c)=>{if(!H({rowGroup:t,physicalColumns:o,filter:n,strict:r}))for(let n of a){let r=o.indexOf(n);if(r===-1)continue;let a=t.columns[r]?.meta_data;if(!a?.bloom_filter_offset||!a.bloom_filter_length)continue;let l=Number(a.bloom_filter_offset),u=l+a.bloom_filter_length;s.push((async()=>{let t=await e.slice(l,u),r=Be({view:new DataView(t),offset:0});r&&(i[c][n]=r)})())}}),s.length&&await Promise.all(s),i}async function dt({file:e,metadata:t,filter:n,filterStrict:r=!0,rowStart:i=0,rowEnd:a=1/0,columns:o,bloomFiltersByGroup:s,schemaElements:c,parsers:l}){let u=t.row_groups.map(()=>void 0),d=t.row_groups.map(()=>({}));if(n&&`$nor`in n&&Array.isArray(n.$nor))return{pageRangesByGroup:u,pageLocationsByGroup:d};let f=B(n);if(!f.length)return{pageRangesByGroup:u,pageLocationsByGroup:d};let p=O(t),m=te(p),h={...pt(p),...c},g=[],_=[],v=[],y=0;if(t.row_groups.forEach((e,t)=>{let c=Number(e.num_rows),u=y+c,p=c>0&&u>i&&y<a;if(y=u,!p||H({rowGroup:e,physicalColumns:m,filter:n,strict:r,bloomFilters:s?.[t],schemaElements:h}))return;let b={},x=0,S=/* @__PURE__ */ new Set,C=!1;for(let n of f){let r=m.indexOf(n);if(r===-1)continue;let i=e.columns[r];if(!i?.meta_data||!i.column_index_offset||!i.column_index_length||!i.offset_index_offset||!i.offset_index_length)continue;let a=h[n];if(!a)continue;C=!0,S.add(n);let o=Number(i.column_index_offset),s=Number(i.offset_index_offset),c=o+i.column_index_length,u=s+i.offset_index_length;g.push({startByte:o,endByte:c},{startByte:s,endByte:u}),x++,_.push(async e=>{let[r,i]=await Promise.all([e.slice(o,c),e.slice(s,u)]),f=Ae({view:new DataView(r),offset:0},a,l),p=je({view:new DataView(i),offset:0});d[t][n]=p.page_locations,b[n]={minValues:f.min_values,maxValues:f.max_values,nullPages:f.null_pages,nullCounts:f.null_counts,pageStarts:p.page_locations.map(e=>Number(e.first_row_index)),element:a}})}if(C)for(let n of e.columns){let e=n.meta_data;if(!e)continue;let r=e.path_in_schema[0],i=e.path_in_schema.join(`.`);if(o&&!o.includes(r)||S.has(i)||!n.offset_index_offset||!n.offset_index_length)continue;S.add(i);let a=Number(n.offset_index_offset),s=a+n.offset_index_length;g.push({startByte:a,endByte:s}),x++,_.push(async e=>{let n=await e.slice(a,s),r=je({view:new DataView(n),offset:0});d[t][i]=r.page_locations})}x&&v.push({rgIdx:t,groupRows:c,columnPages:b})}),_.length){let t=mt(e,{fetches:ft(g)});await Promise.all(_.map(e=>e(t)));for(let{rgIdx:e,groupRows:t,columnPages:i}of v)u[e]=et(n,i,t,r)}return{pageRangesByGroup:u,pageLocationsByGroup:d}}function ft(e){let t=e.map(e=>({...e})).sort((e,t)=>e.startByte-t.startByte||e.endByte-t.endByte),n=[];for(let e of t){let t=n[n.length-1];t&&e.startByte<=t.endByte?t.endByte=Math.max(t.endByte,e.endByte):n.push(e)}return n}function pt(e){let t={};function n(e){if(e.children.length)for(let t of e.children)n(t);else t[e.path.join(`.`)]=e.element}return n(e),t}function mt(e,{fetches:t}){let n=t.map(({startByte:t,endByte:n})=>e.slice(t,n));return{byteLength:e.byteLength,slice(r,i=e.byteLength){let a=t.findIndex(({startByte:e,endByte:t})=>e<=r&&i<=t);if(a<0)return e.slice(r,i);if(t[a].startByte!==r||t[a].endByte!==i){let e=r-t[a].startByte,o=i-t[a].startByte;return n[a]instanceof Promise?n[a].then(t=>t.slice(e,o)):n[a].slice(e,o)}return n[a]}}}var ht;function gt(){return(gt=e((()=>{Ke(),W(),Me(),A(),ht=1<<21})))()}function _t(e,t=x){if(Array.isArray(e))return e.map(e=>_t(e,t));if(typeof e!=`object`)return e;if(`metadata`in e){let n=vt(e.metadata),r=e.typed_value&&G(e.typed_value,n,t),i=e.value&&J(K(e.value),n,t);return r&&i?{...i,...r}:r??i}return e}function G(e,t,n){if(e instanceof Date)return e;if(e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof Uint8Array)){if(`typed_value`in e&&e.typed_value!==null&&e.typed_value!==void 0)return G(e.typed_value,t,n);if(`value`in e&&e.value instanceof Uint8Array)return J(K(e.value),t,n);if(`typed_value`in e||`value`in e)return null;let r={};for(let[i,a]of Object.entries(e))t.dictionary.includes(i)&&(r[i]=G(a,t,n));return r}return e instanceof Uint8Array?J(K(e),t,n):Array.isArray(e)?e.map(e=>G(e,t,n)):e}function K(e){return{view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0}}function vt(e){let t=wt.get(e.buffer);t||(t=/* @__PURE__ */ new Map,wt.set(e.buffer,t));let n=`${e.byteOffset}:${e.byteLength}`,r=t.get(n);if(r)return r;let i=K(e),a=i.view.getUint8(i.offset++),o=a&15;if(o!==1)throw Error(`parquet unsupported variant metadata version: ${o}`);let s=(a>>4&1)==1,c=(a>>6&3)+1,l=q(i,c),u=Array(l+1);for(let e=0;e<u.length;e++)u[e]=q(i,c);let d=i.offset,f=Array(l);for(let t=0;t<l;t++){let n=u[t],r=u[t+1],i=new Uint8Array(e.buffer,e.byteOffset+d+n,r-n);f[t]=Y.decode(i)}let p={dictionary:f,sorted:s};return t.set(n,p),p}function q(e,t){let n=0;for(let r=0;r<t;r++)n|=e.view.getUint8(e.offset+r)<<r*8;return e.offset+=t,n}function J(e,t,n){let r=e.view.getUint8(e.offset++),i=r&3,a=r>>2;if(i===0)return yt(e,a,n);if(i===2)return bt(e,a,t,n);if(i===3)return xt(e,a,t,n);let o=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,a);return e.offset+=a,Y.decode(o)}function yt(e,t,n){switch(t){case 0:return null;case 1:return!0;case 2:return!1;case 3:{let t=e.view.getInt8(e.offset);return e.offset+=1,t}case 4:{let t=e.view.getInt16(e.offset,!0);return e.offset+=2,t}case 5:{let t=e.view.getInt32(e.offset,!0);return e.offset+=4,t}case 6:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,t}case 7:{let t=e.view.getFloat64(e.offset,!0);return e.offset+=8,t}case 8:return St(e,4);case 9:return St(e,8);case 10:return St(e,16);case 11:{let t=e.view.getInt32(e.offset,!0);return e.offset+=4,n.dateFromDays(t)}case 12:case 13:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,n.timestampFromMicroseconds(t)}case 14:{let t=e.view.getFloat32(e.offset,!0);return e.offset+=4,t}case 15:return Ct(e);case 16:{let t=Ct(e);return Y.decode(t)}case 17:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,t}case 18:case 19:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,n.timestampFromNanoseconds(t)}case 20:{let t=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,16);e.offset+=16;let n=Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``);return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}default:throw Error(`parquet unsupported variant primitive type: ${t}`)}}function bt(e,t,n,r){let i=(t&3)+1,a=(t>>2&3)+1,o=t>>4&1?q(e,4):e.view.getUint8(e.offset++),s=Array(o);for(let t=0;t<o;t++)s[t]=q(e,a);let c=Array(o+1);for(let t=0;t<c.length;t++)c[t]=q(e,i);let l={};for(let t=0;t<o;t++){let i=n.dictionary[s[t]];l[i]=J({view:e.view,offset:e.offset+c[t]},n,r)}return e.offset+=c[c.length-1],l}function xt(e,t,n,r){let i=t&3,a=t>>2&1,o=i+1,s=q(e,a?4:1),c=Array(s+1);for(let t=0;t<c.length;t++)c[t]=q(e,o);let l=e.offset,u=Array(s);for(let t=0;t<s;t++){let i={view:e.view,offset:l+c[t]};u[t]=J(i,n,r)}return e.offset=l+c[c.length-1],u}function St(e,t){let n=e.view.getUint8(e.offset);e.offset+=1;let r;if(t===4)r=BigInt(e.view.getInt32(e.offset,!0)),e.offset+=4;else if(t===8)r=e.view.getBigInt64(e.offset,!0),e.offset+=8;else{let t=e.view.getBigUint64(e.offset,!0);r=e.view.getBigInt64(e.offset+8,!0)<<64n|t,e.offset+=16}return Number(r)*10**-n}function Ct(e){let t=e.view.getUint32(e.offset,!0);e.offset+=4;let n=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t,n}var Y,wt;function Tt(){return(Tt=e((()=>{S(),Y=new TextDecoder,wt=/* @__PURE__ */ new WeakMap})))()}function Et(e,t,n,r,i){let a=re(i);if(!t?.length&&!n.length){if(!a||!r.length)return r;t=Array(r.length).fill(a)}let o=t?.length||n.length,s=i.map(({element:e})=>e.repetition_type),c=0,l=[e],u=e,d=0,f=0,p=0;if(n[0])for(;d<s.length-2&&p<n[0];)d++,s[d]!==`REQUIRED`&&(u=u.at(-1),l.push(u),f++),s[d]===`REPEATED`&&p++;for(let e=0;e<o;e++){let i=t?.length?t[e]:a,o=n[e];for(;d&&(o<p||s[d]!==`REPEATED`);)s[d]!==`REQUIRED`&&(l.pop(),f--),s[d]===`REPEATED`&&p--,d--;for(u=l.at(-1);(d<s.length-2||s[d+1]===`REPEATED`)&&(f<i||s[d+1]===`REQUIRED`);){if(d++,s[d]!==`REQUIRED`){let e=[];u.push(e),u=e,l.push(e),f++}s[d]===`REPEATED`&&p++}i===a?u.push(r[c++]):d===s.length-2?u.push(null):u.push([])}if(!e.length)for(let e=0;e<a;e++){let e=[];u.push(e),u=e}return e}function X(e,t,n,r=0){let i=t.path.join(`.`),a=t.element.repetition_type===`OPTIONAL`,o=a?r+1:r;if(ie(t)){let s=t.children[0],c=o;s.children.length===1&&(s=s.children[0],c++),X(e,s,n,c);let l=s.path.join(`.`),u=e.get(l);if(!u)throw Error(`parquet list column missing values`);a&&Z(u,r),e.set(i,u),e.delete(l)}else if(ae(t)){let s=t.children[0].element.name;X(e,t.children[0].children[0],n,o+1),X(e,t.children[0].children[1],n,o+1);let c=e.get(`${i}.${s}.key`),l=e.get(`${i}.${s}.value`);if(!c)throw Error(`parquet map column missing keys`);if(!l)throw Error(`parquet map column missing values`);if(c.length!==l.length)throw Error(`parquet map column key/value length mismatch`);let u=Dt(c,l,o);a&&Z(u,r),e.delete(`${i}.${s}.key`),e.delete(`${i}.${s}.value`),e.set(i,u)}else if(t.children.length){let o=t.element.repetition_type===`REQUIRED`?r:r+1,s={};for(let r of t.children){X(e,r,n,o);let t=e.get(r.path.join(`.`));if(!t)throw Error(`parquet struct missing child data`);s[r.element.name]=t}for(let n of t.children)e.delete(n.path.join(`.`));let c=Ot(s,o);t.element.logical_type?.type===`VARIANT`&&(c=_t(c,n)),a&&Z(c,r),e.set(i,c)}}function Z(e,t){for(let n=0;n<e.length;n++)t?Z(e[n],t-1):e[n]=e[n][0]}function Dt(e,t,n){let r=[];for(let i=0;i<e.length;i++)if(n)r.push(Dt(e[i],t[i],n-1));else if(e[i]){let n={};for(let r=0;r<e[i].length;r++){let a=t[i][r];n[e[i][r]]=a===void 0?null:a}r.push(n)}else r.push(void 0);return r}function Ot(e,t){let n=Object.keys(e),r=e[n[0]]?.length,i=[];for(let a=0;a<r;a++){let o={};for(let t of n){if(e[t].length!==r)throw Error(`parquet struct parsing error`);o[t]=e[t][a]}t?i.push(Ot(o,t-1)):i.push(o)}return i}function kt(){return(kt=e((()=>{Tt()})))()}function Q(e,t,n){let r=n instanceof Int32Array,i=T(e),a=T(e);T(e);let o=ue(e),s=0;n[s++]=r?Number(o):o;let c=i/a;for(;s<t;){let i=ue(e),l=new Uint8Array(a);for(let t=0;t<a;t++)l[t]=e.view.getUint8(e.offset++);for(let u=0;u<a&&s<t;u++){let a=BigInt(l[u]);if(a){let l=0n,u=c,d=(1n<<a)-1n;for(;u&&s<t;){let t=BigInt(e.view.getUint8(e.offset))>>l&d;for(l+=a;l>=8;)l-=8n,e.offset++,l&&(t|=BigInt(e.view.getUint8(e.offset))<<a-l&d);let c=i+t;o+=c,n[s++]=r?Number(o):o,u--}u&&(e.offset+=Math.ceil((u*Number(a)+Number(l))/8))}else for(let e=0;e<c&&s<t;e++)o+=i,n[s++]=r?Number(o):o}}}function At(e,t,n){let r=new Int32Array(t);Q(e,t,r);for(let i=0;i<t;i++)n[i]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,r[i]),e.offset+=r[i]}function jt(e,t,n){let r=new Int32Array(t);Q(e,t,r);let i=new Int32Array(t);Q(e,t,i);for(let a=0;a<t;a++){let t=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,i[a]);r[a]?(n[a]=new Uint8Array(r[a]+i[a]),n[a].set(n[a-1].subarray(0,r[a])),n[a].set(t,r[a])):n[a]=t,e.offset+=i[a]}}function Mt(){return(Mt=e((()=>{E()})))()}function $(e,t,n,r){r===void 0&&(r=e.view.getUint32(e.offset,!0),e.offset+=4);let i=e.offset,a=0;for(;a<n.length;){let r=T(e);if(r&1)a=Pt(e,r,t,n,a);else{let i=r>>>1;Nt(e,i,t,n,a),a+=i}}e.offset=i+r}function Nt(e,t,n,r,i){let a=n+7>>3,o=0;for(let t=0;t<a;t++)o|=e.view.getUint8(e.offset++)<<(t<<3);for(let e=0;e<t;e++)r[i+e]=o}function Pt(e,t,n,r,i){let a=t>>1<<3,o=(1<<n)-1,s=0;if(e.offset<e.view.byteLength)s=e.view.getUint8(e.offset++);else if(o)throw Error(`parquet bitpack offset ${e.offset} out of range`);let c=8,l=0;for(;a;)l>8?(l-=8,c-=8,s>>>=8):c-l<n?(s|=e.view.getUint8(e.offset)<<c,e.offset++,c+=8):(i<r.length&&(r[i++]=s>>l&o),a--,l+=n);return i}function Ft(e,t,n,r){let i=It(n,r),a=new Uint8Array(t*i);for(let n=0;n<i;n++)for(let r=0;r<t;r++)a[r*i+n]=e.view.getUint8(e.offset++);if(n===`FLOAT`)return new Float32Array(a.buffer);if(n===`DOUBLE`)return new Float64Array(a.buffer);if(n===`INT32`)return new Int32Array(a.buffer);if(n===`INT64`)return new BigInt64Array(a.buffer);if(n===`FIXED_LEN_BYTE_ARRAY`){let e=Array(t);for(let n=0;n<t;n++)e[n]=a.subarray(n*i,(n+1)*i);return e}throw Error(`parquet byte_stream_split unsupported type: ${n}`)}function It(e,t){switch(e){case`INT32`:case`FLOAT`:return 4;case`INT64`:case`DOUBLE`:return 8;case`FIXED_LEN_BYTE_ARRAY`:if(!t)throw Error(`parquet byteWidth missing type_length`);return t;default:throw Error(`parquet unsupported type: ${e}`)}}function Lt(){return(Lt=e((()=>{E()})))()}function Rt(e,t,n,r){if(n===0)return[];if(t===`BOOLEAN`)return zt(e,n);if(t===`INT32`)return Bt(e,n);if(t===`INT64`)return Vt(e,n);if(t===`INT96`)return Ht(e,n);if(t===`FLOAT`)return Ut(e,n);if(t===`DOUBLE`)return Wt(e,n);if(t===`BYTE_ARRAY`)return Gt(e,n);if(t===`FIXED_LEN_BYTE_ARRAY`){if(!r)throw Error(`parquet missing fixed length`);return Kt(e,n,r)}throw Error(`parquet unhandled type: ${t}`)}function zt(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.offset+(r/8|0),i=r%8,a=e.view.getUint8(t);n[r]=!!(a&1<<i)}return e.offset+=Math.ceil(t/8),n}function Bt(e,t){let n=(e.view.byteOffset+e.offset)%4?new Int32Array(qt(e.view.buffer,e.view.byteOffset+e.offset,t*4)):new Int32Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*4,n}function Vt(e,t){let n=(e.view.byteOffset+e.offset)%8?new BigInt64Array(qt(e.view.buffer,e.view.byteOffset+e.offset,t*8)):new BigInt64Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*8,n}function Ht(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.view.getBigInt64(e.offset+r*12,!0),i=e.view.getInt32(e.offset+r*12+8,!0);n[r]=BigInt(i)<<64n|t}return e.offset+=t*12,n}function Ut(e,t){let n=(e.view.byteOffset+e.offset)%4?new Float32Array(qt(e.view.buffer,e.view.byteOffset+e.offset,t*4)):new Float32Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*4,n}function Wt(e,t){let n=(e.view.byteOffset+e.offset)%8?new Float64Array(qt(e.view.buffer,e.view.byteOffset+e.offset,t*8)):new Float64Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*8,n}function Gt(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.view.getUint32(e.offset,!0);e.offset+=4,n[r]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t),e.offset+=t}return n}function Kt(e,t,n){let r=Array(t);for(let i=0;i<t;i++)r[i]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,n),e.offset+=n;return r}function qt(e,t,n){let r=new ArrayBuffer(n);return new Uint8Array(r).set(new Uint8Array(e,t,n)),r}function Jt(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}function Yt(e,t){let n=e.byteLength,r=t.byteLength,i=0,a=0;for(;i<n;){let t=e[i];if(i++,t<128)break}if(r&&i>=n)throw Error(`invalid snappy length header`);for(;i<n;){let r=e[i],o=0;if(i++,i>=n)throw Error(`missing eof marker`);if(r&3){let s=0;switch(r&3){case 1:o=(r>>>2&7)+4,s=e[i]+(r>>>5<<8),i++;break;case 2:if(n<=i+1)throw Error(`snappy error end of input`);o=(r>>>2)+1,s=e[i]+(e[i+1]<<8),i+=2;break;case 3:if(n<=i+3)throw Error(`snappy error end of input`);o=(r>>>2)+1,s=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+(e[i+3]<<24),i+=4}if(s===0||isNaN(s))throw Error(`invalid offset ${s} pos ${i} inputLength ${n}`);if(s>a)throw Error(`cannot copy from before start of buffer`);Jt(t,a-s,t,a,o),a+=o}else{let o=(r>>>2)+1;if(o>60){if(i+3>=n)throw Error(`snappy error literal pos + 3 >= inputLength`);let t=o-60;o=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+(e[i+3]<<24),o=(o&Xt[t])+1,i+=t}if(i+o>n)throw Error(`snappy error literal exceeds input length`);Jt(e,i,t,a,o),i+=o,a+=o}}if(a!==r)throw Error(`premature end of input`)}var Xt;function Zt(){return(Zt=e((()=>{Xt=[0,255,65535,16777215,4294967295]})))()}function Qt(e,t,{type:n,element:r,schemaPath:i}){let a=new DataView(e.buffer,e.byteOffset,e.byteLength),o={view:a,offset:0},s,c=$t(o,t,i),{definitionLevels:l,numNulls:u}=en(o,t,i),d=t.num_values-u;if(t.encoding===`PLAIN`)s=Rt(o,n,d,r.type_length);else if(t.encoding===`PLAIN_DICTIONARY`||t.encoding===`RLE_DICTIONARY`||t.encoding===`RLE`){let e=n===`BOOLEAN`?1:a.getUint8(o.offset++);e?(s=Array(d),n===`BOOLEAN`?($(o,e,s),s=s.map(e=>!!e)):$(o,e,s,a.byteLength-o.offset)):s=new Uint8Array(d)}else if(t.encoding===`BYTE_STREAM_SPLIT`)s=Ft(o,d,n,r.type_length);else if(t.encoding===`DELTA_BINARY_PACKED`)s=n===`INT32`?new Int32Array(d):new BigInt64Array(d),Q(o,d,s);else if(t.encoding===`DELTA_LENGTH_BYTE_ARRAY`)s=Array(d),At(o,d,s);else throw Error(`parquet unsupported encoding: ${t.encoding}`);return{definitionLevels:l,repetitionLevels:c,dataPage:s}}function $t(e,t,n){if(n.length>1){let r=ne(n);if(r){let n=Array(t.num_values);return $(e,on(r),n),n}}return[]}function en(e,t,n){let r=re(n);if(!r)return{definitionLevels:[],numNulls:0};let i=Array(t.num_values);$(e,on(r),i);let a=t.num_values;for(let e of i)e===r&&a--;return a===0&&(i.length=0),{definitionLevels:i,numNulls:a}}function tn(e,t,n,r){let i,a=r?.[n];if(n===`UNCOMPRESSED`)i=e;else if(a)i=a(e,t);else if(n===`SNAPPY`)i=new Uint8Array(t),Yt(e,i);else throw Error(`parquet unsupported compression codec: ${n}`);if(i?.length!==t)throw Error(`parquet decompressed page length ${i?.length} does not match header ${t}`);return i}function nn(e,t,n){let r={view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0},{type:i,element:a,schemaPath:o,codec:s,compressors:c}=n,l=t.data_page_header_v2;if(!l)throw Error(`parquet data page header v2 is undefined`);let u=rn(r,l,o);r.offset=l.repetition_levels_byte_length;let d=an(r,l,o),f=t.uncompressed_page_size-l.definition_levels_byte_length-l.repetition_levels_byte_length,p=e.subarray(r.offset);l.is_compressed!==!1&&(p=tn(p,f,s,c));let m=new DataView(p.buffer,p.byteOffset,p.byteLength),h={view:m,offset:0},g,_=l.num_values-l.num_nulls;if(l.encoding===`PLAIN`)g=Rt(h,i,_,a.type_length);else if(l.encoding===`RLE`)g=Array(_),$(h,1,g),g=g.map(e=>!!e);else if(l.encoding===`PLAIN_DICTIONARY`||l.encoding===`RLE_DICTIONARY`){let e=m.getUint8(h.offset++);g=Array(_),$(h,e,g,f-1)}else if(l.encoding===`DELTA_BINARY_PACKED`)g=i===`INT32`?new Int32Array(_):new BigInt64Array(_),Q(h,_,g);else if(l.encoding===`DELTA_LENGTH_BYTE_ARRAY`)g=Array(_),At(h,_,g);else if(l.encoding===`DELTA_BYTE_ARRAY`)g=Array(_),jt(h,_,g);else if(l.encoding===`BYTE_STREAM_SPLIT`)g=Ft(h,_,i,a.type_length);else throw Error(`parquet unsupported encoding: ${l.encoding}`);return{definitionLevels:d,repetitionLevels:u,dataPage:g}}function rn(e,t,n){let r=ne(n);if(!r)return[];let i=Array(t.num_values);return $(e,on(r),i,t.repetition_levels_byte_length),i}function an(e,t,n){let r=re(n);if(r){let n=Array(t.num_values);return $(e,on(r),n,t.definition_levels_byte_length),n}}function on(e){return 32-Math.clz32(e)}function sn(){return(sn=e((()=>{Mt(),Lt(),Zt()})))()}function cn(e,{groupStart:t,selectStart:n,selectEnd:r},i,a){let{pathInSchema:o,schemaPath:s}=i,c=oe(s),l=[],u,d,f=0,p=0,m=a&&(()=>{d&&a({pathInSchema:o,columnData:d,rowStart:t+f-d.length,rowEnd:t+f})});for(;(c?f<r:e.offset<e.view.byteLength-1)&&!(e.offset>=e.view.byteLength-1);){let t=un(e);if(t.type===`DICTIONARY_PAGE`){let{data:n}=ln(e,t,i,u,void 0,0);n&&(u=g(n,i))}else{let r=d?.length||0,a=ln(e,t,i,u,d,n-f);a.skipped?(l.length||(p+=a.skipped),f+=a.skipped):a.data&&d===a.data?f+=a.data.length-r:a.data&&a.data.length&&(m?.(),l.push(a.data),f+=a.data.length,d=a.data)}}return m?.(),{data:l,skipped:p}}function ln(e,t,n,r,i,a){let{type:o,element:s,schemaPath:c,codec:l,compressors:u}=n,d=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t.compressed_page_size);if(e.offset+=t.compressed_page_size,t.type===`DATA_PAGE`){let e=t.data_page_header;if(!e)throw Error(`parquet data page header is undefined`);if(a>e.num_values&&oe(c))return{skipped:e.num_values};let{definitionLevels:o,repetitionLevels:s,dataPage:f}=Qt(tn(d,Number(t.uncompressed_page_size),l,u),e,n),p=h(f,r,e.encoding,n);return{skipped:0,data:Et(Array.isArray(i)?i:[],o,s,p,c)}}if(t.type===`DATA_PAGE_V2`){let e=t.data_page_header_v2;if(!e)throw Error(`parquet data page header v2 is undefined`);if(a>e.num_rows)return{skipped:e.num_values};let{definitionLevels:o,repetitionLevels:s,dataPage:l}=nn(d,t,n),u=h(l,r,e.encoding,n);return{skipped:0,data:Et(Array.isArray(i)?i:[],o,s,u,c)}}if(t.type===`DICTIONARY_PAGE`){let e=t.dictionary_page_header;if(!e)throw Error(`parquet dictionary page header is undefined`);let n=tn(d,Number(t.uncompressed_page_size),l,u);return{skipped:0,data:Rt({view:new DataView(n.buffer,n.byteOffset,n.byteLength),offset:0},o,e.num_values,s.type_length)}}throw Error(`parquet unsupported page type: ${t.type}`)}function un(e){let t=w(e);return{type:o[t.field_1],uncompressed_page_size:t.field_2,compressed_page_size:t.field_3,crc:t.field_4,data_page_header:t.field_5&&{num_values:t.field_5.field_1,encoding:n[t.field_5.field_2],definition_level_encoding:n[t.field_5.field_3],repetition_level_encoding:n[t.field_5.field_4],statistics:t.field_5.field_5&&{max:t.field_5.field_5.field_1,min:t.field_5.field_5.field_2,null_count:t.field_5.field_5.field_3,distinct_count:t.field_5.field_5.field_4,max_value:t.field_5.field_5.field_5,min_value:t.field_5.field_5.field_6}},index_page_header:t.field_6,dictionary_page_header:t.field_7&&{num_values:t.field_7.field_1,encoding:n[t.field_7.field_2],is_sorted:t.field_7.field_3},data_page_header_v2:t.field_8&&{num_values:t.field_8.field_1,num_nulls:t.field_8.field_2,num_rows:t.field_8.field_3,encoding:n[t.field_8.field_4],definition_levels_byte_length:t.field_8.field_5,repetition_levels_byte_length:t.field_8.field_6,is_compressed:t.field_8.field_7===void 0||t.field_8.field_7,statistics:t.field_8.field_8}}}function dn(){return(dn=e((()=>{kt(),l(),S(),sn(),E()})))()}function fn(e,{metadata:t},n){let r=[];for(let i of n.chunks){let{path_in_schema:a}=i.columnMetadata,o=ee(t.schema,a),s={pathInSchema:a,element:o[o.length-1].element,schemaPath:o,parsers:{...x,...e.parsers},...e,...i.columnMetadata},{startByte:c,endByte:l}=i.range;`pageLocations`in i?r.push({pathInSchema:a,data:pn(e,n,i,i.pageLocations,s)}):`offsetIndex`in i?r.push({pathInSchema:a,data:Promise.resolve(e.file.slice(i.offsetIndex.startByte,i.offsetIndex.endByte)).then(t=>{let r=je({view:new DataView(t),offset:0}).page_locations;return pn(e,n,i,r,s)})}):r.push({pathInSchema:a,data:Promise.resolve(e.file.slice(c,l)).then(t=>cn({view:new DataView(t),offset:0},n,s,e.onPage))})}return{groupStart:n.groupStart,groupRows:n.groupRows,selectStart:n.selectStart,selectEnd:n.selectEnd,asyncColumns:r}}async function pn(e,t,n,r,i){let{data_page_offset:a,dictionary_page_offset:o}=n.columnMetadata,{selectStart:s,selectEnd:c}=t,{startByte:l,endByte:u}=n.range,d=-1,f=o||a<r[0].offset;for(let e=0;e<r.length;e++){let n=r[e],i=Number(n.first_row_index),a=e+1<r.length?Number(r[e+1].first_row_index):t.groupRows;d<0&&a>s&&(l=Number(n.offset),d=i),i<c&&(u=Number(n.offset)+n.compressed_page_size)}d<0&&(d=0);let p;if(f&&d){let t=Number(r[0].offset)-n.range.startByte,[i,a]=await Promise.all([e.file.slice(n.range.startByte,Number(r[0].offset)),e.file.slice(l,u)]),o=new Uint8Array(t+a.byteLength);o.set(new Uint8Array(i,0,t)),o.set(new Uint8Array(a),t),p=new DataView(o.buffer)}else p=f?new DataView(await e.file.slice(n.range.startByte,u)):new DataView(await e.file.slice(l,u));let{data:m,skipped:h}=cn({view:p,offset:0},d?{...t,groupStart:t.groupStart+d,selectStart:t.selectStart-d,selectEnd:t.selectEnd-d}:t,i,e.onPage);return{data:m,skipped:d+h}}async function mn({asyncColumns:e},t,n,r,i){let a=await Promise.all(e.map(e=>e.data.then(({skipped:e,data:t})=>({skipped:e,data:Je(t)})))),o=n-t;if(i===`object`){let n=Array(o);for(let r=0;r<o;r++){let i={};for(let n=0;n<e.length;n++){let{data:o,skipped:s}=a[n];i[e[n].pathInSchema[0]]=o[t+r-s]}n[r]=i}return n}let s=e.map(e=>e.pathInSchema[0]).filter(e=>!r||r.includes(e)),c=r??s,l=c.map(t=>e.findIndex(e=>e.pathInSchema[0]===t)),u=Array(o);for(let n=0;n<o;n++){let r=Array(e.length);for(let e=0;e<c.length;e++){let i=l[e];if(i<0)throw Error(`parquet column not found: ${c[e]}`);let{data:o,skipped:s}=a[i];r[e]=o[t+n-s]}u[n]=r}return u}function hn(e,t,n){let{asyncColumns:r}=e;n={...x,...n};let i=[];for(let e of t.children)if(e.children.length){let t=r.filter(t=>t.pathInSchema[0]===e.element.name);if(!t.length)continue;i.push({pathInSchema:e.path,data:(async()=>{let r=await Promise.all(t.map(e=>e.data)),i=/* @__PURE__ */ new Map,a=r.map(({data:e})=>Je(e)),o=Math.max(...r.map(e=>e.skipped)),s=Math.min(...r.map((e,t)=>e.skipped+a[t].length));for(let e=0;e<t.length;e++){let n=o-r[e].skipped,c=Math.max(0,s-o);i.set(t[e].pathInSchema.join(`.`),a[e].slice(n,n+c))}X(i,e,n);let c=i.get(e.element.name);if(!c)throw Error(`parquet column data not assembled`);return{data:[c],skipped:o}})()})}else{let t=r.find(t=>t.pathInSchema[0]===e.element.name);t&&i.push(t)}return{...e,asyncColumns:i}}function gn(){return(gn=e((()=>{kt(),dn(),S(),Me(),z()})))()}async function _n(e){let t=await vn(e);return{options:t,plan:at(t)}}async function vn(e){let t=e.metadata??await Ce(e.file,e),n=O(t).children.map(e=>e.element.name),r=Ye(e.filter).filter(e=>!n.includes(e));if(r.length)throw Error(`parquet filter columns not found: ${r.join(`, `)}`);if(e.columns){let t=e.columns.filter(e=>!n.includes(e));if(t.length)throw Error(`parquet column not found: ${t[0]}`)}let i={...e,metadata:t};return i=await bn(i),i=await xn(i),i}function yn(e,t){let n={...e,file:mt(e.file,t)};return t.groups.map(e=>fn(n,t,e))}async function bn(e){if(!e.useBloomFilters||!e.filter||!e.metadata)return e;let t=O(e.metadata),n={};for(let e of t.children)n[e.element.name]=e.element;let r=await ut({file:e.file,metadata:e.metadata,filter:e.filter,filterStrict:e.filterStrict});return{...e,bloomFiltersByGroup:r,schemaElements:n}}async function xn(e){if(!e.usePageIndex||!e.filter||!e.metadata)return e;let{pageRangesByGroup:t,pageLocationsByGroup:n}=await dt({file:e.file,metadata:e.metadata,filter:e.filter,filterStrict:e.filterStrict,rowStart:e.rowStart,rowEnd:e.rowEnd,columns:e.columns,bloomFiltersByGroup:e.bloomFiltersByGroup,schemaElements:e.schemaElements,parsers:e.parsers});return{...e,pageRangesByGroup:t,pageLocationsByGroup:n}}function Sn(){return(Sn=e((()=>{W(),A(),gt(),gn()})))()}async function Cn(e){e.metadata??=await Ce(e.file,e);let{rowStart:t=0,rowEnd:n,columns:r,onChunk:i,onComplete:a,rowFormat:o,filter:s,filterStrict:c=!0}=e;if(s&&o!==`object`)throw Error(`parquet filter requires rowFormat: "object"`);if(e.includeRowIndex&&o!==`object`)throw Error(`parquet includeRowIndex requires rowFormat: "object"`);let l=Ye(s),u=r;if(r&&l.length){let e=new Set(r),t=l.filter(t=>!e.has(t));t.length&&(u=[...r,...t])}let d=await _n(u===r?e:{...e,columns:u}),f=d.options,p=u!==r,m=yn(f,d.plan);if(!a&&!i){await wn(m);return}if(!f.metadata)throw Error(`parquet requires metadata`);let h=O(f.metadata),g=m.map(t=>hn(t,h,e.parsers));if(i)for(let e of g)for(let t of e.asyncColumns)t.data.then(({data:n,skipped:r})=>{let a=e.groupStart+r;for(let e of n)i({columnName:t.pathInSchema[0],columnData:e,rowStart:a,rowEnd:a+e.length}),a+=e.length},()=>{});if(a){await wn(g);let i=[];for(let a of g){let d=a.selectStart??Math.max(t-a.groupStart,0),f=a.selectEnd??Math.min((n??1/0)-a.groupStart,a.groupRows),m=o===`object`?await mn(a,d,f,u,`object`):await mn(a,d,f,r,`array`);if(e.includeRowIndex)for(let e=0;e<m.length;e++)Object.defineProperty(m[e],En,{value:a.groupStart+d+e});if(s){for(let e of m)if(V(e,s,c)){if(p&&r)for(let t of l)r.includes(t)||delete e[t];i.push(e)}}else qe(i,m)}a(i)}else await wn(g)}async function wn(e){let t=e.flatMap(e=>e.asyncColumns.map(e=>e.data)),n=(await Promise.allSettled(t)).find(e=>e.status===`rejected`);if(n)throw n.reason}function Tn(e){return new Promise((t,n)=>{Cn({...e,rowFormat:`object`,onComplete:t}).catch(n)})}var En;function Dn(){return(Dn=e((()=>{W(),A(),gn(),Sn(),z(),En=Symbol(`rowIndex`)})))()}function On(){return(On=e((()=>{A(),Dn()})))()}On();export{Ce as parquetMetadataAsync,Tn as parquetReadObjects};
|
|
@@ -0,0 +1 @@
|
|
|
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{O as s,c,j as l,s as u,x as d}from"./chunk-DU6HZSFF-Bx48E1rg.js";import{_ as f,d as p,xt as m}from"./chunk-75Z2AOVW-IO9R6faP.js";import{n as h}from"./line-qVHaOdPp.js";import{n as g}from"./chunk-PWAF6VOD-IORmPx9D.js";import{i as _}from"./chunk-GMAD6QVW-D41KnniX.js";import{n as v}from"./chunk-P2QGCYS3-C9bc1yiM.js";import{r as y}from"./chunk-4HAMMTFA-Aw59LwS3.js";import{r as b}from"./chunk-GVQU2GXP-CVzgM_ui.js";import{i as x}from"./chunk-OSK3NFVY-C9uWOXTC.js";import{n as S,t as C}from"./graphlib-CYBMTUbW.js";import{r as ee,t as te}from"./dagre-ZVAWSfFw.js";import{l as w}from"./chunk-F27PBJKO-DtLva7y0.js";import{n as T}from"./chunk-XXDRQBXY-Bl6AoSZF.js";import{t as E}from"./chunk-POPQ4Y6H-P1s5xaxM.js";import{n as D}from"./chunk-L3NEJ4N5-CmvrS7Dt.js";import{n as O}from"./chunk-TLUHSLCS-DsqF476v.js";import{a as k,n as A,r as j,t as M}from"./chunk-IMKFNOWR-CL9pLQhV.js";var N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,Y,X,Z,Q;function $(){return($=e((()=>{A(),T(),E(),O(),w(),D(),x(),b(),y(),v(),_(),g(),p(),l(),r(),n(),a(),te(),C(),N=/* @__PURE__ */ t(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,d().state.sizeUnit).attr(`cx`,d().state.padding+d().state.sizeUnit).attr(`cy`,d().state.padding+d().state.sizeUnit),`drawStartState`),P=/* @__PURE__ */ t(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,d().state.textHeight).attr(`class`,`divider`).attr(`x2`,d().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),F=/* @__PURE__ */ t((e,t)=>{let n=e.append(`text`).attr(`x`,2*d().state.padding).attr(`y`,d().state.textHeight+2*d().state.padding).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,d().state.padding).attr(`y`,d().state.padding).attr(`width`,r.width+2*d().state.padding).attr(`height`,r.height+2*d().state.padding).attr(`rx`,d().state.radius),n},`drawSimpleState`),I=/* @__PURE__ */ t((e,n)=>{let r=/* @__PURE__ */ t(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*d().state.padding).text(t);n||r.attr(`dy`,d().state.textHeight)},`addTspan`),i=e.append(`text`).attr(`x`,2*d().state.padding).attr(`y`,d().state.textHeight+1.3*d().state.padding).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,o=e.append(`text`).attr(`x`,d().state.padding).attr(`y`,a+d().state.padding*.4+d().state.dividerMargin+d().state.textHeight).attr(`class`,`state-description`),s=!0,c=!0;n.descriptions.forEach(function(e){s||(r(o,e,c),c=!1),s=!1});let l=e.append(`line`).attr(`x1`,d().state.padding).attr(`y1`,d().state.padding+a+d().state.dividerMargin/2).attr(`y2`,d().state.padding+a+d().state.dividerMargin/2).attr(`class`,`descr-divider`),u=o.node().getBBox(),f=Math.max(u.width,i.width);return l.attr(`x2`,f+3*d().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,d().state.padding).attr(`y`,d().state.padding).attr(`width`,f+2*d().state.padding).attr(`height`,u.height+a+2*d().state.padding).attr(`rx`,d().state.radius),e},`drawDescrState`),L=/* @__PURE__ */ t((e,t,n)=>{let r=d().state.padding,i=2*d().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,c=e.append(`text`).attr(`x`,0).attr(`y`,d().state.titleShift).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(t.id),l=c.node().getBBox().width+i,u=Math.max(l,o);u===o&&(u+=i);let f,p=e.node().getBBox();t.doc,f=s-r,l>o&&(f=(o-u)/2+r),Math.abs(s-p.x)<r&&l>o&&(f=s-(l-o)/2);let m=1-d().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,u).attr(`height`,p.height+d().state.textHeight+d().state.titleShift+1).attr(`rx`,`0`),c.attr(`x`,f+r),l<=o&&c.attr(`x`,s+(u-i)/2-l/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,d().state.titleShift-d().state.textHeight-d().state.padding).attr(`width`,u).attr(`height`,d().state.textHeight*3).attr(`rx`,d().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,d().state.titleShift-d().state.textHeight-d().state.padding).attr(`width`,u).attr(`height`,p.height+3+2*d().state.textHeight).attr(`rx`,d().state.radius),e},`addTitleAndBox`),R=/* @__PURE__ */ t(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,d().state.sizeUnit+d().state.miniPadding).attr(`cx`,d().state.padding+d().state.sizeUnit+d().state.miniPadding).attr(`cy`,d().state.padding+d().state.sizeUnit+d().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,d().state.sizeUnit).attr(`cx`,d().state.padding+d().state.sizeUnit+2).attr(`cy`,d().state.padding+d().state.sizeUnit+2)),`drawEndState`),z=/* @__PURE__ */ t((e,t)=>{let n=d().state.forkWidth,r=d().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,d().state.padding).attr(`y`,d().state.padding)},`drawForkJoinState`),B=/* @__PURE__ */ t((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`<br/>`);o=o.replace(/\n/g,`<br/>`);let s=o.split(u.lineBreakRegex),c=1.25*d().state.noteMargin;for(let e of s){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),c===0){let t=e.node().getBBox();c+=t.height}i+=c,e.attr(`x`,t+d().state.noteMargin),e.attr(`y`,n+i+1.25*d().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),V=/* @__PURE__ */ t((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,d().state.padding),{textWidth:r,textHeight:i}=B(e,0,0,t.append(`g`));return n.attr(`height`,i+2*d().state.noteMargin),n.attr(`width`,r+d().state.noteMargin*2),n},`drawNote`),H=/* @__PURE__ */ t(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&N(i),t.type===`end`&&R(i),(t.type===`fork`||t.type===`join`)&&z(i,t),t.type===`note`&&V(t.note.text,i),t.type===`divider`&&P(i),t.type==="default"&&t.descriptions.length===0&&F(i,t),t.type==="default"&&t.descriptions.length>0&&I(i,t);let a=i.node().getBBox();return r.width=a.width+2*d().state.padding,r.height=a.height+2*d().state.padding,r},`drawState`),U=0,W=/* @__PURE__ */ t(function(e,n,r){let i=/* @__PURE__ */ t(function(e){switch(e){case M.relationType.AGGREGATION:return`aggregation`;case M.relationType.EXTENSION:return`extension`;case M.relationType.COMPOSITION:return`composition`;case M.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);n.points=n.points.filter(e=>!Number.isNaN(e.y));let a=n.points,c=h().x(function(e){return e.x}).y(function(e){return e.y}).curve(m),l=e.append(`path`).attr(`d`,c(a)).attr(`id`,`edge`+U).attr(`class`,`transition`),p=``;if(d().state.arrowMarkerAbsolute&&(p=s(!0)),l.attr(`marker-end`,`url(`+p+`#`+i(M.relationType.DEPENDENCY)+`End)`),r.title!==void 0){let t=e.append(`g`).attr(`class`,`stateLabel`),{x:i,y:a}=f.calcLabelPosition(n.points),s=u.getRows(r.title),c=0,l=[],p=0,m=0;for(let e=0;e<=s.length;e++){let n=t.append(`text`).attr(`text-anchor`,`middle`).text(s[e]).attr(`x`,i).attr(`y`,a+c),r=n.node().getBBox();p=Math.max(p,r.width),m=Math.min(m,r.x),o.info(r.x,i,a+c),c===0&&(c=n.node().getBBox().height,o.info(`Title height`,c,a)),l.push(n)}let h=c*s.length;if(s.length>1){let e=(s.length-1)*c*.5;l.forEach((t,n)=>t.attr(`y`,a+n*c-e)),h=c*s.length}let g=t.node().getBBox();t.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,i-p/2-d().state.padding/2).attr(`y`,a-h/2-d().state.padding/2-3.5).attr(`width`,p+d().state.padding).attr(`height`,h+d().state.padding),o.info(g)}U++},`drawEdge`),K={},q=/* @__PURE__ */ t(function(){},`setConf`),J=/* @__PURE__ */ t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),Y=/* @__PURE__ */ t(function(e,t,n,r){G=d().state;let a=d().securityLevel,s;a===`sandbox`&&(s=i(`#i`+t));let l=i(a===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=a===`sandbox`?s.nodes()[0].contentDocument:document;o.debug(`Rendering diagram `+e);let f=l.select(`[id='${t}']`);J(f),Z(r.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,l,u,r);let p=G.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2,_=h*1.75;c(f,g,_,G.useMaxWidth),f.attr(`viewBox`,`${m.x-G.padding} ${m.y-G.padding} `+h+` `+g)},`draw`),X=/* @__PURE__ */ t(e=>e?e.length*G.fontSizeFactor:1,`getLabelWidth`),Z=/* @__PURE__ */ t((e,t,n,r,i,a,s)=>{let c=new S({compound:!0,multigraph:!0}),l,d=!0;for(l=0;l<e.length;l++)if(e[l].stmt===`relation`){d=!1;break}n?c.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:d?1:G.edgeLengthFactor,nodeSep:d?1:50,isMultiGraph:!0}):c.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:d?1:G.edgeLengthFactor,nodeSep:d?1:50,ranker:`tight-tree`,isMultiGraph:!0}),c.setDefaultEdgeLabel(function(){return{}});let f=s.db.getStates(),p=s.db.getRelations(),m=Object.keys(f);for(let e of m){let o=f[e];n&&(o.parentId=n);let l;if(o.doc){let e=t.append(`g`).attr(`id`,o.id).attr(`class`,`stateGroup`);l=Z(o.doc,e,o.id,!r,i,a,s);{e=L(e,o,r);let t=e.node().getBBox();l.width=t.width,l.height=t.height+G.padding/2,K[o.id]={y:G.compositTitleSize}}}else l=H(t,o,c);if(o.note){let e=H(t,{descriptions:[],id:o.id+`-note`,note:o.note,type:`note`},c);o.note.position===`left of`?(c.setNode(l.id+`-note`,e),c.setNode(l.id,l)):(c.setNode(l.id,l),c.setNode(l.id+`-note`,e)),c.setParent(l.id,l.id+`-group`),c.setParent(l.id+`-note`,l.id+`-group`)}else c.setNode(l.id,l)}o.debug(`Count=`,c.nodeCount(),c);let h=0;p.forEach(function(e){h++,o.debug(`Setting edge`,e),c.setEdge(e.id1,e.id2,{relation:e,width:X(e.title),height:G.labelHeight*u.getRows(e.title).length,labelpos:`c`},`id`+h)}),ee(c),o.debug(`Graph after layout`,c.nodes());let g=t.node();c.nodes().forEach(function(e){e!==void 0&&c.node(e)!==void 0?(o.warn(`Node `+e+`: `+JSON.stringify(c.node(e))),i.select(`#`+g.id+` #`+e).attr(`transform`,`translate(`+(c.node(e).x-c.node(e).width/2)+`,`+(c.node(e).y+(K[e]?K[e].y:0)-c.node(e).height/2)+` )`),i.select(`#`+g.id+` #`+e).attr(`data-x-shift`,c.node(e).x-c.node(e).width/2),a.querySelectorAll(`#`+g.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):o.debug(`No Node `+e+`: `+JSON.stringify(c.node(e)))});let _=g.getBBox();c.edges().forEach(function(e){e!==void 0&&c.edge(e)!==void 0&&(o.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(c.edge(e))),W(t,c.edge(e),c.edge(e).relation))}),_=g.getBBox();let v={id:n||`root`,label:n||`root`,width:0,height:0};return v.width=_.width+2*G.padding,v.height=_.height+2*G.padding,o.debug(`Doc rendered`,v,c),v},`renderDoc`),Q={parser:j,get db(){return new M(1)},renderer:{setConf:q,draw:Y},styles:k,init:/* @__PURE__ */ t(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})))()}$();export{Q as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
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}from"./src-C1iDJpBK.js";import{j as i}from"./chunk-DU6HZSFF-Bx48E1rg.js";import{d as a}from"./chunk-75Z2AOVW-IO9R6faP.js";import{n as o}from"./chunk-PWAF6VOD-IORmPx9D.js";import{i as s}from"./chunk-GMAD6QVW-D41KnniX.js";import{n as c}from"./chunk-P2QGCYS3-C9bc1yiM.js";import{r as l}from"./chunk-4HAMMTFA-Aw59LwS3.js";import{r as u}from"./chunk-GVQU2GXP-CVzgM_ui.js";import{i as d}from"./chunk-OSK3NFVY-C9uWOXTC.js";import{l as f}from"./chunk-F27PBJKO-DtLva7y0.js";import{n as p}from"./chunk-XXDRQBXY-Bl6AoSZF.js";import{t as m}from"./chunk-POPQ4Y6H-P1s5xaxM.js";import{n as h}from"./chunk-L3NEJ4N5-CmvrS7Dt.js";import{n as g}from"./chunk-TLUHSLCS-DsqF476v.js";import{a as _,i as v,n as y,r as b,t as x}from"./chunk-IMKFNOWR-CL9pLQhV.js";var S;function C(){return(C=e((()=>{y(),p(),m(),g(),f(),h(),d(),u(),l(),c(),s(),o(),a(),i(),r(),n(),S={parser:b,get db(){return new x(2)},renderer:v,styles:_,init:/* @__PURE__ */ t(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})))()}C();export{S as diagram};
|