@marimo-team/islands 0.24.3-dev9 → 0.25.1-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-pXXIvlr3.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-BC_yF09p.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-Dv227ygK.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-B-I2K7z3.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-D2hUXe09.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-B851uguN.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-CmijFoIU.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-BtdoxWiD.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-DQq7NUGJ.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -0,0 +1,3272 @@
|
|
|
1
|
+
import { a as e, t } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { g as n, h as r, p as i, r as a, t as o, u as s } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as c } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { n as u, t as d } from "./copy-icon-CLdENY__.js";
|
|
6
|
+
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DrWbKnxA.js";
|
|
7
|
+
import { c as _, d as v, g as y, l as b, s as x, t as ee, u as te } from "./tooltip-qB8NlSqV.js";
|
|
8
|
+
import { A as ne, Ct as re, Dt as ie, E as ae, Et as oe, O as se, R as ce, Rt as le, St as ue, U as de, X as fe, an as pe, at as me, bt as he, h as ge, mt as _e, nn as ve, nt as ye, q as be, s as xe, t as Se, wt as Ce, xt as we, z as Te } from "./cells-DYIkSxs6.js";
|
|
9
|
+
import { M as Ee, O as De, k as Oe } from "./select-C6plhmZr.js";
|
|
10
|
+
import { J as ke, ht as Ae } from "./dropdown-menu-CZgjYSAh.js";
|
|
11
|
+
import { t as je } from "./jsx-runtime-DgDPJV9S.js";
|
|
12
|
+
import { Ct as S, K as Me, Q as Ne, St as Pe, Tt as C, X as Fe, Y as Ie, bt as Le, ft as Re, gt as ze, lt as Be, mt as Ve, pt as He, ut as Ue, wt as We, xt as w, yt as Ge } from "./use-restore-focus-D5D9xEjZ.js";
|
|
13
|
+
import { A as Ke, C as T, E as qe, _ as E, c as D, n as Je } from "./useTheme-DzXmYZ5V.js";
|
|
14
|
+
import { $ as Ye } from "./dist-Kxgjxakw.js";
|
|
15
|
+
import { t as Xe } from "./useAsyncData-BD6AStMt.js";
|
|
16
|
+
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
17
|
+
var Ze = /* @__PURE__ */ t(((e) => {
|
|
18
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
|
|
19
|
+
var t;
|
|
20
|
+
(function(e) {
|
|
21
|
+
e.Root = "root", e.Text = "text", e.Directive = "directive", e.Comment = "comment", e.Script = "script", e.Style = "style", e.Tag = "tag", e.CDATA = "cdata", e.Doctype = "doctype";
|
|
22
|
+
})(t = e.ElementType ||= {});
|
|
23
|
+
function n(e) {
|
|
24
|
+
return e.type === t.Tag || e.type === t.Script || e.type === t.Style;
|
|
25
|
+
}
|
|
26
|
+
e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
|
|
27
|
+
})), Qe = /* @__PURE__ */ t(((e) => {
|
|
28
|
+
var t = e && e.__extends || (function() {
|
|
29
|
+
var e = function(t, n) {
|
|
30
|
+
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
31
|
+
e.__proto__ = t;
|
|
32
|
+
} || function(e, t) {
|
|
33
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
34
|
+
}, e(t, n);
|
|
35
|
+
};
|
|
36
|
+
return function(t, n) {
|
|
37
|
+
if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
38
|
+
e(t, n);
|
|
39
|
+
function r() {
|
|
40
|
+
this.constructor = t;
|
|
41
|
+
}
|
|
42
|
+
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
43
|
+
};
|
|
44
|
+
})(), n = e && e.__assign || function() {
|
|
45
|
+
return n = Object.assign || function(e) {
|
|
46
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
47
|
+
return e;
|
|
48
|
+
}, n.apply(this, arguments);
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.cloneNode = e.hasChildren = e.isDocument = e.isDirective = e.isComment = e.isText = e.isCDATA = e.isTag = e.Element = e.Document = e.CDATA = e.NodeWithChildren = e.ProcessingInstruction = e.Comment = e.Text = e.DataNode = e.Node = void 0;
|
|
51
|
+
var r = Ze(), i = function() {
|
|
52
|
+
function e() {
|
|
53
|
+
this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
|
|
54
|
+
}
|
|
55
|
+
return Object.defineProperty(e.prototype, "parentNode", {
|
|
56
|
+
get: function() {
|
|
57
|
+
return this.parent;
|
|
58
|
+
},
|
|
59
|
+
set: function(e) {
|
|
60
|
+
this.parent = e;
|
|
61
|
+
},
|
|
62
|
+
enumerable: !1,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}), Object.defineProperty(e.prototype, "previousSibling", {
|
|
65
|
+
get: function() {
|
|
66
|
+
return this.prev;
|
|
67
|
+
},
|
|
68
|
+
set: function(e) {
|
|
69
|
+
this.prev = e;
|
|
70
|
+
},
|
|
71
|
+
enumerable: !1,
|
|
72
|
+
configurable: !0
|
|
73
|
+
}), Object.defineProperty(e.prototype, "nextSibling", {
|
|
74
|
+
get: function() {
|
|
75
|
+
return this.next;
|
|
76
|
+
},
|
|
77
|
+
set: function(e) {
|
|
78
|
+
this.next = e;
|
|
79
|
+
},
|
|
80
|
+
enumerable: !1,
|
|
81
|
+
configurable: !0
|
|
82
|
+
}), e.prototype.cloneNode = function(e) {
|
|
83
|
+
return e === void 0 && (e = !1), b(this, e);
|
|
84
|
+
}, e;
|
|
85
|
+
}();
|
|
86
|
+
e.Node = i;
|
|
87
|
+
var a = function(e) {
|
|
88
|
+
t(n, e);
|
|
89
|
+
function n(t) {
|
|
90
|
+
var n = e.call(this) || this;
|
|
91
|
+
return n.data = t, n;
|
|
92
|
+
}
|
|
93
|
+
return Object.defineProperty(n.prototype, "nodeValue", {
|
|
94
|
+
get: function() {
|
|
95
|
+
return this.data;
|
|
96
|
+
},
|
|
97
|
+
set: function(e) {
|
|
98
|
+
this.data = e;
|
|
99
|
+
},
|
|
100
|
+
enumerable: !1,
|
|
101
|
+
configurable: !0
|
|
102
|
+
}), n;
|
|
103
|
+
}(i);
|
|
104
|
+
e.DataNode = a;
|
|
105
|
+
var o = function(e) {
|
|
106
|
+
t(n, e);
|
|
107
|
+
function n() {
|
|
108
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
109
|
+
return t.type = r.ElementType.Text, t;
|
|
110
|
+
}
|
|
111
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
112
|
+
get: function() {
|
|
113
|
+
return 3;
|
|
114
|
+
},
|
|
115
|
+
enumerable: !1,
|
|
116
|
+
configurable: !0
|
|
117
|
+
}), n;
|
|
118
|
+
}(a);
|
|
119
|
+
e.Text = o;
|
|
120
|
+
var s = function(e) {
|
|
121
|
+
t(n, e);
|
|
122
|
+
function n() {
|
|
123
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
124
|
+
return t.type = r.ElementType.Comment, t;
|
|
125
|
+
}
|
|
126
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
127
|
+
get: function() {
|
|
128
|
+
return 8;
|
|
129
|
+
},
|
|
130
|
+
enumerable: !1,
|
|
131
|
+
configurable: !0
|
|
132
|
+
}), n;
|
|
133
|
+
}(a);
|
|
134
|
+
e.Comment = s;
|
|
135
|
+
var c = function(e) {
|
|
136
|
+
t(n, e);
|
|
137
|
+
function n(t, n) {
|
|
138
|
+
var i = e.call(this, n) || this;
|
|
139
|
+
return i.name = t, i.type = r.ElementType.Directive, i;
|
|
140
|
+
}
|
|
141
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
142
|
+
get: function() {
|
|
143
|
+
return 1;
|
|
144
|
+
},
|
|
145
|
+
enumerable: !1,
|
|
146
|
+
configurable: !0
|
|
147
|
+
}), n;
|
|
148
|
+
}(a);
|
|
149
|
+
e.ProcessingInstruction = c;
|
|
150
|
+
var l = function(e) {
|
|
151
|
+
t(n, e);
|
|
152
|
+
function n(t) {
|
|
153
|
+
var n = e.call(this) || this;
|
|
154
|
+
return n.children = t, n;
|
|
155
|
+
}
|
|
156
|
+
return Object.defineProperty(n.prototype, "firstChild", {
|
|
157
|
+
get: function() {
|
|
158
|
+
return this.children[0] ?? null;
|
|
159
|
+
},
|
|
160
|
+
enumerable: !1,
|
|
161
|
+
configurable: !0
|
|
162
|
+
}), Object.defineProperty(n.prototype, "lastChild", {
|
|
163
|
+
get: function() {
|
|
164
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
165
|
+
},
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
configurable: !0
|
|
168
|
+
}), Object.defineProperty(n.prototype, "childNodes", {
|
|
169
|
+
get: function() {
|
|
170
|
+
return this.children;
|
|
171
|
+
},
|
|
172
|
+
set: function(e) {
|
|
173
|
+
this.children = e;
|
|
174
|
+
},
|
|
175
|
+
enumerable: !1,
|
|
176
|
+
configurable: !0
|
|
177
|
+
}), n;
|
|
178
|
+
}(i);
|
|
179
|
+
e.NodeWithChildren = l;
|
|
180
|
+
var u = function(e) {
|
|
181
|
+
t(n, e);
|
|
182
|
+
function n() {
|
|
183
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
184
|
+
return t.type = r.ElementType.CDATA, t;
|
|
185
|
+
}
|
|
186
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
187
|
+
get: function() {
|
|
188
|
+
return 4;
|
|
189
|
+
},
|
|
190
|
+
enumerable: !1,
|
|
191
|
+
configurable: !0
|
|
192
|
+
}), n;
|
|
193
|
+
}(l);
|
|
194
|
+
e.CDATA = u;
|
|
195
|
+
var d = function(e) {
|
|
196
|
+
t(n, e);
|
|
197
|
+
function n() {
|
|
198
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
199
|
+
return t.type = r.ElementType.Root, t;
|
|
200
|
+
}
|
|
201
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
202
|
+
get: function() {
|
|
203
|
+
return 9;
|
|
204
|
+
},
|
|
205
|
+
enumerable: !1,
|
|
206
|
+
configurable: !0
|
|
207
|
+
}), n;
|
|
208
|
+
}(l);
|
|
209
|
+
e.Document = d;
|
|
210
|
+
var f = function(e) {
|
|
211
|
+
t(n, e);
|
|
212
|
+
function n(t, n, i, a) {
|
|
213
|
+
i === void 0 && (i = []), a === void 0 && (a = t === "script" ? r.ElementType.Script : t === "style" ? r.ElementType.Style : r.ElementType.Tag);
|
|
214
|
+
var o = e.call(this, i) || this;
|
|
215
|
+
return o.name = t, o.attribs = n, o.type = a, o;
|
|
216
|
+
}
|
|
217
|
+
return Object.defineProperty(n.prototype, "nodeType", {
|
|
218
|
+
get: function() {
|
|
219
|
+
return 1;
|
|
220
|
+
},
|
|
221
|
+
enumerable: !1,
|
|
222
|
+
configurable: !0
|
|
223
|
+
}), Object.defineProperty(n.prototype, "tagName", {
|
|
224
|
+
get: function() {
|
|
225
|
+
return this.name;
|
|
226
|
+
},
|
|
227
|
+
set: function(e) {
|
|
228
|
+
this.name = e;
|
|
229
|
+
},
|
|
230
|
+
enumerable: !1,
|
|
231
|
+
configurable: !0
|
|
232
|
+
}), Object.defineProperty(n.prototype, "attributes", {
|
|
233
|
+
get: function() {
|
|
234
|
+
var e = this;
|
|
235
|
+
return Object.keys(this.attribs).map(function(t) {
|
|
236
|
+
return {
|
|
237
|
+
name: t,
|
|
238
|
+
value: e.attribs[t],
|
|
239
|
+
namespace: e["x-attribsNamespace"]?.[t],
|
|
240
|
+
prefix: e["x-attribsPrefix"]?.[t]
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
},
|
|
244
|
+
enumerable: !1,
|
|
245
|
+
configurable: !0
|
|
246
|
+
}), n;
|
|
247
|
+
}(l);
|
|
248
|
+
e.Element = f;
|
|
249
|
+
function p(e) {
|
|
250
|
+
return (0, r.isTag)(e);
|
|
251
|
+
}
|
|
252
|
+
e.isTag = p;
|
|
253
|
+
function m(e) {
|
|
254
|
+
return e.type === r.ElementType.CDATA;
|
|
255
|
+
}
|
|
256
|
+
e.isCDATA = m;
|
|
257
|
+
function h(e) {
|
|
258
|
+
return e.type === r.ElementType.Text;
|
|
259
|
+
}
|
|
260
|
+
e.isText = h;
|
|
261
|
+
function g(e) {
|
|
262
|
+
return e.type === r.ElementType.Comment;
|
|
263
|
+
}
|
|
264
|
+
e.isComment = g;
|
|
265
|
+
function _(e) {
|
|
266
|
+
return e.type === r.ElementType.Directive;
|
|
267
|
+
}
|
|
268
|
+
e.isDirective = _;
|
|
269
|
+
function v(e) {
|
|
270
|
+
return e.type === r.ElementType.Root;
|
|
271
|
+
}
|
|
272
|
+
e.isDocument = v;
|
|
273
|
+
function y(e) {
|
|
274
|
+
return Object.prototype.hasOwnProperty.call(e, "children");
|
|
275
|
+
}
|
|
276
|
+
e.hasChildren = y;
|
|
277
|
+
function b(e, t) {
|
|
278
|
+
t === void 0 && (t = !1);
|
|
279
|
+
var r;
|
|
280
|
+
if (h(e)) r = new o(e.data);
|
|
281
|
+
else if (g(e)) r = new s(e.data);
|
|
282
|
+
else if (p(e)) {
|
|
283
|
+
var i = t ? x(e.children) : [], a = new f(e.name, n({}, e.attribs), i);
|
|
284
|
+
i.forEach(function(e) {
|
|
285
|
+
return e.parent = a;
|
|
286
|
+
}), e.namespace != null && (a.namespace = e.namespace), e["x-attribsNamespace"] && (a["x-attribsNamespace"] = n({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (a["x-attribsPrefix"] = n({}, e["x-attribsPrefix"])), r = a;
|
|
287
|
+
} else if (m(e)) {
|
|
288
|
+
var i = t ? x(e.children) : [], l = new u(i);
|
|
289
|
+
i.forEach(function(e) {
|
|
290
|
+
return e.parent = l;
|
|
291
|
+
}), r = l;
|
|
292
|
+
} else if (v(e)) {
|
|
293
|
+
var i = t ? x(e.children) : [], y = new d(i);
|
|
294
|
+
i.forEach(function(e) {
|
|
295
|
+
return e.parent = y;
|
|
296
|
+
}), e["x-mode"] && (y["x-mode"] = e["x-mode"]), r = y;
|
|
297
|
+
} else if (_(e)) {
|
|
298
|
+
var b = new c(e.name, e.data);
|
|
299
|
+
e["x-name"] != null && (b["x-name"] = e["x-name"], b["x-publicId"] = e["x-publicId"], b["x-systemId"] = e["x-systemId"]), r = b;
|
|
300
|
+
} else throw Error(`Not implemented yet: ${e.type}`);
|
|
301
|
+
return r.startIndex = e.startIndex, r.endIndex = e.endIndex, e.sourceCodeLocation != null && (r.sourceCodeLocation = e.sourceCodeLocation), r;
|
|
302
|
+
}
|
|
303
|
+
e.cloneNode = b;
|
|
304
|
+
function x(e) {
|
|
305
|
+
for (var t = e.map(function(e) {
|
|
306
|
+
return b(e, !0);
|
|
307
|
+
}), n = 1; n < t.length; n++) t[n].prev = t[n - 1], t[n - 1].next = t[n];
|
|
308
|
+
return t;
|
|
309
|
+
}
|
|
310
|
+
})), $e = /* @__PURE__ */ t(((e) => {
|
|
311
|
+
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
312
|
+
r === void 0 && (r = n);
|
|
313
|
+
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
314
|
+
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
315
|
+
enumerable: !0,
|
|
316
|
+
get: function() {
|
|
317
|
+
return t[n];
|
|
318
|
+
}
|
|
319
|
+
}), Object.defineProperty(e, r, i);
|
|
320
|
+
}) : (function(e, t, n, r) {
|
|
321
|
+
r === void 0 && (r = n), e[r] = t[n];
|
|
322
|
+
})), n = e && e.__exportStar || function(e, n) {
|
|
323
|
+
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
324
|
+
};
|
|
325
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
|
|
326
|
+
var r = Ze(), i = Qe();
|
|
327
|
+
n(Qe(), e);
|
|
328
|
+
var a = {
|
|
329
|
+
withStartIndices: !1,
|
|
330
|
+
withEndIndices: !1,
|
|
331
|
+
xmlMode: !1
|
|
332
|
+
}, o = function() {
|
|
333
|
+
function e(e, t, n) {
|
|
334
|
+
this.dom = [], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof t == "function" && (n = t, t = a), typeof e == "object" && (t = e, e = void 0), this.callback = e ?? null, this.options = t ?? a, this.elementCB = n ?? null;
|
|
335
|
+
}
|
|
336
|
+
return e.prototype.onparserinit = function(e) {
|
|
337
|
+
this.parser = e;
|
|
338
|
+
}, e.prototype.onreset = function() {
|
|
339
|
+
this.dom = [], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
|
|
340
|
+
}, e.prototype.onend = function() {
|
|
341
|
+
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
|
|
342
|
+
}, e.prototype.onerror = function(e) {
|
|
343
|
+
this.handleCallback(e);
|
|
344
|
+
}, e.prototype.onclosetag = function() {
|
|
345
|
+
this.lastNode = null;
|
|
346
|
+
var e = this.tagStack.pop();
|
|
347
|
+
this.options.withEndIndices && (e.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(e);
|
|
348
|
+
}, e.prototype.onopentag = function(e, t) {
|
|
349
|
+
var n = this.options.xmlMode ? r.ElementType.Tag : void 0, a = new i.Element(e, t, void 0, n);
|
|
350
|
+
this.addNode(a), this.tagStack.push(a);
|
|
351
|
+
}, e.prototype.ontext = function(e) {
|
|
352
|
+
var t = this.lastNode;
|
|
353
|
+
if (t && t.type === r.ElementType.Text) t.data += e, this.options.withEndIndices && (t.endIndex = this.parser.endIndex);
|
|
354
|
+
else {
|
|
355
|
+
var n = new i.Text(e);
|
|
356
|
+
this.addNode(n), this.lastNode = n;
|
|
357
|
+
}
|
|
358
|
+
}, e.prototype.oncomment = function(e) {
|
|
359
|
+
if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
|
|
360
|
+
this.lastNode.data += e;
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
var t = new i.Comment(e);
|
|
364
|
+
this.addNode(t), this.lastNode = t;
|
|
365
|
+
}, e.prototype.oncommentend = function() {
|
|
366
|
+
this.lastNode = null;
|
|
367
|
+
}, e.prototype.oncdatastart = function() {
|
|
368
|
+
var e = new i.Text(""), t = new i.CDATA([e]);
|
|
369
|
+
this.addNode(t), e.parent = t, this.lastNode = e;
|
|
370
|
+
}, e.prototype.oncdataend = function() {
|
|
371
|
+
this.lastNode = null;
|
|
372
|
+
}, e.prototype.onprocessinginstruction = function(e, t) {
|
|
373
|
+
var n = new i.ProcessingInstruction(e, t);
|
|
374
|
+
this.addNode(n);
|
|
375
|
+
}, e.prototype.handleCallback = function(e) {
|
|
376
|
+
if (typeof this.callback == "function") this.callback(e, this.dom);
|
|
377
|
+
else if (e) throw e;
|
|
378
|
+
}, e.prototype.addNode = function(e) {
|
|
379
|
+
var t = this.tagStack[this.tagStack.length - 1], n = t.children[t.children.length - 1];
|
|
380
|
+
this.options.withStartIndices && (e.startIndex = this.parser.startIndex), this.options.withEndIndices && (e.endIndex = this.parser.endIndex), t.children.push(e), n && (e.prev = n, n.next = e), e.parent = t, this.lastNode = null;
|
|
381
|
+
}, e;
|
|
382
|
+
}();
|
|
383
|
+
e.DomHandler = o, e.default = o;
|
|
384
|
+
})), et = /* @__PURE__ */ t(((e) => {
|
|
385
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = /* @__PURE__ */ "animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath".split("."), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e, t) {
|
|
386
|
+
return e[t.toLowerCase()] = t, e;
|
|
387
|
+
}, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = `__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`, e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
|
|
388
|
+
})), tt = /* @__PURE__ */ t(((e) => {
|
|
389
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatAttributes = i, e.hasOpenTag = o, e.escapeSpecialCharacters = s, e.revertEscapedCharacters = c, e.formatDOM = l;
|
|
390
|
+
var t = $e(), n = et();
|
|
391
|
+
function r(e) {
|
|
392
|
+
return n.CASE_SENSITIVE_TAG_NAMES_MAP[e];
|
|
393
|
+
}
|
|
394
|
+
function i(e) {
|
|
395
|
+
for (var t = {}, n = 0, r = e.length; n < r; n++) {
|
|
396
|
+
var i = e[n];
|
|
397
|
+
t[i.name] = i.value;
|
|
398
|
+
}
|
|
399
|
+
return t;
|
|
400
|
+
}
|
|
401
|
+
function a(e) {
|
|
402
|
+
return e = e.toLowerCase(), r(e) || e;
|
|
403
|
+
}
|
|
404
|
+
function o(e, t) {
|
|
405
|
+
var n = "<" + t, r = e.toLowerCase().indexOf(n);
|
|
406
|
+
if (r === -1) return !1;
|
|
407
|
+
var i = e[r + n.length];
|
|
408
|
+
return i === ">" || i === " " || i === " " || i === "\n" || i === "\r" || i === "/";
|
|
409
|
+
}
|
|
410
|
+
function s(e) {
|
|
411
|
+
return e.replace(n.CARRIAGE_RETURN_REGEX, n.CARRIAGE_RETURN_PLACEHOLDER);
|
|
412
|
+
}
|
|
413
|
+
function c(e) {
|
|
414
|
+
return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX, n.CARRIAGE_RETURN);
|
|
415
|
+
}
|
|
416
|
+
function l(e, n, r) {
|
|
417
|
+
n === void 0 && (n = null);
|
|
418
|
+
for (var o = [], s, u = 0, d = e.length; u < d; u++) {
|
|
419
|
+
var f = e[u];
|
|
420
|
+
switch (f.nodeType) {
|
|
421
|
+
case 1:
|
|
422
|
+
var p = a(f.nodeName);
|
|
423
|
+
s = new t.Element(p, i(f.attributes)), s.children = l(p === "template" ? f.content.childNodes : f.childNodes, s);
|
|
424
|
+
break;
|
|
425
|
+
case 3:
|
|
426
|
+
s = new t.Text(c(f.nodeValue ?? ""));
|
|
427
|
+
break;
|
|
428
|
+
case 8:
|
|
429
|
+
s = new t.Comment(f.nodeValue ?? "");
|
|
430
|
+
break;
|
|
431
|
+
default: continue;
|
|
432
|
+
}
|
|
433
|
+
var m = o[u - 1] ?? null;
|
|
434
|
+
m && (m.next = s), s.parent = n, s.prev = m, s.next = null, o.push(s);
|
|
435
|
+
}
|
|
436
|
+
return r && (s = new t.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), s.next = o[0] ?? null, s.parent = n, o.unshift(s), o[1] && (o[1].prev = o[0])), o;
|
|
437
|
+
}
|
|
438
|
+
})), nt = /* @__PURE__ */ t(((e) => {
|
|
439
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = h;
|
|
440
|
+
var t = tt(), n = "html", r = "head", i = "body", a = /<([a-zA-Z]+[0-9]?)/, o = function(e, t) {
|
|
441
|
+
throw Error("This browser does not support `document.implementation.createHTMLDocument`");
|
|
442
|
+
}, s = function(e, t) {
|
|
443
|
+
throw Error("This browser does not support `DOMParser.prototype.parseFromString`");
|
|
444
|
+
}, c = typeof window == "object" && window.DOMParser;
|
|
445
|
+
if (typeof c == "function") {
|
|
446
|
+
var l = new c(), u = "text/html";
|
|
447
|
+
s = function(e, t) {
|
|
448
|
+
/* istanbul ignore stop */
|
|
449
|
+
return t && (e = `<${t}>${e}</${t}>`), l.parseFromString(e, u);
|
|
450
|
+
}, o = s;
|
|
451
|
+
}
|
|
452
|
+
if (typeof document == "object" && document.implementation) {
|
|
453
|
+
var d = document.implementation.createHTMLDocument();
|
|
454
|
+
o = function(e, t) {
|
|
455
|
+
/* istanbul ignore start */
|
|
456
|
+
if (t) {
|
|
457
|
+
var n = d.documentElement.querySelector(t);
|
|
458
|
+
return n && (n.innerHTML = e), d;
|
|
459
|
+
}
|
|
460
|
+
return d.documentElement.innerHTML = e, d;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
var f = typeof document == "object" && document.createElement("template"), p;
|
|
464
|
+
f && f.content && (p = function(e) {
|
|
465
|
+
return f.innerHTML = e, f.content.childNodes;
|
|
466
|
+
});
|
|
467
|
+
var m = function() {
|
|
468
|
+
return document.createDocumentFragment().childNodes;
|
|
469
|
+
};
|
|
470
|
+
function h(e) {
|
|
471
|
+
var c, l;
|
|
472
|
+
e = (0, t.escapeSpecialCharacters)(e);
|
|
473
|
+
var u = (a.exec(e)?.[1])?.toLowerCase();
|
|
474
|
+
switch (u) {
|
|
475
|
+
case n:
|
|
476
|
+
var d = s(e);
|
|
477
|
+
if (!(0, t.hasOpenTag)(e, r)) {
|
|
478
|
+
var f = d.querySelector(r);
|
|
479
|
+
/* istanbul ignore next */
|
|
480
|
+
(c = f?.parentNode) == null || c.removeChild(f);
|
|
481
|
+
}
|
|
482
|
+
if (!(0, t.hasOpenTag)(e, i)) {
|
|
483
|
+
var f = d.querySelector(i);
|
|
484
|
+
/* istanbul ignore next */
|
|
485
|
+
(l = f?.parentNode) == null || l.removeChild(f);
|
|
486
|
+
}
|
|
487
|
+
return d.querySelectorAll(n);
|
|
488
|
+
case r:
|
|
489
|
+
case i:
|
|
490
|
+
var h = o(e).querySelectorAll(u);
|
|
491
|
+
return (0, t.hasOpenTag)(e, i) && (0, t.hasOpenTag)(e, r) ? h[0].parentNode?.childNodes ?? m() : h;
|
|
492
|
+
default:
|
|
493
|
+
if (p) return p(e);
|
|
494
|
+
/* istanbul ignore start */
|
|
495
|
+
var f = o(e, i).querySelector(i);
|
|
496
|
+
return f?.childNodes ?? m();
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
})), rt = /* @__PURE__ */ t(((e) => {
|
|
500
|
+
var t = e && e.__importDefault || function(e) {
|
|
501
|
+
return e && e.__esModule ? e : { default: e };
|
|
502
|
+
};
|
|
503
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = a;
|
|
504
|
+
var n = t(nt()), r = tt(), i = /<(![a-zA-Z\s]+)>/;
|
|
505
|
+
function a(e) {
|
|
506
|
+
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
507
|
+
if (!e) return [];
|
|
508
|
+
var t = i.exec(e), a = t ? t[1] : void 0;
|
|
509
|
+
return (0, r.formatDOM)((0, n.default)(e), null, a);
|
|
510
|
+
}
|
|
511
|
+
})), it = /* @__PURE__ */ t(((e) => {
|
|
512
|
+
e.SAME = 0, e.CAMELCASE = 1, e.possibleStandardNames = {
|
|
513
|
+
accept: 0,
|
|
514
|
+
acceptCharset: 1,
|
|
515
|
+
"accept-charset": "acceptCharset",
|
|
516
|
+
accessKey: 1,
|
|
517
|
+
action: 0,
|
|
518
|
+
allowFullScreen: 1,
|
|
519
|
+
alt: 0,
|
|
520
|
+
as: 0,
|
|
521
|
+
async: 0,
|
|
522
|
+
autoCapitalize: 1,
|
|
523
|
+
autoComplete: 1,
|
|
524
|
+
autoCorrect: 1,
|
|
525
|
+
autoFocus: 1,
|
|
526
|
+
autoPlay: 1,
|
|
527
|
+
autoSave: 1,
|
|
528
|
+
capture: 0,
|
|
529
|
+
cellPadding: 1,
|
|
530
|
+
cellSpacing: 1,
|
|
531
|
+
challenge: 0,
|
|
532
|
+
charSet: 1,
|
|
533
|
+
checked: 0,
|
|
534
|
+
children: 0,
|
|
535
|
+
cite: 0,
|
|
536
|
+
class: "className",
|
|
537
|
+
classID: 1,
|
|
538
|
+
className: 1,
|
|
539
|
+
cols: 0,
|
|
540
|
+
colSpan: 1,
|
|
541
|
+
content: 0,
|
|
542
|
+
contentEditable: 1,
|
|
543
|
+
contextMenu: 1,
|
|
544
|
+
controls: 0,
|
|
545
|
+
controlsList: 1,
|
|
546
|
+
coords: 0,
|
|
547
|
+
crossOrigin: 1,
|
|
548
|
+
dangerouslySetInnerHTML: 1,
|
|
549
|
+
data: 0,
|
|
550
|
+
dateTime: 1,
|
|
551
|
+
default: 0,
|
|
552
|
+
defaultChecked: 1,
|
|
553
|
+
defaultValue: 1,
|
|
554
|
+
defer: 0,
|
|
555
|
+
dir: 0,
|
|
556
|
+
disabled: 0,
|
|
557
|
+
disablePictureInPicture: 1,
|
|
558
|
+
disableRemotePlayback: 1,
|
|
559
|
+
download: 0,
|
|
560
|
+
draggable: 0,
|
|
561
|
+
encType: 1,
|
|
562
|
+
enterKeyHint: 1,
|
|
563
|
+
for: "htmlFor",
|
|
564
|
+
form: 0,
|
|
565
|
+
formMethod: 1,
|
|
566
|
+
formAction: 1,
|
|
567
|
+
formEncType: 1,
|
|
568
|
+
formNoValidate: 1,
|
|
569
|
+
formTarget: 1,
|
|
570
|
+
frameBorder: 1,
|
|
571
|
+
headers: 0,
|
|
572
|
+
height: 0,
|
|
573
|
+
hidden: 0,
|
|
574
|
+
high: 0,
|
|
575
|
+
href: 0,
|
|
576
|
+
hrefLang: 1,
|
|
577
|
+
htmlFor: 1,
|
|
578
|
+
httpEquiv: 1,
|
|
579
|
+
"http-equiv": "httpEquiv",
|
|
580
|
+
icon: 0,
|
|
581
|
+
id: 0,
|
|
582
|
+
innerHTML: 1,
|
|
583
|
+
inputMode: 1,
|
|
584
|
+
integrity: 0,
|
|
585
|
+
is: 0,
|
|
586
|
+
itemID: 1,
|
|
587
|
+
itemProp: 1,
|
|
588
|
+
itemRef: 1,
|
|
589
|
+
itemScope: 1,
|
|
590
|
+
itemType: 1,
|
|
591
|
+
keyParams: 1,
|
|
592
|
+
keyType: 1,
|
|
593
|
+
kind: 0,
|
|
594
|
+
label: 0,
|
|
595
|
+
lang: 0,
|
|
596
|
+
list: 0,
|
|
597
|
+
loop: 0,
|
|
598
|
+
low: 0,
|
|
599
|
+
manifest: 0,
|
|
600
|
+
marginWidth: 1,
|
|
601
|
+
marginHeight: 1,
|
|
602
|
+
max: 0,
|
|
603
|
+
maxLength: 1,
|
|
604
|
+
media: 0,
|
|
605
|
+
mediaGroup: 1,
|
|
606
|
+
method: 0,
|
|
607
|
+
min: 0,
|
|
608
|
+
minLength: 1,
|
|
609
|
+
multiple: 0,
|
|
610
|
+
muted: 0,
|
|
611
|
+
name: 0,
|
|
612
|
+
noModule: 1,
|
|
613
|
+
nonce: 0,
|
|
614
|
+
noValidate: 1,
|
|
615
|
+
open: 0,
|
|
616
|
+
optimum: 0,
|
|
617
|
+
pattern: 0,
|
|
618
|
+
placeholder: 0,
|
|
619
|
+
playsInline: 1,
|
|
620
|
+
poster: 0,
|
|
621
|
+
preload: 0,
|
|
622
|
+
profile: 0,
|
|
623
|
+
radioGroup: 1,
|
|
624
|
+
readOnly: 1,
|
|
625
|
+
referrerPolicy: 1,
|
|
626
|
+
rel: 0,
|
|
627
|
+
required: 0,
|
|
628
|
+
reversed: 0,
|
|
629
|
+
role: 0,
|
|
630
|
+
rows: 0,
|
|
631
|
+
rowSpan: 1,
|
|
632
|
+
sandbox: 0,
|
|
633
|
+
scope: 0,
|
|
634
|
+
scoped: 0,
|
|
635
|
+
scrolling: 0,
|
|
636
|
+
seamless: 0,
|
|
637
|
+
selected: 0,
|
|
638
|
+
shape: 0,
|
|
639
|
+
size: 0,
|
|
640
|
+
sizes: 0,
|
|
641
|
+
span: 0,
|
|
642
|
+
spellCheck: 1,
|
|
643
|
+
src: 0,
|
|
644
|
+
srcDoc: 1,
|
|
645
|
+
srcLang: 1,
|
|
646
|
+
srcSet: 1,
|
|
647
|
+
start: 0,
|
|
648
|
+
step: 0,
|
|
649
|
+
style: 0,
|
|
650
|
+
summary: 0,
|
|
651
|
+
tabIndex: 1,
|
|
652
|
+
target: 0,
|
|
653
|
+
title: 0,
|
|
654
|
+
type: 0,
|
|
655
|
+
useMap: 1,
|
|
656
|
+
value: 0,
|
|
657
|
+
width: 0,
|
|
658
|
+
wmode: 0,
|
|
659
|
+
wrap: 0,
|
|
660
|
+
about: 0,
|
|
661
|
+
accentHeight: 1,
|
|
662
|
+
"accent-height": "accentHeight",
|
|
663
|
+
accumulate: 0,
|
|
664
|
+
additive: 0,
|
|
665
|
+
alignmentBaseline: 1,
|
|
666
|
+
"alignment-baseline": "alignmentBaseline",
|
|
667
|
+
allowReorder: 1,
|
|
668
|
+
alphabetic: 0,
|
|
669
|
+
amplitude: 0,
|
|
670
|
+
arabicForm: 1,
|
|
671
|
+
"arabic-form": "arabicForm",
|
|
672
|
+
ascent: 0,
|
|
673
|
+
attributeName: 1,
|
|
674
|
+
attributeType: 1,
|
|
675
|
+
autoReverse: 1,
|
|
676
|
+
azimuth: 0,
|
|
677
|
+
baseFrequency: 1,
|
|
678
|
+
baselineShift: 1,
|
|
679
|
+
"baseline-shift": "baselineShift",
|
|
680
|
+
baseProfile: 1,
|
|
681
|
+
bbox: 0,
|
|
682
|
+
begin: 0,
|
|
683
|
+
bias: 0,
|
|
684
|
+
by: 0,
|
|
685
|
+
calcMode: 1,
|
|
686
|
+
capHeight: 1,
|
|
687
|
+
"cap-height": "capHeight",
|
|
688
|
+
clip: 0,
|
|
689
|
+
clipPath: 1,
|
|
690
|
+
"clip-path": "clipPath",
|
|
691
|
+
clipPathUnits: 1,
|
|
692
|
+
clipRule: 1,
|
|
693
|
+
"clip-rule": "clipRule",
|
|
694
|
+
color: 0,
|
|
695
|
+
colorInterpolation: 1,
|
|
696
|
+
"color-interpolation": "colorInterpolation",
|
|
697
|
+
colorInterpolationFilters: 1,
|
|
698
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
699
|
+
colorProfile: 1,
|
|
700
|
+
"color-profile": "colorProfile",
|
|
701
|
+
colorRendering: 1,
|
|
702
|
+
"color-rendering": "colorRendering",
|
|
703
|
+
contentScriptType: 1,
|
|
704
|
+
contentStyleType: 1,
|
|
705
|
+
cursor: 0,
|
|
706
|
+
cx: 0,
|
|
707
|
+
cy: 0,
|
|
708
|
+
d: 0,
|
|
709
|
+
datatype: 0,
|
|
710
|
+
decelerate: 0,
|
|
711
|
+
descent: 0,
|
|
712
|
+
diffuseConstant: 1,
|
|
713
|
+
direction: 0,
|
|
714
|
+
display: 0,
|
|
715
|
+
divisor: 0,
|
|
716
|
+
dominantBaseline: 1,
|
|
717
|
+
"dominant-baseline": "dominantBaseline",
|
|
718
|
+
dur: 0,
|
|
719
|
+
dx: 0,
|
|
720
|
+
dy: 0,
|
|
721
|
+
edgeMode: 1,
|
|
722
|
+
elevation: 0,
|
|
723
|
+
enableBackground: 1,
|
|
724
|
+
"enable-background": "enableBackground",
|
|
725
|
+
end: 0,
|
|
726
|
+
exponent: 0,
|
|
727
|
+
externalResourcesRequired: 1,
|
|
728
|
+
fill: 0,
|
|
729
|
+
fillOpacity: 1,
|
|
730
|
+
"fill-opacity": "fillOpacity",
|
|
731
|
+
fillRule: 1,
|
|
732
|
+
"fill-rule": "fillRule",
|
|
733
|
+
filter: 0,
|
|
734
|
+
filterRes: 1,
|
|
735
|
+
filterUnits: 1,
|
|
736
|
+
floodOpacity: 1,
|
|
737
|
+
"flood-opacity": "floodOpacity",
|
|
738
|
+
floodColor: 1,
|
|
739
|
+
"flood-color": "floodColor",
|
|
740
|
+
focusable: 0,
|
|
741
|
+
fontFamily: 1,
|
|
742
|
+
"font-family": "fontFamily",
|
|
743
|
+
fontSize: 1,
|
|
744
|
+
"font-size": "fontSize",
|
|
745
|
+
fontSizeAdjust: 1,
|
|
746
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
747
|
+
fontStretch: 1,
|
|
748
|
+
"font-stretch": "fontStretch",
|
|
749
|
+
fontStyle: 1,
|
|
750
|
+
"font-style": "fontStyle",
|
|
751
|
+
fontVariant: 1,
|
|
752
|
+
"font-variant": "fontVariant",
|
|
753
|
+
fontWeight: 1,
|
|
754
|
+
"font-weight": "fontWeight",
|
|
755
|
+
format: 0,
|
|
756
|
+
from: 0,
|
|
757
|
+
fx: 0,
|
|
758
|
+
fy: 0,
|
|
759
|
+
g1: 0,
|
|
760
|
+
g2: 0,
|
|
761
|
+
glyphName: 1,
|
|
762
|
+
"glyph-name": "glyphName",
|
|
763
|
+
glyphOrientationHorizontal: 1,
|
|
764
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
765
|
+
glyphOrientationVertical: 1,
|
|
766
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
767
|
+
glyphRef: 1,
|
|
768
|
+
gradientTransform: 1,
|
|
769
|
+
gradientUnits: 1,
|
|
770
|
+
hanging: 0,
|
|
771
|
+
horizAdvX: 1,
|
|
772
|
+
"horiz-adv-x": "horizAdvX",
|
|
773
|
+
horizOriginX: 1,
|
|
774
|
+
"horiz-origin-x": "horizOriginX",
|
|
775
|
+
ideographic: 0,
|
|
776
|
+
imageRendering: 1,
|
|
777
|
+
"image-rendering": "imageRendering",
|
|
778
|
+
in2: 0,
|
|
779
|
+
in: 0,
|
|
780
|
+
inlist: 0,
|
|
781
|
+
intercept: 0,
|
|
782
|
+
k1: 0,
|
|
783
|
+
k2: 0,
|
|
784
|
+
k3: 0,
|
|
785
|
+
k4: 0,
|
|
786
|
+
k: 0,
|
|
787
|
+
kernelMatrix: 1,
|
|
788
|
+
kernelUnitLength: 1,
|
|
789
|
+
kerning: 0,
|
|
790
|
+
keyPoints: 1,
|
|
791
|
+
keySplines: 1,
|
|
792
|
+
keyTimes: 1,
|
|
793
|
+
lengthAdjust: 1,
|
|
794
|
+
letterSpacing: 1,
|
|
795
|
+
"letter-spacing": "letterSpacing",
|
|
796
|
+
lightingColor: 1,
|
|
797
|
+
"lighting-color": "lightingColor",
|
|
798
|
+
limitingConeAngle: 1,
|
|
799
|
+
local: 0,
|
|
800
|
+
markerEnd: 1,
|
|
801
|
+
"marker-end": "markerEnd",
|
|
802
|
+
markerHeight: 1,
|
|
803
|
+
markerMid: 1,
|
|
804
|
+
"marker-mid": "markerMid",
|
|
805
|
+
markerStart: 1,
|
|
806
|
+
"marker-start": "markerStart",
|
|
807
|
+
markerUnits: 1,
|
|
808
|
+
markerWidth: 1,
|
|
809
|
+
mask: 0,
|
|
810
|
+
maskContentUnits: 1,
|
|
811
|
+
maskUnits: 1,
|
|
812
|
+
mathematical: 0,
|
|
813
|
+
mode: 0,
|
|
814
|
+
numOctaves: 1,
|
|
815
|
+
offset: 0,
|
|
816
|
+
opacity: 0,
|
|
817
|
+
operator: 0,
|
|
818
|
+
order: 0,
|
|
819
|
+
orient: 0,
|
|
820
|
+
orientation: 0,
|
|
821
|
+
origin: 0,
|
|
822
|
+
overflow: 0,
|
|
823
|
+
overlinePosition: 1,
|
|
824
|
+
"overline-position": "overlinePosition",
|
|
825
|
+
overlineThickness: 1,
|
|
826
|
+
"overline-thickness": "overlineThickness",
|
|
827
|
+
paintOrder: 1,
|
|
828
|
+
"paint-order": "paintOrder",
|
|
829
|
+
panose1: 0,
|
|
830
|
+
"panose-1": "panose1",
|
|
831
|
+
pathLength: 1,
|
|
832
|
+
patternContentUnits: 1,
|
|
833
|
+
patternTransform: 1,
|
|
834
|
+
patternUnits: 1,
|
|
835
|
+
pointerEvents: 1,
|
|
836
|
+
"pointer-events": "pointerEvents",
|
|
837
|
+
points: 0,
|
|
838
|
+
pointsAtX: 1,
|
|
839
|
+
pointsAtY: 1,
|
|
840
|
+
pointsAtZ: 1,
|
|
841
|
+
prefix: 0,
|
|
842
|
+
preserveAlpha: 1,
|
|
843
|
+
preserveAspectRatio: 1,
|
|
844
|
+
primitiveUnits: 1,
|
|
845
|
+
property: 0,
|
|
846
|
+
r: 0,
|
|
847
|
+
radius: 0,
|
|
848
|
+
refX: 1,
|
|
849
|
+
refY: 1,
|
|
850
|
+
renderingIntent: 1,
|
|
851
|
+
"rendering-intent": "renderingIntent",
|
|
852
|
+
repeatCount: 1,
|
|
853
|
+
repeatDur: 1,
|
|
854
|
+
requiredExtensions: 1,
|
|
855
|
+
requiredFeatures: 1,
|
|
856
|
+
resource: 0,
|
|
857
|
+
restart: 0,
|
|
858
|
+
result: 0,
|
|
859
|
+
results: 0,
|
|
860
|
+
rotate: 0,
|
|
861
|
+
rx: 0,
|
|
862
|
+
ry: 0,
|
|
863
|
+
scale: 0,
|
|
864
|
+
security: 0,
|
|
865
|
+
seed: 0,
|
|
866
|
+
shapeRendering: 1,
|
|
867
|
+
"shape-rendering": "shapeRendering",
|
|
868
|
+
slope: 0,
|
|
869
|
+
spacing: 0,
|
|
870
|
+
specularConstant: 1,
|
|
871
|
+
specularExponent: 1,
|
|
872
|
+
speed: 0,
|
|
873
|
+
spreadMethod: 1,
|
|
874
|
+
startOffset: 1,
|
|
875
|
+
stdDeviation: 1,
|
|
876
|
+
stemh: 0,
|
|
877
|
+
stemv: 0,
|
|
878
|
+
stitchTiles: 1,
|
|
879
|
+
stopColor: 1,
|
|
880
|
+
"stop-color": "stopColor",
|
|
881
|
+
stopOpacity: 1,
|
|
882
|
+
"stop-opacity": "stopOpacity",
|
|
883
|
+
strikethroughPosition: 1,
|
|
884
|
+
"strikethrough-position": "strikethroughPosition",
|
|
885
|
+
strikethroughThickness: 1,
|
|
886
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
887
|
+
string: 0,
|
|
888
|
+
stroke: 0,
|
|
889
|
+
strokeDasharray: 1,
|
|
890
|
+
"stroke-dasharray": "strokeDasharray",
|
|
891
|
+
strokeDashoffset: 1,
|
|
892
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
893
|
+
strokeLinecap: 1,
|
|
894
|
+
"stroke-linecap": "strokeLinecap",
|
|
895
|
+
strokeLinejoin: 1,
|
|
896
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
897
|
+
strokeMiterlimit: 1,
|
|
898
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
899
|
+
strokeWidth: 1,
|
|
900
|
+
"stroke-width": "strokeWidth",
|
|
901
|
+
strokeOpacity: 1,
|
|
902
|
+
"stroke-opacity": "strokeOpacity",
|
|
903
|
+
suppressContentEditableWarning: 1,
|
|
904
|
+
suppressHydrationWarning: 1,
|
|
905
|
+
surfaceScale: 1,
|
|
906
|
+
systemLanguage: 1,
|
|
907
|
+
tableValues: 1,
|
|
908
|
+
targetX: 1,
|
|
909
|
+
targetY: 1,
|
|
910
|
+
textAnchor: 1,
|
|
911
|
+
"text-anchor": "textAnchor",
|
|
912
|
+
textDecoration: 1,
|
|
913
|
+
"text-decoration": "textDecoration",
|
|
914
|
+
textLength: 1,
|
|
915
|
+
textRendering: 1,
|
|
916
|
+
"text-rendering": "textRendering",
|
|
917
|
+
to: 0,
|
|
918
|
+
transform: 0,
|
|
919
|
+
typeof: 0,
|
|
920
|
+
u1: 0,
|
|
921
|
+
u2: 0,
|
|
922
|
+
underlinePosition: 1,
|
|
923
|
+
"underline-position": "underlinePosition",
|
|
924
|
+
underlineThickness: 1,
|
|
925
|
+
"underline-thickness": "underlineThickness",
|
|
926
|
+
unicode: 0,
|
|
927
|
+
unicodeBidi: 1,
|
|
928
|
+
"unicode-bidi": "unicodeBidi",
|
|
929
|
+
unicodeRange: 1,
|
|
930
|
+
"unicode-range": "unicodeRange",
|
|
931
|
+
unitsPerEm: 1,
|
|
932
|
+
"units-per-em": "unitsPerEm",
|
|
933
|
+
unselectable: 0,
|
|
934
|
+
vAlphabetic: 1,
|
|
935
|
+
"v-alphabetic": "vAlphabetic",
|
|
936
|
+
values: 0,
|
|
937
|
+
vectorEffect: 1,
|
|
938
|
+
"vector-effect": "vectorEffect",
|
|
939
|
+
version: 0,
|
|
940
|
+
vertAdvY: 1,
|
|
941
|
+
"vert-adv-y": "vertAdvY",
|
|
942
|
+
vertOriginX: 1,
|
|
943
|
+
"vert-origin-x": "vertOriginX",
|
|
944
|
+
vertOriginY: 1,
|
|
945
|
+
"vert-origin-y": "vertOriginY",
|
|
946
|
+
vHanging: 1,
|
|
947
|
+
"v-hanging": "vHanging",
|
|
948
|
+
vIdeographic: 1,
|
|
949
|
+
"v-ideographic": "vIdeographic",
|
|
950
|
+
viewBox: 1,
|
|
951
|
+
viewTarget: 1,
|
|
952
|
+
visibility: 0,
|
|
953
|
+
vMathematical: 1,
|
|
954
|
+
"v-mathematical": "vMathematical",
|
|
955
|
+
vocab: 0,
|
|
956
|
+
widths: 0,
|
|
957
|
+
wordSpacing: 1,
|
|
958
|
+
"word-spacing": "wordSpacing",
|
|
959
|
+
writingMode: 1,
|
|
960
|
+
"writing-mode": "writingMode",
|
|
961
|
+
x1: 0,
|
|
962
|
+
x2: 0,
|
|
963
|
+
x: 0,
|
|
964
|
+
xChannelSelector: 1,
|
|
965
|
+
xHeight: 1,
|
|
966
|
+
"x-height": "xHeight",
|
|
967
|
+
xlinkActuate: 1,
|
|
968
|
+
"xlink:actuate": "xlinkActuate",
|
|
969
|
+
xlinkArcrole: 1,
|
|
970
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
971
|
+
xlinkHref: 1,
|
|
972
|
+
"xlink:href": "xlinkHref",
|
|
973
|
+
xlinkRole: 1,
|
|
974
|
+
"xlink:role": "xlinkRole",
|
|
975
|
+
xlinkShow: 1,
|
|
976
|
+
"xlink:show": "xlinkShow",
|
|
977
|
+
xlinkTitle: 1,
|
|
978
|
+
"xlink:title": "xlinkTitle",
|
|
979
|
+
xlinkType: 1,
|
|
980
|
+
"xlink:type": "xlinkType",
|
|
981
|
+
xmlBase: 1,
|
|
982
|
+
"xml:base": "xmlBase",
|
|
983
|
+
xmlLang: 1,
|
|
984
|
+
"xml:lang": "xmlLang",
|
|
985
|
+
xmlns: 0,
|
|
986
|
+
"xml:space": "xmlSpace",
|
|
987
|
+
xmlnsXlink: 1,
|
|
988
|
+
"xmlns:xlink": "xmlnsXlink",
|
|
989
|
+
xmlSpace: 1,
|
|
990
|
+
y1: 0,
|
|
991
|
+
y2: 0,
|
|
992
|
+
y: 0,
|
|
993
|
+
yChannelSelector: 1,
|
|
994
|
+
z: 0,
|
|
995
|
+
zoomAndPan: 1
|
|
996
|
+
};
|
|
997
|
+
})), at = /* @__PURE__ */ t(((e) => {
|
|
998
|
+
var t = 0, n = 1, r = 2, i = 3, a = 4, o = 5, s = 6;
|
|
999
|
+
function c(e) {
|
|
1000
|
+
return u.hasOwnProperty(e) ? u[e] : null;
|
|
1001
|
+
}
|
|
1002
|
+
function l(e, t, n, o, s, c, l) {
|
|
1003
|
+
this.acceptsBooleans = t === r || t === i || t === a, this.attributeName = o, this.attributeNamespace = s, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = c, this.removeEmptyString = l;
|
|
1004
|
+
}
|
|
1005
|
+
var u = {};
|
|
1006
|
+
[
|
|
1007
|
+
"children",
|
|
1008
|
+
"dangerouslySetInnerHTML",
|
|
1009
|
+
"defaultValue",
|
|
1010
|
+
"defaultChecked",
|
|
1011
|
+
"innerHTML",
|
|
1012
|
+
"suppressContentEditableWarning",
|
|
1013
|
+
"suppressHydrationWarning",
|
|
1014
|
+
"style"
|
|
1015
|
+
].forEach((e) => {
|
|
1016
|
+
u[e] = new l(e, t, !1, e, null, !1, !1);
|
|
1017
|
+
}), [
|
|
1018
|
+
["acceptCharset", "accept-charset"],
|
|
1019
|
+
["className", "class"],
|
|
1020
|
+
["htmlFor", "for"],
|
|
1021
|
+
["httpEquiv", "http-equiv"]
|
|
1022
|
+
].forEach(([e, t]) => {
|
|
1023
|
+
u[e] = new l(e, n, !1, t, null, !1, !1);
|
|
1024
|
+
}), [
|
|
1025
|
+
"contentEditable",
|
|
1026
|
+
"draggable",
|
|
1027
|
+
"spellCheck",
|
|
1028
|
+
"value"
|
|
1029
|
+
].forEach((e) => {
|
|
1030
|
+
u[e] = new l(e, r, !1, e.toLowerCase(), null, !1, !1);
|
|
1031
|
+
}), [
|
|
1032
|
+
"autoReverse",
|
|
1033
|
+
"externalResourcesRequired",
|
|
1034
|
+
"focusable",
|
|
1035
|
+
"preserveAlpha"
|
|
1036
|
+
].forEach((e) => {
|
|
1037
|
+
u[e] = new l(e, r, !1, e, null, !1, !1);
|
|
1038
|
+
}), [
|
|
1039
|
+
"allowFullScreen",
|
|
1040
|
+
"async",
|
|
1041
|
+
"autoFocus",
|
|
1042
|
+
"autoPlay",
|
|
1043
|
+
"controls",
|
|
1044
|
+
"default",
|
|
1045
|
+
"defer",
|
|
1046
|
+
"disabled",
|
|
1047
|
+
"disablePictureInPicture",
|
|
1048
|
+
"disableRemotePlayback",
|
|
1049
|
+
"formNoValidate",
|
|
1050
|
+
"hidden",
|
|
1051
|
+
"loop",
|
|
1052
|
+
"noModule",
|
|
1053
|
+
"noValidate",
|
|
1054
|
+
"open",
|
|
1055
|
+
"playsInline",
|
|
1056
|
+
"readOnly",
|
|
1057
|
+
"required",
|
|
1058
|
+
"reversed",
|
|
1059
|
+
"scoped",
|
|
1060
|
+
"seamless",
|
|
1061
|
+
"itemScope"
|
|
1062
|
+
].forEach((e) => {
|
|
1063
|
+
u[e] = new l(e, i, !1, e.toLowerCase(), null, !1, !1);
|
|
1064
|
+
}), [
|
|
1065
|
+
"checked",
|
|
1066
|
+
"multiple",
|
|
1067
|
+
"muted",
|
|
1068
|
+
"selected"
|
|
1069
|
+
].forEach((e) => {
|
|
1070
|
+
u[e] = new l(e, i, !0, e, null, !1, !1);
|
|
1071
|
+
}), ["capture", "download"].forEach((e) => {
|
|
1072
|
+
u[e] = new l(e, a, !1, e, null, !1, !1);
|
|
1073
|
+
}), [
|
|
1074
|
+
"cols",
|
|
1075
|
+
"rows",
|
|
1076
|
+
"size",
|
|
1077
|
+
"span"
|
|
1078
|
+
].forEach((e) => {
|
|
1079
|
+
u[e] = new l(e, s, !1, e, null, !1, !1);
|
|
1080
|
+
}), ["rowSpan", "start"].forEach((e) => {
|
|
1081
|
+
u[e] = new l(e, o, !1, e.toLowerCase(), null, !1, !1);
|
|
1082
|
+
});
|
|
1083
|
+
var d = /[\-\:]([a-z])/g, f = (e) => e[1].toUpperCase();
|
|
1084
|
+
(/* @__PURE__ */ "accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height".split(".")).forEach((e) => {
|
|
1085
|
+
let t = e.replace(d, f);
|
|
1086
|
+
u[t] = new l(t, n, !1, e, null, !1, !1);
|
|
1087
|
+
}), [
|
|
1088
|
+
"xlink:actuate",
|
|
1089
|
+
"xlink:arcrole",
|
|
1090
|
+
"xlink:role",
|
|
1091
|
+
"xlink:show",
|
|
1092
|
+
"xlink:title",
|
|
1093
|
+
"xlink:type"
|
|
1094
|
+
].forEach((e) => {
|
|
1095
|
+
let t = e.replace(d, f);
|
|
1096
|
+
u[t] = new l(t, n, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
1097
|
+
}), [
|
|
1098
|
+
"xml:base",
|
|
1099
|
+
"xml:lang",
|
|
1100
|
+
"xml:space"
|
|
1101
|
+
].forEach((e) => {
|
|
1102
|
+
let t = e.replace(d, f);
|
|
1103
|
+
u[t] = new l(t, n, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
1104
|
+
}), ["tabIndex", "crossOrigin"].forEach((e) => {
|
|
1105
|
+
u[e] = new l(e, n, !1, e.toLowerCase(), null, !1, !1);
|
|
1106
|
+
});
|
|
1107
|
+
var p = "xlinkHref";
|
|
1108
|
+
u[p] = new l("xlinkHref", n, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [
|
|
1109
|
+
"src",
|
|
1110
|
+
"href",
|
|
1111
|
+
"action",
|
|
1112
|
+
"formAction"
|
|
1113
|
+
].forEach((e) => {
|
|
1114
|
+
u[e] = new l(e, n, !1, e.toLowerCase(), null, !0, !0);
|
|
1115
|
+
});
|
|
1116
|
+
var { CAMELCASE: m, SAME: h, possibleStandardNames: g } = it(), _ = RegExp.prototype.test.bind(/* @__PURE__ */ RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")), v = Object.keys(g).reduce((e, t) => {
|
|
1117
|
+
let n = g[t];
|
|
1118
|
+
return n === h ? e[t] = t : n === m ? e[t.toLowerCase()] = t : e[t] = n, e;
|
|
1119
|
+
}, {});
|
|
1120
|
+
e.BOOLEAN = i, e.BOOLEANISH_STRING = r, e.NUMERIC = o, e.OVERLOADED_BOOLEAN = a, e.POSITIVE_NUMERIC = s, e.RESERVED = t, e.STRING = n, e.getPropertyInfo = c, e.isCustomAttribute = _, e.possibleStandardNames = v;
|
|
1121
|
+
})), ot = /* @__PURE__ */ t(((e) => {
|
|
1122
|
+
var t = e && e.__importDefault || function(e) {
|
|
1123
|
+
return e && e.__esModule ? e : { default: e };
|
|
1124
|
+
};
|
|
1125
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = a, e.setStyleProp = s;
|
|
1126
|
+
var n = c(), r = t(m()), i = /* @__PURE__ */ new Set([
|
|
1127
|
+
"annotation-xml",
|
|
1128
|
+
"color-profile",
|
|
1129
|
+
"font-face",
|
|
1130
|
+
"font-face-src",
|
|
1131
|
+
"font-face-uri",
|
|
1132
|
+
"font-face-format",
|
|
1133
|
+
"font-face-name",
|
|
1134
|
+
"missing-glyph"
|
|
1135
|
+
]);
|
|
1136
|
+
function a(e, t) {
|
|
1137
|
+
return e.includes("-") ? !i.has(e) : !!(t && typeof t.is == "string");
|
|
1138
|
+
}
|
|
1139
|
+
var o = { reactCompat: !0 };
|
|
1140
|
+
function s(e, t) {
|
|
1141
|
+
if (typeof e == "string") {
|
|
1142
|
+
if (!e.trim()) {
|
|
1143
|
+
t.style = {};
|
|
1144
|
+
return;
|
|
1145
|
+
}
|
|
1146
|
+
try {
|
|
1147
|
+
t.style = (0, r.default)(e, o);
|
|
1148
|
+
} catch {
|
|
1149
|
+
t.style = {};
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
e.PRESERVE_CUSTOM_ATTRIBUTES = Number(n.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
1154
|
+
"tr",
|
|
1155
|
+
"tbody",
|
|
1156
|
+
"thead",
|
|
1157
|
+
"tfoot",
|
|
1158
|
+
"colgroup",
|
|
1159
|
+
"table",
|
|
1160
|
+
"head",
|
|
1161
|
+
"html",
|
|
1162
|
+
"frameset"
|
|
1163
|
+
]), e.canTextBeChildOfNode = function(t) {
|
|
1164
|
+
return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name);
|
|
1165
|
+
}, e.returnFirstArg = function(e) {
|
|
1166
|
+
return e;
|
|
1167
|
+
};
|
|
1168
|
+
})), st = /* @__PURE__ */ t(((e) => {
|
|
1169
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
1170
|
+
var t = at(), n = ot(), r = ["checked", "value"], i = [
|
|
1171
|
+
"input",
|
|
1172
|
+
"select",
|
|
1173
|
+
"textarea"
|
|
1174
|
+
], a = {
|
|
1175
|
+
reset: !0,
|
|
1176
|
+
submit: !0
|
|
1177
|
+
};
|
|
1178
|
+
function o(e, o) {
|
|
1179
|
+
e === void 0 && (e = {});
|
|
1180
|
+
var c = {}, l = !!(e.type && a[e.type]);
|
|
1181
|
+
for (var u in e) {
|
|
1182
|
+
var d = e[u];
|
|
1183
|
+
if ((0, t.isCustomAttribute)(u)) {
|
|
1184
|
+
c[u] = d;
|
|
1185
|
+
continue;
|
|
1186
|
+
}
|
|
1187
|
+
var f = u.toLowerCase(), p = s(f);
|
|
1188
|
+
if (p) {
|
|
1189
|
+
var m = (0, t.getPropertyInfo)(p);
|
|
1190
|
+
switch (r.includes(p) && i.includes(o) && !l && (p = s("default" + f)), c[p] = d, m?.type) {
|
|
1191
|
+
case t.BOOLEAN:
|
|
1192
|
+
c[p] = !0;
|
|
1193
|
+
break;
|
|
1194
|
+
case t.OVERLOADED_BOOLEAN: d === "" && (c[p] = !0);
|
|
1195
|
+
}
|
|
1196
|
+
continue;
|
|
1197
|
+
}
|
|
1198
|
+
n.PRESERVE_CUSTOM_ATTRIBUTES && (c[u] = d);
|
|
1199
|
+
}
|
|
1200
|
+
return (0, n.setStyleProp)(e.style, c), c;
|
|
1201
|
+
}
|
|
1202
|
+
function s(e) {
|
|
1203
|
+
return t.possibleStandardNames[e];
|
|
1204
|
+
}
|
|
1205
|
+
})), ct = /* @__PURE__ */ t(((e) => {
|
|
1206
|
+
var t = e && e.__importDefault || function(e) {
|
|
1207
|
+
return e && e.__esModule ? e : { default: e };
|
|
1208
|
+
};
|
|
1209
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
1210
|
+
var n = c(), r = t(st()), i = ot(), a = {
|
|
1211
|
+
cloneElement: n.cloneElement,
|
|
1212
|
+
createElement: n.createElement,
|
|
1213
|
+
isValidElement: n.isValidElement
|
|
1214
|
+
};
|
|
1215
|
+
function o(e, t) {
|
|
1216
|
+
t === void 0 && (t = {});
|
|
1217
|
+
for (var n = [], c = typeof t.replace == "function", l = t.transform ?? i.returnFirstArg, u = t.library ?? a, d = u.cloneElement, f = u.createElement, p = u.isValidElement, m = e.length, h = 0; h < m; h++) {
|
|
1218
|
+
var g = e[h];
|
|
1219
|
+
if (c) {
|
|
1220
|
+
var _ = t.replace?.call(t, g, h);
|
|
1221
|
+
if (p(_)) {
|
|
1222
|
+
m > 1 && (_ = d(_, { key: _.key ?? h })), n.push(l(_, g, h));
|
|
1223
|
+
continue;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
if (g.type === "text") {
|
|
1227
|
+
var v = !g.data.trim().length;
|
|
1228
|
+
if (v && g.parent && !(0, i.canTextBeChildOfNode)(g.parent) || t.trim && v) continue;
|
|
1229
|
+
n.push(l(g.data, g, h));
|
|
1230
|
+
continue;
|
|
1231
|
+
}
|
|
1232
|
+
var y = g, b = {};
|
|
1233
|
+
s(y) ? ((0, i.setStyleProp)(y.attribs.style, y.attribs), b = y.attribs) : y.attribs && (b = (0, r.default)(y.attribs, y.name));
|
|
1234
|
+
var x = void 0;
|
|
1235
|
+
switch (g.type) {
|
|
1236
|
+
case "script":
|
|
1237
|
+
case "style":
|
|
1238
|
+
g.children[0] && (b.dangerouslySetInnerHTML = { __html: g.children[0].data });
|
|
1239
|
+
break;
|
|
1240
|
+
case "tag":
|
|
1241
|
+
g.name === "textarea" && g.children[0] ? b.defaultValue = g.children[0].data : g.children?.length && (x = o(g.children, t));
|
|
1242
|
+
break;
|
|
1243
|
+
default: continue;
|
|
1244
|
+
}
|
|
1245
|
+
m > 1 && (b.key = h), n.push(l(f(g.name, b, x), g, h));
|
|
1246
|
+
}
|
|
1247
|
+
return n.length === 1 ? n[0] : n;
|
|
1248
|
+
}
|
|
1249
|
+
function s(e) {
|
|
1250
|
+
return i.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, i.isCustomComponent)(e.name, e.attribs);
|
|
1251
|
+
}
|
|
1252
|
+
})), lt = /* @__PURE__ */ t(((e) => {
|
|
1253
|
+
var t = e && e.__importDefault || function(e) {
|
|
1254
|
+
return e && e.__esModule ? e : { default: e };
|
|
1255
|
+
};
|
|
1256
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = o;
|
|
1257
|
+
var n = t(rt());
|
|
1258
|
+
e.htmlToDOM = n.default, e.attributesToProps = t(st()).default;
|
|
1259
|
+
var r = t(ct());
|
|
1260
|
+
e.domToReact = r.default;
|
|
1261
|
+
var i = $e();
|
|
1262
|
+
Object.defineProperty(e, "Comment", {
|
|
1263
|
+
enumerable: !0,
|
|
1264
|
+
get: function() {
|
|
1265
|
+
return i.Comment;
|
|
1266
|
+
}
|
|
1267
|
+
}), Object.defineProperty(e, "Element", {
|
|
1268
|
+
enumerable: !0,
|
|
1269
|
+
get: function() {
|
|
1270
|
+
return i.Element;
|
|
1271
|
+
}
|
|
1272
|
+
}), Object.defineProperty(e, "ProcessingInstruction", {
|
|
1273
|
+
enumerable: !0,
|
|
1274
|
+
get: function() {
|
|
1275
|
+
return i.ProcessingInstruction;
|
|
1276
|
+
}
|
|
1277
|
+
}), Object.defineProperty(e, "Text", {
|
|
1278
|
+
enumerable: !0,
|
|
1279
|
+
get: function() {
|
|
1280
|
+
return i.Text;
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1283
|
+
var a = { lowerCaseAttributeNames: !1 };
|
|
1284
|
+
function o(e, t) {
|
|
1285
|
+
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
1286
|
+
return e ? (0, r.default)((0, n.default)(e, t?.htmlparser2 ?? a), t) : [];
|
|
1287
|
+
}
|
|
1288
|
+
})), O = /* @__PURE__ */ e(c(), 1), k = l(), A = /* @__PURE__ */ e(lt(), 1), ut = A.default.default || A.default, dt = y("between-horizontal-start", [
|
|
1289
|
+
["rect", {
|
|
1290
|
+
width: "13",
|
|
1291
|
+
height: "7",
|
|
1292
|
+
x: "8",
|
|
1293
|
+
y: "3",
|
|
1294
|
+
rx: "1",
|
|
1295
|
+
key: "pkso9a"
|
|
1296
|
+
}],
|
|
1297
|
+
["path", {
|
|
1298
|
+
d: "m2 9 3 3-3 3",
|
|
1299
|
+
key: "1agib5"
|
|
1300
|
+
}],
|
|
1301
|
+
["rect", {
|
|
1302
|
+
width: "13",
|
|
1303
|
+
height: "7",
|
|
1304
|
+
x: "8",
|
|
1305
|
+
y: "14",
|
|
1306
|
+
rx: "1",
|
|
1307
|
+
key: "1q5fc1"
|
|
1308
|
+
}]
|
|
1309
|
+
]), ft = y("loader-circle", [["path", {
|
|
1310
|
+
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
1311
|
+
key: "13zald"
|
|
1312
|
+
}]]), pt = y("trash-2", [
|
|
1313
|
+
["path", {
|
|
1314
|
+
d: "M10 11v6",
|
|
1315
|
+
key: "nco0om"
|
|
1316
|
+
}],
|
|
1317
|
+
["path", {
|
|
1318
|
+
d: "M14 11v6",
|
|
1319
|
+
key: "outv1u"
|
|
1320
|
+
}],
|
|
1321
|
+
["path", {
|
|
1322
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
1323
|
+
key: "miytrc"
|
|
1324
|
+
}],
|
|
1325
|
+
["path", {
|
|
1326
|
+
d: "M3 6h18",
|
|
1327
|
+
key: "d0wm0j"
|
|
1328
|
+
}],
|
|
1329
|
+
["path", {
|
|
1330
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
1331
|
+
key: "e791ji"
|
|
1332
|
+
}]
|
|
1333
|
+
]), mt = y("wrench", [["path", {
|
|
1334
|
+
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
1335
|
+
key: "1ngwbx"
|
|
1336
|
+
}]]), j = je(), M = "Collapsible", [ht, gt] = We(M), [_t, vt] = ht(M), yt = O.forwardRef((e, t) => {
|
|
1337
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = w({
|
|
1338
|
+
prop: r,
|
|
1339
|
+
defaultProp: i ?? !1,
|
|
1340
|
+
onChange: o,
|
|
1341
|
+
caller: M
|
|
1342
|
+
});
|
|
1343
|
+
return /* @__PURE__ */ (0, j.jsx)(_t, {
|
|
1344
|
+
scope: n,
|
|
1345
|
+
disabled: a,
|
|
1346
|
+
contentId: Ge(),
|
|
1347
|
+
open: c,
|
|
1348
|
+
onOpenToggle: O.useCallback(() => l((e) => !e), [l]),
|
|
1349
|
+
children: /* @__PURE__ */ (0, j.jsx)(C.div, {
|
|
1350
|
+
"data-state": Tt(c),
|
|
1351
|
+
"data-disabled": a ? "" : void 0,
|
|
1352
|
+
...s,
|
|
1353
|
+
ref: t
|
|
1354
|
+
})
|
|
1355
|
+
});
|
|
1356
|
+
});
|
|
1357
|
+
yt.displayName = M;
|
|
1358
|
+
var bt = "CollapsibleTrigger", xt = O.forwardRef((e, t) => {
|
|
1359
|
+
let { __scopeCollapsible: n, ...r } = e, i = vt(bt, n);
|
|
1360
|
+
return /* @__PURE__ */ (0, j.jsx)(C.button, {
|
|
1361
|
+
type: "button",
|
|
1362
|
+
"aria-controls": i.contentId,
|
|
1363
|
+
"aria-expanded": i.open || !1,
|
|
1364
|
+
"data-state": Tt(i.open),
|
|
1365
|
+
"data-disabled": i.disabled ? "" : void 0,
|
|
1366
|
+
disabled: i.disabled,
|
|
1367
|
+
...r,
|
|
1368
|
+
ref: t,
|
|
1369
|
+
onClick: S(e.onClick, i.onOpenToggle)
|
|
1370
|
+
});
|
|
1371
|
+
});
|
|
1372
|
+
xt.displayName = bt;
|
|
1373
|
+
var St = "CollapsibleContent", Ct = O.forwardRef((e, t) => {
|
|
1374
|
+
let { forceMount: n, ...r } = e, i = vt(St, e.__scopeCollapsible);
|
|
1375
|
+
return /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1376
|
+
present: n || i.open,
|
|
1377
|
+
children: ({ present: e }) => /* @__PURE__ */ (0, j.jsx)(wt, {
|
|
1378
|
+
...r,
|
|
1379
|
+
ref: t,
|
|
1380
|
+
present: e
|
|
1381
|
+
})
|
|
1382
|
+
});
|
|
1383
|
+
});
|
|
1384
|
+
Ct.displayName = St;
|
|
1385
|
+
var wt = O.forwardRef((e, t) => {
|
|
1386
|
+
let { __scopeCollapsible: n, present: r, children: a, ...o } = e, s = vt(St, n), [c, l] = O.useState(r), u = O.useRef(null), d = i(t, u), f = O.useRef(0), p = f.current, m = O.useRef(0), h = m.current, g = s.open || c, _ = O.useRef(g), v = O.useRef(void 0);
|
|
1387
|
+
return O.useEffect(() => {
|
|
1388
|
+
let e = requestAnimationFrame(() => _.current = !1);
|
|
1389
|
+
return () => cancelAnimationFrame(e);
|
|
1390
|
+
}, []), Pe(() => {
|
|
1391
|
+
let e = u.current;
|
|
1392
|
+
if (e) {
|
|
1393
|
+
v.current = v.current || {
|
|
1394
|
+
transitionDuration: e.style.transitionDuration,
|
|
1395
|
+
animationName: e.style.animationName
|
|
1396
|
+
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
1397
|
+
let t = e.getBoundingClientRect();
|
|
1398
|
+
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
1399
|
+
}
|
|
1400
|
+
}, [s.open, r]), /* @__PURE__ */ (0, j.jsx)(C.div, {
|
|
1401
|
+
"data-state": Tt(s.open),
|
|
1402
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
1403
|
+
id: s.contentId,
|
|
1404
|
+
hidden: !g,
|
|
1405
|
+
...o,
|
|
1406
|
+
ref: d,
|
|
1407
|
+
style: {
|
|
1408
|
+
"--radix-collapsible-content-height": p ? `${p}px` : void 0,
|
|
1409
|
+
"--radix-collapsible-content-width": h ? `${h}px` : void 0,
|
|
1410
|
+
...e.style
|
|
1411
|
+
},
|
|
1412
|
+
children: g && a
|
|
1413
|
+
});
|
|
1414
|
+
});
|
|
1415
|
+
function Tt(e) {
|
|
1416
|
+
return e ? "open" : "closed";
|
|
1417
|
+
}
|
|
1418
|
+
var Et = yt, Dt = xt, Ot = Ct, N = "Accordion", kt = [
|
|
1419
|
+
"Home",
|
|
1420
|
+
"End",
|
|
1421
|
+
"ArrowDown",
|
|
1422
|
+
"ArrowUp",
|
|
1423
|
+
"ArrowLeft",
|
|
1424
|
+
"ArrowRight"
|
|
1425
|
+
], [P, At, jt] = Oe(N), [F, Mt] = We(N, [jt, gt]), Nt = gt(), Pt = O.forwardRef((e, t) => {
|
|
1426
|
+
let { type: n, ...r } = e, i = r, a = r;
|
|
1427
|
+
return /* @__PURE__ */ (0, j.jsx)(P.Provider, {
|
|
1428
|
+
scope: e.__scopeAccordion,
|
|
1429
|
+
children: n === "multiple" ? /* @__PURE__ */ (0, j.jsx)(Bt, {
|
|
1430
|
+
...a,
|
|
1431
|
+
ref: t
|
|
1432
|
+
}) : /* @__PURE__ */ (0, j.jsx)(zt, {
|
|
1433
|
+
...i,
|
|
1434
|
+
ref: t
|
|
1435
|
+
})
|
|
1436
|
+
});
|
|
1437
|
+
});
|
|
1438
|
+
Pt.displayName = N;
|
|
1439
|
+
var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e, t) => {
|
|
1440
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: a = !1, ...o } = e, [s, c] = w({
|
|
1441
|
+
prop: n,
|
|
1442
|
+
defaultProp: r ?? "",
|
|
1443
|
+
onChange: i,
|
|
1444
|
+
caller: N
|
|
1445
|
+
});
|
|
1446
|
+
return /* @__PURE__ */ (0, j.jsx)(Ft, {
|
|
1447
|
+
scope: e.__scopeAccordion,
|
|
1448
|
+
value: O.useMemo(() => s ? [s] : [], [s]),
|
|
1449
|
+
onItemOpen: c,
|
|
1450
|
+
onItemClose: O.useCallback(() => a && c(""), [a, c]),
|
|
1451
|
+
children: /* @__PURE__ */ (0, j.jsx)(Lt, {
|
|
1452
|
+
scope: e.__scopeAccordion,
|
|
1453
|
+
collapsible: a,
|
|
1454
|
+
children: /* @__PURE__ */ (0, j.jsx)(Ht, {
|
|
1455
|
+
...o,
|
|
1456
|
+
ref: t
|
|
1457
|
+
})
|
|
1458
|
+
})
|
|
1459
|
+
});
|
|
1460
|
+
}), Bt = O.forwardRef((e, t) => {
|
|
1461
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = w({
|
|
1462
|
+
prop: n,
|
|
1463
|
+
defaultProp: r ?? [],
|
|
1464
|
+
onChange: i,
|
|
1465
|
+
caller: N
|
|
1466
|
+
}), c = O.useCallback((e) => s((t = []) => [...t, e]), [s]), l = O.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
1467
|
+
return /* @__PURE__ */ (0, j.jsx)(Ft, {
|
|
1468
|
+
scope: e.__scopeAccordion,
|
|
1469
|
+
value: o,
|
|
1470
|
+
onItemOpen: c,
|
|
1471
|
+
onItemClose: l,
|
|
1472
|
+
children: /* @__PURE__ */ (0, j.jsx)(Lt, {
|
|
1473
|
+
scope: e.__scopeAccordion,
|
|
1474
|
+
collapsible: !0,
|
|
1475
|
+
children: /* @__PURE__ */ (0, j.jsx)(Ht, {
|
|
1476
|
+
...a,
|
|
1477
|
+
ref: t
|
|
1478
|
+
})
|
|
1479
|
+
})
|
|
1480
|
+
});
|
|
1481
|
+
}), [Vt, I] = F(N), Ht = O.forwardRef((e, t) => {
|
|
1482
|
+
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = O.useRef(null), l = i(c, t), u = At(n), d = De(a) === "ltr", f = S(e.onKeyDown, (e) => {
|
|
1483
|
+
if (!kt.includes(e.key)) return;
|
|
1484
|
+
let t = e.target, n = u().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
1485
|
+
if (r === -1) return;
|
|
1486
|
+
e.preventDefault();
|
|
1487
|
+
let a = r, s = i - 1, c = () => {
|
|
1488
|
+
a = r + 1, a > s && (a = 0);
|
|
1489
|
+
}, l = () => {
|
|
1490
|
+
a = r - 1, a < 0 && (a = s);
|
|
1491
|
+
};
|
|
1492
|
+
switch (e.key) {
|
|
1493
|
+
case "Home":
|
|
1494
|
+
a = 0;
|
|
1495
|
+
break;
|
|
1496
|
+
case "End":
|
|
1497
|
+
a = s;
|
|
1498
|
+
break;
|
|
1499
|
+
case "ArrowRight":
|
|
1500
|
+
o === "horizontal" && (d ? c() : l());
|
|
1501
|
+
break;
|
|
1502
|
+
case "ArrowDown":
|
|
1503
|
+
o === "vertical" && c();
|
|
1504
|
+
break;
|
|
1505
|
+
case "ArrowLeft":
|
|
1506
|
+
o === "horizontal" && (d ? l() : c());
|
|
1507
|
+
break;
|
|
1508
|
+
case "ArrowUp": o === "vertical" && l();
|
|
1509
|
+
}
|
|
1510
|
+
n[a % i].ref.current?.focus();
|
|
1511
|
+
});
|
|
1512
|
+
return /* @__PURE__ */ (0, j.jsx)(Vt, {
|
|
1513
|
+
scope: n,
|
|
1514
|
+
disabled: r,
|
|
1515
|
+
direction: a,
|
|
1516
|
+
orientation: o,
|
|
1517
|
+
children: /* @__PURE__ */ (0, j.jsx)(P.Slot, {
|
|
1518
|
+
scope: n,
|
|
1519
|
+
children: /* @__PURE__ */ (0, j.jsx)(C.div, {
|
|
1520
|
+
...s,
|
|
1521
|
+
"data-orientation": o,
|
|
1522
|
+
ref: l,
|
|
1523
|
+
onKeyDown: r ? void 0 : f
|
|
1524
|
+
})
|
|
1525
|
+
})
|
|
1526
|
+
});
|
|
1527
|
+
}), L = "AccordionItem", [Ut, R] = F(L), Wt = O.forwardRef((e, t) => {
|
|
1528
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = I(L, n), o = It(L, n), s = Nt(n), c = Ge(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
1529
|
+
return /* @__PURE__ */ (0, j.jsx)(Ut, {
|
|
1530
|
+
scope: n,
|
|
1531
|
+
open: l,
|
|
1532
|
+
disabled: u,
|
|
1533
|
+
triggerId: c,
|
|
1534
|
+
children: /* @__PURE__ */ (0, j.jsx)(Et, {
|
|
1535
|
+
"data-orientation": a.orientation,
|
|
1536
|
+
"data-state": Zt(l),
|
|
1537
|
+
...s,
|
|
1538
|
+
...i,
|
|
1539
|
+
ref: t,
|
|
1540
|
+
disabled: u,
|
|
1541
|
+
open: l,
|
|
1542
|
+
onOpenChange: (e) => {
|
|
1543
|
+
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
1544
|
+
}
|
|
1545
|
+
})
|
|
1546
|
+
});
|
|
1547
|
+
});
|
|
1548
|
+
Wt.displayName = L;
|
|
1549
|
+
var Gt = "AccordionHeader", Kt = O.forwardRef((e, t) => {
|
|
1550
|
+
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(Gt, n);
|
|
1551
|
+
return /* @__PURE__ */ (0, j.jsx)(C.h3, {
|
|
1552
|
+
"data-orientation": i.orientation,
|
|
1553
|
+
"data-state": Zt(a.open),
|
|
1554
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
1555
|
+
...r,
|
|
1556
|
+
ref: t
|
|
1557
|
+
});
|
|
1558
|
+
});
|
|
1559
|
+
Kt.displayName = Gt;
|
|
1560
|
+
var qt = "AccordionTrigger", Jt = O.forwardRef((e, t) => {
|
|
1561
|
+
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(qt, n), o = Rt(qt, n), s = Nt(n);
|
|
1562
|
+
return /* @__PURE__ */ (0, j.jsx)(P.ItemSlot, {
|
|
1563
|
+
scope: n,
|
|
1564
|
+
children: /* @__PURE__ */ (0, j.jsx)(Dt, {
|
|
1565
|
+
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
1566
|
+
"data-orientation": i.orientation,
|
|
1567
|
+
id: a.triggerId,
|
|
1568
|
+
...s,
|
|
1569
|
+
...r,
|
|
1570
|
+
ref: t
|
|
1571
|
+
})
|
|
1572
|
+
});
|
|
1573
|
+
});
|
|
1574
|
+
Jt.displayName = qt;
|
|
1575
|
+
var Yt = "AccordionContent", Xt = O.forwardRef((e, t) => {
|
|
1576
|
+
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(Yt, n), o = Nt(n);
|
|
1577
|
+
return /* @__PURE__ */ (0, j.jsx)(Ot, {
|
|
1578
|
+
role: "region",
|
|
1579
|
+
"aria-labelledby": a.triggerId,
|
|
1580
|
+
"data-orientation": i.orientation,
|
|
1581
|
+
...o,
|
|
1582
|
+
...r,
|
|
1583
|
+
ref: t,
|
|
1584
|
+
style: {
|
|
1585
|
+
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
1586
|
+
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
1587
|
+
...e.style
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
});
|
|
1591
|
+
Xt.displayName = Yt;
|
|
1592
|
+
function Zt(e) {
|
|
1593
|
+
return e ? "open" : "closed";
|
|
1594
|
+
}
|
|
1595
|
+
var Qt = Pt, $t = Wt, en = Kt, tn = Jt, nn = Xt, z = "Popover", [rn, an] = We(z, [v]), B = v(), [on, V] = rn(z), sn = (e) => {
|
|
1596
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = B(t), c = O.useRef(null), [l, u] = O.useState(!1), [d, f] = w({
|
|
1597
|
+
prop: r,
|
|
1598
|
+
defaultProp: i ?? !1,
|
|
1599
|
+
onChange: a,
|
|
1600
|
+
caller: z
|
|
1601
|
+
});
|
|
1602
|
+
return /* @__PURE__ */ (0, j.jsx)(te, {
|
|
1603
|
+
...s,
|
|
1604
|
+
children: /* @__PURE__ */ (0, j.jsx)(on, {
|
|
1605
|
+
scope: t,
|
|
1606
|
+
contentId: Ge(),
|
|
1607
|
+
triggerRef: c,
|
|
1608
|
+
open: d,
|
|
1609
|
+
onOpenChange: f,
|
|
1610
|
+
onOpenToggle: O.useCallback(() => f((e) => !e), [f]),
|
|
1611
|
+
hasCustomAnchor: l,
|
|
1612
|
+
onCustomAnchorAdd: O.useCallback(() => u(!0), []),
|
|
1613
|
+
onCustomAnchorRemove: O.useCallback(() => u(!1), []),
|
|
1614
|
+
modal: o,
|
|
1615
|
+
children: n
|
|
1616
|
+
})
|
|
1617
|
+
});
|
|
1618
|
+
};
|
|
1619
|
+
sn.displayName = z;
|
|
1620
|
+
var cn = "PopoverAnchor", ln = O.forwardRef((e, t) => {
|
|
1621
|
+
let { __scopePopover: n, ...r } = e, i = V(cn, n), a = B(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
1622
|
+
return O.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, j.jsx)(x, {
|
|
1623
|
+
...a,
|
|
1624
|
+
...r,
|
|
1625
|
+
ref: t
|
|
1626
|
+
});
|
|
1627
|
+
});
|
|
1628
|
+
ln.displayName = cn;
|
|
1629
|
+
var un = "PopoverTrigger", dn = O.forwardRef((e, t) => {
|
|
1630
|
+
let { __scopePopover: n, ...r } = e, a = V(un, n), o = B(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, j.jsx)(C.button, {
|
|
1631
|
+
type: "button",
|
|
1632
|
+
"aria-haspopup": "dialog",
|
|
1633
|
+
"aria-expanded": a.open,
|
|
1634
|
+
"aria-controls": a.contentId,
|
|
1635
|
+
"data-state": wn(a.open),
|
|
1636
|
+
...r,
|
|
1637
|
+
ref: s,
|
|
1638
|
+
onClick: S(e.onClick, a.onOpenToggle)
|
|
1639
|
+
});
|
|
1640
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0, j.jsx)(x, {
|
|
1641
|
+
asChild: !0,
|
|
1642
|
+
...o,
|
|
1643
|
+
children: c
|
|
1644
|
+
});
|
|
1645
|
+
});
|
|
1646
|
+
dn.displayName = un;
|
|
1647
|
+
var H = "PopoverPortal", [fn, pn] = rn(H, { forceMount: void 0 }), mn = (e) => {
|
|
1648
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = V(H, t);
|
|
1649
|
+
return /* @__PURE__ */ (0, j.jsx)(fn, {
|
|
1650
|
+
scope: t,
|
|
1651
|
+
forceMount: n,
|
|
1652
|
+
children: /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1653
|
+
present: n || a.open,
|
|
1654
|
+
children: /* @__PURE__ */ (0, j.jsx)(He, {
|
|
1655
|
+
asChild: !0,
|
|
1656
|
+
container: i,
|
|
1657
|
+
children: r
|
|
1658
|
+
})
|
|
1659
|
+
})
|
|
1660
|
+
});
|
|
1661
|
+
};
|
|
1662
|
+
mn.displayName = H;
|
|
1663
|
+
var U = "PopoverContent", hn = O.forwardRef((e, t) => {
|
|
1664
|
+
let n = pn(U, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = V(U, e.__scopePopover);
|
|
1665
|
+
return /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1666
|
+
present: r || a.open,
|
|
1667
|
+
children: a.modal ? /* @__PURE__ */ (0, j.jsx)(_n, {
|
|
1668
|
+
...i,
|
|
1669
|
+
ref: t
|
|
1670
|
+
}) : /* @__PURE__ */ (0, j.jsx)(vn, {
|
|
1671
|
+
...i,
|
|
1672
|
+
ref: t
|
|
1673
|
+
})
|
|
1674
|
+
});
|
|
1675
|
+
});
|
|
1676
|
+
hn.displayName = U;
|
|
1677
|
+
var gn = s("PopoverContent.RemoveScroll"), _n = O.forwardRef((e, t) => {
|
|
1678
|
+
let n = V(U, e.__scopePopover), r = O.useRef(null), a = i(t, r), o = O.useRef(!1);
|
|
1679
|
+
return O.useEffect(() => {
|
|
1680
|
+
let e = r.current;
|
|
1681
|
+
if (e) return Be(e);
|
|
1682
|
+
}, []), /* @__PURE__ */ (0, j.jsx)(Ue, {
|
|
1683
|
+
as: gn,
|
|
1684
|
+
allowPinchZoom: !0,
|
|
1685
|
+
children: /* @__PURE__ */ (0, j.jsx)(yn, {
|
|
1686
|
+
...e,
|
|
1687
|
+
ref: a,
|
|
1688
|
+
trapFocus: n.open,
|
|
1689
|
+
disableOutsidePointerEvents: !0,
|
|
1690
|
+
onCloseAutoFocus: S(e.onCloseAutoFocus, (e) => {
|
|
1691
|
+
e.preventDefault(), o.current || n.triggerRef.current?.focus();
|
|
1692
|
+
}),
|
|
1693
|
+
onPointerDownOutside: S(e.onPointerDownOutside, (e) => {
|
|
1694
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
1695
|
+
o.current = r;
|
|
1696
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
1697
|
+
onFocusOutside: S(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
1698
|
+
})
|
|
1699
|
+
});
|
|
1700
|
+
}), vn = O.forwardRef((e, t) => {
|
|
1701
|
+
let n = V(U, e.__scopePopover), r = O.useRef(!1), i = O.useRef(!1);
|
|
1702
|
+
return /* @__PURE__ */ (0, j.jsx)(yn, {
|
|
1703
|
+
...e,
|
|
1704
|
+
ref: t,
|
|
1705
|
+
trapFocus: !1,
|
|
1706
|
+
disableOutsidePointerEvents: !1,
|
|
1707
|
+
onCloseAutoFocus: (t) => {
|
|
1708
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
1709
|
+
},
|
|
1710
|
+
onInteractOutside: (t) => {
|
|
1711
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
1712
|
+
let a = t.target;
|
|
1713
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
}), yn = O.forwardRef((e, t) => {
|
|
1717
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f = V(U, n), p = B(n);
|
|
1718
|
+
return Re(), /* @__PURE__ */ (0, j.jsx)(Ve, {
|
|
1719
|
+
asChild: !0,
|
|
1720
|
+
loop: !0,
|
|
1721
|
+
trapped: r,
|
|
1722
|
+
onMountAutoFocus: i,
|
|
1723
|
+
onUnmountAutoFocus: a,
|
|
1724
|
+
children: /* @__PURE__ */ (0, j.jsx)(ze, {
|
|
1725
|
+
asChild: !0,
|
|
1726
|
+
disableOutsidePointerEvents: o,
|
|
1727
|
+
onInteractOutside: u,
|
|
1728
|
+
onEscapeKeyDown: s,
|
|
1729
|
+
onPointerDownOutside: c,
|
|
1730
|
+
onFocusOutside: l,
|
|
1731
|
+
onDismiss: () => f.onOpenChange(!1),
|
|
1732
|
+
children: /* @__PURE__ */ (0, j.jsx)(b, {
|
|
1733
|
+
"data-state": wn(f.open),
|
|
1734
|
+
role: "dialog",
|
|
1735
|
+
id: f.contentId,
|
|
1736
|
+
...p,
|
|
1737
|
+
...d,
|
|
1738
|
+
ref: t,
|
|
1739
|
+
style: {
|
|
1740
|
+
...d.style,
|
|
1741
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1742
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
1743
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
1744
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1745
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1746
|
+
}
|
|
1747
|
+
})
|
|
1748
|
+
})
|
|
1749
|
+
});
|
|
1750
|
+
}), bn = "PopoverClose", xn = O.forwardRef((e, t) => {
|
|
1751
|
+
let { __scopePopover: n, ...r } = e, i = V(bn, n);
|
|
1752
|
+
return /* @__PURE__ */ (0, j.jsx)(C.button, {
|
|
1753
|
+
type: "button",
|
|
1754
|
+
...r,
|
|
1755
|
+
ref: t,
|
|
1756
|
+
onClick: S(e.onClick, () => i.onOpenChange(!1))
|
|
1757
|
+
});
|
|
1758
|
+
});
|
|
1759
|
+
xn.displayName = bn;
|
|
1760
|
+
var Sn = "PopoverArrow", Cn = O.forwardRef((e, t) => {
|
|
1761
|
+
let { __scopePopover: n, ...r } = e, i = B(n);
|
|
1762
|
+
return /* @__PURE__ */ (0, j.jsx)(_, {
|
|
1763
|
+
...i,
|
|
1764
|
+
...r,
|
|
1765
|
+
ref: t
|
|
1766
|
+
});
|
|
1767
|
+
});
|
|
1768
|
+
Cn.displayName = Sn;
|
|
1769
|
+
function wn(e) {
|
|
1770
|
+
return e ? "open" : "closed";
|
|
1771
|
+
}
|
|
1772
|
+
var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
|
|
1773
|
+
let t = (0, k.c)(16), n, r, i;
|
|
1774
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({href: r, children: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1775
|
+
let a = (0, O.useRef)(null), o;
|
|
1776
|
+
t[4] === r ? o = t[5] : (o = () => {
|
|
1777
|
+
let e = new URL(globalThis.location.href);
|
|
1778
|
+
e.hash = r, globalThis.history.pushState({}, "", e.toString()), globalThis.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
1779
|
+
let t = r.slice(1), n = document.getElementById(t);
|
|
1780
|
+
n && n.scrollIntoView({
|
|
1781
|
+
behavior: "smooth",
|
|
1782
|
+
block: "start"
|
|
1783
|
+
});
|
|
1784
|
+
}, t[4] = r, t[5] = o);
|
|
1785
|
+
let s = o, c;
|
|
1786
|
+
t[6] === s ? c = t[7] : (c = { onPress: () => {
|
|
1787
|
+
s();
|
|
1788
|
+
} }, t[6] = s, t[7] = c);
|
|
1789
|
+
let { pressProps: l } = Ae(c), u;
|
|
1790
|
+
t[8] === s ? u = t[9] : (u = (e) => {
|
|
1791
|
+
e.preventDefault(), s();
|
|
1792
|
+
}, t[8] = s, t[9] = u);
|
|
1793
|
+
let d = u, f;
|
|
1794
|
+
return t[10] !== n || t[11] !== d || t[12] !== r || t[13] !== l || t[14] !== i ? (f = /* @__PURE__ */ (0, j.jsx)("a", {
|
|
1795
|
+
ref: a,
|
|
1796
|
+
href: r,
|
|
1797
|
+
...l,
|
|
1798
|
+
onClick: d,
|
|
1799
|
+
...i,
|
|
1800
|
+
children: n
|
|
1801
|
+
}), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
|
|
1802
|
+
}, Mn = Tn, Nn = Dn, Pn = Ie(On), Fn = An, In = Fe(kn), Ln = O.forwardRef((e, t) => {
|
|
1803
|
+
let n = (0, k.c)(22), i, a, o, s, c, l;
|
|
1804
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6]) : ({className: i, align: o, sideOffset: s, portal: c, scrollable: l, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c, n[6] = l);
|
|
1805
|
+
let u = o === void 0 ? "center" : o, d = s === void 0 ? 4 : s, f = c === void 0 || c, p = l !== void 0 && l, m = p && "overflow-auto", h;
|
|
1806
|
+
n[7] !== i || n[8] !== m ? (h = r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", i, m), n[7] = i, n[8] = m, n[9] = h) : h = n[9];
|
|
1807
|
+
let g = p ? `calc(var(--radix-popover-content-available-height) - ${Me}px)` : void 0, _;
|
|
1808
|
+
n[10] !== a.style || n[11] !== g ? (_ = {
|
|
1809
|
+
...a.style,
|
|
1810
|
+
maxHeight: g
|
|
1811
|
+
}, n[10] = a.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
1812
|
+
let v;
|
|
1813
|
+
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, j.jsx)(Ne, { children: /* @__PURE__ */ (0, j.jsx)(In, {
|
|
1814
|
+
ref: t,
|
|
1815
|
+
align: u,
|
|
1816
|
+
sideOffset: d,
|
|
1817
|
+
className: h,
|
|
1818
|
+
style: _,
|
|
1819
|
+
...a
|
|
1820
|
+
}) }), n[13] = u, n[14] = a, n[15] = t, n[16] = d, n[17] = h, n[18] = _, n[19] = v) : v = n[19];
|
|
1821
|
+
let y = v;
|
|
1822
|
+
if (f) {
|
|
1823
|
+
let e;
|
|
1824
|
+
return n[20] === y ? e = n[21] : (e = /* @__PURE__ */ (0, j.jsx)(Pn, { children: y }), n[20] = y, n[21] = e), e;
|
|
1825
|
+
}
|
|
1826
|
+
return y;
|
|
1827
|
+
});
|
|
1828
|
+
Ln.displayName = kn.displayName;
|
|
1829
|
+
//#endregion
|
|
1830
|
+
//#region src/core/documentation/doc-lookup.ts
|
|
1831
|
+
async function Rn(e) {
|
|
1832
|
+
let t = xe().inOrderIds.at(0);
|
|
1833
|
+
if (t) try {
|
|
1834
|
+
let n = await ye.request({
|
|
1835
|
+
document: e,
|
|
1836
|
+
cellId: t
|
|
1837
|
+
});
|
|
1838
|
+
if (!n || n.options.length === 0) return;
|
|
1839
|
+
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
1840
|
+
a?.completion_info && E.set(me, { documentation: a.completion_info });
|
|
1841
|
+
} catch (t) {
|
|
1842
|
+
n.debug(`Doc lookup failed for "${e}"`, t);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
//#endregion
|
|
1846
|
+
//#region src/core/documentation/DocHoverTarget.tsx
|
|
1847
|
+
var zn = (e) => {
|
|
1848
|
+
let t = (0, k.c)(8), { qualifiedName: n, children: r } = e, i;
|
|
1849
|
+
t[0] === n ? i = t[1] : (i = () => {
|
|
1850
|
+
Rn(n);
|
|
1851
|
+
}, t[0] = n, t[1] = i);
|
|
1852
|
+
let a = ke(i, 100), o;
|
|
1853
|
+
t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
|
|
1854
|
+
let s;
|
|
1855
|
+
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, j.jsx)("span", {
|
|
1856
|
+
onMouseEnter: a,
|
|
1857
|
+
onMouseLeave: o,
|
|
1858
|
+
children: r
|
|
1859
|
+
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
1860
|
+
}, Bn = qe(!1);
|
|
1861
|
+
//#endregion
|
|
1862
|
+
//#region src/core/static/export-context.ts
|
|
1863
|
+
function Vn(e) {
|
|
1864
|
+
if (typeof e != "object" || !e) return !1;
|
|
1865
|
+
let t = e;
|
|
1866
|
+
return !(t.trusted !== !0 || t.notebookCode !== void 0 && typeof t.notebookCode != "string");
|
|
1867
|
+
}
|
|
1868
|
+
function Hn() {
|
|
1869
|
+
let e = window?.__MARIMO_EXPORT_CONTEXT__;
|
|
1870
|
+
return Vn(e) ? e : void 0;
|
|
1871
|
+
}
|
|
1872
|
+
function W() {
|
|
1873
|
+
return Hn()?.trusted === !0;
|
|
1874
|
+
}
|
|
1875
|
+
function Un() {
|
|
1876
|
+
if (E.get(Bn) || W() || E.get(D)) return !0;
|
|
1877
|
+
try {
|
|
1878
|
+
if (de() === "read") return !0;
|
|
1879
|
+
} catch {}
|
|
1880
|
+
return !1;
|
|
1881
|
+
}
|
|
1882
|
+
//#endregion
|
|
1883
|
+
//#region src/plugins/core/sanitize.ts
|
|
1884
|
+
var Wn = qe((e) => {
|
|
1885
|
+
let t = e(Bn), n = e(D);
|
|
1886
|
+
if (t || n || W()) return !1;
|
|
1887
|
+
let r = !0;
|
|
1888
|
+
try {
|
|
1889
|
+
r = de() === "read";
|
|
1890
|
+
} catch {
|
|
1891
|
+
return !0;
|
|
1892
|
+
}
|
|
1893
|
+
return !r;
|
|
1894
|
+
});
|
|
1895
|
+
function Gn() {
|
|
1896
|
+
return T(Wn);
|
|
1897
|
+
}
|
|
1898
|
+
//#endregion
|
|
1899
|
+
//#region src/plugins/core/RenderHTML.tsx
|
|
1900
|
+
var Kn = [], qn = (e) => {
|
|
1901
|
+
if (e instanceof A.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return O.createElement(O.Fragment);
|
|
1902
|
+
}, Jn = (e, t) => {
|
|
1903
|
+
if (t instanceof A.Element && t.name === "body") {
|
|
1904
|
+
if ((0, O.isValidElement)(e) && "props" in e) {
|
|
1905
|
+
let t = e.props.children;
|
|
1906
|
+
return /* @__PURE__ */ (0, j.jsx)(j.Fragment, { children: t });
|
|
1907
|
+
}
|
|
1908
|
+
return;
|
|
1909
|
+
}
|
|
1910
|
+
}, Yn = (e, t) => {
|
|
1911
|
+
if (t instanceof A.Element && t.name === "html") {
|
|
1912
|
+
if ((0, O.isValidElement)(e) && "props" in e) {
|
|
1913
|
+
let t = e.props.children;
|
|
1914
|
+
return /* @__PURE__ */ (0, j.jsx)(j.Fragment, { children: t });
|
|
1915
|
+
}
|
|
1916
|
+
return;
|
|
1917
|
+
}
|
|
1918
|
+
}, Xn = (e) => {
|
|
1919
|
+
if (e instanceof A.Element && e.attribs && e.name === "iframe") {
|
|
1920
|
+
let t = document.createElement("iframe");
|
|
1921
|
+
return Object.entries(e.attribs).forEach(([e, n]) => {
|
|
1922
|
+
e.startsWith("\"") && e.endsWith("\"") && (e = e.slice(1, -1)), t.setAttribute(e, n);
|
|
1923
|
+
}), /* @__PURE__ */ (0, j.jsx)("div", { dangerouslySetInnerHTML: { __html: t.outerHTML } });
|
|
1924
|
+
}
|
|
1925
|
+
}, Zn = (e) => {
|
|
1926
|
+
if (e instanceof A.Element && e.name === "script") {
|
|
1927
|
+
let t = e.attribs.src;
|
|
1928
|
+
if (!t) return;
|
|
1929
|
+
if (!Un()) return n.warn(`[RenderHTML] refusing <script src> in untrusted context: ${t}`), /* @__PURE__ */ (0, j.jsx)(j.Fragment, {});
|
|
1930
|
+
if (![...document.querySelectorAll("script[src]")].some((e) => e.getAttribute("src") === t)) {
|
|
1931
|
+
let e = document.createElement("script");
|
|
1932
|
+
e.src = t, document.head.append(e);
|
|
1933
|
+
}
|
|
1934
|
+
return /* @__PURE__ */ (0, j.jsx)(j.Fragment, {});
|
|
1935
|
+
}
|
|
1936
|
+
}, Qn = (e, t) => {
|
|
1937
|
+
if (t instanceof A.Element && t.name === "a") {
|
|
1938
|
+
let n = t.attribs.href;
|
|
1939
|
+
if (n?.startsWith("#") && !n.startsWith("#code/")) {
|
|
1940
|
+
let r = null;
|
|
1941
|
+
return (0, O.isValidElement)(e) && "props" in e && (r = e.props.children), /* @__PURE__ */ (0, j.jsx)(jn, {
|
|
1942
|
+
href: n,
|
|
1943
|
+
...t.attribs,
|
|
1944
|
+
children: r
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
}, $n = (e, t, n) => {
|
|
1949
|
+
if (t instanceof A.Element && t.name === "div" && t.attribs?.class?.includes("codehilite")) return /* @__PURE__ */ (0, j.jsx)(ir, { children: e }, n);
|
|
1950
|
+
}, er = (e, t, n) => {
|
|
1951
|
+
if (!(t instanceof A.Element) || t.name !== "img") return;
|
|
1952
|
+
let r = t.attribs?.src;
|
|
1953
|
+
if (!(!r || !(0, O.isValidElement)(e)) && !/^data:/i.test(r)) return (0, O.cloneElement)(e, { key: `${r}-${n}` });
|
|
1954
|
+
}, tr = (e, t, n) => {
|
|
1955
|
+
if (!(t instanceof A.Element) || t.name !== "input" || t.attribs?.type !== "checkbox" || !(0, O.isValidElement)(e)) return;
|
|
1956
|
+
let r = "checked" in t.attribs;
|
|
1957
|
+
return (0, O.cloneElement)(e, { key: `checkbox-${n}-${r}` });
|
|
1958
|
+
}, nr = (e, t) => {
|
|
1959
|
+
if (t instanceof A.Element && t.attribs?.["data-marimo-doc"]) {
|
|
1960
|
+
let n = t.attribs["data-marimo-doc"];
|
|
1961
|
+
return /* @__PURE__ */ (0, j.jsx)(zn, {
|
|
1962
|
+
qualifiedName: n,
|
|
1963
|
+
children: e
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
}, rr = (e, t) => {
|
|
1967
|
+
if (t instanceof A.Element && t.attribs?.["data-tooltip"]) {
|
|
1968
|
+
if ((t.name?.toLowerCase() ?? "").startsWith("marimo-")) return;
|
|
1969
|
+
let n = t.attribs["data-tooltip"].replace(/^[\r\n]+|[\r\n]+$/g, "");
|
|
1970
|
+
return /* @__PURE__ */ (0, j.jsx)(ee, {
|
|
1971
|
+
content: n.includes("\n") ? /* @__PURE__ */ (0, j.jsx)("span", {
|
|
1972
|
+
className: "whitespace-pre-wrap",
|
|
1973
|
+
children: n.split(/\r?\n/).map((e, t) => /* @__PURE__ */ (0, j.jsxs)(O.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, j.jsx)("br", {}), e] }, t))
|
|
1974
|
+
}) : n,
|
|
1975
|
+
children: e
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
}, ir = (e) => {
|
|
1979
|
+
let t = (0, k.c)(3), { children: n } = e, r = (0, O.useRef)(null), i;
|
|
1980
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, j.jsx)("div", {
|
|
1981
|
+
className: "absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
1982
|
+
children: /* @__PURE__ */ (0, j.jsx)(d, {
|
|
1983
|
+
tooltip: !1,
|
|
1984
|
+
className: "p-1",
|
|
1985
|
+
value: () => {
|
|
1986
|
+
let e = r.current?.firstChild;
|
|
1987
|
+
return e && e.textContent || "";
|
|
1988
|
+
}
|
|
1989
|
+
})
|
|
1990
|
+
}), t[0] = i) : i = t[0];
|
|
1991
|
+
let a;
|
|
1992
|
+
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
1993
|
+
className: "relative group codehilite-wrapper",
|
|
1994
|
+
ref: r,
|
|
1995
|
+
children: [n, i]
|
|
1996
|
+
}), t[1] = n, t[2] = a), a;
|
|
1997
|
+
}, ar = ({ html: e, additionalReplacements: t = Kn, alwaysSanitizeHtml: n = !0 }) => /* @__PURE__ */ (0, j.jsx)(or, {
|
|
1998
|
+
html: e,
|
|
1999
|
+
alwaysSanitizeHtml: n,
|
|
2000
|
+
additionalReplacements: t
|
|
2001
|
+
}), or = (e) => {
|
|
2002
|
+
let t = (0, k.c)(5), { html: n, additionalReplacements: r, alwaysSanitizeHtml: i } = e, a = r === void 0 ? Kn : r, o = Gn(), s;
|
|
2003
|
+
bb0: {
|
|
2004
|
+
if (i || o) {
|
|
2005
|
+
let e;
|
|
2006
|
+
t[0] === n ? e = t[1] : (e = ae(n), t[0] = n, t[1] = e), s = e;
|
|
2007
|
+
break bb0;
|
|
2008
|
+
}
|
|
2009
|
+
s = n;
|
|
2010
|
+
}
|
|
2011
|
+
let c = s, l;
|
|
2012
|
+
return t[2] !== a || t[3] !== c ? (l = sr({
|
|
2013
|
+
html: c,
|
|
2014
|
+
additionalReplacements: a
|
|
2015
|
+
}), t[2] = a, t[3] = c, t[4] = l) : l = t[4], l;
|
|
2016
|
+
};
|
|
2017
|
+
function sr({ html: e, additionalReplacements: t = Kn }) {
|
|
2018
|
+
let n = [
|
|
2019
|
+
qn,
|
|
2020
|
+
Xn,
|
|
2021
|
+
Zn,
|
|
2022
|
+
...t
|
|
2023
|
+
], r = [
|
|
2024
|
+
$n,
|
|
2025
|
+
Qn,
|
|
2026
|
+
nr,
|
|
2027
|
+
rr,
|
|
2028
|
+
Jn,
|
|
2029
|
+
Yn
|
|
2030
|
+
], i = [er, tr];
|
|
2031
|
+
return ut(e, {
|
|
2032
|
+
replace: (e, t) => {
|
|
2033
|
+
for (let r of n) {
|
|
2034
|
+
let n = r(e, t);
|
|
2035
|
+
if (n) return n;
|
|
2036
|
+
}
|
|
2037
|
+
return e;
|
|
2038
|
+
},
|
|
2039
|
+
transform: (e, t, n) => {
|
|
2040
|
+
let a = e;
|
|
2041
|
+
for (let e of r) {
|
|
2042
|
+
let r = e(a, t, n);
|
|
2043
|
+
if (r) {
|
|
2044
|
+
a = r;
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
for (let e of i) {
|
|
2049
|
+
let r = e(a, t, n);
|
|
2050
|
+
r && (a = r);
|
|
2051
|
+
}
|
|
2052
|
+
return a;
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
//#endregion
|
|
2057
|
+
//#region src/utils/json/base64.ts
|
|
2058
|
+
function cr(e, t) {
|
|
2059
|
+
return `data:${t};base64,${e}`;
|
|
2060
|
+
}
|
|
2061
|
+
function lr(e) {
|
|
2062
|
+
return e.startsWith("data:") && e.includes(";base64,");
|
|
2063
|
+
}
|
|
2064
|
+
function ur(e) {
|
|
2065
|
+
return e.split(",")[1];
|
|
2066
|
+
}
|
|
2067
|
+
function dr(e) {
|
|
2068
|
+
let t = globalThis.atob(e), n = t.length, r = new Uint8Array(n);
|
|
2069
|
+
for (let e = 0; e < n; e++) r[e] = t.charCodeAt(e);
|
|
2070
|
+
return r;
|
|
2071
|
+
}
|
|
2072
|
+
var fr = Uint8Array.fromBase64 ?? dr;
|
|
2073
|
+
function pr(e) {
|
|
2074
|
+
let t = fr(e);
|
|
2075
|
+
return new DataView(t.buffer);
|
|
2076
|
+
}
|
|
2077
|
+
function mr(e) {
|
|
2078
|
+
let t = "", n = e.length;
|
|
2079
|
+
for (let r = 0; r < n; r++) t += String.fromCharCode(e[r]);
|
|
2080
|
+
return globalThis.btoa(t);
|
|
2081
|
+
}
|
|
2082
|
+
var hr = "toBase64" in Uint8Array.prototype ? (e) => e.toBase64() : mr;
|
|
2083
|
+
function gr(e) {
|
|
2084
|
+
return hr(new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
|
|
2085
|
+
}
|
|
2086
|
+
function _r(e) {
|
|
2087
|
+
return (e.buffers ?? []).map(pr);
|
|
2088
|
+
}
|
|
2089
|
+
//#endregion
|
|
2090
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-icons@1.3.2_react@19.2.8/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js
|
|
2091
|
+
function G(e, t) {
|
|
2092
|
+
if (e == null) return {};
|
|
2093
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
2094
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2095
|
+
return n;
|
|
2096
|
+
}
|
|
2097
|
+
var vr = ["color"], yr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2098
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, vr);
|
|
2099
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2100
|
+
width: "15",
|
|
2101
|
+
height: "15",
|
|
2102
|
+
viewBox: "0 0 15 15",
|
|
2103
|
+
fill: "none",
|
|
2104
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2105
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2106
|
+
d: "M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",
|
|
2107
|
+
fill: r,
|
|
2108
|
+
fillRule: "evenodd",
|
|
2109
|
+
clipRule: "evenodd"
|
|
2110
|
+
}), (0, O.createElement)("rect", {
|
|
2111
|
+
x: "7",
|
|
2112
|
+
y: "5",
|
|
2113
|
+
width: "1",
|
|
2114
|
+
height: "1",
|
|
2115
|
+
rx: ".5",
|
|
2116
|
+
fill: r
|
|
2117
|
+
}), (0, O.createElement)("rect", {
|
|
2118
|
+
x: "7",
|
|
2119
|
+
y: "3",
|
|
2120
|
+
width: "1",
|
|
2121
|
+
height: "1",
|
|
2122
|
+
rx: ".5",
|
|
2123
|
+
fill: r
|
|
2124
|
+
}), (0, O.createElement)("rect", {
|
|
2125
|
+
x: "7",
|
|
2126
|
+
y: "7",
|
|
2127
|
+
width: "1",
|
|
2128
|
+
height: "1",
|
|
2129
|
+
rx: ".5",
|
|
2130
|
+
fill: r
|
|
2131
|
+
}), (0, O.createElement)("rect", {
|
|
2132
|
+
x: "5",
|
|
2133
|
+
y: "7",
|
|
2134
|
+
width: "1",
|
|
2135
|
+
height: "1",
|
|
2136
|
+
rx: ".5",
|
|
2137
|
+
fill: r
|
|
2138
|
+
}), (0, O.createElement)("rect", {
|
|
2139
|
+
x: "3",
|
|
2140
|
+
y: "7",
|
|
2141
|
+
width: "1",
|
|
2142
|
+
height: "1",
|
|
2143
|
+
rx: ".5",
|
|
2144
|
+
fill: r
|
|
2145
|
+
}), (0, O.createElement)("rect", {
|
|
2146
|
+
x: "9",
|
|
2147
|
+
y: "7",
|
|
2148
|
+
width: "1",
|
|
2149
|
+
height: "1",
|
|
2150
|
+
rx: ".5",
|
|
2151
|
+
fill: r
|
|
2152
|
+
}), (0, O.createElement)("rect", {
|
|
2153
|
+
x: "11",
|
|
2154
|
+
y: "7",
|
|
2155
|
+
width: "1",
|
|
2156
|
+
height: "1",
|
|
2157
|
+
rx: ".5",
|
|
2158
|
+
fill: r
|
|
2159
|
+
}), (0, O.createElement)("rect", {
|
|
2160
|
+
x: "7",
|
|
2161
|
+
y: "9",
|
|
2162
|
+
width: "1",
|
|
2163
|
+
height: "1",
|
|
2164
|
+
rx: ".5",
|
|
2165
|
+
fill: r
|
|
2166
|
+
}), (0, O.createElement)("rect", {
|
|
2167
|
+
x: "7",
|
|
2168
|
+
y: "11",
|
|
2169
|
+
width: "1",
|
|
2170
|
+
height: "1",
|
|
2171
|
+
rx: ".5",
|
|
2172
|
+
fill: r
|
|
2173
|
+
}));
|
|
2174
|
+
}), br = ["color"], xr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2175
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, br);
|
|
2176
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2177
|
+
width: "15",
|
|
2178
|
+
height: "15",
|
|
2179
|
+
viewBox: "0 0 15 15",
|
|
2180
|
+
fill: "none",
|
|
2181
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2182
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2183
|
+
d: "M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",
|
|
2184
|
+
fill: r,
|
|
2185
|
+
fillRule: "evenodd",
|
|
2186
|
+
clipRule: "evenodd"
|
|
2187
|
+
}));
|
|
2188
|
+
}), Sr = ["color"], Cr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2189
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, Sr);
|
|
2190
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2191
|
+
width: "15",
|
|
2192
|
+
height: "15",
|
|
2193
|
+
viewBox: "0 0 15 15",
|
|
2194
|
+
fill: "none",
|
|
2195
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2196
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2197
|
+
d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
|
|
2198
|
+
fill: r,
|
|
2199
|
+
fillRule: "evenodd",
|
|
2200
|
+
clipRule: "evenodd"
|
|
2201
|
+
}));
|
|
2202
|
+
}), wr = ["color"], Tr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2203
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, wr);
|
|
2204
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2205
|
+
width: "15",
|
|
2206
|
+
height: "15",
|
|
2207
|
+
viewBox: "0 0 15 15",
|
|
2208
|
+
fill: "none",
|
|
2209
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2210
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2211
|
+
d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
|
|
2212
|
+
fill: r,
|
|
2213
|
+
fillRule: "evenodd",
|
|
2214
|
+
clipRule: "evenodd"
|
|
2215
|
+
}));
|
|
2216
|
+
}), Er = ["color"], Dr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2217
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, Er);
|
|
2218
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2219
|
+
width: "15",
|
|
2220
|
+
height: "15",
|
|
2221
|
+
viewBox: "0 0 15 15",
|
|
2222
|
+
fill: "none",
|
|
2223
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2224
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2225
|
+
d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
|
|
2226
|
+
fill: r,
|
|
2227
|
+
fillRule: "evenodd",
|
|
2228
|
+
clipRule: "evenodd"
|
|
2229
|
+
}));
|
|
2230
|
+
}), Or = ["color"], kr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2231
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, Or);
|
|
2232
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2233
|
+
width: "15",
|
|
2234
|
+
height: "15",
|
|
2235
|
+
viewBox: "0 0 15 15",
|
|
2236
|
+
fill: "none",
|
|
2237
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2238
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2239
|
+
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
2240
|
+
fill: r
|
|
2241
|
+
}));
|
|
2242
|
+
}), Ar = ["color"], jr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2243
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, Ar);
|
|
2244
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2245
|
+
width: "15",
|
|
2246
|
+
height: "15",
|
|
2247
|
+
viewBox: "0 0 15 15",
|
|
2248
|
+
fill: "none",
|
|
2249
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2250
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2251
|
+
d: "M2.05005 13.5C2.05005 13.7485 2.25152 13.95 2.50005 13.95C2.74858 13.95 2.95005 13.7485 2.95005 13.5L2.95005 1.49995C2.95005 1.25142 2.74858 1.04995 2.50005 1.04995C2.25152 1.04995 2.05005 1.25142 2.05005 1.49995L2.05005 13.5ZM8.4317 11.0681C8.60743 11.2439 8.89236 11.2439 9.06809 11.0681C9.24383 10.8924 9.24383 10.6075 9.06809 10.4317L6.58629 7.94993L14.5 7.94993C14.7485 7.94993 14.95 7.74846 14.95 7.49993C14.95 7.2514 14.7485 7.04993 14.5 7.04993L6.58629 7.04993L9.06809 4.56813C9.24383 4.39239 9.24383 4.10746 9.06809 3.93173C8.89236 3.75599 8.60743 3.75599 8.4317 3.93173L5.1817 7.18173C5.00596 7.35746 5.00596 7.64239 5.1817 7.81812L8.4317 11.0681Z",
|
|
2252
|
+
fill: r,
|
|
2253
|
+
fillRule: "evenodd",
|
|
2254
|
+
clipRule: "evenodd"
|
|
2255
|
+
}));
|
|
2256
|
+
}), Mr = ["color"], Nr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
2257
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = G(e, Mr);
|
|
2258
|
+
return (0, O.createElement)("svg", Object.assign({
|
|
2259
|
+
width: "15",
|
|
2260
|
+
height: "15",
|
|
2261
|
+
viewBox: "0 0 15 15",
|
|
2262
|
+
fill: "none",
|
|
2263
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2264
|
+
}, i, { ref: t }), (0, O.createElement)("path", {
|
|
2265
|
+
d: "M12.95 1.50005C12.95 1.25152 12.7485 1.05005 12.5 1.05005C12.2514 1.05005 12.05 1.25152 12.05 1.50005L12.05 13.5C12.05 13.7486 12.2514 13.95 12.5 13.95C12.7485 13.95 12.95 13.7486 12.95 13.5L12.95 1.50005ZM6.5683 3.93188C6.39257 3.75614 6.10764 3.75614 5.93191 3.93188C5.75617 4.10761 5.75617 4.39254 5.93191 4.56827L8.41371 7.05007L0.499984 7.05007C0.251456 7.05007 0.0499847 7.25155 0.0499847 7.50007C0.0499846 7.7486 0.251457 7.95007 0.499984 7.95007L8.41371 7.95007L5.93191 10.4319C5.75617 10.6076 5.75617 10.8925 5.93191 11.0683C6.10764 11.244 6.39257 11.244 6.56831 11.0683L9.8183 7.81827C9.99404 7.64254 9.99404 7.35761 9.8183 7.18188L6.5683 3.93188Z",
|
|
2266
|
+
fill: r,
|
|
2267
|
+
fillRule: "evenodd",
|
|
2268
|
+
clipRule: "evenodd"
|
|
2269
|
+
}));
|
|
2270
|
+
}), Pr = Qt, Fr = O.forwardRef((e, t) => {
|
|
2271
|
+
let n = (0, k.c)(9), i, a;
|
|
2272
|
+
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
2273
|
+
let o;
|
|
2274
|
+
n[3] === i ? o = n[4] : (o = r("border-b", i), n[3] = i, n[4] = o);
|
|
2275
|
+
let s;
|
|
2276
|
+
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, j.jsx)($t, {
|
|
2277
|
+
ref: t,
|
|
2278
|
+
className: o,
|
|
2279
|
+
...a
|
|
2280
|
+
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
2281
|
+
});
|
|
2282
|
+
Fr.displayName = "AccordionItem";
|
|
2283
|
+
var Ir = O.forwardRef((e, t) => {
|
|
2284
|
+
let n = (0, k.c)(12), i, a, o;
|
|
2285
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({className: a, children: i, ...o} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
2286
|
+
let s;
|
|
2287
|
+
n[4] === a ? s = n[5] : (s = r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start", a), n[4] = a, n[5] = s);
|
|
2288
|
+
let c;
|
|
2289
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(Ee, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
|
|
2290
|
+
let l;
|
|
2291
|
+
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, j.jsx)(en, {
|
|
2292
|
+
className: "flex",
|
|
2293
|
+
children: /* @__PURE__ */ (0, j.jsxs)(tn, {
|
|
2294
|
+
ref: t,
|
|
2295
|
+
className: s,
|
|
2296
|
+
...o,
|
|
2297
|
+
children: [i, c]
|
|
2298
|
+
})
|
|
2299
|
+
}), n[7] = i, n[8] = o, n[9] = t, n[10] = s, n[11] = l) : l = n[11], l;
|
|
2300
|
+
});
|
|
2301
|
+
Ir.displayName = tn.displayName;
|
|
2302
|
+
var Lr = O.forwardRef((e, t) => {
|
|
2303
|
+
let n = (0, k.c)(17), i, a, o, s;
|
|
2304
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({className: a, children: i, wrapperClassName: s, ...o} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
2305
|
+
let c;
|
|
2306
|
+
n[5] === a ? c = n[6] : (c = r("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", a), n[5] = a, n[6] = c);
|
|
2307
|
+
let l;
|
|
2308
|
+
n[7] === s ? l = n[8] : (l = r("pb-4 pt-0", s), n[7] = s, n[8] = l);
|
|
2309
|
+
let u;
|
|
2310
|
+
n[9] !== i || n[10] !== l ? (u = /* @__PURE__ */ (0, j.jsx)("div", {
|
|
2311
|
+
className: l,
|
|
2312
|
+
children: i
|
|
2313
|
+
}), n[9] = i, n[10] = l, n[11] = u) : u = n[11];
|
|
2314
|
+
let d;
|
|
2315
|
+
return n[12] !== o || n[13] !== t || n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ (0, j.jsx)(nn, {
|
|
2316
|
+
ref: t,
|
|
2317
|
+
className: c,
|
|
2318
|
+
...o,
|
|
2319
|
+
children: u
|
|
2320
|
+
}), n[12] = o, n[13] = t, n[14] = c, n[15] = u, n[16] = d) : d = n[16], d;
|
|
2321
|
+
});
|
|
2322
|
+
Lr.displayName = nn.displayName;
|
|
2323
|
+
//#endregion
|
|
2324
|
+
//#region src/utils/multi-map.ts
|
|
2325
|
+
var Rr = /* @__PURE__ */ e(we(), 1), zr = class {
|
|
2326
|
+
map = /* @__PURE__ */ new Map();
|
|
2327
|
+
get(e) {
|
|
2328
|
+
return this.map.get(e) ?? [];
|
|
2329
|
+
}
|
|
2330
|
+
set(e, t) {
|
|
2331
|
+
this.map.set(e, t);
|
|
2332
|
+
}
|
|
2333
|
+
add(e, t) {
|
|
2334
|
+
this.map.has(e) ? this.map.get(e).push(t) : this.map.set(e, [t]);
|
|
2335
|
+
}
|
|
2336
|
+
has(e) {
|
|
2337
|
+
return this.map.has(e);
|
|
2338
|
+
}
|
|
2339
|
+
delete(e) {
|
|
2340
|
+
return this.map.delete(e);
|
|
2341
|
+
}
|
|
2342
|
+
clear() {
|
|
2343
|
+
this.map.clear();
|
|
2344
|
+
}
|
|
2345
|
+
keys() {
|
|
2346
|
+
return this.map.keys();
|
|
2347
|
+
}
|
|
2348
|
+
values() {
|
|
2349
|
+
return this.map.values();
|
|
2350
|
+
}
|
|
2351
|
+
entries() {
|
|
2352
|
+
return this.map.entries();
|
|
2353
|
+
}
|
|
2354
|
+
forEach(e) {
|
|
2355
|
+
this.map.forEach(e);
|
|
2356
|
+
}
|
|
2357
|
+
flatValues() {
|
|
2358
|
+
let e = [];
|
|
2359
|
+
for (let t of this.map.values()) e.push(...t);
|
|
2360
|
+
return e;
|
|
2361
|
+
}
|
|
2362
|
+
get size() {
|
|
2363
|
+
return this.map.size;
|
|
2364
|
+
}
|
|
2365
|
+
};
|
|
2366
|
+
//#endregion
|
|
2367
|
+
//#region src/core/ai/context/registry.ts
|
|
2368
|
+
function Br(e) {
|
|
2369
|
+
let t = e.indexOf("://");
|
|
2370
|
+
if (t !== -1) return e.slice(0, t);
|
|
2371
|
+
}
|
|
2372
|
+
var Vr = class {
|
|
2373
|
+
async getAttachments(e) {
|
|
2374
|
+
return [];
|
|
2375
|
+
}
|
|
2376
|
+
asURI(e) {
|
|
2377
|
+
return `${this.contextType}://${e}`;
|
|
2378
|
+
}
|
|
2379
|
+
parseContextIds(e) {
|
|
2380
|
+
let t = RegExp(`${this.mentionPrefix}([\\w-]+):\\/\\/([\\w./-]+)`, "g"), n = [...e.matchAll(t)], r = (e) => e.slice(1), i = n.filter(([, e]) => e === this.contextType).map(([e]) => r(e));
|
|
2381
|
+
return [...new Set(i)];
|
|
2382
|
+
}
|
|
2383
|
+
createBasicCompletion(e, t) {
|
|
2384
|
+
return {
|
|
2385
|
+
label: `${this.mentionPrefix}${e.uri.split("://")[1]}`,
|
|
2386
|
+
displayLabel: e.name,
|
|
2387
|
+
detail: t?.detail || e.description,
|
|
2388
|
+
boost: t?.boost || 1,
|
|
2389
|
+
type: t?.type || this.contextType,
|
|
2390
|
+
apply: `${this.mentionPrefix}${e.uri}`,
|
|
2391
|
+
section: t?.section || this.title
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
}, Hr = class {
|
|
2395
|
+
providers = /* @__PURE__ */ new Set();
|
|
2396
|
+
register(e) {
|
|
2397
|
+
return this.providers.add(e), this;
|
|
2398
|
+
}
|
|
2399
|
+
getProviders() {
|
|
2400
|
+
return this.providers;
|
|
2401
|
+
}
|
|
2402
|
+
getProvider(e) {
|
|
2403
|
+
return [...this.providers].find((t) => t.contextType === e);
|
|
2404
|
+
}
|
|
2405
|
+
getAllItems() {
|
|
2406
|
+
return [...this.providers].flatMap((e) => e.getItems());
|
|
2407
|
+
}
|
|
2408
|
+
parseAllContextIds(e) {
|
|
2409
|
+
return [...this.providers].flatMap((t) => t.parseContextIds(e));
|
|
2410
|
+
}
|
|
2411
|
+
findProviderForUri(e) {
|
|
2412
|
+
let t = Br(e);
|
|
2413
|
+
if (t) return [...this.providers].find((n) => n.contextType === t && n.getItems().some((t) => t.uri === e));
|
|
2414
|
+
}
|
|
2415
|
+
resolveItems(e) {
|
|
2416
|
+
if (e.length === 0) return [];
|
|
2417
|
+
let t = new zr();
|
|
2418
|
+
for (let n of e) {
|
|
2419
|
+
let e = Br(n);
|
|
2420
|
+
e && t.add(e, n);
|
|
2421
|
+
}
|
|
2422
|
+
let n = /* @__PURE__ */ new Map();
|
|
2423
|
+
for (let [e, r] of t.entries()) {
|
|
2424
|
+
let t = [...this.providers].filter((t) => t.contextType === e);
|
|
2425
|
+
for (let e of t) {
|
|
2426
|
+
let t = new Map(e.getItems().map((e) => [e.uri, e]));
|
|
2427
|
+
for (let e of r) {
|
|
2428
|
+
let r = t.get(e);
|
|
2429
|
+
r && n.set(e, r);
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
let r = [];
|
|
2434
|
+
for (let t of e) {
|
|
2435
|
+
let e = n.get(t);
|
|
2436
|
+
e && r.push(e);
|
|
2437
|
+
}
|
|
2438
|
+
return r;
|
|
2439
|
+
}
|
|
2440
|
+
getContextInfo(e) {
|
|
2441
|
+
return this.resolveItems(e);
|
|
2442
|
+
}
|
|
2443
|
+
formatContextForAI(e) {
|
|
2444
|
+
let t = this.resolveItems(e);
|
|
2445
|
+
return t.length === 0 ? "" : t.map((e) => this.findProviderForUri(e.uri)?.formatContext(e) || "").join("\n\n");
|
|
2446
|
+
}
|
|
2447
|
+
async getAttachmentsForContext(e) {
|
|
2448
|
+
let t = this.resolveItems(e);
|
|
2449
|
+
if (t.length === 0) return [];
|
|
2450
|
+
let r = new zr();
|
|
2451
|
+
for (let e of t) {
|
|
2452
|
+
let t = this.findProviderForUri(e.uri);
|
|
2453
|
+
t && r.add(t, e);
|
|
2454
|
+
}
|
|
2455
|
+
let i = [...r.entries()].map(async ([e, t]) => {
|
|
2456
|
+
try {
|
|
2457
|
+
return await e.getAttachments(t);
|
|
2458
|
+
} catch (e) {
|
|
2459
|
+
return n.error("Error getting attachments from provider", e), [];
|
|
2460
|
+
}
|
|
2461
|
+
});
|
|
2462
|
+
return (await Promise.all(i)).flat();
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
le([ve()], Hr.prototype, "getAllItems", null);
|
|
2466
|
+
//#endregion
|
|
2467
|
+
//#region src/core/ai/context/utils.ts
|
|
2468
|
+
function Ur(e) {
|
|
2469
|
+
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
2470
|
+
}
|
|
2471
|
+
function Wr(e) {
|
|
2472
|
+
let { type: t, data: n, details: r } = e, i = `<${t}`;
|
|
2473
|
+
for (let [e, t] of Object.entries(n)) if (t !== void 0) {
|
|
2474
|
+
let n = Ur(typeof t == "object" && t ? JSON.stringify(t) : String(t));
|
|
2475
|
+
i += ` ${e}="${n}"`;
|
|
2476
|
+
}
|
|
2477
|
+
return i += ">", r && (i += Ur(r)), i += `</${t}>`, i;
|
|
2478
|
+
}
|
|
2479
|
+
//#endregion
|
|
2480
|
+
//#region src/core/ai/context/providers/common.ts
|
|
2481
|
+
var Gr = {
|
|
2482
|
+
LOCAL_TABLE: 7,
|
|
2483
|
+
REMOTE_TABLE: 5,
|
|
2484
|
+
HIGH: 4,
|
|
2485
|
+
MEDIUM: 3,
|
|
2486
|
+
CELL_OUTPUT: 2,
|
|
2487
|
+
LOW: 2
|
|
2488
|
+
}, Kr = {
|
|
2489
|
+
ERROR: {
|
|
2490
|
+
name: "Error",
|
|
2491
|
+
rank: 1
|
|
2492
|
+
},
|
|
2493
|
+
TABLE: {
|
|
2494
|
+
name: "Table",
|
|
2495
|
+
rank: 2
|
|
2496
|
+
},
|
|
2497
|
+
DATA_SOURCES: {
|
|
2498
|
+
name: "Data Sources",
|
|
2499
|
+
rank: 3
|
|
2500
|
+
},
|
|
2501
|
+
VARIABLE: {
|
|
2502
|
+
name: "Variable",
|
|
2503
|
+
rank: 4
|
|
2504
|
+
},
|
|
2505
|
+
CELL_OUTPUT: {
|
|
2506
|
+
name: "Cell Output",
|
|
2507
|
+
rank: 5
|
|
2508
|
+
},
|
|
2509
|
+
FILE: {
|
|
2510
|
+
name: "File",
|
|
2511
|
+
rank: 6
|
|
2512
|
+
}
|
|
2513
|
+
}, qr = "datasource", Jr = class extends Vr {
|
|
2514
|
+
title = "Datasource";
|
|
2515
|
+
mentionPrefix = "@";
|
|
2516
|
+
contextType = qr;
|
|
2517
|
+
connectionsMap;
|
|
2518
|
+
dataframes;
|
|
2519
|
+
constructor(e, t) {
|
|
2520
|
+
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => Ce(e) === "dataframe");
|
|
2521
|
+
}
|
|
2522
|
+
getItems() {
|
|
2523
|
+
return [...this.connectionsMap.values()].map((e) => {
|
|
2524
|
+
let t = "Database schema.", n = { connection: e };
|
|
2525
|
+
return oe.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
|
|
2526
|
+
uri: this.asURI(e.name),
|
|
2527
|
+
name: e.name,
|
|
2528
|
+
description: t,
|
|
2529
|
+
type: this.contextType,
|
|
2530
|
+
data: n
|
|
2531
|
+
};
|
|
2532
|
+
}).filter(Boolean);
|
|
2533
|
+
}
|
|
2534
|
+
formatContext(e) {
|
|
2535
|
+
let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
|
|
2536
|
+
return oe.has(n) || (o = {
|
|
2537
|
+
...a,
|
|
2538
|
+
engine_name: n
|
|
2539
|
+
}), Wr({
|
|
2540
|
+
type: this.contextType,
|
|
2541
|
+
data: {
|
|
2542
|
+
connection: o,
|
|
2543
|
+
tables: t.tables
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
formatCompletion(e) {
|
|
2548
|
+
let t = e.data, n = t.connection, r = t.tables, i = n.name;
|
|
2549
|
+
return oe.has(n.name) && (i = "In-Memory"), {
|
|
2550
|
+
label: `@${i}`,
|
|
2551
|
+
displayLabel: i,
|
|
2552
|
+
detail: he(n.dialect),
|
|
2553
|
+
boost: Gr.MEDIUM,
|
|
2554
|
+
type: this.contextType,
|
|
2555
|
+
section: Kr.DATA_SOURCES,
|
|
2556
|
+
info: () => {
|
|
2557
|
+
let e = document.createElement("div");
|
|
2558
|
+
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Rr.createRoot)(e).render(_e(n, r)), e;
|
|
2559
|
+
}
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
};
|
|
2563
|
+
function Yr(e, t) {
|
|
2564
|
+
let n = t.get(Se(e))?.code;
|
|
2565
|
+
if (!n || n.trim() === "") return null;
|
|
2566
|
+
let [r, i, a] = ce.sql.transformIn(n), o = t.get(re).connectionsMap.get(a.engine);
|
|
2567
|
+
return o ? `@${qr}://${o.name}` : null;
|
|
2568
|
+
}
|
|
2569
|
+
function Xr(e, t) {
|
|
2570
|
+
let n = Yr(e, t);
|
|
2571
|
+
if (!n) return null;
|
|
2572
|
+
let r = t.get(re).connectionsMap, i = new Jr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
|
|
2573
|
+
return o ? i.formatContext(o) : null;
|
|
2574
|
+
}
|
|
2575
|
+
//#endregion
|
|
2576
|
+
//#region src/core/cells/outputs.ts
|
|
2577
|
+
var Zr = {}, Qr = {};
|
|
2578
|
+
function $r(e) {
|
|
2579
|
+
let t = (0, k.c)(16), { mode: n } = T(be), { updateCellConfig: r } = ge(), i;
|
|
2580
|
+
t[0] === e ? i = t[1] : (i = pe(Se(e), ti, Object.is), t[0] = e, t[1] = i);
|
|
2581
|
+
let a = T(i), o;
|
|
2582
|
+
t[2] !== e || t[3] !== a ? (o = () => Zr[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
|
|
2583
|
+
let [s, c] = (0, O.useState)(o), l, u;
|
|
2584
|
+
t[5] !== e || t[6] !== s ? (l = () => {
|
|
2585
|
+
Zr[e] = s;
|
|
2586
|
+
}, u = [e, s], t[5] = e, t[6] = s, t[7] = l, t[8] = u) : (l = t[7], u = t[8]), (0, O.useEffect)(l, u);
|
|
2587
|
+
let d = n === "edit", f = d ? a : s, p;
|
|
2588
|
+
t[9] !== e || t[10] !== d || t[11] !== r ? (p = (t) => {
|
|
2589
|
+
if (c(t), !d) return;
|
|
2590
|
+
let n = { expand_output: t };
|
|
2591
|
+
r({
|
|
2592
|
+
cellId: e,
|
|
2593
|
+
config: n
|
|
2594
|
+
}), ie().saveCellConfig({ configs: { [e]: n } }).catch(ei);
|
|
2595
|
+
}, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
|
|
2596
|
+
let m = Ke(p), h;
|
|
2597
|
+
return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
|
|
2598
|
+
}
|
|
2599
|
+
function ei(e) {
|
|
2600
|
+
n.error("Failed to save expand_output config", e);
|
|
2601
|
+
}
|
|
2602
|
+
function ti(e) {
|
|
2603
|
+
return e?.config.expand_output ?? !1;
|
|
2604
|
+
}
|
|
2605
|
+
function ni(e) {
|
|
2606
|
+
let t = (0, k.c)(6), [n, r] = (0, O.useState)(Qr[e] ?? !1), i, a;
|
|
2607
|
+
t[0] !== e || t[1] !== n ? (i = () => {
|
|
2608
|
+
Qr[e] = n;
|
|
2609
|
+
}, a = [e, n], t[0] = e, t[1] = n, t[2] = i, t[3] = a) : (i = t[2], a = t[3]), (0, O.useEffect)(i, a);
|
|
2610
|
+
let o;
|
|
2611
|
+
return t[4] === n ? o = t[5] : (o = [n, r], t[4] = n, t[5] = o), o;
|
|
2612
|
+
}
|
|
2613
|
+
function ri(e) {
|
|
2614
|
+
return e == null || e.data == null || e.data === "";
|
|
2615
|
+
}
|
|
2616
|
+
//#endregion
|
|
2617
|
+
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
2618
|
+
var ii = (0, O.lazy)(() => import("./any-language-editor-CycIVIeP.js")), ai = [Ye.lineWrapping];
|
|
2619
|
+
function oi(e, t) {
|
|
2620
|
+
return e ? e === "python" ? {
|
|
2621
|
+
language: e,
|
|
2622
|
+
code: t
|
|
2623
|
+
} : e === "sql" ? {
|
|
2624
|
+
language: "python",
|
|
2625
|
+
code: Te.fromQuery(t)
|
|
2626
|
+
} : e === "markdown" ? {
|
|
2627
|
+
language: "python",
|
|
2628
|
+
code: fe.fromMarkdown(t)
|
|
2629
|
+
} : e === "shell" || e === "bash" ? {
|
|
2630
|
+
language: "python",
|
|
2631
|
+
code: `import subprocess\nsubprocess.run("${t}")`
|
|
2632
|
+
} : {
|
|
2633
|
+
language: "python",
|
|
2634
|
+
code: `_${e} = """\n${t}\n"""`
|
|
2635
|
+
} : {
|
|
2636
|
+
language: "python",
|
|
2637
|
+
code: t
|
|
2638
|
+
};
|
|
2639
|
+
}
|
|
2640
|
+
var si = (e) => {
|
|
2641
|
+
let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = ge(), a = se(), s = T(D), c;
|
|
2642
|
+
t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
|
|
2643
|
+
let e = oi(r, n);
|
|
2644
|
+
r === "sql" && ne({
|
|
2645
|
+
autoInstantiate: s,
|
|
2646
|
+
createNewCell: i,
|
|
2647
|
+
fromCellId: a
|
|
2648
|
+
}), i({
|
|
2649
|
+
code: e.code,
|
|
2650
|
+
before: !1,
|
|
2651
|
+
cellId: a ?? "__end__"
|
|
2652
|
+
});
|
|
2653
|
+
}, t[0] = s, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = c) : c = t[5];
|
|
2654
|
+
let l = c, u;
|
|
2655
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, j.jsx)(dt, { className: "ml-2 h-4 w-4" }), t[6] = u) : u = t[6];
|
|
2656
|
+
let d;
|
|
2657
|
+
return t[7] === l ? d = t[8] : (d = /* @__PURE__ */ (0, j.jsxs)(o, {
|
|
2658
|
+
size: "xs",
|
|
2659
|
+
variant: "outline",
|
|
2660
|
+
onClick: l,
|
|
2661
|
+
children: ["Add to Notebook", u]
|
|
2662
|
+
}), t[7] = l, t[8] = d), d;
|
|
2663
|
+
}, ci = (e) => {
|
|
2664
|
+
let t = (0, k.c)(17), { code: n, language: r } = e, { theme: i } = Je(), [a, o] = (0, O.useState)(n);
|
|
2665
|
+
a !== n && o(n);
|
|
2666
|
+
let s;
|
|
2667
|
+
t[0] === a ? s = t[1] : (s = async () => {
|
|
2668
|
+
await u(a);
|
|
2669
|
+
}, t[0] = a, t[1] = s);
|
|
2670
|
+
let c = s, l = i === "dark" ? "dark" : "light", d;
|
|
2671
|
+
t[2] !== r || t[3] !== l || t[4] !== a ? (d = /* @__PURE__ */ (0, j.jsx)(O.Suspense, { children: /* @__PURE__ */ (0, j.jsx)(ii, {
|
|
2672
|
+
theme: l,
|
|
2673
|
+
language: r,
|
|
2674
|
+
hideUnsupportedLanguageErrors: !0,
|
|
2675
|
+
className: "cm border rounded overflow-hidden",
|
|
2676
|
+
extensions: ai,
|
|
2677
|
+
value: a,
|
|
2678
|
+
onChange: o
|
|
2679
|
+
}) }), t[2] = r, t[3] = l, t[4] = a, t[5] = d) : d = t[5];
|
|
2680
|
+
let f;
|
|
2681
|
+
t[6] === c ? f = t[7] : (f = /* @__PURE__ */ (0, j.jsx)(li, {
|
|
2682
|
+
size: "xs",
|
|
2683
|
+
variant: "outline",
|
|
2684
|
+
onClick: c,
|
|
2685
|
+
children: "Copy"
|
|
2686
|
+
}), t[6] = c, t[7] = f);
|
|
2687
|
+
let p;
|
|
2688
|
+
t[8] !== r || t[9] !== a ? (p = /* @__PURE__ */ (0, j.jsx)(si, {
|
|
2689
|
+
code: a,
|
|
2690
|
+
language: r
|
|
2691
|
+
}), t[8] = r, t[9] = a, t[10] = p) : p = t[10];
|
|
2692
|
+
let m;
|
|
2693
|
+
t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
2694
|
+
className: "flex justify-end mt-2 space-x-2",
|
|
2695
|
+
children: [f, p]
|
|
2696
|
+
}), t[11] = f, t[12] = p, t[13] = m) : m = t[13];
|
|
2697
|
+
let h;
|
|
2698
|
+
return t[14] !== d || t[15] !== m ? (h = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
2699
|
+
className: "relative",
|
|
2700
|
+
children: [d, m]
|
|
2701
|
+
}), t[14] = d, t[15] = m, t[16] = h) : h = t[16], h;
|
|
2702
|
+
}, li = (e) => {
|
|
2703
|
+
let t = (0, k.c)(9), n, r;
|
|
2704
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({onClick: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2705
|
+
let [i, a] = (0, O.useState)(!1), s;
|
|
2706
|
+
t[3] === n ? s = t[4] : (s = (e) => {
|
|
2707
|
+
n?.(e), a(!0), setTimeout(() => a(!1), 1e3);
|
|
2708
|
+
}, t[3] = n, t[4] = s);
|
|
2709
|
+
let c = i ? "Copied" : "Copy", l;
|
|
2710
|
+
return t[5] !== r || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ (0, j.jsx)(o, {
|
|
2711
|
+
...r,
|
|
2712
|
+
onClick: s,
|
|
2713
|
+
children: c
|
|
2714
|
+
}), t[5] = r, t[6] = s, t[7] = c, t[8] = l) : l = t[8], l;
|
|
2715
|
+
}, ui = {
|
|
2716
|
+
...p,
|
|
2717
|
+
attributes: {
|
|
2718
|
+
...p.attributes,
|
|
2719
|
+
"*": [...p.attributes?.["*"] ?? [], "className"]
|
|
2720
|
+
}
|
|
2721
|
+
}, di = Object.values({
|
|
2722
|
+
...g,
|
|
2723
|
+
sanitize: [h, ui]
|
|
2724
|
+
}), fi = { code: ({ children: e, className: t }) => {
|
|
2725
|
+
let n = t?.replace("language-", "");
|
|
2726
|
+
if (n && typeof e == "string") {
|
|
2727
|
+
let t = e.trim();
|
|
2728
|
+
return /* @__PURE__ */ (0, j.jsxs)("div", { children: [/* @__PURE__ */ (0, j.jsx)("div", {
|
|
2729
|
+
className: "text-xs text-muted-foreground pl-1",
|
|
2730
|
+
children: n
|
|
2731
|
+
}), /* @__PURE__ */ (0, j.jsx)(ci, {
|
|
2732
|
+
code: t,
|
|
2733
|
+
language: n
|
|
2734
|
+
})] });
|
|
2735
|
+
}
|
|
2736
|
+
return /* @__PURE__ */ (0, j.jsx)("code", {
|
|
2737
|
+
className: t,
|
|
2738
|
+
children: e
|
|
2739
|
+
});
|
|
2740
|
+
} }, pi, mi = () => {
|
|
2741
|
+
let { data: e } = Xe(async () => pi || (pi = { math: (await import("./dist-BaHjhkpZ.js")).math }, pi), []);
|
|
2742
|
+
return e;
|
|
2743
|
+
}, hi = (0, O.memo)((e) => {
|
|
2744
|
+
let t = (0, k.c)(3), { content: n } = e, r = mi(), i;
|
|
2745
|
+
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, j.jsx)(f, {
|
|
2746
|
+
components: fi,
|
|
2747
|
+
plugins: r,
|
|
2748
|
+
rehypePlugins: di,
|
|
2749
|
+
className: "mo-markdown-renderer",
|
|
2750
|
+
children: n
|
|
2751
|
+
}), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
|
|
2752
|
+
});
|
|
2753
|
+
hi.displayName = "MarkdownRenderer";
|
|
2754
|
+
//#endregion
|
|
2755
|
+
//#region src/components/icons/spinner.tsx
|
|
2756
|
+
var gi = a("animate-spin", {
|
|
2757
|
+
variants: {
|
|
2758
|
+
centered: { true: "m-auto" },
|
|
2759
|
+
size: {
|
|
2760
|
+
small: "size-4",
|
|
2761
|
+
medium: "size-12",
|
|
2762
|
+
large: "size-20",
|
|
2763
|
+
xlarge: "size-20"
|
|
2764
|
+
}
|
|
2765
|
+
},
|
|
2766
|
+
defaultVariants: { size: "medium" }
|
|
2767
|
+
}), _i = O.forwardRef((e, t) => {
|
|
2768
|
+
let n = (0, k.c)(13), i, a, o, s;
|
|
2769
|
+
if (n[0] !== e) {
|
|
2770
|
+
let { className: t, children: r, centered: c, size: l, ...u } = e;
|
|
2771
|
+
a = t, i = c, s = l, o = u, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s;
|
|
2772
|
+
} else i = n[1], a = n[2], o = n[3], s = n[4];
|
|
2773
|
+
let c;
|
|
2774
|
+
n[5] !== i || n[6] !== a || n[7] !== s ? (c = r(gi({
|
|
2775
|
+
centered: i,
|
|
2776
|
+
size: s
|
|
2777
|
+
}), a), n[5] = i, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
|
|
2778
|
+
let l;
|
|
2779
|
+
return n[9] !== o || n[10] !== t || n[11] !== c ? (l = /* @__PURE__ */ (0, j.jsx)(ft, {
|
|
2780
|
+
ref: t,
|
|
2781
|
+
className: c,
|
|
2782
|
+
strokeWidth: 1.5,
|
|
2783
|
+
...o
|
|
2784
|
+
}), n[9] = o, n[10] = t, n[11] = c, n[12] = l) : l = n[12], l;
|
|
2785
|
+
});
|
|
2786
|
+
_i.displayName = "Spinner";
|
|
2787
|
+
//#endregion
|
|
2788
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/util.js
|
|
2789
|
+
function vi(e, t) {
|
|
2790
|
+
if (e.match(/^[a-z]+:\/\//i)) return e;
|
|
2791
|
+
if (e.match(/^\/\//)) return window.location.protocol + e;
|
|
2792
|
+
if (e.match(/^[a-z]+:/i)) return e;
|
|
2793
|
+
let n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
|
|
2794
|
+
return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
|
|
2795
|
+
}
|
|
2796
|
+
var yi = (() => {
|
|
2797
|
+
let e = 0, t = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
|
|
2798
|
+
return () => (e += 1, `u${t()}${e}`);
|
|
2799
|
+
})();
|
|
2800
|
+
function K(e) {
|
|
2801
|
+
let t = [];
|
|
2802
|
+
for (let n = 0, r = e.length; n < r; n++) t.push(e[n]);
|
|
2803
|
+
return t;
|
|
2804
|
+
}
|
|
2805
|
+
var q = null;
|
|
2806
|
+
function bi(e = {}) {
|
|
2807
|
+
return q || (e.includeStyleProperties ? (q = e.includeStyleProperties, q) : (q = K(window.getComputedStyle(document.documentElement)), q));
|
|
2808
|
+
}
|
|
2809
|
+
function J(e, t) {
|
|
2810
|
+
let n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
2811
|
+
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
2812
|
+
}
|
|
2813
|
+
function xi(e) {
|
|
2814
|
+
let t = J(e, "border-left-width"), n = J(e, "border-right-width");
|
|
2815
|
+
return e.clientWidth + t + n;
|
|
2816
|
+
}
|
|
2817
|
+
function Si(e) {
|
|
2818
|
+
let t = J(e, "border-top-width"), n = J(e, "border-bottom-width");
|
|
2819
|
+
return e.clientHeight + t + n;
|
|
2820
|
+
}
|
|
2821
|
+
function Ci(e, t = {}) {
|
|
2822
|
+
return {
|
|
2823
|
+
width: t.width || xi(e),
|
|
2824
|
+
height: t.height || Si(e)
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
function wi() {
|
|
2828
|
+
let e, t;
|
|
2829
|
+
try {
|
|
2830
|
+
t = process;
|
|
2831
|
+
} catch {}
|
|
2832
|
+
let n = t && t.env ? t.env.devicePixelRatio : null;
|
|
2833
|
+
return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
2834
|
+
}
|
|
2835
|
+
var Y = 16384;
|
|
2836
|
+
function Ti(e) {
|
|
2837
|
+
(e.width > Y || e.height > Y) && (e.width > Y && e.height > Y ? e.width > e.height ? (e.height *= Y / e.width, e.width = Y) : (e.width *= Y / e.height, e.height = Y) : e.width > Y ? (e.height *= Y / e.width, e.width = Y) : (e.width *= Y / e.height, e.height = Y));
|
|
2838
|
+
}
|
|
2839
|
+
function X(e) {
|
|
2840
|
+
return new Promise((t, n) => {
|
|
2841
|
+
let r = new Image();
|
|
2842
|
+
r.onload = () => {
|
|
2843
|
+
r.decode().then(() => {
|
|
2844
|
+
requestAnimationFrame(() => t(r));
|
|
2845
|
+
});
|
|
2846
|
+
}, r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2849
|
+
async function Ei(e) {
|
|
2850
|
+
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
|
|
2851
|
+
}
|
|
2852
|
+
async function Di(e, t, n) {
|
|
2853
|
+
let r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
|
|
2854
|
+
return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), Ei(i);
|
|
2855
|
+
}
|
|
2856
|
+
var Z = (e, t) => {
|
|
2857
|
+
if (e instanceof t) return !0;
|
|
2858
|
+
let n = Object.getPrototypeOf(e);
|
|
2859
|
+
return n === null ? !1 : n.constructor.name === t.name || Z(n, t);
|
|
2860
|
+
};
|
|
2861
|
+
//#endregion
|
|
2862
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-pseudos.js
|
|
2863
|
+
function Oi(e) {
|
|
2864
|
+
let t = e.getPropertyValue("content");
|
|
2865
|
+
return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
|
|
2866
|
+
}
|
|
2867
|
+
function ki(e, t) {
|
|
2868
|
+
return bi(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
|
|
2869
|
+
}
|
|
2870
|
+
function Ai(e, t, n, r) {
|
|
2871
|
+
let i = `.${e}:${t}`, a = n.cssText ? Oi(n) : ki(n, r);
|
|
2872
|
+
return document.createTextNode(`${i}{${a}}`);
|
|
2873
|
+
}
|
|
2874
|
+
function ji(e, t, n, r) {
|
|
2875
|
+
let i = window.getComputedStyle(e, n), a = i.getPropertyValue("content");
|
|
2876
|
+
if (a === "" || a === "none") return;
|
|
2877
|
+
let o = yi();
|
|
2878
|
+
try {
|
|
2879
|
+
t.className = `${t.className} ${o}`;
|
|
2880
|
+
} catch {
|
|
2881
|
+
return;
|
|
2882
|
+
}
|
|
2883
|
+
let s = document.createElement("style");
|
|
2884
|
+
s.appendChild(Ai(o, n, i, r)), t.appendChild(s);
|
|
2885
|
+
}
|
|
2886
|
+
function Mi(e, t, n) {
|
|
2887
|
+
ji(e, t, ":before", n), ji(e, t, ":after", n);
|
|
2888
|
+
}
|
|
2889
|
+
//#endregion
|
|
2890
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/mimes.js
|
|
2891
|
+
var Ni = "application/font-woff", Pi = "image/jpeg", Fi = {
|
|
2892
|
+
woff: Ni,
|
|
2893
|
+
woff2: Ni,
|
|
2894
|
+
ttf: "application/font-truetype",
|
|
2895
|
+
eot: "application/vnd.ms-fontobject",
|
|
2896
|
+
png: "image/png",
|
|
2897
|
+
jpg: Pi,
|
|
2898
|
+
jpeg: Pi,
|
|
2899
|
+
gif: "image/gif",
|
|
2900
|
+
tiff: "image/tiff",
|
|
2901
|
+
svg: "image/svg+xml",
|
|
2902
|
+
webp: "image/webp"
|
|
2903
|
+
};
|
|
2904
|
+
function Ii(e) {
|
|
2905
|
+
let t = /\.([^./]*?)$/g.exec(e);
|
|
2906
|
+
return t ? t[1] : "";
|
|
2907
|
+
}
|
|
2908
|
+
function Li(e) {
|
|
2909
|
+
return Fi[Ii(e).toLowerCase()] || "";
|
|
2910
|
+
}
|
|
2911
|
+
//#endregion
|
|
2912
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/dataurl.js
|
|
2913
|
+
function Ri(e) {
|
|
2914
|
+
return e.split(/,/)[1];
|
|
2915
|
+
}
|
|
2916
|
+
function zi(e) {
|
|
2917
|
+
return e.search(/^(data:)/) !== -1;
|
|
2918
|
+
}
|
|
2919
|
+
function Bi(e, t) {
|
|
2920
|
+
return `data:${t};base64,${e}`;
|
|
2921
|
+
}
|
|
2922
|
+
async function Vi(e, t, n) {
|
|
2923
|
+
let r = await fetch(e, t);
|
|
2924
|
+
if (r.status === 404) throw Error(`Resource "${r.url}" not found`);
|
|
2925
|
+
let i = await r.blob();
|
|
2926
|
+
return new Promise((e, t) => {
|
|
2927
|
+
let a = new FileReader();
|
|
2928
|
+
a.onerror = t, a.onloadend = () => {
|
|
2929
|
+
try {
|
|
2930
|
+
e(n({
|
|
2931
|
+
res: r,
|
|
2932
|
+
result: a.result
|
|
2933
|
+
}));
|
|
2934
|
+
} catch (e) {
|
|
2935
|
+
t(e);
|
|
2936
|
+
}
|
|
2937
|
+
}, a.readAsDataURL(i);
|
|
2938
|
+
});
|
|
2939
|
+
}
|
|
2940
|
+
var Hi = {};
|
|
2941
|
+
function Ui(e, t, n) {
|
|
2942
|
+
let r = e.replace(/\?.*/, "");
|
|
2943
|
+
return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
|
|
2944
|
+
}
|
|
2945
|
+
async function Wi(e, t, n) {
|
|
2946
|
+
let r = Ui(e, t, n.includeQueryParams);
|
|
2947
|
+
if (Hi[r] != null) return Hi[r];
|
|
2948
|
+
n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
2949
|
+
let i;
|
|
2950
|
+
try {
|
|
2951
|
+
i = Bi(await Vi(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", Ri(n))), t);
|
|
2952
|
+
} catch (t) {
|
|
2953
|
+
i = n.imagePlaceholder || "";
|
|
2954
|
+
let r = `Failed to fetch resource: ${e}`;
|
|
2955
|
+
t && (r = typeof t == "string" ? t : t.message), r && console.warn(r);
|
|
2956
|
+
}
|
|
2957
|
+
return Hi[r] = i, i;
|
|
2958
|
+
}
|
|
2959
|
+
//#endregion
|
|
2960
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-node.js
|
|
2961
|
+
async function Gi(e) {
|
|
2962
|
+
let t = e.toDataURL();
|
|
2963
|
+
return t === "data:," ? e.cloneNode(!1) : X(t);
|
|
2964
|
+
}
|
|
2965
|
+
async function Ki(e, t) {
|
|
2966
|
+
if (e.currentSrc) {
|
|
2967
|
+
let t = document.createElement("canvas"), n = t.getContext("2d");
|
|
2968
|
+
return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), X(t.toDataURL());
|
|
2969
|
+
}
|
|
2970
|
+
let n = e.poster;
|
|
2971
|
+
return X(await Wi(n, Li(n), t));
|
|
2972
|
+
}
|
|
2973
|
+
async function qi(e, t) {
|
|
2974
|
+
try {
|
|
2975
|
+
if (e?.contentDocument?.body) return await Q(e.contentDocument.body, t, !0);
|
|
2976
|
+
} catch {}
|
|
2977
|
+
return e.cloneNode(!1);
|
|
2978
|
+
}
|
|
2979
|
+
async function Ji(e, t) {
|
|
2980
|
+
return Z(e, HTMLCanvasElement) ? Gi(e) : Z(e, HTMLVideoElement) ? Ki(e, t) : Z(e, HTMLIFrameElement) ? qi(e, t) : e.cloneNode(Xi(e));
|
|
2981
|
+
}
|
|
2982
|
+
var Yi = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", Xi = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
2983
|
+
async function Zi(e, t, n) {
|
|
2984
|
+
if (Xi(t)) return t;
|
|
2985
|
+
let r = [];
|
|
2986
|
+
if (Yi(e) && e.assignedNodes) r = K(e.assignedNodes());
|
|
2987
|
+
else if (Z(e, HTMLIFrameElement)) try {
|
|
2988
|
+
e.contentDocument?.body && (r = K(e.contentDocument.body.childNodes));
|
|
2989
|
+
} catch {}
|
|
2990
|
+
else r = K((e.shadowRoot ?? e).childNodes);
|
|
2991
|
+
return r.length === 0 || Z(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => Q(r, n)).then((e) => {
|
|
2992
|
+
e && t.appendChild(e);
|
|
2993
|
+
}), Promise.resolve()), t;
|
|
2994
|
+
}
|
|
2995
|
+
function Qi(e, t, n) {
|
|
2996
|
+
let r = t.style;
|
|
2997
|
+
if (!r) return;
|
|
2998
|
+
let i = window.getComputedStyle(e);
|
|
2999
|
+
i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : bi(n).forEach((n) => {
|
|
3000
|
+
let a = i.getPropertyValue(n);
|
|
3001
|
+
n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), Z(e, HTMLIFrameElement) && n === "display" && a === "inline" && (a = "block"), n === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), r.setProperty(n, a, i.getPropertyPriority(n));
|
|
3002
|
+
});
|
|
3003
|
+
}
|
|
3004
|
+
function $i(e, t) {
|
|
3005
|
+
Z(e, HTMLTextAreaElement) && (t.innerHTML = e.value), Z(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
3006
|
+
}
|
|
3007
|
+
function ea(e, t) {
|
|
3008
|
+
if (Z(e, HTMLSelectElement)) {
|
|
3009
|
+
let n = t, r = Array.from(n.children).find((t) => e.value === t.getAttribute("value"));
|
|
3010
|
+
r && r.setAttribute("selected", "");
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
function ta(e, t, n) {
|
|
3014
|
+
return Z(t, Element) && (Qi(e, t, n), Mi(e, t, n), $i(e, t), ea(e, t)), t;
|
|
3015
|
+
}
|
|
3016
|
+
async function na(e, t) {
|
|
3017
|
+
let n = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
3018
|
+
if (n.length === 0) return e;
|
|
3019
|
+
let r = {};
|
|
3020
|
+
for (let i = 0; i < n.length; i++) {
|
|
3021
|
+
let a = n[i].getAttribute("xlink:href");
|
|
3022
|
+
if (a) {
|
|
3023
|
+
let n = e.querySelector(a), i = document.querySelector(a);
|
|
3024
|
+
!n && i && !r[a] && (r[a] = await Q(i, t, !0));
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
let i = Object.values(r);
|
|
3028
|
+
if (i.length) {
|
|
3029
|
+
let t = "http://www.w3.org/1999/xhtml", n = document.createElementNS(t, "svg");
|
|
3030
|
+
n.setAttribute("xmlns", t), n.style.position = "absolute", n.style.width = "0", n.style.height = "0", n.style.overflow = "hidden", n.style.display = "none";
|
|
3031
|
+
let r = document.createElementNS(t, "defs");
|
|
3032
|
+
n.appendChild(r);
|
|
3033
|
+
for (let e = 0; e < i.length; e++) r.appendChild(i[e]);
|
|
3034
|
+
e.appendChild(n);
|
|
3035
|
+
}
|
|
3036
|
+
return e;
|
|
3037
|
+
}
|
|
3038
|
+
async function Q(e, t, n) {
|
|
3039
|
+
return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => Ji(e, t)).then((n) => Zi(e, n, t)).then((n) => ta(e, n, t)).then((e) => na(e, t));
|
|
3040
|
+
}
|
|
3041
|
+
//#endregion
|
|
3042
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-resources.js
|
|
3043
|
+
var ra = /url\((['"]?)([^'"]+?)\1\)/g, ia = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, aa = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
3044
|
+
function oa(e) {
|
|
3045
|
+
let t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
3046
|
+
return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
|
|
3047
|
+
}
|
|
3048
|
+
function sa(e) {
|
|
3049
|
+
let t = [];
|
|
3050
|
+
return e.replace(ra, (e, n, r) => (t.push(r), e)), t.filter((e) => !zi(e));
|
|
3051
|
+
}
|
|
3052
|
+
async function ca(e, t, n, r, i) {
|
|
3053
|
+
try {
|
|
3054
|
+
let a = n ? vi(t, n) : t, o = Li(t), s;
|
|
3055
|
+
return s = i ? Bi(await i(a), o) : await Wi(a, o, r), e.replace(oa(t), `$1${s}$3`);
|
|
3056
|
+
} catch {}
|
|
3057
|
+
return e;
|
|
3058
|
+
}
|
|
3059
|
+
function la(e, { preferredFontFormat: t }) {
|
|
3060
|
+
return t ? e.replace(aa, (e) => {
|
|
3061
|
+
for (;;) {
|
|
3062
|
+
let [n, , r] = ia.exec(e) || [];
|
|
3063
|
+
if (!r) return "";
|
|
3064
|
+
if (r === t) return `src: ${n};`;
|
|
3065
|
+
}
|
|
3066
|
+
}) : e;
|
|
3067
|
+
}
|
|
3068
|
+
function ua(e) {
|
|
3069
|
+
return e.search(ra) !== -1;
|
|
3070
|
+
}
|
|
3071
|
+
async function da(e, t, n) {
|
|
3072
|
+
if (!ua(e)) return e;
|
|
3073
|
+
let r = la(e, n);
|
|
3074
|
+
return sa(r).reduce((e, r) => e.then((e) => ca(e, r, t, n)), Promise.resolve(r));
|
|
3075
|
+
}
|
|
3076
|
+
//#endregion
|
|
3077
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-images.js
|
|
3078
|
+
async function $(e, t, n) {
|
|
3079
|
+
let r = t.style?.getPropertyValue(e);
|
|
3080
|
+
if (r) {
|
|
3081
|
+
let i = await da(r, null, n);
|
|
3082
|
+
return t.style.setProperty(e, i, t.style.getPropertyPriority(e)), !0;
|
|
3083
|
+
}
|
|
3084
|
+
return !1;
|
|
3085
|
+
}
|
|
3086
|
+
async function fa(e, t) {
|
|
3087
|
+
await $("background", e, t) || await $("background-image", e, t), await $("mask", e, t) || await $("-webkit-mask", e, t) || await $("mask-image", e, t) || await $("-webkit-mask-image", e, t);
|
|
3088
|
+
}
|
|
3089
|
+
async function pa(e, t) {
|
|
3090
|
+
let n = Z(e, HTMLImageElement);
|
|
3091
|
+
if (!(n && !zi(e.src)) && !(Z(e, SVGImageElement) && !zi(e.href.baseVal))) return;
|
|
3092
|
+
let r = n ? e.src : e.href.baseVal, i = await Wi(r, Li(r), t);
|
|
3093
|
+
await new Promise((r, a) => {
|
|
3094
|
+
e.onload = r, e.onerror = t.onImageErrorHandler ? (...e) => {
|
|
3095
|
+
try {
|
|
3096
|
+
r(t.onImageErrorHandler(...e));
|
|
3097
|
+
} catch (e) {
|
|
3098
|
+
a(e);
|
|
3099
|
+
}
|
|
3100
|
+
} : a;
|
|
3101
|
+
let o = e;
|
|
3102
|
+
o.decode &&= r, o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
|
|
3103
|
+
});
|
|
3104
|
+
}
|
|
3105
|
+
async function ma(e, t) {
|
|
3106
|
+
let n = K(e.childNodes).map((e) => ha(e, t));
|
|
3107
|
+
await Promise.all(n).then(() => e);
|
|
3108
|
+
}
|
|
3109
|
+
async function ha(e, t) {
|
|
3110
|
+
Z(e, Element) && (await fa(e, t), await pa(e, t), await ma(e, t));
|
|
3111
|
+
}
|
|
3112
|
+
//#endregion
|
|
3113
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/apply-style.js
|
|
3114
|
+
function ga(e, t) {
|
|
3115
|
+
let { style: n } = e;
|
|
3116
|
+
t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
|
|
3117
|
+
let r = t.style;
|
|
3118
|
+
return r != null && Object.keys(r).forEach((e) => {
|
|
3119
|
+
n[e] = r[e];
|
|
3120
|
+
}), e;
|
|
3121
|
+
}
|
|
3122
|
+
//#endregion
|
|
3123
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-webfonts.js
|
|
3124
|
+
var _a = {};
|
|
3125
|
+
async function va(e) {
|
|
3126
|
+
let t = _a[e];
|
|
3127
|
+
return t ?? (t = {
|
|
3128
|
+
url: e,
|
|
3129
|
+
cssText: await (await fetch(e)).text()
|
|
3130
|
+
}, _a[e] = t, t);
|
|
3131
|
+
}
|
|
3132
|
+
async function ya(e, t) {
|
|
3133
|
+
let n = e.cssText, r = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
3134
|
+
let a = i.replace(r, "$1");
|
|
3135
|
+
return a.startsWith("https://") || (a = new URL(a, e.url).href), Vi(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
|
|
3136
|
+
});
|
|
3137
|
+
return Promise.all(i).then(() => n);
|
|
3138
|
+
}
|
|
3139
|
+
function ba(e) {
|
|
3140
|
+
if (e == null) return [];
|
|
3141
|
+
let t = [], n = e.replace(/(\/\*[\s\S]*?\*\/)/gi, ""), r = /* @__PURE__ */ RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
|
|
3142
|
+
for (;;) {
|
|
3143
|
+
let e = r.exec(n);
|
|
3144
|
+
if (e === null) break;
|
|
3145
|
+
t.push(e[0]);
|
|
3146
|
+
}
|
|
3147
|
+
n = n.replace(r, "");
|
|
3148
|
+
let i = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, a = /* @__PURE__ */ RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", "gi");
|
|
3149
|
+
for (;;) {
|
|
3150
|
+
let e = i.exec(n);
|
|
3151
|
+
if (e === null) {
|
|
3152
|
+
if (e = a.exec(n), e === null) break;
|
|
3153
|
+
i.lastIndex = a.lastIndex;
|
|
3154
|
+
} else a.lastIndex = i.lastIndex;
|
|
3155
|
+
t.push(e[0]);
|
|
3156
|
+
}
|
|
3157
|
+
return t;
|
|
3158
|
+
}
|
|
3159
|
+
async function xa(e, t) {
|
|
3160
|
+
let n = [], r = [];
|
|
3161
|
+
return e.forEach((n) => {
|
|
3162
|
+
if ("cssRules" in n) try {
|
|
3163
|
+
K(n.cssRules || []).forEach((e, i) => {
|
|
3164
|
+
if (e.type === CSSRule.IMPORT_RULE) {
|
|
3165
|
+
let a = i + 1, o = e.href, s = va(o).then((e) => ya(e, t)).then((e) => ba(e).forEach((e) => {
|
|
3166
|
+
try {
|
|
3167
|
+
n.insertRule(e, e.startsWith("@import") ? a += 1 : n.cssRules.length);
|
|
3168
|
+
} catch (t) {
|
|
3169
|
+
console.error("Error inserting rule from remote css", {
|
|
3170
|
+
rule: e,
|
|
3171
|
+
error: t
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
})).catch((e) => {
|
|
3175
|
+
console.error("Error loading remote css", e.toString());
|
|
3176
|
+
});
|
|
3177
|
+
r.push(s);
|
|
3178
|
+
}
|
|
3179
|
+
});
|
|
3180
|
+
} catch (i) {
|
|
3181
|
+
let a = e.find((e) => e.href == null) || document.styleSheets[0];
|
|
3182
|
+
n.href != null && r.push(va(n.href).then((e) => ya(e, t)).then((e) => ba(e).forEach((e) => {
|
|
3183
|
+
a.insertRule(e, a.cssRules.length);
|
|
3184
|
+
})).catch((e) => {
|
|
3185
|
+
console.error("Error loading remote stylesheet", e);
|
|
3186
|
+
})), console.error("Error inlining remote css file", i);
|
|
3187
|
+
}
|
|
3188
|
+
}), Promise.all(r).then(() => (e.forEach((e) => {
|
|
3189
|
+
if ("cssRules" in e) try {
|
|
3190
|
+
K(e.cssRules || []).forEach((e) => {
|
|
3191
|
+
n.push(e);
|
|
3192
|
+
});
|
|
3193
|
+
} catch (t) {
|
|
3194
|
+
console.error(`Error while reading CSS rules from ${e.href}`, t);
|
|
3195
|
+
}
|
|
3196
|
+
}), n));
|
|
3197
|
+
}
|
|
3198
|
+
function Sa(e) {
|
|
3199
|
+
return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => ua(e.style.getPropertyValue("src")));
|
|
3200
|
+
}
|
|
3201
|
+
async function Ca(e, t) {
|
|
3202
|
+
if (e.ownerDocument == null) throw Error("Provided element is not within a Document");
|
|
3203
|
+
return Sa(await xa(K(e.ownerDocument.styleSheets), t));
|
|
3204
|
+
}
|
|
3205
|
+
function wa(e) {
|
|
3206
|
+
return (e || "").trim().replace(/["']/g, "");
|
|
3207
|
+
}
|
|
3208
|
+
function Ta(e) {
|
|
3209
|
+
let t = /* @__PURE__ */ new Set();
|
|
3210
|
+
function n(e) {
|
|
3211
|
+
let r = e.style.fontFamily || getComputedStyle(e).fontFamily;
|
|
3212
|
+
r && r.split(",").forEach((e) => {
|
|
3213
|
+
t.add(wa(e));
|
|
3214
|
+
}), Array.from(e.children).forEach((e) => {
|
|
3215
|
+
e instanceof HTMLElement && n(e);
|
|
3216
|
+
});
|
|
3217
|
+
}
|
|
3218
|
+
return n(e), t;
|
|
3219
|
+
}
|
|
3220
|
+
async function Ea(e, t) {
|
|
3221
|
+
let n = await Ca(e, t), r = Ta(e);
|
|
3222
|
+
return (await Promise.all(n.filter((e) => r.has(wa(e.style.fontFamily))).map((e) => {
|
|
3223
|
+
let n = e.parentStyleSheet ? e.parentStyleSheet.href : null;
|
|
3224
|
+
return da(e.cssText, n, t);
|
|
3225
|
+
}))).join("\n");
|
|
3226
|
+
}
|
|
3227
|
+
async function Da(e, t) {
|
|
3228
|
+
let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await Ea(e, t) : t.fontEmbedCSS, r = t.extraStyleContent == null ? n : (n || "").concat(t.extraStyleContent);
|
|
3229
|
+
if (r) {
|
|
3230
|
+
let t = document.createElement("style"), n = document.createTextNode(r);
|
|
3231
|
+
t.appendChild(n), e.firstChild ? e.insertBefore(t, e.firstChild) : e.appendChild(t);
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
//#endregion
|
|
3235
|
+
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/index.js
|
|
3236
|
+
async function Oa(e, t = {}) {
|
|
3237
|
+
let { width: n, height: r } = Ci(e, t), i = await Q(e, t, !0);
|
|
3238
|
+
return await Da(i, t), await ha(i, t), ga(i, t), await Di(i, n, r);
|
|
3239
|
+
}
|
|
3240
|
+
async function ka(e, t = {}) {
|
|
3241
|
+
let { width: n, height: r } = Ci(e, t), i = await X(await Oa(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || wi(), c = t.canvasWidth || n, l = t.canvasHeight || r;
|
|
3242
|
+
return a.width = c * s, a.height = l * s, t.skipAutoScale || Ti(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
|
|
3243
|
+
}
|
|
3244
|
+
async function Aa(e, t = {}) {
|
|
3245
|
+
return (await ka(e, t)).toDataURL();
|
|
3246
|
+
}
|
|
3247
|
+
var ja = {
|
|
3248
|
+
filter: (e) => {
|
|
3249
|
+
try {
|
|
3250
|
+
if ("classList" in e) {
|
|
3251
|
+
let t = e.classList;
|
|
3252
|
+
if (t.contains("mpl-toolbar") || t.contains("print:hidden")) return !1;
|
|
3253
|
+
}
|
|
3254
|
+
return !0;
|
|
3255
|
+
} catch (e) {
|
|
3256
|
+
return n.error("Error filtering node:", e), !0;
|
|
3257
|
+
}
|
|
3258
|
+
},
|
|
3259
|
+
imagePlaceholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQI12NgAAIABQABNjN9GQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAA0lEQVQI12P4z8BQDwAEgAF/QualIQAAAABJRU5ErkJggg==",
|
|
3260
|
+
onImageErrorHandler: (e) => {
|
|
3261
|
+
n.error("Error loading image:", e);
|
|
3262
|
+
},
|
|
3263
|
+
includeStyleProperties: /* @__PURE__ */ "width.height.min-width.min-height.max-width.max-height.box-sizing.aspect-ratio.display.position.top.left.bottom.right.z-index.float.clear.flex.flex-direction.flex-wrap.flex-grow.flex-shrink.flex-basis.align-items.align-self.justify-content.gap.order.grid-template-columns.grid-template-rows.grid-column.grid-row.row-gap.column-gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font.font-family.font-size.font-weight.font-style.line-height.letter-spacing.word-spacing.text-align.text-decoration.text-transform.text-indent.text-shadow.white-space.text-wrap.word-break.text-overflow.vertical-align.color.background.background-color.background-image.background-size.background-position.background-repeat.background-clip.border.border-width.border-style.border-color.border-top.border-right.border-bottom.border-left.border-radius.outline.box-shadow.text-shadow.opacity.filter.backdrop-filter.mix-blend-mode.transform.clip-path.overflow.overflow-x.overflow-y.visibility.fill.stroke.stroke-width.object-fit.object-position.list-style.list-style-type.border-collapse.border-spacing.content.cursor".split(".")
|
|
3264
|
+
};
|
|
3265
|
+
async function Ma(e, t) {
|
|
3266
|
+
return Aa(e, {
|
|
3267
|
+
...ja,
|
|
3268
|
+
...t
|
|
3269
|
+
});
|
|
3270
|
+
}
|
|
3271
|
+
//#endregion
|
|
3272
|
+
export { A as $, fr as A, Fn as B, Tr as C, Nr as D, jr as E, ar as F, nn as G, Nn as H, Hn as I, tn as J, $t as K, W as L, ur as M, lr as N, cr as O, _r as P, ut as Q, Bn as R, Cr as S, kr as T, En as U, Ln as V, An as W, pt as X, mt as Y, ft as Z, Lr as _, ri as a, yr as b, Jr as c, Gr as d, Kr as f, Pr as g, Hr as h, ii as i, gr as j, pr as k, Xr as l, Vr as m, _i as n, ni as o, Wr as p, Qt as q, hi as r, $r as s, Ma as t, Yr as u, Fr as v, Dr as w, xr as x, Ir as y, Mn as z };
|