@band-app/server 0.10.0 → 0.12.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/README.md +4 -2
- package/dist/client/assets/{DockviewTerminalContainer-C5yFKEoK.js → DockviewTerminalContainer-B6ls12RP.js} +2 -2
- package/dist/client/assets/{TerminalPanel-DAwQhW0y.js → TerminalPanel-CTjPLr1l.js} +1 -1
- package/dist/client/assets/{_basePickBy-Cxy2uLa-.js → _basePickBy-D4ggI4i0.js} +1 -1
- package/dist/client/assets/{_baseUniq-jya1YXzy.js → _baseUniq-E0-L58sh.js} +1 -1
- package/dist/client/assets/{arc-Dxa_mBOn.js → arc-Cd0JgGvM.js} +1 -1
- package/dist/client/assets/{architectureDiagram-VXUJARFQ-DHLla5pN.js → architectureDiagram-VXUJARFQ-BngJQDkI.js} +1 -1
- package/dist/client/assets/{blockDiagram-VD42YOAC-CxqGHWD6.js → blockDiagram-VD42YOAC-dcYRXfph.js} +1 -1
- package/dist/client/assets/{c4Diagram-YG6GDRKO-CJ14R1KC.js → c4Diagram-YG6GDRKO-B_8XfvfL.js} +1 -1
- package/dist/client/assets/channel-BN9rr7kd.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-B7W58V1V.js → chunk-4BX2VUAB-CFd2iELe.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-BexaNtN4.js → chunk-55IACEB6-ZI-o1tfy.js} +1 -1
- package/dist/client/assets/{chunk-B4BG7PRW-DkzDTPIe.js → chunk-B4BG7PRW-GcKh0u0t.js} +1 -1
- package/dist/client/assets/{chunk-DI55MBZ5-C_PHG7rI.js → chunk-DI55MBZ5-asFoohq8.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-9ESlUsET.js → chunk-FMBD7UC4-GmvgLSQe.js} +1 -1
- package/dist/client/assets/{chunk-QN33PNHL-DWo9MH1S.js → chunk-QN33PNHL-CbSPviK8.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-Bbgg8OcM.js → chunk-QZHKN3VN-C5_8IhWQ.js} +1 -1
- package/dist/client/assets/{chunk-TZMSLE5B-CjGBNyAK.js → chunk-TZMSLE5B-CvwKA6rf.js} +1 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-f-3sWSXi.js +1 -0
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-f-3sWSXi.js +1 -0
- package/dist/client/assets/clone-DyjKoDMl.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-Bdu80dtY.js → cose-bilkent-S5V4N54A-CFOKjm00.js} +1 -1
- package/dist/client/assets/{dagre-6UL2VRFP-CNpvZCIA.js → dagre-6UL2VRFP-XkiKAfAP.js} +1 -1
- package/dist/client/assets/{diagram-PSM6KHXK-DBqxkCV6.js → diagram-PSM6KHXK-D7OJGDF1.js} +1 -1
- package/dist/client/assets/{diagram-QEK2KX5R-BJ70tnCT.js → diagram-QEK2KX5R-CNDqB5ur.js} +1 -1
- package/dist/client/assets/{diagram-S2PKOQOG-BJT9a_iD.js → diagram-S2PKOQOG-DHWhfYWy.js} +1 -1
- package/dist/client/assets/{erDiagram-Q2GNP2WA-DlDgnxvr.js → erDiagram-Q2GNP2WA-DlhzEgw7.js} +1 -1
- package/dist/client/assets/{flowDiagram-NV44I4VS-CtnfmEyX.js → flowDiagram-NV44I4VS-BabYr6zd.js} +1 -1
- package/dist/client/assets/{ganttDiagram-JELNMOA3-CDltME-1.js → ganttDiagram-JELNMOA3-CUHxh1TA.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-BSiSLqD_.js → gitGraphDiagram-V2S2FVAM-DSDd-EJ_.js} +1 -1
- package/dist/client/assets/{graph-BXFhffUt.js → graph-DXNVnA6H.js} +1 -1
- package/dist/client/assets/{highlighted-body-B3W2YXNL-baZl_B7-.js → highlighted-body-B3W2YXNL-B79dTSwx.js} +1 -1
- package/dist/client/assets/{index-D-swyWIZ.js → index-4srNURyv.js} +1 -1
- package/dist/client/assets/{index-DCOV9hmX.js → index-5jOljAlc.js} +1 -1
- package/dist/client/assets/{index-DlZs_C_Z.js → index-BNkxX-BD.js} +1 -1
- package/dist/client/assets/{index-CXk5lAWQ.js → index-BQU-JREs.js} +1 -1
- package/dist/client/assets/{index-DlkLRARc.js → index-BVLYlk0y.js} +1 -1
- package/dist/client/assets/{index-B6iGb_w2.js → index-BqDdB0tU.js} +1 -1
- package/dist/client/assets/{index-CbKmWyq9.js → index-Bvony7H7.js} +1 -1
- package/dist/client/assets/{index-DDgejW9Y.js → index-CPo0kKmX.js} +1 -1
- package/dist/client/assets/{index-DIzuf_Dt.js → index-CTR_yHqa.js} +1 -1
- package/dist/client/assets/{index-DbdSOCzr.js → index-CjixM2mV.js} +1 -1
- package/dist/client/assets/{index-n-QQQGkk.js → index-Cu2rqq8f.js} +1 -1
- package/dist/client/assets/{index-C2qsZyf5.js → index-D-7FXjIA.js} +1 -1
- package/dist/client/assets/{index-BIHulysR.js → index-DRS8jN52.js} +1 -1
- package/dist/client/assets/{index-muvgthqG.js → index-DktZbpGM.js} +1 -1
- package/dist/client/assets/{index-l7pbZp6D.js → index-DutxFSic.js} +1 -1
- package/dist/client/assets/{index-BjDbhfGt.js → index-EdY6fqdn.js} +1 -1
- package/dist/client/assets/{index-Y5qBvPAz.js → index-_J9aGl-d.js} +1 -1
- package/dist/client/assets/{index-DNv51ILn.js → index-okqFBuO9.js} +1 -1
- package/dist/client/assets/{infoDiagram-HS3SLOUP-C-8cQbzs.js → infoDiagram-HS3SLOUP-tDVIKvh1.js} +1 -1
- package/dist/client/assets/{journeyDiagram-XKPGCS4Q-Dp9Od5Lo.js → journeyDiagram-XKPGCS4Q-cFY68TOP.js} +1 -1
- package/dist/client/assets/{kanban-definition-3W4ZIXB7-CTeqP1Wl.js → kanban-definition-3W4ZIXB7-CTQ8WBzj.js} +1 -1
- package/dist/client/assets/{layout-wpsrF_0j.js → layout-BDsby01A.js} +1 -1
- package/dist/client/assets/{linear--cKtF_4-.js → linear-B321DwjU.js} +1 -1
- package/dist/client/assets/main-7lUOPiu0.css +1 -0
- package/dist/client/assets/{main-MjQQLQea.js → main-gKX_m5Ko.js} +260 -260
- package/dist/client/assets/{mindmap-definition-VGOIOE7T-CpbJEgPa.js → mindmap-definition-VGOIOE7T-CMbXBgve.js} +1 -1
- package/dist/client/assets/{pieDiagram-ADFJNKIX-Bqm8Hi0T.js → pieDiagram-ADFJNKIX-pTHsfneI.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-AYHSOK5B-KBK2cMVk.js → quadrantDiagram-AYHSOK5B-DNGhzaPi.js} +1 -1
- package/dist/client/assets/{requirementDiagram-UZGBJVZJ-vQQFD9zc.js → requirementDiagram-UZGBJVZJ-E5dChVU-.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-TZEHDZUN-cTtL91Re.js → sankeyDiagram-TZEHDZUN-B858cwBV.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-WL72ISMW-BuGTsJB7.js → sequenceDiagram-WL72ISMW-Clbop1Lh.js} +1 -1
- package/dist/client/assets/{square-terminal-6YppA-hI.js → square-terminal-zBRLwN9m.js} +1 -1
- package/dist/client/assets/{stateDiagram-FKZM4ZOC-Cxlf071k.js → stateDiagram-FKZM4ZOC-BRIoi38Z.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-BXdrXPzW.js +1 -0
- package/dist/client/assets/{timeline-definition-IT6M3QCI-CL3qYiMu.js → timeline-definition-IT6M3QCI-C26dPldo.js} +1 -1
- package/dist/client/assets/{treemap-GDKQZRPO-DRAWRdVd.js → treemap-GDKQZRPO-l9jcKCpW.js} +1 -1
- package/dist/client/assets/{useSessionListContext-wCLhqmn8.js → useSessionListContext-MLsp0tQx.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId-BZdlER3j.js → workspace._workspaceId-CKxw1xn1.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.changes-d_RXYsmI.js → workspace._workspaceId.changes-sSj8FhGC.js} +1 -1
- package/dist/client/assets/workspace._workspaceId.code-CTG7u893.js +1 -0
- package/dist/client/assets/{workspace._workspaceId.code._-DWbDHeSI.js → workspace._workspaceId.code._-BVzwjj6w.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.code.index-DnBvnsEY.js → workspace._workspaceId.code.index-V90FWX2z.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.index-BVKcI4Hz.js → workspace._workspaceId.index-Cczg6N56.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.terminal-B6e3iDCL.js → workspace._workspaceId.terminal-CFJVgZLo.js} +2 -2
- package/dist/client/assets/{xychartDiagram-PRI3JC2R-Dk1ZOoyd.js → xychartDiagram-PRI3JC2R-Cwsp2BWQ.js} +1 -1
- package/dist/migrations/20260513141710_browser_history/migration.sql +12 -0
- package/dist/migrations/20260513141710_browser_history/snapshot.json +846 -0
- package/dist/server/assets/{DockviewTerminalContainer-BClknz0C.js → DockviewTerminalContainer-B5lZSZ8Y.js} +3 -3
- package/dist/server/assets/{TerminalPanel-Dpk4kp0C.js → TerminalPanel-_8vdN94i.js} +1 -1
- package/dist/server/assets/{_basePickBy-CQWrFHod.js → _basePickBy-CD1u5dYZ.js} +2 -2
- package/dist/server/assets/{_baseUniq-ChPDjMP0.js → _baseUniq-BdmRs4hY.js} +1 -1
- package/dist/server/assets/{_tanstack-start-manifest_v-D4996aDN.js → _tanstack-start-manifest_v-D4xipytj.js} +1 -1
- package/dist/server/assets/{arc-D-SYKFhU.js → arc-CbjxAGh2.js} +1 -1
- package/dist/server/assets/{architecture-7HQA4BMR-Dko2LbDd.js → architecture-7HQA4BMR-PvoHywyl.js} +6 -6
- package/dist/server/assets/{architectureDiagram-VXUJARFQ-DUGfoAf_.js → architectureDiagram-VXUJARFQ-CYVR-HeO.js} +6 -6
- package/dist/server/assets/{blockDiagram-VD42YOAC-pT0fTRP_.js → blockDiagram-VD42YOAC-oFwYjSKc.js} +6 -6
- package/dist/server/assets/{c4Diagram-YG6GDRKO-DPx-FvB1.js → c4Diagram-YG6GDRKO-BRcTuK4Y.js} +2 -2
- package/dist/server/assets/{channel-BtdYXKY6.js → channel-DkpUIvTk.js} +1 -1
- package/dist/server/assets/{chunk-4BX2VUAB-DwT0XB8f.js → chunk-4BX2VUAB-Db1P5ZKT.js} +1 -1
- package/dist/server/assets/{chunk-55IACEB6-42pp-S9e.js → chunk-55IACEB6-CgF3c_s9.js} +1 -1
- package/dist/server/assets/{chunk-B4BG7PRW-B9HlFFeK.js → chunk-B4BG7PRW-C4lPp_gR.js} +4 -4
- package/dist/server/assets/{chunk-DI55MBZ5-UJ9TEI0f.js → chunk-DI55MBZ5-DBc5FE0O.js} +3 -3
- package/dist/server/assets/{chunk-FMBD7UC4-D0p4jYwA.js → chunk-FMBD7UC4-BmyVhHTD.js} +1 -1
- package/dist/server/assets/{chunk-QN33PNHL-uyJLpuzt.js → chunk-QN33PNHL-MEMc-HV1.js} +1 -1
- package/dist/server/assets/{chunk-QZHKN3VN-dIcVPiYR.js → chunk-QZHKN3VN-D0s55-ob.js} +1 -1
- package/dist/server/assets/{chunk-TZMSLE5B-3l__otri.js → chunk-TZMSLE5B-CHLAtcyP.js} +1 -1
- package/dist/server/assets/{classDiagram-v2-WZHVMYZB-CxlZAW4M.js → classDiagram-2ON5EDUG-D_KqC8CP.js} +5 -5
- package/dist/server/assets/{classDiagram-2ON5EDUG-CxlZAW4M.js → classDiagram-v2-WZHVMYZB-D_KqC8CP.js} +5 -5
- package/dist/server/assets/{clone-BtN5mmzP.js → clone-pAcegSV_.js} +1 -1
- package/dist/server/assets/{cose-bilkent-S5V4N54A-CpHc0Viy.js → cose-bilkent-S5V4N54A-I5bimXZO.js} +1 -1
- package/dist/server/assets/{dagre-6UL2VRFP-BmlvwxMz.js → dagre-6UL2VRFP-BFEXHp44.js} +6 -6
- package/dist/server/assets/{diagram-PSM6KHXK-B0TgGZY7.js → diagram-PSM6KHXK-B4UG8ra3.js} +7 -7
- package/dist/server/assets/{diagram-QEK2KX5R-D3Y8zwos.js → diagram-QEK2KX5R-B65vkBbU.js} +6 -6
- package/dist/server/assets/{diagram-S2PKOQOG-BHuUrG2N.js → diagram-S2PKOQOG-DUV65VxH.js} +6 -6
- package/dist/server/assets/{erDiagram-Q2GNP2WA-DM8WJlsi.js → erDiagram-Q2GNP2WA-eEKIOvT3.js} +4 -4
- package/dist/server/assets/{flowDiagram-NV44I4VS-BfyIqNem.js → flowDiagram-NV44I4VS-B0GxfKRu.js} +5 -5
- package/dist/server/assets/{ganttDiagram-JELNMOA3-BZQeLvAR.js → ganttDiagram-JELNMOA3-etJ_j_I0.js} +2 -2
- package/dist/server/assets/{gitGraph-G5XIXVHT-CCcYJ7dh.js → gitGraph-G5XIXVHT-DE59sCs-.js} +6 -6
- package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-bCVMHPpA.js → gitGraphDiagram-V2S2FVAM-BZuXPjR3.js} +7 -7
- package/dist/server/assets/{graph-CIjfCamy.js → graph-HlbQNgKh.js} +2 -2
- package/dist/server/assets/{highlighted-body-B3W2YXNL-DgdfkSxA.js → highlighted-body-B3W2YXNL-CGZmJ48I.js} +1 -1
- package/dist/server/assets/{index-0_BGm0mn.js → index-0Vp2EuiF.js} +3 -3
- package/dist/server/assets/{index-BT09Zz2i.js → index-B2NbB5n_.js} +2 -2
- package/dist/server/assets/{index-PcwomXXg.js → index-BYATJkV0.js} +1 -1
- package/dist/server/assets/{index-B2qKtyPL.js → index-B_gLaw5q.js} +5 -5
- package/dist/server/assets/{index-CBXzgKOs.js → index-BggD7xEz.js} +2 -2
- package/dist/server/assets/{index-CPgf4fox.js → index-BquoD96E.js} +2 -2
- package/dist/server/assets/{index-BgilcgRG.js → index-CReShbyg.js} +2 -2
- package/dist/server/assets/{index-xHAcoUao.js → index-CcRwhNJ0.js} +3 -3
- package/dist/server/assets/{index-BcYdtAMM.js → index-CozxyE6F.js} +2 -2
- package/dist/server/assets/{index-ChjA2VmA.js → index-Cq-S8ocb.js} +1 -1
- package/dist/server/assets/{index-DO78fmX2.js → index-CqJMMgyN.js} +2 -2
- package/dist/server/assets/{index-CO5kqxG3.js → index-DVIqYu1B.js} +5 -5
- package/dist/server/assets/{index-BRIhAKe8.js → index-DfuZ1SKx.js} +2 -2
- package/dist/server/assets/{index-BoanxRSH.js → index-DoEmUqp6.js} +2 -2
- package/dist/server/assets/{index-sBBVHJec.js → index-DsW29Azb.js} +4 -4
- package/dist/server/assets/{index-CW27f0k8.js → index-KO85K6gg.js} +2 -2
- package/dist/server/assets/{index-CQZMfw92.js → index-kEUC1eer.js} +2 -2
- package/dist/server/assets/{index-CUrmFB9U.js → index-oAvn7Kbw.js} +2 -2
- package/dist/server/assets/{info-VBDWY6EO-DeW_eJX1.js → info-VBDWY6EO-DFb5bmEE.js} +6 -6
- package/dist/server/assets/{infoDiagram-HS3SLOUP-RRsQoFFk.js → infoDiagram-HS3SLOUP-DUDXdFYe.js} +5 -5
- package/dist/server/assets/{journeyDiagram-XKPGCS4Q-BthUaNJH.js → journeyDiagram-XKPGCS4Q-BnEH3kK2.js} +4 -4
- package/dist/server/assets/{kanban-definition-3W4ZIXB7-g-dju6UR.js → kanban-definition-3W4ZIXB7-BPnM08KT.js} +2 -2
- package/dist/server/assets/{layout-un8ibgzD.js → layout-CnirhobE.js} +4 -4
- package/dist/server/assets/{linear-CLKN7W2t.js → linear-CLJDiqhJ.js} +1 -1
- package/dist/server/assets/{mermaid-3ZIDBTTL-gGOjGhZZ.js → mermaid-3ZIDBTTL-Dyndt6u2.js} +1 -1
- package/dist/server/assets/{mermaid-parser.core-Dt-fPNwe.js → mermaid-parser.core-DxDjr9RA.js} +11 -11
- package/dist/server/assets/{mindmap-definition-VGOIOE7T-CyOPm1d2.js → mindmap-definition-VGOIOE7T-CPnGCXl9.js} +3 -3
- package/dist/server/assets/{packet-DYOGHKS2-4sSK9trD.js → packet-DYOGHKS2-Bt7VjiqG.js} +6 -6
- package/dist/server/assets/{pie-VRWISCQL-C2jGDe4p.js → pie-VRWISCQL-CpD4BgbA.js} +6 -6
- package/dist/server/assets/{pieDiagram-ADFJNKIX-DWZOj9Y0.js → pieDiagram-ADFJNKIX-BSx8zl8i.js} +7 -7
- package/dist/server/assets/{quadrantDiagram-AYHSOK5B-D4ONUX7b.js → quadrantDiagram-AYHSOK5B-B08pRdHD.js} +2 -2
- package/dist/server/assets/{radar-ZZBFDIW7-BJ1GmVhh.js → radar-ZZBFDIW7-BeHVWQbv.js} +6 -6
- package/dist/server/assets/{requirementDiagram-UZGBJVZJ-UgBPsTYb.js → requirementDiagram-UZGBJVZJ-BtjVtNFU.js} +3 -3
- package/dist/server/assets/{router-BLOX4jR4.js → router-VlIt4cC5.js} +1221 -288
- package/dist/server/assets/{sankeyDiagram-TZEHDZUN-DR346iyM.js → sankeyDiagram-TZEHDZUN-CG6DECc6.js} +1 -1
- package/dist/server/assets/{sequenceDiagram-WL72ISMW-ampkthMk.js → sequenceDiagram-WL72ISMW-DEfVJQli.js} +3 -3
- package/dist/server/assets/{square-terminal-CuUDJxG7.js → square-terminal-DTO02O7S.js} +1 -1
- package/dist/server/assets/{stateDiagram-FKZM4ZOC-BGJgIHAr.js → stateDiagram-FKZM4ZOC-DblYyAIC.js} +8 -8
- package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-DV0c4QE4.js → stateDiagram-v2-4FDKWEC3-YhMCeOsH.js} +4 -4
- package/dist/server/assets/{timeline-definition-IT6M3QCI-V6Yu7fCS.js → timeline-definition-IT6M3QCI-CDEJSclA.js} +2 -2
- package/dist/server/assets/{treemap-GDKQZRPO-Dwk_JN75.js → treemap-GDKQZRPO-Tg2S6NSt.js} +6 -6
- package/dist/server/assets/{workspace._workspaceId-BIUZ7lNJ.js → workspace._workspaceId-CVnwrhnX.js} +2 -2
- package/dist/server/assets/{workspace._workspaceId.changes-Cz2Q9MYv.js → workspace._workspaceId.changes-CsJMr9Ve.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.code._-mhiuiARp.js → workspace._workspaceId.code._-CjSLVs7D.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.code.index-DJE-_14B.js → workspace._workspaceId.code.index-BhUZuUX-.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.index-BaBfW1nO.js → workspace._workspaceId.index-CmBIxfCl.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.terminal-CKX5RImf.js → workspace._workspaceId.terminal-BehWU5SY.js} +2 -2
- package/dist/server/assets/{xychartDiagram-PRI3JC2R-DZLYbs7Q.js → xychartDiagram-PRI3JC2R-DAT7FXvH.js} +2 -2
- package/dist/server/server.js +2 -2
- package/dist/start-server.mjs +689 -277
- package/package.json +5 -5
- package/dist/client/assets/channel-gL3XfYSv.js +0 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-Dset5Kja.js +0 -1
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-Dset5Kja.js +0 -1
- package/dist/client/assets/clone-CGaELEce.js +0 -1
- package/dist/client/assets/main-F2T48yRI.css +0 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-C1zjRAy3.js +0 -1
- package/dist/client/assets/workspace._workspaceId.code-BIEwg7CK.js +0 -1
package/dist/start-server.mjs
CHANGED
|
@@ -3445,8 +3445,8 @@ var require_websocket_server = __commonJS({
|
|
|
3445
3445
|
*/
|
|
3446
3446
|
shouldHandle(req) {
|
|
3447
3447
|
if (this.options.path) {
|
|
3448
|
-
const
|
|
3449
|
-
const pathname =
|
|
3448
|
+
const index3 = req.url.indexOf("?");
|
|
3449
|
+
const pathname = index3 !== -1 ? req.url.slice(0, index3) : req.url;
|
|
3450
3450
|
if (pathname !== this.options.path) return false;
|
|
3451
3451
|
}
|
|
3452
3452
|
return true;
|
|
@@ -4585,8 +4585,8 @@ var require_redaction = __commonJS({
|
|
|
4585
4585
|
if (o2[ns] === null) {
|
|
4586
4586
|
return o2;
|
|
4587
4587
|
}
|
|
4588
|
-
const { index:
|
|
4589
|
-
const nextPath = `${str.substr(
|
|
4588
|
+
const { index: index3 } = next;
|
|
4589
|
+
const nextPath = `${str.substr(index3, str.length - 1)}`;
|
|
4590
4590
|
o2[ns] = o2[ns] || [];
|
|
4591
4591
|
if (ns !== wildcardFirstSym && o2[ns].length === 0) {
|
|
4592
4592
|
o2[ns].push(...o2[wildcardFirstSym] || []);
|
|
@@ -4692,8 +4692,8 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
4692
4692
|
if (len === 1) return f10;
|
|
4693
4693
|
var objects = new Array(len);
|
|
4694
4694
|
objects[0] = ss(f10);
|
|
4695
|
-
for (var
|
|
4696
|
-
objects[
|
|
4695
|
+
for (var index3 = 1; index3 < len; index3++) {
|
|
4696
|
+
objects[index3] = ss(args[index3]);
|
|
4697
4697
|
}
|
|
4698
4698
|
return objects.join(" ");
|
|
4699
4699
|
}
|
|
@@ -5464,8 +5464,8 @@ var require_on_exit_leak_free = __commonJS({
|
|
|
5464
5464
|
}
|
|
5465
5465
|
function clear(ref) {
|
|
5466
5466
|
for (const event of ["exit", "beforeExit"]) {
|
|
5467
|
-
const
|
|
5468
|
-
refs[event].splice(
|
|
5467
|
+
const index3 = refs[event].indexOf(ref);
|
|
5468
|
+
refs[event].splice(index3, index3 + 1);
|
|
5469
5469
|
uninstall(event);
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
@@ -5575,9 +5575,9 @@ var require_wait = __commonJS({
|
|
|
5575
5575
|
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js"(exports, module) {
|
|
5576
5576
|
"use strict";
|
|
5577
5577
|
var MAX_TIMEOUT = 1e3;
|
|
5578
|
-
function wait(state2,
|
|
5578
|
+
function wait(state2, index3, expected, timeout, done) {
|
|
5579
5579
|
const max2 = Date.now() + timeout;
|
|
5580
|
-
let current = Atomics.load(state2,
|
|
5580
|
+
let current = Atomics.load(state2, index3);
|
|
5581
5581
|
if (current === expected) {
|
|
5582
5582
|
done(null, "ok");
|
|
5583
5583
|
return;
|
|
@@ -5589,7 +5589,7 @@ var require_wait = __commonJS({
|
|
|
5589
5589
|
} else {
|
|
5590
5590
|
setTimeout(() => {
|
|
5591
5591
|
prior = current;
|
|
5592
|
-
current = Atomics.load(state2,
|
|
5592
|
+
current = Atomics.load(state2, index3);
|
|
5593
5593
|
if (current === prior) {
|
|
5594
5594
|
check2(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : backoff * 2);
|
|
5595
5595
|
} else {
|
|
@@ -5601,9 +5601,9 @@ var require_wait = __commonJS({
|
|
|
5601
5601
|
};
|
|
5602
5602
|
check2(1);
|
|
5603
5603
|
}
|
|
5604
|
-
function waitDiff(state2,
|
|
5604
|
+
function waitDiff(state2, index3, expected, timeout, done) {
|
|
5605
5605
|
const max2 = Date.now() + timeout;
|
|
5606
|
-
let current = Atomics.load(state2,
|
|
5606
|
+
let current = Atomics.load(state2, index3);
|
|
5607
5607
|
if (current !== expected) {
|
|
5608
5608
|
done(null, "ok");
|
|
5609
5609
|
return;
|
|
@@ -5613,7 +5613,7 @@ var require_wait = __commonJS({
|
|
|
5613
5613
|
done(null, "timed-out");
|
|
5614
5614
|
} else {
|
|
5615
5615
|
setTimeout(() => {
|
|
5616
|
-
current = Atomics.load(state2,
|
|
5616
|
+
current = Atomics.load(state2, index3);
|
|
5617
5617
|
if (current !== expected) {
|
|
5618
5618
|
done(null, "ok");
|
|
5619
5619
|
} else {
|
|
@@ -7697,9 +7697,9 @@ var require_multistream = __commonJS({
|
|
|
7697
7697
|
}
|
|
7698
7698
|
function remove2(id) {
|
|
7699
7699
|
const { streams } = this;
|
|
7700
|
-
const
|
|
7701
|
-
if (
|
|
7702
|
-
streams.splice(
|
|
7700
|
+
const index3 = streams.findIndex((s6) => s6.id === id);
|
|
7701
|
+
if (index3 >= 0) {
|
|
7702
|
+
streams.splice(index3, 1);
|
|
7703
7703
|
streams.sort(compareByLevel);
|
|
7704
7704
|
this.minLevel = streams.length > 0 ? streams[0].level : -1;
|
|
7705
7705
|
}
|
|
@@ -8636,9 +8636,9 @@ function mergeValues2(a6, b10) {
|
|
|
8636
8636
|
return { valid: false };
|
|
8637
8637
|
}
|
|
8638
8638
|
const newArray = [];
|
|
8639
|
-
for (let
|
|
8640
|
-
const itemA = a6[
|
|
8641
|
-
const itemB = b10[
|
|
8639
|
+
for (let index3 = 0; index3 < a6.length; index3++) {
|
|
8640
|
+
const itemA = a6[index3];
|
|
8641
|
+
const itemB = b10[index3];
|
|
8642
8642
|
const sharedValue = mergeValues2(itemA, itemB);
|
|
8643
8643
|
if (!sharedValue.valid) {
|
|
8644
8644
|
return { valid: false };
|
|
@@ -10585,10 +10585,10 @@ var init_types = __esm({
|
|
|
10585
10585
|
// }) as any;
|
|
10586
10586
|
// return merged;
|
|
10587
10587
|
// }
|
|
10588
|
-
catchall(
|
|
10588
|
+
catchall(index3) {
|
|
10589
10589
|
return new _ZodObject({
|
|
10590
10590
|
...this._def,
|
|
10591
|
-
catchall:
|
|
10591
|
+
catchall: index3
|
|
10592
10592
|
});
|
|
10593
10593
|
}
|
|
10594
10594
|
pick(mask) {
|
|
@@ -11076,10 +11076,10 @@ var init_types = __esm({
|
|
|
11076
11076
|
}
|
|
11077
11077
|
const keyType = this._def.keyType;
|
|
11078
11078
|
const valueType = this._def.valueType;
|
|
11079
|
-
const pairs = [...ctx.data.entries()].map(([key, value],
|
|
11079
|
+
const pairs = [...ctx.data.entries()].map(([key, value], index3) => {
|
|
11080
11080
|
return {
|
|
11081
|
-
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [
|
|
11082
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [
|
|
11081
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index3, "key"])),
|
|
11082
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index3, "value"]))
|
|
11083
11083
|
};
|
|
11084
11084
|
});
|
|
11085
11085
|
if (ctx.common.async) {
|
|
@@ -31205,7 +31205,7 @@ function toTomlValue(value, path3) {
|
|
|
31205
31205
|
} else if (typeof value === "boolean") {
|
|
31206
31206
|
return value ? "true" : "false";
|
|
31207
31207
|
} else if (Array.isArray(value)) {
|
|
31208
|
-
const rendered = value.map((item,
|
|
31208
|
+
const rendered = value.map((item, index3) => toTomlValue(item, `${path3}[${index3}]`));
|
|
31209
31209
|
return `[${rendered.join(", ")}]`;
|
|
31210
31210
|
} else if (isPlainObject3(value)) {
|
|
31211
31211
|
const parts = [];
|
|
@@ -33017,8 +33017,8 @@ var require_react_production = __commonJS({
|
|
|
33017
33017
|
});
|
|
33018
33018
|
}
|
|
33019
33019
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
33020
|
-
function getElementKey(element,
|
|
33021
|
-
return "object" === typeof element && null !== element && null != element.key ? escape3("" + element.key) :
|
|
33020
|
+
function getElementKey(element, index3) {
|
|
33021
|
+
return "object" === typeof element && null !== element && null != element.key ? escape3("" + element.key) : index3.toString(36);
|
|
33022
33022
|
}
|
|
33023
33023
|
function resolveThenable(thenable) {
|
|
33024
33024
|
switch (thenable.status) {
|
|
@@ -33591,8 +33591,8 @@ var require_react_development = __commonJS({
|
|
|
33591
33591
|
return escaperLookup[match];
|
|
33592
33592
|
});
|
|
33593
33593
|
}
|
|
33594
|
-
function getElementKey(element,
|
|
33595
|
-
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape3("" + element.key)) :
|
|
33594
|
+
function getElementKey(element, index3) {
|
|
33595
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape3("" + element.key)) : index3.toString(36);
|
|
33596
33596
|
}
|
|
33597
33597
|
function resolveThenable(thenable) {
|
|
33598
33598
|
switch (thenable.status) {
|
|
@@ -34362,8 +34362,8 @@ var require_lucide_react = __commonJS({
|
|
|
34362
34362
|
}
|
|
34363
34363
|
return false;
|
|
34364
34364
|
};
|
|
34365
|
-
var mergeClasses = (...classes) => classes.filter((className,
|
|
34366
|
-
return Boolean(className) && className.trim() !== "" && array3.indexOf(className) ===
|
|
34365
|
+
var mergeClasses = (...classes) => classes.filter((className, index4, array3) => {
|
|
34366
|
+
return Boolean(className) && className.trim() !== "" && array3.indexOf(className) === index4;
|
|
34367
34367
|
}).join(" ").trim();
|
|
34368
34368
|
var toCamelCase2 = (string5) => string5.replace(
|
|
34369
34369
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
@@ -51329,7 +51329,7 @@ var require_lucide_react = __commonJS({
|
|
|
51329
51329
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
51330
51330
|
];
|
|
51331
51331
|
var ZoomOut = createLucideIcon("zoom-out", __iconNode);
|
|
51332
|
-
var
|
|
51332
|
+
var index3 = /* @__PURE__ */ Object.freeze({
|
|
51333
51333
|
__proto__: null,
|
|
51334
51334
|
AArrowDown,
|
|
51335
51335
|
AArrowUp,
|
|
@@ -58874,7 +58874,7 @@ var require_lucide_react = __commonJS({
|
|
|
58874
58874
|
exports.ZoomOut = ZoomOut;
|
|
58875
58875
|
exports.ZoomOutIcon = ZoomOut;
|
|
58876
58876
|
exports.createLucideIcon = createLucideIcon;
|
|
58877
|
-
exports.icons =
|
|
58877
|
+
exports.icons = index3;
|
|
58878
58878
|
}
|
|
58879
58879
|
});
|
|
58880
58880
|
|
|
@@ -61701,11 +61701,11 @@ function addSection(sections, len, ins, forceJoin = false) {
|
|
|
61701
61701
|
function addInsert(values, sections, value) {
|
|
61702
61702
|
if (value.length == 0)
|
|
61703
61703
|
return;
|
|
61704
|
-
let
|
|
61705
|
-
if (
|
|
61704
|
+
let index3 = sections.length - 2 >> 1;
|
|
61705
|
+
if (index3 < values.length) {
|
|
61706
61706
|
values[values.length - 1] = values[values.length - 1].append(value);
|
|
61707
61707
|
} else {
|
|
61708
|
-
while (values.length <
|
|
61708
|
+
while (values.length < index3)
|
|
61709
61709
|
values.push(Text.empty);
|
|
61710
61710
|
values.push(value);
|
|
61711
61711
|
}
|
|
@@ -62127,9 +62127,9 @@ function findSharedChunks(a6, b10, textDiff) {
|
|
|
62127
62127
|
}
|
|
62128
62128
|
return shared2;
|
|
62129
62129
|
}
|
|
62130
|
-
function heapBubble(heap,
|
|
62131
|
-
for (let cur = heap[
|
|
62132
|
-
let childIndex = (
|
|
62130
|
+
function heapBubble(heap, index3) {
|
|
62131
|
+
for (let cur = heap[index3]; ; ) {
|
|
62132
|
+
let childIndex = (index3 << 1) + 1;
|
|
62133
62133
|
if (childIndex >= heap.length)
|
|
62134
62134
|
break;
|
|
62135
62135
|
let child = heap[childIndex];
|
|
@@ -62140,8 +62140,8 @@ function heapBubble(heap, index2) {
|
|
|
62140
62140
|
if (cur.compare(child) < 0)
|
|
62141
62141
|
break;
|
|
62142
62142
|
heap[childIndex] = cur;
|
|
62143
|
-
heap[
|
|
62144
|
-
|
|
62143
|
+
heap[index3] = child;
|
|
62144
|
+
index3 = childIndex;
|
|
62145
62145
|
}
|
|
62146
62146
|
}
|
|
62147
62147
|
function compare(a6, startA, b10, startB, length, comparator) {
|
|
@@ -62183,15 +62183,15 @@ function sameValues(a6, b10) {
|
|
|
62183
62183
|
return false;
|
|
62184
62184
|
return true;
|
|
62185
62185
|
}
|
|
62186
|
-
function remove(array3,
|
|
62187
|
-
for (let i2 =
|
|
62186
|
+
function remove(array3, index3) {
|
|
62187
|
+
for (let i2 = index3, e2 = array3.length - 1; i2 < e2; i2++)
|
|
62188
62188
|
array3[i2] = array3[i2 + 1];
|
|
62189
62189
|
array3.pop();
|
|
62190
62190
|
}
|
|
62191
|
-
function insert(array3,
|
|
62192
|
-
for (let i2 = array3.length - 1; i2 >=
|
|
62191
|
+
function insert(array3, index3, value) {
|
|
62192
|
+
for (let i2 = array3.length - 1; i2 >= index3; i2--)
|
|
62193
62193
|
array3[i2 + 1] = array3[i2];
|
|
62194
|
-
array3[
|
|
62194
|
+
array3[index3] = value;
|
|
62195
62195
|
}
|
|
62196
62196
|
function findMinIndex(value, array3) {
|
|
62197
62197
|
let found = -1, foundPos = 1e9;
|
|
@@ -62944,8 +62944,8 @@ var init_dist3 = __esm({
|
|
|
62944
62944
|
if (ins >= 0) {
|
|
62945
62945
|
sections[i2] = ins;
|
|
62946
62946
|
sections[i2 + 1] = len;
|
|
62947
|
-
let
|
|
62948
|
-
while (inserted.length <
|
|
62947
|
+
let index3 = i2 >> 1;
|
|
62948
|
+
while (inserted.length < index3)
|
|
62949
62949
|
inserted.push(Text.empty);
|
|
62950
62950
|
inserted.push(len ? doc2.slice(pos, pos + len) : Text.empty);
|
|
62951
62951
|
}
|
|
@@ -63159,12 +63159,12 @@ var init_dist3 = __esm({
|
|
|
63159
63159
|
return this.ins < 0 ? this.len : this.ins;
|
|
63160
63160
|
}
|
|
63161
63161
|
get text() {
|
|
63162
|
-
let { inserted } = this.set,
|
|
63163
|
-
return
|
|
63162
|
+
let { inserted } = this.set, index3 = this.i - 2 >> 1;
|
|
63163
|
+
return index3 >= inserted.length ? Text.empty : inserted[index3];
|
|
63164
63164
|
}
|
|
63165
63165
|
textBit(len) {
|
|
63166
|
-
let { inserted } = this.set,
|
|
63167
|
-
return
|
|
63166
|
+
let { inserted } = this.set, index3 = this.i - 2 >> 1;
|
|
63167
|
+
return index3 >= inserted.length && !len ? Text.empty : inserted[index3].slice(this.off, len == null ? void 0 : this.off + len);
|
|
63168
63168
|
}
|
|
63169
63169
|
forward(len) {
|
|
63170
63170
|
if (len == this.len)
|
|
@@ -64414,8 +64414,8 @@ var init_dist3 = __esm({
|
|
|
64414
64414
|
/**
|
|
64415
64415
|
@internal
|
|
64416
64416
|
*/
|
|
64417
|
-
chunkEnd(
|
|
64418
|
-
return this.chunkPos[
|
|
64417
|
+
chunkEnd(index3) {
|
|
64418
|
+
return this.chunkPos[index3] + this.chunk[index3].length;
|
|
64419
64419
|
}
|
|
64420
64420
|
/**
|
|
64421
64421
|
Update the range set, optionally adding new ranges or filtering
|
|
@@ -64763,8 +64763,8 @@ var init_dist3 = __esm({
|
|
|
64763
64763
|
}
|
|
64764
64764
|
}
|
|
64765
64765
|
}
|
|
64766
|
-
setRangeIndex(
|
|
64767
|
-
if (
|
|
64766
|
+
setRangeIndex(index3) {
|
|
64767
|
+
if (index3 == this.layer.chunk[this.chunkIndex].value.length) {
|
|
64768
64768
|
this.chunkIndex++;
|
|
64769
64769
|
if (this.skip) {
|
|
64770
64770
|
while (this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]))
|
|
@@ -64772,7 +64772,7 @@ var init_dist3 = __esm({
|
|
|
64772
64772
|
}
|
|
64773
64773
|
this.rangeIndex = 0;
|
|
64774
64774
|
} else {
|
|
64775
|
-
this.rangeIndex =
|
|
64775
|
+
this.rangeIndex = index3;
|
|
64776
64776
|
}
|
|
64777
64777
|
}
|
|
64778
64778
|
nextChunk() {
|
|
@@ -64864,10 +64864,10 @@ var init_dist3 = __esm({
|
|
|
64864
64864
|
this.removeActive(this.minActive);
|
|
64865
64865
|
this.cursor.forward(pos, side);
|
|
64866
64866
|
}
|
|
64867
|
-
removeActive(
|
|
64868
|
-
remove(this.active,
|
|
64869
|
-
remove(this.activeTo,
|
|
64870
|
-
remove(this.activeRank,
|
|
64867
|
+
removeActive(index3) {
|
|
64868
|
+
remove(this.active, index3);
|
|
64869
|
+
remove(this.activeTo, index3);
|
|
64870
|
+
remove(this.activeRank, index3);
|
|
64871
64871
|
this.minActive = findMinIndex(this.active, this.activeTo);
|
|
64872
64872
|
}
|
|
64873
64873
|
addActive(trackOpen) {
|
|
@@ -65051,18 +65051,18 @@ var init_style_mod = __esm({
|
|
|
65051
65051
|
let sheet = this.sheet;
|
|
65052
65052
|
let pos = 0, j = 0;
|
|
65053
65053
|
for (let i2 = 0; i2 < modules.length; i2++) {
|
|
65054
|
-
let mod = modules[i2],
|
|
65055
|
-
if (
|
|
65056
|
-
this.modules.splice(
|
|
65054
|
+
let mod = modules[i2], index3 = this.modules.indexOf(mod);
|
|
65055
|
+
if (index3 < j && index3 > -1) {
|
|
65056
|
+
this.modules.splice(index3, 1);
|
|
65057
65057
|
j--;
|
|
65058
|
-
|
|
65058
|
+
index3 = -1;
|
|
65059
65059
|
}
|
|
65060
|
-
if (
|
|
65060
|
+
if (index3 == -1) {
|
|
65061
65061
|
this.modules.splice(j++, 0, mod);
|
|
65062
65062
|
if (sheet) for (let k4 = 0; k4 < mod.rules.length; k4++)
|
|
65063
65063
|
sheet.insertRule(mod.rules[k4], pos++);
|
|
65064
65064
|
} else {
|
|
65065
|
-
while (j <
|
|
65065
|
+
while (j < index3) pos += this.modules[j++].rules.length;
|
|
65066
65066
|
pos += mod.rules.length;
|
|
65067
65067
|
j++;
|
|
65068
65068
|
}
|
|
@@ -65315,10 +65315,10 @@ function isEquivalentPosition(node, off, targetNode, targetOff) {
|
|
|
65315
65315
|
return targetNode ? scanFor(node, off, targetNode, targetOff, -1) || scanFor(node, off, targetNode, targetOff, 1) : false;
|
|
65316
65316
|
}
|
|
65317
65317
|
function domIndex(node) {
|
|
65318
|
-
for (var
|
|
65318
|
+
for (var index3 = 0; ; index3++) {
|
|
65319
65319
|
node = node.previousSibling;
|
|
65320
65320
|
if (!node)
|
|
65321
|
-
return
|
|
65321
|
+
return index3;
|
|
65322
65322
|
}
|
|
65323
65323
|
}
|
|
65324
65324
|
function isBlockElement(node) {
|
|
@@ -67388,14 +67388,14 @@ var init_dist4 = __esm({
|
|
|
67388
67388
|
/**
|
|
67389
67389
|
@internal
|
|
67390
67390
|
*/
|
|
67391
|
-
static find(order,
|
|
67391
|
+
static find(order, index3, level, assoc) {
|
|
67392
67392
|
let maybe = -1;
|
|
67393
67393
|
for (let i2 = 0; i2 < order.length; i2++) {
|
|
67394
67394
|
let span = order[i2];
|
|
67395
|
-
if (span.from <=
|
|
67395
|
+
if (span.from <= index3 && span.to >= index3) {
|
|
67396
67396
|
if (span.level == level)
|
|
67397
67397
|
return i2;
|
|
67398
|
-
if (maybe < 0 || (assoc != 0 ? assoc < 0 ? span.from <
|
|
67398
|
+
if (maybe < 0 || (assoc != 0 ? assoc < 0 ? span.from < index3 : span.to > index3 : order[maybe].level > span.level))
|
|
67399
67399
|
maybe = i2;
|
|
67400
67400
|
}
|
|
67401
67401
|
}
|
|
@@ -67772,9 +67772,9 @@ var init_dist4 = __esm({
|
|
|
67772
67772
|
return null;
|
|
67773
67773
|
}
|
|
67774
67774
|
domPosFor(off, side) {
|
|
67775
|
-
let
|
|
67775
|
+
let index3 = domIndex(this.dom);
|
|
67776
67776
|
let after = this.length ? off > 0 : side > 0;
|
|
67777
|
-
return new DOMPos(this.parent.dom,
|
|
67777
|
+
return new DOMPos(this.parent.dom, index3 + (after ? 1 : 0), off == 0 || off == this.length);
|
|
67778
67778
|
}
|
|
67779
67779
|
markDirty(attrs) {
|
|
67780
67780
|
this.flags &= ~2;
|
|
@@ -68174,21 +68174,21 @@ var init_dist4 = __esm({
|
|
|
68174
68174
|
// has been traversed. When side is 1, leave, enter, or skip
|
|
68175
68175
|
// everything at the end position.
|
|
68176
68176
|
advance(dist2, side, walker) {
|
|
68177
|
-
let { tile, index:
|
|
68177
|
+
let { tile, index: index3, beforeBreak, parents } = this;
|
|
68178
68178
|
while (dist2 || side > 0) {
|
|
68179
68179
|
if (!tile.isComposite()) {
|
|
68180
|
-
if (
|
|
68180
|
+
if (index3 == tile.length) {
|
|
68181
68181
|
beforeBreak = !!tile.breakAfter;
|
|
68182
|
-
({ tile, index:
|
|
68183
|
-
|
|
68182
|
+
({ tile, index: index3 } = parents.pop());
|
|
68183
|
+
index3++;
|
|
68184
68184
|
} else if (!dist2) {
|
|
68185
68185
|
break;
|
|
68186
68186
|
} else {
|
|
68187
|
-
let take = Math.min(dist2, tile.length -
|
|
68187
|
+
let take = Math.min(dist2, tile.length - index3);
|
|
68188
68188
|
if (walker)
|
|
68189
|
-
walker.skip(tile,
|
|
68189
|
+
walker.skip(tile, index3, index3 + take);
|
|
68190
68190
|
dist2 -= take;
|
|
68191
|
-
|
|
68191
|
+
index3 += take;
|
|
68192
68192
|
}
|
|
68193
68193
|
} else if (beforeBreak) {
|
|
68194
68194
|
if (!dist2)
|
|
@@ -68197,31 +68197,31 @@ var init_dist4 = __esm({
|
|
|
68197
68197
|
walker.break();
|
|
68198
68198
|
dist2--;
|
|
68199
68199
|
beforeBreak = false;
|
|
68200
|
-
} else if (
|
|
68200
|
+
} else if (index3 == tile.children.length) {
|
|
68201
68201
|
if (!dist2 && !parents.length)
|
|
68202
68202
|
break;
|
|
68203
68203
|
if (walker)
|
|
68204
68204
|
walker.leave(tile);
|
|
68205
68205
|
beforeBreak = !!tile.breakAfter;
|
|
68206
|
-
({ tile, index:
|
|
68207
|
-
|
|
68206
|
+
({ tile, index: index3 } = parents.pop());
|
|
68207
|
+
index3++;
|
|
68208
68208
|
} else {
|
|
68209
|
-
let next = tile.children[
|
|
68209
|
+
let next = tile.children[index3], brk = next.breakAfter;
|
|
68210
68210
|
if ((side > 0 ? next.length <= dist2 : next.length < dist2) && (!walker || walker.skip(next, 0, next.length) !== false || !next.isComposite)) {
|
|
68211
68211
|
beforeBreak = !!brk;
|
|
68212
|
-
|
|
68212
|
+
index3++;
|
|
68213
68213
|
dist2 -= next.length;
|
|
68214
68214
|
} else {
|
|
68215
|
-
parents.push({ tile, index:
|
|
68215
|
+
parents.push({ tile, index: index3 });
|
|
68216
68216
|
tile = next;
|
|
68217
|
-
|
|
68217
|
+
index3 = 0;
|
|
68218
68218
|
if (walker && next.isComposite())
|
|
68219
68219
|
walker.enter(next);
|
|
68220
68220
|
}
|
|
68221
68221
|
}
|
|
68222
68222
|
}
|
|
68223
68223
|
this.tile = tile;
|
|
68224
|
-
this.index =
|
|
68224
|
+
this.index = index3;
|
|
68225
68225
|
this.beforeBreak = beforeBreak;
|
|
68226
68226
|
return this;
|
|
68227
68227
|
}
|
|
@@ -68518,10 +68518,10 @@ var init_dist4 = __esm({
|
|
|
68518
68518
|
let i2 = cls.bucket;
|
|
68519
68519
|
let bucket = this.buckets[i2], off = this.index[i2];
|
|
68520
68520
|
for (let j = bucket.length - 1; j >= 0; j--) {
|
|
68521
|
-
let
|
|
68521
|
+
let index3 = (j + off) % bucket.length, tile = bucket[index3];
|
|
68522
68522
|
if ((!test || test(tile)) && !this.reused.has(tile)) {
|
|
68523
|
-
bucket.splice(
|
|
68524
|
-
if (
|
|
68523
|
+
bucket.splice(index3, 1);
|
|
68524
|
+
if (index3 < off)
|
|
68525
68525
|
this.index[i2]--;
|
|
68526
68526
|
this.reused.set(tile, type);
|
|
68527
68527
|
return tile;
|
|
@@ -68723,9 +68723,9 @@ var init_dist4 = __esm({
|
|
|
68723
68723
|
let pendingLineAttrs = null;
|
|
68724
68724
|
let b10 = this.builder, markCount = 0;
|
|
68725
68725
|
let openEnd = RangeSet.spans(this.decorations, from, to, {
|
|
68726
|
-
point: (from2, to2, deco, active, openStart,
|
|
68726
|
+
point: (from2, to2, deco, active, openStart, index3) => {
|
|
68727
68727
|
if (deco instanceof PointDecoration) {
|
|
68728
|
-
if (this.disallowBlockEffectsFor[
|
|
68728
|
+
if (this.disallowBlockEffectsFor[index3]) {
|
|
68729
68729
|
if (deco.block)
|
|
68730
68730
|
throw new RangeError("Block decorations may not be specified via plugins");
|
|
68731
68731
|
if (to2 > this.view.state.doc.lineAt(from2).to)
|
|
@@ -73525,9 +73525,9 @@ function buildTree(data) {
|
|
|
73525
73525
|
let startPos = start - parentStart;
|
|
73526
73526
|
if (end - start <= maxBufferLength && (buffer2 = findBufferSize(cursor.pos - minPos, inRepeat))) {
|
|
73527
73527
|
let data2 = new Uint16Array(buffer2.size - buffer2.skip);
|
|
73528
|
-
let endPos = cursor.pos - buffer2.size,
|
|
73528
|
+
let endPos = cursor.pos - buffer2.size, index3 = data2.length;
|
|
73529
73529
|
while (cursor.pos > endPos)
|
|
73530
|
-
|
|
73530
|
+
index3 = copyToBuffer(buffer2.start, data2, index3);
|
|
73531
73531
|
node = new TreeBuffer(data2, end - buffer2.start, nodeSet);
|
|
73532
73532
|
startPos = buffer2.start - parentStart;
|
|
73533
73533
|
} else {
|
|
@@ -73669,26 +73669,26 @@ function buildTree(data) {
|
|
|
73669
73669
|
}
|
|
73670
73670
|
return result.size > 4 ? result : void 0;
|
|
73671
73671
|
}
|
|
73672
|
-
function copyToBuffer(bufferStart, buffer2,
|
|
73672
|
+
function copyToBuffer(bufferStart, buffer2, index3) {
|
|
73673
73673
|
let { id, start, end, size: size4 } = cursor;
|
|
73674
73674
|
cursor.next();
|
|
73675
73675
|
if (size4 >= 0 && id < minRepeatType) {
|
|
73676
|
-
let startIndex =
|
|
73676
|
+
let startIndex = index3;
|
|
73677
73677
|
if (size4 > 4) {
|
|
73678
73678
|
let endPos = cursor.pos - (size4 - 4);
|
|
73679
73679
|
while (cursor.pos > endPos)
|
|
73680
|
-
|
|
73680
|
+
index3 = copyToBuffer(bufferStart, buffer2, index3);
|
|
73681
73681
|
}
|
|
73682
|
-
buffer2[--
|
|
73683
|
-
buffer2[--
|
|
73684
|
-
buffer2[--
|
|
73685
|
-
buffer2[--
|
|
73682
|
+
buffer2[--index3] = startIndex;
|
|
73683
|
+
buffer2[--index3] = end - bufferStart;
|
|
73684
|
+
buffer2[--index3] = start - bufferStart;
|
|
73685
|
+
buffer2[--index3] = id;
|
|
73686
73686
|
} else if (size4 == -3) {
|
|
73687
73687
|
contextHash = id;
|
|
73688
73688
|
} else if (size4 == -4) {
|
|
73689
73689
|
lookAhead = id;
|
|
73690
73690
|
}
|
|
73691
|
-
return
|
|
73691
|
+
return index3;
|
|
73692
73692
|
}
|
|
73693
73693
|
let children = [], positions = [];
|
|
73694
73694
|
while (cursor.pos > 0)
|
|
@@ -74094,9 +74094,9 @@ var init_dist5 = __esm({
|
|
|
74094
74094
|
};
|
|
74095
74095
|
Tree.empty = new Tree(NodeType.none, [], [], 0);
|
|
74096
74096
|
FlatBufferCursor = class _FlatBufferCursor {
|
|
74097
|
-
constructor(buffer,
|
|
74097
|
+
constructor(buffer, index3) {
|
|
74098
74098
|
this.buffer = buffer;
|
|
74099
|
-
this.index =
|
|
74099
|
+
this.index = index3;
|
|
74100
74100
|
}
|
|
74101
74101
|
get id() {
|
|
74102
74102
|
return this.buffer[this.index - 4];
|
|
@@ -74140,27 +74140,27 @@ var init_dist5 = __esm({
|
|
|
74140
74140
|
*/
|
|
74141
74141
|
toString() {
|
|
74142
74142
|
let result = [];
|
|
74143
|
-
for (let
|
|
74144
|
-
result.push(this.childString(
|
|
74145
|
-
|
|
74143
|
+
for (let index3 = 0; index3 < this.buffer.length; ) {
|
|
74144
|
+
result.push(this.childString(index3));
|
|
74145
|
+
index3 = this.buffer[index3 + 3];
|
|
74146
74146
|
}
|
|
74147
74147
|
return result.join(",");
|
|
74148
74148
|
}
|
|
74149
74149
|
/**
|
|
74150
74150
|
@internal
|
|
74151
74151
|
*/
|
|
74152
|
-
childString(
|
|
74153
|
-
let id = this.buffer[
|
|
74152
|
+
childString(index3) {
|
|
74153
|
+
let id = this.buffer[index3], endIndex = this.buffer[index3 + 3];
|
|
74154
74154
|
let type = this.set.types[id], result = type.name;
|
|
74155
74155
|
if (/\W/.test(result) && !type.isError)
|
|
74156
74156
|
result = JSON.stringify(result);
|
|
74157
|
-
|
|
74158
|
-
if (endIndex ==
|
|
74157
|
+
index3 += 4;
|
|
74158
|
+
if (endIndex == index3)
|
|
74159
74159
|
return result;
|
|
74160
74160
|
let children = [];
|
|
74161
|
-
while (
|
|
74162
|
-
children.push(this.childString(
|
|
74163
|
-
|
|
74161
|
+
while (index3 < endIndex) {
|
|
74162
|
+
children.push(this.childString(index3));
|
|
74163
|
+
index3 = this.buffer[index3 + 3];
|
|
74164
74164
|
}
|
|
74165
74165
|
return result + "(" + children.join(",") + ")";
|
|
74166
74166
|
}
|
|
@@ -74237,11 +74237,11 @@ var init_dist5 = __esm({
|
|
|
74237
74237
|
}
|
|
74238
74238
|
};
|
|
74239
74239
|
TreeNode = class _TreeNode extends BaseNode {
|
|
74240
|
-
constructor(_tree, from,
|
|
74240
|
+
constructor(_tree, from, index3, _parent) {
|
|
74241
74241
|
super();
|
|
74242
74242
|
this._tree = _tree;
|
|
74243
74243
|
this.from = from;
|
|
74244
|
-
this.index =
|
|
74244
|
+
this.index = index3;
|
|
74245
74245
|
this._parent = _parent;
|
|
74246
74246
|
}
|
|
74247
74247
|
get type() {
|
|
@@ -74262,9 +74262,9 @@ var init_dist5 = __esm({
|
|
|
74262
74262
|
if (next instanceof TreeBuffer) {
|
|
74263
74263
|
if (mode & IterMode.ExcludeBuffers)
|
|
74264
74264
|
continue;
|
|
74265
|
-
let
|
|
74266
|
-
if (
|
|
74267
|
-
return new BufferNode(new BufferContext(parent, next, i2, start), null,
|
|
74265
|
+
let index3 = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
74266
|
+
if (index3 > -1)
|
|
74267
|
+
return new BufferNode(new BufferContext(parent, next, i2, start), null, index3);
|
|
74268
74268
|
} else if (mode & IterMode.IncludeAnonymous || (!next.type.isAnonymous || hasChild(next))) {
|
|
74269
74269
|
let mounted2;
|
|
74270
74270
|
if (!(mode & IterMode.IgnoreMounts) && (mounted2 = MountedTree.get(next)) && !mounted2.overlay)
|
|
@@ -74375,10 +74375,10 @@ var init_dist5 = __esm({
|
|
|
74375
74375
|
}
|
|
74376
74376
|
};
|
|
74377
74377
|
BufferContext = class {
|
|
74378
|
-
constructor(parent, buffer,
|
|
74378
|
+
constructor(parent, buffer, index3, start) {
|
|
74379
74379
|
this.parent = parent;
|
|
74380
74380
|
this.buffer = buffer;
|
|
74381
|
-
this.index =
|
|
74381
|
+
this.index = index3;
|
|
74382
74382
|
this.start = start;
|
|
74383
74383
|
}
|
|
74384
74384
|
};
|
|
@@ -74392,17 +74392,17 @@ var init_dist5 = __esm({
|
|
|
74392
74392
|
get to() {
|
|
74393
74393
|
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
74394
74394
|
}
|
|
74395
|
-
constructor(context, _parent,
|
|
74395
|
+
constructor(context, _parent, index3) {
|
|
74396
74396
|
super();
|
|
74397
74397
|
this.context = context;
|
|
74398
74398
|
this._parent = _parent;
|
|
74399
|
-
this.index =
|
|
74400
|
-
this.type = context.buffer.set.types[context.buffer.buffer[
|
|
74399
|
+
this.index = index3;
|
|
74400
|
+
this.type = context.buffer.set.types[context.buffer.buffer[index3]];
|
|
74401
74401
|
}
|
|
74402
74402
|
child(dir, pos, side) {
|
|
74403
74403
|
let { buffer } = this.context;
|
|
74404
|
-
let
|
|
74405
|
-
return
|
|
74404
|
+
let index3 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.context.start, side);
|
|
74405
|
+
return index3 < 0 ? null : new _BufferNode(this.context, this, index3);
|
|
74406
74406
|
}
|
|
74407
74407
|
get firstChild() {
|
|
74408
74408
|
return this.child(
|
|
@@ -74443,8 +74443,8 @@ var init_dist5 = __esm({
|
|
|
74443
74443
|
if (mode & IterMode.ExcludeBuffers)
|
|
74444
74444
|
return null;
|
|
74445
74445
|
let { buffer } = this.context;
|
|
74446
|
-
let
|
|
74447
|
-
return
|
|
74446
|
+
let index3 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], side > 0 ? 1 : -1, pos - this.context.start, side);
|
|
74447
|
+
return index3 < 0 ? null : new _BufferNode(this.context, this, index3);
|
|
74448
74448
|
}
|
|
74449
74449
|
get parent() {
|
|
74450
74450
|
return this._parent || this.context.parent.nextSignificantParent();
|
|
@@ -74545,12 +74545,12 @@ var init_dist5 = __esm({
|
|
|
74545
74545
|
this.to = node.to;
|
|
74546
74546
|
return true;
|
|
74547
74547
|
}
|
|
74548
|
-
yieldBuf(
|
|
74549
|
-
this.index =
|
|
74548
|
+
yieldBuf(index3, type) {
|
|
74549
|
+
this.index = index3;
|
|
74550
74550
|
let { start, buffer } = this.buffer;
|
|
74551
|
-
this.type = type || buffer.set.types[buffer.buffer[
|
|
74552
|
-
this.from = start + buffer.buffer[
|
|
74553
|
-
this.to = start + buffer.buffer[
|
|
74551
|
+
this.type = type || buffer.set.types[buffer.buffer[index3]];
|
|
74552
|
+
this.from = start + buffer.buffer[index3 + 1];
|
|
74553
|
+
this.to = start + buffer.buffer[index3 + 2];
|
|
74554
74554
|
return true;
|
|
74555
74555
|
}
|
|
74556
74556
|
/**
|
|
@@ -74579,11 +74579,11 @@ var init_dist5 = __esm({
|
|
|
74579
74579
|
if (!this.buffer)
|
|
74580
74580
|
return this.yield(this._tree.nextChild(dir < 0 ? this._tree._tree.children.length - 1 : 0, dir, pos, side, this.mode));
|
|
74581
74581
|
let { buffer } = this.buffer;
|
|
74582
|
-
let
|
|
74583
|
-
if (
|
|
74582
|
+
let index3 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.buffer.start, side);
|
|
74583
|
+
if (index3 < 0)
|
|
74584
74584
|
return false;
|
|
74585
74585
|
this.stack.push(this.index);
|
|
74586
|
-
return this.yieldBuf(
|
|
74586
|
+
return this.yieldBuf(index3);
|
|
74587
74587
|
}
|
|
74588
74588
|
/**
|
|
74589
74589
|
Move the cursor to this node's first child. When this returns
|
|
@@ -74692,7 +74692,7 @@ var init_dist5 = __esm({
|
|
|
74692
74692
|
return this.sibling(-1);
|
|
74693
74693
|
}
|
|
74694
74694
|
atLastNode(dir) {
|
|
74695
|
-
let
|
|
74695
|
+
let index3, parent, { buffer } = this;
|
|
74696
74696
|
if (buffer) {
|
|
74697
74697
|
if (dir > 0) {
|
|
74698
74698
|
if (this.index < buffer.buffer.buffer.length)
|
|
@@ -74702,13 +74702,13 @@ var init_dist5 = __esm({
|
|
|
74702
74702
|
if (buffer.buffer.buffer[i2 + 3] < this.index)
|
|
74703
74703
|
return false;
|
|
74704
74704
|
}
|
|
74705
|
-
({ index:
|
|
74705
|
+
({ index: index3, parent } = buffer);
|
|
74706
74706
|
} else {
|
|
74707
|
-
({ index:
|
|
74707
|
+
({ index: index3, _parent: parent } = this._tree);
|
|
74708
74708
|
}
|
|
74709
|
-
for (; parent; { index:
|
|
74710
|
-
if (
|
|
74711
|
-
for (let i2 =
|
|
74709
|
+
for (; parent; { index: index3, _parent: parent } = parent) {
|
|
74710
|
+
if (index3 > -1)
|
|
74711
|
+
for (let i2 = index3 + dir, e2 = dir < 0 ? -1 : parent._tree.children.length; i2 != e2; i2 += dir) {
|
|
74712
74712
|
let child = parent._tree.children[i2];
|
|
74713
74713
|
if (this.mode & IterMode.IncludeAnonymous || child instanceof TreeBuffer || !child.type.isAnonymous || hasChild(child))
|
|
74714
74714
|
return false;
|
|
@@ -74772,16 +74772,16 @@ var init_dist5 = __esm({
|
|
|
74772
74772
|
return this._tree;
|
|
74773
74773
|
let cache = this.bufferNode, result = null, depth = 0;
|
|
74774
74774
|
if (cache && cache.context == this.buffer) {
|
|
74775
|
-
scan: for (let
|
|
74775
|
+
scan: for (let index3 = this.index, d = this.stack.length; d >= 0; ) {
|
|
74776
74776
|
for (let c2 = cache; c2; c2 = c2._parent)
|
|
74777
|
-
if (c2.index ==
|
|
74778
|
-
if (
|
|
74777
|
+
if (c2.index == index3) {
|
|
74778
|
+
if (index3 == this.index)
|
|
74779
74779
|
return c2;
|
|
74780
74780
|
result = c2;
|
|
74781
74781
|
depth = d + 1;
|
|
74782
74782
|
break scan;
|
|
74783
74783
|
}
|
|
74784
|
-
|
|
74784
|
+
index3 = this.stack[--d];
|
|
74785
74785
|
}
|
|
74786
74786
|
}
|
|
74787
74787
|
for (let i2 = depth; i2 < this.stack.length; i2++)
|
|
@@ -78412,8 +78412,8 @@ var require_core_cjs_development = __commonJS({
|
|
|
78412
78412
|
const rect = droppableRects.get(id);
|
|
78413
78413
|
if (rect) {
|
|
78414
78414
|
const rectCorners = cornersOfRectangle(rect);
|
|
78415
|
-
const distances = corners.reduce((accumulator, corner,
|
|
78416
|
-
return accumulator + distanceBetween(rectCorners[
|
|
78415
|
+
const distances = corners.reduce((accumulator, corner, index3) => {
|
|
78416
|
+
return accumulator + distanceBetween(rectCorners[index3], corner);
|
|
78417
78417
|
}, 0);
|
|
78418
78418
|
const effectiveDistance = Number((distances / 4).toFixed(4));
|
|
78419
78419
|
collisions.push({
|
|
@@ -79614,8 +79614,8 @@ var require_core_cjs_development = __commonJS({
|
|
|
79614
79614
|
if ((canScroll == null ? void 0 : canScroll(scrollContainer)) === false) {
|
|
79615
79615
|
continue;
|
|
79616
79616
|
}
|
|
79617
|
-
const
|
|
79618
|
-
const scrollContainerRect = scrollableAncestorRects[
|
|
79617
|
+
const index3 = scrollableAncestors.indexOf(scrollContainer);
|
|
79618
|
+
const scrollContainerRect = scrollableAncestorRects[index3];
|
|
79619
79619
|
if (!scrollContainerRect) {
|
|
79620
79620
|
continue;
|
|
79621
79621
|
}
|
|
@@ -81800,16 +81800,16 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81800
81800
|
return newArray;
|
|
81801
81801
|
}
|
|
81802
81802
|
function getSortedRects(items, rects) {
|
|
81803
|
-
return items.reduce((accumulator, id,
|
|
81803
|
+
return items.reduce((accumulator, id, index3) => {
|
|
81804
81804
|
const rect = rects.get(id);
|
|
81805
81805
|
if (rect) {
|
|
81806
|
-
accumulator[
|
|
81806
|
+
accumulator[index3] = rect;
|
|
81807
81807
|
}
|
|
81808
81808
|
return accumulator;
|
|
81809
81809
|
}, Array(items.length));
|
|
81810
81810
|
}
|
|
81811
|
-
function isValidIndex(
|
|
81812
|
-
return
|
|
81811
|
+
function isValidIndex(index3) {
|
|
81812
|
+
return index3 !== null && index3 >= 0;
|
|
81813
81813
|
}
|
|
81814
81814
|
function itemsEqual(a6, b10) {
|
|
81815
81815
|
if (a6 === b10) {
|
|
@@ -81845,14 +81845,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81845
81845
|
activeNodeRect: fallbackActiveRect,
|
|
81846
81846
|
activeIndex,
|
|
81847
81847
|
overIndex,
|
|
81848
|
-
index:
|
|
81848
|
+
index: index3
|
|
81849
81849
|
} = _ref;
|
|
81850
81850
|
const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;
|
|
81851
81851
|
if (!activeNodeRect) {
|
|
81852
81852
|
return null;
|
|
81853
81853
|
}
|
|
81854
|
-
const itemGap = getItemGap(rects,
|
|
81855
|
-
if (
|
|
81854
|
+
const itemGap = getItemGap(rects, index3, activeIndex);
|
|
81855
|
+
if (index3 === activeIndex) {
|
|
81856
81856
|
const newIndexRect = rects[overIndex];
|
|
81857
81857
|
if (!newIndexRect) {
|
|
81858
81858
|
return null;
|
|
@@ -81863,14 +81863,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81863
81863
|
...defaultScale
|
|
81864
81864
|
};
|
|
81865
81865
|
}
|
|
81866
|
-
if (
|
|
81866
|
+
if (index3 > activeIndex && index3 <= overIndex) {
|
|
81867
81867
|
return {
|
|
81868
81868
|
x: -activeNodeRect.width - itemGap,
|
|
81869
81869
|
y: 0,
|
|
81870
81870
|
...defaultScale
|
|
81871
81871
|
};
|
|
81872
81872
|
}
|
|
81873
|
-
if (
|
|
81873
|
+
if (index3 < activeIndex && index3 >= overIndex) {
|
|
81874
81874
|
return {
|
|
81875
81875
|
x: activeNodeRect.width + itemGap,
|
|
81876
81876
|
y: 0,
|
|
@@ -81883,14 +81883,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81883
81883
|
...defaultScale
|
|
81884
81884
|
};
|
|
81885
81885
|
};
|
|
81886
|
-
function getItemGap(rects,
|
|
81887
|
-
const currentRect = rects[
|
|
81888
|
-
const previousRect = rects[
|
|
81889
|
-
const nextRect = rects[
|
|
81886
|
+
function getItemGap(rects, index3, activeIndex) {
|
|
81887
|
+
const currentRect = rects[index3];
|
|
81888
|
+
const previousRect = rects[index3 - 1];
|
|
81889
|
+
const nextRect = rects[index3 + 1];
|
|
81890
81890
|
if (!currentRect || !previousRect && !nextRect) {
|
|
81891
81891
|
return 0;
|
|
81892
81892
|
}
|
|
81893
|
-
if (activeIndex <
|
|
81893
|
+
if (activeIndex < index3) {
|
|
81894
81894
|
return previousRect ? currentRect.left - (previousRect.left + previousRect.width) : nextRect.left - (currentRect.left + currentRect.width);
|
|
81895
81895
|
}
|
|
81896
81896
|
return nextRect ? nextRect.left - (currentRect.left + currentRect.width) : currentRect.left - (previousRect.left + previousRect.width);
|
|
@@ -81900,11 +81900,11 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81900
81900
|
rects,
|
|
81901
81901
|
activeIndex,
|
|
81902
81902
|
overIndex,
|
|
81903
|
-
index:
|
|
81903
|
+
index: index3
|
|
81904
81904
|
} = _ref;
|
|
81905
81905
|
const newRects = arrayMove2(rects, overIndex, activeIndex);
|
|
81906
|
-
const oldRect = rects[
|
|
81907
|
-
const newRect = newRects[
|
|
81906
|
+
const oldRect = rects[index3];
|
|
81907
|
+
const newRect = newRects[index3];
|
|
81908
81908
|
if (!newRect || !oldRect) {
|
|
81909
81909
|
return null;
|
|
81910
81910
|
}
|
|
@@ -81918,18 +81918,18 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81918
81918
|
var rectSwappingStrategy = (_ref) => {
|
|
81919
81919
|
let {
|
|
81920
81920
|
activeIndex,
|
|
81921
|
-
index:
|
|
81921
|
+
index: index3,
|
|
81922
81922
|
rects,
|
|
81923
81923
|
overIndex
|
|
81924
81924
|
} = _ref;
|
|
81925
81925
|
let oldRect;
|
|
81926
81926
|
let newRect;
|
|
81927
|
-
if (
|
|
81928
|
-
oldRect = rects[
|
|
81927
|
+
if (index3 === activeIndex) {
|
|
81928
|
+
oldRect = rects[index3];
|
|
81929
81929
|
newRect = rects[overIndex];
|
|
81930
81930
|
}
|
|
81931
|
-
if (
|
|
81932
|
-
oldRect = rects[
|
|
81931
|
+
if (index3 === overIndex) {
|
|
81932
|
+
oldRect = rects[index3];
|
|
81933
81933
|
newRect = rects[activeIndex];
|
|
81934
81934
|
}
|
|
81935
81935
|
if (!newRect || !oldRect) {
|
|
@@ -81951,7 +81951,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81951
81951
|
let {
|
|
81952
81952
|
activeIndex,
|
|
81953
81953
|
activeNodeRect: fallbackActiveRect,
|
|
81954
|
-
index:
|
|
81954
|
+
index: index3,
|
|
81955
81955
|
rects,
|
|
81956
81956
|
overIndex
|
|
81957
81957
|
} = _ref;
|
|
@@ -81959,7 +81959,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81959
81959
|
if (!activeNodeRect) {
|
|
81960
81960
|
return null;
|
|
81961
81961
|
}
|
|
81962
|
-
if (
|
|
81962
|
+
if (index3 === activeIndex) {
|
|
81963
81963
|
const overIndexRect = rects[overIndex];
|
|
81964
81964
|
if (!overIndexRect) {
|
|
81965
81965
|
return null;
|
|
@@ -81970,15 +81970,15 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81970
81970
|
...defaultScale$1
|
|
81971
81971
|
};
|
|
81972
81972
|
}
|
|
81973
|
-
const itemGap = getItemGap$1(rects,
|
|
81974
|
-
if (
|
|
81973
|
+
const itemGap = getItemGap$1(rects, index3, activeIndex);
|
|
81974
|
+
if (index3 > activeIndex && index3 <= overIndex) {
|
|
81975
81975
|
return {
|
|
81976
81976
|
x: 0,
|
|
81977
81977
|
y: -activeNodeRect.height - itemGap,
|
|
81978
81978
|
...defaultScale$1
|
|
81979
81979
|
};
|
|
81980
81980
|
}
|
|
81981
|
-
if (
|
|
81981
|
+
if (index3 < activeIndex && index3 >= overIndex) {
|
|
81982
81982
|
return {
|
|
81983
81983
|
x: 0,
|
|
81984
81984
|
y: activeNodeRect.height + itemGap,
|
|
@@ -81991,14 +81991,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
81991
81991
|
...defaultScale$1
|
|
81992
81992
|
};
|
|
81993
81993
|
};
|
|
81994
|
-
function getItemGap$1(clientRects,
|
|
81995
|
-
const currentRect = clientRects[
|
|
81996
|
-
const previousRect = clientRects[
|
|
81997
|
-
const nextRect = clientRects[
|
|
81994
|
+
function getItemGap$1(clientRects, index3, activeIndex) {
|
|
81995
|
+
const currentRect = clientRects[index3];
|
|
81996
|
+
const previousRect = clientRects[index3 - 1];
|
|
81997
|
+
const nextRect = clientRects[index3 + 1];
|
|
81998
81998
|
if (!currentRect) {
|
|
81999
81999
|
return 0;
|
|
82000
82000
|
}
|
|
82001
|
-
if (activeIndex <
|
|
82001
|
+
if (activeIndex < index3) {
|
|
82002
82002
|
return previousRect ? currentRect.top - (previousRect.top + previousRect.height) : nextRect ? nextRect.top - (currentRect.top + currentRect.height) : 0;
|
|
82003
82003
|
}
|
|
82004
82004
|
return nextRect ? nextRect.top - (currentRect.top + currentRect.height) : previousRect ? currentRect.top - (previousRect.top + previousRect.height) : 0;
|
|
@@ -82084,7 +82084,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82084
82084
|
containerId,
|
|
82085
82085
|
isSorting,
|
|
82086
82086
|
wasDragging,
|
|
82087
|
-
index:
|
|
82087
|
+
index: index3,
|
|
82088
82088
|
items,
|
|
82089
82089
|
newIndex,
|
|
82090
82090
|
previousItems,
|
|
@@ -82094,13 +82094,13 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82094
82094
|
if (!transition || !wasDragging) {
|
|
82095
82095
|
return false;
|
|
82096
82096
|
}
|
|
82097
|
-
if (previousItems !== items &&
|
|
82097
|
+
if (previousItems !== items && index3 === newIndex) {
|
|
82098
82098
|
return false;
|
|
82099
82099
|
}
|
|
82100
82100
|
if (isSorting) {
|
|
82101
82101
|
return true;
|
|
82102
82102
|
}
|
|
82103
|
-
return newIndex !==
|
|
82103
|
+
return newIndex !== index3 && containerId === previousContainerId;
|
|
82104
82104
|
};
|
|
82105
82105
|
var defaultTransition = {
|
|
82106
82106
|
duration: 200,
|
|
@@ -82118,14 +82118,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82118
82118
|
function useDerivedTransform(_ref) {
|
|
82119
82119
|
let {
|
|
82120
82120
|
disabled,
|
|
82121
|
-
index:
|
|
82121
|
+
index: index3,
|
|
82122
82122
|
node,
|
|
82123
82123
|
rect
|
|
82124
82124
|
} = _ref;
|
|
82125
82125
|
const [derivedTransform, setDerivedtransform] = React33.useState(null);
|
|
82126
|
-
const previousIndex = React33.useRef(
|
|
82126
|
+
const previousIndex = React33.useRef(index3);
|
|
82127
82127
|
utilities.useIsomorphicLayoutEffect(() => {
|
|
82128
|
-
if (!disabled &&
|
|
82128
|
+
if (!disabled && index3 !== previousIndex.current && node.current) {
|
|
82129
82129
|
const initial = rect.current;
|
|
82130
82130
|
if (initial) {
|
|
82131
82131
|
const current = core.getClientRect(node.current, {
|
|
@@ -82142,10 +82142,10 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82142
82142
|
}
|
|
82143
82143
|
}
|
|
82144
82144
|
}
|
|
82145
|
-
if (
|
|
82146
|
-
previousIndex.current =
|
|
82145
|
+
if (index3 !== previousIndex.current) {
|
|
82146
|
+
previousIndex.current = index3;
|
|
82147
82147
|
}
|
|
82148
|
-
}, [disabled,
|
|
82148
|
+
}, [disabled, index3, node, rect]);
|
|
82149
82149
|
React33.useEffect(() => {
|
|
82150
82150
|
if (derivedTransform) {
|
|
82151
82151
|
setDerivedtransform(null);
|
|
@@ -82177,15 +82177,15 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82177
82177
|
strategy: globalStrategy
|
|
82178
82178
|
} = React33.useContext(Context);
|
|
82179
82179
|
const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);
|
|
82180
|
-
const
|
|
82180
|
+
const index3 = items.indexOf(id);
|
|
82181
82181
|
const data = React33.useMemo(() => ({
|
|
82182
82182
|
sortable: {
|
|
82183
82183
|
containerId,
|
|
82184
|
-
index:
|
|
82184
|
+
index: index3,
|
|
82185
82185
|
items
|
|
82186
82186
|
},
|
|
82187
82187
|
...customData
|
|
82188
|
-
}), [containerId, customData,
|
|
82188
|
+
}), [containerId, customData, index3, items]);
|
|
82189
82189
|
const itemsAfterCurrentSortable = React33.useMemo(() => items.slice(items.indexOf(id)), [items, id]);
|
|
82190
82190
|
const {
|
|
82191
82191
|
rect,
|
|
@@ -82232,14 +82232,14 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82232
82232
|
activeNodeRect,
|
|
82233
82233
|
activeIndex,
|
|
82234
82234
|
overIndex,
|
|
82235
|
-
index:
|
|
82235
|
+
index: index3
|
|
82236
82236
|
}) : null;
|
|
82237
82237
|
const newIndex = isValidIndex(activeIndex) && isValidIndex(overIndex) ? getNewIndex({
|
|
82238
82238
|
id,
|
|
82239
82239
|
items,
|
|
82240
82240
|
activeIndex,
|
|
82241
82241
|
overIndex
|
|
82242
|
-
}) :
|
|
82242
|
+
}) : index3;
|
|
82243
82243
|
const activeId = active == null ? void 0 : active.id;
|
|
82244
82244
|
const previous = React33.useRef({
|
|
82245
82245
|
activeId,
|
|
@@ -82254,7 +82254,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82254
82254
|
isDragging,
|
|
82255
82255
|
isSorting,
|
|
82256
82256
|
id,
|
|
82257
|
-
index:
|
|
82257
|
+
index: index3,
|
|
82258
82258
|
items,
|
|
82259
82259
|
newIndex: previous.current.newIndex,
|
|
82260
82260
|
previousItems: previous.current.items,
|
|
@@ -82264,7 +82264,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82264
82264
|
});
|
|
82265
82265
|
const derivedTransform = useDerivedTransform({
|
|
82266
82266
|
disabled: !shouldAnimateLayoutChanges,
|
|
82267
|
-
index:
|
|
82267
|
+
index: index3,
|
|
82268
82268
|
node,
|
|
82269
82269
|
rect
|
|
82270
82270
|
});
|
|
@@ -82298,7 +82298,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82298
82298
|
attributes,
|
|
82299
82299
|
data,
|
|
82300
82300
|
rect,
|
|
82301
|
-
index:
|
|
82301
|
+
index: index3,
|
|
82302
82302
|
newIndex,
|
|
82303
82303
|
items,
|
|
82304
82304
|
isOver,
|
|
@@ -82319,7 +82319,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82319
82319
|
if (
|
|
82320
82320
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
82321
82321
|
derivedTransform || // Or to prevent items jumping to back to their "new" position when items change
|
|
82322
|
-
itemsHaveChanged && previous.current.newIndex ===
|
|
82322
|
+
itemsHaveChanged && previous.current.newIndex === index3
|
|
82323
82323
|
) {
|
|
82324
82324
|
return disabledTransition;
|
|
82325
82325
|
}
|
|
@@ -82426,7 +82426,7 @@ var require_sortable_cjs_development = __commonJS({
|
|
|
82426
82426
|
const newNode = newDroppable == null ? void 0 : newDroppable.node.current;
|
|
82427
82427
|
if (newNode && newRect && activeDroppable && newDroppable) {
|
|
82428
82428
|
const newScrollAncestors = core.getScrollableAncestors(newNode);
|
|
82429
|
-
const hasDifferentScrollAncestors = newScrollAncestors.some((element,
|
|
82429
|
+
const hasDifferentScrollAncestors = newScrollAncestors.some((element, index3) => scrollableAncestors[index3] !== element);
|
|
82430
82430
|
const hasSameContainer = isSameContainer(activeDroppable, newDroppable);
|
|
82431
82431
|
const isAfterActive = isAfter(activeDroppable, newDroppable);
|
|
82432
82432
|
const offset4 = hasDifferentScrollAncestors || !hasSameContainer ? {
|
|
@@ -89961,21 +89961,21 @@ var jsonContentTypeHandler = {
|
|
|
89961
89961
|
message: '"input" needs to be an object when doing a batch call'
|
|
89962
89962
|
});
|
|
89963
89963
|
const acc = emptyObject();
|
|
89964
|
-
for (const
|
|
89965
|
-
const input = inputs[
|
|
89966
|
-
if (input !== void 0) acc[
|
|
89964
|
+
for (const index3 of paths.keys()) {
|
|
89965
|
+
const input = inputs[index3];
|
|
89966
|
+
if (input !== void 0) acc[index3] = opts.router._def._config.transformer.input.deserialize(input);
|
|
89967
89967
|
}
|
|
89968
89968
|
return acc;
|
|
89969
89969
|
});
|
|
89970
|
-
const calls = await Promise.all(paths.map(async (path3,
|
|
89970
|
+
const calls = await Promise.all(paths.map(async (path3, index3) => {
|
|
89971
89971
|
const procedure = await getProcedureAtPath(opts.router, path3);
|
|
89972
89972
|
return {
|
|
89973
|
-
batchIndex:
|
|
89973
|
+
batchIndex: index3,
|
|
89974
89974
|
path: path3,
|
|
89975
89975
|
procedure,
|
|
89976
89976
|
getRawInput: async () => {
|
|
89977
89977
|
const inputs = await getInputs.read();
|
|
89978
|
-
let input = inputs[
|
|
89978
|
+
let input = inputs[index3];
|
|
89979
89979
|
if ((procedure === null || procedure === void 0 ? void 0 : procedure._def.type) === "subscription") {
|
|
89980
89980
|
var _ref, _opts$headers$get;
|
|
89981
89981
|
const lastEventId = (_ref = (_opts$headers$get = opts.headers.get("last-event-id")) !== null && _opts$headers$get !== void 0 ? _opts$headers$get : opts.searchParams.get("lastEventId")) !== null && _ref !== void 0 ? _ref : opts.searchParams.get("Last-Event-Id");
|
|
@@ -89989,7 +89989,7 @@ var jsonContentTypeHandler = {
|
|
|
89989
89989
|
},
|
|
89990
89990
|
result: () => {
|
|
89991
89991
|
var _getInputs$result;
|
|
89992
|
-
return (_getInputs$result = getInputs.result()) === null || _getInputs$result === void 0 ? void 0 : _getInputs$result[
|
|
89992
|
+
return (_getInputs$result = getInputs.result()) === null || _getInputs$result === void 0 ? void 0 : _getInputs$result[index3];
|
|
89993
89993
|
}
|
|
89994
89994
|
};
|
|
89995
89995
|
}));
|
|
@@ -90294,12 +90294,12 @@ function withResolvers() {
|
|
|
90294
90294
|
function listWithMember(arr, member) {
|
|
90295
90295
|
return [...arr, member];
|
|
90296
90296
|
}
|
|
90297
|
-
function listWithoutIndex(arr,
|
|
90298
|
-
return [...arr.slice(0,
|
|
90297
|
+
function listWithoutIndex(arr, index3) {
|
|
90298
|
+
return [...arr.slice(0, index3), ...arr.slice(index3 + 1)];
|
|
90299
90299
|
}
|
|
90300
90300
|
function listWithoutMember(arr, member) {
|
|
90301
|
-
const
|
|
90302
|
-
if (
|
|
90301
|
+
const index3 = arr.indexOf(member);
|
|
90302
|
+
if (index3 !== -1) return listWithoutIndex(arr, index3);
|
|
90303
90303
|
return arr;
|
|
90304
90304
|
}
|
|
90305
90305
|
var _Symbol;
|
|
@@ -91488,8 +91488,8 @@ async function resolveResponse(opts) {
|
|
|
91488
91488
|
}), void 0];
|
|
91489
91489
|
return res;
|
|
91490
91490
|
});
|
|
91491
|
-
const resultAsRPCResponse = results.map(([error40, result],
|
|
91492
|
-
const call = info.calls[
|
|
91491
|
+
const resultAsRPCResponse = results.map(([error40, result], index3) => {
|
|
91492
|
+
const call = info.calls[index3];
|
|
91493
91493
|
if (error40) {
|
|
91494
91494
|
var _call$procedure$_def$4, _call$procedure5;
|
|
91495
91495
|
return { error: getErrorShape({
|
|
@@ -91850,16 +91850,16 @@ var codeblock = `
|
|
|
91850
91850
|
This is a client-only function.
|
|
91851
91851
|
If you want to call this function on the server, see https://trpc.io/docs/v11/server/server-side-calls
|
|
91852
91852
|
`.trim();
|
|
91853
|
-
async function callRecursive(
|
|
91853
|
+
async function callRecursive(index3, _def, opts) {
|
|
91854
91854
|
try {
|
|
91855
|
-
const middleware = _def.middlewares[
|
|
91855
|
+
const middleware = _def.middlewares[index3];
|
|
91856
91856
|
const result = await middleware((0, import_objectSpread2$13.default)((0, import_objectSpread2$13.default)({}, opts), {}, {
|
|
91857
91857
|
meta: _def.meta,
|
|
91858
91858
|
input: opts.input,
|
|
91859
91859
|
next(_nextOpts) {
|
|
91860
91860
|
var _nextOpts$getRawInput;
|
|
91861
91861
|
const nextOpts = _nextOpts;
|
|
91862
|
-
return callRecursive(
|
|
91862
|
+
return callRecursive(index3 + 1, _def, (0, import_objectSpread2$13.default)((0, import_objectSpread2$13.default)({}, opts), {}, {
|
|
91863
91863
|
ctx: (nextOpts === null || nextOpts === void 0 ? void 0 : nextOpts.ctx) ? (0, import_objectSpread2$13.default)((0, import_objectSpread2$13.default)({}, opts.ctx), nextOpts.ctx) : opts.ctx,
|
|
91864
91864
|
input: nextOpts && "input" in nextOpts ? nextOpts.input : opts.input,
|
|
91865
91865
|
getRawInput: (_nextOpts$getRawInput = nextOpts === null || nextOpts === void 0 ? void 0 : nextOpts.getRawInput) !== null && _nextOpts$getRawInput !== void 0 ? _nextOpts$getRawInput : opts.getRawInput
|
|
@@ -92321,7 +92321,7 @@ function getWSConnectionHandler(opts) {
|
|
|
92321
92321
|
return [];
|
|
92322
92322
|
}
|
|
92323
92323
|
});
|
|
92324
|
-
parsedMsgs.map((msg,
|
|
92324
|
+
parsedMsgs.map((msg, index3) => handleRequest(msg, index3));
|
|
92325
92325
|
});
|
|
92326
92326
|
client.on("error", (cause) => {
|
|
92327
92327
|
var _opts$onError6;
|
|
@@ -95976,11 +95976,11 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def2) => {
|
|
|
95976
95976
|
return payload;
|
|
95977
95977
|
};
|
|
95978
95978
|
});
|
|
95979
|
-
function handleArrayResult(result, final,
|
|
95979
|
+
function handleArrayResult(result, final, index3) {
|
|
95980
95980
|
if (result.issues.length) {
|
|
95981
|
-
final.issues.push(...prefixIssues(
|
|
95981
|
+
final.issues.push(...prefixIssues(index3, result.issues));
|
|
95982
95982
|
}
|
|
95983
|
-
final.value[
|
|
95983
|
+
final.value[index3] = result.value;
|
|
95984
95984
|
}
|
|
95985
95985
|
var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def2) => {
|
|
95986
95986
|
$ZodType.init(inst, def2);
|
|
@@ -96364,14 +96364,14 @@ function mergeValues(a6, b10) {
|
|
|
96364
96364
|
return { valid: false, mergeErrorPath: [] };
|
|
96365
96365
|
}
|
|
96366
96366
|
const newArray = [];
|
|
96367
|
-
for (let
|
|
96368
|
-
const itemA = a6[
|
|
96369
|
-
const itemB = b10[
|
|
96367
|
+
for (let index3 = 0; index3 < a6.length; index3++) {
|
|
96368
|
+
const itemA = a6[index3];
|
|
96369
|
+
const itemB = b10[index3];
|
|
96370
96370
|
const sharedValue = mergeValues(itemA, itemB);
|
|
96371
96371
|
if (!sharedValue.valid) {
|
|
96372
96372
|
return {
|
|
96373
96373
|
valid: false,
|
|
96374
|
-
mergeErrorPath: [
|
|
96374
|
+
mergeErrorPath: [index3, ...sharedValue.mergeErrorPath]
|
|
96375
96375
|
};
|
|
96376
96376
|
}
|
|
96377
96377
|
newArray.push(sharedValue.data);
|
|
@@ -96463,11 +96463,11 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def2) => {
|
|
|
96463
96463
|
return payload;
|
|
96464
96464
|
};
|
|
96465
96465
|
});
|
|
96466
|
-
function handleTupleResult(result, final,
|
|
96466
|
+
function handleTupleResult(result, final, index3) {
|
|
96467
96467
|
if (result.issues.length) {
|
|
96468
|
-
final.issues.push(...prefixIssues(
|
|
96468
|
+
final.issues.push(...prefixIssues(index3, result.issues));
|
|
96469
96469
|
}
|
|
96470
|
-
final.value[
|
|
96470
|
+
final.value[index3] = result.value;
|
|
96471
96471
|
}
|
|
96472
96472
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
|
|
96473
96473
|
$ZodType.init(inst, def2);
|
|
@@ -105858,7 +105858,7 @@ var get$ref = (item, refs) => {
|
|
|
105858
105858
|
return { $ref: getRelativePath(refs.currentPath, item.path) };
|
|
105859
105859
|
case "none":
|
|
105860
105860
|
case "seen": {
|
|
105861
|
-
if (item.path.length < refs.currentPath.length && item.path.every((value,
|
|
105861
|
+
if (item.path.length < refs.currentPath.length && item.path.every((value, index3) => refs.currentPath[index3] === value)) {
|
|
105862
105862
|
console.warn(
|
|
105863
105863
|
`Recursive reference detected at ${refs.currentPath.join(
|
|
105864
105864
|
"/"
|
|
@@ -108845,17 +108845,17 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
108845
108845
|
let defaultContexts = [];
|
|
108846
108846
|
function createContext32(rootComponentName, defaultContext) {
|
|
108847
108847
|
const BaseContext = React5.createContext(defaultContext);
|
|
108848
|
-
const
|
|
108848
|
+
const index3 = defaultContexts.length;
|
|
108849
108849
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
108850
108850
|
const Provider2 = (props) => {
|
|
108851
108851
|
const { scope, children, ...context } = props;
|
|
108852
|
-
const Context = scope?.[scopeName]?.[
|
|
108852
|
+
const Context = scope?.[scopeName]?.[index3] || BaseContext;
|
|
108853
108853
|
const value = React5.useMemo(() => context, Object.values(context));
|
|
108854
108854
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Context.Provider, { value, children });
|
|
108855
108855
|
};
|
|
108856
108856
|
Provider2.displayName = rootComponentName + "Provider";
|
|
108857
108857
|
function useContext22(consumerName, scope) {
|
|
108858
|
-
const Context = scope?.[scopeName]?.[
|
|
108858
|
+
const Context = scope?.[scopeName]?.[index3] || BaseContext;
|
|
108859
108859
|
const context = React5.useContext(Context);
|
|
108860
108860
|
if (context) return context;
|
|
108861
108861
|
if (defaultContext !== void 0) return defaultContext;
|
|
@@ -109284,9 +109284,9 @@ var DismissableLayer = React14.forwardRef(
|
|
|
109284
109284
|
const layers = Array.from(context.layers);
|
|
109285
109285
|
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
109286
109286
|
const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
109287
|
-
const
|
|
109287
|
+
const index3 = node ? layers.indexOf(node) : -1;
|
|
109288
109288
|
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
109289
|
-
const isPointerEventsEnabled =
|
|
109289
|
+
const isPointerEventsEnabled = index3 >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
109290
109290
|
const pointerDownOutside = usePointerDownOutside((event) => {
|
|
109291
109291
|
const target = event.target;
|
|
109292
109292
|
const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
|
|
@@ -109304,7 +109304,7 @@ var DismissableLayer = React14.forwardRef(
|
|
|
109304
109304
|
if (!event.defaultPrevented) onDismiss?.();
|
|
109305
109305
|
}, ownerDocument);
|
|
109306
109306
|
useEscapeKeydown((event) => {
|
|
109307
|
-
const isHighestLayer =
|
|
109307
|
+
const isHighestLayer = index3 === context.layers.size - 1;
|
|
109308
109308
|
if (!isHighestLayer) return;
|
|
109309
109309
|
onEscapeKeyDown?.(event);
|
|
109310
109310
|
if (!event.defaultPrevented && onDismiss) {
|
|
@@ -109652,9 +109652,9 @@ function createFocusScopesStack() {
|
|
|
109652
109652
|
}
|
|
109653
109653
|
function arrayRemove(array3, item) {
|
|
109654
109654
|
const updatedArray = [...array3];
|
|
109655
|
-
const
|
|
109656
|
-
if (
|
|
109657
|
-
updatedArray.splice(
|
|
109655
|
+
const index3 = updatedArray.indexOf(item);
|
|
109656
|
+
if (index3 !== -1) {
|
|
109657
|
+
updatedArray.splice(index3, 1);
|
|
109658
109658
|
}
|
|
109659
109659
|
return updatedArray;
|
|
109660
109660
|
}
|
|
@@ -112523,7 +112523,7 @@ function focusFirst2(candidates, preventScroll = false) {
|
|
|
112523
112523
|
}
|
|
112524
112524
|
}
|
|
112525
112525
|
function wrapArray(array3, startIndex) {
|
|
112526
|
-
return array3.map((_4,
|
|
112526
|
+
return array3.map((_4, index3) => array3[(startIndex + index3) % array3.length]);
|
|
112527
112527
|
}
|
|
112528
112528
|
var Root4 = RovingFocusGroup;
|
|
112529
112529
|
var Item = RovingFocusGroupItem;
|
|
@@ -113290,7 +113290,7 @@ function focusFirst3(candidates) {
|
|
|
113290
113290
|
}
|
|
113291
113291
|
}
|
|
113292
113292
|
function wrapArray2(array3, startIndex) {
|
|
113293
|
-
return array3.map((_4,
|
|
113293
|
+
return array3.map((_4, index3) => array3[(startIndex + index3) % array3.length]);
|
|
113294
113294
|
}
|
|
113295
113295
|
function getNextMatch(values, search, currentMatch) {
|
|
113296
113296
|
const isRepeated = search.length > 1 && Array.from(search).every((char2) => char2 === search[0]);
|
|
@@ -114353,16 +114353,16 @@ var createParseClassName = (config2) => {
|
|
|
114353
114353
|
let modifierStart = 0;
|
|
114354
114354
|
let postfixModifierPosition;
|
|
114355
114355
|
const len = className.length;
|
|
114356
|
-
for (let
|
|
114357
|
-
const currentCharacter = className[
|
|
114356
|
+
for (let index3 = 0; index3 < len; index3++) {
|
|
114357
|
+
const currentCharacter = className[index3];
|
|
114358
114358
|
if (bracketDepth === 0 && parenDepth === 0) {
|
|
114359
114359
|
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
114360
|
-
modifiers.push(className.slice(modifierStart,
|
|
114361
|
-
modifierStart =
|
|
114360
|
+
modifiers.push(className.slice(modifierStart, index3));
|
|
114361
|
+
modifierStart = index3 + 1;
|
|
114362
114362
|
continue;
|
|
114363
114363
|
}
|
|
114364
114364
|
if (currentCharacter === "/") {
|
|
114365
|
-
postfixModifierPosition =
|
|
114365
|
+
postfixModifierPosition = index3;
|
|
114366
114366
|
continue;
|
|
114367
114367
|
}
|
|
114368
114368
|
}
|
|
@@ -114406,8 +114406,8 @@ var createParseClassName = (config2) => {
|
|
|
114406
114406
|
};
|
|
114407
114407
|
var createSortModifiers = (config2) => {
|
|
114408
114408
|
const modifierWeights = /* @__PURE__ */ new Map();
|
|
114409
|
-
config2.orderSensitiveModifiers.forEach((mod,
|
|
114410
|
-
modifierWeights.set(mod, 1e6 +
|
|
114409
|
+
config2.orderSensitiveModifiers.forEach((mod, index3) => {
|
|
114410
|
+
modifierWeights.set(mod, 1e6 + index3);
|
|
114411
114411
|
});
|
|
114412
114412
|
return (modifiers) => {
|
|
114413
114413
|
const result = [];
|
|
@@ -114451,8 +114451,8 @@ var mergeClassList = (classList, configUtils) => {
|
|
|
114451
114451
|
const classGroupsInConflict = [];
|
|
114452
114452
|
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
114453
114453
|
let result = "";
|
|
114454
|
-
for (let
|
|
114455
|
-
const originalClassName = classNames[
|
|
114454
|
+
for (let index3 = classNames.length - 1; index3 >= 0; index3 -= 1) {
|
|
114455
|
+
const originalClassName = classNames[index3];
|
|
114456
114456
|
const {
|
|
114457
114457
|
isExternal,
|
|
114458
114458
|
modifiers,
|
|
@@ -114495,12 +114495,12 @@ var mergeClassList = (classList, configUtils) => {
|
|
|
114495
114495
|
return result;
|
|
114496
114496
|
};
|
|
114497
114497
|
var twJoin = (...classLists) => {
|
|
114498
|
-
let
|
|
114498
|
+
let index3 = 0;
|
|
114499
114499
|
let argument;
|
|
114500
114500
|
let resolvedValue;
|
|
114501
114501
|
let string5 = "";
|
|
114502
|
-
while (
|
|
114503
|
-
if (argument = classLists[
|
|
114502
|
+
while (index3 < classLists.length) {
|
|
114503
|
+
if (argument = classLists[index3++]) {
|
|
114504
114504
|
if (resolvedValue = toValue(argument)) {
|
|
114505
114505
|
string5 && (string5 += " ");
|
|
114506
114506
|
string5 += resolvedValue;
|
|
@@ -119242,9 +119242,9 @@ var MutationCache = class extends Subscribable {
|
|
|
119242
119242
|
const scopedMutations = this.#scopes.get(scope);
|
|
119243
119243
|
if (scopedMutations) {
|
|
119244
119244
|
if (scopedMutations.length > 1) {
|
|
119245
|
-
const
|
|
119246
|
-
if (
|
|
119247
|
-
scopedMutations.splice(
|
|
119245
|
+
const index3 = scopedMutations.indexOf(mutation);
|
|
119246
|
+
if (index3 !== -1) {
|
|
119247
|
+
scopedMutations.splice(index3, 1);
|
|
119248
119248
|
}
|
|
119249
119249
|
} else if (scopedMutations[0] === mutation) {
|
|
119250
119250
|
this.#scopes.delete(scope);
|
|
@@ -120803,6 +120803,7 @@ var import_jsx_runtime64 = __toESM(require_jsx_runtime(), 1);
|
|
|
120803
120803
|
var import_lucide_react7 = __toESM(require_lucide_react(), 1);
|
|
120804
120804
|
var import_react28 = __toESM(require_react(), 1);
|
|
120805
120805
|
var import_jsx_runtime65 = __toESM(require_jsx_runtime(), 1);
|
|
120806
|
+
var DEFAULT_VISIBLE_OPTIONS = ["caseSensitive", "wholeWord", "regex"];
|
|
120806
120807
|
function ToggleButton({
|
|
120807
120808
|
active,
|
|
120808
120809
|
onClick,
|
|
@@ -120830,8 +120831,12 @@ var SearchBar = (0, import_react28.forwardRef)(function SearchBar2({
|
|
|
120830
120831
|
onNext,
|
|
120831
120832
|
onPrevious,
|
|
120832
120833
|
onClose,
|
|
120834
|
+
visibleOptions = DEFAULT_VISIBLE_OPTIONS,
|
|
120833
120835
|
className
|
|
120834
120836
|
}, ref) {
|
|
120837
|
+
const showCase = visibleOptions.includes("caseSensitive");
|
|
120838
|
+
const showWholeWord = visibleOptions.includes("wholeWord");
|
|
120839
|
+
const showRegex = visibleOptions.includes("regex");
|
|
120835
120840
|
const inputRef = (0, import_react28.useRef)(null);
|
|
120836
120841
|
(0, import_react28.useImperativeHandle)(ref, () => ({
|
|
120837
120842
|
focus: () => inputRef.current?.focus(),
|
|
@@ -120873,9 +120878,9 @@ var SearchBar = (0, import_react28.forwardRef)(function SearchBar2({
|
|
|
120873
120878
|
}
|
|
120874
120879
|
}
|
|
120875
120880
|
),
|
|
120876
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.caseSensitive, onClick: toggleCase, title: "Match Case", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.CaseSensitive, { className: "size-4" }) }),
|
|
120877
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.wholeWord, onClick: toggleWholeWord, title: "Match Whole Word", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.WholeWord, { className: "size-4" }) }),
|
|
120878
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.regex, onClick: toggleRegex, title: "Use Regular Expression", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.Regex, { className: "size-4" }) }),
|
|
120881
|
+
showCase && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.caseSensitive, onClick: toggleCase, title: "Match Case", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.CaseSensitive, { className: "size-4" }) }),
|
|
120882
|
+
showWholeWord && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.wholeWord, onClick: toggleWholeWord, title: "Match Whole Word", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.WholeWord, { className: "size-4" }) }),
|
|
120883
|
+
showRegex && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToggleButton, { active: options2.regex, onClick: toggleRegex, title: "Use Regular Expression", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react7.Regex, { className: "size-4" }) }),
|
|
120879
120884
|
matchInfo && query && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "shrink-0 text-xs text-muted-foreground tabular-nums", children: matchInfo.total > 0 ? `${matchInfo.current} of ${matchInfo.total}` : "No results" }),
|
|
120880
120885
|
onPrevious && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
120881
120886
|
"button",
|
|
@@ -121462,6 +121467,15 @@ var FileBrowser = (0, import_react30.forwardRef)(function FileBrowser2({
|
|
|
121462
121467
|
(0, import_react30.useEffect)(() => {
|
|
121463
121468
|
fetchDir("");
|
|
121464
121469
|
}, [fetchDir]);
|
|
121470
|
+
(0, import_react30.useEffect)(() => {
|
|
121471
|
+
if (!adapter.subscribeFileChanges) return;
|
|
121472
|
+
const unsubscribe = adapter.subscribeFileChanges(workspaceId, (changedPath) => {
|
|
121473
|
+
const cache = getCachedContents(workspaceId);
|
|
121474
|
+
if (!cache.has(changedPath)) return;
|
|
121475
|
+
void fetchDir(changedPath, { force: true });
|
|
121476
|
+
});
|
|
121477
|
+
return unsubscribe;
|
|
121478
|
+
}, [adapter, workspaceId, fetchDir]);
|
|
121465
121479
|
const prevSelectedRef = (0, import_react30.useRef)(void 0);
|
|
121466
121480
|
(0, import_react30.useEffect)(() => {
|
|
121467
121481
|
if (!selectedFile || selectedFile === prevSelectedRef.current) {
|
|
@@ -125483,7 +125497,7 @@ function haveSameKeys(left, right) {
|
|
|
125483
125497
|
const leftKeys = Object.keys(left);
|
|
125484
125498
|
const rightKeys = Object.keys(right);
|
|
125485
125499
|
if (leftKeys.length !== rightKeys.length) return false;
|
|
125486
|
-
for (const [
|
|
125500
|
+
for (const [index3, key] of leftKeys.entries()) if (key !== rightKeys[index3]) return false;
|
|
125487
125501
|
return true;
|
|
125488
125502
|
}
|
|
125489
125503
|
function mapUpdateSet(table, values) {
|
|
@@ -129171,6 +129185,60 @@ function sqliteTableWithCasing(casing) {
|
|
|
129171
129185
|
}
|
|
129172
129186
|
var sqliteTable = sqliteTableWithCasing(void 0);
|
|
129173
129187
|
|
|
129188
|
+
// ../../node_modules/.pnpm/drizzle-orm@1.0.0-rc.1_@opentelemetry+api@1.9.0_@types+better-sqlite3@7.6.13_better-sql_95478898f63cc8c3fbbd0c5f8c1e464f/node_modules/drizzle-orm/sqlite-core/indexes.js
|
|
129189
|
+
var IndexBuilderOn = class {
|
|
129190
|
+
static [entityKind] = "SQLiteIndexBuilderOn";
|
|
129191
|
+
constructor(name24, unique) {
|
|
129192
|
+
this.name = name24;
|
|
129193
|
+
this.unique = unique;
|
|
129194
|
+
}
|
|
129195
|
+
on(...columns) {
|
|
129196
|
+
return new IndexBuilder(this.name, columns, this.unique);
|
|
129197
|
+
}
|
|
129198
|
+
};
|
|
129199
|
+
var IndexBuilder = class {
|
|
129200
|
+
static [entityKind] = "SQLiteIndexBuilder";
|
|
129201
|
+
/** @internal */
|
|
129202
|
+
config;
|
|
129203
|
+
constructor(name24, columns, unique) {
|
|
129204
|
+
this.config = {
|
|
129205
|
+
name: name24,
|
|
129206
|
+
columns,
|
|
129207
|
+
unique,
|
|
129208
|
+
where: void 0
|
|
129209
|
+
};
|
|
129210
|
+
}
|
|
129211
|
+
/**
|
|
129212
|
+
* Condition for partial index.
|
|
129213
|
+
*/
|
|
129214
|
+
where(condition) {
|
|
129215
|
+
this.config.where = condition;
|
|
129216
|
+
return this;
|
|
129217
|
+
}
|
|
129218
|
+
/** @internal */
|
|
129219
|
+
build(table) {
|
|
129220
|
+
return new Index(this.config, table);
|
|
129221
|
+
}
|
|
129222
|
+
};
|
|
129223
|
+
var Index = class {
|
|
129224
|
+
static [entityKind] = "SQLiteIndex";
|
|
129225
|
+
config;
|
|
129226
|
+
isNameExplicit;
|
|
129227
|
+
constructor(config2, table) {
|
|
129228
|
+
this.config = {
|
|
129229
|
+
...config2,
|
|
129230
|
+
table
|
|
129231
|
+
};
|
|
129232
|
+
this.isNameExplicit = !!config2.name;
|
|
129233
|
+
}
|
|
129234
|
+
};
|
|
129235
|
+
function index2(name24) {
|
|
129236
|
+
return new IndexBuilderOn(name24, false);
|
|
129237
|
+
}
|
|
129238
|
+
function uniqueIndex(name24) {
|
|
129239
|
+
return new IndexBuilderOn(name24, true);
|
|
129240
|
+
}
|
|
129241
|
+
|
|
129174
129242
|
// ../../node_modules/.pnpm/drizzle-orm@1.0.0-rc.1_@opentelemetry+api@1.9.0_@types+better-sqlite3@7.6.13_better-sql_95478898f63cc8c3fbbd0c5f8c1e464f/node_modules/drizzle-orm/sqlite-core/utils.js
|
|
129175
129243
|
function extractUsedTable(table) {
|
|
129176
129244
|
if (is(table, SQLiteTable)) return [`${table[Table.Symbol.BaseName]}`];
|
|
@@ -130084,8 +130152,8 @@ var SQLiteDialect = class {
|
|
|
130084
130152
|
buildJoins(joins) {
|
|
130085
130153
|
if (!joins || joins.length === 0) return;
|
|
130086
130154
|
const joinsArray = [];
|
|
130087
|
-
if (joins) for (const [
|
|
130088
|
-
if (
|
|
130155
|
+
if (joins) for (const [index3, joinMeta] of joins.entries()) {
|
|
130156
|
+
if (index3 === 0) joinsArray.push(sql` `);
|
|
130089
130157
|
const table = joinMeta.table;
|
|
130090
130158
|
const onSql = joinMeta.on ? sql` on ${joinMeta.on}` : void 0;
|
|
130091
130159
|
if (is(table, SQLiteTable)) {
|
|
@@ -130095,7 +130163,7 @@ var SQLiteDialect = class {
|
|
|
130095
130163
|
const alias = tableName === origTableName ? void 0 : joinMeta.alias;
|
|
130096
130164
|
joinsArray.push(sql`${sql.raw(joinMeta.joinType)} join ${tableSchema ? sql`${sql.identifier(tableSchema)}.` : void 0}${sql.identifier(origTableName)}${alias && sql` ${sql.identifier(alias)}`}${onSql}`);
|
|
130097
130165
|
} else joinsArray.push(sql`${sql.raw(joinMeta.joinType)} join ${table}${onSql}`);
|
|
130098
|
-
if (
|
|
130166
|
+
if (index3 < joins.length - 1) joinsArray.push(sql` `);
|
|
130099
130167
|
}
|
|
130100
130168
|
return sql.join(joinsArray);
|
|
130101
130169
|
}
|
|
@@ -130104,9 +130172,9 @@ var SQLiteDialect = class {
|
|
|
130104
130172
|
}
|
|
130105
130173
|
buildOrderBy(orderBy) {
|
|
130106
130174
|
const orderByList = [];
|
|
130107
|
-
if (orderBy) for (const [
|
|
130175
|
+
if (orderBy) for (const [index3, orderByValue] of orderBy.entries()) {
|
|
130108
130176
|
orderByList.push(orderByValue);
|
|
130109
|
-
if (
|
|
130177
|
+
if (index3 < orderBy.length - 1) orderByList.push(sql`, `);
|
|
130110
130178
|
}
|
|
130111
130179
|
return orderByList.length > 0 ? sql` order by ${sql.join(orderByList)}` : void 0;
|
|
130112
130180
|
}
|
|
@@ -130134,9 +130202,9 @@ var SQLiteDialect = class {
|
|
|
130134
130202
|
const whereSql = where ? sql` where ${where}` : void 0;
|
|
130135
130203
|
const havingSql = having ? sql` having ${having}` : void 0;
|
|
130136
130204
|
const groupByList = [];
|
|
130137
|
-
if (groupBy) for (const [
|
|
130205
|
+
if (groupBy) for (const [index3, groupByValue] of groupBy.entries()) {
|
|
130138
130206
|
groupByList.push(groupByValue);
|
|
130139
|
-
if (
|
|
130207
|
+
if (index3 < groupBy.length - 1) groupByList.push(sql`, `);
|
|
130140
130208
|
}
|
|
130141
130209
|
const finalQuery = sql`${withSql}select${distinctSql} ${selection} from ${tableSql}${joinsSql}${whereSql}${groupByList.length > 0 ? sql` group by ${sql.join(groupByList)}` : void 0}${havingSql}${this.buildOrderBy(orderBy)}${this.buildLimit(limit)}${offset4 ? sql` offset ${offset4}` : void 0}`;
|
|
130142
130210
|
if (setOperators.length > 0) return this.buildSetOperations(finalQuery, setOperators);
|
|
@@ -131751,6 +131819,7 @@ function migrate(db2, config2) {
|
|
|
131751
131819
|
var schema_exports = {};
|
|
131752
131820
|
__export(schema_exports, {
|
|
131753
131821
|
branchStatuses: () => branchStatuses,
|
|
131822
|
+
browserHistory: () => browserHistory,
|
|
131754
131823
|
cronjobs: () => cronjobs,
|
|
131755
131824
|
panelStates: () => panelStates,
|
|
131756
131825
|
projects: () => projects,
|
|
@@ -131834,6 +131903,22 @@ var cronjobs = sqliteTable("cronjobs", {
|
|
|
131834
131903
|
lastRunAt: text3("last_run_at"),
|
|
131835
131904
|
lastRunStatus: text3("last_run_status", { enum: ["completed", "failed", "skipped"] })
|
|
131836
131905
|
});
|
|
131906
|
+
var browserHistory = sqliteTable(
|
|
131907
|
+
"browser_history",
|
|
131908
|
+
{
|
|
131909
|
+
id: integer3("id").primaryKey({ autoIncrement: true }),
|
|
131910
|
+
workspaceId: text3("workspace_id").notNull(),
|
|
131911
|
+
url: text3("url").notNull(),
|
|
131912
|
+
title: text3("title"),
|
|
131913
|
+
faviconUrl: text3("favicon_url"),
|
|
131914
|
+
lastVisitedAt: integer3("last_visited_at").notNull(),
|
|
131915
|
+
visitCount: integer3("visit_count").notNull().default(1)
|
|
131916
|
+
},
|
|
131917
|
+
(t6) => [
|
|
131918
|
+
uniqueIndex("browser_history_workspace_url_uq").on(t6.workspaceId, t6.url),
|
|
131919
|
+
index2("browser_history_workspace_visited_idx").on(t6.workspaceId, t6.lastVisitedAt)
|
|
131920
|
+
]
|
|
131921
|
+
);
|
|
131837
131922
|
|
|
131838
131923
|
// src/lib/db/connection.ts
|
|
131839
131924
|
var migrationsFolder = join10(import.meta.dirname, "migrations");
|
|
@@ -132804,10 +132889,10 @@ async function getBatchedCIStatuses(workspaces) {
|
|
|
132804
132889
|
repoInfoCache.clear();
|
|
132805
132890
|
const resolved = [];
|
|
132806
132891
|
await Promise.allSettled(
|
|
132807
|
-
workspaces.map(async (ws,
|
|
132892
|
+
workspaces.map(async (ws, index3) => {
|
|
132808
132893
|
const repoInfo = await resolveRepoInfo(ws.projectPath);
|
|
132809
132894
|
if (repoInfo) {
|
|
132810
|
-
resolved.push({ ws, repoInfo, alias: `ws_${
|
|
132895
|
+
resolved.push({ ws, repoInfo, alias: `ws_${index3}` });
|
|
132811
132896
|
} else {
|
|
132812
132897
|
console.error(
|
|
132813
132898
|
`CI poll: failed to resolve repo info for ${ws.workspaceId} (${ws.projectPath})`
|
|
@@ -139933,7 +140018,7 @@ var get$ref2 = (item, refs) => {
|
|
|
139933
140018
|
return { $ref: getRelativePath2(refs.currentPath, item.path) };
|
|
139934
140019
|
case "none":
|
|
139935
140020
|
case "seen": {
|
|
139936
|
-
if (item.path.length < refs.currentPath.length && item.path.every((value,
|
|
140021
|
+
if (item.path.length < refs.currentPath.length && item.path.every((value, index3) => refs.currentPath[index3] === value)) {
|
|
139937
140022
|
console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);
|
|
139938
140023
|
return parseAnyDef2(refs);
|
|
139939
140024
|
}
|
|
@@ -141334,7 +141419,7 @@ var Server = class extends Protocol {
|
|
|
141334
141419
|
super(options2);
|
|
141335
141420
|
this._serverInfo = _serverInfo;
|
|
141336
141421
|
this._loggingLevels = /* @__PURE__ */ new Map();
|
|
141337
|
-
this.LOG_LEVEL_SEVERITY = new Map(LoggingLevelSchema.options.map((level,
|
|
141422
|
+
this.LOG_LEVEL_SEVERITY = new Map(LoggingLevelSchema.options.map((level, index3) => [level, index3]));
|
|
141338
141423
|
this.isMessageIgnored = (level, sessionId) => {
|
|
141339
141424
|
const currentLevel = this._loggingLevels.get(sessionId);
|
|
141340
141425
|
return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false;
|
|
@@ -141748,7 +141833,7 @@ function validateToolName(name24) {
|
|
|
141748
141833
|
warnings.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts");
|
|
141749
141834
|
}
|
|
141750
141835
|
if (!TOOL_NAME_REGEX.test(name24)) {
|
|
141751
|
-
const invalidChars = name24.split("").filter((char2) => !/[A-Za-z0-9._-]/.test(char2)).filter((char2,
|
|
141836
|
+
const invalidChars = name24.split("").filter((char2) => !/[A-Za-z0-9._-]/.test(char2)).filter((char2, index3, arr) => arr.indexOf(char2) === index3);
|
|
141752
141837
|
warnings.push(`Tool name contains invalid characters: ${invalidChars.map((c2) => `"${c2}"`).join(", ")}`, "Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)");
|
|
141753
141838
|
return {
|
|
141754
141839
|
isValid: false,
|
|
@@ -143903,6 +143988,101 @@ import { promisify } from "node:util";
|
|
|
143903
143988
|
init_src();
|
|
143904
143989
|
init_zod();
|
|
143905
143990
|
|
|
143991
|
+
// src/lib/browser-history-store.ts
|
|
143992
|
+
var SKIP_PREFIXES = ["about:", "chrome-extension://", "devtools://", "file://"];
|
|
143993
|
+
function shouldRecord(url2) {
|
|
143994
|
+
if (!url2) return false;
|
|
143995
|
+
const trimmed = url2.trim();
|
|
143996
|
+
if (!trimmed) return false;
|
|
143997
|
+
for (const prefix of SKIP_PREFIXES) {
|
|
143998
|
+
if (trimmed.startsWith(prefix)) return false;
|
|
143999
|
+
}
|
|
144000
|
+
return true;
|
|
144001
|
+
}
|
|
144002
|
+
function recordVisit(input) {
|
|
144003
|
+
if (!shouldRecord(input.url)) return false;
|
|
144004
|
+
const db2 = getDb();
|
|
144005
|
+
const now = input.now ?? Date.now();
|
|
144006
|
+
db2.insert(browserHistory).values({
|
|
144007
|
+
workspaceId: input.workspaceId,
|
|
144008
|
+
url: input.url,
|
|
144009
|
+
title: input.title ?? null,
|
|
144010
|
+
faviconUrl: input.faviconUrl ?? null,
|
|
144011
|
+
lastVisitedAt: now,
|
|
144012
|
+
visitCount: 1
|
|
144013
|
+
}).onConflictDoUpdate({
|
|
144014
|
+
target: [browserHistory.workspaceId, browserHistory.url],
|
|
144015
|
+
set: {
|
|
144016
|
+
lastVisitedAt: now,
|
|
144017
|
+
visitCount: sql`${browserHistory.visitCount} + 1`,
|
|
144018
|
+
// Only overwrite when the new call brings a value — preserves a
|
|
144019
|
+
// title learned on a previous visit if this one happens to fire
|
|
144020
|
+
// before `page-title-updated` does.
|
|
144021
|
+
title: sql`COALESCE(${input.title ?? null}, ${browserHistory.title})`,
|
|
144022
|
+
faviconUrl: sql`COALESCE(${input.faviconUrl ?? null}, ${browserHistory.faviconUrl})`
|
|
144023
|
+
}
|
|
144024
|
+
}).run();
|
|
144025
|
+
return true;
|
|
144026
|
+
}
|
|
144027
|
+
function updateVisitMeta(input) {
|
|
144028
|
+
const db2 = getDb();
|
|
144029
|
+
const updates = {};
|
|
144030
|
+
if (input.title !== void 0) updates.title = input.title;
|
|
144031
|
+
if (input.faviconUrl !== void 0) updates.faviconUrl = input.faviconUrl;
|
|
144032
|
+
if (Object.keys(updates).length === 0) return;
|
|
144033
|
+
db2.update(browserHistory).set(updates).where(
|
|
144034
|
+
and(eq2(browserHistory.workspaceId, input.workspaceId), eq2(browserHistory.url, input.url))
|
|
144035
|
+
).run();
|
|
144036
|
+
}
|
|
144037
|
+
function listHistory(workspaceId, opts = {}) {
|
|
144038
|
+
const db2 = getDb();
|
|
144039
|
+
const limit = Math.min(Math.max(opts.limit ?? 100, 1), 500);
|
|
144040
|
+
const offset4 = Math.max(opts.offset ?? 0, 0);
|
|
144041
|
+
return db2.select().from(browserHistory).where(eq2(browserHistory.workspaceId, workspaceId)).orderBy(desc(browserHistory.lastVisitedAt)).limit(limit).offset(offset4).all();
|
|
144042
|
+
}
|
|
144043
|
+
function searchHistory(workspaceId, query, limit = 8, now = Date.now()) {
|
|
144044
|
+
const db2 = getDb();
|
|
144045
|
+
const trimmed = query.trim();
|
|
144046
|
+
if (!trimmed) return [];
|
|
144047
|
+
const escaped = trimmed.toLowerCase().replace(/[%_\\]/g, "\\$&");
|
|
144048
|
+
const pattern = `%${escaped}%`;
|
|
144049
|
+
const cappedLimit = Math.min(Math.max(limit, 1), 50);
|
|
144050
|
+
const score = sql`(
|
|
144051
|
+
CAST(${browserHistory.visitCount} AS REAL) /
|
|
144052
|
+
(1.0 + (${now} - ${browserHistory.lastVisitedAt}) / 86400000.0)
|
|
144053
|
+
)`;
|
|
144054
|
+
return db2.select().from(browserHistory).where(
|
|
144055
|
+
and(
|
|
144056
|
+
eq2(browserHistory.workspaceId, workspaceId),
|
|
144057
|
+
or(
|
|
144058
|
+
sql`LOWER(${browserHistory.url}) LIKE ${pattern} ESCAPE '\\'`,
|
|
144059
|
+
sql`LOWER(COALESCE(${browserHistory.title}, '')) LIKE ${pattern} ESCAPE '\\'`
|
|
144060
|
+
)
|
|
144061
|
+
)
|
|
144062
|
+
).orderBy(sql`${score} DESC`, desc(browserHistory.lastVisitedAt)).limit(cappedLimit).all();
|
|
144063
|
+
}
|
|
144064
|
+
function deleteHistoryEntry(id, workspaceId) {
|
|
144065
|
+
const db2 = getDb();
|
|
144066
|
+
db2.delete(browserHistory).where(and(eq2(browserHistory.id, id), eq2(browserHistory.workspaceId, workspaceId))).run();
|
|
144067
|
+
}
|
|
144068
|
+
function clearHistory(workspaceId, range, now = Date.now()) {
|
|
144069
|
+
const db2 = getDb();
|
|
144070
|
+
if (range === "all") {
|
|
144071
|
+
const result2 = db2.delete(browserHistory).where(eq2(browserHistory.workspaceId, workspaceId)).run();
|
|
144072
|
+
return Number(result2.changes ?? 0);
|
|
144073
|
+
}
|
|
144074
|
+
const windows = {
|
|
144075
|
+
hour: 60 * 60 * 1e3,
|
|
144076
|
+
day: 24 * 60 * 60 * 1e3,
|
|
144077
|
+
week: 7 * 24 * 60 * 60 * 1e3
|
|
144078
|
+
};
|
|
144079
|
+
const cutoff = now - windows[range];
|
|
144080
|
+
const result = db2.delete(browserHistory).where(
|
|
144081
|
+
and(eq2(browserHistory.workspaceId, workspaceId), gte(browserHistory.lastVisitedAt, cutoff))
|
|
144082
|
+
).run();
|
|
144083
|
+
return Number(result.changes ?? 0);
|
|
144084
|
+
}
|
|
144085
|
+
|
|
143906
144086
|
// src/lib/chat-session-summary.ts
|
|
143907
144087
|
init_src();
|
|
143908
144088
|
var log24 = createLogger("chat-session-summary");
|
|
@@ -144188,6 +144368,98 @@ function convertHistoryToUIMessages(history) {
|
|
|
144188
144368
|
});
|
|
144189
144369
|
}
|
|
144190
144370
|
|
|
144371
|
+
// src/lib/file-watcher.ts
|
|
144372
|
+
import { watch as fsWatch } from "node:fs";
|
|
144373
|
+
var IGNORED_SEGMENTS = /* @__PURE__ */ new Set([
|
|
144374
|
+
".git",
|
|
144375
|
+
"node_modules",
|
|
144376
|
+
".next",
|
|
144377
|
+
".turbo",
|
|
144378
|
+
".cache",
|
|
144379
|
+
".parcel-cache",
|
|
144380
|
+
".vite",
|
|
144381
|
+
"dist",
|
|
144382
|
+
"build",
|
|
144383
|
+
"out",
|
|
144384
|
+
"target",
|
|
144385
|
+
"coverage",
|
|
144386
|
+
".band",
|
|
144387
|
+
".DS_Store"
|
|
144388
|
+
]);
|
|
144389
|
+
var DEBOUNCE_MS = 250;
|
|
144390
|
+
var watchers = /* @__PURE__ */ new Map();
|
|
144391
|
+
function isIgnoredPath(relativePath) {
|
|
144392
|
+
if (!relativePath) return false;
|
|
144393
|
+
for (const segment of relativePath.split(/[\\/]+/)) {
|
|
144394
|
+
if (IGNORED_SEGMENTS.has(segment)) return true;
|
|
144395
|
+
}
|
|
144396
|
+
return false;
|
|
144397
|
+
}
|
|
144398
|
+
function parentDirOf(relativePath) {
|
|
144399
|
+
const normalised = relativePath.split(/[\\/]+/).join("/");
|
|
144400
|
+
const idx = normalised.lastIndexOf("/");
|
|
144401
|
+
return idx === -1 ? "" : normalised.slice(0, idx);
|
|
144402
|
+
}
|
|
144403
|
+
function scheduleEmit(workspaceId, dirPath) {
|
|
144404
|
+
const entry = watchers.get(workspaceId);
|
|
144405
|
+
if (!entry) return;
|
|
144406
|
+
const existing = entry.pendingTimers.get(dirPath);
|
|
144407
|
+
if (existing) clearTimeout(existing);
|
|
144408
|
+
const timer = setTimeout(() => {
|
|
144409
|
+
entry.pendingTimers.delete(dirPath);
|
|
144410
|
+
const current = watchers.get(workspaceId);
|
|
144411
|
+
if (!current) return;
|
|
144412
|
+
for (const listener of current.listeners) listener(dirPath);
|
|
144413
|
+
}, DEBOUNCE_MS);
|
|
144414
|
+
entry.pendingTimers.set(dirPath, timer);
|
|
144415
|
+
}
|
|
144416
|
+
function stopWatcher(workspaceId) {
|
|
144417
|
+
const entry = watchers.get(workspaceId);
|
|
144418
|
+
if (!entry) return;
|
|
144419
|
+
try {
|
|
144420
|
+
entry.watcher.close();
|
|
144421
|
+
} catch {
|
|
144422
|
+
}
|
|
144423
|
+
for (const timer of entry.pendingTimers.values()) clearTimeout(timer);
|
|
144424
|
+
entry.pendingTimers.clear();
|
|
144425
|
+
watchers.delete(workspaceId);
|
|
144426
|
+
}
|
|
144427
|
+
function subscribeToFileChanges(workspaceId, listener) {
|
|
144428
|
+
let entry = watchers.get(workspaceId);
|
|
144429
|
+
if (!entry) {
|
|
144430
|
+
const ws = resolveWorkspace(workspaceId);
|
|
144431
|
+
if (!ws) return () => {
|
|
144432
|
+
};
|
|
144433
|
+
const root = ws.worktree.path;
|
|
144434
|
+
let watcher;
|
|
144435
|
+
try {
|
|
144436
|
+
watcher = fsWatch(root, { recursive: true, persistent: false }, (_event, filename) => {
|
|
144437
|
+
if (filename == null) return;
|
|
144438
|
+
const relative = typeof filename === "string" ? filename : Buffer.from(filename).toString();
|
|
144439
|
+
if (!relative || isIgnoredPath(relative)) return;
|
|
144440
|
+
scheduleEmit(workspaceId, parentDirOf(relative));
|
|
144441
|
+
});
|
|
144442
|
+
} catch {
|
|
144443
|
+
return () => {
|
|
144444
|
+
};
|
|
144445
|
+
}
|
|
144446
|
+
entry = { watcher, listeners: /* @__PURE__ */ new Set(), pendingTimers: /* @__PURE__ */ new Map() };
|
|
144447
|
+
watchers.set(workspaceId, entry);
|
|
144448
|
+
const localEntry = entry;
|
|
144449
|
+
watcher.on("error", () => {
|
|
144450
|
+
for (const listener2 of localEntry.listeners) listener2(null);
|
|
144451
|
+
stopWatcher(workspaceId);
|
|
144452
|
+
});
|
|
144453
|
+
}
|
|
144454
|
+
entry.listeners.add(listener);
|
|
144455
|
+
return () => {
|
|
144456
|
+
const current = watchers.get(workspaceId);
|
|
144457
|
+
if (!current) return;
|
|
144458
|
+
current.listeners.delete(listener);
|
|
144459
|
+
if (current.listeners.size === 0) stopWatcher(workspaceId);
|
|
144460
|
+
};
|
|
144461
|
+
}
|
|
144462
|
+
|
|
144191
144463
|
// src/lib/fuzzy-score.ts
|
|
144192
144464
|
var SCORE_MATCH = 1;
|
|
144193
144465
|
var BONUS_CONSECUTIVE = 8;
|
|
@@ -144824,6 +145096,58 @@ var workspaceRouter = t2.router({
|
|
|
144824
145096
|
const config2 = loadWorkspaceTerminalConfig(workspace.worktree.path, workspace.project.path);
|
|
144825
145097
|
return { config: config2 };
|
|
144826
145098
|
}),
|
|
145099
|
+
/**
|
|
145100
|
+
* Subscribe to external file-system changes inside a single workspace.
|
|
145101
|
+
* The watcher is started on demand for that workspace and torn down when
|
|
145102
|
+
* the last subscriber disconnects, so we don't keep OS watch handles
|
|
145103
|
+
* open on every worktree the user has ever added (see issue #384).
|
|
145104
|
+
*
|
|
145105
|
+
* Yields one event per coalesced (parentDir) change; `path` is the
|
|
145106
|
+
* workspace-relative parent directory ("" for the worktree root). The
|
|
145107
|
+
* FileBrowser uses it as a cache invalidation key.
|
|
145108
|
+
*
|
|
145109
|
+
* Auth: enforced at the transport layer (the `band_token` cookie gates
|
|
145110
|
+
* the WebSocket upgrade and HTTP requests in start-server.ts), so no
|
|
145111
|
+
* per-procedure guard is needed — consistent with the rest of
|
|
145112
|
+
* `workspaceRouter`.
|
|
145113
|
+
*/
|
|
145114
|
+
fileChanges: publicProcedure.input(external_exports2.object({ workspaceId: external_exports2.string() })).subscription(async function* (opts) {
|
|
145115
|
+
if (!opts.signal) {
|
|
145116
|
+
throw new Error(
|
|
145117
|
+
"workspace.fileChanges requires a cancellable subscription (opts.signal missing)"
|
|
145118
|
+
);
|
|
145119
|
+
}
|
|
145120
|
+
const signal = opts.signal;
|
|
145121
|
+
const queue = [];
|
|
145122
|
+
let resolve8 = null;
|
|
145123
|
+
let watcherClosed = false;
|
|
145124
|
+
const unsubscribe = subscribeToFileChanges(opts.input.workspaceId, (path3) => {
|
|
145125
|
+
if (path3 === null) {
|
|
145126
|
+
watcherClosed = true;
|
|
145127
|
+
} else {
|
|
145128
|
+
queue.push({ path: path3 });
|
|
145129
|
+
}
|
|
145130
|
+
resolve8?.();
|
|
145131
|
+
});
|
|
145132
|
+
const onAbort = () => resolve8?.();
|
|
145133
|
+
signal.addEventListener("abort", onAbort);
|
|
145134
|
+
try {
|
|
145135
|
+
while (!signal.aborted && !watcherClosed) {
|
|
145136
|
+
while (queue.length > 0) {
|
|
145137
|
+
yield queue.shift();
|
|
145138
|
+
}
|
|
145139
|
+
if (signal.aborted || watcherClosed) break;
|
|
145140
|
+
await new Promise((r6) => {
|
|
145141
|
+
resolve8 = r6;
|
|
145142
|
+
if (signal.aborted || watcherClosed) r6();
|
|
145143
|
+
});
|
|
145144
|
+
resolve8 = null;
|
|
145145
|
+
}
|
|
145146
|
+
} finally {
|
|
145147
|
+
signal.removeEventListener("abort", onAbort);
|
|
145148
|
+
unsubscribe();
|
|
145149
|
+
}
|
|
145150
|
+
}),
|
|
144827
145151
|
listBranches: publicProcedure.input(external_exports2.object({ workspaceId: external_exports2.string() })).query(async ({ input }) => {
|
|
144828
145152
|
const workspace = resolveWorkspace(input.workspaceId);
|
|
144829
145153
|
if (!workspace) {
|
|
@@ -146102,11 +146426,11 @@ var cronjobsRouter = t2.router({
|
|
|
146102
146426
|
}),
|
|
146103
146427
|
delete: publicProcedure.input(external_exports2.object({ key: external_exports2.string(), id: external_exports2.string() })).mutation(({ input }) => {
|
|
146104
146428
|
const file2 = loadCronjobFile(input.key);
|
|
146105
|
-
const
|
|
146106
|
-
if (
|
|
146429
|
+
const index3 = file2.jobs.findIndex((j) => j.id === input.id);
|
|
146430
|
+
if (index3 === -1) {
|
|
146107
146431
|
throw new TRPCError({ code: "NOT_FOUND", message: "Cronjob not found" });
|
|
146108
146432
|
}
|
|
146109
|
-
file2.jobs.splice(
|
|
146433
|
+
file2.jobs.splice(index3, 1);
|
|
146110
146434
|
saveCronjobFile(input.key, file2);
|
|
146111
146435
|
reloadSchedules();
|
|
146112
146436
|
return { ok: true };
|
|
@@ -146456,6 +146780,92 @@ var browserHostRouter = t2.router({
|
|
|
146456
146780
|
return { ok: true };
|
|
146457
146781
|
})
|
|
146458
146782
|
});
|
|
146783
|
+
var clearRangeSchema = external_exports2.enum(["hour", "day", "week", "all"]);
|
|
146784
|
+
var MAX_URL_LENGTH = 2048;
|
|
146785
|
+
var MAX_TITLE_LENGTH = 1024;
|
|
146786
|
+
var ALLOWED_FAVICON_SCHEMES = ["http:", "https:"];
|
|
146787
|
+
var faviconUrlSchema = external_exports2.string().max(MAX_URL_LENGTH).refine(
|
|
146788
|
+
(val) => {
|
|
146789
|
+
try {
|
|
146790
|
+
return ALLOWED_FAVICON_SCHEMES.includes(
|
|
146791
|
+
new URL(val).protocol
|
|
146792
|
+
);
|
|
146793
|
+
} catch {
|
|
146794
|
+
return false;
|
|
146795
|
+
}
|
|
146796
|
+
},
|
|
146797
|
+
{ message: "faviconUrl must be a http(s) URL" }
|
|
146798
|
+
);
|
|
146799
|
+
var historyRouter = t2.router({
|
|
146800
|
+
record: publicProcedure.input(
|
|
146801
|
+
external_exports2.object({
|
|
146802
|
+
workspaceId: external_exports2.string().min(1),
|
|
146803
|
+
url: external_exports2.string().min(1).max(MAX_URL_LENGTH),
|
|
146804
|
+
title: external_exports2.string().max(MAX_TITLE_LENGTH).optional(),
|
|
146805
|
+
faviconUrl: faviconUrlSchema.optional()
|
|
146806
|
+
})
|
|
146807
|
+
).mutation(({ input }) => {
|
|
146808
|
+
const recorded = recordVisit({
|
|
146809
|
+
workspaceId: input.workspaceId,
|
|
146810
|
+
url: input.url,
|
|
146811
|
+
title: input.title,
|
|
146812
|
+
faviconUrl: input.faviconUrl
|
|
146813
|
+
});
|
|
146814
|
+
return { ok: true, recorded };
|
|
146815
|
+
}),
|
|
146816
|
+
updateMeta: publicProcedure.input(
|
|
146817
|
+
external_exports2.object({
|
|
146818
|
+
workspaceId: external_exports2.string().min(1),
|
|
146819
|
+
url: external_exports2.string().min(1).max(MAX_URL_LENGTH),
|
|
146820
|
+
title: external_exports2.string().max(MAX_TITLE_LENGTH).optional(),
|
|
146821
|
+
faviconUrl: faviconUrlSchema.optional()
|
|
146822
|
+
})
|
|
146823
|
+
).mutation(({ input }) => {
|
|
146824
|
+
updateVisitMeta({
|
|
146825
|
+
workspaceId: input.workspaceId,
|
|
146826
|
+
url: input.url,
|
|
146827
|
+
title: input.title,
|
|
146828
|
+
faviconUrl: input.faviconUrl
|
|
146829
|
+
});
|
|
146830
|
+
return { ok: true };
|
|
146831
|
+
}),
|
|
146832
|
+
list: publicProcedure.input(
|
|
146833
|
+
external_exports2.object({
|
|
146834
|
+
workspaceId: external_exports2.string().min(1),
|
|
146835
|
+
limit: external_exports2.number().int().positive().max(500).optional(),
|
|
146836
|
+
offset: external_exports2.number().int().nonnegative().optional()
|
|
146837
|
+
})
|
|
146838
|
+
).query(({ input }) => {
|
|
146839
|
+
const entries = listHistory(input.workspaceId, {
|
|
146840
|
+
limit: input.limit,
|
|
146841
|
+
offset: input.offset
|
|
146842
|
+
});
|
|
146843
|
+
return { entries };
|
|
146844
|
+
}),
|
|
146845
|
+
search: publicProcedure.input(
|
|
146846
|
+
external_exports2.object({
|
|
146847
|
+
workspaceId: external_exports2.string().min(1),
|
|
146848
|
+
query: external_exports2.string(),
|
|
146849
|
+
limit: external_exports2.number().int().positive().max(50).optional()
|
|
146850
|
+
})
|
|
146851
|
+
).query(({ input }) => {
|
|
146852
|
+
const entries = searchHistory(input.workspaceId, input.query, input.limit ?? 8);
|
|
146853
|
+
return { entries };
|
|
146854
|
+
}),
|
|
146855
|
+
delete: publicProcedure.input(external_exports2.object({ id: external_exports2.number().int().positive(), workspaceId: external_exports2.string().min(1) })).mutation(({ input }) => {
|
|
146856
|
+
deleteHistoryEntry(input.id, input.workspaceId);
|
|
146857
|
+
return { ok: true };
|
|
146858
|
+
}),
|
|
146859
|
+
clear: publicProcedure.input(
|
|
146860
|
+
external_exports2.object({
|
|
146861
|
+
workspaceId: external_exports2.string().min(1),
|
|
146862
|
+
range: clearRangeSchema
|
|
146863
|
+
})
|
|
146864
|
+
).mutation(({ input }) => {
|
|
146865
|
+
const deleted = clearHistory(input.workspaceId, input.range);
|
|
146866
|
+
return { deleted };
|
|
146867
|
+
})
|
|
146868
|
+
});
|
|
146459
146869
|
var queuedFileSchema = external_exports2.object({
|
|
146460
146870
|
mediaType: external_exports2.string(),
|
|
146461
146871
|
url: external_exports2.string(),
|
|
@@ -146676,6 +147086,7 @@ var appRouter = t2.router({
|
|
|
146676
147086
|
browserLayout: browserLayoutRouter,
|
|
146677
147087
|
browsers: browsersRouter,
|
|
146678
147088
|
browserHost: browserHostRouter,
|
|
147089
|
+
history: historyRouter,
|
|
146679
147090
|
statuses: statusesRouter,
|
|
146680
147091
|
status: statusRouter,
|
|
146681
147092
|
cronjobs: cronjobsRouter,
|
|
@@ -146826,6 +147237,7 @@ var clientDir = join23(import.meta.dirname, "client");
|
|
|
146826
147237
|
var port = parseInt(process.env.PORT || "3456", 10);
|
|
146827
147238
|
delete process.env.PORT;
|
|
146828
147239
|
process.env.BAND_PORT = String(port);
|
|
147240
|
+
delete process.env.ELECTRON_RUN_AS_NODE;
|
|
146829
147241
|
var { handleAuth, expectedToken } = createAuthMiddleware(getOrCreateToken());
|
|
146830
147242
|
var assets = build_default(clientDir, {
|
|
146831
147243
|
maxAge: 31536e3,
|