@marimo-team/islands 0.25.2-dev9 → 0.25.2-dev90
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-CqhQmp74.js → ConnectedDataExplorerComponent-BZmqc_F0.js} +11 -11
- package/dist/{ErrorBoundary-BK6f6roX.js → ErrorBoundary-Cmnsp7X-.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-C_Lmaa2j.js} +3 -3
- package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-BFzqhOBR.js} +5 -5
- package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-BKMataHB.js} +5 -5
- package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
- package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
- package/dist/assets/__vite-browser-external-BqAtzd2P.js +1 -0
- package/dist/assets/{worker-D7hWi02M.js → worker-Bf8dt6S-.js} +5 -5
- package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
- package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-BeHOjyDk.js} +9 -9
- package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
- package/dist/{button-B0Xgl-Qn.js → button-BtsM2UqM.js} +300 -283
- package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-Bao10t_O.js} +7 -7
- package/dist/{capabilities-D7Ad8-zw.js → capabilities-A5jrzjCJ.js} +1 -1
- package/dist/{cells-5ppES-Un.js → cells-DZi0ioak.js} +4330 -4313
- package/dist/{channel-z7HZXHwv.js → channel-BxCkvUgE.js} +1 -1
- package/dist/{chat-ui-Dv2V95k6.js → chat-ui-CwOWzoSO.js} +46 -46
- package/dist/{check-DGZ74tV2.js → check-CNP79M3A.js} +1 -1
- package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-CH7Gpamd.js} +5 -5
- package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-AI7CvgKn.js} +1 -1
- package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BSvuTkX4.js} +1 -1
- package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-CLshwT9T.js} +1 -1
- package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-wnHcn-lH.js} +3 -3
- package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-7O2p8hut.js} +2 -2
- package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-Bu0Vh_Yi.js} +6 -6
- package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-B9_Alrxb.js} +5 -5
- package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-PeQPH2fD.js} +6 -6
- package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-D9twiFuU.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-BUiNs18s.js} +1 -1
- package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-D8S9NPCy.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-B2dyNZ31.js} +8 -8
- package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-D7UPvB10.js} +2 -2
- package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BNaGoadd.js} +6 -6
- package/dist/classDiagram-ZZMXUADV-Bbo2n384.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xR8cGP0r.js +30 -0
- package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
- package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
- package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
- package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
- package/dist/{code-visibility-Ba_h3MSI.js → code-visibility-B5ZN4pNx.js} +6 -6
- package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
- package/dist/{common-0rJUT4CU.js → common-C0fEcRVO.js} +11904 -11621
- package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
- package/dist/{copy-icon-qmRg_VTX.js → copy-icon-BY7jgcaV.js} +3 -3
- package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
- package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-DzaZEqgD.js → cynefinDiagram-5FMLGOSQ-CCDn4Z9e.js} +3 -3
- package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
- package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cjf5GjU3.js → dagre-GXQ25YYZ-BJiUO_SV.js} +10 -10
- package/dist/{data-grid-overlay-editor-DvZ8ZYHw.js → data-grid-overlay-editor-Cq0iaJqU.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-BZfxFNRR.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-1xcsiIMg.js} +3 -3
- package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-DPAWJ9Nw.js} +2 -2
- package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-DmRsnHYY.js} +5 -5
- package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII--b49ryKx.js} +3 -3
- package/dist/{dialog-CILKhbsG.js → dialog-CmExhUDI.js} +26 -26
- package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
- package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
- package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
- package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
- package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
- package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
- package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
- package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
- package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
- package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
- package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
- package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
- package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
- package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
- package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
- package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
- package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
- package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
- package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
- package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
- package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
- package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
- package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
- package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
- package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
- package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
- package/dist/dropdown-menu-Cz4TdOJh.js +4678 -0
- package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
- package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
- package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-DDd5hCRC.js → ebnfDiagram-PWID7BFC-rSwVyh4y.js} +3 -3
- package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
- package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
- package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
- package/dist/{erDiagram-RLTQ6QDP-D10NP0eI.js → erDiagram-RLTQ6QDP-Bfd3iAoC.js} +12 -12
- package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
- package/dist/error-banner-D30nA9nE.js +362 -0
- package/dist/{error-entries-B2Ux3Z2X.js → error-entries-BovkFYNy.js} +2 -2
- package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
- package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
- package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
- package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
- package/dist/{feedback-button-Bd-kdxIT.js → feedback-button-DpYfzMWP.js} +10 -10
- package/dist/flowDiagram-HODETNUW-D7IBKS12.js +16 -0
- package/dist/{formats-Q9gwlLyD.js → formats-DhhbdyAH.js} +3 -3
- package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
- package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-cRRaDt88.js → ganttDiagram-EL5Y4UJY-B4m_YsKa.js} +2 -2
- package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
- package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
- package/dist/{gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js → gitGraphDiagram-WWUBYQGX-QRBbvWXh.js} +2 -2
- package/dist/{glide-data-editor-DrEBdhP5.js → glide-data-editor-DFtk9eMf.js} +11 -11
- package/dist/{glide-utils-CzzWU59p.js → glide-utils-BVJ4fkxX.js} +3 -3
- package/dist/{globals-BVhJcU-3.js → globals-XdDkDS89.js} +3 -3
- package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
- package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
- package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
- package/dist/{html-to-image-BZBwkkDG.js → html-to-image-Cn1_16-x.js} +543 -565
- package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
- package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
- package/dist/{infoDiagram-27XIBGKW-DrYu3UZC.js → infoDiagram-27XIBGKW-DVQFYvhg.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-viPND-nm.js} +3 -3
- package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
- package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BeeJdJo3.js} +2 -2
- package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dcl_ECO9.js} +9 -9
- package/dist/{label-MNhNNoN6.js → label-DQO1jFjf.js} +96 -93
- package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
- package/dist/{loader-C9OUkMrj.js → loader-Cm-ATtou.js} +1 -1
- package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
- package/dist/main.js +6866 -6746
- package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
- package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
- package/dist/{mermaid-Dfvntf3s.js → mermaid-BfhcnSj-.js} +54 -54
- package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-BdxxhF-5.js} +11 -11
- package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
- package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
- package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
- package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
- package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
- package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
- package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
- package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
- package/dist/{number-overlay-editor-DthBBC83.js → number-overlay-editor-xPAwGgFC.js} +1 -1
- package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
- package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
- package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-D6v5dz4M.js → pegDiagram-XKGWAZYB-Du5p2s0w.js} +3 -3
- package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-DJg-SOIq.js} +3 -3
- package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
- package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
- package/dist/{process-output-BSsWzfnY.js → process-output-CUG57KRp.js} +4 -4
- package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
- package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
- package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
- package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
- package/dist/purify.es-DMv5zIkJ.js +866 -0
- package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
- package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
- package/dist/{quadrantDiagram-AXDQQJYC--kqzFC3w.js → quadrantDiagram-AXDQQJYC-keLfFx9f.js} +1 -1
- package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-C0ojm-6_.js} +3 -3
- package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CNwNBmI3.js} +11 -11
- package/dist/{reveal-component-CX4Yqwsa.js → reveal-component-B_bLilty.js} +10 -10
- package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
- package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
- package/dist/{sankeyDiagram-P5KCCOFB-BdzhT0BM.js → sankeyDiagram-P5KCCOFB-Bh4EsJox.js} +1 -1
- package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
- package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
- package/dist/select-Bs-nmvm6.js +1344 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-DQaW5qBG.js} +4 -4
- package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
- package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
- package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
- package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
- package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
- package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
- package/dist/{spec-D62vWpMT.js → spec-DVsoMvYT.js} +116 -135
- package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
- package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-Cq249IQ4.js → stateDiagram-D77RDMKH-BDa515QC.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-ChNddepZ.js +30 -0
- package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
- package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
- package/dist/{swimlanes-42K2YHIH-Bh_S_HKD.js → swimlanes-42K2YHIH-M4IdGi8J.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-FUSwmzEp.js +30 -0
- package/dist/{swiper-component-DkV7T44B.js → swiper-component-CpN-hewZ.js} +2 -2
- package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
- package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
- package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
- package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-ByNMgBE7.js → timeline-definition-24CTP7MA-DH-kvakg.js} +3 -3
- package/dist/{toDate-DWVp6uE1.js → toDate-vEi5kTfY.js} +4 -5
- package/dist/{toast-DcoJGS3-.js → toast-DfEpJedt.js} +157 -161
- package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
- package/dist/{tooltip-Bi36DgYh.js → tooltip-CuNWg2ay.js} +543 -579
- package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
- package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
- package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
- package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
- package/dist/{use-restore-focus-ZgG5Br63.js → use-restore-focus-kmgwrL8q.js} +1833 -1625
- package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-rkAlR_vh.js} +1 -1
- package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-C-tz65rD.js} +52 -31
- package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-BlHFBj5_.js} +1 -1
- package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-C1Bt04Iz.js} +1 -1
- package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-B68iY077.js} +3 -3
- package/dist/{useTheme-BOw801nZ.js → useTheme-BwSgeAFb.js} +2 -2
- package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
- package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
- package/dist/{vega-component-9siY74NS.js → vega-component-C-bPttRN.js} +9 -9
- package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-d5g7XeiI.js} +3 -3
- package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
- package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DYC1AFni.js → wardleyDiagram-VM6X3IG4-BfX3bSzR.js} +3 -3
- package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
- package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Df8LLnuY.js → xychartDiagram-S5SC5T6Z-C1QsLZg7.js} +5 -5
- package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
- package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
- package/package.json +16 -16
- package/src/__tests__/mount.test.ts +6 -6
- package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
- package/src/components/chat/tool-call/tool-result.tsx +3 -3
- package/src/components/data-table/TableTopBar.tsx +4 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
- package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
- package/src/components/data-table/__tests__/schemas.test.ts +57 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
- package/src/components/data-table/charts/constants.ts +11 -10
- package/src/components/data-table/charts/types.ts +1 -0
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +365 -81
- package/src/components/data-table/pagination.tsx +16 -2
- package/src/components/data-table/schemas.ts +90 -14
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
- package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
- package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
- package/src/components/editor/actions/useRestartKernel.tsx +2 -2
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +224 -17
- package/src/components/editor/alerts/connection-details.tsx +61 -0
- package/src/components/editor/alerts/connection-notice.tsx +46 -53
- package/src/components/editor/alerts/startup-progress.tsx +73 -129
- package/src/components/editor/app-container.tsx +2 -2
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +2 -2
- package/src/components/editor/cell/CreateCellButton.tsx +2 -2
- package/src/components/editor/cell/DeleteButton.tsx +2 -2
- package/src/components/editor/cell/RunButton.tsx +3 -3
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +4 -4
- package/src/components/editor/chrome/components/feedback-button.tsx +3 -3
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +8 -8
- package/src/components/editor/chrome/panels/__tests__/{sandbox-details.test.tsx → runtime-details.test.tsx} +94 -22
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +4 -4
- package/src/components/editor/chrome/panels/packages-panel.tsx +8 -29
- package/src/components/editor/chrome/panels/{sandbox-details-state.ts → runtime-details-state.ts} +1 -1
- package/src/components/editor/chrome/panels/{sandbox-panel.tsx → runtime-panel.tsx} +38 -66
- package/src/components/editor/chrome/panels/runtime-status-toggle.tsx +56 -0
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +2 -2
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +3 -3
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +2 -2
- package/src/components/editor/controls/Controls.tsx +3 -3
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +2 -2
- package/src/components/editor/header/__tests__/status.test.tsx +4 -4
- package/src/components/editor/header/app-header.tsx +2 -2
- package/src/components/editor/header/status.tsx +3 -3
- package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
- package/src/components/ui/__tests__/slider.test.tsx +30 -0
- package/src/components/ui/progress-stages.tsx +114 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +106 -5
- package/src/core/codemirror/lsp/notebook-lsp.ts +16 -2
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +6 -6
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/config/pair.ts +0 -1
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +2 -2
- package/src/core/edit-app.tsx +5 -1
- package/src/core/export/hooks.ts +2 -2
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/kernel/session.ts +9 -0
- package/src/core/network/__tests__/connection.test.ts +3 -3
- package/src/core/network/connection-notice.ts +5 -5
- package/src/core/network/connection.ts +9 -9
- package/src/core/network/requests-lazy.ts +2 -2
- package/src/core/packages/__tests__/useSandboxController.test.tsx +2 -2
- package/src/core/packages/useSandboxController.ts +6 -6
- package/src/core/runtime/__tests__/adapter.test.ts +6 -6
- package/src/core/runtime/adapter.ts +7 -7
- package/src/core/runtime/config.ts +2 -2
- package/src/core/saving/filename.ts +2 -2
- package/src/core/saving/save-component.tsx +5 -5
- package/src/core/saving/useAutoSave.ts +2 -2
- package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
- package/src/core/wasm/worker/bootstrap.ts +22 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +30 -25
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +5 -5
- package/src/core/websocket/connection-utils.ts +21 -21
- package/src/core/websocket/types.ts +8 -9
- package/src/core/websocket/useMarimoKernelConnection.tsx +33 -22
- package/src/css/katex.min.css +145 -144
- package/src/mount.tsx +2 -2
- package/src/plugins/core/__test__/registerReactComponent.test.ts +55 -0
- package/src/plugins/core/registerReactComponent.tsx +3 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DateRangePlugin.tsx +5 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DropdownPlugin.tsx +1 -1
- package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
- package/src/plugins/impl/NumberPlugin.tsx +1 -1
- package/src/plugins/impl/RadioPlugin.tsx +5 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
- package/src/plugins/impl/SearchableSelect.tsx +1 -1
- package/src/plugins/impl/SliderPlugin.tsx +1 -1
- package/src/plugins/impl/SwitchPlugin.tsx +6 -1
- package/src/plugins/impl/TextAreaPlugin.tsx +23 -4
- package/src/plugins/impl/TextInputPlugin.tsx +10 -2
- package/src/plugins/impl/__test__/text-labels.test.tsx +141 -0
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
- package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/common/labeled.tsx +9 -3
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
- package/src/stories/cell.stories.tsx +2 -2
- package/src/stories/dataframe.stories.tsx +7 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +5 -5
- package/src/stories/progress-stages.stories.tsx +62 -0
- package/src/stories/runtime-existing.stories.tsx +44 -0
- package/src/stories/runtime-maintenance.stories.tsx +40 -0
- package/src/stories/runtime-pixi.stories.tsx +28 -0
- package/src/stories/{sandbox.stories.tsx → runtime-story.tsx} +191 -152
- package/src/stories/runtime-uv.stories.tsx +56 -0
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
- package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
- package/dist/dropdown-menu-BaqM0t4N.js +0 -4502
- package/dist/error-banner-DzAmP0AQ.js +0 -391
- package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
- package/dist/purify.es-DgKyQviY.js +0 -805
- package/dist/select-BcObMjGz.js +0 -970
- package/dist/stateDiagram-v2-MP3YSRHH-Dk5QgdXF.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-CbztusY8.js +0 -30
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +0 -52
|
@@ -1,19 +1,19 @@
|
|
|
1
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-
|
|
2
|
+
import { g as n, h as r, p as i, r as a, t as o, u as s } from "./button-BtsM2UqM.js";
|
|
3
3
|
import { t as c } from "./react-ofJbxM4x.js";
|
|
4
4
|
import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { n as u, t as d } from "./copy-icon-
|
|
5
|
+
import { n as u, t as d } from "./copy-icon-BY7jgcaV.js";
|
|
6
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 _,
|
|
8
|
-
import { A as
|
|
9
|
-
import { M as
|
|
10
|
-
import {
|
|
11
|
-
import { g as
|
|
12
|
-
import { t as
|
|
13
|
-
import { Ct as
|
|
14
|
-
import { A as
|
|
15
|
-
import { $ as Ye } from "./dist-
|
|
16
|
-
import { t as Xe } from "./useAsyncData-
|
|
7
|
+
import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-CuNWg2ay.js";
|
|
8
|
+
import { A as te, E as ne, G as re, Nt as ie, O as ae, R as oe, St as se, Z as ce, Zt as le, _t as ue, en as de, et as fe, gt as pe, h as me, ht as he, lt as ge, s as _e, t as ve, vt as ye, xt as be, yt as xe, z as Se } from "./cells-DZi0ioak.js";
|
|
9
|
+
import { M as Ce, O as we, k as Te } from "./select-Bs-nmvm6.js";
|
|
10
|
+
import { dt as Ee, q as De } from "./dropdown-menu-Cz4TdOJh.js";
|
|
11
|
+
import { g as Oe, x as ke } from "./toDate-vEi5kTfY.js";
|
|
12
|
+
import { t as Ae } from "./jsx-runtime-DgDPJV9S.js";
|
|
13
|
+
import { Ct as je, K as Me, Q as Ne, St as S, X as Pe, Y as Fe, bt as C, ct as Ie, dt as Le, ft as Re, ht as ze, lt as Be, pt as Ve, vt as He, wt as w, xt as Ue, yt as We } from "./use-restore-focus-kmgwrL8q.js";
|
|
14
|
+
import { A as Ge, C as T, E as Ke, _ as E, c as qe, n as Je } from "./useTheme-BwSgeAFb.js";
|
|
15
|
+
import { $ as Ye } from "./dist-DoE4XJBC.js";
|
|
16
|
+
import { t as Xe } from "./useAsyncData-rkAlR_vh.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
18
18
|
var Ze = /* @__PURE__ */ t(((e) => {
|
|
19
19
|
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;
|
|
@@ -1286,7 +1286,7 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1286
1286
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
1287
1287
|
return e ? (0, r.default)((0, n.default)(e, t?.htmlparser2 ?? a), t) : [];
|
|
1288
1288
|
}
|
|
1289
|
-
})),
|
|
1289
|
+
})), D = /* @__PURE__ */ e(c(), 1), O = l(), k = /* @__PURE__ */ e(lt(), 1), ut = k.default.default || k.default, dt = v("between-horizontal-start", [
|
|
1290
1290
|
["rect", {
|
|
1291
1291
|
width: "13",
|
|
1292
1292
|
height: "7",
|
|
@@ -1307,10 +1307,10 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1307
1307
|
rx: "1",
|
|
1308
1308
|
key: "1q5fc1"
|
|
1309
1309
|
}]
|
|
1310
|
-
]), ft =
|
|
1310
|
+
]), ft = v("loader-circle", [["path", {
|
|
1311
1311
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
1312
1312
|
key: "13zald"
|
|
1313
|
-
}]]), pt =
|
|
1313
|
+
}]]), pt = v("trash-2", [
|
|
1314
1314
|
["path", {
|
|
1315
1315
|
d: "M10 11v6",
|
|
1316
1316
|
key: "nco0om"
|
|
@@ -1331,64 +1331,61 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1331
1331
|
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
1332
1332
|
key: "e791ji"
|
|
1333
1333
|
}]
|
|
1334
|
-
]), mt =
|
|
1334
|
+
]), mt = v("wrench", [["path", {
|
|
1335
1335
|
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",
|
|
1336
1336
|
key: "1ngwbx"
|
|
1337
|
-
}]]),
|
|
1338
|
-
|
|
1337
|
+
}]]), A = Ae(), ht = Object.defineProperty, j = (e, t) => ht(e, "name", {
|
|
1338
|
+
value: t,
|
|
1339
|
+
configurable: !0
|
|
1340
|
+
}), M = "Collapsible", [gt, _t] = je(M), [vt, N] = gt(M), yt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1341
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = C({
|
|
1339
1342
|
prop: r,
|
|
1340
1343
|
defaultProp: i ?? !1,
|
|
1341
1344
|
onChange: o,
|
|
1342
1345
|
caller: M
|
|
1343
1346
|
});
|
|
1344
|
-
return /* @__PURE__ */ (0,
|
|
1347
|
+
return /* @__PURE__ */ (0, A.jsx)(vt, {
|
|
1345
1348
|
scope: n,
|
|
1346
1349
|
disabled: a,
|
|
1347
|
-
contentId:
|
|
1350
|
+
contentId: He(),
|
|
1348
1351
|
open: c,
|
|
1349
|
-
onOpenToggle:
|
|
1350
|
-
children: /* @__PURE__ */ (0,
|
|
1351
|
-
"data-state":
|
|
1352
|
+
onOpenToggle: D.useCallback(() => l((e) => !e), [l]),
|
|
1353
|
+
children: /* @__PURE__ */ (0, A.jsx)(w.div, {
|
|
1354
|
+
"data-state": P(c),
|
|
1352
1355
|
"data-disabled": a ? "" : void 0,
|
|
1353
1356
|
...s,
|
|
1354
1357
|
ref: t
|
|
1355
1358
|
})
|
|
1356
1359
|
});
|
|
1357
|
-
})
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
let { __scopeCollapsible: n, ...r } = e, i = vt(bt, n);
|
|
1361
|
-
return /* @__PURE__ */ (0, j.jsx)(C.button, {
|
|
1360
|
+
}, "Collapsible")), bt = "CollapsibleTrigger", xt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1361
|
+
let { __scopeCollapsible: n, ...r } = e, i = N(bt, n);
|
|
1362
|
+
return /* @__PURE__ */ (0, A.jsx)(w.button, {
|
|
1362
1363
|
type: "button",
|
|
1363
|
-
"aria-controls": i.contentId,
|
|
1364
|
+
"aria-controls": i.open ? i.contentId : void 0,
|
|
1364
1365
|
"aria-expanded": i.open || !1,
|
|
1365
|
-
"data-state":
|
|
1366
|
+
"data-state": P(i.open),
|
|
1366
1367
|
"data-disabled": i.disabled ? "" : void 0,
|
|
1367
1368
|
disabled: i.disabled,
|
|
1368
1369
|
...r,
|
|
1369
1370
|
ref: t,
|
|
1370
1371
|
onClick: S(e.onClick, i.onOpenToggle)
|
|
1371
1372
|
});
|
|
1372
|
-
})
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
let { forceMount: n, ...r } = e, i = vt(St, e.__scopeCollapsible);
|
|
1376
|
-
return /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1373
|
+
}, "CollapsibleTrigger")), St = "CollapsibleContent", Ct = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1374
|
+
let { forceMount: n, ...r } = e, i = N(St, e.__scopeCollapsible);
|
|
1375
|
+
return /* @__PURE__ */ (0, A.jsx)(We, {
|
|
1377
1376
|
present: n || i.open,
|
|
1378
|
-
children: ({ present: e }) => /* @__PURE__ */ (0,
|
|
1377
|
+
children: ({ present: e }) => /* @__PURE__ */ (0, A.jsx)(wt, {
|
|
1379
1378
|
...r,
|
|
1380
1379
|
ref: t,
|
|
1381
1380
|
present: e
|
|
1382
1381
|
})
|
|
1383
1382
|
});
|
|
1384
|
-
})
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
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);
|
|
1388
|
-
return O.useEffect(() => {
|
|
1383
|
+
}, "CollapsibleContent")), wt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1384
|
+
let { __scopeCollapsible: n, present: r, children: a, ...o } = e, s = N(St, n), [c, l] = D.useState(r), u = D.useRef(null), d = i(t, u), f = D.useRef(0), p = f.current, m = D.useRef(0), h = m.current, g = s.open || c, _ = D.useRef(g), v = D.useRef(void 0);
|
|
1385
|
+
return D.useEffect(() => {
|
|
1389
1386
|
let e = requestAnimationFrame(() => _.current = !1);
|
|
1390
1387
|
return () => cancelAnimationFrame(e);
|
|
1391
|
-
}, []),
|
|
1388
|
+
}, []), Ue(() => {
|
|
1392
1389
|
let e = u.current;
|
|
1393
1390
|
if (e) {
|
|
1394
1391
|
v.current = v.current || {
|
|
@@ -1398,8 +1395,8 @@ var wt = O.forwardRef((e, t) => {
|
|
|
1398
1395
|
let t = e.getBoundingClientRect();
|
|
1399
1396
|
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
1400
1397
|
}
|
|
1401
|
-
}, [s.open, r]), /* @__PURE__ */ (0,
|
|
1402
|
-
"data-state":
|
|
1398
|
+
}, [s.open, r]), /* @__PURE__ */ (0, A.jsx)(w.div, {
|
|
1399
|
+
"data-state": P(s.open),
|
|
1403
1400
|
"data-disabled": s.disabled ? "" : void 0,
|
|
1404
1401
|
id: s.contentId,
|
|
1405
1402
|
hidden: !g,
|
|
@@ -1412,84 +1409,86 @@ var wt = O.forwardRef((e, t) => {
|
|
|
1412
1409
|
},
|
|
1413
1410
|
children: g && a
|
|
1414
1411
|
});
|
|
1415
|
-
});
|
|
1416
|
-
function
|
|
1412
|
+
}, "CollapsibleContentImpl"));
|
|
1413
|
+
function P(e) {
|
|
1417
1414
|
return e ? "open" : "closed";
|
|
1418
1415
|
}
|
|
1419
|
-
|
|
1416
|
+
j(P, "getState");
|
|
1417
|
+
var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "name", {
|
|
1418
|
+
value: t,
|
|
1419
|
+
configurable: !0
|
|
1420
|
+
}), I = "Accordion", kt = [
|
|
1420
1421
|
"Home",
|
|
1421
1422
|
"End",
|
|
1422
1423
|
"ArrowDown",
|
|
1423
1424
|
"ArrowUp",
|
|
1424
1425
|
"ArrowLeft",
|
|
1425
1426
|
"ArrowRight"
|
|
1426
|
-
], [
|
|
1427
|
+
], [At, jt, Mt] = Te(I), [L, Nt] = je(I, [Mt, _t]), Pt = _t(), Ft = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1427
1428
|
let { type: n, ...r } = e, i = r, a = r;
|
|
1428
|
-
return /* @__PURE__ */ (0,
|
|
1429
|
+
return /* @__PURE__ */ (0, A.jsx)(At.Provider, {
|
|
1429
1430
|
scope: e.__scopeAccordion,
|
|
1430
|
-
children: n === "multiple" ? /* @__PURE__ */ (0,
|
|
1431
|
+
children: n === "multiple" ? /* @__PURE__ */ (0, A.jsx)(Vt, {
|
|
1431
1432
|
...a,
|
|
1432
1433
|
ref: t
|
|
1433
|
-
}) : /* @__PURE__ */ (0,
|
|
1434
|
+
}) : /* @__PURE__ */ (0, A.jsx)(Bt, {
|
|
1434
1435
|
...i,
|
|
1435
1436
|
ref: t
|
|
1436
1437
|
})
|
|
1437
1438
|
});
|
|
1438
|
-
})
|
|
1439
|
-
|
|
1440
|
-
var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e, t) => {
|
|
1441
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: a = !1, ...o } = e, [s, c] = w({
|
|
1439
|
+
}, "Accordion")), [It, Lt] = L(I), [Rt, zt] = L(I, { collapsible: !1 }), Bt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1440
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] = C({
|
|
1442
1441
|
prop: n,
|
|
1443
1442
|
defaultProp: r ?? "",
|
|
1444
1443
|
onChange: i,
|
|
1445
|
-
caller:
|
|
1444
|
+
caller: I
|
|
1446
1445
|
});
|
|
1447
|
-
return /* @__PURE__ */ (0,
|
|
1446
|
+
return /* @__PURE__ */ (0, A.jsx)(It, {
|
|
1448
1447
|
scope: e.__scopeAccordion,
|
|
1449
|
-
value:
|
|
1448
|
+
value: D.useMemo(() => s ? [s] : [], [s]),
|
|
1450
1449
|
onItemOpen: c,
|
|
1451
|
-
onItemClose:
|
|
1452
|
-
children: /* @__PURE__ */ (0,
|
|
1450
|
+
onItemClose: D.useCallback(() => a && c(""), [a, c]),
|
|
1451
|
+
children: /* @__PURE__ */ (0, A.jsx)(Rt, {
|
|
1453
1452
|
scope: e.__scopeAccordion,
|
|
1454
1453
|
collapsible: a,
|
|
1455
|
-
children: /* @__PURE__ */ (0,
|
|
1454
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ut, {
|
|
1456
1455
|
...o,
|
|
1457
1456
|
ref: t
|
|
1458
1457
|
})
|
|
1459
1458
|
})
|
|
1460
1459
|
});
|
|
1461
|
-
}),
|
|
1462
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] =
|
|
1460
|
+
}, "AccordionImplSingle")), Vt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1461
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), ...a } = e, [o, s] = C({
|
|
1463
1462
|
prop: n,
|
|
1464
1463
|
defaultProp: r ?? [],
|
|
1465
1464
|
onChange: i,
|
|
1466
|
-
caller:
|
|
1467
|
-
}), c =
|
|
1468
|
-
return /* @__PURE__ */ (0,
|
|
1465
|
+
caller: I
|
|
1466
|
+
}), c = D.useCallback((e) => s((t = []) => [...t, e]), [s]), l = D.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
1467
|
+
return /* @__PURE__ */ (0, A.jsx)(It, {
|
|
1469
1468
|
scope: e.__scopeAccordion,
|
|
1470
1469
|
value: o,
|
|
1471
1470
|
onItemOpen: c,
|
|
1472
1471
|
onItemClose: l,
|
|
1473
|
-
children: /* @__PURE__ */ (0,
|
|
1472
|
+
children: /* @__PURE__ */ (0, A.jsx)(Rt, {
|
|
1474
1473
|
scope: e.__scopeAccordion,
|
|
1475
1474
|
collapsible: !0,
|
|
1476
|
-
children: /* @__PURE__ */ (0,
|
|
1475
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ut, {
|
|
1477
1476
|
...a,
|
|
1478
1477
|
ref: t
|
|
1479
1478
|
})
|
|
1480
1479
|
})
|
|
1481
1480
|
});
|
|
1482
|
-
}), [
|
|
1483
|
-
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c =
|
|
1481
|
+
}, "AccordionImplMultiple")), [Ht, R] = L(I), Ut = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1482
|
+
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = D.useRef(null), l = i(c, t), u = jt(n), d = we(a) === "ltr", f = S(e.onKeyDown, (e) => {
|
|
1484
1483
|
if (!kt.includes(e.key)) return;
|
|
1485
1484
|
let t = e.target, n = u().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
1486
1485
|
if (r === -1) return;
|
|
1487
1486
|
e.preventDefault();
|
|
1488
|
-
let a = r, s = i - 1, c = () => {
|
|
1487
|
+
let a = r, s = i - 1, c = /* @__PURE__ */ F(() => {
|
|
1489
1488
|
a = r + 1, a > s && (a = 0);
|
|
1490
|
-
}, l = () => {
|
|
1489
|
+
}, "moveNext"), l = /* @__PURE__ */ F(() => {
|
|
1491
1490
|
a = r - 1, a < 0 && (a = s);
|
|
1492
|
-
};
|
|
1491
|
+
}, "movePrev");
|
|
1493
1492
|
switch (e.key) {
|
|
1494
1493
|
case "Home":
|
|
1495
1494
|
a = 0;
|
|
@@ -1510,14 +1509,14 @@ var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e,
|
|
|
1510
1509
|
}
|
|
1511
1510
|
n[a % i].ref.current?.focus();
|
|
1512
1511
|
});
|
|
1513
|
-
return /* @__PURE__ */ (0,
|
|
1512
|
+
return /* @__PURE__ */ (0, A.jsx)(Ht, {
|
|
1514
1513
|
scope: n,
|
|
1515
1514
|
disabled: r,
|
|
1516
1515
|
direction: a,
|
|
1517
1516
|
orientation: o,
|
|
1518
|
-
children: /* @__PURE__ */ (0,
|
|
1517
|
+
children: /* @__PURE__ */ (0, A.jsx)(At.Slot, {
|
|
1519
1518
|
scope: n,
|
|
1520
|
-
children: /* @__PURE__ */ (0,
|
|
1519
|
+
children: /* @__PURE__ */ (0, A.jsx)(w.div, {
|
|
1521
1520
|
...s,
|
|
1522
1521
|
"data-orientation": o,
|
|
1523
1522
|
ref: l,
|
|
@@ -1525,16 +1524,16 @@ var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e,
|
|
|
1525
1524
|
})
|
|
1526
1525
|
})
|
|
1527
1526
|
});
|
|
1528
|
-
}),
|
|
1529
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a =
|
|
1530
|
-
return /* @__PURE__ */ (0,
|
|
1527
|
+
}, "AccordionImpl")), Wt = "AccordionItem", [Gt, Kt] = L(Wt), qt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1528
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = R(Wt, n), o = Lt(Wt, n), s = Pt(n), c = He(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
1529
|
+
return /* @__PURE__ */ (0, A.jsx)(Gt, {
|
|
1531
1530
|
scope: n,
|
|
1532
1531
|
open: l,
|
|
1533
1532
|
disabled: u,
|
|
1534
1533
|
triggerId: c,
|
|
1535
|
-
children: /* @__PURE__ */ (0,
|
|
1534
|
+
children: /* @__PURE__ */ (0, A.jsx)(Tt, {
|
|
1536
1535
|
"data-orientation": a.orientation,
|
|
1537
|
-
"data-state":
|
|
1536
|
+
"data-state": en(l),
|
|
1538
1537
|
...s,
|
|
1539
1538
|
...i,
|
|
1540
1539
|
ref: t,
|
|
@@ -1545,24 +1544,20 @@ var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e,
|
|
|
1545
1544
|
}
|
|
1546
1545
|
})
|
|
1547
1546
|
});
|
|
1548
|
-
})
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(Gt, n);
|
|
1552
|
-
return /* @__PURE__ */ (0, j.jsx)(C.h3, {
|
|
1547
|
+
}, "AccordionItem")), Jt = "AccordionHeader", Yt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1548
|
+
let { __scopeAccordion: n, ...r } = e, i = R(I, n), a = Kt(Jt, n);
|
|
1549
|
+
return /* @__PURE__ */ (0, A.jsx)(w.h3, {
|
|
1553
1550
|
"data-orientation": i.orientation,
|
|
1554
|
-
"data-state":
|
|
1551
|
+
"data-state": en(a.open),
|
|
1555
1552
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1556
1553
|
...r,
|
|
1557
1554
|
ref: t
|
|
1558
1555
|
});
|
|
1559
|
-
})
|
|
1560
|
-
Kt
|
|
1561
|
-
|
|
1562
|
-
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(qt, n), o = Rt(qt, n), s = Nt(n);
|
|
1563
|
-
return /* @__PURE__ */ (0, j.jsx)(P.ItemSlot, {
|
|
1556
|
+
}, "AccordionHeader")), Xt = "AccordionTrigger", Zt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1557
|
+
let { __scopeAccordion: n, ...r } = e, i = R(I, n), a = Kt(Xt, n), o = zt(Xt, n), s = Pt(n);
|
|
1558
|
+
return /* @__PURE__ */ (0, A.jsx)(At.ItemSlot, {
|
|
1564
1559
|
scope: n,
|
|
1565
|
-
children: /* @__PURE__ */ (0,
|
|
1560
|
+
children: /* @__PURE__ */ (0, A.jsx)(Et, {
|
|
1566
1561
|
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
1567
1562
|
"data-orientation": i.orientation,
|
|
1568
1563
|
id: a.triggerId,
|
|
@@ -1571,11 +1566,9 @@ var qt = "AccordionTrigger", Jt = O.forwardRef((e, t) => {
|
|
|
1571
1566
|
ref: t
|
|
1572
1567
|
})
|
|
1573
1568
|
});
|
|
1574
|
-
})
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
let { __scopeAccordion: n, ...r } = e, i = I(N, n), a = R(Yt, n), o = Nt(n);
|
|
1578
|
-
return /* @__PURE__ */ (0, j.jsx)(Ot, {
|
|
1569
|
+
}, "AccordionTrigger")), Qt = "AccordionContent", $t = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1570
|
+
let { __scopeAccordion: n, ...r } = e, i = R(I, n), a = Kt(Qt, n), o = Pt(n);
|
|
1571
|
+
return /* @__PURE__ */ (0, A.jsx)(Dt, {
|
|
1579
1572
|
role: "region",
|
|
1580
1573
|
"aria-labelledby": a.triggerId,
|
|
1581
1574
|
"data-orientation": i.orientation,
|
|
@@ -1588,102 +1581,95 @@ var Yt = "AccordionContent", Xt = O.forwardRef((e, t) => {
|
|
|
1588
1581
|
...e.style
|
|
1589
1582
|
}
|
|
1590
1583
|
});
|
|
1591
|
-
});
|
|
1592
|
-
|
|
1593
|
-
function Zt(e) {
|
|
1584
|
+
}, "AccordionContent"));
|
|
1585
|
+
function en(e) {
|
|
1594
1586
|
return e ? "open" : "closed";
|
|
1595
1587
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1588
|
+
F(en, "getState");
|
|
1589
|
+
var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z = (e, t) => sn(e, "name", {
|
|
1590
|
+
value: t,
|
|
1591
|
+
configurable: !0
|
|
1592
|
+
}), B = "Popover", [cn, ln] = je(B, [ee]), V = ee(), [un, H] = cn(B), dn = /* @__PURE__ */ z((e) => {
|
|
1593
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = V(t), c = D.useRef(null), [l, u] = D.useState(!1), [d, f] = C({
|
|
1598
1594
|
prop: r,
|
|
1599
1595
|
defaultProp: i ?? !1,
|
|
1600
1596
|
onChange: a,
|
|
1601
|
-
caller:
|
|
1597
|
+
caller: B
|
|
1602
1598
|
});
|
|
1603
|
-
return /* @__PURE__ */ (0,
|
|
1599
|
+
return /* @__PURE__ */ (0, A.jsx)(y, {
|
|
1604
1600
|
...s,
|
|
1605
|
-
children: /* @__PURE__ */ (0,
|
|
1601
|
+
children: /* @__PURE__ */ (0, A.jsx)(un, {
|
|
1606
1602
|
scope: t,
|
|
1607
|
-
contentId:
|
|
1603
|
+
contentId: He(),
|
|
1608
1604
|
triggerRef: c,
|
|
1609
1605
|
open: d,
|
|
1610
1606
|
onOpenChange: f,
|
|
1611
|
-
onOpenToggle:
|
|
1607
|
+
onOpenToggle: D.useCallback(() => f((e) => !e), [f]),
|
|
1612
1608
|
hasCustomAnchor: l,
|
|
1613
|
-
onCustomAnchorAdd:
|
|
1614
|
-
onCustomAnchorRemove:
|
|
1609
|
+
onCustomAnchorAdd: D.useCallback(() => u(!0), []),
|
|
1610
|
+
onCustomAnchorRemove: D.useCallback(() => u(!1), []),
|
|
1615
1611
|
modal: o,
|
|
1616
1612
|
children: n
|
|
1617
1613
|
})
|
|
1618
1614
|
});
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
let { __scopePopover: n, ...r } = e, i = V(cn, n), a = B(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
1623
|
-
return O.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, j.jsx)(x, {
|
|
1615
|
+
}, "Popover"), fn = "PopoverAnchor", pn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1616
|
+
let { __scopePopover: n, ...r } = e, i = H(fn, n), a = V(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
1617
|
+
return D.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, A.jsx)(b, {
|
|
1624
1618
|
...a,
|
|
1625
1619
|
...r,
|
|
1626
1620
|
ref: t
|
|
1627
1621
|
});
|
|
1628
|
-
})
|
|
1629
|
-
|
|
1630
|
-
var un = "PopoverTrigger", dn = O.forwardRef((e, t) => {
|
|
1631
|
-
let { __scopePopover: n, ...r } = e, a = V(un, n), o = B(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, j.jsx)(C.button, {
|
|
1622
|
+
}, "PopoverAnchor")), mn = "PopoverTrigger", hn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1623
|
+
let { __scopePopover: n, ...r } = e, a = H(mn, n), o = V(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, A.jsx)(w.button, {
|
|
1632
1624
|
type: "button",
|
|
1633
1625
|
"aria-haspopup": "dialog",
|
|
1634
1626
|
"aria-expanded": a.open,
|
|
1635
|
-
"aria-controls": a.contentId,
|
|
1636
|
-
"data-state":
|
|
1627
|
+
"aria-controls": a.open ? a.contentId : void 0,
|
|
1628
|
+
"data-state": Dn(a.open),
|
|
1637
1629
|
...r,
|
|
1638
1630
|
ref: s,
|
|
1639
1631
|
onClick: S(e.onClick, a.onOpenToggle)
|
|
1640
1632
|
});
|
|
1641
|
-
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0,
|
|
1633
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0, A.jsx)(b, {
|
|
1642
1634
|
asChild: !0,
|
|
1643
1635
|
...o,
|
|
1644
1636
|
children: c
|
|
1645
1637
|
});
|
|
1646
|
-
})
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = V(H, t);
|
|
1650
|
-
return /* @__PURE__ */ (0, j.jsx)(fn, {
|
|
1638
|
+
}, "PopoverTrigger")), gn = "PopoverPortal", [_n, vn] = cn(gn, { forceMount: void 0 }), yn = /* @__PURE__ */ z((e) => {
|
|
1639
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = H(gn, t);
|
|
1640
|
+
return /* @__PURE__ */ (0, A.jsx)(_n, {
|
|
1651
1641
|
scope: t,
|
|
1652
1642
|
forceMount: n,
|
|
1653
|
-
children: /* @__PURE__ */ (0,
|
|
1643
|
+
children: /* @__PURE__ */ (0, A.jsx)(We, {
|
|
1654
1644
|
present: n || a.open,
|
|
1655
|
-
children: /* @__PURE__ */ (0,
|
|
1645
|
+
children: /* @__PURE__ */ (0, A.jsx)(Re, {
|
|
1656
1646
|
asChild: !0,
|
|
1657
1647
|
container: i,
|
|
1658
1648
|
children: r
|
|
1659
1649
|
})
|
|
1660
1650
|
})
|
|
1661
1651
|
});
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
let n = pn(U, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = V(U, e.__scopePopover);
|
|
1666
|
-
return /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1652
|
+
}, "PopoverPortal"), U = "PopoverContent", bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1653
|
+
let n = vn(U, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = H(U, e.__scopePopover);
|
|
1654
|
+
return /* @__PURE__ */ (0, A.jsx)(We, {
|
|
1667
1655
|
present: r || a.open,
|
|
1668
|
-
children: a.modal ? /* @__PURE__ */ (0,
|
|
1656
|
+
children: a.modal ? /* @__PURE__ */ (0, A.jsx)(Sn, {
|
|
1669
1657
|
...i,
|
|
1670
1658
|
ref: t
|
|
1671
|
-
}) : /* @__PURE__ */ (0,
|
|
1659
|
+
}) : /* @__PURE__ */ (0, A.jsx)(Cn, {
|
|
1672
1660
|
...i,
|
|
1673
1661
|
ref: t
|
|
1674
1662
|
})
|
|
1675
1663
|
});
|
|
1676
|
-
})
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
let n = V(U, e.__scopePopover), r = O.useRef(null), a = i(t, r), o = O.useRef(!1);
|
|
1680
|
-
return O.useEffect(() => {
|
|
1664
|
+
}, "PopoverContent")), xn = s("PopoverContent.RemoveScroll"), Sn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1665
|
+
let n = H(U, e.__scopePopover), r = D.useRef(null), a = i(t, r), o = D.useRef(!1);
|
|
1666
|
+
return D.useEffect(() => {
|
|
1681
1667
|
let e = r.current;
|
|
1682
|
-
if (e) return
|
|
1683
|
-
}, []), /* @__PURE__ */ (0,
|
|
1684
|
-
as:
|
|
1668
|
+
if (e) return Ie(e);
|
|
1669
|
+
}, []), /* @__PURE__ */ (0, A.jsx)(Be, {
|
|
1670
|
+
as: xn,
|
|
1685
1671
|
allowPinchZoom: !0,
|
|
1686
|
-
children: /* @__PURE__ */ (0,
|
|
1672
|
+
children: /* @__PURE__ */ (0, A.jsx)(wn, {
|
|
1687
1673
|
...e,
|
|
1688
1674
|
ref: a,
|
|
1689
1675
|
trapFocus: n.open,
|
|
@@ -1698,9 +1684,9 @@ var gn = s("PopoverContent.RemoveScroll"), _n = O.forwardRef((e, t) => {
|
|
|
1698
1684
|
onFocusOutside: S(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
1699
1685
|
})
|
|
1700
1686
|
});
|
|
1701
|
-
}),
|
|
1702
|
-
let n =
|
|
1703
|
-
return /* @__PURE__ */ (0,
|
|
1687
|
+
}, "PopoverContentModal")), Cn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1688
|
+
let n = H(U, e.__scopePopover), r = D.useRef(!1), i = D.useRef(!1);
|
|
1689
|
+
return /* @__PURE__ */ (0, A.jsx)(wn, {
|
|
1704
1690
|
...e,
|
|
1705
1691
|
ref: t,
|
|
1706
1692
|
trapFocus: !1,
|
|
@@ -1714,15 +1700,15 @@ var gn = s("PopoverContent.RemoveScroll"), _n = O.forwardRef((e, t) => {
|
|
|
1714
1700
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
1715
1701
|
}
|
|
1716
1702
|
});
|
|
1717
|
-
}),
|
|
1718
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f =
|
|
1719
|
-
return
|
|
1703
|
+
}, "PopoverContentNonModal")), wn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1704
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f = H(U, n), p = V(n);
|
|
1705
|
+
return Le(), /* @__PURE__ */ (0, A.jsx)(Ve, {
|
|
1720
1706
|
asChild: !0,
|
|
1721
1707
|
loop: !0,
|
|
1722
1708
|
trapped: r,
|
|
1723
1709
|
onMountAutoFocus: i,
|
|
1724
1710
|
onUnmountAutoFocus: a,
|
|
1725
|
-
children: /* @__PURE__ */ (0,
|
|
1711
|
+
children: /* @__PURE__ */ (0, A.jsx)(ze, {
|
|
1726
1712
|
asChild: !0,
|
|
1727
1713
|
disableOutsidePointerEvents: o,
|
|
1728
1714
|
onInteractOutside: u,
|
|
@@ -1730,8 +1716,9 @@ var gn = s("PopoverContent.RemoveScroll"), _n = O.forwardRef((e, t) => {
|
|
|
1730
1716
|
onPointerDownOutside: c,
|
|
1731
1717
|
onFocusOutside: l,
|
|
1732
1718
|
onDismiss: () => f.onOpenChange(!1),
|
|
1733
|
-
|
|
1734
|
-
|
|
1719
|
+
deferPointerDownOutside: !0,
|
|
1720
|
+
children: /* @__PURE__ */ (0, A.jsx)(_, {
|
|
1721
|
+
"data-state": Dn(f.open),
|
|
1735
1722
|
role: "dialog",
|
|
1736
1723
|
id: f.contentId,
|
|
1737
1724
|
...p,
|
|
@@ -1748,32 +1735,23 @@ var gn = s("PopoverContent.RemoveScroll"), _n = O.forwardRef((e, t) => {
|
|
|
1748
1735
|
})
|
|
1749
1736
|
})
|
|
1750
1737
|
});
|
|
1751
|
-
}),
|
|
1752
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
1753
|
-
return /* @__PURE__ */ (0,
|
|
1738
|
+
}, "PopoverContentImpl")), Tn = "PopoverClose", En = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1739
|
+
let { __scopePopover: n, ...r } = e, i = H(Tn, n);
|
|
1740
|
+
return /* @__PURE__ */ (0, A.jsx)(w.button, {
|
|
1754
1741
|
type: "button",
|
|
1755
1742
|
...r,
|
|
1756
1743
|
ref: t,
|
|
1757
1744
|
onClick: S(e.onClick, () => i.onOpenChange(!1))
|
|
1758
1745
|
});
|
|
1759
|
-
});
|
|
1760
|
-
|
|
1761
|
-
var Sn = "PopoverArrow", Cn = O.forwardRef((e, t) => {
|
|
1762
|
-
let { __scopePopover: n, ...r } = e, i = B(n);
|
|
1763
|
-
return /* @__PURE__ */ (0, j.jsx)(_, {
|
|
1764
|
-
...i,
|
|
1765
|
-
...r,
|
|
1766
|
-
ref: t
|
|
1767
|
-
});
|
|
1768
|
-
});
|
|
1769
|
-
Cn.displayName = Sn;
|
|
1770
|
-
function wn(e) {
|
|
1746
|
+
}, "PopoverClose"));
|
|
1747
|
+
function Dn(e) {
|
|
1771
1748
|
return e ? "open" : "closed";
|
|
1772
1749
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1750
|
+
z(Dn, "getState");
|
|
1751
|
+
var On = dn, kn = pn, An = hn, jn = yn, Mn = bn, Nn = En, Pn = (e) => {
|
|
1752
|
+
let t = (0, O.c)(16), n, r, i;
|
|
1775
1753
|
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);
|
|
1776
|
-
let a = (0,
|
|
1754
|
+
let a = (0, D.useRef)(null), o;
|
|
1777
1755
|
t[4] === r ? o = t[5] : (o = () => {
|
|
1778
1756
|
let e = new URL(globalThis.location.href);
|
|
1779
1757
|
e.hash = r, globalThis.history.pushState({}, "", e.toString()), globalThis.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
@@ -1787,12 +1765,12 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
|
|
|
1787
1765
|
t[6] === s ? c = t[7] : (c = { onPress: () => {
|
|
1788
1766
|
s();
|
|
1789
1767
|
} }, t[6] = s, t[7] = c);
|
|
1790
|
-
let { pressProps: l } =
|
|
1768
|
+
let { pressProps: l } = Ee(c), u;
|
|
1791
1769
|
t[8] === s ? u = t[9] : (u = (e) => {
|
|
1792
1770
|
e.preventDefault(), s();
|
|
1793
1771
|
}, t[8] = s, t[9] = u);
|
|
1794
1772
|
let d = u, f;
|
|
1795
|
-
return t[10] !== n || t[11] !== d || t[12] !== r || t[13] !== l || t[14] !== i ? (f = /* @__PURE__ */ (0,
|
|
1773
|
+
return t[10] !== n || t[11] !== d || t[12] !== r || t[13] !== l || t[14] !== i ? (f = /* @__PURE__ */ (0, A.jsx)("a", {
|
|
1796
1774
|
ref: a,
|
|
1797
1775
|
href: r,
|
|
1798
1776
|
...l,
|
|
@@ -1800,8 +1778,8 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
|
|
|
1800
1778
|
...i,
|
|
1801
1779
|
children: n
|
|
1802
1780
|
}), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
|
|
1803
|
-
},
|
|
1804
|
-
let n = (0,
|
|
1781
|
+
}, Fn = On, In = An, Ln = Fe(jn), Rn = Nn, zn = Pe(Mn), Bn = D.forwardRef((e, t) => {
|
|
1782
|
+
let n = (0, O.c)(22), i, a, o, s, c, l;
|
|
1805
1783
|
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);
|
|
1806
1784
|
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;
|
|
1807
1785
|
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];
|
|
@@ -1811,7 +1789,7 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
|
|
|
1811
1789
|
maxHeight: g
|
|
1812
1790
|
}, n[10] = a.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
1813
1791
|
let v;
|
|
1814
|
-
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0,
|
|
1792
|
+
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, A.jsx)(Ne, { children: /* @__PURE__ */ (0, A.jsx)(zn, {
|
|
1815
1793
|
ref: t,
|
|
1816
1794
|
align: u,
|
|
1817
1795
|
sideOffset: d,
|
|
@@ -1822,165 +1800,165 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
|
|
|
1822
1800
|
let y = v;
|
|
1823
1801
|
if (f) {
|
|
1824
1802
|
let e;
|
|
1825
|
-
return n[20] === y ? e = n[21] : (e = /* @__PURE__ */ (0,
|
|
1803
|
+
return n[20] === y ? e = n[21] : (e = /* @__PURE__ */ (0, A.jsx)(Ln, { children: y }), n[20] = y, n[21] = e), e;
|
|
1826
1804
|
}
|
|
1827
1805
|
return y;
|
|
1828
1806
|
});
|
|
1829
|
-
|
|
1807
|
+
Bn.displayName = Mn.displayName;
|
|
1830
1808
|
//#endregion
|
|
1831
1809
|
//#region src/core/documentation/doc-lookup.ts
|
|
1832
|
-
async function
|
|
1833
|
-
let t =
|
|
1810
|
+
async function Vn(e) {
|
|
1811
|
+
let t = _e().inOrderIds.at(0);
|
|
1834
1812
|
if (t) try {
|
|
1835
|
-
let n = await
|
|
1813
|
+
let n = await ce.request({
|
|
1836
1814
|
document: e,
|
|
1837
1815
|
cellId: t
|
|
1838
1816
|
});
|
|
1839
1817
|
if (!n || n.options.length === 0) return;
|
|
1840
1818
|
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
1841
|
-
a?.completion_info && E.set(
|
|
1819
|
+
a?.completion_info && E.set(fe, { documentation: a.completion_info });
|
|
1842
1820
|
} catch (t) {
|
|
1843
1821
|
n.debug(`Doc lookup failed for "${e}"`, t);
|
|
1844
1822
|
}
|
|
1845
1823
|
}
|
|
1846
1824
|
//#endregion
|
|
1847
1825
|
//#region src/core/documentation/DocHoverTarget.tsx
|
|
1848
|
-
var
|
|
1849
|
-
let t = (0,
|
|
1826
|
+
var Hn = (e) => {
|
|
1827
|
+
let t = (0, O.c)(8), { qualifiedName: n, children: r } = e, i;
|
|
1850
1828
|
t[0] === n ? i = t[1] : (i = () => {
|
|
1851
|
-
|
|
1829
|
+
Vn(n);
|
|
1852
1830
|
}, t[0] = n, t[1] = i);
|
|
1853
1831
|
let a = De(i, 100), o;
|
|
1854
1832
|
t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
|
|
1855
1833
|
let s;
|
|
1856
|
-
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0,
|
|
1834
|
+
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, A.jsx)("span", {
|
|
1857
1835
|
onMouseEnter: a,
|
|
1858
1836
|
onMouseLeave: o,
|
|
1859
1837
|
children: r
|
|
1860
1838
|
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
1861
|
-
},
|
|
1839
|
+
}, Un = Ke(!1);
|
|
1862
1840
|
//#endregion
|
|
1863
1841
|
//#region src/core/static/export-context.ts
|
|
1864
|
-
function
|
|
1842
|
+
function Wn(e) {
|
|
1865
1843
|
if (typeof e != "object" || !e) return !1;
|
|
1866
1844
|
let t = e;
|
|
1867
1845
|
return !(t.trusted !== !0 || t.notebookCode !== void 0 && typeof t.notebookCode != "string");
|
|
1868
1846
|
}
|
|
1869
|
-
function
|
|
1847
|
+
function Gn() {
|
|
1870
1848
|
let e = window?.__MARIMO_EXPORT_CONTEXT__;
|
|
1871
|
-
return
|
|
1849
|
+
return Wn(e) ? e : void 0;
|
|
1872
1850
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1851
|
+
function Kn() {
|
|
1852
|
+
return Gn()?.trusted === !0;
|
|
1875
1853
|
}
|
|
1876
|
-
function
|
|
1877
|
-
if (E.get(
|
|
1854
|
+
function qn() {
|
|
1855
|
+
if (E.get(Un) || Kn() || E.get(qe)) return !0;
|
|
1878
1856
|
try {
|
|
1879
|
-
if (
|
|
1857
|
+
if (Oe() === "read") return !0;
|
|
1880
1858
|
} catch {}
|
|
1881
1859
|
return !1;
|
|
1882
1860
|
}
|
|
1883
1861
|
//#endregion
|
|
1884
1862
|
//#region src/plugins/core/sanitize.ts
|
|
1885
|
-
var
|
|
1886
|
-
let t = e(
|
|
1887
|
-
if (t || n ||
|
|
1863
|
+
var Jn = Ke((e) => {
|
|
1864
|
+
let t = e(Un), n = e(qe);
|
|
1865
|
+
if (t || n || Kn()) return !1;
|
|
1888
1866
|
let r = !0;
|
|
1889
1867
|
try {
|
|
1890
|
-
r =
|
|
1868
|
+
r = Oe() === "read";
|
|
1891
1869
|
} catch {
|
|
1892
1870
|
return !0;
|
|
1893
1871
|
}
|
|
1894
1872
|
return !r;
|
|
1895
1873
|
});
|
|
1896
|
-
function
|
|
1897
|
-
return T(
|
|
1874
|
+
function Yn() {
|
|
1875
|
+
return T(Jn);
|
|
1898
1876
|
}
|
|
1899
1877
|
//#endregion
|
|
1900
1878
|
//#region src/plugins/core/RenderHTML.tsx
|
|
1901
|
-
var
|
|
1902
|
-
if (e instanceof
|
|
1903
|
-
},
|
|
1904
|
-
if (t instanceof
|
|
1905
|
-
if ((0,
|
|
1879
|
+
var Xn = [], Zn = (e) => {
|
|
1880
|
+
if (e instanceof k.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return D.createElement(D.Fragment);
|
|
1881
|
+
}, Qn = (e, t) => {
|
|
1882
|
+
if (t instanceof k.Element && t.name === "body") {
|
|
1883
|
+
if ((0, D.isValidElement)(e) && "props" in e) {
|
|
1906
1884
|
let t = e.props.children;
|
|
1907
|
-
return /* @__PURE__ */ (0,
|
|
1885
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, { children: t });
|
|
1908
1886
|
}
|
|
1909
1887
|
return;
|
|
1910
1888
|
}
|
|
1911
|
-
},
|
|
1912
|
-
if (t instanceof
|
|
1913
|
-
if ((0,
|
|
1889
|
+
}, $n = (e, t) => {
|
|
1890
|
+
if (t instanceof k.Element && t.name === "html") {
|
|
1891
|
+
if ((0, D.isValidElement)(e) && "props" in e) {
|
|
1914
1892
|
let t = e.props.children;
|
|
1915
|
-
return /* @__PURE__ */ (0,
|
|
1893
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, { children: t });
|
|
1916
1894
|
}
|
|
1917
1895
|
return;
|
|
1918
1896
|
}
|
|
1919
|
-
},
|
|
1920
|
-
if (e instanceof
|
|
1897
|
+
}, er = (e) => {
|
|
1898
|
+
if (e instanceof k.Element && e.attribs && e.name === "iframe") {
|
|
1921
1899
|
let t = document.createElement("iframe");
|
|
1922
1900
|
return Object.entries(e.attribs).forEach(([e, n]) => {
|
|
1923
1901
|
e.startsWith("\"") && e.endsWith("\"") && (e = e.slice(1, -1)), t.setAttribute(e, n);
|
|
1924
|
-
}), /* @__PURE__ */ (0,
|
|
1902
|
+
}), /* @__PURE__ */ (0, A.jsx)("div", { dangerouslySetInnerHTML: { __html: t.outerHTML } });
|
|
1925
1903
|
}
|
|
1926
|
-
},
|
|
1927
|
-
if (e instanceof
|
|
1904
|
+
}, tr = (e) => {
|
|
1905
|
+
if (e instanceof k.Element && e.name === "script") {
|
|
1928
1906
|
let t = e.attribs.src;
|
|
1929
1907
|
if (!t) return;
|
|
1930
|
-
if (!
|
|
1908
|
+
if (!qn()) return n.warn(`[RenderHTML] refusing <script src> in untrusted context: ${t}`), /* @__PURE__ */ (0, A.jsx)(A.Fragment, {});
|
|
1931
1909
|
if (![...document.querySelectorAll("script[src]")].some((e) => e.getAttribute("src") === t)) {
|
|
1932
1910
|
let e = document.createElement("script");
|
|
1933
1911
|
e.src = t, document.head.append(e);
|
|
1934
1912
|
}
|
|
1935
|
-
return /* @__PURE__ */ (0,
|
|
1913
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, {});
|
|
1936
1914
|
}
|
|
1937
|
-
},
|
|
1938
|
-
if (t instanceof
|
|
1915
|
+
}, nr = (e, t) => {
|
|
1916
|
+
if (t instanceof k.Element && t.name === "a") {
|
|
1939
1917
|
let n = t.attribs.href;
|
|
1940
1918
|
if (n?.startsWith("#") && !n.startsWith("#code/")) {
|
|
1941
1919
|
let r = null;
|
|
1942
|
-
return (0,
|
|
1920
|
+
return (0, D.isValidElement)(e) && "props" in e && (r = e.props.children), /* @__PURE__ */ (0, A.jsx)(Pn, {
|
|
1943
1921
|
href: n,
|
|
1944
1922
|
...t.attribs,
|
|
1945
1923
|
children: r
|
|
1946
1924
|
});
|
|
1947
1925
|
}
|
|
1948
1926
|
}
|
|
1949
|
-
},
|
|
1950
|
-
if (t instanceof
|
|
1951
|
-
},
|
|
1952
|
-
if (!(t instanceof
|
|
1927
|
+
}, rr = (e, t, n) => {
|
|
1928
|
+
if (t instanceof k.Element && t.name === "div" && t.attribs?.class?.includes("codehilite")) return /* @__PURE__ */ (0, A.jsx)(cr, { children: e }, n);
|
|
1929
|
+
}, ir = (e, t, n) => {
|
|
1930
|
+
if (!(t instanceof k.Element) || t.name !== "img") return;
|
|
1953
1931
|
let r = t.attribs?.src;
|
|
1954
|
-
if (!(!r || !(0,
|
|
1955
|
-
},
|
|
1956
|
-
if (!(t instanceof
|
|
1932
|
+
if (!(!r || !(0, D.isValidElement)(e)) && !/^data:/i.test(r)) return (0, D.cloneElement)(e, { key: `${r}-${n}` });
|
|
1933
|
+
}, ar = (e, t, n) => {
|
|
1934
|
+
if (!(t instanceof k.Element) || t.name !== "input" || t.attribs?.type !== "checkbox" || !(0, D.isValidElement)(e)) return;
|
|
1957
1935
|
let r = "checked" in t.attribs;
|
|
1958
|
-
return (0,
|
|
1959
|
-
},
|
|
1960
|
-
if (t instanceof
|
|
1936
|
+
return (0, D.cloneElement)(e, { key: `checkbox-${n}-${r}` });
|
|
1937
|
+
}, or = (e, t) => {
|
|
1938
|
+
if (t instanceof k.Element && t.attribs?.["data-marimo-doc"]) {
|
|
1961
1939
|
let n = t.attribs["data-marimo-doc"];
|
|
1962
|
-
return /* @__PURE__ */ (0,
|
|
1940
|
+
return /* @__PURE__ */ (0, A.jsx)(Hn, {
|
|
1963
1941
|
qualifiedName: n,
|
|
1964
1942
|
children: e
|
|
1965
1943
|
});
|
|
1966
1944
|
}
|
|
1967
|
-
},
|
|
1968
|
-
if (t instanceof
|
|
1945
|
+
}, sr = (e, t) => {
|
|
1946
|
+
if (t instanceof k.Element && t.attribs?.["data-tooltip"]) {
|
|
1969
1947
|
if ((t.name?.toLowerCase() ?? "").startsWith("marimo-")) return;
|
|
1970
1948
|
let n = t.attribs["data-tooltip"].replace(/^[\r\n]+|[\r\n]+$/g, "");
|
|
1971
|
-
return /* @__PURE__ */ (0,
|
|
1972
|
-
content: n.includes("\n") ? /* @__PURE__ */ (0,
|
|
1949
|
+
return /* @__PURE__ */ (0, A.jsx)(x, {
|
|
1950
|
+
content: n.includes("\n") ? /* @__PURE__ */ (0, A.jsx)("span", {
|
|
1973
1951
|
className: "whitespace-pre-wrap",
|
|
1974
|
-
children: n.split(/\r?\n/).map((e, t) => /* @__PURE__ */ (0,
|
|
1952
|
+
children: n.split(/\r?\n/).map((e, t) => /* @__PURE__ */ (0, A.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, A.jsx)("br", {}), e] }, t))
|
|
1975
1953
|
}) : n,
|
|
1976
1954
|
children: e
|
|
1977
1955
|
});
|
|
1978
1956
|
}
|
|
1979
|
-
},
|
|
1980
|
-
let t = (0,
|
|
1981
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0,
|
|
1957
|
+
}, cr = (e) => {
|
|
1958
|
+
let t = (0, O.c)(3), { children: n } = e, r = (0, D.useRef)(null), i;
|
|
1959
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, A.jsx)("div", {
|
|
1982
1960
|
className: "absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
1983
|
-
children: /* @__PURE__ */ (0,
|
|
1961
|
+
children: /* @__PURE__ */ (0, A.jsx)(d, {
|
|
1984
1962
|
tooltip: !1,
|
|
1985
1963
|
className: "p-1",
|
|
1986
1964
|
value: () => {
|
|
@@ -1990,45 +1968,45 @@ var Kn = [], qn = (e) => {
|
|
|
1990
1968
|
})
|
|
1991
1969
|
}), t[0] = i) : i = t[0];
|
|
1992
1970
|
let a;
|
|
1993
|
-
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ (0,
|
|
1971
|
+
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
1994
1972
|
className: "relative group codehilite-wrapper",
|
|
1995
1973
|
ref: r,
|
|
1996
1974
|
children: [n, i]
|
|
1997
1975
|
}), t[1] = n, t[2] = a), a;
|
|
1998
|
-
},
|
|
1976
|
+
}, lr = ({ html: e, additionalReplacements: t = Xn, alwaysSanitizeHtml: n = !0 }) => /* @__PURE__ */ (0, A.jsx)(ur, {
|
|
1999
1977
|
html: e,
|
|
2000
1978
|
alwaysSanitizeHtml: n,
|
|
2001
1979
|
additionalReplacements: t
|
|
2002
|
-
}),
|
|
2003
|
-
let t = (0,
|
|
1980
|
+
}), ur = (e) => {
|
|
1981
|
+
let t = (0, O.c)(5), { html: n, additionalReplacements: r, alwaysSanitizeHtml: i } = e, a = r === void 0 ? Xn : r, o = Yn(), s;
|
|
2004
1982
|
bb0: {
|
|
2005
1983
|
if (i || o) {
|
|
2006
1984
|
let e;
|
|
2007
|
-
t[0] === n ? e = t[1] : (e =
|
|
1985
|
+
t[0] === n ? e = t[1] : (e = ne(n), t[0] = n, t[1] = e), s = e;
|
|
2008
1986
|
break bb0;
|
|
2009
1987
|
}
|
|
2010
1988
|
s = n;
|
|
2011
1989
|
}
|
|
2012
1990
|
let c = s, l;
|
|
2013
|
-
return t[2] !== a || t[3] !== c ? (l =
|
|
1991
|
+
return t[2] !== a || t[3] !== c ? (l = dr({
|
|
2014
1992
|
html: c,
|
|
2015
1993
|
additionalReplacements: a
|
|
2016
1994
|
}), t[2] = a, t[3] = c, t[4] = l) : l = t[4], l;
|
|
2017
1995
|
};
|
|
2018
|
-
function
|
|
1996
|
+
function dr({ html: e, additionalReplacements: t = Xn }) {
|
|
2019
1997
|
let n = [
|
|
2020
|
-
qn,
|
|
2021
|
-
Xn,
|
|
2022
1998
|
Zn,
|
|
1999
|
+
er,
|
|
2000
|
+
tr,
|
|
2023
2001
|
...t
|
|
2024
2002
|
], r = [
|
|
2025
|
-
$n,
|
|
2026
|
-
Qn,
|
|
2027
|
-
nr,
|
|
2028
2003
|
rr,
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2004
|
+
nr,
|
|
2005
|
+
or,
|
|
2006
|
+
sr,
|
|
2007
|
+
Qn,
|
|
2008
|
+
$n
|
|
2009
|
+
], i = [ir, ar];
|
|
2032
2010
|
return ut(e, {
|
|
2033
2011
|
replace: (e, t) => {
|
|
2034
2012
|
for (let r of n) {
|
|
@@ -2056,115 +2034,115 @@ function sr({ html: e, additionalReplacements: t = Kn }) {
|
|
|
2056
2034
|
}
|
|
2057
2035
|
//#endregion
|
|
2058
2036
|
//#region src/utils/json/base64.ts
|
|
2059
|
-
function
|
|
2037
|
+
function fr(e, t) {
|
|
2060
2038
|
return `data:${t};base64,${e}`;
|
|
2061
2039
|
}
|
|
2062
|
-
function
|
|
2040
|
+
function pr(e) {
|
|
2063
2041
|
return e.startsWith("data:") && e.includes(";base64,");
|
|
2064
2042
|
}
|
|
2065
|
-
function
|
|
2043
|
+
function mr(e) {
|
|
2066
2044
|
return e.split(",")[1];
|
|
2067
2045
|
}
|
|
2068
|
-
function
|
|
2046
|
+
function hr(e) {
|
|
2069
2047
|
let t = globalThis.atob(e), n = t.length, r = new Uint8Array(n);
|
|
2070
2048
|
for (let e = 0; e < n; e++) r[e] = t.charCodeAt(e);
|
|
2071
2049
|
return r;
|
|
2072
2050
|
}
|
|
2073
|
-
var
|
|
2074
|
-
function
|
|
2075
|
-
let t =
|
|
2051
|
+
var gr = Uint8Array.fromBase64 ?? hr;
|
|
2052
|
+
function _r(e) {
|
|
2053
|
+
let t = gr(e);
|
|
2076
2054
|
return new DataView(t.buffer);
|
|
2077
2055
|
}
|
|
2078
|
-
function
|
|
2056
|
+
function vr(e) {
|
|
2079
2057
|
let t = "", n = e.length;
|
|
2080
2058
|
for (let r = 0; r < n; r++) t += String.fromCharCode(e[r]);
|
|
2081
2059
|
return globalThis.btoa(t);
|
|
2082
2060
|
}
|
|
2083
|
-
var
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2061
|
+
var yr = "toBase64" in Uint8Array.prototype ? (e) => e.toBase64() : vr;
|
|
2062
|
+
function br(e) {
|
|
2063
|
+
return yr(new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
|
|
2086
2064
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return (e.buffers ?? []).map(
|
|
2065
|
+
function xr(e) {
|
|
2066
|
+
return (e.buffers ?? []).map(_r);
|
|
2089
2067
|
}
|
|
2090
2068
|
//#endregion
|
|
2091
2069
|
//#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
|
|
2092
|
-
function
|
|
2070
|
+
function W(e, t) {
|
|
2093
2071
|
if (e == null) return {};
|
|
2094
2072
|
var n = {}, r = Object.keys(e), i, a;
|
|
2095
2073
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2096
2074
|
return n;
|
|
2097
2075
|
}
|
|
2098
|
-
var
|
|
2099
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2100
|
-
return (0,
|
|
2076
|
+
var Sr = ["color"], Cr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2077
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Sr);
|
|
2078
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2101
2079
|
width: "15",
|
|
2102
2080
|
height: "15",
|
|
2103
2081
|
viewBox: "0 0 15 15",
|
|
2104
2082
|
fill: "none",
|
|
2105
2083
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2106
|
-
}, i, { ref: t }), (0,
|
|
2084
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2107
2085
|
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",
|
|
2108
2086
|
fill: r,
|
|
2109
2087
|
fillRule: "evenodd",
|
|
2110
2088
|
clipRule: "evenodd"
|
|
2111
|
-
}), (0,
|
|
2089
|
+
}), (0, D.createElement)("rect", {
|
|
2112
2090
|
x: "7",
|
|
2113
2091
|
y: "5",
|
|
2114
2092
|
width: "1",
|
|
2115
2093
|
height: "1",
|
|
2116
2094
|
rx: ".5",
|
|
2117
2095
|
fill: r
|
|
2118
|
-
}), (0,
|
|
2096
|
+
}), (0, D.createElement)("rect", {
|
|
2119
2097
|
x: "7",
|
|
2120
2098
|
y: "3",
|
|
2121
2099
|
width: "1",
|
|
2122
2100
|
height: "1",
|
|
2123
2101
|
rx: ".5",
|
|
2124
2102
|
fill: r
|
|
2125
|
-
}), (0,
|
|
2103
|
+
}), (0, D.createElement)("rect", {
|
|
2126
2104
|
x: "7",
|
|
2127
2105
|
y: "7",
|
|
2128
2106
|
width: "1",
|
|
2129
2107
|
height: "1",
|
|
2130
2108
|
rx: ".5",
|
|
2131
2109
|
fill: r
|
|
2132
|
-
}), (0,
|
|
2110
|
+
}), (0, D.createElement)("rect", {
|
|
2133
2111
|
x: "5",
|
|
2134
2112
|
y: "7",
|
|
2135
2113
|
width: "1",
|
|
2136
2114
|
height: "1",
|
|
2137
2115
|
rx: ".5",
|
|
2138
2116
|
fill: r
|
|
2139
|
-
}), (0,
|
|
2117
|
+
}), (0, D.createElement)("rect", {
|
|
2140
2118
|
x: "3",
|
|
2141
2119
|
y: "7",
|
|
2142
2120
|
width: "1",
|
|
2143
2121
|
height: "1",
|
|
2144
2122
|
rx: ".5",
|
|
2145
2123
|
fill: r
|
|
2146
|
-
}), (0,
|
|
2124
|
+
}), (0, D.createElement)("rect", {
|
|
2147
2125
|
x: "9",
|
|
2148
2126
|
y: "7",
|
|
2149
2127
|
width: "1",
|
|
2150
2128
|
height: "1",
|
|
2151
2129
|
rx: ".5",
|
|
2152
2130
|
fill: r
|
|
2153
|
-
}), (0,
|
|
2131
|
+
}), (0, D.createElement)("rect", {
|
|
2154
2132
|
x: "11",
|
|
2155
2133
|
y: "7",
|
|
2156
2134
|
width: "1",
|
|
2157
2135
|
height: "1",
|
|
2158
2136
|
rx: ".5",
|
|
2159
2137
|
fill: r
|
|
2160
|
-
}), (0,
|
|
2138
|
+
}), (0, D.createElement)("rect", {
|
|
2161
2139
|
x: "7",
|
|
2162
2140
|
y: "9",
|
|
2163
2141
|
width: "1",
|
|
2164
2142
|
height: "1",
|
|
2165
2143
|
rx: ".5",
|
|
2166
2144
|
fill: r
|
|
2167
|
-
}), (0,
|
|
2145
|
+
}), (0, D.createElement)("rect", {
|
|
2168
2146
|
x: "7",
|
|
2169
2147
|
y: "11",
|
|
2170
2148
|
width: "1",
|
|
@@ -2172,126 +2150,126 @@ var vr = ["color"], yr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
|
2172
2150
|
rx: ".5",
|
|
2173
2151
|
fill: r
|
|
2174
2152
|
}));
|
|
2175
|
-
}),
|
|
2176
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2177
|
-
return (0,
|
|
2153
|
+
}), wr = ["color"], Tr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2154
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, wr);
|
|
2155
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2178
2156
|
width: "15",
|
|
2179
2157
|
height: "15",
|
|
2180
2158
|
viewBox: "0 0 15 15",
|
|
2181
2159
|
fill: "none",
|
|
2182
2160
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2183
|
-
}, i, { ref: t }), (0,
|
|
2161
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2184
2162
|
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",
|
|
2185
2163
|
fill: r,
|
|
2186
2164
|
fillRule: "evenodd",
|
|
2187
2165
|
clipRule: "evenodd"
|
|
2188
2166
|
}));
|
|
2189
|
-
}),
|
|
2190
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2191
|
-
return (0,
|
|
2167
|
+
}), Er = ["color"], Dr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2168
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Er);
|
|
2169
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2192
2170
|
width: "15",
|
|
2193
2171
|
height: "15",
|
|
2194
2172
|
viewBox: "0 0 15 15",
|
|
2195
2173
|
fill: "none",
|
|
2196
2174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2197
|
-
}, i, { ref: t }), (0,
|
|
2175
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2198
2176
|
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",
|
|
2199
2177
|
fill: r,
|
|
2200
2178
|
fillRule: "evenodd",
|
|
2201
2179
|
clipRule: "evenodd"
|
|
2202
2180
|
}));
|
|
2203
|
-
}),
|
|
2204
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2205
|
-
return (0,
|
|
2181
|
+
}), Or = ["color"], kr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2182
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Or);
|
|
2183
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2206
2184
|
width: "15",
|
|
2207
2185
|
height: "15",
|
|
2208
2186
|
viewBox: "0 0 15 15",
|
|
2209
2187
|
fill: "none",
|
|
2210
2188
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2211
|
-
}, i, { ref: t }), (0,
|
|
2189
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2212
2190
|
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",
|
|
2213
2191
|
fill: r,
|
|
2214
2192
|
fillRule: "evenodd",
|
|
2215
2193
|
clipRule: "evenodd"
|
|
2216
2194
|
}));
|
|
2217
|
-
}),
|
|
2218
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2219
|
-
return (0,
|
|
2195
|
+
}), Ar = ["color"], jr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2196
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Ar);
|
|
2197
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2220
2198
|
width: "15",
|
|
2221
2199
|
height: "15",
|
|
2222
2200
|
viewBox: "0 0 15 15",
|
|
2223
2201
|
fill: "none",
|
|
2224
2202
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2225
|
-
}, i, { ref: t }), (0,
|
|
2203
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2226
2204
|
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",
|
|
2227
2205
|
fill: r,
|
|
2228
2206
|
fillRule: "evenodd",
|
|
2229
2207
|
clipRule: "evenodd"
|
|
2230
2208
|
}));
|
|
2231
|
-
}),
|
|
2232
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2233
|
-
return (0,
|
|
2209
|
+
}), Mr = ["color"], Nr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2210
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Mr);
|
|
2211
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2234
2212
|
width: "15",
|
|
2235
2213
|
height: "15",
|
|
2236
2214
|
viewBox: "0 0 15 15",
|
|
2237
2215
|
fill: "none",
|
|
2238
2216
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2239
|
-
}, i, { ref: t }), (0,
|
|
2217
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2240
2218
|
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",
|
|
2241
2219
|
fill: r
|
|
2242
2220
|
}));
|
|
2243
|
-
}),
|
|
2244
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2245
|
-
return (0,
|
|
2221
|
+
}), Pr = ["color"], Fr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2222
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Pr);
|
|
2223
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2246
2224
|
width: "15",
|
|
2247
2225
|
height: "15",
|
|
2248
2226
|
viewBox: "0 0 15 15",
|
|
2249
2227
|
fill: "none",
|
|
2250
2228
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2251
|
-
}, i, { ref: t }), (0,
|
|
2229
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2252
2230
|
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",
|
|
2253
2231
|
fill: r,
|
|
2254
2232
|
fillRule: "evenodd",
|
|
2255
2233
|
clipRule: "evenodd"
|
|
2256
2234
|
}));
|
|
2257
|
-
}),
|
|
2258
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2259
|
-
return (0,
|
|
2235
|
+
}), Ir = ["color"], Lr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2236
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Ir);
|
|
2237
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2260
2238
|
width: "15",
|
|
2261
2239
|
height: "15",
|
|
2262
2240
|
viewBox: "0 0 15 15",
|
|
2263
2241
|
fill: "none",
|
|
2264
2242
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2265
|
-
}, i, { ref: t }), (0,
|
|
2243
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2266
2244
|
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",
|
|
2267
2245
|
fill: r,
|
|
2268
2246
|
fillRule: "evenodd",
|
|
2269
2247
|
clipRule: "evenodd"
|
|
2270
2248
|
}));
|
|
2271
|
-
}),
|
|
2272
|
-
let n = (0,
|
|
2249
|
+
}), Rr = tn, zr = D.forwardRef((e, t) => {
|
|
2250
|
+
let n = (0, O.c)(9), i, a;
|
|
2273
2251
|
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
2274
2252
|
let o;
|
|
2275
2253
|
n[3] === i ? o = n[4] : (o = r("border-b", i), n[3] = i, n[4] = o);
|
|
2276
2254
|
let s;
|
|
2277
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
2255
|
+
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, A.jsx)(nn, {
|
|
2278
2256
|
ref: t,
|
|
2279
2257
|
className: o,
|
|
2280
2258
|
...a
|
|
2281
2259
|
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
2282
2260
|
});
|
|
2283
|
-
|
|
2284
|
-
var
|
|
2285
|
-
let n = (0,
|
|
2261
|
+
zr.displayName = "AccordionItem";
|
|
2262
|
+
var Br = D.forwardRef((e, t) => {
|
|
2263
|
+
let n = (0, O.c)(12), i, a, o;
|
|
2286
2264
|
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);
|
|
2287
2265
|
let s;
|
|
2288
2266
|
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);
|
|
2289
2267
|
let c;
|
|
2290
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0,
|
|
2268
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, A.jsx)(Ce, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
|
|
2291
2269
|
let l;
|
|
2292
|
-
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0,
|
|
2270
|
+
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, A.jsx)(rn, {
|
|
2293
2271
|
className: "flex",
|
|
2294
|
-
children: /* @__PURE__ */ (0,
|
|
2272
|
+
children: /* @__PURE__ */ (0, A.jsxs)(an, {
|
|
2295
2273
|
ref: t,
|
|
2296
2274
|
className: s,
|
|
2297
2275
|
...o,
|
|
@@ -2299,31 +2277,31 @@ var Ir = O.forwardRef((e, t) => {
|
|
|
2299
2277
|
})
|
|
2300
2278
|
}), n[7] = i, n[8] = o, n[9] = t, n[10] = s, n[11] = l) : l = n[11], l;
|
|
2301
2279
|
});
|
|
2302
|
-
|
|
2303
|
-
var
|
|
2304
|
-
let n = (0,
|
|
2280
|
+
Br.displayName = an.displayName;
|
|
2281
|
+
var Vr = D.forwardRef((e, t) => {
|
|
2282
|
+
let n = (0, O.c)(17), i, a, o, s;
|
|
2305
2283
|
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);
|
|
2306
2284
|
let c;
|
|
2307
2285
|
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);
|
|
2308
2286
|
let l;
|
|
2309
2287
|
n[7] === s ? l = n[8] : (l = r("pb-4 pt-0", s), n[7] = s, n[8] = l);
|
|
2310
2288
|
let u;
|
|
2311
|
-
n[9] !== i || n[10] !== l ? (u = /* @__PURE__ */ (0,
|
|
2289
|
+
n[9] !== i || n[10] !== l ? (u = /* @__PURE__ */ (0, A.jsx)("div", {
|
|
2312
2290
|
className: l,
|
|
2313
2291
|
children: i
|
|
2314
2292
|
}), n[9] = i, n[10] = l, n[11] = u) : u = n[11];
|
|
2315
2293
|
let d;
|
|
2316
|
-
return n[12] !== o || n[13] !== t || n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ (0,
|
|
2294
|
+
return n[12] !== o || n[13] !== t || n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ (0, A.jsx)(on, {
|
|
2317
2295
|
ref: t,
|
|
2318
2296
|
className: c,
|
|
2319
2297
|
...o,
|
|
2320
2298
|
children: u
|
|
2321
2299
|
}), n[12] = o, n[13] = t, n[14] = c, n[15] = u, n[16] = d) : d = n[16], d;
|
|
2322
2300
|
});
|
|
2323
|
-
|
|
2301
|
+
Vr.displayName = on.displayName;
|
|
2324
2302
|
//#endregion
|
|
2325
2303
|
//#region src/utils/multi-map.ts
|
|
2326
|
-
var
|
|
2304
|
+
var Hr = /* @__PURE__ */ e(pe(), 1), Ur = class {
|
|
2327
2305
|
map = /* @__PURE__ */ new Map();
|
|
2328
2306
|
get(e) {
|
|
2329
2307
|
return this.map.get(e) ?? [];
|
|
@@ -2366,11 +2344,11 @@ var Rr = /* @__PURE__ */ e(me(), 1), zr = class {
|
|
|
2366
2344
|
};
|
|
2367
2345
|
//#endregion
|
|
2368
2346
|
//#region src/core/ai/context/registry.ts
|
|
2369
|
-
function
|
|
2347
|
+
function Wr(e) {
|
|
2370
2348
|
let t = e.indexOf("://");
|
|
2371
2349
|
if (t !== -1) return e.slice(0, t);
|
|
2372
2350
|
}
|
|
2373
|
-
var
|
|
2351
|
+
var Gr = class {
|
|
2374
2352
|
async getAttachments(e) {
|
|
2375
2353
|
return [];
|
|
2376
2354
|
}
|
|
@@ -2392,7 +2370,7 @@ var Vr = class {
|
|
|
2392
2370
|
section: t?.section || this.title
|
|
2393
2371
|
};
|
|
2394
2372
|
}
|
|
2395
|
-
},
|
|
2373
|
+
}, Kr = class {
|
|
2396
2374
|
providers = /* @__PURE__ */ new Set();
|
|
2397
2375
|
register(e) {
|
|
2398
2376
|
return this.providers.add(e), this;
|
|
@@ -2410,14 +2388,14 @@ var Vr = class {
|
|
|
2410
2388
|
return [...this.providers].flatMap((t) => t.parseContextIds(e));
|
|
2411
2389
|
}
|
|
2412
2390
|
findProviderForUri(e) {
|
|
2413
|
-
let t =
|
|
2391
|
+
let t = Wr(e);
|
|
2414
2392
|
if (t) return [...this.providers].find((n) => n.contextType === t && n.getItems().some((t) => t.uri === e));
|
|
2415
2393
|
}
|
|
2416
2394
|
resolveItems(e) {
|
|
2417
2395
|
if (e.length === 0) return [];
|
|
2418
|
-
let t = new
|
|
2396
|
+
let t = new Ur();
|
|
2419
2397
|
for (let n of e) {
|
|
2420
|
-
let e =
|
|
2398
|
+
let e = Wr(n);
|
|
2421
2399
|
e && t.add(e, n);
|
|
2422
2400
|
}
|
|
2423
2401
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -2448,7 +2426,7 @@ var Vr = class {
|
|
|
2448
2426
|
async getAttachmentsForContext(e) {
|
|
2449
2427
|
let t = this.resolveItems(e);
|
|
2450
2428
|
if (t.length === 0) return [];
|
|
2451
|
-
let r = new
|
|
2429
|
+
let r = new Ur();
|
|
2452
2430
|
for (let e of t) {
|
|
2453
2431
|
let t = this.findProviderForUri(e.uri);
|
|
2454
2432
|
t && r.add(t, e);
|
|
@@ -2463,30 +2441,30 @@ var Vr = class {
|
|
|
2463
2441
|
return (await Promise.all(i)).flat();
|
|
2464
2442
|
}
|
|
2465
2443
|
};
|
|
2466
|
-
|
|
2444
|
+
ie([le()], Kr.prototype, "getAllItems", null);
|
|
2467
2445
|
//#endregion
|
|
2468
2446
|
//#region src/core/ai/context/utils.ts
|
|
2469
|
-
function
|
|
2447
|
+
function qr(e) {
|
|
2470
2448
|
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
2471
2449
|
}
|
|
2472
|
-
function
|
|
2450
|
+
function Jr(e) {
|
|
2473
2451
|
let { type: t, data: n, details: r } = e, i = `<${t}`;
|
|
2474
2452
|
for (let [e, t] of Object.entries(n)) if (t !== void 0) {
|
|
2475
|
-
let n =
|
|
2453
|
+
let n = qr(typeof t == "object" && t ? JSON.stringify(t) : String(t));
|
|
2476
2454
|
i += ` ${e}="${n}"`;
|
|
2477
2455
|
}
|
|
2478
|
-
return i += ">", r && (i +=
|
|
2456
|
+
return i += ">", r && (i += qr(r)), i += `</${t}>`, i;
|
|
2479
2457
|
}
|
|
2480
2458
|
//#endregion
|
|
2481
2459
|
//#region src/core/ai/context/providers/common.ts
|
|
2482
|
-
var
|
|
2460
|
+
var Yr = {
|
|
2483
2461
|
LOCAL_TABLE: 7,
|
|
2484
2462
|
REMOTE_TABLE: 5,
|
|
2485
2463
|
HIGH: 4,
|
|
2486
2464
|
MEDIUM: 3,
|
|
2487
2465
|
CELL_OUTPUT: 2,
|
|
2488
2466
|
LOW: 2
|
|
2489
|
-
},
|
|
2467
|
+
}, Xr = {
|
|
2490
2468
|
ERROR: {
|
|
2491
2469
|
name: "Error",
|
|
2492
2470
|
rank: 1
|
|
@@ -2511,19 +2489,19 @@ var Gr = {
|
|
|
2511
2489
|
name: "File",
|
|
2512
2490
|
rank: 6
|
|
2513
2491
|
}
|
|
2514
|
-
},
|
|
2492
|
+
}, Zr = "datasource", Qr = class extends Gr {
|
|
2515
2493
|
title = "Datasource";
|
|
2516
2494
|
mentionPrefix = "@";
|
|
2517
|
-
contextType =
|
|
2495
|
+
contextType = Zr;
|
|
2518
2496
|
connectionsMap;
|
|
2519
2497
|
dataframes;
|
|
2520
2498
|
constructor(e, t) {
|
|
2521
|
-
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) =>
|
|
2499
|
+
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => xe(e) === "dataframe");
|
|
2522
2500
|
}
|
|
2523
2501
|
getItems() {
|
|
2524
2502
|
return [...this.connectionsMap.values()].map((e) => {
|
|
2525
2503
|
let t = "Database schema.", n = { connection: e };
|
|
2526
|
-
return
|
|
2504
|
+
return be.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 : {
|
|
2527
2505
|
uri: this.asURI(e.name),
|
|
2528
2506
|
name: e.name,
|
|
2529
2507
|
description: t,
|
|
@@ -2534,10 +2512,10 @@ var Gr = {
|
|
|
2534
2512
|
}
|
|
2535
2513
|
formatContext(e) {
|
|
2536
2514
|
let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
|
|
2537
|
-
return
|
|
2515
|
+
return be.has(n) || (o = {
|
|
2538
2516
|
...a,
|
|
2539
2517
|
engine_name: n
|
|
2540
|
-
}),
|
|
2518
|
+
}), Jr({
|
|
2541
2519
|
type: this.contextType,
|
|
2542
2520
|
data: {
|
|
2543
2521
|
connection: o,
|
|
@@ -2547,44 +2525,44 @@ var Gr = {
|
|
|
2547
2525
|
}
|
|
2548
2526
|
formatCompletion(e) {
|
|
2549
2527
|
let t = e.data, n = t.connection, r = t.tables, i = n.name;
|
|
2550
|
-
return
|
|
2528
|
+
return be.has(n.name) && (i = "In-Memory"), {
|
|
2551
2529
|
label: `@${i}`,
|
|
2552
2530
|
displayLabel: i,
|
|
2553
|
-
detail:
|
|
2554
|
-
boost:
|
|
2531
|
+
detail: he(n.dialect),
|
|
2532
|
+
boost: Yr.MEDIUM,
|
|
2555
2533
|
type: this.contextType,
|
|
2556
|
-
section:
|
|
2534
|
+
section: Xr.DATA_SOURCES,
|
|
2557
2535
|
info: () => {
|
|
2558
2536
|
let e = document.createElement("div");
|
|
2559
|
-
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0,
|
|
2537
|
+
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Hr.createRoot)(e).render(ge(n, r)), e;
|
|
2560
2538
|
}
|
|
2561
2539
|
};
|
|
2562
2540
|
}
|
|
2563
2541
|
};
|
|
2564
|
-
function
|
|
2565
|
-
let n = t.get(
|
|
2542
|
+
function $r(e, t) {
|
|
2543
|
+
let n = t.get(ve(e))?.code;
|
|
2566
2544
|
if (!n || n.trim() === "") return null;
|
|
2567
|
-
let [r, i, a] =
|
|
2568
|
-
return o ? `@${
|
|
2545
|
+
let [r, i, a] = oe.sql.transformIn(n), o = t.get(ye).connectionsMap.get(a.engine);
|
|
2546
|
+
return o ? `@${Zr}://${o.name}` : null;
|
|
2569
2547
|
}
|
|
2570
|
-
function
|
|
2571
|
-
let n =
|
|
2548
|
+
function ei(e, t) {
|
|
2549
|
+
let n = $r(e, t);
|
|
2572
2550
|
if (!n) return null;
|
|
2573
|
-
let r = t.get(
|
|
2551
|
+
let r = t.get(ye).connectionsMap, i = new Qr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
|
|
2574
2552
|
return o ? i.formatContext(o) : null;
|
|
2575
2553
|
}
|
|
2576
2554
|
//#endregion
|
|
2577
2555
|
//#region src/core/cells/outputs.ts
|
|
2578
|
-
var
|
|
2579
|
-
function
|
|
2580
|
-
let t = (0,
|
|
2581
|
-
t[0] === e ? i = t[1] : (i =
|
|
2556
|
+
var ti = {}, ni = {};
|
|
2557
|
+
function ri(e) {
|
|
2558
|
+
let t = (0, O.c)(16), { mode: n } = T(ke), { updateCellConfig: r } = me(), i;
|
|
2559
|
+
t[0] === e ? i = t[1] : (i = de(ve(e), ai, Object.is), t[0] = e, t[1] = i);
|
|
2582
2560
|
let a = T(i), o;
|
|
2583
|
-
t[2] !== e || t[3] !== a ? (o = () =>
|
|
2584
|
-
let [s, c] = (0,
|
|
2561
|
+
t[2] !== e || t[3] !== a ? (o = () => ti[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
|
|
2562
|
+
let [s, c] = (0, D.useState)(o), l, u;
|
|
2585
2563
|
t[5] !== e || t[6] !== s ? (l = () => {
|
|
2586
|
-
|
|
2587
|
-
}, u = [e, s], t[5] = e, t[6] = s, t[7] = l, t[8] = u) : (l = t[7], u = t[8]), (0,
|
|
2564
|
+
ti[e] = s;
|
|
2565
|
+
}, u = [e, s], t[5] = e, t[6] = s, t[7] = l, t[8] = u) : (l = t[7], u = t[8]), (0, D.useEffect)(l, u);
|
|
2588
2566
|
let d = n === "edit", f = d ? a : s, p;
|
|
2589
2567
|
t[9] !== e || t[10] !== d || t[11] !== r ? (p = (t) => {
|
|
2590
2568
|
if (c(t), !d) return;
|
|
@@ -2592,41 +2570,41 @@ function $r(e) {
|
|
|
2592
2570
|
r({
|
|
2593
2571
|
cellId: e,
|
|
2594
2572
|
config: n
|
|
2595
|
-
}),
|
|
2573
|
+
}), se().saveCellConfig({ configs: { [e]: n } }).catch(ii);
|
|
2596
2574
|
}, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
|
|
2597
|
-
let m =
|
|
2575
|
+
let m = Ge(p), h;
|
|
2598
2576
|
return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
|
|
2599
2577
|
}
|
|
2600
|
-
function
|
|
2578
|
+
function ii(e) {
|
|
2601
2579
|
n.error("Failed to save expand_output config", e);
|
|
2602
2580
|
}
|
|
2603
|
-
function
|
|
2581
|
+
function ai(e) {
|
|
2604
2582
|
return e?.config.expand_output ?? !1;
|
|
2605
2583
|
}
|
|
2606
|
-
function
|
|
2607
|
-
let t = (0,
|
|
2584
|
+
function oi(e) {
|
|
2585
|
+
let t = (0, O.c)(6), [n, r] = (0, D.useState)(ni[e] ?? !1), i, a;
|
|
2608
2586
|
t[0] !== e || t[1] !== n ? (i = () => {
|
|
2609
|
-
|
|
2610
|
-
}, a = [e, n], t[0] = e, t[1] = n, t[2] = i, t[3] = a) : (i = t[2], a = t[3]), (0,
|
|
2587
|
+
ni[e] = n;
|
|
2588
|
+
}, a = [e, n], t[0] = e, t[1] = n, t[2] = i, t[3] = a) : (i = t[2], a = t[3]), (0, D.useEffect)(i, a);
|
|
2611
2589
|
let o;
|
|
2612
2590
|
return t[4] === n ? o = t[5] : (o = [n, r], t[4] = n, t[5] = o), o;
|
|
2613
2591
|
}
|
|
2614
|
-
function
|
|
2592
|
+
function si(e) {
|
|
2615
2593
|
return e == null || e.data == null || e.data === "";
|
|
2616
2594
|
}
|
|
2617
2595
|
//#endregion
|
|
2618
2596
|
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
2619
|
-
var
|
|
2620
|
-
function
|
|
2597
|
+
var ci = (0, D.lazy)(() => import("./any-language-editor-BFzqhOBR.js")), li = [Ye.lineWrapping];
|
|
2598
|
+
function ui(e, t) {
|
|
2621
2599
|
return e ? e === "python" ? {
|
|
2622
2600
|
language: e,
|
|
2623
2601
|
code: t
|
|
2624
2602
|
} : e === "sql" ? {
|
|
2625
2603
|
language: "python",
|
|
2626
|
-
code:
|
|
2604
|
+
code: Se.fromQuery(t)
|
|
2627
2605
|
} : e === "markdown" ? {
|
|
2628
2606
|
language: "python",
|
|
2629
|
-
code:
|
|
2607
|
+
code: re.fromMarkdown(t)
|
|
2630
2608
|
} : e === "shell" || e === "bash" ? {
|
|
2631
2609
|
language: "python",
|
|
2632
2610
|
code: `import subprocess\nsubprocess.run("${t}")`
|
|
@@ -2638,11 +2616,11 @@ function oi(e, t) {
|
|
|
2638
2616
|
code: t
|
|
2639
2617
|
};
|
|
2640
2618
|
}
|
|
2641
|
-
var
|
|
2642
|
-
let t = (0,
|
|
2619
|
+
var di = (e) => {
|
|
2620
|
+
let t = (0, O.c)(9), { code: n, language: r } = e, { createNewCell: i } = me(), a = ae(), s = T(qe), c;
|
|
2643
2621
|
t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
|
|
2644
|
-
let e =
|
|
2645
|
-
r === "sql" &&
|
|
2622
|
+
let e = ui(r, n);
|
|
2623
|
+
r === "sql" && te({
|
|
2646
2624
|
autoInstantiate: s,
|
|
2647
2625
|
createNewCell: i,
|
|
2648
2626
|
fromCellId: a
|
|
@@ -2653,108 +2631,108 @@ var si = (e) => {
|
|
|
2653
2631
|
});
|
|
2654
2632
|
}, t[0] = s, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = c) : c = t[5];
|
|
2655
2633
|
let l = c, u;
|
|
2656
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0,
|
|
2634
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, A.jsx)(dt, { className: "ml-2 h-4 w-4" }), t[6] = u) : u = t[6];
|
|
2657
2635
|
let d;
|
|
2658
|
-
return t[7] === l ? d = t[8] : (d = /* @__PURE__ */ (0,
|
|
2636
|
+
return t[7] === l ? d = t[8] : (d = /* @__PURE__ */ (0, A.jsxs)(o, {
|
|
2659
2637
|
size: "xs",
|
|
2660
2638
|
variant: "outline",
|
|
2661
2639
|
onClick: l,
|
|
2662
2640
|
children: ["Add to Notebook", u]
|
|
2663
2641
|
}), t[7] = l, t[8] = d), d;
|
|
2664
|
-
},
|
|
2665
|
-
let t = (0,
|
|
2642
|
+
}, fi = (e) => {
|
|
2643
|
+
let t = (0, O.c)(17), { code: n, language: r } = e, { theme: i } = Je(), [a, o] = (0, D.useState)(n);
|
|
2666
2644
|
a !== n && o(n);
|
|
2667
2645
|
let s;
|
|
2668
2646
|
t[0] === a ? s = t[1] : (s = async () => {
|
|
2669
2647
|
await u(a);
|
|
2670
2648
|
}, t[0] = a, t[1] = s);
|
|
2671
2649
|
let c = s, l = i === "dark" ? "dark" : "light", d;
|
|
2672
|
-
t[2] !== r || t[3] !== l || t[4] !== a ? (d = /* @__PURE__ */ (0,
|
|
2650
|
+
t[2] !== r || t[3] !== l || t[4] !== a ? (d = /* @__PURE__ */ (0, A.jsx)(D.Suspense, { children: /* @__PURE__ */ (0, A.jsx)(ci, {
|
|
2673
2651
|
theme: l,
|
|
2674
2652
|
language: r,
|
|
2675
2653
|
hideUnsupportedLanguageErrors: !0,
|
|
2676
2654
|
className: "cm border rounded overflow-hidden",
|
|
2677
|
-
extensions:
|
|
2655
|
+
extensions: li,
|
|
2678
2656
|
value: a,
|
|
2679
2657
|
onChange: o
|
|
2680
2658
|
}) }), t[2] = r, t[3] = l, t[4] = a, t[5] = d) : d = t[5];
|
|
2681
2659
|
let f;
|
|
2682
|
-
t[6] === c ? f = t[7] : (f = /* @__PURE__ */ (0,
|
|
2660
|
+
t[6] === c ? f = t[7] : (f = /* @__PURE__ */ (0, A.jsx)(pi, {
|
|
2683
2661
|
size: "xs",
|
|
2684
2662
|
variant: "outline",
|
|
2685
2663
|
onClick: c,
|
|
2686
2664
|
children: "Copy"
|
|
2687
2665
|
}), t[6] = c, t[7] = f);
|
|
2688
2666
|
let p;
|
|
2689
|
-
t[8] !== r || t[9] !== a ? (p = /* @__PURE__ */ (0,
|
|
2667
|
+
t[8] !== r || t[9] !== a ? (p = /* @__PURE__ */ (0, A.jsx)(di, {
|
|
2690
2668
|
code: a,
|
|
2691
2669
|
language: r
|
|
2692
2670
|
}), t[8] = r, t[9] = a, t[10] = p) : p = t[10];
|
|
2693
2671
|
let m;
|
|
2694
|
-
t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ (0,
|
|
2672
|
+
t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
2695
2673
|
className: "flex justify-end mt-2 space-x-2",
|
|
2696
2674
|
children: [f, p]
|
|
2697
2675
|
}), t[11] = f, t[12] = p, t[13] = m) : m = t[13];
|
|
2698
2676
|
let h;
|
|
2699
|
-
return t[14] !== d || t[15] !== m ? (h = /* @__PURE__ */ (0,
|
|
2677
|
+
return t[14] !== d || t[15] !== m ? (h = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
2700
2678
|
className: "relative",
|
|
2701
2679
|
children: [d, m]
|
|
2702
2680
|
}), t[14] = d, t[15] = m, t[16] = h) : h = t[16], h;
|
|
2703
|
-
},
|
|
2704
|
-
let t = (0,
|
|
2681
|
+
}, pi = (e) => {
|
|
2682
|
+
let t = (0, O.c)(9), n, r;
|
|
2705
2683
|
t[0] === e ? (n = t[1], r = t[2]) : ({onClick: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2706
|
-
let [i, a] = (0,
|
|
2684
|
+
let [i, a] = (0, D.useState)(!1), s;
|
|
2707
2685
|
t[3] === n ? s = t[4] : (s = (e) => {
|
|
2708
2686
|
n?.(e), a(!0), setTimeout(() => a(!1), 1e3);
|
|
2709
2687
|
}, t[3] = n, t[4] = s);
|
|
2710
2688
|
let c = i ? "Copied" : "Copy", l;
|
|
2711
|
-
return t[5] !== r || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ (0,
|
|
2689
|
+
return t[5] !== r || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ (0, A.jsx)(o, {
|
|
2712
2690
|
...r,
|
|
2713
2691
|
onClick: s,
|
|
2714
2692
|
children: c
|
|
2715
2693
|
}), t[5] = r, t[6] = s, t[7] = c, t[8] = l) : l = t[8], l;
|
|
2716
|
-
},
|
|
2694
|
+
}, mi = {
|
|
2717
2695
|
...p,
|
|
2718
2696
|
attributes: {
|
|
2719
2697
|
...p.attributes,
|
|
2720
2698
|
"*": [...p.attributes?.["*"] ?? [], "className"]
|
|
2721
2699
|
}
|
|
2722
|
-
},
|
|
2700
|
+
}, hi = Object.values({
|
|
2723
2701
|
...g,
|
|
2724
|
-
sanitize: [h,
|
|
2725
|
-
}),
|
|
2702
|
+
sanitize: [h, mi]
|
|
2703
|
+
}), gi = { code: ({ children: e, className: t }) => {
|
|
2726
2704
|
let n = t?.replace("language-", "");
|
|
2727
2705
|
if (n && typeof e == "string") {
|
|
2728
2706
|
let t = e.trim();
|
|
2729
|
-
return /* @__PURE__ */ (0,
|
|
2707
|
+
return /* @__PURE__ */ (0, A.jsxs)("div", { children: [/* @__PURE__ */ (0, A.jsx)("div", {
|
|
2730
2708
|
className: "text-xs text-muted-foreground pl-1",
|
|
2731
2709
|
children: n
|
|
2732
|
-
}), /* @__PURE__ */ (0,
|
|
2710
|
+
}), /* @__PURE__ */ (0, A.jsx)(fi, {
|
|
2733
2711
|
code: t,
|
|
2734
2712
|
language: n
|
|
2735
2713
|
})] });
|
|
2736
2714
|
}
|
|
2737
|
-
return /* @__PURE__ */ (0,
|
|
2715
|
+
return /* @__PURE__ */ (0, A.jsx)("code", {
|
|
2738
2716
|
className: t,
|
|
2739
2717
|
children: e
|
|
2740
2718
|
});
|
|
2741
|
-
} },
|
|
2742
|
-
let { data: e } = Xe(async () =>
|
|
2719
|
+
} }, _i, vi = () => {
|
|
2720
|
+
let { data: e } = Xe(async () => _i || (_i = { math: (await import("./dist-CcyKTBTF.js")).math }, _i), []);
|
|
2743
2721
|
return e;
|
|
2744
|
-
},
|
|
2745
|
-
let t = (0,
|
|
2746
|
-
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0,
|
|
2747
|
-
components:
|
|
2722
|
+
}, yi = (0, D.memo)((e) => {
|
|
2723
|
+
let t = (0, O.c)(3), { content: n } = e, r = vi(), i;
|
|
2724
|
+
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, A.jsx)(f, {
|
|
2725
|
+
components: gi,
|
|
2748
2726
|
plugins: r,
|
|
2749
|
-
rehypePlugins:
|
|
2727
|
+
rehypePlugins: hi,
|
|
2750
2728
|
className: "mo-markdown-renderer",
|
|
2751
2729
|
children: n
|
|
2752
2730
|
}), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
|
|
2753
2731
|
});
|
|
2754
|
-
|
|
2732
|
+
yi.displayName = "MarkdownRenderer";
|
|
2755
2733
|
//#endregion
|
|
2756
2734
|
//#region src/components/icons/spinner.tsx
|
|
2757
|
-
var
|
|
2735
|
+
var bi = a("animate-spin", {
|
|
2758
2736
|
variants: {
|
|
2759
2737
|
centered: { true: "m-auto" },
|
|
2760
2738
|
size: {
|
|
@@ -2765,67 +2743,67 @@ var gi = a("animate-spin", {
|
|
|
2765
2743
|
}
|
|
2766
2744
|
},
|
|
2767
2745
|
defaultVariants: { size: "medium" }
|
|
2768
|
-
}),
|
|
2769
|
-
let n = (0,
|
|
2746
|
+
}), xi = D.forwardRef((e, t) => {
|
|
2747
|
+
let n = (0, O.c)(13), i, a, o, s;
|
|
2770
2748
|
if (n[0] !== e) {
|
|
2771
2749
|
let { className: t, children: r, centered: c, size: l, ...u } = e;
|
|
2772
2750
|
a = t, i = c, s = l, o = u, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s;
|
|
2773
2751
|
} else i = n[1], a = n[2], o = n[3], s = n[4];
|
|
2774
2752
|
let c;
|
|
2775
|
-
n[5] !== i || n[6] !== a || n[7] !== s ? (c = r(
|
|
2753
|
+
n[5] !== i || n[6] !== a || n[7] !== s ? (c = r(bi({
|
|
2776
2754
|
centered: i,
|
|
2777
2755
|
size: s
|
|
2778
2756
|
}), a), n[5] = i, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
|
|
2779
2757
|
let l;
|
|
2780
|
-
return n[9] !== o || n[10] !== t || n[11] !== c ? (l = /* @__PURE__ */ (0,
|
|
2758
|
+
return n[9] !== o || n[10] !== t || n[11] !== c ? (l = /* @__PURE__ */ (0, A.jsx)(ft, {
|
|
2781
2759
|
ref: t,
|
|
2782
2760
|
className: c,
|
|
2783
2761
|
strokeWidth: 1.5,
|
|
2784
2762
|
...o
|
|
2785
2763
|
}), n[9] = o, n[10] = t, n[11] = c, n[12] = l) : l = n[12], l;
|
|
2786
2764
|
});
|
|
2787
|
-
|
|
2765
|
+
xi.displayName = "Spinner";
|
|
2788
2766
|
//#endregion
|
|
2789
2767
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/util.js
|
|
2790
|
-
function
|
|
2768
|
+
function Si(e, t) {
|
|
2791
2769
|
if (e.match(/^[a-z]+:\/\//i)) return e;
|
|
2792
2770
|
if (e.match(/^\/\//)) return window.location.protocol + e;
|
|
2793
2771
|
if (e.match(/^[a-z]+:/i)) return e;
|
|
2794
2772
|
let n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
|
|
2795
2773
|
return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
|
|
2796
2774
|
}
|
|
2797
|
-
var
|
|
2775
|
+
var Ci = (() => {
|
|
2798
2776
|
let e = 0, t = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
|
|
2799
2777
|
return () => (e += 1, `u${t()}${e}`);
|
|
2800
2778
|
})();
|
|
2801
|
-
function
|
|
2779
|
+
function G(e) {
|
|
2802
2780
|
let t = [];
|
|
2803
2781
|
for (let n = 0, r = e.length; n < r; n++) t.push(e[n]);
|
|
2804
2782
|
return t;
|
|
2805
2783
|
}
|
|
2806
|
-
var
|
|
2807
|
-
function
|
|
2808
|
-
return
|
|
2784
|
+
var K = null;
|
|
2785
|
+
function wi(e = {}) {
|
|
2786
|
+
return K || (e.includeStyleProperties ? (K = e.includeStyleProperties, K) : (K = G(window.getComputedStyle(document.documentElement)), K));
|
|
2809
2787
|
}
|
|
2810
|
-
function
|
|
2788
|
+
function q(e, t) {
|
|
2811
2789
|
let n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
2812
2790
|
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
2813
2791
|
}
|
|
2814
|
-
function
|
|
2815
|
-
let t =
|
|
2792
|
+
function Ti(e) {
|
|
2793
|
+
let t = q(e, "border-left-width"), n = q(e, "border-right-width");
|
|
2816
2794
|
return e.clientWidth + t + n;
|
|
2817
2795
|
}
|
|
2818
|
-
function
|
|
2819
|
-
let t =
|
|
2796
|
+
function Ei(e) {
|
|
2797
|
+
let t = q(e, "border-top-width"), n = q(e, "border-bottom-width");
|
|
2820
2798
|
return e.clientHeight + t + n;
|
|
2821
2799
|
}
|
|
2822
|
-
function
|
|
2800
|
+
function Di(e, t = {}) {
|
|
2823
2801
|
return {
|
|
2824
|
-
width: t.width ||
|
|
2825
|
-
height: t.height ||
|
|
2802
|
+
width: t.width || Ti(e),
|
|
2803
|
+
height: t.height || Ei(e)
|
|
2826
2804
|
};
|
|
2827
2805
|
}
|
|
2828
|
-
function
|
|
2806
|
+
function Oi() {
|
|
2829
2807
|
let e, t;
|
|
2830
2808
|
try {
|
|
2831
2809
|
t = process;
|
|
@@ -2833,11 +2811,11 @@ function wi() {
|
|
|
2833
2811
|
let n = t && t.env ? t.env.devicePixelRatio : null;
|
|
2834
2812
|
return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
2835
2813
|
}
|
|
2836
|
-
var
|
|
2837
|
-
function
|
|
2838
|
-
(e.width >
|
|
2814
|
+
var J = 16384;
|
|
2815
|
+
function ki(e) {
|
|
2816
|
+
(e.width > J || e.height > J) && (e.width > J && e.height > J ? e.width > e.height ? (e.height *= J / e.width, e.width = J) : (e.width *= J / e.height, e.height = J) : e.width > J ? (e.height *= J / e.width, e.width = J) : (e.width *= J / e.height, e.height = J));
|
|
2839
2817
|
}
|
|
2840
|
-
function
|
|
2818
|
+
function Y(e) {
|
|
2841
2819
|
return new Promise((t, n) => {
|
|
2842
2820
|
let r = new Image();
|
|
2843
2821
|
r.onload = () => {
|
|
@@ -2847,80 +2825,80 @@ function X(e) {
|
|
|
2847
2825
|
}, r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
|
|
2848
2826
|
});
|
|
2849
2827
|
}
|
|
2850
|
-
async function
|
|
2828
|
+
async function Ai(e) {
|
|
2851
2829
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
|
|
2852
2830
|
}
|
|
2853
|
-
async function
|
|
2831
|
+
async function ji(e, t, n) {
|
|
2854
2832
|
let r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
|
|
2855
|
-
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),
|
|
2833
|
+
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), Ai(i);
|
|
2856
2834
|
}
|
|
2857
|
-
var
|
|
2835
|
+
var X = (e, t) => {
|
|
2858
2836
|
if (e instanceof t) return !0;
|
|
2859
2837
|
let n = Object.getPrototypeOf(e);
|
|
2860
|
-
return n === null ? !1 : n.constructor.name === t.name ||
|
|
2838
|
+
return n === null ? !1 : n.constructor.name === t.name || X(n, t);
|
|
2861
2839
|
};
|
|
2862
2840
|
//#endregion
|
|
2863
2841
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-pseudos.js
|
|
2864
|
-
function
|
|
2842
|
+
function Mi(e) {
|
|
2865
2843
|
let t = e.getPropertyValue("content");
|
|
2866
2844
|
return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
|
|
2867
2845
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2846
|
+
function Ni(e, t) {
|
|
2847
|
+
return wi(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
|
|
2870
2848
|
}
|
|
2871
|
-
function
|
|
2872
|
-
let i = `.${e}:${t}`, a = n.cssText ?
|
|
2849
|
+
function Pi(e, t, n, r) {
|
|
2850
|
+
let i = `.${e}:${t}`, a = n.cssText ? Mi(n) : Ni(n, r);
|
|
2873
2851
|
return document.createTextNode(`${i}{${a}}`);
|
|
2874
2852
|
}
|
|
2875
|
-
function
|
|
2853
|
+
function Fi(e, t, n, r) {
|
|
2876
2854
|
let i = window.getComputedStyle(e, n), a = i.getPropertyValue("content");
|
|
2877
2855
|
if (a === "" || a === "none") return;
|
|
2878
|
-
let o =
|
|
2856
|
+
let o = Ci();
|
|
2879
2857
|
try {
|
|
2880
2858
|
t.className = `${t.className} ${o}`;
|
|
2881
2859
|
} catch {
|
|
2882
2860
|
return;
|
|
2883
2861
|
}
|
|
2884
2862
|
let s = document.createElement("style");
|
|
2885
|
-
s.appendChild(
|
|
2863
|
+
s.appendChild(Pi(o, n, i, r)), t.appendChild(s);
|
|
2886
2864
|
}
|
|
2887
|
-
function
|
|
2888
|
-
|
|
2865
|
+
function Ii(e, t, n) {
|
|
2866
|
+
Fi(e, t, ":before", n), Fi(e, t, ":after", n);
|
|
2889
2867
|
}
|
|
2890
2868
|
//#endregion
|
|
2891
2869
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/mimes.js
|
|
2892
|
-
var
|
|
2893
|
-
woff:
|
|
2894
|
-
woff2:
|
|
2870
|
+
var Li = "application/font-woff", Ri = "image/jpeg", zi = {
|
|
2871
|
+
woff: Li,
|
|
2872
|
+
woff2: Li,
|
|
2895
2873
|
ttf: "application/font-truetype",
|
|
2896
2874
|
eot: "application/vnd.ms-fontobject",
|
|
2897
2875
|
png: "image/png",
|
|
2898
|
-
jpg:
|
|
2899
|
-
jpeg:
|
|
2876
|
+
jpg: Ri,
|
|
2877
|
+
jpeg: Ri,
|
|
2900
2878
|
gif: "image/gif",
|
|
2901
2879
|
tiff: "image/tiff",
|
|
2902
2880
|
svg: "image/svg+xml",
|
|
2903
2881
|
webp: "image/webp"
|
|
2904
2882
|
};
|
|
2905
|
-
function
|
|
2883
|
+
function Bi(e) {
|
|
2906
2884
|
let t = /\.([^./]*?)$/g.exec(e);
|
|
2907
2885
|
return t ? t[1] : "";
|
|
2908
2886
|
}
|
|
2909
|
-
function
|
|
2910
|
-
return
|
|
2887
|
+
function Vi(e) {
|
|
2888
|
+
return zi[Bi(e).toLowerCase()] || "";
|
|
2911
2889
|
}
|
|
2912
2890
|
//#endregion
|
|
2913
2891
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/dataurl.js
|
|
2914
|
-
function
|
|
2892
|
+
function Hi(e) {
|
|
2915
2893
|
return e.split(/,/)[1];
|
|
2916
2894
|
}
|
|
2917
|
-
function
|
|
2895
|
+
function Ui(e) {
|
|
2918
2896
|
return e.search(/^(data:)/) !== -1;
|
|
2919
2897
|
}
|
|
2920
|
-
function
|
|
2898
|
+
function Wi(e, t) {
|
|
2921
2899
|
return `data:${t};base64,${e}`;
|
|
2922
2900
|
}
|
|
2923
|
-
async function
|
|
2901
|
+
async function Gi(e, t, n) {
|
|
2924
2902
|
let r = await fetch(e, t);
|
|
2925
2903
|
if (r.status === 404) throw Error(`Resource "${r.url}" not found`);
|
|
2926
2904
|
let i = await r.blob();
|
|
@@ -2938,83 +2916,83 @@ async function Vi(e, t, n) {
|
|
|
2938
2916
|
}, a.readAsDataURL(i);
|
|
2939
2917
|
});
|
|
2940
2918
|
}
|
|
2941
|
-
var
|
|
2942
|
-
function
|
|
2919
|
+
var Ki = {};
|
|
2920
|
+
function qi(e, t, n) {
|
|
2943
2921
|
let r = e.replace(/\?.*/, "");
|
|
2944
2922
|
return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
|
|
2945
2923
|
}
|
|
2946
|
-
async function
|
|
2947
|
-
let r =
|
|
2948
|
-
if (
|
|
2924
|
+
async function Z(e, t, n) {
|
|
2925
|
+
let r = qi(e, t, n.includeQueryParams);
|
|
2926
|
+
if (Ki[r] != null) return Ki[r];
|
|
2949
2927
|
n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
2950
2928
|
let i;
|
|
2951
2929
|
try {
|
|
2952
|
-
i =
|
|
2930
|
+
i = Wi(await Gi(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", Hi(n))), t);
|
|
2953
2931
|
} catch (t) {
|
|
2954
2932
|
i = n.imagePlaceholder || "";
|
|
2955
2933
|
let r = `Failed to fetch resource: ${e}`;
|
|
2956
2934
|
t && (r = typeof t == "string" ? t : t.message), r && console.warn(r);
|
|
2957
2935
|
}
|
|
2958
|
-
return
|
|
2936
|
+
return Ki[r] = i, i;
|
|
2959
2937
|
}
|
|
2960
2938
|
//#endregion
|
|
2961
2939
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-node.js
|
|
2962
|
-
async function
|
|
2940
|
+
async function Ji(e) {
|
|
2963
2941
|
let t = e.toDataURL();
|
|
2964
|
-
return t === "data:," ? e.cloneNode(!1) :
|
|
2942
|
+
return t === "data:," ? e.cloneNode(!1) : Y(t);
|
|
2965
2943
|
}
|
|
2966
|
-
async function
|
|
2944
|
+
async function Yi(e, t) {
|
|
2967
2945
|
if (e.currentSrc) {
|
|
2968
2946
|
let t = document.createElement("canvas"), n = t.getContext("2d");
|
|
2969
|
-
return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height),
|
|
2947
|
+
return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), Y(t.toDataURL());
|
|
2970
2948
|
}
|
|
2971
2949
|
let n = e.poster;
|
|
2972
|
-
return
|
|
2950
|
+
return Y(await Z(n, Vi(n), t));
|
|
2973
2951
|
}
|
|
2974
|
-
async function
|
|
2952
|
+
async function Xi(e, t) {
|
|
2975
2953
|
try {
|
|
2976
2954
|
if (e?.contentDocument?.body) return await Q(e.contentDocument.body, t, !0);
|
|
2977
2955
|
} catch {}
|
|
2978
2956
|
return e.cloneNode(!1);
|
|
2979
2957
|
}
|
|
2980
|
-
async function
|
|
2981
|
-
return
|
|
2958
|
+
async function Zi(e, t) {
|
|
2959
|
+
return X(e, HTMLCanvasElement) ? Ji(e) : X(e, HTMLVideoElement) ? Yi(e, t) : X(e, HTMLIFrameElement) ? Xi(e, t) : e.cloneNode($i(e));
|
|
2982
2960
|
}
|
|
2983
|
-
var
|
|
2984
|
-
async function
|
|
2985
|
-
if (
|
|
2961
|
+
var Qi = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", $i = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
2962
|
+
async function ea(e, t, n) {
|
|
2963
|
+
if ($i(t)) return t;
|
|
2986
2964
|
let r = [];
|
|
2987
|
-
if (
|
|
2988
|
-
else if (
|
|
2989
|
-
e.contentDocument?.body && (r =
|
|
2965
|
+
if (Qi(e) && e.assignedNodes) r = G(e.assignedNodes());
|
|
2966
|
+
else if (X(e, HTMLIFrameElement)) try {
|
|
2967
|
+
e.contentDocument?.body && (r = G(e.contentDocument.body.childNodes));
|
|
2990
2968
|
} catch {}
|
|
2991
|
-
else r =
|
|
2992
|
-
return r.length === 0 ||
|
|
2969
|
+
else r = G((e.shadowRoot ?? e).childNodes);
|
|
2970
|
+
return r.length === 0 || X(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => Q(r, n)).then((e) => {
|
|
2993
2971
|
e && t.appendChild(e);
|
|
2994
2972
|
}), Promise.resolve()), t;
|
|
2995
2973
|
}
|
|
2996
|
-
function
|
|
2974
|
+
function ta(e, t, n) {
|
|
2997
2975
|
let r = t.style;
|
|
2998
2976
|
if (!r) return;
|
|
2999
2977
|
let i = window.getComputedStyle(e);
|
|
3000
|
-
i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) :
|
|
2978
|
+
i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : wi(n).forEach((n) => {
|
|
3001
2979
|
let a = i.getPropertyValue(n);
|
|
3002
|
-
n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`),
|
|
2980
|
+
n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), X(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));
|
|
3003
2981
|
});
|
|
3004
2982
|
}
|
|
3005
|
-
function
|
|
3006
|
-
|
|
2983
|
+
function na(e, t) {
|
|
2984
|
+
X(e, HTMLTextAreaElement) && (t.innerHTML = e.value), X(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
3007
2985
|
}
|
|
3008
|
-
function
|
|
3009
|
-
if (
|
|
2986
|
+
function ra(e, t) {
|
|
2987
|
+
if (X(e, HTMLSelectElement)) {
|
|
3010
2988
|
let n = t, r = Array.from(n.children).find((t) => e.value === t.getAttribute("value"));
|
|
3011
2989
|
r && r.setAttribute("selected", "");
|
|
3012
2990
|
}
|
|
3013
2991
|
}
|
|
3014
|
-
function
|
|
3015
|
-
return
|
|
2992
|
+
function ia(e, t, n) {
|
|
2993
|
+
return X(t, Element) && (ta(e, t, n), Ii(e, t, n), na(e, t), ra(e, t)), t;
|
|
3016
2994
|
}
|
|
3017
|
-
async function
|
|
2995
|
+
async function aa(e, t) {
|
|
3018
2996
|
let n = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
3019
2997
|
if (n.length === 0) return e;
|
|
3020
2998
|
let r = {};
|
|
@@ -3037,60 +3015,60 @@ async function na(e, t) {
|
|
|
3037
3015
|
return e;
|
|
3038
3016
|
}
|
|
3039
3017
|
async function Q(e, t, n) {
|
|
3040
|
-
return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) =>
|
|
3018
|
+
return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => Zi(e, t)).then((n) => ea(e, n, t)).then((n) => ia(e, n, t)).then((e) => aa(e, t));
|
|
3041
3019
|
}
|
|
3042
3020
|
//#endregion
|
|
3043
3021
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-resources.js
|
|
3044
|
-
var
|
|
3045
|
-
function
|
|
3022
|
+
var oa = /url\((['"]?)([^'"]+?)\1\)/g, sa = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, ca = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
3023
|
+
function la(e) {
|
|
3046
3024
|
let t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
3047
3025
|
return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
|
|
3048
3026
|
}
|
|
3049
|
-
function
|
|
3027
|
+
function ua(e) {
|
|
3050
3028
|
let t = [];
|
|
3051
|
-
return e.replace(
|
|
3029
|
+
return e.replace(oa, (e, n, r) => (t.push(r), e)), t.filter((e) => !Ui(e));
|
|
3052
3030
|
}
|
|
3053
|
-
async function
|
|
3031
|
+
async function da(e, t, n, r, i) {
|
|
3054
3032
|
try {
|
|
3055
|
-
let a = n ?
|
|
3056
|
-
return s = i ?
|
|
3033
|
+
let a = n ? Si(t, n) : t, o = Vi(t), s;
|
|
3034
|
+
return s = i ? Wi(await i(a), o) : await Z(a, o, r), e.replace(la(t), `$1${s}$3`);
|
|
3057
3035
|
} catch {}
|
|
3058
3036
|
return e;
|
|
3059
3037
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return t ? e.replace(
|
|
3038
|
+
function fa(e, { preferredFontFormat: t }) {
|
|
3039
|
+
return t ? e.replace(ca, (e) => {
|
|
3062
3040
|
for (;;) {
|
|
3063
|
-
let [n, , r] =
|
|
3041
|
+
let [n, , r] = sa.exec(e) || [];
|
|
3064
3042
|
if (!r) return "";
|
|
3065
3043
|
if (r === t) return `src: ${n};`;
|
|
3066
3044
|
}
|
|
3067
3045
|
}) : e;
|
|
3068
3046
|
}
|
|
3069
|
-
function
|
|
3070
|
-
return e.search(
|
|
3047
|
+
function pa(e) {
|
|
3048
|
+
return e.search(oa) !== -1;
|
|
3071
3049
|
}
|
|
3072
|
-
async function
|
|
3073
|
-
if (!
|
|
3074
|
-
let r =
|
|
3075
|
-
return
|
|
3050
|
+
async function ma(e, t, n) {
|
|
3051
|
+
if (!pa(e)) return e;
|
|
3052
|
+
let r = fa(e, n);
|
|
3053
|
+
return ua(r).reduce((e, r) => e.then((e) => da(e, r, t, n)), Promise.resolve(r));
|
|
3076
3054
|
}
|
|
3077
3055
|
//#endregion
|
|
3078
3056
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-images.js
|
|
3079
3057
|
async function $(e, t, n) {
|
|
3080
3058
|
let r = t.style?.getPropertyValue(e);
|
|
3081
3059
|
if (r) {
|
|
3082
|
-
let i = await
|
|
3060
|
+
let i = await ma(r, null, n);
|
|
3083
3061
|
return t.style.setProperty(e, i, t.style.getPropertyPriority(e)), !0;
|
|
3084
3062
|
}
|
|
3085
3063
|
return !1;
|
|
3086
3064
|
}
|
|
3087
|
-
async function
|
|
3065
|
+
async function ha(e, t) {
|
|
3088
3066
|
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);
|
|
3089
3067
|
}
|
|
3090
|
-
async function
|
|
3091
|
-
let n =
|
|
3092
|
-
if (!(n && !
|
|
3093
|
-
let r = n ? e.src : e.href.baseVal, i = await
|
|
3068
|
+
async function ga(e, t) {
|
|
3069
|
+
let n = X(e, HTMLImageElement);
|
|
3070
|
+
if (!(n && !Ui(e.src)) && !(X(e, SVGImageElement) && !Ui(e.href.baseVal))) return;
|
|
3071
|
+
let r = n ? e.src : e.href.baseVal, i = await Z(r, Vi(r), t);
|
|
3094
3072
|
await new Promise((r, a) => {
|
|
3095
3073
|
e.onload = r, e.onerror = t.onImageErrorHandler ? (...e) => {
|
|
3096
3074
|
try {
|
|
@@ -3103,16 +3081,16 @@ async function pa(e, t) {
|
|
|
3103
3081
|
o.decode &&= r, o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
|
|
3104
3082
|
});
|
|
3105
3083
|
}
|
|
3106
|
-
async function
|
|
3107
|
-
let n =
|
|
3084
|
+
async function _a(e, t) {
|
|
3085
|
+
let n = G(e.childNodes).map((e) => va(e, t));
|
|
3108
3086
|
await Promise.all(n).then(() => e);
|
|
3109
3087
|
}
|
|
3110
|
-
async function
|
|
3111
|
-
|
|
3088
|
+
async function va(e, t) {
|
|
3089
|
+
X(e, Element) && (await ha(e, t), await ga(e, t), await _a(e, t));
|
|
3112
3090
|
}
|
|
3113
3091
|
//#endregion
|
|
3114
3092
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/apply-style.js
|
|
3115
|
-
function
|
|
3093
|
+
function ya(e, t) {
|
|
3116
3094
|
let { style: n } = e;
|
|
3117
3095
|
t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
|
|
3118
3096
|
let r = t.style;
|
|
@@ -3122,22 +3100,22 @@ function ga(e, t) {
|
|
|
3122
3100
|
}
|
|
3123
3101
|
//#endregion
|
|
3124
3102
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-webfonts.js
|
|
3125
|
-
var
|
|
3126
|
-
async function
|
|
3127
|
-
let t =
|
|
3103
|
+
var ba = {};
|
|
3104
|
+
async function xa(e) {
|
|
3105
|
+
let t = ba[e];
|
|
3128
3106
|
return t ?? (t = {
|
|
3129
3107
|
url: e,
|
|
3130
3108
|
cssText: await (await fetch(e)).text()
|
|
3131
|
-
},
|
|
3109
|
+
}, ba[e] = t, t);
|
|
3132
3110
|
}
|
|
3133
|
-
async function
|
|
3111
|
+
async function Sa(e, t) {
|
|
3134
3112
|
let n = e.cssText, r = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
3135
3113
|
let a = i.replace(r, "$1");
|
|
3136
|
-
return a.startsWith("https://") || (a = new URL(a, e.url).href),
|
|
3114
|
+
return a.startsWith("https://") || (a = new URL(a, e.url).href), Gi(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
|
|
3137
3115
|
});
|
|
3138
3116
|
return Promise.all(i).then(() => n);
|
|
3139
3117
|
}
|
|
3140
|
-
function
|
|
3118
|
+
function Ca(e) {
|
|
3141
3119
|
if (e == null) return [];
|
|
3142
3120
|
let t = [], n = e.replace(/(\/\*[\s\S]*?\*\/)/gi, ""), r = /* @__PURE__ */ RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
|
|
3143
3121
|
for (;;) {
|
|
@@ -3157,13 +3135,13 @@ function ba(e) {
|
|
|
3157
3135
|
}
|
|
3158
3136
|
return t;
|
|
3159
3137
|
}
|
|
3160
|
-
async function
|
|
3138
|
+
async function wa(e, t) {
|
|
3161
3139
|
let n = [], r = [];
|
|
3162
3140
|
return e.forEach((n) => {
|
|
3163
3141
|
if ("cssRules" in n) try {
|
|
3164
|
-
|
|
3142
|
+
G(n.cssRules || []).forEach((e, i) => {
|
|
3165
3143
|
if (e.type === CSSRule.IMPORT_RULE) {
|
|
3166
|
-
let a = i + 1, o = e.href, s =
|
|
3144
|
+
let a = i + 1, o = e.href, s = xa(o).then((e) => Sa(e, t)).then((e) => Ca(e).forEach((e) => {
|
|
3167
3145
|
try {
|
|
3168
3146
|
n.insertRule(e, e.startsWith("@import") ? a += 1 : n.cssRules.length);
|
|
3169
3147
|
} catch (t) {
|
|
@@ -3180,7 +3158,7 @@ async function xa(e, t) {
|
|
|
3180
3158
|
});
|
|
3181
3159
|
} catch (i) {
|
|
3182
3160
|
let a = e.find((e) => e.href == null) || document.styleSheets[0];
|
|
3183
|
-
n.href != null && r.push(
|
|
3161
|
+
n.href != null && r.push(xa(n.href).then((e) => Sa(e, t)).then((e) => Ca(e).forEach((e) => {
|
|
3184
3162
|
a.insertRule(e, a.cssRules.length);
|
|
3185
3163
|
})).catch((e) => {
|
|
3186
3164
|
console.error("Error loading remote stylesheet", e);
|
|
@@ -3188,7 +3166,7 @@ async function xa(e, t) {
|
|
|
3188
3166
|
}
|
|
3189
3167
|
}), Promise.all(r).then(() => (e.forEach((e) => {
|
|
3190
3168
|
if ("cssRules" in e) try {
|
|
3191
|
-
|
|
3169
|
+
G(e.cssRules || []).forEach((e) => {
|
|
3192
3170
|
n.push(e);
|
|
3193
3171
|
});
|
|
3194
3172
|
} catch (t) {
|
|
@@ -3196,37 +3174,37 @@ async function xa(e, t) {
|
|
|
3196
3174
|
}
|
|
3197
3175
|
}), n));
|
|
3198
3176
|
}
|
|
3199
|
-
function
|
|
3200
|
-
return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) =>
|
|
3177
|
+
function Ta(e) {
|
|
3178
|
+
return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => pa(e.style.getPropertyValue("src")));
|
|
3201
3179
|
}
|
|
3202
|
-
async function
|
|
3180
|
+
async function Ea(e, t) {
|
|
3203
3181
|
if (e.ownerDocument == null) throw Error("Provided element is not within a Document");
|
|
3204
|
-
return
|
|
3182
|
+
return Ta(await wa(G(e.ownerDocument.styleSheets), t));
|
|
3205
3183
|
}
|
|
3206
|
-
function
|
|
3184
|
+
function Da(e) {
|
|
3207
3185
|
return (e || "").trim().replace(/["']/g, "");
|
|
3208
3186
|
}
|
|
3209
|
-
function
|
|
3187
|
+
function Oa(e) {
|
|
3210
3188
|
let t = /* @__PURE__ */ new Set();
|
|
3211
3189
|
function n(e) {
|
|
3212
3190
|
let r = e.style.fontFamily || getComputedStyle(e).fontFamily;
|
|
3213
3191
|
r && r.split(",").forEach((e) => {
|
|
3214
|
-
t.add(
|
|
3192
|
+
t.add(Da(e));
|
|
3215
3193
|
}), Array.from(e.children).forEach((e) => {
|
|
3216
3194
|
e instanceof HTMLElement && n(e);
|
|
3217
3195
|
});
|
|
3218
3196
|
}
|
|
3219
3197
|
return n(e), t;
|
|
3220
3198
|
}
|
|
3221
|
-
async function
|
|
3222
|
-
let n = await
|
|
3223
|
-
return (await Promise.all(n.filter((e) => r.has(
|
|
3199
|
+
async function ka(e, t) {
|
|
3200
|
+
let n = await Ea(e, t), r = Oa(e);
|
|
3201
|
+
return (await Promise.all(n.filter((e) => r.has(Da(e.style.fontFamily))).map((e) => {
|
|
3224
3202
|
let n = e.parentStyleSheet ? e.parentStyleSheet.href : null;
|
|
3225
|
-
return
|
|
3203
|
+
return ma(e.cssText, n, t);
|
|
3226
3204
|
}))).join("\n");
|
|
3227
3205
|
}
|
|
3228
|
-
async function
|
|
3229
|
-
let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await
|
|
3206
|
+
async function Aa(e, t) {
|
|
3207
|
+
let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await ka(e, t) : t.fontEmbedCSS, r = t.extraStyleContent == null ? n : (n || "").concat(t.extraStyleContent);
|
|
3230
3208
|
if (r) {
|
|
3231
3209
|
let t = document.createElement("style"), n = document.createTextNode(r);
|
|
3232
3210
|
t.appendChild(n), e.firstChild ? e.insertBefore(t, e.firstChild) : e.appendChild(t);
|
|
@@ -3234,18 +3212,18 @@ async function Da(e, t) {
|
|
|
3234
3212
|
}
|
|
3235
3213
|
//#endregion
|
|
3236
3214
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/index.js
|
|
3237
|
-
async function
|
|
3238
|
-
let { width: n, height: r } =
|
|
3239
|
-
return await
|
|
3215
|
+
async function ja(e, t = {}) {
|
|
3216
|
+
let { width: n, height: r } = Di(e, t), i = await Q(e, t, !0);
|
|
3217
|
+
return await Aa(i, t), await va(i, t), ya(i, t), await ji(i, n, r);
|
|
3240
3218
|
}
|
|
3241
|
-
async function
|
|
3242
|
-
let { width: n, height: r } =
|
|
3243
|
-
return a.width = c * s, a.height = l * s, t.skipAutoScale ||
|
|
3219
|
+
async function Ma(e, t = {}) {
|
|
3220
|
+
let { width: n, height: r } = Di(e, t), i = await Y(await ja(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || Oi(), c = t.canvasWidth || n, l = t.canvasHeight || r;
|
|
3221
|
+
return a.width = c * s, a.height = l * s, t.skipAutoScale || ki(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;
|
|
3244
3222
|
}
|
|
3245
|
-
async function
|
|
3246
|
-
return (await
|
|
3223
|
+
async function Na(e, t = {}) {
|
|
3224
|
+
return (await Ma(e, t)).toDataURL();
|
|
3247
3225
|
}
|
|
3248
|
-
var
|
|
3226
|
+
var Pa = {
|
|
3249
3227
|
filter: (e) => {
|
|
3250
3228
|
try {
|
|
3251
3229
|
if ("classList" in e) {
|
|
@@ -3263,11 +3241,11 @@ var ja = {
|
|
|
3263
3241
|
},
|
|
3264
3242
|
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(".")
|
|
3265
3243
|
};
|
|
3266
|
-
async function
|
|
3267
|
-
return
|
|
3268
|
-
...
|
|
3244
|
+
async function Fa(e, t) {
|
|
3245
|
+
return Na(e, {
|
|
3246
|
+
...Pa,
|
|
3269
3247
|
...t
|
|
3270
3248
|
});
|
|
3271
3249
|
}
|
|
3272
3250
|
//#endregion
|
|
3273
|
-
export {
|
|
3251
|
+
export { k as $, gr as A, Rn as B, kr as C, Lr as D, Fr as E, lr as F, on as G, In as H, Gn as I, an as J, nn as K, Kn as L, mr as M, pr as N, fr as O, xr as P, ut as Q, Un as R, Dr as S, Nr as T, kn as U, Bn as V, Nn as W, pt as X, mt as Y, ft as Z, Vr as _, si as a, Cr as b, Qr as c, Yr as d, Xr as f, Rr as g, Kr as h, ci as i, br as j, _r as k, ei as l, Gr as m, xi as n, oi as o, Jr as p, tn as q, yi as r, ri as s, Fa as t, $r as u, zr as v, jr as w, Tr as x, Br as y, Fn as z };
|