@kabmo-labs/kabmo 0.57.1 → 0.58.0
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/client/index.html +1 -1
- package/dist/client/index.js +523 -506
- package/dist/client/static/js/Body-karkrzkc.js +3 -0
- package/dist/client/static/js/{CsvGrid-563qmmmr.js → CsvGrid-j03knmbe.js} +2 -2
- package/dist/client/static/js/{DocxView-5j69q3s0.js → DocxView-e8408vzs.js} +2 -2
- package/dist/client/static/js/{DrawioView-gd6k3hvn.js → DrawioView-fj4mfzch.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-6gnktzzp.js → HtmlPreview-9g8xwzgw.js} +1 -1
- package/dist/client/static/js/ImageView-sz4fzz9k.js +1 -0
- package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +2 -0
- package/dist/client/static/js/MergeDiffView-b8f013ws.js +1 -0
- package/dist/client/static/js/Modal-ahecatp5.js +60 -0
- package/dist/client/static/js/{PdfView-n1zq27td.js → PdfView-8jtdx5hd.js} +1 -1
- package/dist/client/static/js/SessionsView-jwp8xvw5.js +1 -0
- package/dist/client/static/js/{SheetView-nes7j86v.js → SheetView-hwx8s864.js} +11 -11
- package/dist/client/static/js/{SvgPreview-vv0qzkt7.js → SvgPreview-ete36nzv.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-02g96sn6.js → abnfDiagram-O67JEVCF-7nsqzz6z.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7qj2fpwt.js → architectureDiagram-NJMV4G6O-xvpkfq2f.js} +11 -11
- package/dist/client/static/js/{astro-asmathwv.js → astro-rsrqgjjx.js} +1 -1
- package/dist/client/static/js/bash-n5d0esqg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-grdr1j2h.js → blockDiagram-BEXU5L5S-0saahcs6.js} +7 -7
- package/dist/client/static/js/c-pk766wx0.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-7y980xpx.js → c4Diagram-YGBWAQC7-ktpqnb4a.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-29ag4js1.js → classDiagram-v2-NBCMYWYE-x67cz3ms.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-e5dvgehd.js → cose-bilkent-JH36ORCC-9wzmhkz8.js} +1 -1
- package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
- package/dist/client/static/js/css-sp1cgdbr.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-eq6fmx0b.js → cynefinDiagram-VND7K2PF-dmmgmv99.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-xfhwp8ha.js → dagre-6A5THRUB-ygkkms1t.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-1bw6x6zt.js → diagram-22UHCM2B-qxj0pqb4.js} +14 -14
- package/dist/client/static/js/{diagram-3UASUU5V-076ej5n5.js → diagram-3UASUU5V-77k8w5dt.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-cvf9fhdq.js → diagram-ATOU4E4O-m0h86vf4.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-hn1wdx54.js → diagram-CDSNMT55-5v28kaeg.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-76gk27b5.js → diagram-MLGK6HIB-zgcg9gaz.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-0cbajhpx.js → diagram-MPIPVDR6-10c9s6e6.js} +2 -2
- package/dist/client/static/js/{dockerfile-7atfjhnf.js → dockerfile-dr9sdsqp.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-n0g3b9m2.js → ebnfDiagram-ZINNZB2B-mz4022dz.js} +1 -1
- package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-3dy25ex8.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-f6wrjcv9.js → elk-276RUBZZ-ccerbsag.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-jz622yrg.js → erDiagram-OPXOYQCR-a8vjyrrw.js} +5 -5
- package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-2ex4nxyg.js → ganttDiagram-FUAMR5RP-sz1g29fp.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-38eyay6g.js → gitGraphDiagram-X574FWY7-efqk42q0.js} +15 -15
- package/dist/client/static/js/graphql-2ntm7jyh.js +1 -0
- package/dist/client/static/js/html-mt2yb43b.js +1 -0
- package/dist/client/static/js/{index-db7vsjkd.js → index-2a0b9ya2.js} +1 -1
- package/dist/client/static/js/index-2f6psebk.js +2 -0
- package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
- package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
- package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
- package/dist/client/static/js/{index-rbkvw2xs.js → index-5tp3emtg.js} +2 -2
- package/dist/client/static/js/{index-8444mec5.js → index-6ac860yz.js} +2 -2
- package/dist/client/static/js/{index-zzggk17b.js → index-6ey6y9em.js} +2 -2
- package/dist/client/static/js/index-6h46r2de.js +1 -0
- package/dist/client/static/js/index-6qqsy78z.js +1 -0
- package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
- package/dist/client/static/js/{index-zv8wrvha.js → index-7ma44af3.js} +3 -3
- package/dist/client/static/js/index-7s4dge1z.js +1 -0
- package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
- package/dist/client/static/js/index-8aqjj2x2.js +1 -0
- package/dist/client/static/js/index-bkwax812.js +1 -0
- package/dist/client/static/js/{index-60g0e74a.js → index-dqf0srrp.js} +2 -2
- package/dist/client/static/js/{index-jaxhfk9x.js → index-dz18nn65.js} +2 -2
- package/dist/client/static/js/{index-9gfn1a3h.js → index-e42ys2q3.js} +7 -7
- package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
- package/dist/client/static/js/{index-55v3qv04.js → index-f31c6jg8.js} +22 -22
- package/dist/client/static/js/index-f44k9k8d.css +1 -0
- package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
- package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
- package/dist/client/static/js/{index-63mk2qk6.js → index-gqsnyh8k.js} +2 -2
- package/dist/client/static/js/index-gw4c5n3a.js +2 -0
- package/dist/client/static/js/index-j863hg0d.js +9 -0
- package/dist/client/static/js/{index-e4yj4kbe.js → index-jnxmvxb8.js} +12 -12
- package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
- package/dist/client/static/js/index-k1576e2m.js +2 -0
- package/dist/client/static/js/index-k4qshngy.js +4 -0
- package/dist/client/static/js/{index-ep99arz1.js → index-k56patms.js} +2 -2
- package/dist/client/static/js/{index-8pqx5n2p.js → index-kc5yt2cd.js} +2 -2
- package/dist/client/static/js/index-mkp3gwag.js +1 -0
- package/dist/client/static/js/{index-g2e0m757.js → index-nzq51nbb.js} +7 -7
- package/dist/client/static/js/{index-1q934wfk.js → index-q5q8a3qn.js} +2 -2
- package/dist/client/static/js/{index-tksrpqkh.js → index-qbqm3c91.js} +5 -5
- package/dist/client/static/js/{index-zynbvm7x.js → index-qkcmspxq.js} +2 -2
- package/dist/client/static/js/index-r1wrke3j.js +1 -0
- package/dist/client/static/js/index-rr79n77k.js +470 -0
- package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
- package/dist/client/static/js/{index-tdryzzy9.js → index-ssepzdaz.js} +6 -6
- package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
- package/dist/client/static/js/{index-ewst55j2.js → index-t71k3b28.js} +2 -2
- package/dist/client/static/js/index-tc07gd33.js +2 -0
- package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
- package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
- package/dist/client/static/js/{index-n1xmkf2g.js → index-tnxp90ac.js} +1 -1
- package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
- package/dist/client/static/js/index-ts8rhd06.js +1 -0
- package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
- package/dist/client/static/js/{index-ays8t3t3.js → index-vb5a3g01.js} +4 -4
- package/dist/client/static/js/{index-pjf5wak8.js → index-ver116ed.js} +1 -1
- package/dist/client/static/js/{index-hge0y4vn.js → index-vf01q99d.js} +2 -2
- package/dist/client/static/js/{index-4cff0zg2.js → index-w5j1wgcz.js} +1 -1
- package/dist/client/static/js/{index-cwwg7k5f.js → index-wnk9k57k.js} +27 -27
- package/dist/client/static/js/{index-6z30g3ha.js → index-x7h04xzf.js} +2 -2
- package/dist/client/static/js/{index-xfnjwhan.js → index-xfyxmaj1.js} +85 -85
- package/dist/client/static/js/index-xygk0v3e.js +2 -0
- package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
- package/dist/client/static/js/index-zh550byg.js +2 -0
- package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-c55t0tvd.js → infoDiagram-VRGFBTTK-rykcacj5.js} +1 -1
- package/dist/client/static/js/ini-bdk46a3d.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-r9kg5kg5.js → ishikawaDiagram-OU5B5YK6-rj752kd8.js} +3 -3
- package/dist/client/static/js/java-3g3925cf.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-zmmst4v8.js → journeyDiagram-ZHPQQLJL-mtetwn6f.js} +5 -5
- package/dist/client/static/js/json-hdyzmffz.js +1 -0
- package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
- package/dist/client/static/js/{julia-d18zhpyp.js → julia-mxe3pnz3.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-3tt6sc9a.js → kanban-definition-PNTS6WVX-4h5pw5mm.js} +3 -3
- package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
- package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
- package/dist/client/static/js/{mermaid.core-pkrs8zp5.js → mermaid.core-bs542jma.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b4c6gxg4.js → mindmap-definition-NLK3R4M7-67s4xy7h.js} +5 -5
- package/dist/client/static/js/one-dark-pro-541ed4b7.js +1 -0
- package/dist/client/static/js/one-light-nr79mykt.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-9jkat1mz.js → pegDiagram-GJSIUBJH-qykb6ssk.js} +1 -1
- package/dist/client/static/js/{perl-sns2qvmf.js → perl-a8eeaqkn.js} +1 -1
- package/dist/client/static/js/{php-3q6v9eey.js → php-6gq92zt8.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6pbchjh7.js → pieDiagram-5QR66LMP-mymrrvck.js} +2 -2
- package/dist/client/static/js/properties-xk4dn00p.js +1 -0
- package/dist/client/static/js/python-7sgz05n4.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p9brea19.js → quadrantDiagram-O4NWA36T-6f8ahd40.js} +6 -6
- package/dist/client/static/js/r-w4qxm0pv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3cep8css.js → railroadDiagram-XR7U4H2S-c3habpvw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-x1yjgsrr.js → requirementDiagram-PLB6GJNP-nysqy6te.js} +12 -12
- package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-mc826p2e.js} +1 -1
- package/dist/client/static/js/{rust-yy8gekx8.js → rust-m4f4vpvn.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-23wzf4aj.js → sankeyDiagram-IPEJSGJF-s5dtfp3z.js} +4 -4
- package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-w4wr3zzr.js → sequenceDiagram-PO4LG4MO-bb3yp049.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-aabfesnr.js → sizeCapture-INFHLROL-0m2msee7.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-t0n288xw.js → stateDiagram-v2-GCMORJYK-cd0qgj6t.js} +3 -3
- package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-5vrwkc13.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-1nnm0p7h.js → swimlanes-2SLR337P-rpb01f7p.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-8pyssn0q.js → timeline-definition-EJHVYXUP-tqw2e6y1.js} +5 -5
- package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.js +1 -0
- package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
- package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-vveepvt6.js → usecaseDiagram-POWQR4AR-dhf4d5xg.js} +41 -41
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-tqyvmqxc.js → vennDiagram-UO4OBE2U-ztkk79dv.js} +7 -7
- package/dist/client/static/js/{vue-e8e3q3hj.js → vue-gmjnxjm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-p8rs34em.js → wardleyDiagram-VNRHLVJA-ahre5tmv.js} +5 -5
- package/dist/client/static/js/xml-mrk4xakv.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-pgnvxtps.js → xychartDiagram-PMCCYNJV-vak2c50n.js} +6 -6
- package/dist/client/static/js/yaml-xaza6dra.js +1 -0
- package/package.json +6 -6
- package/src/client/bootstrap.d.ts +11 -0
- package/src/client/borders.css +3 -4
- package/src/client/components/auth/login-screen/index.tsx +1 -1
- package/src/client/components/common/ComposerPicker.tsx +1 -1
- package/src/client/components/common/CopyButton.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
- package/src/client/components/common/ViewportSelector.tsx +2 -2
- package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
- package/src/client/components/common/checkbox/style.ts +1 -1
- package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
- package/src/client/components/common/file-icon/index.tsx +3 -3
- package/src/client/components/common/harness-glyph/index.tsx +4 -3
- package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
- package/src/client/components/common/image-viewer/index.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
- package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
- package/src/client/components/common/server-control/Panel.tsx +1 -1
- package/src/client/components/common/server-control/Row.tsx +3 -3
- package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
- package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
- package/src/client/components/common/session-delete-modal/index.tsx +4 -4
- package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
- package/src/client/components/common/session-row/index.tsx +40 -2
- package/src/client/components/common/session-row/session-row.test.tsx +46 -3
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/common/window-controls/index.tsx +1 -1
- package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/update-popup/Actions.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
- package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
- package/src/client/components/settings/Modal.tsx +8 -3
- package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
- package/src/client/components/settings/Sidebar.tsx +3 -3
- package/src/client/components/settings/apply-side-effects.test.ts +46 -0
- package/src/client/components/settings/apply-side-effects.ts +8 -0
- package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
- package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
- package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
- package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
- package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
- package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
- package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
- package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
- package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
- package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
- package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
- package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
- package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
- package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
- package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
- package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
- package/src/client/components/workspace/browser-panel/index.tsx +2 -2
- package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
- package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +35 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +17 -12
- package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
- package/src/client/components/workspace/diff-panel/index.tsx +3 -3
- package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
- package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
- package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
- package/src/client/components/workspace/editor/FilePane.tsx +6 -6
- package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
- package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
- package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
- package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
- package/src/client/components/workspace/editor/Tabs.tsx +6 -6
- package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
- package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
- package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
- package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
- package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
- package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
- package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
- package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
- package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
- package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
- package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
- package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/plan-panel/index.tsx +2 -2
- package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
- package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
- package/src/client/components/workspace/search-panel/Body.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
- package/src/client/components/workspace/usage-panel/index.tsx +3 -3
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
- package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +27 -7
- package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
- package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
- package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
- package/src/client/hooks/ui/border-style.test.ts +1 -2
- package/src/client/hooks/ui/theme.ts +23 -2
- package/src/client/main.tsx +7 -1
- package/src/client/tailwind-contrast.test.ts +22 -7
- package/src/client/tailwind.css +115 -18
- package/src/server/lib/assets/theme-css.server.test.ts +31 -1
- package/src/server/lib/assets/theme-css.server.ts +15 -1
- package/src/server/lib/harness/accounts.test.ts +5 -3
- package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
- package/src/server/lib/omp/session/delete.server.ts +4 -0
- package/src/server/lib/realtime/topics/session-data.server.ts +63 -1
- package/src/server/lib/realtime/topics/session-data.test.ts +154 -0
- package/src/server/lib/tray/runtime.server.ts +5 -0
- package/src/server/plugins/ssr.ts +16 -4
- package/src/server/routes/settings/root.ts +11 -0
- package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
- package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
- package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
- package/src/shared/lib/chat/todo/flat-list.ts +29 -0
- package/src/shared/lib/chat/todo/parser.ts +7 -53
- package/src/shared/lib/chat/todo/progress.test.ts +3 -3
- package/src/shared/lib/chat/todo/progress.ts +3 -3
- package/src/shared/lib/fs/git-status.test.ts +22 -22
- package/src/shared/lib/fs/git-status.ts +31 -31
- package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
- package/src/shared/lib/settings/defaults.ts +1 -0
- package/src/shared/lib/theme/catalog.test.ts +42 -0
- package/src/shared/lib/theme/catalog.ts +66 -11
- package/src/shared/lib/theme/css.ts +25 -1
- package/src/shared/lib/theme/custom.test.ts +156 -0
- package/src/shared/lib/theme/custom.ts +260 -0
- package/src/shared/lib/theme/ink-scale.test.ts +83 -2
- package/src/shared/lib/theme/ink-scale.ts +74 -9
- package/src/shared/lib/theme/shell-palette.ts +3 -3
- package/src/shared/lib/theme/theme.test.ts +28 -13
- package/src/shared/types/settings/state.ts +11 -3
- package/tsconfig.json +6 -0
- package/dist/client/static/js/Body-p6zwk0nx.js +0 -3
- package/dist/client/static/js/ImageView-fkfq3fwv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-mdb1qm26.js +0 -2
- package/dist/client/static/js/MergeDiffView-7kpjxcg9.js +0 -1
- package/dist/client/static/js/Modal-0p9cr2tn.js +0 -60
- package/dist/client/static/js/SessionsView-gptt0rq8.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
- package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
- package/dist/client/static/js/c-20y64hcp.js +0 -1
- package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
- package/dist/client/static/js/css-ncvxaxt0.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-5bvd5k2t.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
- package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
- package/dist/client/static/js/html-p76eszt9.js +0 -1
- package/dist/client/static/js/index-28wv94gz.js +0 -2
- package/dist/client/static/js/index-3wgjtp2k.js +0 -9
- package/dist/client/static/js/index-7trfm17d.js +0 -2
- package/dist/client/static/js/index-cxe75e06.js +0 -2
- package/dist/client/static/js/index-dmb1pykr.js +0 -1
- package/dist/client/static/js/index-fqc1snjw.js +0 -1
- package/dist/client/static/js/index-jsn2kedv.js +0 -1
- package/dist/client/static/js/index-pe4d9wht.js +0 -1
- package/dist/client/static/js/index-sm8gpk3g.js +0 -4
- package/dist/client/static/js/index-st6a8q5z.js +0 -470
- package/dist/client/static/js/index-stmwbavz.js +0 -1
- package/dist/client/static/js/index-swaveqxg.css +0 -1
- package/dist/client/static/js/index-t82q5t6m.js +0 -1
- package/dist/client/static/js/index-t9zjfxvc.js +0 -1
- package/dist/client/static/js/index-tdbcp70z.js +0 -2
- package/dist/client/static/js/index-v38j2zxn.js +0 -2
- package/dist/client/static/js/index-x17y7xdr.js +0 -2
- package/dist/client/static/js/index-xrb4kjr3.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
- package/dist/client/static/js/ini-kjcpgebh.js +0 -1
- package/dist/client/static/js/java-0bcyv1jt.js +0 -1
- package/dist/client/static/js/json-xha2drny.js +0 -1
- package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
- package/dist/client/static/js/lua-njwwdj4s.js +0 -1
- package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
- package/dist/client/static/js/one-dark-pro-sstqnzcf.js +0 -1
- package/dist/client/static/js/one-light-6fpxxq2j.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
- package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
- package/dist/client/static/js/python-fdwwjjhh.js +0 -1
- package/dist/client/static/js/r-4d2ygtfj.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-cx3f29mq.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
- package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
- package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
- package/dist/client/static/js/xml-8516fzfp.js +0 -1
- package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{pi}from"./index-396g4zz4.js";var e=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"constant.language.lua"},"2":{"name":"variable.parameter.function.lua"}},"match":"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])","name":"constant.numeric.integer.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])","name":"constant.numeric.integer.lua"},{"include":"#string"},{"captures":{"1":{"name":"punctuation.definition.comment.lua"}},"match":"\\\\A(#!).*$\\\\n?","name":"comment.line.shebang.lua"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.goto.lua"},"2":{"name":"string.tag.lua"}},"match":"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.section.embedded.begin.lua"},"2":{"name":"punctuation.section.embedded.end.lua"}},"match":"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)","name":"string.tag.lua"},{"captures":{"0":{"name":"storage.type.attribute.lua"}},"match":"<\\\\s*(c(?:onst|lose))\\\\s*>"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"captures":{"1":{"name":"keyword.global.lua"}},"match":"^\\\\s*(global)\\\\b(?!\\\\s*=)"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)","name":"constant.language.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(self)\\\\b","name":"variable.language.self.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))","name":"support.function.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))","name":"entity.name.tag.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))","name":"support.function.library.lua"},{"match":"\\\\b(\\\\|\\\\||&&|!)\\\\b","name":"keyword.operator.lua"},{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.logical.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"'({]|\\\\[\\\\[))","name":"support.function.any-method.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)","name":"entity.name.class.lua"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.other.attribute.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"variable.other.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.name.function.lua"},{"match":"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)","name":"keyword.operator.lua"}],"repository":{"comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.lua"}},"end":"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?","endCaptures":{"1":{"name":"punctuation.whitespace.comment.trailing.lua"}},"patterns":[{"begin":"--\\\\[(=*)\\\\[@@@","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"","patterns":[{"include":"source.lua"}]},{"begin":"--\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"----","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua"},{"begin":"---","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.documentation.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua","patterns":[{"include":"#ldoc_tag"}]}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]}]},"emmydoc":{"patterns":[{"begin":"(?<=---)[\\\\t ]*@class","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"[,:]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@enum","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=\\\\n)"}]},{"begin":"(?<=---)[\\\\t ]*@type","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@alias","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?","beginCaptures":{"1":{"name":"storage.type.annotation.lua"},"2":{"name":"support.function.library.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@cast","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.other.lua"}},"end":"(?=\\\\n)","patterns":[{"include":"#emmydoc.type"},{"match":"([+-|])","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@param","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)","beginCaptures":{"1":{"name":"entity.name.variable.lua"},"2":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@return","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\?","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@field","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)","beginCaptures":{"2":{"name":"entity.name.variable.lua"},"3":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#string"},{"include":"#emmydoc.type"},{"match":"]","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@generic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","beginCaptures":{"0":{"name":"storage.type.generic.lua"}},"end":"(?=\\\\n)|(,)","endCaptures":{"0":{"name":"keyword.operator.lua"}},"patterns":[{"match":":","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@vararg","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@overload","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@deprecated","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@meta","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@private","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@protected","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@package","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@version","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b","name":"support.class.lua"},{"match":"[,<>]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[](),:<>?\\\\[][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)","name":"entity.name.variable.lua"},{"include":"#emmydoc.type"},{"include":"#string"}]},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*","name":"support.type.lua"},{"match":"(\\\\.\\\\.\\\\.)[\\\\t ]*","name":"constant.language.lua"},{"include":"#string"}]}]},"escaped_char":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\abfnrtv]","name":"constant.character.escape.lua"},{"match":"\\\\\\\\z[\\\\t\\\\n ]*","name":"constant.character.escape.lua"},{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.lua"},{"match":"\\\\\\\\.","name":"invalid.illegal.character.escape.lua"}]},"ldoc_tag":{"captures":{"1":{"name":"punctuation.definition.block.tag.ldoc"},"2":{"name":"storage.type.class.ldoc"}},"match":"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b"},"string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"'[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.single.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\\"[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\`[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua"},{"begin":"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)","beginCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.begin.lua"}},"contentName":"meta.embedded.lua","end":"(]\\\\2])[\\\\t ]*","endCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.end.lua"}},"patterns":[{"include":"source.c"}]},{"begin":"(?<!--)\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"]\\\\1][\\\\t ]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.other.multiline.lua"}]}},"scopeName":"source.lua","embeddedLangs":["c"]}`)),qg=[...pi,e];
|
|
2
|
-
export{
|
|
1
|
+
import{fi}from"./index-gaa39w5q.js";var e=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"constant.language.lua"},"2":{"name":"variable.parameter.function.lua"}},"match":"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])","name":"constant.numeric.integer.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])","name":"constant.numeric.integer.lua"},{"include":"#string"},{"captures":{"1":{"name":"punctuation.definition.comment.lua"}},"match":"\\\\A(#!).*$\\\\n?","name":"comment.line.shebang.lua"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.goto.lua"},"2":{"name":"string.tag.lua"}},"match":"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.section.embedded.begin.lua"},"2":{"name":"punctuation.section.embedded.end.lua"}},"match":"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)","name":"string.tag.lua"},{"captures":{"0":{"name":"storage.type.attribute.lua"}},"match":"<\\\\s*(c(?:onst|lose))\\\\s*>"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"captures":{"1":{"name":"keyword.global.lua"}},"match":"^\\\\s*(global)\\\\b(?!\\\\s*=)"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)","name":"constant.language.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(self)\\\\b","name":"variable.language.self.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))","name":"support.function.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))","name":"entity.name.tag.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))","name":"support.function.library.lua"},{"match":"\\\\b(\\\\|\\\\||&&|!)\\\\b","name":"keyword.operator.lua"},{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.logical.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"'({]|\\\\[\\\\[))","name":"support.function.any-method.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)","name":"entity.name.class.lua"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.other.attribute.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"variable.other.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.name.function.lua"},{"match":"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)","name":"keyword.operator.lua"}],"repository":{"comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.lua"}},"end":"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?","endCaptures":{"1":{"name":"punctuation.whitespace.comment.trailing.lua"}},"patterns":[{"begin":"--\\\\[(=*)\\\\[@@@","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"","patterns":[{"include":"source.lua"}]},{"begin":"--\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"----","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua"},{"begin":"---","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.documentation.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua","patterns":[{"include":"#ldoc_tag"}]}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]}]},"emmydoc":{"patterns":[{"begin":"(?<=---)[\\\\t ]*@class","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"[,:]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@enum","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=\\\\n)"}]},{"begin":"(?<=---)[\\\\t ]*@type","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@alias","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?","beginCaptures":{"1":{"name":"storage.type.annotation.lua"},"2":{"name":"support.function.library.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@cast","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.other.lua"}},"end":"(?=\\\\n)","patterns":[{"include":"#emmydoc.type"},{"match":"([+-|])","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@param","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)","beginCaptures":{"1":{"name":"entity.name.variable.lua"},"2":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@return","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\?","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@field","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)","beginCaptures":{"2":{"name":"entity.name.variable.lua"},"3":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#string"},{"include":"#emmydoc.type"},{"match":"]","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@generic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","beginCaptures":{"0":{"name":"storage.type.generic.lua"}},"end":"(?=\\\\n)|(,)","endCaptures":{"0":{"name":"keyword.operator.lua"}},"patterns":[{"match":":","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@vararg","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@overload","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@deprecated","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@meta","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@private","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@protected","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@package","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@version","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b","name":"support.class.lua"},{"match":"[,<>]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[](),:<>?\\\\[][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)","name":"entity.name.variable.lua"},{"include":"#emmydoc.type"},{"include":"#string"}]},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*","name":"support.type.lua"},{"match":"(\\\\.\\\\.\\\\.)[\\\\t ]*","name":"constant.language.lua"},{"include":"#string"}]}]},"escaped_char":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\abfnrtv]","name":"constant.character.escape.lua"},{"match":"\\\\\\\\z[\\\\t\\\\n ]*","name":"constant.character.escape.lua"},{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.lua"},{"match":"\\\\\\\\.","name":"invalid.illegal.character.escape.lua"}]},"ldoc_tag":{"captures":{"1":{"name":"punctuation.definition.block.tag.ldoc"},"2":{"name":"storage.type.class.ldoc"}},"match":"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b"},"string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"'[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.single.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\\"[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\`[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua"},{"begin":"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)","beginCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.begin.lua"}},"contentName":"meta.embedded.lua","end":"(]\\\\2])[\\\\t ]*","endCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.end.lua"}},"patterns":[{"include":"source.c"}]},{"begin":"(?<!--)\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"]\\\\1][\\\\t ]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.other.multiline.lua"}]}},"scopeName":"source.lua","embeddedLangs":["c"]}`)),tA=[...fi,e];
|
|
2
|
+
export{tA};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n,o,i,u,a,e,s,Nr,Rr,oo,oa,la}from"./index-st6a8q5z.js";import{to,wd,Cd,pl}from"./index-6z30g3ha.js";var Le={name:"square-function",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],aliases:["function-square"]},M=s(Le);var Ee={name:"blocks",size:24,node:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]},I=s(Ee);var ze={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]},D=s(ze);var Ze={name:"component",size:24,node:[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]]},T=s(Ze);var Oe={name:"heading",size:24,node:[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]},N=s(Oe);var ve={name:"paintbrush",size:24,node:[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]},C=s(ve);var Ue={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]},q=s(Ue);var Me={name:"variable",size:24,node:[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]},P=s(Me);var Ie=450,K=8,De=700;function yd({enabled:c,onLongPress:l}){let r=i(null),p=i(null),t=i(0),m=i(l);m.current=l;let d=a(()=>{if(r.current!==null)clearTimeout(r.current),r.current=null;p.current=null},[]);return o(()=>d,[d]),{onTouchStart:(h)=>{if(!c)return;let k=h.touches[0];if(!k)return;d(),p.current={x:k.clientX,y:k.clientY},r.current=setTimeout(()=>{r.current=null;let f=p.current;if(p.current=null,!f)return;t.current=Date.now(),m.current(f.x,f.y)},Ie)},onTouchMove:(h)=>{let k=p.current,f=h.touches[0];if(!k||!f)return;if(Math.abs(f.clientX-k.x)>K||Math.abs(f.clientY-k.y)>K)d()},onTouchEnd:d,onTouchCancel:d,consume:()=>{if(t.current===0)return!1;let h=Date.now()-t.current<De;return t.current=0,h}}}var H={class:{Icon:Rr,label:"Class"},interface:{Icon:pl,label:"Interface"},type:{Icon:la,label:"Type"},enum:{Icon:oa,label:"Enum"},function:{Icon:M,label:"Function"},method:{Icon:T,label:"Method"},constant:{Icon:oo,label:"Constant"},variable:{Icon:P,label:"Variable"},struct:{Icon:D,label:"Struct"},trait:{Icon:Cd,label:"Trait"},impl:{Icon:I,label:"Impl"},module:{Icon:wd,label:"Module"},heading:{Icon:N,label:"Heading"},selector:{Icon:C,label:"Selector"},key:{Icon:to,label:"Key"},tag:{Icon:q,label:"Tag"},macro:{Icon:Nr,label:"Macro"}};function vd({kind:c,size:l=12}){let{Icon:r}=H[c];return e(r,{size:l,className:"flex-shrink-0 text-ink/45",strokeWidth:1.8})}function di(c){return H[c].label}var Te={c:{line:["//"],block:["/*","*/"],quotes:["'",'"'],template:!0},css:{line:[],block:["/*","*/"],quotes:["'",'"']},python:{line:["#"],quotes:["'",'"'],triple:!0},hash:{line:["#"],quotes:["'",'"']},dash:{line:["--"],quotes:["'",'"']},lua:{line:["--"],block:["--[[","]]"],quotes:["'",'"']},sql:{line:["--"],block:["/*","*/"],quotes:["'",'"']},ml:{line:[],block:["(*","*)"],quotes:['"']},hcl:{line:["#","//"],block:["/*","*/"],quotes:[]},percent:{line:["%"],quotes:["'",'"']},lisp:{line:[";"],block:["#|","|#"],quotes:['"']},none:{line:[],quotes:['"',"'"]},raw:{line:[],quotes:[]}};function A(c,l){let r=Te[l],[p,t]=r.block??["",""],m=[],d="code",h="";for(let k of c){let f="";for(let b=0;b<k.length;b+=1){let y=k[b],g=k[b+1];if(d==="line"){f+=" ";continue}if(d==="block"){if(t&&y===t[0]&&k.startsWith(t,b)){d="code",f+=" ".repeat(t.length),b+=t.length-1;continue}f+=" ";continue}if(d==="quoted"||d==="template"||d==="triple"){if(y==="\\"){f+=" ",b+=1;continue}if(d==="triple"){if(y===h&&k.startsWith(h.repeat(3),b)){d="code",f+=" ",b+=2;continue}f+=" ";continue}if(f+=" ",y===h)d="code";continue}let S=r.line.find((Ae)=>k.startsWith(Ae,b));if(S){d="line",f+=" ".repeat(S.length),b+=S.length-1;continue}if(p&&k.startsWith(p,b)){d="block",f+=" ".repeat(p.length),b+=p.length-1;continue}if(r.triple&&y===(g??"")&&y===k[b+2]&&(y==="'"||y==='"')){d="triple",h=y,f+=" ",b+=2;continue}if(r.template&&y==="`"){d="template",h="`",f+=" ";continue}if(r.quotes?.includes(y)){d="quoted",h=y,f+=" ";continue}f+=y}if(d==="line"||d==="quoted")d="code";m.push(f)}return m}function Z(c){let l=0;for(let r of c)if(r==="{")l+=1;else if(r==="}")l-=1;return l}var L=[{kind:"class",re:/^(?:export\s+)?(?:default\s+)?(?:abstract\s+)?(?:declare\s+)?class\s+([A-Za-z_$][\w$]*)/d},{kind:"interface",re:/^(?:export\s+)?(?:declare\s+)?interface\s+([A-Za-z_$][\w$]*)/d},{kind:"type",re:/^(?:export\s+)?(?:declare\s+)?type\s+([A-Za-z_$][\w$]*)/d},{kind:"enum",re:/^(?:export\s+)?(?:declare\s+)?(?:const\s+)?enum\s+([A-Za-z_$][\w$]*)/d},{kind:"module",re:/^(?:export\s+)?(?:declare\s+)?(?:namespace|module)\s+([A-Za-z_$][\w$]*)/d},{kind:"function",re:/^(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/d},{kind:"function",re:/^(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*(?::[^=]+)?=\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*(?::[^=]+)?=>/d},{kind:"constant",re:/^(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*[:=]/d}],$e=/^(?:(?:public|private|protected|static|async|readonly|override|abstract|declare|get|set)\s+)*(?:\*|#)?([A-Za-z_$][\w$]*)\s*(?:<[^>]*>)?\s*\(/d,Ne=/^(?:(?:public|private|protected|static|readonly|override|declare)\s+)*(?:#)?([A-Za-z_$][\w$]*)\s*(?::[^=]+)?=\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*(?::[^=]+)?=>/d,Ce=/^(?:(?:public|private|protected|static|readonly|override|declare)\s+)*(?:#)?([A-Za-z_$][\w$]*)\s*(?::[^=;]+)?(?:=[^>]|;)/d,E=[{kind:"method",re:$e},{kind:"method",re:Ne},{kind:"variable",re:Ce}];function B(c,l){let r=A(c,l.mask),p=[],t=0,m=[];for(let d=0;d<r.length;d+=1){let h=r[d].trim(),k=m.length>0&&t===m[m.length-1].depth?m[m.length-1]:null;if(h&&(t===0||k)){let f=r[d].length-r[d].trimStart().length,b=k&&l.members?Ke(l.memberRules??[],h):null;if(b)p.push({name:b.name,kind:b.kind,line:d+1,column:f+b.column+1,depth:1});else{let y=k!==null&&qe.has(k.kind),g=O(l.rules,h,y);if(g){if(p.push({name:g.name,kind:y&&g.kind==="function"?"method":g.kind,line:d+1,column:f+g.column+1,depth:k?1:0}),!y&&(l.scopes??[]).includes(g.kind))m.push({depth:t+1,kind:g.kind})}}}if(t+=Z(r[d]),t<=0)t=0,m.length=0;else while(m.length>0&&t<m[m.length-1].depth)m.pop()}return p}var qe=new Set(["class","interface","struct","trait","impl","enum"]);function O(c,l,r){for(let p of c){if(r&&Pe.has(p.kind))continue;let t=p.re.exec(l),m=t?.[1]?.trim();if(!t||!m)continue;return{name:m,kind:p.kind,column:t.indices?.[1]?.[0]??0}}return null}var Pe=new Set(["class","interface","enum","type","struct","trait","impl","module"]);function Ke(c,l){for(let r of c){let p=r.re.exec(l),t=p?.[1]?.trim();if(!p||!t||He.has(t))continue;return{name:t,kind:r.kind,column:p.indices?.[1]?.[0]??0}}return null}var He=new Set(["if","for","while","switch","catch","return","throw","new","typeof","await","yield","super","this","delete","void","function","constructor","else","do","try","with"]);function j(c,l){let r=A(c,l.mask),p=[],t=[];for(let m=0;m<r.length;m+=1){let d=r[m],h=d.trim();if(!h)continue;let k=d.length-d.trimStart().length;while(t.length>0&&k<=t[t.length-1])t.pop();let f=O(l.rules,h,!1);if(!f)continue;if(t.length>1){t.push(k);continue}let b=t.length===1;p.push({name:f.name,kind:b&&f.kind==="function"?"method":f.kind,line:m+1,column:k+f.column+1,depth:b?1:0}),t.push(k)}return p}function F(c,l){let r=A(c,l.mask),p=[];for(let t=0;t<r.length;t+=1){let m=r[t],d=m.trim();if(!d)continue;let h=O(l.rules,d,!1);if(!h)continue;let k=p[p.length-1];if(l.dedupe&&k&&k.name===h.name&&k.kind===h.kind)continue;p.push({name:h.name,kind:h.kind,line:t+1,column:m.length-m.trimStart().length+h.column+1,depth:0})}return p}function W(c){let l=[],r=null;for(let p=0;p<c.length;p+=1){let t=c[p],m=/^\s*(```+|~~~+)/.exec(t);if(m){if(r===null)r=m[1][0];else if(m[1][0]===r)r=null;continue}if(r!==null)continue;let d=/^(#{1,6})\s+(.+?)\s*#*\s*$/.exec(t);if(!d)continue;l.push({name:d[2],kind:"heading",line:p+1,column:d[1].length+2,depth:Math.min(d[1].length-1,2)})}return l}function Y(c){let l=A(c,"raw"),r=[],p=0;for(let t=0;t<l.length;t+=1){let m=l[t].trim();if(p===1){let d=/^"([^"]+)"\s*:/.exec(m);if(d)r.push({name:d[1],kind:"key",line:t+1,column:l[t].length-l[t].trimStart().length+1,depth:0})}if(p+=Z(l[t]),p<0)p=0}return r}var w=[{kind:"class",re:/^(?:(?:public|private|protected|internal|static|final|abstract|sealed|open|data|partial|export|declare)\s+)*(?:class|record|object)\s+([A-Za-z_$][\w$]*)/d},{kind:"struct",re:/^(?:(?:public|private|protected|internal|export|packed)\s+)*(?:struct|union)\s+([A-Za-z_$][\w$]*)/d},{kind:"interface",re:/^(?:(?:public|private|protected|internal|static|abstract|sealed)\s+)*interface\s+([A-Za-z_$][\w$]*)/d},{kind:"enum",re:/^(?:(?:public|private|protected|internal|static)\s+)*(?:enum|@interface)\s+([A-Za-z_$][\w$]*)/d},{kind:"type",re:/^(?:(?:public|private|protected|internal|export)\s+)*(?:typedef|using)\b[^;=]*?\b([A-Za-z_]\w*)\s*(?:=|;|\{)/d},{kind:"trait",re:/^(?:(?:public|private|protected)\s+)*trait\s+([A-Za-z_$][\w$]*)/d},{kind:"module",re:/^(?:(?:public|internal|export)\s+)*(?:namespace|package)\s+([A-Za-z_$][\w$.]*)/d},{kind:"function",re:/^(?:(?:public|private|protected|internal|static|final|abstract|synchronized|override|open|suspend|inline|async|extern|unsafe|virtual|sealed|export)\s+)*(?:fun|func|function|def|void|int|long|float|double|boolean|bool|char|byte|short|string|String|object|dynamic|var|auto|val|[A-Z][\w$<>[\],.? ]*)\s+([A-Za-z_$][\w$]*)\s*(?:<[^>]*>)?\s*\(/d},{kind:"macro",re:/^#\s*(?:define|import)\s+([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:static\s+)?(?:const|constexpr|let|var|val)\s+([A-Za-z_$][\w$]*)/d}],X=[{kind:"method",re:/^(?:(?:public|private|protected|internal|static|final|abstract|synchronized|override|open|suspend|inline|async|extern|unsafe|virtual|sealed|readonly)\s+)*(?:<[^>]*>\s*)?([A-Za-z_$][\w$]*)\s*\(/d},{kind:"variable",re:/^(?:(?:public|private|protected|internal|static|final|readonly|override|volatile|transient|val|var|let|const)\s+)*([A-Za-z_$][\w$]*)\s*(?::[^=;]+)?(?:=[^>]|;)/d},{kind:"variable",re:/^(?:(?:public|private|protected|internal|static|final|readonly|volatile|transient)\s+)*[A-Za-z_$][\w$<>[\],.?]*\s+([A-Za-z_$][\w$]*)\s*(?:=|;)/d}],G=[{kind:"function",re:/^func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/d},{kind:"struct",re:/^type\s+([A-Za-z_]\w*)\s+struct\b/d},{kind:"interface",re:/^type\s+([A-Za-z_]\w*)\s+interface\b/d},{kind:"type",re:/^type\s+([A-Za-z_]\w*)\s+/d},{kind:"constant",re:/^(?:var|const)\s+([A-Za-z_]\w*)/d}],V=[{kind:"function",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:async\s+)?(?:const\s+)?fn\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:pub(?:\([^)]*\))?\s+)?struct\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^(?:pub(?:\([^)]*\))?\s+)?enum\s+([A-Za-z_]\w*)/d},{kind:"trait",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:unsafe\s+)?trait\s+([A-Za-z_]\w*)/d},{kind:"module",re:/^(?:pub(?:\([^)]*\))?\s+)?mod\s+([A-Za-z_]\w*)/d},{kind:"impl",re:/^(?:pub\s+)?impl(?:<[^>]*>)?\s+(?:[A-Za-z_][\w:<>]*\s+for\s+)?([A-Za-z_]\w*)/d},{kind:"macro",re:/^(?:pub\s+)?macro_rules!\s*([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:const|static)\s+([A-Za-z_]\w*)/d}],J=[{kind:"class",re:/^class\s+([A-Z][\w:]*)/d},{kind:"module",re:/^module\s+([A-Z][\w:]*)/d},{kind:"function",re:/^def\s+(?:self\.)?([A-Za-z_]\w*[?!=]?)/d},{kind:"constant",re:/^([A-Z][A-Z0-9_]*)\s*=/d}],Q=[{kind:"class",re:/^(?:(?:final|abstract|readonly)\s+)*(?:class|enum|trait)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^interface\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:(?:public|private|protected|static|final|abstract)\s+)*function\s+&?([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:const|define\s*\(\s*['"])([A-Za-z_]\w*)/d}],ee=[{kind:"function",re:/^(?:local\s+)?function\s+([A-Za-z_][\w.:]*)/d},{kind:"variable",re:/^local\s+([A-Za-z_]\w*)\s*=/d}],ne=[{kind:"class",re:/^class\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:async\s+)?def\s+([A-Za-z_]\w*)/d},{kind:"constant",re:/^([A-Z][A-Z0-9_]*)\s*(?::[^=]+)?=/d}],te=[{kind:"function",re:/^(?:function\s+)?([A-Za-z_][\w-]*)\s*\(\s*\)/d},{kind:"function",re:/^function\s+([A-Za-z_][\w-]*)/d},{kind:"variable",re:/^(?:export\s+|declare\s+(?:-\w+\s+)*|readonly\s+)?([A-Za-z_]\w*)=/d}],re=[{kind:"module",re:/^defmodule\s+([A-Z][\w.]*)/d},{kind:"function",re:/^defp?\s+([a-z_]\w*[?!]?)/d},{kind:"macro",re:/^defmacro\s+([a-z_]\w*[?!]?)/d},{kind:"variable",re:/^@([a-z_]\w*)/d}],se=[{kind:"module",re:/^-module\(([a-z_]\w*)\)/d},{kind:"function",re:/^([a-z_]\w*)\s*\([^)]*\)\s*(?:when\s+.*)?->/d},{kind:"macro",re:/^-define\(([A-Za-z_]\w*)/d}],oe=[{kind:"module",re:/^module\s+([A-Z][\w.]*)/d},{kind:"type",re:/^(?:data|newtype|type|type alias)\s+([A-Z][\w]*)/d},{kind:"class",re:/^class\s+(?:\([^)]*\)\s*=>\s*)?([A-Z][\w]*)/d},{kind:"function",re:/^([a-z_][\w']*)\s*(?:::|[^=]*=)/d}],ie=[{kind:"module",re:/^module\s+(?:type\s+)?([A-Z][\w]*)/d},{kind:"type",re:/^type\s+(?:'[\w]+\s+)*([a-z_]\w*)/d},{kind:"class",re:/^class\s+(?:virtual\s+)?([a-z_]\w*)/d},{kind:"function",re:/^(?:let\s+rec\s+|let\s+|and\s+)([a-z_]\w*)/d}],z=[{kind:"function",re:/^\(defn-?\s+([^\s()]+)/d},{kind:"macro",re:/^\(defmacro\s+([^\s()]+)/d},{kind:"variable",re:/^\(def\s+([^\s()]+)/d},{kind:"module",re:/^\((?:ns|module|define-module|library)\s+\(?([^\s()]+)/d},{kind:"function",re:/^\(define\s+\(([^\s()]+)/d},{kind:"type",re:/^\(defrecord\s+([^\s()]+)/d},{kind:"class",re:/^\(defclass\s+([^\s()]+)/d}],ae=[{kind:"function",re:/^(?:pub\s+)?(?:export\s+)?(?:inline\s+)?fn\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)\s*=\s*(?:extern\s+)?(?:packed\s+)?struct/d},{kind:"enum",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)\s*=\s*(?:packed\s+)?enum/d},{kind:"constant",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)/d},{kind:"variable",re:/^(?:pub\s+)?var\s+([A-Za-z_]\w*)/d}],le=[{kind:"module",re:/^(?:baremodule|module)\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:mutable\s+)?struct\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^abstract\s+type\s+([A-Za-z_]\w*)/d},{kind:"macro",re:/^macro\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^function\s+([A-Za-z_]\w*[!?]?)/d},{kind:"function",re:/^([A-Za-z_]\w*[!?]?)\s*\([^)]*\)\s*(?:::[^=]+)?=/d},{kind:"constant",re:/^const\s+([A-Za-z_]\w*)/d}],ce=[{kind:"function",re:/^([A-Za-z._][\w.]*)\s*(?:<-|=)\s*function/d},{kind:"variable",re:/^([A-Za-z._][\w.]*)\s*(?:<-|=)/d}],ue=[{kind:"class",re:/^create\s+(?:or\s+replace\s+)?(?:table|view)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id},{kind:"function",re:/^create\s+(?:or\s+replace\s+)?(?:function|procedure)\s+["`]?([\w.]+)/id},{kind:"type",re:/^create\s+(?:or\s+replace\s+)?(?:type|domain|index)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id},{kind:"constant",re:/^create\s+(?:or\s+replace\s+)?(?:sequence|schema)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id}],v=[{kind:"class",re:/^(?:message|type|input|object)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^(?:interface|service|union|scalar)\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:query|mutation|subscription)\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:rpc\s+)?([A-Za-z_]\w*)\s*\([^)]*\)\s*(?::|returns|;)/d}],de=[{kind:"module",re:/^(?:resource|data|module|provider|variable|output|locals|terraform)\s+"([^"]+)"/d},{kind:"function",re:/^([A-Za-z_]\w*)\s*=\s*\{/d}],pe=[{kind:"function",re:/^([A-Za-z0-9_./-]+)\s*:(?!=)/d},{kind:"variable",re:/^(?:export\s+)?([A-Za-z_]\w*)\s*[:?+]?=/d}],me=[{kind:"module",re:/^FROM\s+(?:--platform=\S+\s+)?\S+\s+[Aa][Ss]\s+(\S+)/d},{kind:"module",re:/^FROM\s+(?:--platform=\S+\s+)?(\S+)/id},{kind:"variable",re:/^(?:ARG|ENV)\s+([A-Za-z_]\w*)/d}],fe=[{kind:"function",re:/^([A-Za-z_][\w'-]*)\s*=\s*(?:pkgs\.)?(?:lib\.)?(?:callPackage|\{)/d},{kind:"variable",re:/^([A-Za-z_][\w'-]*)\s*=/d}],x=[{kind:"macro",re:/^(@(?:mixin|function|keyframes)\s+[\w-]+)/d},{kind:"selector",re:/^(@(?:media|supports|layer|container)\s+[^{]+)/d},{kind:"selector",re:/^([.#&:][^{};]*(?:\s*,\s*[^{};]+)*)\s*\{/d},{kind:"variable",re:/^(--[\w-]+|@[\w-]+|\$[\w-]+)\s*:/d}],ke=[{kind:"module",re:/^package\s+([\w:]+)/d},{kind:"function",re:/^sub\s+([A-Za-z_]\w*)/d}],he=[{kind:"class",re:/^(?:abstract\s+)?(?:contract|library)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^interface\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^struct\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:function|modifier|constructor|fallback|receive)\s+([A-Za-z_]\w*)/d},{kind:"variable",re:/^(?:event|error)\s+([A-Za-z_]\w*)/d}],be=[{kind:"class",re:/^class\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:function|filter|workflow)\s+([A-Za-z_][\w-]*)/d}],R=[{kind:"tag",re:/^\s*<([A-Z][\w.]*)/d},{kind:"tag",re:/^\s*<[a-z][\w-]*\b[^>]*\bid=["']([^"']+)["']/d}];var _={mask:"c",nesting:"braces",scopes:["class","module","interface","struct","trait","enum"],members:!0,memberRules:X},ye={typescript:{..._,rules:L,memberRules:E,scopes:["class"]},tsx:{..._,rules:L,memberRules:E,scopes:["class"]},javascript:{..._,rules:L,memberRules:E,scopes:["class"]},jsx:{..._,rules:L,memberRules:E,scopes:["class"]},java:{..._,rules:w},c:{..._,rules:w},cpp:{..._,rules:w},csharp:{..._,rules:w},"objective-c":{..._,rules:w},kotlin:{..._,rules:w},swift:{..._,rules:w},scala:{..._,rules:w},dart:{..._,rules:w},groovy:{..._,rules:w},solidity:{..._,rules:he},php:{mask:"c",nesting:"braces",rules:Q,scopes:["class","interface","trait"],members:!0},go:{mask:"c",nesting:"braces",rules:G},rust:{mask:"c",nesting:"braces",rules:V,scopes:["impl","trait"],members:!0},zig:{mask:"c",nesting:"braces",rules:ae,scopes:["struct","enum"],members:!0},hcl:{mask:"hcl",nesting:"braces",rules:de},protobuf:{mask:"c",nesting:"braces",rules:v,scopes:["class","interface"],members:!0},graphql:{mask:"hash",nesting:"braces",rules:v,scopes:["class","interface"],members:!0},css:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},less:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},scss:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},sass:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},stylus:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},ruby:{mask:"hash",nesting:"flat",rules:J},lua:{mask:"lua",nesting:"flat",rules:ee},elixir:{mask:"hash",nesting:"flat",rules:re},erlang:{mask:"percent",nesting:"flat",rules:se},haskell:{mask:"hash",nesting:"flat",rules:oe,dedupe:!0},ocaml:{mask:"ml",nesting:"flat",rules:ie},julia:{mask:"hash",nesting:"flat",rules:le},r:{mask:"hash",nesting:"flat",rules:ce},clojure:{mask:"lisp",nesting:"flat",rules:z},scheme:{mask:"lisp",nesting:"flat",rules:z},racket:{mask:"lisp",nesting:"flat",rules:z},perl:{mask:"hash",nesting:"flat",rules:ke},powershell:{mask:"hash",nesting:"flat",rules:be},bash:{mask:"hash",nesting:"flat",rules:te},sql:{mask:"sql",nesting:"flat",rules:ue},makefile:{mask:"hash",nesting:"flat",rules:pe},dockerfile:{mask:"hash",nesting:"flat",rules:me},nix:{mask:"hash",nesting:"flat",rules:fe},python:{mask:"python",nesting:"indent",rules:ne},yaml:{mask:"hash",nesting:"indent",rules:[{kind:"key",re:/^([A-Za-z_$][\w$.-]*)\s*:/d}]},toml:{mask:"hash",nesting:"flat",rules:[{kind:"module",re:/^\[\[?([^\]]+)\]\]?/d},{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*=/d}]},ini:{mask:"none",nesting:"flat",rules:[{kind:"module",re:/^\[([^\]]+)\]/d},{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*[=:]/d}]},properties:{mask:"none",nesting:"flat",rules:[{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*[=:]/d}]},json:{mask:"raw",nesting:"json",rules:[]},json5:{mask:"raw",nesting:"json",rules:[]},html:{mask:"raw",nesting:"flat",rules:R},xml:{mask:"raw",nesting:"flat",rules:R},svg:{mask:"raw",nesting:"flat",rules:R},vue:{mask:"raw",nesting:"flat",rules:R},svelte:{mask:"raw",nesting:"flat",rules:R},astro:{mask:"raw",nesting:"flat",rules:R},markdown:{mask:"none",nesting:"markdown",rules:[]},diff:{mask:"none",nesting:"flat",rules:[]}};function U(c,l){let r=ye[l];if(!c||!r)return[];let p=c.split(`
|
|
2
|
-
`);if(r.nesting==="markdown")return W(p);if(r.nesting==="json")return Y(p);if(r.nesting==="indent")return j(p,r);if(r.nesting==="flat")return F(p,r);return B(p,r)}function _e(c,l){return U(c,l)}var Be={idle:"No file open in the editor.",loading:"Reading the file…",error:"Could not read this file.","not-a-document":"This tab has no outline.",diff:"Diff tabs have no outline.",ready:"No symbols found."};function ge(c,l){return l??Be[c]}var Se=8388608;function we(c){let l=c.length;if(l<=500)return{rows:c,total:l,truncated:!1};return{rows:c.slice(0,500),total:l,truncated:!0}}function
|
|
3
|
-
export{
|
|
1
|
+
import{n,o,i,u,a,e,s,Qr,Lr,oo,oa,la}from"./index-rr79n77k.js";import{to,Id,_d,ml}from"./index-x7h04xzf.js";var Le={name:"square-function",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],aliases:["function-square"]},M=s(Le);var Ee={name:"blocks",size:24,node:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]},I=s(Ee);var ze={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]},D=s(ze);var Ze={name:"component",size:24,node:[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]]},T=s(Ze);var Oe={name:"heading",size:24,node:[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]},N=s(Oe);var ve={name:"paintbrush",size:24,node:[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]},C=s(ve);var Ue={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]},q=s(Ue);var Me={name:"variable",size:24,node:[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]},P=s(Me);var Ie=450,K=8,De=700;function wd({enabled:c,onLongPress:l}){let r=i(null),p=i(null),t=i(0),m=i(l);m.current=l;let d=a(()=>{if(r.current!==null)clearTimeout(r.current),r.current=null;p.current=null},[]);return o(()=>d,[d]),{onTouchStart:(h)=>{if(!c)return;let k=h.touches[0];if(!k)return;d(),p.current={x:k.clientX,y:k.clientY},r.current=setTimeout(()=>{r.current=null;let f=p.current;if(p.current=null,!f)return;t.current=Date.now(),m.current(f.x,f.y)},Ie)},onTouchMove:(h)=>{let k=p.current,f=h.touches[0];if(!k||!f)return;if(Math.abs(f.clientX-k.x)>K||Math.abs(f.clientY-k.y)>K)d()},onTouchEnd:d,onTouchCancel:d,consume:()=>{if(t.current===0)return!1;let h=Date.now()-t.current<De;return t.current=0,h}}}var H={class:{Icon:Lr,label:"Class"},interface:{Icon:ml,label:"Interface"},type:{Icon:la,label:"Type"},enum:{Icon:oa,label:"Enum"},function:{Icon:M,label:"Function"},method:{Icon:T,label:"Method"},constant:{Icon:oo,label:"Constant"},variable:{Icon:P,label:"Variable"},struct:{Icon:D,label:"Struct"},trait:{Icon:_d,label:"Trait"},impl:{Icon:I,label:"Impl"},module:{Icon:Id,label:"Module"},heading:{Icon:N,label:"Heading"},selector:{Icon:C,label:"Selector"},key:{Icon:to,label:"Key"},tag:{Icon:q,label:"Tag"},macro:{Icon:Qr,label:"Macro"}};function Cd({kind:c,size:l=12}){let{Icon:r}=H[c];return e(r,{size:l,className:"flex-shrink-0 text-ink/45",strokeWidth:1.8})}function mi(c){return H[c].label}var Te={c:{line:["//"],block:["/*","*/"],quotes:["'",'"'],template:!0},css:{line:[],block:["/*","*/"],quotes:["'",'"']},python:{line:["#"],quotes:["'",'"'],triple:!0},hash:{line:["#"],quotes:["'",'"']},dash:{line:["--"],quotes:["'",'"']},lua:{line:["--"],block:["--[[","]]"],quotes:["'",'"']},sql:{line:["--"],block:["/*","*/"],quotes:["'",'"']},ml:{line:[],block:["(*","*)"],quotes:['"']},hcl:{line:["#","//"],block:["/*","*/"],quotes:[]},percent:{line:["%"],quotes:["'",'"']},lisp:{line:[";"],block:["#|","|#"],quotes:['"']},none:{line:[],quotes:['"',"'"]},raw:{line:[],quotes:[]}};function A(c,l){let r=Te[l],[p,t]=r.block??["",""],m=[],d="code",h="";for(let k of c){let f="";for(let b=0;b<k.length;b+=1){let y=k[b],g=k[b+1];if(d==="line"){f+=" ";continue}if(d==="block"){if(t&&y===t[0]&&k.startsWith(t,b)){d="code",f+=" ".repeat(t.length),b+=t.length-1;continue}f+=" ";continue}if(d==="quoted"||d==="template"||d==="triple"){if(y==="\\"){f+=" ",b+=1;continue}if(d==="triple"){if(y===h&&k.startsWith(h.repeat(3),b)){d="code",f+=" ",b+=2;continue}f+=" ";continue}if(f+=" ",y===h)d="code";continue}let S=r.line.find((Ae)=>k.startsWith(Ae,b));if(S){d="line",f+=" ".repeat(S.length),b+=S.length-1;continue}if(p&&k.startsWith(p,b)){d="block",f+=" ".repeat(p.length),b+=p.length-1;continue}if(r.triple&&y===(g??"")&&y===k[b+2]&&(y==="'"||y==='"')){d="triple",h=y,f+=" ",b+=2;continue}if(r.template&&y==="`"){d="template",h="`",f+=" ";continue}if(r.quotes?.includes(y)){d="quoted",h=y,f+=" ";continue}f+=y}if(d==="line"||d==="quoted")d="code";m.push(f)}return m}function Z(c){let l=0;for(let r of c)if(r==="{")l+=1;else if(r==="}")l-=1;return l}var L=[{kind:"class",re:/^(?:export\s+)?(?:default\s+)?(?:abstract\s+)?(?:declare\s+)?class\s+([A-Za-z_$][\w$]*)/d},{kind:"interface",re:/^(?:export\s+)?(?:declare\s+)?interface\s+([A-Za-z_$][\w$]*)/d},{kind:"type",re:/^(?:export\s+)?(?:declare\s+)?type\s+([A-Za-z_$][\w$]*)/d},{kind:"enum",re:/^(?:export\s+)?(?:declare\s+)?(?:const\s+)?enum\s+([A-Za-z_$][\w$]*)/d},{kind:"module",re:/^(?:export\s+)?(?:declare\s+)?(?:namespace|module)\s+([A-Za-z_$][\w$]*)/d},{kind:"function",re:/^(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/d},{kind:"function",re:/^(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*(?::[^=]+)?=\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*(?::[^=]+)?=>/d},{kind:"constant",re:/^(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*[:=]/d}],$e=/^(?:(?:public|private|protected|static|async|readonly|override|abstract|declare|get|set)\s+)*(?:\*|#)?([A-Za-z_$][\w$]*)\s*(?:<[^>]*>)?\s*\(/d,Ne=/^(?:(?:public|private|protected|static|readonly|override|declare)\s+)*(?:#)?([A-Za-z_$][\w$]*)\s*(?::[^=]+)?=\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*(?::[^=]+)?=>/d,Ce=/^(?:(?:public|private|protected|static|readonly|override|declare)\s+)*(?:#)?([A-Za-z_$][\w$]*)\s*(?::[^=;]+)?(?:=[^>]|;)/d,E=[{kind:"method",re:$e},{kind:"method",re:Ne},{kind:"variable",re:Ce}];function B(c,l){let r=A(c,l.mask),p=[],t=0,m=[];for(let d=0;d<r.length;d+=1){let h=r[d].trim(),k=m.length>0&&t===m[m.length-1].depth?m[m.length-1]:null;if(h&&(t===0||k)){let f=r[d].length-r[d].trimStart().length,b=k&&l.members?Ke(l.memberRules??[],h):null;if(b)p.push({name:b.name,kind:b.kind,line:d+1,column:f+b.column+1,depth:1});else{let y=k!==null&&qe.has(k.kind),g=O(l.rules,h,y);if(g){if(p.push({name:g.name,kind:y&&g.kind==="function"?"method":g.kind,line:d+1,column:f+g.column+1,depth:k?1:0}),!y&&(l.scopes??[]).includes(g.kind))m.push({depth:t+1,kind:g.kind})}}}if(t+=Z(r[d]),t<=0)t=0,m.length=0;else while(m.length>0&&t<m[m.length-1].depth)m.pop()}return p}var qe=new Set(["class","interface","struct","trait","impl","enum"]);function O(c,l,r){for(let p of c){if(r&&Pe.has(p.kind))continue;let t=p.re.exec(l),m=t?.[1]?.trim();if(!t||!m)continue;return{name:m,kind:p.kind,column:t.indices?.[1]?.[0]??0}}return null}var Pe=new Set(["class","interface","enum","type","struct","trait","impl","module"]);function Ke(c,l){for(let r of c){let p=r.re.exec(l),t=p?.[1]?.trim();if(!p||!t||He.has(t))continue;return{name:t,kind:r.kind,column:p.indices?.[1]?.[0]??0}}return null}var He=new Set(["if","for","while","switch","catch","return","throw","new","typeof","await","yield","super","this","delete","void","function","constructor","else","do","try","with"]);function j(c,l){let r=A(c,l.mask),p=[],t=[];for(let m=0;m<r.length;m+=1){let d=r[m],h=d.trim();if(!h)continue;let k=d.length-d.trimStart().length;while(t.length>0&&k<=t[t.length-1])t.pop();let f=O(l.rules,h,!1);if(!f)continue;if(t.length>1){t.push(k);continue}let b=t.length===1;p.push({name:f.name,kind:b&&f.kind==="function"?"method":f.kind,line:m+1,column:k+f.column+1,depth:b?1:0}),t.push(k)}return p}function F(c,l){let r=A(c,l.mask),p=[];for(let t=0;t<r.length;t+=1){let m=r[t],d=m.trim();if(!d)continue;let h=O(l.rules,d,!1);if(!h)continue;let k=p[p.length-1];if(l.dedupe&&k&&k.name===h.name&&k.kind===h.kind)continue;p.push({name:h.name,kind:h.kind,line:t+1,column:m.length-m.trimStart().length+h.column+1,depth:0})}return p}function W(c){let l=[],r=null;for(let p=0;p<c.length;p+=1){let t=c[p],m=/^\s*(```+|~~~+)/.exec(t);if(m){if(r===null)r=m[1][0];else if(m[1][0]===r)r=null;continue}if(r!==null)continue;let d=/^(#{1,6})\s+(.+?)\s*#*\s*$/.exec(t);if(!d)continue;l.push({name:d[2],kind:"heading",line:p+1,column:d[1].length+2,depth:Math.min(d[1].length-1,2)})}return l}function Y(c){let l=A(c,"raw"),r=[],p=0;for(let t=0;t<l.length;t+=1){let m=l[t].trim();if(p===1){let d=/^"([^"]+)"\s*:/.exec(m);if(d)r.push({name:d[1],kind:"key",line:t+1,column:l[t].length-l[t].trimStart().length+1,depth:0})}if(p+=Z(l[t]),p<0)p=0}return r}var w=[{kind:"class",re:/^(?:(?:public|private|protected|internal|static|final|abstract|sealed|open|data|partial|export|declare)\s+)*(?:class|record|object)\s+([A-Za-z_$][\w$]*)/d},{kind:"struct",re:/^(?:(?:public|private|protected|internal|export|packed)\s+)*(?:struct|union)\s+([A-Za-z_$][\w$]*)/d},{kind:"interface",re:/^(?:(?:public|private|protected|internal|static|abstract|sealed)\s+)*interface\s+([A-Za-z_$][\w$]*)/d},{kind:"enum",re:/^(?:(?:public|private|protected|internal|static)\s+)*(?:enum|@interface)\s+([A-Za-z_$][\w$]*)/d},{kind:"type",re:/^(?:(?:public|private|protected|internal|export)\s+)*(?:typedef|using)\b[^;=]*?\b([A-Za-z_]\w*)\s*(?:=|;|\{)/d},{kind:"trait",re:/^(?:(?:public|private|protected)\s+)*trait\s+([A-Za-z_$][\w$]*)/d},{kind:"module",re:/^(?:(?:public|internal|export)\s+)*(?:namespace|package)\s+([A-Za-z_$][\w$.]*)/d},{kind:"function",re:/^(?:(?:public|private|protected|internal|static|final|abstract|synchronized|override|open|suspend|inline|async|extern|unsafe|virtual|sealed|export)\s+)*(?:fun|func|function|def|void|int|long|float|double|boolean|bool|char|byte|short|string|String|object|dynamic|var|auto|val|[A-Z][\w$<>[\],.? ]*)\s+([A-Za-z_$][\w$]*)\s*(?:<[^>]*>)?\s*\(/d},{kind:"macro",re:/^#\s*(?:define|import)\s+([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:static\s+)?(?:const|constexpr|let|var|val)\s+([A-Za-z_$][\w$]*)/d}],X=[{kind:"method",re:/^(?:(?:public|private|protected|internal|static|final|abstract|synchronized|override|open|suspend|inline|async|extern|unsafe|virtual|sealed|readonly)\s+)*(?:<[^>]*>\s*)?([A-Za-z_$][\w$]*)\s*\(/d},{kind:"variable",re:/^(?:(?:public|private|protected|internal|static|final|readonly|override|volatile|transient|val|var|let|const)\s+)*([A-Za-z_$][\w$]*)\s*(?::[^=;]+)?(?:=[^>]|;)/d},{kind:"variable",re:/^(?:(?:public|private|protected|internal|static|final|readonly|volatile|transient)\s+)*[A-Za-z_$][\w$<>[\],.?]*\s+([A-Za-z_$][\w$]*)\s*(?:=|;)/d}],G=[{kind:"function",re:/^func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/d},{kind:"struct",re:/^type\s+([A-Za-z_]\w*)\s+struct\b/d},{kind:"interface",re:/^type\s+([A-Za-z_]\w*)\s+interface\b/d},{kind:"type",re:/^type\s+([A-Za-z_]\w*)\s+/d},{kind:"constant",re:/^(?:var|const)\s+([A-Za-z_]\w*)/d}],V=[{kind:"function",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:async\s+)?(?:const\s+)?fn\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:pub(?:\([^)]*\))?\s+)?struct\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^(?:pub(?:\([^)]*\))?\s+)?enum\s+([A-Za-z_]\w*)/d},{kind:"trait",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:unsafe\s+)?trait\s+([A-Za-z_]\w*)/d},{kind:"module",re:/^(?:pub(?:\([^)]*\))?\s+)?mod\s+([A-Za-z_]\w*)/d},{kind:"impl",re:/^(?:pub\s+)?impl(?:<[^>]*>)?\s+(?:[A-Za-z_][\w:<>]*\s+for\s+)?([A-Za-z_]\w*)/d},{kind:"macro",re:/^(?:pub\s+)?macro_rules!\s*([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:pub(?:\([^)]*\))?\s+)?(?:const|static)\s+([A-Za-z_]\w*)/d}],J=[{kind:"class",re:/^class\s+([A-Z][\w:]*)/d},{kind:"module",re:/^module\s+([A-Z][\w:]*)/d},{kind:"function",re:/^def\s+(?:self\.)?([A-Za-z_]\w*[?!=]?)/d},{kind:"constant",re:/^([A-Z][A-Z0-9_]*)\s*=/d}],Q=[{kind:"class",re:/^(?:(?:final|abstract|readonly)\s+)*(?:class|enum|trait)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^interface\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:(?:public|private|protected|static|final|abstract)\s+)*function\s+&?([A-Za-z_]\w*)/d},{kind:"constant",re:/^(?:const|define\s*\(\s*['"])([A-Za-z_]\w*)/d}],ee=[{kind:"function",re:/^(?:local\s+)?function\s+([A-Za-z_][\w.:]*)/d},{kind:"variable",re:/^local\s+([A-Za-z_]\w*)\s*=/d}],ne=[{kind:"class",re:/^class\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:async\s+)?def\s+([A-Za-z_]\w*)/d},{kind:"constant",re:/^([A-Z][A-Z0-9_]*)\s*(?::[^=]+)?=/d}],te=[{kind:"function",re:/^(?:function\s+)?([A-Za-z_][\w-]*)\s*\(\s*\)/d},{kind:"function",re:/^function\s+([A-Za-z_][\w-]*)/d},{kind:"variable",re:/^(?:export\s+|declare\s+(?:-\w+\s+)*|readonly\s+)?([A-Za-z_]\w*)=/d}],re=[{kind:"module",re:/^defmodule\s+([A-Z][\w.]*)/d},{kind:"function",re:/^defp?\s+([a-z_]\w*[?!]?)/d},{kind:"macro",re:/^defmacro\s+([a-z_]\w*[?!]?)/d},{kind:"variable",re:/^@([a-z_]\w*)/d}],se=[{kind:"module",re:/^-module\(([a-z_]\w*)\)/d},{kind:"function",re:/^([a-z_]\w*)\s*\([^)]*\)\s*(?:when\s+.*)?->/d},{kind:"macro",re:/^-define\(([A-Za-z_]\w*)/d}],oe=[{kind:"module",re:/^module\s+([A-Z][\w.]*)/d},{kind:"type",re:/^(?:data|newtype|type|type alias)\s+([A-Z][\w]*)/d},{kind:"class",re:/^class\s+(?:\([^)]*\)\s*=>\s*)?([A-Z][\w]*)/d},{kind:"function",re:/^([a-z_][\w']*)\s*(?:::|[^=]*=)/d}],ie=[{kind:"module",re:/^module\s+(?:type\s+)?([A-Z][\w]*)/d},{kind:"type",re:/^type\s+(?:'[\w]+\s+)*([a-z_]\w*)/d},{kind:"class",re:/^class\s+(?:virtual\s+)?([a-z_]\w*)/d},{kind:"function",re:/^(?:let\s+rec\s+|let\s+|and\s+)([a-z_]\w*)/d}],z=[{kind:"function",re:/^\(defn-?\s+([^\s()]+)/d},{kind:"macro",re:/^\(defmacro\s+([^\s()]+)/d},{kind:"variable",re:/^\(def\s+([^\s()]+)/d},{kind:"module",re:/^\((?:ns|module|define-module|library)\s+\(?([^\s()]+)/d},{kind:"function",re:/^\(define\s+\(([^\s()]+)/d},{kind:"type",re:/^\(defrecord\s+([^\s()]+)/d},{kind:"class",re:/^\(defclass\s+([^\s()]+)/d}],ae=[{kind:"function",re:/^(?:pub\s+)?(?:export\s+)?(?:inline\s+)?fn\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)\s*=\s*(?:extern\s+)?(?:packed\s+)?struct/d},{kind:"enum",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)\s*=\s*(?:packed\s+)?enum/d},{kind:"constant",re:/^(?:pub\s+)?const\s+([A-Za-z_]\w*)/d},{kind:"variable",re:/^(?:pub\s+)?var\s+([A-Za-z_]\w*)/d}],le=[{kind:"module",re:/^(?:baremodule|module)\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^(?:mutable\s+)?struct\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^abstract\s+type\s+([A-Za-z_]\w*)/d},{kind:"macro",re:/^macro\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^function\s+([A-Za-z_]\w*[!?]?)/d},{kind:"function",re:/^([A-Za-z_]\w*[!?]?)\s*\([^)]*\)\s*(?:::[^=]+)?=/d},{kind:"constant",re:/^const\s+([A-Za-z_]\w*)/d}],ce=[{kind:"function",re:/^([A-Za-z._][\w.]*)\s*(?:<-|=)\s*function/d},{kind:"variable",re:/^([A-Za-z._][\w.]*)\s*(?:<-|=)/d}],ue=[{kind:"class",re:/^create\s+(?:or\s+replace\s+)?(?:table|view)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id},{kind:"function",re:/^create\s+(?:or\s+replace\s+)?(?:function|procedure)\s+["`]?([\w.]+)/id},{kind:"type",re:/^create\s+(?:or\s+replace\s+)?(?:type|domain|index)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id},{kind:"constant",re:/^create\s+(?:or\s+replace\s+)?(?:sequence|schema)\s+(?:if\s+not\s+exists\s+)?["`]?([\w.]+)/id}],v=[{kind:"class",re:/^(?:message|type|input|object)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^(?:interface|service|union|scalar)\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:query|mutation|subscription)\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:rpc\s+)?([A-Za-z_]\w*)\s*\([^)]*\)\s*(?::|returns|;)/d}],de=[{kind:"module",re:/^(?:resource|data|module|provider|variable|output|locals|terraform)\s+"([^"]+)"/d},{kind:"function",re:/^([A-Za-z_]\w*)\s*=\s*\{/d}],pe=[{kind:"function",re:/^([A-Za-z0-9_./-]+)\s*:(?!=)/d},{kind:"variable",re:/^(?:export\s+)?([A-Za-z_]\w*)\s*[:?+]?=/d}],me=[{kind:"module",re:/^FROM\s+(?:--platform=\S+\s+)?\S+\s+[Aa][Ss]\s+(\S+)/d},{kind:"module",re:/^FROM\s+(?:--platform=\S+\s+)?(\S+)/id},{kind:"variable",re:/^(?:ARG|ENV)\s+([A-Za-z_]\w*)/d}],fe=[{kind:"function",re:/^([A-Za-z_][\w'-]*)\s*=\s*(?:pkgs\.)?(?:lib\.)?(?:callPackage|\{)/d},{kind:"variable",re:/^([A-Za-z_][\w'-]*)\s*=/d}],x=[{kind:"macro",re:/^(@(?:mixin|function|keyframes)\s+[\w-]+)/d},{kind:"selector",re:/^(@(?:media|supports|layer|container)\s+[^{]+)/d},{kind:"selector",re:/^([.#&:][^{};]*(?:\s*,\s*[^{};]+)*)\s*\{/d},{kind:"variable",re:/^(--[\w-]+|@[\w-]+|\$[\w-]+)\s*:/d}],ke=[{kind:"module",re:/^package\s+([\w:]+)/d},{kind:"function",re:/^sub\s+([A-Za-z_]\w*)/d}],he=[{kind:"class",re:/^(?:abstract\s+)?(?:contract|library)\s+([A-Za-z_]\w*)/d},{kind:"interface",re:/^interface\s+([A-Za-z_]\w*)/d},{kind:"struct",re:/^struct\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:function|modifier|constructor|fallback|receive)\s+([A-Za-z_]\w*)/d},{kind:"variable",re:/^(?:event|error)\s+([A-Za-z_]\w*)/d}],be=[{kind:"class",re:/^class\s+([A-Za-z_]\w*)/d},{kind:"enum",re:/^enum\s+([A-Za-z_]\w*)/d},{kind:"function",re:/^(?:function|filter|workflow)\s+([A-Za-z_][\w-]*)/d}],R=[{kind:"tag",re:/^\s*<([A-Z][\w.]*)/d},{kind:"tag",re:/^\s*<[a-z][\w-]*\b[^>]*\bid=["']([^"']+)["']/d}];var _={mask:"c",nesting:"braces",scopes:["class","module","interface","struct","trait","enum"],members:!0,memberRules:X},ye={typescript:{..._,rules:L,memberRules:E,scopes:["class"]},tsx:{..._,rules:L,memberRules:E,scopes:["class"]},javascript:{..._,rules:L,memberRules:E,scopes:["class"]},jsx:{..._,rules:L,memberRules:E,scopes:["class"]},java:{..._,rules:w},c:{..._,rules:w},cpp:{..._,rules:w},csharp:{..._,rules:w},"objective-c":{..._,rules:w},kotlin:{..._,rules:w},swift:{..._,rules:w},scala:{..._,rules:w},dart:{..._,rules:w},groovy:{..._,rules:w},solidity:{..._,rules:he},php:{mask:"c",nesting:"braces",rules:Q,scopes:["class","interface","trait"],members:!0},go:{mask:"c",nesting:"braces",rules:G},rust:{mask:"c",nesting:"braces",rules:V,scopes:["impl","trait"],members:!0},zig:{mask:"c",nesting:"braces",rules:ae,scopes:["struct","enum"],members:!0},hcl:{mask:"hcl",nesting:"braces",rules:de},protobuf:{mask:"c",nesting:"braces",rules:v,scopes:["class","interface"],members:!0},graphql:{mask:"hash",nesting:"braces",rules:v,scopes:["class","interface"],members:!0},css:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},less:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},scss:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},sass:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},stylus:{mask:"css",nesting:"braces",rules:x,scopes:["selector"]},ruby:{mask:"hash",nesting:"flat",rules:J},lua:{mask:"lua",nesting:"flat",rules:ee},elixir:{mask:"hash",nesting:"flat",rules:re},erlang:{mask:"percent",nesting:"flat",rules:se},haskell:{mask:"hash",nesting:"flat",rules:oe,dedupe:!0},ocaml:{mask:"ml",nesting:"flat",rules:ie},julia:{mask:"hash",nesting:"flat",rules:le},r:{mask:"hash",nesting:"flat",rules:ce},clojure:{mask:"lisp",nesting:"flat",rules:z},scheme:{mask:"lisp",nesting:"flat",rules:z},racket:{mask:"lisp",nesting:"flat",rules:z},perl:{mask:"hash",nesting:"flat",rules:ke},powershell:{mask:"hash",nesting:"flat",rules:be},bash:{mask:"hash",nesting:"flat",rules:te},sql:{mask:"sql",nesting:"flat",rules:ue},makefile:{mask:"hash",nesting:"flat",rules:pe},dockerfile:{mask:"hash",nesting:"flat",rules:me},nix:{mask:"hash",nesting:"flat",rules:fe},python:{mask:"python",nesting:"indent",rules:ne},yaml:{mask:"hash",nesting:"indent",rules:[{kind:"key",re:/^([A-Za-z_$][\w$.-]*)\s*:/d}]},toml:{mask:"hash",nesting:"flat",rules:[{kind:"module",re:/^\[\[?([^\]]+)\]\]?/d},{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*=/d}]},ini:{mask:"none",nesting:"flat",rules:[{kind:"module",re:/^\[([^\]]+)\]/d},{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*[=:]/d}]},properties:{mask:"none",nesting:"flat",rules:[{kind:"key",re:/^([A-Za-z_][\w.-]*)\s*[=:]/d}]},json:{mask:"raw",nesting:"json",rules:[]},json5:{mask:"raw",nesting:"json",rules:[]},html:{mask:"raw",nesting:"flat",rules:R},xml:{mask:"raw",nesting:"flat",rules:R},svg:{mask:"raw",nesting:"flat",rules:R},vue:{mask:"raw",nesting:"flat",rules:R},svelte:{mask:"raw",nesting:"flat",rules:R},astro:{mask:"raw",nesting:"flat",rules:R},markdown:{mask:"none",nesting:"markdown",rules:[]},diff:{mask:"none",nesting:"flat",rules:[]}};function U(c,l){let r=ye[l];if(!c||!r)return[];let p=c.split(`
|
|
2
|
+
`);if(r.nesting==="markdown")return W(p);if(r.nesting==="json")return Y(p);if(r.nesting==="indent")return j(p,r);if(r.nesting==="flat")return F(p,r);return B(p,r)}function _e(c,l){return U(c,l)}var Be={idle:"No file open in the editor.",loading:"Reading the file…",error:"Could not read this file.","not-a-document":"This tab has no outline.",diff:"Diff tabs have no outline.",ready:"No symbols found."};function ge(c,l){return l??Be[c]}var Se=8388608;function we(c){let l=c.length;if(l<=500)return{rows:c,total:l,truncated:!1};return{rows:c.slice(0,500),total:l,truncated:!0}}function Ed(c){return`Showing the first ${500 .toLocaleString()} of ${c.toLocaleString()} symbols.`}function Re(c){if(c<=8388608)return null;return`This file is ${(c/1048576).toFixed(1)} MB — too large to outline.`}var je=300;function xe(c){return c.length>Se}function Bd({content:c,language:l,state:r,note:p,path:t}){let[m,d]=n({content:c,language:l,path:t}),h=i(t);o(()=>{let y=t!==h.current;if(h.current=t,y||xe(c)){d((S)=>S.content===c&&S.language===l?S:{content:c,language:l,path:t});return}let g=window.setTimeout(()=>{d((S)=>S.content===c&&S.language===l?S:{content:c,language:l,path:t})},je);return()=>window.clearTimeout(g)},[t,c,l]);let k=u(()=>{if(r!=="ready"||xe(m.content))return[];return _e(m.content,m.language)},[r,m]),f=u(()=>we(k),[k]),b=r==="ready"?Re(c.length):null;return{symbols:f.rows,total:f.total,truncated:f.truncated,notice:b??ge(r,p)}}
|
|
3
|
+
export{wd,Cd,mi,Ed,Bd};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d,n,o,u,ce,e,B,p,mn,Pe,U,_h,Te,vl,xt,so,nt,J}from"./index-rr79n77k.js";function F(a){if(!Number.isFinite(a)||a<=0)return"";return new Date(a).toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}function P({files:a,selected:h,onSelect:b}){let[i,l]=n(""),r=u(()=>{let t=i.trim().toLowerCase();if(!t)return a;return a.filter((c)=>c.title.toLowerCase().includes(t))},[a,i]);return e("div",{className:"flex h-full min-h-0 w-full flex-col bg-canvas/40",children:[e("div",{className:"flex flex-shrink-0 items-center gap-1.5 border-b border-ink/10 px-2 py-1.5",children:[e(U,{size:12,className:"flex-shrink-0 text-ink/40"}),e("input",{type:"search",value:i,onChange:(t)=>l(t.target.value),placeholder:"Filter plans…","aria-label":"Filter plans",className:"min-w-0 flex-1 bg-transparent text-[11px] text-ink outline-none placeholder:text-ink/35"})]}),e("div",{className:"flex-1 min-h-0 overflow-y-auto scrollbar-overlay-container",children:r.length===0?e("p",{className:"px-3 py-2 text-[11px] text-ink/40 italic",children:a.length===0?"No plan yet":"No plan matches the filter"}):e("ul",{className:"py-1",children:r.map((t)=>{let c=t.path===h,m=F(t.modifiedAt);return e("li",{children:e("button",{type:"button",onClick:()=>b(t.path),"aria-current":c?"true":void 0,title:`${t.path}${m?` · ${m}`:""}`,className:`flex w-full items-start gap-1.5 px-2.5 py-1.5 text-left transition-colors ${c?"bg-ink/10 font-semibold text-ink":"text-ink/80 hover:bg-ink/5 hover:text-ink"}`,children:[e(Pe,{size:12,className:`mt-0.5 flex-shrink-0 ${c?"text-ink":"text-ink/40"}`}),e("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block truncate text-[11.5px]",children:t.title}),m&&e("span",{className:"block truncate font-mono text-[10px] text-ink/40",children:m})]})]})},t.path)})})})]})}function y({file:a,content:h,isLoading:b,error:i,truncated:l,onBack:r}){return e("div",{className:"flex h-full min-h-0 w-full flex-col bg-paper",children:[e("div",{className:"flex flex-shrink-0 items-center gap-1.5 border-b border-ink/10 px-2.5 py-1.5",children:[e("button",{type:"button",onClick:r,title:"Back to the plan list","aria-label":"Back to the plan list",className:"flex-shrink-0 rounded p-1 text-ink/60 hover:bg-ink/5 hover:text-ink @[520px]:hidden",children:e(mn,{size:13})}),e("span",{className:"min-w-0 flex-1 truncate text-[11px] text-ink/50",title:a?.path??"",children:a?.path??"Plan"}),b&&e(p,{size:12,className:"flex-shrink-0 animate-spin text-ink/40"})]}),e("div",{className:"flex-1 min-h-0 overflow-y-auto scrollbar-overlay-container",children:i?e("div",{className:"flex flex-col items-center gap-2 px-6 py-8 text-center",children:[e(B,{size:16,className:"text-error-text"}),e("p",{className:"text-xs text-error-text",children:i})]}):!h?e("div",{className:"px-6 py-8 text-center text-xs text-ink/40",children:b?"Reading the plan…":"This plan is empty."}):e("article",{className:"mx-auto max-w-4xl px-5 py-4",children:[e(J,{content:h,className:"max-w-none"}),l&&e("p",{className:"mt-4 border-t border-ink/10 pt-2 text-[11px] text-ink/50",children:"This plan is longer than the reader's budget and was cut off."})]})})]})}function X({className:a="",active:h=!0,tabsMode:b=!1}){let[i]=ce(),l=i.get("sessionId"),[r,t]=vl("plan.selectedFile",null),[c,m]=n(!1),k=r&&r.sessionId===l?r.path:null,s=Te(l?_h(l):null,{enabled:h}),x=s.data?.files??[],v=s.data?.current??null,f=u(()=>{if(k&&x.some((g)=>g.path===k))return k;return v},[k,x,v]),w=u(()=>x.find((g)=>g.path===f)??null,[x,f]);o(()=>{if(!l||!f||f===k)return;t({sessionId:l,path:f})},[l,f,k,t]),o(()=>{m(!1)},[l]);let S=(g)=>{if(l)t({sessionId:l,path:g});m(!0)};if(!l)return e("div",{className:`flex h-full flex-col items-center justify-center bg-paper text-ink/40 ${a}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});let N=x.length>0;return e("div",{className:`@container flex h-full min-h-0 w-full flex-col bg-paper text-xs text-ink ${a}`,children:[e(xt,{left:e(d,{children:[e(Pe,{size:12,className:"flex-shrink-0 text-ink/50"}),e(so,{id:"plan",tabsMode:b,children:e("span",{className:"truncate text-[11px] font-medium text-ink/70",children:"Plan mode"})}),N&&e("span",{className:"flex-shrink-0 rounded border border-ink/15 bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] text-ink/60",children:x.length})]}),right:e(nt,{label:"Re-read the plan",onClick:s.refresh,busy:s.isLoading||s.refreshing,disabled:s.isLoading})}),s.stale&&!s.data?e("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[e(B,{size:16,className:"text-error-text"}),e("p",{className:"text-error-text",children:"The plan could not be read."}),e("button",{type:"button",onClick:s.refresh,className:"text-[11px] font-semibold text-ink/70 underline underline-offset-2 hover:text-ink",children:"Try again"})]}):!s.data?e("div",{className:"flex flex-1 items-center justify-center gap-2 text-ink/40",children:[e(p,{size:14,className:"animate-spin"}),e("span",{children:"Reading the plan…"})]}):!N?e("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[e(Pe,{size:18,className:"text-ink/30"}),e("p",{className:"max-w-sm text-[11px] leading-relaxed text-ink/60",children:"No plan yet. Turn on Plan mode in the composer, and the plan this session writes will appear here."})]}):e("div",{className:"flex min-h-0 flex-1 flex-col @[520px]:flex-row-reverse",children:[e("div",{className:`min-h-0 w-full @[520px]:w-52 @[520px]:flex-shrink-0 border-b border-ink/10 @[520px]:border-b-0 @[520px]:border-l ${c?"hidden @[520px]:flex":"flex"} flex-col`,children:e(P,{files:x,selected:f,onSelect:S})}),e("div",{className:`min-w-0 min-h-0 flex-1 ${c?"flex":"hidden @[520px]:flex"} flex-col`,children:e(y,{file:w,content:s.data.content,isLoading:s.isLoading,error:s.stale?"The plan could not be read.":null,truncated:s.data.truncated,onBack:()=>m(!1)})})]})]})}export{X as PlanPanel};
|