@intent-hq/web 2.292.0 → 2.292.2
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/package.json +1 -1
- package/web/app/immutable/assets/0.DvlMYzZB.css +1 -0
- package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
- package/web/app/immutable/chunks/{o8OJf27v.js → -g6HPSpm.js} +1 -1
- package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
- package/web/app/immutable/chunks/{DHSIOEln.js → 0c_MAvHq.js} +1 -1
- package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
- package/web/app/immutable/chunks/{BgntEy_5.js → 0k-rvyGo.js} +1 -1
- package/web/app/immutable/chunks/{aLb41s5K.js → 4gO2zcBv.js} +1 -1
- package/web/app/immutable/chunks/{l7ze94qr.js → 5SjfvWPi.js} +1 -1
- package/web/app/immutable/chunks/{Bp70Vk4U.js → 755iX0_8.js} +1 -1
- package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
- package/web/app/immutable/chunks/{BW3vrEnw.js → 9Pov1PHF.js} +5 -5
- package/web/app/immutable/chunks/{C2-6X3Z3.js → B4pPTpp_.js} +2 -2
- package/web/app/immutable/chunks/{Bgg-wBTF.js → B5GamWhx.js} +1 -1
- package/web/app/immutable/chunks/{HECvQSCC.js → B6FrmuSL.js} +1 -1
- package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
- package/web/app/immutable/chunks/{DhMj2plM.js → B6mMXRA1.js} +1 -1
- package/web/app/immutable/chunks/{DshT-ERa.js → B6rxT1rd.js} +1 -1
- package/web/app/immutable/chunks/B7gOkTaS.js +324 -0
- package/web/app/immutable/chunks/{DDghWae5.js → B8W3GGYq.js} +1 -1
- package/web/app/immutable/chunks/{DP7kbgS0.js → B982JlpQ.js} +1 -1
- package/web/app/immutable/chunks/{BrbLiL_x.js → B9UcZ8hB.js} +1 -1
- package/web/app/immutable/chunks/{gjFD8LCr.js → BAAkmbP1.js} +1 -1
- package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
- package/web/app/immutable/chunks/{CdL46F2Z.js → BCX3VjTL.js} +1 -1
- package/web/app/immutable/chunks/{Cppe-wSX.js → BDfuDlh3.js} +1 -1
- package/web/app/immutable/chunks/{CXbFPa4P.js → BGJxMF_1.js} +1 -1
- package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
- package/web/app/immutable/chunks/{QwMkFOLD.js → BL2SnmmN.js} +1 -1
- package/web/app/immutable/chunks/{C4tLIUi-.js → BMURLuFo.js} +1 -1
- package/web/app/immutable/chunks/{GM1mBWt-.js → BMigEFDf.js} +1 -1
- package/web/app/immutable/chunks/{IoeO06yf.js → BNUfRoau.js} +1 -1
- package/web/app/immutable/chunks/{BE4lD4BS.js → BNaYrmBt.js} +1 -1
- package/web/app/immutable/chunks/{CWhinB9Y.js → BNmJe_fB.js} +12 -12
- package/web/app/immutable/chunks/{Bn8I_2eM.js → BNyX9jNr.js} +1 -1
- package/web/app/immutable/chunks/{xgWQsr-g.js → BOeezh42.js} +3 -3
- package/web/app/immutable/chunks/{1gqakjEk.js → BPKxTIFu.js} +1 -1
- package/web/app/immutable/chunks/{9a62qcQ7.js → BQnKtOqS.js} +1 -1
- package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
- package/web/app/immutable/chunks/{h3ky2Xtl.js → BSkHzXor.js} +1 -1
- package/web/app/immutable/chunks/{3Y9y-sdV.js → BUYS7rif.js} +1 -1
- package/web/app/immutable/chunks/{BHNxqf_R.js → BUlvUEKW.js} +1 -1
- package/web/app/immutable/chunks/{DCuB-wUt.js → BVMJedK4.js} +1 -1
- package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
- package/web/app/immutable/chunks/{h1uEjX6Q.js → BWg4csX2.js} +1 -1
- package/web/app/immutable/chunks/{DKmM0bqR.js → BZQ9g1LX.js} +1 -1
- package/web/app/immutable/chunks/{B2hdZBro.js → BZk3o0D4.js} +1 -1
- package/web/app/immutable/chunks/{Tbbe1dbh.js → BZzTwe10.js} +1 -1
- package/web/app/immutable/chunks/{BFY-b65a.js → Ba8-1FHo.js} +1 -1
- package/web/app/immutable/chunks/{Uc38XdXI.js → BaPbYStu.js} +1 -1
- package/web/app/immutable/chunks/{DNMw7H4R.js → BaT1EUX1.js} +1 -1
- package/web/app/immutable/chunks/{BaqlfWKa.js → Bal--q4v.js} +1 -1
- package/web/app/immutable/chunks/{47q6TsqV.js → BaqTNCTY.js} +7 -7
- package/web/app/immutable/chunks/{BLqH6j99.js → BcYgPYED.js} +1 -1
- package/web/app/immutable/chunks/{DWGee_yL.js → Bh9BKMsM.js} +1 -1
- package/web/app/immutable/chunks/{DWQ1jwFW.js → Bi_XhyyE.js} +1 -1
- package/web/app/immutable/chunks/{fqEAyqsN.js → BluiuFfy.js} +1 -1
- package/web/app/immutable/chunks/{Cowgfae1.js → Bo_2xd9j.js} +1 -1
- package/web/app/immutable/chunks/{CgjVDtx1.js → BpHN1kIK.js} +1 -1
- package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
- package/web/app/immutable/chunks/{CKHgkzsh.js → Bqm96CUD.js} +1 -1
- package/web/app/immutable/chunks/{B-68oH2S.js → BrBBHBKk.js} +1 -1
- package/web/app/immutable/chunks/{DI0BmYmu.js → BsXlY_j6.js} +1 -1
- package/web/app/immutable/chunks/{DUgG-2k6.js → Bsr5f7H7.js} +1 -1
- package/web/app/immutable/chunks/{D44dgkjW.js → BtOZE8-p.js} +2 -2
- package/web/app/immutable/chunks/{B-dUAUrx.js → Btm5xkvu.js} +1 -1
- package/web/app/immutable/chunks/{LldlwJUi.js → Bvl8Oxba.js} +1 -1
- package/web/app/immutable/chunks/{C99wXtMe.js → BxlgI-wG.js} +1 -1
- package/web/app/immutable/chunks/{B5iywc0c.js → BzlGto81.js} +1 -1
- package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
- package/web/app/immutable/chunks/{RKlkXviB.js → C1QeO17D.js} +1 -1
- package/web/app/immutable/chunks/{CekHYIsk.js → C2FQclZr.js} +1 -1
- package/web/app/immutable/chunks/{BSwJfQ4v.js → C3frK44m.js} +1 -1
- package/web/app/immutable/chunks/{DKaqc51P.js → C5mI5hjq.js} +1 -1
- package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
- package/web/app/immutable/chunks/{DGzLoy-z.js → C6e-2qm-.js} +1 -1
- package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
- package/web/app/immutable/chunks/{n50bwg6w.js → C7MuVaSF.js} +2 -2
- package/web/app/immutable/chunks/{Duw-IZjh.js → CB-ZN9Uq.js} +1 -1
- package/web/app/immutable/chunks/{BnQ8VATH.js → CBgR5nXI.js} +1 -1
- package/web/app/immutable/chunks/{BRCenWT1.js → CCXwqeRn.js} +1 -1
- package/web/app/immutable/chunks/{DQ0fhYWC.js → CDBtKfA5.js} +1 -1
- package/web/app/immutable/chunks/{DkZNeDFv.js → CDKc6BIg.js} +1 -1
- package/web/app/immutable/chunks/{BGhLlR2Z.js → CFniM5qB.js} +1 -1
- package/web/app/immutable/chunks/{BekOxliD.js → CGhxkrID.js} +1 -1
- package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
- package/web/app/immutable/chunks/{BjdiF3NU.js → CJ5pAPpY.js} +1 -1
- package/web/app/immutable/chunks/{DvbSI76r.js → CJcny7E2.js} +2 -2
- package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
- package/web/app/immutable/chunks/{DRKAw6pI.js → CJpj7lk7.js} +1 -1
- package/web/app/immutable/chunks/{B4RPI3PE.js → CKJsoFTP.js} +1 -1
- package/web/app/immutable/chunks/{H0XHH9Lx.js → CKcgUe6r.js} +1 -1
- package/web/app/immutable/chunks/{xO5nwwWo.js → CKxaBxPr.js} +1 -1
- package/web/app/immutable/chunks/{CyFgel5k.js → CLfThpJq.js} +1 -1
- package/web/app/immutable/chunks/{DYFkelx6.js → CLfafQTB.js} +1 -1
- package/web/app/immutable/chunks/{B3HK-q5A.js → CNIQVMU4.js} +1 -1
- package/web/app/immutable/chunks/{Bc_8WxDl.js → CN_OP-b-.js} +1 -1
- package/web/app/immutable/chunks/{DBNNnuPG.js → CWD3GqNk.js} +1 -1
- package/web/app/immutable/chunks/{bHHGnVsz.js → CWt47ruh.js} +1 -1
- package/web/app/immutable/chunks/{BhHMVKkK.js → CXUQsTIM.js} +1 -1
- package/web/app/immutable/chunks/CXhBPURx.js +1 -0
- package/web/app/immutable/chunks/{B5F8O-gO.js → C_8YlGDA.js} +1 -1
- package/web/app/immutable/chunks/{BvW_0loN.js → C_km1Zzs.js} +1 -1
- package/web/app/immutable/chunks/{DVnaYm9M.js → CaYE_9eh.js} +1 -1
- package/web/app/immutable/chunks/{C4QILlBJ.js → Cc7prgX7.js} +1 -1
- package/web/app/immutable/chunks/{CNx8jMag.js → CduLLDtl.js} +3 -3
- package/web/app/immutable/chunks/{CRhEb0yi.js → Cim0jDEO.js} +3 -3
- package/web/app/immutable/chunks/{CUtP3PhY.js → CjWNs3hA.js} +1 -1
- package/web/app/immutable/chunks/{D7mzoI7P.js → Cn8FrGio.js} +1 -1
- package/web/app/immutable/chunks/{DyJ_15yQ.js → CpvtLd5_.js} +1 -1
- package/web/app/immutable/chunks/{s0Q29iiv.js → CqMkgp96.js} +1 -1
- package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
- package/web/app/immutable/chunks/{BTkrC1UW.js → CsL35l_T.js} +1 -1
- package/web/app/immutable/chunks/{-GL8Xg-u.js → CsQ2FSIs.js} +1 -1
- package/web/app/immutable/chunks/{DsD7VXOH.js → CttvdLl2.js} +1 -1
- package/web/app/immutable/chunks/{W4t3dmSv.js → Cugu1F8N.js} +1 -1
- package/web/app/immutable/chunks/{C5vF3pAx.js → CvPs_8UD.js} +1 -1
- package/web/app/immutable/chunks/{YNqVM6Pn.js → Cxik8d0T.js} +1 -1
- package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
- package/web/app/immutable/chunks/{BL9BSWt_.js → D08_U0B1.js} +1 -1
- package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
- package/web/app/immutable/chunks/{lbGH4X3r.js → D2avzeRb.js} +1 -1
- package/web/app/immutable/chunks/{DhCIIOya.js → D3DoEc8v.js} +1 -1
- package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
- package/web/app/immutable/chunks/{Vj7OREkP.js → D4YIggqT.js} +1 -1
- package/web/app/immutable/chunks/{DDI0uI_H.js → D5sJ2bUJ.js} +1 -1
- package/web/app/immutable/chunks/{Cal0nWOf.js → D74BjVjF.js} +1 -1
- package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
- package/web/app/immutable/chunks/{Cxk1hw1U.js → D7n0G88C.js} +1 -1
- package/web/app/immutable/chunks/{BHL5MsfB.js → D8yPtwVB.js} +1 -1
- package/web/app/immutable/chunks/{Bqwi0BWF.js → DBUouGIr.js} +1 -1
- package/web/app/immutable/chunks/{DOVovLIq.js → DCKEIO-U.js} +1 -1
- package/web/app/immutable/chunks/{B-gmfAcJ.js → DEiZJ0yd.js} +1 -1
- package/web/app/immutable/chunks/{DRkmccaa.js → DFA3yOc-.js} +1 -1
- package/web/app/immutable/chunks/{D_J63Zyl.js → DFlL22UR.js} +2 -2
- package/web/app/immutable/chunks/{BrMgU118.js → DH6mjHQD.js} +1 -1
- package/web/app/immutable/chunks/DHqL-9TB.js +1 -0
- package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
- package/web/app/immutable/chunks/{DUl0e4O4.js → DInKHbl0.js} +1 -1
- package/web/app/immutable/chunks/{DtYBp20I.js → DLpUeiQt.js} +1 -1
- package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
- package/web/app/immutable/chunks/{kslXii-P.js → DMsHebUD.js} +1 -1
- package/web/app/immutable/chunks/{Bi0GbwSO.js → DOIfYJL0.js} +1 -1
- package/web/app/immutable/chunks/{Dn9JK5a2.js → DOiAjI4X.js} +1 -1
- package/web/app/immutable/chunks/{CFBVUms-.js → DPXetxx7.js} +1 -1
- package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
- package/web/app/immutable/chunks/{qiHCX_SZ.js → DRXZKet6.js} +1 -1
- package/web/app/immutable/chunks/{73DumGL9.js → DU55s1te.js} +1 -1
- package/web/app/immutable/chunks/{BRyWfrpo.js → DULsS44V.js} +1 -1
- package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
- package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
- package/web/app/immutable/chunks/{wozemaTW.js → DXt4bqo0.js} +3 -3
- package/web/app/immutable/chunks/{CW4guVPa.js → DYc78UPr.js} +1 -1
- package/web/app/immutable/chunks/{ZWPXcFOT.js → DZEyizFV.js} +1 -1
- package/web/app/immutable/chunks/{CeOSarF3.js → DbIzlA5K.js} +1 -1
- package/web/app/immutable/chunks/{Xj89EZIy.js → DbR25MIl.js} +1 -1
- package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
- package/web/app/immutable/chunks/{BDaXmtmH.js → DcDNc2X4.js} +1 -1
- package/web/app/immutable/chunks/{C3J1SYpT.js → DdRUG063.js} +1 -1
- package/web/app/immutable/chunks/{CIP1ZfWd.js → DdaG7Cca.js} +2 -2
- package/web/app/immutable/chunks/{BA_vIobR.js → DdkpKwl0.js} +1 -1
- package/web/app/immutable/chunks/{ClCKezvS.js → DeCG5uo6.js} +2 -2
- package/web/app/immutable/chunks/{BJrl0upY.js → DeVZOPW7.js} +1 -1
- package/web/app/immutable/chunks/{CFvkwWFr.js → DeimPXf2.js} +1 -1
- package/web/app/immutable/chunks/{CehXkbc-.js → Df4yP1J2.js} +1 -1
- package/web/app/immutable/chunks/{Cm5CZ7YY.js → Dg6tVjEn.js} +1 -1
- package/web/app/immutable/chunks/{ZvX5e3AH.js → Dg93Tv7B.js} +1 -1
- package/web/app/immutable/chunks/{Du8OSMBA.js → DgtWaWFZ.js} +1 -1
- package/web/app/immutable/chunks/{CRtL6sYK.js → Dh1NyToj.js} +1 -1
- package/web/app/immutable/chunks/{lr5ofxhO.js → Dh9qgtqK.js} +1 -1
- package/web/app/immutable/chunks/{C1YheCPG.js → DhkHgLRA.js} +1 -1
- package/web/app/immutable/chunks/{DHfLNRUe.js → Di18wyjg.js} +1 -1
- package/web/app/immutable/chunks/{DB0od0be.js → DiGqo-KH.js} +1 -1
- package/web/app/immutable/chunks/{D2Fb9aao.js → Djt5RN4M.js} +1 -1
- package/web/app/immutable/chunks/{C6yKW00v.js → DkwBacqz.js} +1 -1
- package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
- package/web/app/immutable/chunks/{Bebubi_u.js → DkzDjzB9.js} +2 -2
- package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
- package/web/app/immutable/chunks/{Dj03b8fr.js → DlWNLllN.js} +1 -1
- package/web/app/immutable/chunks/{VIItGFPL.js → Dn1B9mMU.js} +3 -3
- package/web/app/immutable/chunks/{BGFHZ0Gn.js → DofGY-1I.js} +1 -1
- package/web/app/immutable/chunks/{y6VRBo2M.js → DuQHnwpD.js} +1 -1
- package/web/app/immutable/chunks/{CDGvuOsQ.js → Dw1YkpRi.js} +1 -1
- package/web/app/immutable/chunks/{D3jsqDWq.js → DyWVLmAp.js} +1 -1
- package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
- package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
- package/web/app/immutable/chunks/{Bdylonvo.js → LMWUF5gW.js} +1 -1
- package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
- package/web/app/immutable/chunks/{DY3dk38M.js → Ly5i90Nv.js} +1 -1
- package/web/app/immutable/chunks/{DwDCAMLG.js → M2HNRaSd.js} +1 -1
- package/web/app/immutable/chunks/{Brep-rEI.js → OT3S-JEx.js} +3 -3
- package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
- package/web/app/immutable/chunks/{Bu8Bi7-A.js → Q73TKJJV.js} +1 -1
- package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
- package/web/app/immutable/chunks/{DYtAwHmE.js → RM6OQSCe.js} +1 -1
- package/web/app/immutable/chunks/{xKX_8KWn.js → SR358tmD.js} +1 -1
- package/web/app/immutable/chunks/{BnbR-3eC.js → SxaNyqKY.js} +1 -1
- package/web/app/immutable/chunks/{aVsZmAEF.js → V8s0XlXE.js} +1 -1
- package/web/app/immutable/chunks/{CJhZDVuE.js → WIFxQL3B.js} +6 -6
- package/web/app/immutable/chunks/{BrdmgcMW.js → WtfFsxX1.js} +1 -1
- package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
- package/web/app/immutable/chunks/{DlAbpA5d.js → YOgmIoTW.js} +1 -1
- package/web/app/immutable/chunks/{Dm7OUuES.js → ZpS8pGBT.js} +1 -1
- package/web/app/immutable/chunks/{FNHey2fE.js → cg-GVC1x.js} +1 -1
- package/web/app/immutable/chunks/{WTd8htj2.js → d6W1ZPqA.js} +1 -1
- package/web/app/immutable/chunks/{BdllAkCb.js → gE1gxY1Y.js} +1 -1
- package/web/app/immutable/chunks/{0EWUI_tF.js → hI2h2HCD.js} +1 -1
- package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
- package/web/app/immutable/chunks/{CACMvEIk.js → o5rKfw07.js} +1 -1
- package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
- package/web/app/immutable/chunks/{D1gMbWP8.js → pO3bPIuE.js} +1 -1
- package/web/app/immutable/chunks/{DN9Sgz-I.js → pTVl2JiY.js} +1 -1
- package/web/app/immutable/chunks/{ObcETXIn.js → qDe1FahS.js} +4 -4
- package/web/app/immutable/chunks/{CHF-Yq0C.js → rzBANR1d.js} +1 -1
- package/web/app/immutable/chunks/{z5Kqmpp_.js → tKJW3PqB.js} +1 -1
- package/web/app/immutable/chunks/{aCBgdpmi.js → uCtJ9vOe.js} +4 -4
- package/web/app/immutable/chunks/{BhEPk3lK.js → uZvRsrHT.js} +1 -1
- package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
- package/web/app/immutable/chunks/{U2CIkvme.js → xt2PoXl6.js} +1 -1
- package/web/app/immutable/chunks/{BiTsq1kw.js → zL-pIvaA.js} +1 -1
- package/web/app/immutable/chunks/{DQ7w3NbE.js → zqim2n1k.js} +1 -1
- package/web/app/immutable/entry/{app.D05YlZME.js → app.VT7TaiVu.js} +2 -2
- package/web/app/immutable/entry/start.290_qSid.js +1 -0
- package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.BqGgzWCn.js} +1 -1
- package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.C4zqRLiW.js} +1 -1
- package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.e5SLQ0Dz.js} +1 -1
- package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
- package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
- package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.BfSKkaSq.js} +1 -1
- package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
- package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.BXG5rqkJ.js} +2 -2
- package/web/app/immutable/nodes/2.TpeCpptI.js +9 -0
- package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.BUPhRmT2.js} +1 -1
- package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.DsmDqqJv.js} +1 -1
- package/web/app/immutable/nodes/{5.riH2s22o.js → 5.DAbG3X_i.js} +1 -1
- package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CsCXGtvb.js} +1 -1
- package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.Cc-Pwt7d.js} +1 -1
- package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.B7-LYwR0.js} +4 -4
- package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.CSCz9Oh5.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +10 -10
- package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
- package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
- package/web/app/immutable/chunks/CZOawK4P.js +0 -18
- package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
- package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
- package/web/app/immutable/chunks/l87kbv25.js +0 -1
- package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
- package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./
|
|
1
|
+
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./Dky-2Jfq.js";import"./B8o4lNgr.js";import"./DMsRLycu.js";import"./ZX1TUMY0.js";import"./BsvsTmot.js";import"./XsSJjm3Z.js";import"./ChTqQfQN.js";import"./utwal-1U.js";import"./Ba4gy30X.js";const b="input, textarea, select";function o(t){return"editContext"in t&&t.editContext!=null}function a(t){return t instanceof HTMLElement?t.isContentEditable===!0||t.contentEditable==="true"||t.contentEditable==="plaintext-only":!1}function l(t){return!t||typeof Element>"u"||!(t instanceof Element)?null:t}function y(t){const e=l(t);if(!e)return!1;if(a(e)||o(e)||e.closest(b))return!0;const n=e.closest('[contenteditable="false"]'),i=e.closest('[role="textbox"]');if(i&&(!n||n.contains(i)))return!0;const r=e.closest("[contenteditable]");return r!==null&&r.getAttribute("contenteditable")!=="false"}function S(t){const e=l(t);return e?e instanceof HTMLTextAreaElement||a(e)||o(e)||e.getAttribute("role")==="textbox"&&e.getAttribute("aria-multiline")==="true"&&e.getAttribute("aria-readonly")!=="true":!1}const g=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:u,TOAST_COUNTDOWN_CLASS:c,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:f,notify:s,notifyMetadata:d,withToastCountdown:T},Symbol.toStringTag,{value:"Module"}));export{S as a,y as b,g as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as i,c3 as l,bA as d,aA as o}from"./
|
|
1
|
+
import{f as i,c3 as l,bA as d,aA as o}from"./WIFxQL3B.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var Oh=Object.defineProperty;var Ih=(t,e,i)=>e in t?Oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>Ih(t,typeof e!="symbol"?e+"":e,i);import{cd as $h}from"./B8o4lNgr.js";import{bo as Fs,_ as Bn}from"./DMsRLycu.js";import{a as ji}from"./BJzHxIyr.js";import{i as Ns}from"./D7gNyfhu.js";import{w as Fh}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/hO5lTYJC.js","/app/immutable/chunks/Dky-2Jfq.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/XsSJjm3Z.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BfHc_GyD.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/BdrU1VNg.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Oh=Object.defineProperty;var Ih=(t,e,i)=>e in t?Oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>Ih(t,typeof e!="symbol"?e+"":e,i);import{cd as $h}from"./B8o4lNgr.js";import{bo as Fs,_ as Bn}from"./DMsRLycu.js";import{a as ji}from"./BJzHxIyr.js";import{i as Ns}from"./D7gNyfhu.js";import{w as Fh}from"./BqJBJZqA.js";import{t as Nh}from"./cgVH8CzA.js";import{d as Ui}from"./B0Z-1lwJ.js";import{c as zh}from"./ChTqQfQN.js";import{bf as Wh}from"./XsSJjm3Z.js";import{Gt as Mt,Hu as An,gf as Hh,zW as Uh,y9 as Kh,qu as qh}from"./Ba4gy30X.js";import{E as Vh,L as Gh}from"./CY7B0zXs.js";import{g as Yh}from"./FCmf5yeg.js";import{f as Xh,l as jh}from"./-VmI8gyW.js";/**
|
|
3
3
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
4
4
|
* @license MIT
|
|
5
5
|
*
|
|
@@ -141,6 +141,6 @@ void main() {
|
|
|
141
141
|
`))}},lf=class extends Error{constructor(t,e){super(t),this.name="ListenerLeakError",this.stack=e}},cf=class extends Error{constructor(t,e){super(t),this.name="ListenerRefusalError",this.stack=e}},df=0,ur=class{constructor(t){this.value=t,this.id=df++}},uf=2,_f,ut=class{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new af(t?.onListenerError??dr,this._options?.leakWarningThreshold??of):void 0,this._perfMon=this._options?._profName?new nf(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,e,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let o=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(o);let a=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new cf(`${o}. HINT: Stack shows most frequent listener (${a[1]}-times)`,a[0]);return(this._options?.onListenerError||dr)(l),qt.None}if(this._disposed)return qt.None;e&&(t=t.bind(e));let s=new ur(t),r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=hf.create(),r=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof ur?(this._deliveryQueue??=new ff,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;let n=yi(()=>{r?.(),this._removeListener(s)});return i instanceof kn?i.add(n):Array.isArray(i)&&i.push(n),n},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let e=this._listeners,i=e.indexOf(t);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,e[i]=void 0;let s=this._deliveryQueue.current===this;if(this._size*uf<=e.length){let r=0;for(let n=0;n<e.length;n++)e[n]?e[r++]=e[n]:s&&(this._deliveryQueue.end--,r<this._deliveryQueue.i&&this._deliveryQueue.i--);e.length=r}}_deliver(t,e){if(!t)return;let i=this._options?.onListenerError||dr;if(!i){t.value(e);return}try{t.value(e)}catch(s){i(s)}}_deliverQueue(t){let e=t.current._listeners;for(;t.i<t.end;)this._deliver(e[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ur)this._deliver(this._listeners,t);else{let e=this._deliveryQueue;e.enqueue(this,t,this._listeners.length),this._deliverQueue(e)}this._perfMon?.stop()}hasListeners(){return this._size>0}},ff=class{constructor(){this.i=-1,this.end=0}enqueue(t,e,i){this.i=0,this.end=i,this.current=t,this.value=e}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Dh=Object.freeze(function(t,e){let i=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(i)}}}),gf;(t=>{function e(i){return i===t.None||i===t.Cancelled||i instanceof pf?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:En.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Dh})})(gf||={});var pf=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Dh:(this._emitter||(this._emitter=new ut),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},mi="en",_r=!1,ds,Cs=mi,sa=mi,mf,Et,ni=globalThis,Ge;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Ge=ni.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ge=process);var vf=typeof Ge?.versions?.electron=="string",Sf=vf&&Ge?.type==="renderer";if(typeof Ge=="object"){Ge.platform,Ge.platform,_r=Ge.platform==="linux",_r&&Ge.env.SNAP&&Ge.env.SNAP_REVISION,Ge.env.CI||Ge.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ds=mi,Cs=mi;let t=Ge.env.VSCODE_NLS_CONFIG;if(t)try{let e=JSON.parse(t);ds=e.userLocale,sa=e.osLocale,Cs=e.resolvedLanguage||mi,mf=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Sf?(Et=navigator.userAgent,Et.indexOf("Windows")>=0,Et.indexOf("Macintosh")>=0,(Et.indexOf("Macintosh")>=0||Et.indexOf("iPad")>=0||Et.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_r=Et.indexOf("Linux")>=0,Et?.indexOf("Mobi")>=0,Cs=globalThis._VSCODE_NLS_LANGUAGE||mi,ds=navigator.language.toLowerCase(),sa=ds):console.error("Unable to resolve platform.");var mt=Et,$t=Cs,wf;(t=>{function e(){return $t}t.value=e;function i(){return $t.length===2?$t==="en":$t.length>=3?$t[0]==="e"&&$t[1]==="n"&&$t[2]==="-":!1}t.isDefaultVariant=i;function s(){return $t==="en"}t.isDefault=s})(wf||={});var bf=typeof ni.postMessage=="function"&&!ni.importScripts;(()=>{if(bf){let t=[];ni.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){let n=t[s];if(n.id===i.data.vscodeScheduleAsyncWork){t.splice(s,1),n.callback();return}}});let e=0;return i=>{let s=++e;t.push({id:s,callback:i}),ni.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})();var Cf=!!(mt&&mt.indexOf("Chrome")>=0);mt&&mt.indexOf("Firefox")>=0;!Cf&&mt&&mt.indexOf("Safari")>=0;mt&&mt.indexOf("Edg/")>=0;mt&&mt.indexOf("Android")>=0;function Bh(t,e=0,i){let s=setTimeout(()=>{t()},e);return yi(()=>{clearTimeout(s)})}var yf;(t=>{async function e(s){let r,n=await Promise.all(s.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return n}t.settled=e;function i(s){return new Promise(async(r,n)=>{try{await s(r,n)}catch(o){n(o)}})}t.withAsyncBody=i})(yf||={});var ra=class Qe{static fromArray(e){return new Qe(i=>{i.emitMany(e)})}static fromPromise(e){return new Qe(async i=>{i.emitMany(await e)})}static fromPromises(e){return new Qe(async i=>{await Promise.all(e.map(async s=>i.emitOne(await s)))})}static merge(e){return new Qe(async i=>{await Promise.all(e.map(async s=>{for await(let r of s)i.emitOne(r)}))})}constructor(e,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new ut,queueMicrotask(async()=>{let s={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(s)),this.resolve()}catch(r){this.reject(r)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await En.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,i){return new Qe(async s=>{for await(let r of e)s.emitOne(i(r))})}map(e){return Qe.map(this,e)}static filter(e,i){return new Qe(async s=>{for await(let r of e)i(r)&&s.emitOne(r)})}filter(e){return Qe.filter(this,e)}static coalesce(e){return Qe.filter(e,i=>!!i)}coalesce(){return Qe.coalesce(this)}static async toPromise(e){let i=[];for await(let s of e)i.push(s);return i}toPromise(){return Qe.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};ra.EMPTY=ra.fromArray([]);var xf=class extends qt{constructor(t){super(),this._terminal=t,this._linesCacheTimeout=this._register(new Rs),this._linesCacheDisposables=this._register(new Rs),this._register(yi(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=new Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=xh(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=Bh(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(t){return this._linesCache?.[t]}setLineInCache(t,e){this._linesCache&&(this._linesCache[t]=e)}translateBufferLineToStringWithWrap(t,e){let i=[],s=[0],r=this._terminal.buffer.active.getLine(t);for(;r;){let n=this._terminal.buffer.active.getLine(t+1),o=n?n.isWrapped:!1,a=r.translateToString(!o&&e);if(o&&n){let l=r.getCell(r.length-1);l&&l.getCode()===0&&l.getWidth()===1&&n.getCell(0)?.getWidth()===2&&(a=a.slice(0,-1))}if(i.push(a),o)s.push(s[s.length-1]+a.length);else break;t++,r=n}return[i.join(""),s]}},kf=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(t){this._cachedSearchTerm=t}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(t){this._lastSearchOptions=t}isValidSearchTerm(t){return!!(t&&t.length>0)}didOptionsChange(t){return this._lastSearchOptions?t?this._lastSearchOptions.caseSensitive!==t.caseSensitive||this._lastSearchOptions.regex!==t.regex||this._lastSearchOptions.wholeWord!==t.wholeWord:!1:!0}shouldUpdateHighlighting(t,e){return e?.decorations?this._cachedSearchTerm===void 0||t!==this._cachedSearchTerm||this.didOptionsChange(e):!1}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},Ef=class{constructor(t,e){this._terminal=t,this._lineCache=e}find(t,e,i,s){if(!t||t.length===0){this._terminal.clearSelection();return}if(i>this._terminal.cols)throw new Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let r={startRow:e,startCol:i},n=this._findInLine(t,r,s);if(!n)for(let o=e+1;o<this._terminal.buffer.active.baseY+this._terminal.rows&&(r.startRow=o,r.startCol=0,n=this._findInLine(t,r,s),!n);o++);return n}findNextWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=0,n=0;s&&(i===t?(r=s.end.x,n=s.end.y):(r=s.start.x,n=s.start.y)),this._lineCache.initLinesCache();let o={startRow:n,startCol:r},a=this._findInLine(t,o,e);if(!a)for(let l=n+1;l<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);if(!a&&n!==0)for(let l=0;l<n&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);return!a&&s&&(o.startRow=s.start.y,o.startCol=0,a=this._findInLine(t,o,e)),a}findPreviousWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=this._terminal.buffer.active.baseY+this._terminal.rows-1,n=this._terminal.cols,o=!0;this._lineCache.initLinesCache();let a={startRow:r,startCol:n},l;if(s&&(a.startRow=r=s.start.y,a.startCol=n=s.start.x,i!==t&&(l=this._findInLine(t,a,e,!1),l||(a.startRow=r=s.end.y,a.startCol=n=s.end.x))),l||(l=this._findInLine(t,a,e,o)),!l){a.startCol=Math.max(a.startCol,this._terminal.cols);for(let h=r-1;h>=0&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);}if(!l&&r!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let h=this._terminal.buffer.active.baseY+this._terminal.rows-1;h>=r&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);return l}_isWholeWord(t,e,i){return(t===0||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t-1]))&&(t+i.length===e.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t+i.length]))}_findInLine(t,e,i={},s=!1){let r=e.startRow,n=e.startCol;if(this._terminal.buffer.active.getLine(r)?.isWrapped){if(s){e.startCol+=this._terminal.cols;return}return e.startRow--,e.startCol+=this._terminal.cols,this._findInLine(t,e,i)}let o=this._lineCache.getLineFromCache(r);o||(o=this._lineCache.translateBufferLineToStringWithWrap(r,!0),this._lineCache.setLineInCache(r,o));let[a,l]=o,h=this._bufferColsToStringOffset(r,n),c=t,d=a;i.regex||(c=i.caseSensitive?t:t.toLowerCase(),d=i.caseSensitive?a:a.toLowerCase());let u=-1;if(i.regex){let f=RegExp(c,i.caseSensitive?"g":"gi"),g;if(s)for(;g=f.exec(d.slice(0,h));)u=f.lastIndex-g[0].length,t=g[0],f.lastIndex-=t.length-1;else g=f.exec(d.slice(h)),g&&g[0].length>0&&(u=h+(f.lastIndex-g[0].length),t=g[0])}else s?h-c.length>=0&&(u=d.lastIndexOf(c,h-c.length)):u=d.indexOf(c,h);if(u>=0){if(i.wholeWord&&!this._isWholeWord(u,d,t))return;let f=0;for(;f<l.length-1&&u>=l[f+1];)f++;let g=f;for(;g<l.length-1&&u+t.length>=l[g+1];)g++;let C=u-l[f],E=u+t.length-l[g],D=this._stringLengthToBufferSize(r+f,C),B=this._stringLengthToBufferSize(r+g,E)-D+this._terminal.cols*(g-f);return{term:t,col:D,row:r+f,size:B}}}_stringLengthToBufferSize(t,e){let i=this._terminal.buffer.active.getLine(t);if(!i)return 0;for(let s=0;s<e;s++){let r=i.getCell(s);if(!r)break;let n=r.getChars();n.length>1&&(e-=n.length-1);let o=i.getCell(s+1);o&&o.getWidth()===0&&e++}return e}_bufferColsToStringOffset(t,e){let i=t,s=0,r=this._terminal.buffer.active.getLine(i);for(;e>0&&r;){for(let n=0;n<e&&n<this._terminal.cols;n++){let o=r.getCell(n);if(!o)break;o.getWidth()&&(s+=o.getCode()===0?1:o.getChars().length)}if(i++,r=this._terminal.buffer.active.getLine(i),r&&!r.isWrapped)break;e-=this._terminal.cols}return s}},Lf=class extends qt{constructor(t){super(),this._terminal=t,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(yi(()=>this.clearHighlightDecorations()))}createHighlightDecorations(t,e){this.clearHighlightDecorations();for(let i of t){let s=this._createResultDecorations(i,e,!1);if(s)for(let r of s)this._storeDecoration(r,i)}}createActiveDecoration(t,e){let i=this._createResultDecorations(t,e,!0);if(i)return{decorations:i,match:t,dispose(){qi(i)}}}clearHighlightDecorations(){qi(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(t,e){this._highlightedLines.add(t.marker.line),this._highlightDecorations.push({decoration:t,match:e,dispose(){t.dispose()}})}_applyStyles(t,e,i){t.classList.contains("xterm-find-result-decoration")||(t.classList.add("xterm-find-result-decoration"),e&&(t.style.outline=`1px solid ${e}`)),i&&t.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(t,e,i){let s=[],r=t.col,n=t.size,o=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+t.row;for(;n>0;){let l=Math.min(this._terminal.cols-r,n);s.push([o,r,l]),r=0,n-=l,o++}let a=[];for(let l of s){let h=this._terminal.registerMarker(l[0]),c=this._terminal.registerDecoration({marker:h,x:l[1],width:l[2],backgroundColor:i?e.activeMatchBackground:e.matchBackground,overviewRulerOptions:this._highlightedLines.has(h.line)?void 0:{color:i?e.activeMatchColorOverviewRuler:e.matchOverviewRuler,position:"center"}});if(c){let d=[];d.push(h),d.push(c.onRender(u=>this._applyStyles(u,i?e.activeMatchBorder:e.matchBorder,!1))),d.push(c.onDispose(()=>qi(d))),a.push(c)}}return a.length===0?void 0:a}},Mf=class extends qt{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new ut)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(t){this._selectedDecoration=t}updateResults(t,e){this._searchResults=t.slice(0,e)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(t){for(let e=0;e<this._searchResults.length;e++){let i=this._searchResults[e];if(i.row===t.row&&i.col===t.col&&i.size===t.size)return e}return-1}fireResultsChanged(t){if(!t)return;let e=-1;this._selectedDecoration&&(e=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:e,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},Tf=class extends qt{constructor(t){super(),this._highlightTimeout=this._register(new Rs),this._lineCache=this._register(new Rs),this._state=new kf,this._resultTracker=this._register(new Mf),this._highlightLimit=t?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(t){this._terminal=t,this._lineCache.value=new xf(t),this._engine=new Ef(t,this._lineCache.value),this._decorationManager=new Lf(t),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(yi(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=Bh(()=>{let t=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(t,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(t){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),t||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findNextAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_highlightAllMatches(t,e){if(!this._terminal||!this._engine||!this._decorationManager)throw new Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(t)){this.clearDecorations();return}this.clearDecorations(!0);let i=[],s,r=this._engine.find(t,0,0,e);for(;r&&(s?.row!==r.row||s?.col!==r.col)&&!(i.length>=this._highlightLimit);)s=r,i.push(s),r=this._engine.find(t,s.col+s.term.length>=this._terminal.cols?s.row+1:s.row,s.col+s.term.length>=this._terminal.cols?0:s.col+1,e);this._resultTracker.updateResults(i,this._highlightLimit),e.decorations&&this._decorationManager.createHighlightDecorations(i,e.decorations)}_findNextAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findNextWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}findPrevious(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findPreviousAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_fireResults(t){this._resultTracker.fireResultsChanged(!!t?.decorations)}_findPreviousAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findPreviousWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}_selectResult(t,e,i){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!t)return this._terminal.clearSelection(),!1;if(this._terminal.select(t.col,t.row,t.size),e){let s=this._decorationManager.createActiveDecoration(t,e);s&&(this._resultTracker.selectedDecoration=s)}if(!i&&(t.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||t.row<this._terminal.buffer.active.viewportY)){let s=t.row-this._terminal.buffer.active.viewportY;s-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(s)}return!0}};const Yt=new ji("TerminalStateMachine");var et=(t=>(t.UNINITIALIZED="uninitialized",t.INITIALIZING="initializing",t.CONNECTING="connecting",t.CONNECTED="connected",t.RECONNECTING="reconnecting",t.DISCONNECTED="disconnected",t.ERROR="error",t.DISPOSED="disposed",t))(et||{});class Rf{constructor(e){P(this,"currentState","uninitialized");P(this,"stateListeners",new Map);P(this,"transitionListeners",new Set);P(this,"errorHandlers",new Set);P(this,"transitions",[{from:["uninitialized"],to:"initializing",action:"initialize"},{from:["initializing"],to:"connecting",action:"connect"},{from:["connecting"],to:"connected",action:"connected"},{from:["disconnected","error"],to:"reconnecting",action:"reconnect"},{from:["reconnecting"],to:"connected",action:"reconnected"},{from:["connected","connecting"],to:"disconnected",action:"disconnect"},{from:["initializing","connecting","connected","reconnecting"],to:"error",action:"error"},{from:["uninitialized","initializing","connecting","connected","reconnecting","disconnected","error"],to:"disposed",action:"dispose"}]);this.terminalId=e}getState(){return this.currentState}canTransition(e){const i=this.transitions.find(s=>s.action===e&&s.from.includes(this.currentState));return!(!i||i.guard&&!i.guard())}transition(e){const i=this.transitions.find(r=>r.action===e&&r.from.includes(this.currentState));if(!i)return Yt.warn(`Invalid transition: ${e} from ${this.currentState}`),!1;if(i.guard&&!i.guard())return Yt.warn(`Guard failed for transition: ${e}`),!1;const s=this.currentState;return this.currentState=i.to,Yt.info(`Terminal ${this.terminalId}: ${s} -> ${this.currentState} (${e})`),this.notifyStateListeners(this.currentState),this.notifyTransitionListeners(s,this.currentState),!0}onStateChange(e,i){let s=this.stateListeners.get(e);return s||(s=new Set,this.stateListeners.set(e,s)),s.add(i),()=>{this.stateListeners.get(e)?.delete(i)}}onTransition(e){return this.transitionListeners.add(e),()=>{this.transitionListeners.delete(e)}}onError(e){return this.errorHandlers.add(e),()=>{this.errorHandlers.delete(e)}}reportError(e){Yt.error(`Terminal ${this.terminalId} error:`,e),this.errorHandlers.forEach(i=>{try{i(e)}catch(s){Yt.error("Error handler threw exception:",s)}}),this.currentState!=="disposed"&&this.transition("error")}isHealthy(){return["connected","connecting","reconnecting"].includes(this.currentState)}canAcceptInput(){return this.currentState==="connected"}isDisposed(){return this.currentState==="disposed"}notifyStateListeners(e){this.stateListeners.get(e)?.forEach(i=>{try{i()}catch(s){Yt.error("Error in state listener:",s)}})}notifyTransitionListeners(e,i){this.transitionListeners.forEach(s=>{try{s(e,i)}catch(r){Yt.error("Error in transition listener:",r)}})}dispose(){this.isDisposed()||this.transition("dispose"),this.stateListeners.clear(),this.transitionListeners.clear(),this.errorHandlers.clear()}}const ct=new ji("TerminalBufferManager"),Ln="terminal-buffer-index";let Jt=null,hn=0;const Df=5e3;function Mn(){const t=Date.now();if(Jt&&t-hn<Df)return Jt;try{const e=localStorage.getItem(Ln);if(e){const i=JSON.parse(e);Jt=new Map(i.map(s=>[s.key,s.timestamp]))}else Jt=new Map}catch{Jt=new Map}return hn=t,Jt}function Tn(t){try{const e=Array.from(t.entries()).map(([i,s])=>({key:i,timestamp:s}));localStorage.setItem(Ln,JSON.stringify(e)),Jt=t,hn=Date.now()}catch{}}function na(t,e){const i=Mn();i.set(t,e),Tn(i)}function oa(t){const e=Mn();e.delete(t),Tn(e)}const $e=class $e{constructor(e,i){P(this,"storageKey");P(this,"fallbackStorage",new Map);this.workspaceId=e,this.terminalId=i,this.storageKey=`terminal-buffer-${e}-${i}`}async saveBuffer(e,i,s){try{const n={lines:this.trimBuffer(e),cursorX:i,cursorY:s,timestamp:Date.now(),version:$e.BUFFER_VERSION};if(await this.hasStorageSpace(n))try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),na(this.storageKey,n.timestamp),ct.debug(`Saved buffer for terminal ${this.terminalId}`),!0}catch(o){return ct.warn("localStorage failed, using fallback storage:",o),this.fallbackStorage.set(this.storageKey,n),!0}else{await this.cleanupOldBuffers();try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),na(this.storageKey,n.timestamp),!0}catch{return this.fallbackStorage.set(this.storageKey,n),!0}}}catch(r){return ct.error("Failed to save buffer:",r),!1}}async restoreBuffer(){try{const e=localStorage.getItem(this.storageKey);if(e){const s=JSON.parse(e);if(this.isValidSnapshot(s))return ct.debug(`Restored buffer for terminal ${this.terminalId}`),s;localStorage.removeItem(this.storageKey)}const i=this.fallbackStorage.get(this.storageKey);return i&&this.isValidSnapshot(i)?i:null}catch(e){return ct.error("Failed to restore buffer:",e),null}}async clearBuffer(){try{localStorage.removeItem(this.storageKey),this.fallbackStorage.delete(this.storageKey),oa(this.storageKey)}catch(e){ct.error("Failed to clear buffer:",e)}}trimBuffer(e){for(;e.length>0&&!e[e.length-1].trim();)e.pop();return e.length>$e.MAX_BUFFER_SIZE&&(e=e.slice(-1e4)),e.map(i=>i.length>$e.MAX_LINE_LENGTH?`${i.substring(0,$e.MAX_LINE_LENGTH)}…`:i)}isValidSnapshot(e){return!(e.version!==$e.BUFFER_VERSION||Date.now()-e.timestamp>$e.RETENTION_PERIOD||!Array.isArray(e.lines))}async hasStorageSpace(e){try{const i=JSON.stringify(e).length;if("storage"in navigator&&"estimate"in navigator.storage){const s=await navigator.storage.estimate();return(s.quota||0)-(s.usage||0)>i+$e.STORAGE_QUOTA_BUFFER}return!0}catch{return!0}}async cleanupOldBuffers(){try{const e=[],i=Date.now(),s=Mn();for(const[r,n]of s)i-n>$e.RETENTION_PERIOD&&e.push(r);for(const r of e)localStorage.removeItem(r),oa(r),ct.debug(`Cleaned up old buffer: ${r}`);s.size===0&&await this.rebuildBufferIndex()}catch(e){ct.error("Failed to cleanup old buffers:",e)}}async rebuildBufferIndex(){try{const e=new Map;for(let i=0;i<localStorage.length;i++){const s=localStorage.key(i);if(s?.startsWith("terminal-buffer-")&&s!==Ln)try{const r=localStorage.getItem(s);if(r){const n=JSON.parse(r);e.set(s,n.timestamp)}}catch{}}e.size>0&&(Tn(e),ct.debug(`Rebuilt buffer index with ${e.size} entries`))}catch(e){ct.error("Failed to rebuild buffer index:",e)}}getStats(){try{const e=localStorage.getItem(this.storageKey);if(e){const i=JSON.parse(e);return{size:e.length,lineCount:i.lines.length,age:Date.now()-i.timestamp}}return null}catch{return null}}};P($e,"BUFFER_VERSION",1),P($e,"MAX_BUFFER_SIZE",1e4),P($e,"MAX_LINE_LENGTH",1e3),P($e,"RETENTION_PERIOD",1440*60*1e3),P($e,"STORAGE_QUOTA_BUFFER",100*1024);let Ds=$e;const Oi=new ji("TerminalThemeManager"),Se=class Se{constructor(e){P(this,"currentTheme");P(this,"customTerminalTheme",null);P(this,"themeObserver",null);P(this,"transitionTimeout",null);P(this,"darkModeQuery",null);P(this,"darkModeChangeHandler",null);P(this,"themeChangeHandler",null);this.container=e,this.currentTheme=this.detectSystemTheme(),this.setContainer(this.container??null),this.setupThemeObserver()}setContainer(e){this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.container&&this.container!==e&&(this.container.style.transition=""),this.container=e,this.container&&(this.container.style.backgroundColor=this.currentTheme.background||"transparent")}getCurrentTheme(){return this.currentTheme}applyTheme(e,i){const s=i||this.detectSystemTheme();if(s.name!==this.currentTheme.name)try{this.container&&(this.container.style.transition=`background-color ${Se.TRANSITION_DURATION}ms ease`),e.options.theme=s,this.container&&(this.container.style.backgroundColor=s.background||"transparent"),e.refresh(0,e.rows-1),this.currentTheme=s,Oi.debug(`Applied theme: ${s.name}`),this.transitionTimeout&&clearTimeout(this.transitionTimeout),this.transitionTimeout=setTimeout(()=>{this.container&&(this.container.style.transition="")},Se.TRANSITION_DURATION)}catch(r){Oi.error("Failed to apply theme:",r)}}detectSystemTheme(){if(this.customTerminalTheme)return this.customTerminalTheme;const e=document.documentElement.classList.contains("dark"),i=document.documentElement.classList.contains("light");if(e)return Se.DARK_THEME;if(i)return Se.LIGHT_THEME;const s=document.documentElement.getAttribute("data-theme");if(s==="dark")return Se.DARK_THEME;if(s==="light")return Se.LIGHT_THEME;const n=getComputedStyle(document.documentElement).getPropertyValue("--background").trim();return n&&this.isColorDark(n)||Nh.isDark()?Se.DARK_THEME:Se.LIGHT_THEME}isColorDark(e){const i=this.colorToRgb(e);return i?(.299*i.r+.587*i.g+.114*i.b)/255<.5:!1}colorToRgb(e){if(e.startsWith("#")){const s=e.slice(1);if(s.length===3)return{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16)};if(s.length===6)return{r:parseInt(s.slice(0,2),16),g:parseInt(s.slice(2,4),16),b:parseInt(s.slice(4,6),16)}}const i=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return i?{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3])}:null}setupThemeObserver(){typeof window>"u"||(this.themeObserver=new MutationObserver(e=>{for(const i of e)if(i.type==="attributes"){const s=i.attributeName;if(s==="class"||s==="data-theme"){const r=this.detectSystemTheme();r.name!==this.currentTheme.name&&(Oi.debug(`Theme change detected: ${this.currentTheme.name} -> ${r.name}`),Ui("terminal-theme-changed",{theme:r}))}}}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),this.darkModeQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.darkModeChangeHandler=()=>{Oi.debug("System theme preference changed");const e=this.detectSystemTheme();e.name!==this.currentTheme.name&&Ui("terminal-theme-changed",{theme:e})},this.darkModeQuery.addEventListener("change",this.darkModeChangeHandler),this.themeChangeHandler=e=>{const i=e.detail?.isDark,s=e.detail?.terminalColors;let r;s&&Object.keys(s).length>0?(r={...i?Se.DARK_THEME:Se.LIGHT_THEME,...s,name:"custom",isDark:i},this.customTerminalTheme=r):(this.customTerminalTheme=null,r=i?Se.DARK_THEME:Se.LIGHT_THEME),(r.name!==this.currentTheme.name||s)&&(Oi.debug(`App theme changed to ${r.name}`),Ui("terminal-theme-changed",{theme:r}))},window.addEventListener("theme-changed",this.themeChangeHandler))}dispose(){this.themeObserver&&(this.themeObserver.disconnect(),this.themeObserver=null),this.darkModeQuery&&this.darkModeChangeHandler&&(this.darkModeQuery.removeEventListener("change",this.darkModeChangeHandler),this.darkModeQuery=null,this.darkModeChangeHandler=null),this.themeChangeHandler&&(window.removeEventListener("theme-changed",this.themeChangeHandler),this.themeChangeHandler=null),this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.setContainer(null)}};P(Se,"TRANSITION_DURATION",200),P(Se,"DARK_THEME",{name:"sleek-dark",isDark:!0,background:"#0B0B0E",foreground:"#e4e4e7",cursor:"#fbbf24",cursorAccent:"#1a1a1a",selectionBackground:"#3f3f46",selectionForeground:"#F7F7F7",selectionInactiveBackground:"#27272a",black:"#18181b",red:"#ef4444",green:"#22c55e",yellow:"#eab308",blue:"#3b82f6",magenta:"#a855f7",cyan:"#06b6d4",white:"#d4d4d8",brightBlack:"#52525b",brightRed:"#f87171",brightGreen:"#4ade80",brightYellow:"#facc15",brightBlue:"#60a5fa",brightMagenta:"#c084fc",brightCyan:"#22d3ee",brightWhite:"#f4f4f5"}),P(Se,"LIGHT_THEME",{name:"sleek-light",isDark:!1,background:"#F7F7F8",foreground:"#18181b",cursor:"#f59e0b",cursorAccent:"#F7F7F7",selectionBackground:"#e4e4e7",selectionForeground:"#09090b",selectionInactiveBackground:"#f4f4f5",black:"#18181b",red:"#dc2626",green:"#16a34a",yellow:"#ca8a04",blue:"#2563eb",magenta:"#9333ea",cyan:"#0891b2",white:"#e4e4e7",brightBlack:"#71717a",brightRed:"#ef4444",brightGreen:"#22c55e",brightYellow:"#eab308",brightBlue:"#3b82f6",brightMagenta:"#a855f7",brightCyan:"#06b6d4",brightWhite:"#F7F7F7"});let ln=Se;const Ft="***",Bf="(?=[A-Za-z_])[A-Za-z0-9_]*(?:KEY|TOKEN|SECRET|PASSWORD|PASS|CREDENTIAL|AUTH|PWD)[A-Za-z0-9_]*",Af=new RegExp(`((?:^|(?<=\\s)|&&|;|\\|\\|)\\s*(?:export\\s+)?)(${Bf})(=)("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\\\`[^\\\`]*\\\`|\\S+)`,"gi"),Pf=/(-[Hh]\s+|--header\s+)(['"])(Authorization:\s*)[^'"]*(\2)/gi,Of=/([\w+.-]+:\/\/[^\s@]+):([^\s@]+)@(?=\S)/gi,If=/(curl\s+(?:\S+\s+)*(?:-u|--user)[=\s]\s*)(["']?)([^\s"':]+):([^\s"']+)\2/gi,$f=/(--(?:password|passwd|token|secret|api-key|api-token|auth-token|access-token|client-secret|private-key))(=)("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\S+)/gi,Ff=/(--(?:password|passwd|token|secret|api-key|api-token|auth-token|access-token|client-secret|private-key))\s+("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\S+)/gi,Nf=/((?:mysql|mongosh?|redis-cli|sshpass)\s+(?:\S+\s+)*-[pP])\s+(\S+)/gi,zf=/(mysql\s+(?:\S+\s+)*-[pP])(\S+)/gi;function Ut(t){if(!t)return t;let e=t;return e=e.replace(Pf,`$1$2Authorization: ${Ft}$4`),e=e.replace(If,`$1$2$3:${Ft}$2`),e=e.replace(Of,`$1:${Ft}@`),e=e.replace($f,`$1$2${Ft}`),e=e.replace(Ff,`$1 ${Ft}`),e=e.replace(Nf,`$1 ${Ft}`),e=e.replace(zf,`$1${Ft}`),e=e.replace(Af,`$1$2$3${Ft}`),e}function Op(t){try{const e=new URL(t);return`${e.origin}${e.pathname}`.substring(0,100)}catch{return""}}const Xt=zh("TerminalHistoryTracker"),Qt=class Qt{constructor(){P(this,"histories",new Map);P(this,"MAX_HISTORY_SIZE",10);P(this,"MAX_OUTPUT_LENGTH",500);P(this,"STORAGE_PREFIX","terminal-history-");P(this,"_updateCounter",$h(0));P(this,"updateCounter",{subscribe:this._updateCounter.subscribe});this.loadHistories()}notifyUpdate(){this._updateCounter.update(e=>e+1)}static getInstance(){return Qt.instance||(Qt.instance=new Qt),Qt.instance}getOrCreateHistory(e,i){let s=this.histories.get(e);return s||(s={terminalId:e,workspaceId:i,commands:[],currentOutput:"",isExecuting:!1},this.histories.set(e,s)),s}onCommandStart(e,i,s){const r=this.getOrCreateHistory(e,i),n=Ut(s);r.currentCommand=n,r.currentOutput="",r.isExecuting=!0,r.lastCommand=n,this.notifyUpdate(),Xt.debug(`Command started for terminal ${e}: ${n}`)}onOutput(e,i,s){const r=this.getOrCreateHistory(e,i);r.currentOutput.length<this.MAX_OUTPUT_LENGTH&&(r.currentOutput+=s,r.currentOutput.length>this.MAX_OUTPUT_LENGTH&&(r.currentOutput=`${r.currentOutput.substring(0,this.MAX_OUTPUT_LENGTH)}...`))}onCommandFinish(e,i){const s=this.getOrCreateHistory(e,i);if(s.currentCommand){const r=Ut(s.currentCommand),n={command:r,timestamp:Date.now(),output:s.currentOutput};s.commands.push(n),s.commands.length>this.MAX_HISTORY_SIZE&&(s.commands=s.commands.slice(-this.MAX_HISTORY_SIZE)),s.lastCommand=r,s.lastOutput=s.currentOutput,this.saveHistory(e,s),Xt.debug(`Command finished for terminal ${e}: ${r}`)}s.currentCommand=void 0,s.currentOutput="",s.isExecuting=!1,this.notifyUpdate()}getHistory(e){return this.histories.get(e)}getHistoriesForWorkspace(e){return Array.from(this.histories.values()).filter(i=>i.workspaceId===e)}getLastCommand(e){return this.histories.get(e)?.lastCommand}getLastOutput(e){return this.histories.get(e)?.lastOutput}saveHistory(e,i){try{const s=`${this.STORAGE_PREFIX}${e}`,r={terminalId:i.terminalId,workspaceId:i.workspaceId,commands:i.commands.slice(-5).map(n=>({...n,command:Ut(n.command)})),lastCommand:i.lastCommand?Ut(i.lastCommand):void 0,lastOutput:i.lastOutput?.substring(0,200)};localStorage.setItem(s,JSON.stringify(r))}catch(s){Xt.warn("Failed to save terminal history:",s)}}loadHistories(){try{const e=Object.keys(localStorage).filter(i=>i.startsWith(this.STORAGE_PREFIX));for(const i of e)try{const s=localStorage.getItem(i);if(s){const r=JSON.parse(s);r.terminalId&&this.histories.set(r.terminalId,{...r,currentOutput:"",isExecuting:!1,commands:r.commands||[]})}}catch(s){Xt.warn(`Failed to load terminal history for ${i}:`,s)}Xt.info(`Loaded ${this.histories.size} terminal histories from localStorage`)}catch(e){Xt.error("Failed to load terminal histories:",e)}}clearHistory(e){this.histories.delete(e);try{localStorage.removeItem(`${this.STORAGE_PREFIX}${e}`)}catch(i){Xt.warn("Failed to clear terminal history:",i)}}clearWorkspaceHistories(e){const i=[];for(const[s,r]of this.histories.entries())r.workspaceId===e&&i.push(s);for(const s of i)this.clearHistory(s)}};P(Qt,"instance");let cn=Qt;const Ii=cn.getInstance();function Wf(t,e){return setTimeout(()=>{try{t.dispose()}catch(i){if(e)e(i);else throw i}},0)}const Hf=["panel.focus-next-column","panel.focus-previous-column","global.next-space-alt","global.previous-space-alt"];function Uf(t,e,i){return Hf.some(s=>Vh(t,Gh(s,e),i))}const Kf=Tf,I=new ji("TerminalAdapter"),qf=typeof process<"u"&&process.platform==="win32",Vf=100,Ae=class Ae{constructor(e){P(this,"xterm");P(this,"fitAddon");P(this,"searchAddon");P(this,"webLinksAddon");P(this,"webglAddon",null);P(this,"stateMachine");P(this,"bufferManager");P(this,"themeManager");P(this,"terminalId");P(this,"workspaceId");P(this,"container");P(this,"eventListeners",[]);P(this,"resizeObserver",null);P(this,"reattachFitObserver",null);P(this,"reattachFitTimer",null);P(this,"visibilityObserver",null);P(this,"wasVisible",!0);P(this,"isVisible",!0);P(this,"lastFittedSize",null);P(this,"resizeDebounceTimer",null);P(this,"bufferSaveTimer",null);P(this,"dataDisposable",null);P(this,"resizeDisposable",null);P(this,"selectionDisposable",null);P(this,"ipcCleanup",null);P(this,"themeCleanup",null);P(this,"webglContextLostCleanup",null);P(this,"isDisposed",!1);P(this,"isXtermOpened",!1);P(this,"autoReconnectTimer",null);P(this,"autoReconnectAttempts",0);P(this,"heartbeatTimer",null);P(this,"webglRecoveryAttempts",0);P(this,"exitedNormally",!1);P(this,"lastCwd");P(this,"isExecuting",!1);P(this,"startTime",Date.now());P(this,"commandBuffer","");P(this,"currentLineBuffer","");P(this,"isAtPrompt",!1);P(this,"callbacks");P(this,"terminals");this.workspaceId=e.workspaceId,this.terminalId=e.terminalId||`terminal-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,this.container=e.container,this.terminals=(e.appClient??Fh).terminals,this.callbacks={onReady:e.onReady,onExit:e.onExit,onCommandStart:e.onCommandStart,onCommandFinished:e.onCommandFinished,onCwdChanged:e.onCwdChanged,onError:e.onError,onToggleSearch:e.onToggleSearch},this.stateMachine=new Rf(this.terminalId),this.setupStateMachineListeners(),this.bufferManager=new Ds(this.workspaceId,this.terminalId),this.themeManager=new ln(this.container);const i=e.fontFamily??Yh.select(Mt.state);this.xterm=new nu({allowProposedApi:!0,fontFamily:i,fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!0,cursorStyle:"block",cursorWidth:1,scrollback:1e4,allowTransparency:!0,windowsPty:qf?{backend:"conpty"}:void 0,macOptionIsMeta:!0,rightClickSelectsWord:!0,convertEol:!0,drawBoldTextInBrightColors:!0,scrollSensitivity:1,theme:this.themeManager.getCurrentTheme()}),this.fitAddon=new hu,this.xterm.loadAddon(this.fitAddon),this.webLinksAddon=new fu((s,r)=>{this.handleLinkClick(r)}),this.xterm.loadAddon(this.webLinksAddon),this.searchAddon=new Kf,this.xterm.loadAddon(this.searchAddon),this.searchAddon.onDidChangeResults(s=>{this.callbacks.onSearchResultsChange?.(s.resultIndex,s.resultCount)})}getSearchDecorations(){return{matchBackground:"#515c6a",matchBorder:"#515c6a",matchOverviewRuler:"#515c6a",activeMatchBackground:"#eab308",activeMatchBorder:"#ca8a04",activeMatchColorOverviewRuler:"#eab308"}}setupStateMachineListeners(){this.stateMachine.onTransition((e,i)=>{i===et.ERROR&&this.handleError(new Error(`Terminal entered error state from ${e}`)),(i===et.DISCONNECTED||i===et.ERROR)&&(this.stopHeartbeat(),this.exitedNormally||this.scheduleAutoReconnect()),i===et.CONNECTED&&(this.autoReconnectAttempts=0,this.cancelAutoReconnect(),this.startHeartbeat())}),this.stateMachine.onError(e=>{this.handleError(e)})}async initialize(e=!1){if(this.isDisposed)throw new Error("Cannot initialize disposed terminal");if(!this.container)throw new Error("Cannot initialize terminal without a container");const i=this.container;if(!this.stateMachine.canTransition("initialize"))throw new Error(`Cannot initialize terminal in state ${this.stateMachine.getState()}`);this.stateMachine.transition("initialize");try{this.isXtermOpened?I.warn(`[initialize] XTerm already opened for terminal ${this.terminalId}, skipping open()`):(this.xterm.open(i),this.isXtermOpened=!0,I.info(`[initialize] XTerm opened for terminal ${this.terminalId}`)),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer for light theme (better anti-aliasing)"),this.themeManager.applyTheme(this.xterm),this.fitTerminalToContainer()||(I.warn("Container has no dimensions, delaying fit"),setTimeout(()=>{this.fitTerminalToContainer()},100)),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.setupThemeChangeListener();const r=this.xterm.cols,n=this.xterm.rows,o=await this.findBackendTerminal(),a=o!==null;if(!e)if(a)try{const l=await this.terminals.getBuffer(this.terminalId,void 0,this.workspaceId);l&&(I.info(`Restoring ${l.length} bytes of buffered output from backend`),this.xterm.write(l),this.parseTerminalOutput(l))}catch(l){I.warn("Could not restore terminal buffer from backend:",l)}else{const l=await this.bufferManager.restoreBuffer();l&&(I.info("Restoring terminal buffer from local storage"),this.restoreFromSnapshot(l))}this.startBufferAutoSave(),this.stateMachine.transition("connect"),a?(this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.resize(r,n),o?.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.()):(I.debug(`[initialize] Terminal ${this.terminalId} creating new PTY`),await this.openPtyConnection(r,n)),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}catch(s){throw this.stateMachine.reportError(s),s}}async openPtyConnection(e,i){try{const s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||Fs.terminal_adapter_openFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(s){throw this.stateMachine.reportError(s),s}}async findBackendTerminal(){try{const{terminals:e}=await this.terminals.list(this.workspaceId);return e.find(i=>i.id===this.terminalId)??null}catch(e){return I.warn("Could not check terminal existence:",e),null}}async terminalExistsOnBackend(){return await this.findBackendTerminal()!==null}hideCursorOnExit(){this.isDisposed||(this.xterm.options.cursorBlink=!1,this.xterm.write("\x1B[?25l"))}restoreCursor(){this.isDisposed||(this.xterm.options.cursorBlink=!0,this.xterm.write("\x1B[?25h"))}setupXTermEventHandlers(){this.container&&(this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.resizeDisposable&&(this.resizeDisposable.dispose(),this.resizeDisposable=null),this.selectionDisposable&&(this.selectionDisposable.dispose(),this.selectionDisposable=null),this.xterm.attachCustomKeyEventHandler(e=>{const i=navigator.platform.toUpperCase().includes("MAC"),s=i?e.metaKey:e.ctrlKey;return e.metaKey&&e.key==="k"&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.clear(),!1):s&&e.key==="j"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&Mt.dispatch(An(this.workspaceId)),!1):s&&e.key==="f"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.callbacks.onToggleSearch?.(),!1):s&&(e.key==="t"||e.key==="T")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&Ui("workspace:new-terminal",{workspaceId:this.workspaceId}),!1):s&&(e.key==="w"||e.key==="W")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&Mt.dispatch(Hh(this.workspaceId)),!1):Uf(e,Mt.state.userPreferences?.shortcutOverrides??{},i)||s&&e.shiftKey&&!e.altKey&&(e.key==="]"||e.key==="}"||e.key==="["||e.key==="{")?!1:e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.key==="`"||e.key==="~")?(e.type==="keydown"&&(e.shiftKey||e.key==="~"?Ui("workspace:new-terminal",{workspaceId:this.workspaceId}):Mt.dispatch(An(this.workspaceId))),!1):!0}),this.dataDisposable=this.xterm.onData(e=>{this.isDisposed||this.write(e)}),this.resizeDisposable=this.xterm.onResize(({cols:e,rows:i})=>{!this.isDisposed&&this.stateMachine.canAcceptInput()&&this.resize(e,i)}),this.selectionDisposable=this.xterm.onSelectionChange(()=>{}))}setupIpcEventHandlers(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null);let e=!1;const i=this.terminals.subscribeEvents(this.terminalId,{onData:({chunk:s})=>{e||this.isDisposed||this.stateMachine.canAcceptInput()&&(this.xterm.write(s),this.parseTerminalOutput(s))},onExit:({exitCode:s})=>{e||this.isDisposed||(this.exitedNormally=!0,this.hideCursorOnExit(),this.callbacks.onExit?.(s),this.stateMachine.transition("disconnect"))},onCwd:({cwd:s})=>{e||this.isDisposed||(this.lastCwd=s,this.callbacks.onCwdChanged?.(s))}},this.workspaceId);this.ipcCleanup=()=>{e=!0;try{i()}catch(s){I.warn("Failed to unsubscribe terminal events:",s)}}}setupResizeObserver(){if(!this.container||!this.isVisible)return;const e=this.container;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e),this.setupVisibilityObserver()}setupVisibilityObserver(){if(!this.container)return;const e=this.container;this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.visibilityObserver=new IntersectionObserver(i=>{for(const s of i){const r=s.isIntersecting;r&&!this.wasVisible&&(I.debug(`[visibility] Terminal ${this.terminalId} became visible, reconnecting ResizeObserver`),this.resizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e)),this.fitTerminalToContainer()),this.wasVisible=r}}),this.visibilityObserver.observe(e)}loadWebglAddon(){this.disposeWebglAddon();try{this.webglAddon=new X_,this.xterm.loadAddon(this.webglAddon);const e=this.xterm.element?.querySelector("canvas");if(e){const i=s=>{s.preventDefault(),I.warn(`[WebGL] Context lost for terminal ${this.terminalId}, recovering...`),!this.isDisposed&&(this.disposeWebglAddon(),setTimeout(()=>{if(this.isDisposed)return;if(!this.themeManager.getCurrentTheme().isDark){I.info("[WebGL] Skipping WebGL recovery on light theme, using Canvas renderer");return}if(this.webglRecoveryAttempts>=Ae.MAX_WEBGL_RECOVERY_ATTEMPTS){I.warn(`[WebGL] Max recovery attempts (${Ae.MAX_WEBGL_RECOVERY_ATTEMPTS}) reached for terminal ${this.terminalId}, staying on Canvas renderer`);return}this.webglRecoveryAttempts++;try{this.loadWebglAddon(),I.info(`[WebGL] Successfully recovered from context loss (attempt ${this.webglRecoveryAttempts})`)}catch(n){I.warn("[WebGL] Failed to recover from context loss, falling back to Canvas renderer:",n),this.webglAddon=null}},100))};e.addEventListener("webglcontextlost",i),this.webglContextLostCleanup=()=>{e.removeEventListener("webglcontextlost",i)}}}catch(e){I.warn("Failed to load WebGL renderer, falling back to Canvas renderer:",e),this.webglAddon=null}}disposeWebglAddon(){if(this.webglContextLostCleanup&&(this.webglContextLostCleanup(),this.webglContextLostCleanup=null),this.webglAddon){try{this.webglAddon.dispose()}catch(e){I.warn("Error disposing WebGL addon:",e)}this.webglAddon=null}}setupThemeChangeListener(){this.themeCleanup&&(this.themeCleanup(),this.themeCleanup=null);const e=i=>{const s=i.detail?.theme;s&&this.xterm&&(I.info(`[Theme] Theme changed to: ${s.name} (isDark: ${s.isDark})`),this.themeManager.applyTheme(this.xterm,s),s.isDark?this.webglAddon||this.loadWebglAddon():this.webglAddon&&(this.disposeWebglAddon(),I.info("[WebGL] Disposed WebGL addon for light theme (using Canvas renderer)")))};window.addEventListener("terminal-theme-changed",e),this.themeCleanup=()=>{window.removeEventListener("terminal-theme-changed",e)}}parseTerminalOutput(e){Ii.onOutput(this.terminalId,this.workspaceId,e),e.includes("\x1B]133;C\x07")?(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Ii.onCommandFinish(this.terminalId,this.workspaceId)),this.commandBuffer="",this.isAtPrompt=!0):e.includes("\x1B]133;A\x07")&&(this.isExecuting||(this.isExecuting=!0,this.callbacks.onCommandStart?.()),this.isAtPrompt=!0,this.commandBuffer="");const i=/[\$%]\s*$/,s=/^.*[\$%]\s+(.+)$/,r=e.split(/\r?\n/);for(const o of r){const a=o.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b\][^\x1b]*\x1b\\/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x1b[=>]/g,"").replace(/\x1b[78]/g,"").replace(/\x1b[DME]/g,"").replace(/\x1b[HZ]/g,"").replace(/\x1b[c]/g,"").replace(/\[\?[0-9;]*[a-zA-Z]/g,"").replace(/\x07/g,"").replace(/\x00-\x08\x0b\x0c\x0e-\x1f/g,"").trim();if(!a||/^\[[\?0-9;]*[a-zA-Z]$/.test(a))continue;const l=a.match(s);if(l&&l[1]){const h=l[1].trim(),c=/^[a-zA-Z0-9.\/~]/.test(h);h.length>0&&!this.isExecuting&&c?(I.info(`[TerminalAdapter] Detected command from output: ${Ut(h)}`),Ii.onCommandStart(this.terminalId,this.workspaceId,h),this.isExecuting=!0,this.callbacks.onCommandStart?.()):h.length>0&&!c&&I.debug(`[TerminalAdapter] Skipping suspicious command detection: ${Ut(h)}`)}i.test(a)&&!l&&(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Ii.onCommandFinish(this.terminalId,this.workspaceId),I.debug(`[TerminalAdapter] Command finished, prompt detected: ${Ut(a)}`)),this.isAtPrompt=!0,this.commandBuffer="")}const n=e.match(/\x1b\]7;file:\/\/[^/]*([^\x07]*)\x07/);if(n){const o=decodeURIComponent(n[1]);o!==this.lastCwd&&(this.lastCwd=o,this.callbacks.onCwdChanged?.(o))}}startBufferAutoSave(){this.bufferSaveTimer=setInterval(()=>{this.stateMachine?.canAcceptInput()&&this.saveBuffer()},5e3)}async saveBuffer(){try{const e=this.xterm.buffer.active,i=[];for(let s=0;s<e.length;s++){const r=e.getLine(s);r&&i.push(r.translateToString(!0))}await this.bufferManager.saveBuffer(i,e.cursorX,e.cursorY)}catch(e){I.error("Failed to save buffer:",e)}}restoreFromSnapshot(e){if(e.lines&&e.lines.length>0){this.xterm.clear();const i=[...e.lines];for(;i.length>0&&i[i.length-1].trim()==="";)i.pop();const s=/[\$>#%]\s*$/,r=/@[\w-]+/;if(i.length>0){const n=i[i.length-1],o=i.length>1?i[i.length-2]:"";if(s.test(n)&&r.test(n))i.pop();else if(s.test(n)&&n.trim().length<80)i.pop(),i.length>0&&r.test(i[i.length-1])&&i.pop();else if(i.length>=2){const a=o+n;s.test(a)&&r.test(a)&&(i.pop(),i.pop())}}for(let n=0;n<i.length;n++)n<i.length-1?this.xterm.writeln(i[n]):i[n].trim()&&this.xterm.writeln(i[n]);I.debug(`Restored terminal buffer for ${this.terminalId} with ${i.length} lines (prompt removed)`)}}getCommandFromXtermBuffer(){try{const e=this.xterm.buffer.active,i=e.cursorY+e.baseY,s=e.getLine(i);if(!s)return null;const r=s.translateToString(!0);if(!r||!r.trim())return null;const n=r.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x07/g,"").trim();if(!n)return null;const o=n.match(/^.*[\$%#❯➜]\s+(.+)$/);return o&&o[1]?o[1].trim():null}catch{return null}}write(e){if(!(this.isDisposed||!this.stateMachine.canAcceptInput())){if(e==="\r"||e===`
|
|
142
142
|
`){const i=this.getCommandFromXtermBuffer(),s=i||this.commandBuffer.trim();s&&(Ii.onCommandStart(this.terminalId,this.workspaceId,s),this.isExecuting=!0,I.debug(`Command executed: ${Ut(s)}${i?" (from xterm buffer)":" (from keystroke buffer)"}`)),this.commandBuffer="",this.currentLineBuffer=""}else e===""||e==="\b"?this.commandBuffer.length>0&&(this.commandBuffer=this.commandBuffer.slice(0,-1)):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e.match(/[\x00-\x1F\x7F]/)||(this.commandBuffer+=e,this.currentLineBuffer+=e);this.terminals.write(this.terminalId,e,this.workspaceId).then(i=>{i.success||I.error(`[write] Terminal ${this.terminalId}: write failed - ${i.error}`)}).catch(i=>{I.error(`[write] Terminal ${this.terminalId}: transport error - ${i}`),this.isDisposed||this.stateMachine.reportError(i)})}}resize(e,i){this.isDisposed||!this.stateMachine.canAcceptInput()||this.terminals.resize(this.terminalId,e,i,this.workspaceId).catch(s=>{I.error("Failed to resize terminal:",s)})}focus(){!this.isDisposed&&this.isVisible&&this.xterm.focus()}blur(){this.isDisposed||this.xterm.blur()}setVisible(e){if(!(this.isDisposed||this.isVisible===e)){if(this.isVisible=e,this.wasVisible=e,!e){this.xterm.blur(),this.disconnectLayoutObservers();return}this.setupResizeObserver(),requestAnimationFrame(()=>this.fitTerminalToContainer())}}fitTerminalToContainer(){if(this.isDisposed||!this.isVisible||!this.container)return!1;const{width:e,height:i}=this.container.getBoundingClientRect();return e<=0||i<=0?!1:(this.lastFittedSize?.width===e&&this.lastFittedSize.height===i||(this.fitAddon.fit(),this.lastFittedSize={width:e,height:i}),!0)}disconnectLayoutObservers(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.visibilityObserver?.disconnect(),this.visibilityObserver=null,this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null)}fitAfterReattach(e){if(this.cancelReattachFit(),this.fitReattachedContainer(e))return;const i=new ResizeObserver(()=>{if(this.reattachFitObserver!==i){i.disconnect();return}this.hasReattachedContainerBox(e)&&(this.reattachFitTimer&&clearTimeout(this.reattachFitTimer),this.reattachFitTimer=setTimeout(()=>{this.reattachFitTimer=null,this.fitReattachedContainer(e)&&this.cancelReattachFit()},Vf))});this.reattachFitObserver=i,i.observe(e)}fitReattachedContainer(e){if(this.isDisposed||this.container!==e)return!0;if(!this.hasReattachedContainerBox(e))return!1;const{width:i,height:s}=e.getBoundingClientRect();return this.fitAddon.fit(),this.lastFittedSize={width:i,height:s},this.xterm.refresh(0,this.xterm.rows-1),!0}hasReattachedContainerBox(e){if(!this.isVisible)return!1;const{width:i,height:s}=e.getBoundingClientRect();return i>0&&s>0}cancelReattachFit(){this.reattachFitObserver?.disconnect(),this.reattachFitObserver=null,this.reattachFitTimer&&(clearTimeout(this.reattachFitTimer),this.reattachFitTimer=null)}clear(){this.isDisposed||this.xterm.clear()}async reattach(e){if(this.isDisposed||this.stateMachine.isDisposed())throw new Error("Cannot reattach disposed terminal");this.cancelAutoReconnect(),this.autoReconnectAttempts=0,this.webglRecoveryAttempts=0,this.exitedNormally=!1,this.setupIpcEventHandlers();const i=this.stateMachine.getState();if(i!==et.CONNECTED){I.info(`[reattach] Terminal ${this.terminalId} not in CONNECTED state (${i}), attempting to restore`);const n=await this.findBackendTerminal();n&&(i===et.DISCONNECTED||i===et.ERROR?(this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected")):i===et.CONNECTING&&this.stateMachine.transition("connected"),n.isExecuting===!1&&this.hideCursorOnExit(),I.info(`[reattach] Terminal ${this.terminalId} state restored to ${this.stateMachine.getState()}`))}const s=this.xterm.element;if(s){e.appendChild(s),this.container=e,this.themeManager.setContainer(e),this.disposeWebglAddon(),this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer after move (light theme)"),this.fitAfterReattach(e),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()});return}I.warn(`Could not move terminal element, recreating for terminal ${this.terminalId}`),this.container&&(this.container.innerHTML=""),this.disposeWebglAddon(),this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.container=e,this.themeManager.setContainer(e),this.isXtermOpened&&I.warn(`[reattach] XTerm was already opened for terminal ${this.terminalId}, calling open() again may cause duplicate handlers`),this.xterm.open(e),this.isXtermOpened=!0,this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer on reattach (light theme)"),this.fitAfterReattach(e),this.setupXTermEventHandlers(),this.setupResizeObserver(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}updateCallbacks(e){Object.assign(this.callbacks,e)}updateFontFamily(e){this.isDisposed||this.xterm.options.fontFamily!==e&&(this.xterm.options.fontFamily=e)}findNext(e,i){return this.searchAddon.findNext(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}findPrevious(e,i){return this.searchAddon.findPrevious(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}clearSearch(){this.searchAddon.clearDecorations()}getSelection(){return this.xterm.getSelection()}getInfo(){const e=this.bufferManager.getStats();return{id:this.terminalId,workspaceId:this.workspaceId,state:this.stateMachine.getState(),cwd:this.lastCwd,isExecuting:this.isExecuting,stats:e?{bufferSize:e.size,lineCount:e.lineCount,uptime:Date.now()-this.startTime}:void 0}}startHeartbeat(){this.heartbeatTimer||this.isDisposed||(I.debug(`[heartbeat] Starting for terminal ${this.terminalId} (every ${Ae.HEARTBEAT_INTERVAL_MS}ms)`),this.heartbeatTimer=setInterval(()=>{this.performHealthCheck()},Ae.HEARTBEAT_INTERVAL_MS))}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null,I.debug(`[heartbeat] Stopped for terminal ${this.terminalId}`))}async performHealthCheck(){if(this.isDisposed||!this.ipcCleanup||this.stateMachine.getState()!==et.CONNECTED)return;let e=null;try{const i=await Promise.race([this.terminalExistsOnBackend(),new Promise((s,r)=>{e=setTimeout(()=>r(new Error("Heartbeat timeout")),Ae.HEARTBEAT_TIMEOUT_MS)})]);if(e&&clearTimeout(e),this.isDisposed)return;i||(I.warn(`[heartbeat] Terminal ${this.terminalId}: PTY not found on backend, transitioning to DISCONNECTED`),this.stopHeartbeat(),this.stateMachine.transition("disconnect"))}catch(i){if(e&&clearTimeout(e),this.isDisposed)return;I.warn(`[heartbeat] Terminal ${this.terminalId}: health check failed:`,i),this.stopHeartbeat(),this.stateMachine.transition("disconnect")}}scheduleAutoReconnect(){if(this.isDisposed)return;if(this.autoReconnectAttempts>=Ae.MAX_RECONNECT_ATTEMPTS){I.warn(`[auto-reconnect] Terminal ${this.terminalId}: max reconnect attempts (${Ae.MAX_RECONNECT_ATTEMPTS}) reached, giving up`);return}this.cancelAutoReconnect();const e=Ae.BASE_RECONNECT_DELAY_MS*Math.pow(2,this.autoReconnectAttempts);this.autoReconnectAttempts++,I.info(`[auto-reconnect] Terminal ${this.terminalId}: scheduling attempt ${this.autoReconnectAttempts}/${Ae.MAX_RECONNECT_ATTEMPTS} in ${e}ms`),this.autoReconnectTimer=setTimeout(()=>{this.autoReconnectTimer=null,this.attemptAutoReconnect()},e)}cancelAutoReconnect(){this.autoReconnectTimer&&(clearTimeout(this.autoReconnectTimer),this.autoReconnectTimer=null)}async attemptAutoReconnect(){if(this.isDisposed)return;const e=this.stateMachine.getState();if(e!==et.DISCONNECTED&&e!==et.ERROR){I.debug(`[auto-reconnect] Terminal ${this.terminalId}: skipping, state is ${e}`);return}this.exitedNormally=!1,I.info(`[auto-reconnect] Terminal ${this.terminalId}: attempting reconnect (attempt ${this.autoReconnectAttempts})`);try{const i=await this.findBackendTerminal();if(this.isDisposed)return;i?(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY exists on backend, re-establishing connection`),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected"),this.xterm.cols&&this.xterm.rows&&this.resize(this.xterm.cols,this.xterm.rows),i.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: reconnected successfully`)):(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY not found, creating new PTY`),await this.reconnect(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: new PTY created successfully`))}catch(i){I.error(`[auto-reconnect] Terminal ${this.terminalId}: attempt ${this.autoReconnectAttempts} failed:`,i),this.scheduleAutoReconnect()}}handleError(e){I.error(`Terminal ${this.terminalId} error:`,e),this.callbacks.onError?.(e),this.isDisposed||this.xterm.writeln(`\r
|
|
143
143
|
\x1B[31m${Fs.terminal_adapter_errorLine_label({message:e.message})}\x1B[0m\r
|
|
144
|
-
`)}handleLinkClick(e){try{if(Wh(e)){I.debug("GitHub URL detected in terminal, opening in external browser",{uri:e,workspaceId:this.workspaceId}),Ns("shell:openExternal",{url:e});return}Bn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./
|
|
144
|
+
`)}handleLinkClick(e){try{if(Wh(e)){I.debug("GitHub URL detected in terminal, opening in external browser",{uri:e,workspaceId:this.workspaceId}),Ns("shell:openExternal",{url:e});return}Bn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./hO5lTYJC.js").then(s=>s.b);return{resolveBrowserLinkForOpen:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(({resolveBrowserLinkForOpen:i})=>i(e)).catch(()=>({url:e})).then(i=>{Bn(async()=>{const{getPanelLayoutManager:s}=await import("./BfHc_GyD.js").then(r=>r.p);return{getPanelLayoutManager:s}},__vite__mapDeps([25,17,18,3,19,20,13,5,8,2,11,26,27]),import.meta.url).then(({getPanelLayoutManager:s})=>{s(this.workspaceId).openBrowserPanel(i.url,void 0,void 0,i.requestedUrl),I.debug("Opened URL in browser panel",{uri:e,resolvedUrl:i.url,workspaceId:this.workspaceId})}).catch(s=>{I.warn("Failed to open URL in browser panel, falling back to external browser",{uri:e,error:s}),Ns("shell:openExternal",{url:i.url})})})}catch(i){I.warn("Failed to handle link click",{uri:e,error:i}),Ns("shell:openExternal",{url:e})}}async reconnect(){if(this.isDisposed)throw new Error("Cannot reconnect disposed terminal");if(!this.stateMachine.canTransition("reconnect"))throw new Error(`Cannot reconnect in state ${this.stateMachine.getState()}`);this.exitedNormally=!1,this.stateMachine.transition("reconnect");try{const e=this.xterm.cols,i=this.xterm.rows,s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||Fs.terminal_adapter_reconnectFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(e){throw this.stateMachine.reportError(e),e}}detach(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null),this.stopHeartbeat(),this.cancelAutoReconnect(),this.cancelReattachFit(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null);const e=this.xterm.element;e&&e.parentNode&&e.parentNode.removeChild(e),this.themeManager.setContainer(null),this.container=null}dispose(e={}){if(!(this.isDisposed||this.stateMachine.isDisposed())){if(this.isDisposed=!0,this.cancelAutoReconnect(),this.stopHeartbeat(),this.cancelReattachFit(),this.stateMachine.transition("dispose"),this.saveBuffer().catch(()=>{}),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.bufferSaveTimer&&(clearInterval(this.bufferSaveTimer),this.bufferSaveTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.dataDisposable){try{this.dataDisposable.dispose()}catch(i){I.error("Error disposing data handler:",i)}this.dataDisposable=null}if(this.resizeDisposable){try{this.resizeDisposable.dispose()}catch(i){I.error("Error disposing resize handler:",i)}this.resizeDisposable=null}if(this.selectionDisposable){try{this.selectionDisposable.dispose()}catch(i){I.error("Error disposing selection handler:",i)}this.selectionDisposable=null}if(this.ipcCleanup){try{this.ipcCleanup()}catch(i){I.error("Error cleaning up IPC handlers:",i)}this.ipcCleanup=null}if(this.themeCleanup){try{this.themeCleanup()}catch(i){I.error("Error cleaning up theme listener:",i)}this.themeCleanup=null}this.eventListeners.forEach(i=>{try{i()}catch(s){I.error("Error cleaning up event listener:",s)}}),this.eventListeners=[],e.killPty!==!1&&this.terminals.kill(this.terminalId,this.workspaceId).catch(i=>{I.error("Error killing PTY connection:",i)});try{this.searchAddon?.dispose&&this.searchAddon.dispose(),this.webLinksAddon?.dispose&&this.webLinksAddon.dispose(),this.disposeWebglAddon(),this.fitAddon?.dispose&&this.fitAddon.dispose()}catch(i){I.error("Error disposing addons:",i)}try{this.themeManager.dispose()}catch(i){I.error("Error disposing theme manager:",i)}try{this.stateMachine.dispose()}catch(i){I.error("Error disposing state machine:",i)}Wf(this.xterm,i=>{I.error("Error disposing xterm:",i)})}}};P(Ae,"MAX_RECONNECT_ATTEMPTS",5),P(Ae,"BASE_RECONNECT_DELAY_MS",1e3),P(Ae,"HEARTBEAT_INTERVAL_MS",3e4),P(Ae,"HEARTBEAT_TIMEOUT_MS",1e4),P(Ae,"MAX_WEBGL_RECOVERY_ATTEMPTS",3);let dn=Ae;const le=new ji("TerminalManager");class Gf{constructor(){P(this,"terminals",new Map)}saveTerminalMetadata(e,i,s){try{Mt.dispatch(Uh(i,e,s,new Date().toISOString())),le.debug(`[RendererTerminalManager] Saved terminal metadata for ${e}`)}catch(r){le.error("[RendererTerminalManager] Failed to save terminal metadata:",r)}}loadTerminalMetadata(e){try{return Xh.select(Mt.state,e).map(i=>({terminalId:i.id,workspaceId:i.workspaceId??e,createdAt:i.createdAt??"",title:i.customName||jh(i.name)}))}catch(i){le.error("[RendererTerminalManager] Failed to load terminal metadata:",i)}return[]}removeTerminalMetadata(e,i){try{Mt.dispatch(Kh(i,e)),le.debug(`[RendererTerminalManager] Removed terminal metadata for ${e}`)}catch(s){le.error("[RendererTerminalManager] Failed to remove terminal metadata:",s)}}hasTerminal(e){return this.terminals.has(e)}async getOrCreateTerminal(e,i,s,r,n=!1){let o=this.terminals.get(e);if(n&&o&&(le.info(`[RendererTerminalManager] Force creating new terminal, disposing existing: ${e}`),this.disposeTerminal(e),o=void 0),o)if(o.workspaceId!==i)le.warn(`[RendererTerminalManager] Terminal ${e} has mismatched workspaceId (has: ${o.workspaceId}, requested: ${i}). Disposing and recreating.`),this.disposeTerminal(e),o=void 0;else return le.info(`[RendererTerminalManager] Reattaching to existing terminal: ${e} (was attached: ${o.isAttached})`),o.container=s,o.isAttached=!0,await o.adapter.reattach(s),r&&(o.adapter.updateCallbacks(r),r.onReady?.()),le.info(`[RendererTerminalManager] Successfully reattached terminal: ${e}`),o.adapter;le.info(`[RendererTerminalManager] Creating new terminal: ${e}`);const a=new dn({workspaceId:i,terminalId:e,container:s,...r});return o={adapter:a,terminalId:e,workspaceId:i,isAttached:!0,container:s},this.terminals.set(e,o),this.saveTerminalMetadata(e,i),await a.initialize(n),a}isAttachedTo(e,i){const s=this.terminals.get(e);return!!s&&s.isAttached&&s.container===i}detachTerminal(e,i){const s=this.terminals.get(e);if(s){if(i&&s.container!==i){le.info(`[RendererTerminalManager] Ignoring detach from a stale surface: ${e}`);return}le.info(`[RendererTerminalManager] Detaching terminal: ${e}`),s.isAttached=!1,s.adapter.detach(),s.container=null}}disposeTerminal(e,i){const s=this.terminals.get(e);s?(le.info(`[RendererTerminalManager] Disposing terminal: ${e}`),s.adapter.dispose(),this.terminals.delete(e),this.removeTerminalMetadata(e,s.workspaceId)):Mt.dispatch(qh(e,i))}disposeExitedTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Disposing exited terminal: ${e}`),i.adapter.dispose({killPty:!1}),this.terminals.delete(e))}clearTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Clearing terminal: ${e}`),i.adapter.clear())}getTerminalInfo(e){const i=this.terminals.get(e);return i?i.adapter.getInfo():null}async getBufferContent(e,i){const s=this.terminals.get(e);if(s?.adapter)try{const r=s.adapter.xterm;if(r?.buffer?.active){const n=r.buffer.active,o=[];for(let a=0;a<n.length;a++){const l=n.getLine(a);l&&o.push(l.translateToString(!0))}for(;o.length>0&&!o[o.length-1].trim();)o.pop();if(o.length>0)return o.join(`
|
|
145
145
|
`)}}catch(r){le.warn("[RendererTerminalManager] Failed to read live buffer, falling back:",r)}try{const n=await new Ds(i,e).restoreBuffer();if(n&&n.lines.length>0){const o=[...n.lines];for(;o.length>0&&!o[o.length-1].trim();)o.pop();return o.join(`
|
|
146
146
|
`)}}catch(r){le.error("[RendererTerminalManager] Failed to read persisted buffer:",r)}return null}disposeWorkspaceTerminals(e){const i=[];for(const[s,r]of this.terminals)r.workspaceId===e&&i.push(s);if(i.length>0){le.info(`[RendererTerminalManager] Disposing ${i.length} terminals for workspace ${e}`);for(const s of i)try{const r=this.terminals.get(s);r&&(r.adapter.dispose(),this.terminals.delete(s))}catch(r){le.error(`[RendererTerminalManager] Failed to dispose terminal ${s}:`,r)}}}disposeAll(){le.info(`[RendererTerminalManager] Disposing all ${this.terminals.size} terminals`);for(const[e,i]of this.terminals)try{i.adapter.dispose()}catch(s){le.error(`[RendererTerminalManager] Failed to dispose terminal ${e}:`,s)}this.terminals.clear()}}typeof window<"u"&&!window.__terminalManager&&(window.__terminalManager=new Gf);const Yf=window.__terminalManager,Ip=Object.freeze(Object.defineProperty({__proto__:null,terminalManager:Yf},Symbol.toStringTag,{value:"Module"}));export{nu as D,fu as L,ln as T,Wf as a,Yf as b,Ip as c,Op as d,hu as o,Ut as s,Ii as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./Bal--q4v.js";import{p as f}from"./CWD3GqNk.js";import{M as c,c as d}from"./CN_OP-b-.js";import{a,ad as o}from"./BaqTNCTY.js";import"./WIFxQL3B.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as $n,b$ as Ye,ay as Jn,aD as Bn,a as jn,bL as yn,b2 as xe}from"./CJhZDVuE.js";import{b as ke,t as Nn,c as He,a as de}from"./Bi0GbwSO.js";import{i as We}from"./Gi6I4Gst.js";function mr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t<o||t===void 0&&o>=o)&&(t=o)}return t}function hr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t>o||t===void 0&&o>=o)&&(t=o)}return t}function Le(n){return n}var sn=1,Tn=2,Fn=3,cn=4,An=1e-6;function Ne(n){return"translate("+n+",0)"}function Ae(n){return"translate(0,"+n+")"}function Oe(n){return e=>+n(e)}function Ie(n,e){return e=Math.max(0,n.bandwidth()-e*2)/2,n.round()&&(e=Math.round(e)),t=>+n(t)+e}function ze(){return!this.__axis}function En(n,e){var t=[],r=null,o=null,a=6,i=6,T=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=n===sn||n===cn?-1:1,M=n===cn||n===Tn?"x":"y",v=n===sn||n===Fn?Ne:Ae;function f(l){var H=r??(e.ticks?e.ticks.apply(e,t):e.domain()),R=o??(e.tickFormat?e.tickFormat.apply(e,t):Le),Z=Math.max(a,0)+T,_=e.range(),V=+_[0]+C,b=+_[_.length-1]+C,S=(e.bandwidth?Ie:Oe)(e.copy(),C),L=l.selection?l.selection():l,s=L.selectAll(".domain").data([null]),p=L.selectAll(".tick").data(H,e).order(),P=p.exit(),j=p.enter().append("g").attr("class","tick"),q=p.select("line"),Q=p.select("text");s=s.merge(s.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(j),q=q.merge(j.append("line").attr("stroke","currentColor").attr(M+"2",m*a)),Q=Q.merge(j.append("text").attr("fill","currentColor").attr(M,m*Z).attr("dy",n===sn?"0em":n===Fn?"0.71em":"0.32em")),l!==L&&(s=s.transition(l),p=p.transition(l),q=q.transition(l),Q=Q.transition(l),P=P.transition(l).attr("opacity",An).attr("transform",function(d){return isFinite(d=S(d))?v(d+C):this.getAttribute("transform")}),j.attr("opacity",An).attr("transform",function(d){var E=this.parentNode.__axis;return v((E&&isFinite(E=E(d))?E:S(d))+C)})),P.remove(),s.attr("d",n===cn||n===Tn?i?"M"+m*i+","+V+"H"+C+"V"+b+"H"+m*i:"M"+C+","+V+"V"+b:i?"M"+V+","+m*i+"V"+C+"H"+b+"V"+m*i:"M"+V+","+C+"H"+b),p.attr("opacity",1).attr("transform",function(d){return v(S(d)+C)}),q.attr(M+"2",m*a),Q.attr(M,m*Z).text(R),L.filter(ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===Tn?"start":n===cn?"end":"middle"),L.each(function(){this.__axis=S})}return f.scale=function(l){return arguments.length?(e=l,f):e},f.ticks=function(){return t=Array.from(arguments),f},f.tickArguments=function(l){return arguments.length?(t=l==null?[]:Array.from(l),f):t.slice()},f.tickValues=function(l){return arguments.length?(r=l==null?null:Array.from(l),f):r&&r.slice()},f.tickFormat=function(l){return arguments.length?(o=l,f):o},f.tickSize=function(l){return arguments.length?(a=i=+l,f):a},f.tickSizeInner=function(l){return arguments.length?(a=+l,f):a},f.tickSizeOuter=function(l){return arguments.length?(i=+l,f):i},f.tickPadding=function(l){return arguments.length?(T=+l,f):T},f.offset=function(l){return arguments.length?(C=+l,f):C},f}function yr(n){return En(sn,n)}function Tr(n){return En(Fn,n)}const Ze=Math.PI/180,Ve=180/Math.PI,ln=18,Gn=.96422,Kn=1,ne=.82521,ee=4/29,nn=6/29,te=3*nn*nn,Pe=nn*nn*nn;function re(n){if(n instanceof W)return new W(n.l,n.a,n.b,n.opacity);if(n instanceof N)return ue(n);n instanceof $n||(n=Ye(n));var e=pn(n.r),t=pn(n.g),r=pn(n.b),o=Mn((.2225045*e+.7168786*t+.0606169*r)/Kn),a,i;return e===t&&t===r?a=i=o:(a=Mn((.4360747*e+.3850649*t+.1430804*r)/Gn),i=Mn((.0139322*e+.0971045*t+.7141733*r)/ne)),new W(116*o-16,500*(a-o),200*(o-i),n.opacity)}function Re(n,e,t,r){return arguments.length===1?re(n):new W(n,e,t,r??1)}function W(n,e,t,r){this.l=+n,this.a=+e,this.b=+t,this.opacity=+r}Jn(W,Re,Bn(jn,{brighter(n){return new W(this.l+ln*(n??1),this.a,this.b,this.opacity)},darker(n){return new W(this.l-ln*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=Gn*Cn(e),n=Kn*Cn(n),t=ne*Cn(t),new $n(Un(3.1338561*e-1.6168667*n-.4906146*t),Un(-.9787684*e+1.9161415*n+.033454*t),Un(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function Mn(n){return n>Pe?Math.pow(n,1/3):n/te+ee}function Cn(n){return n>nn?n*n*n:te*(n-ee)}function Un(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function pn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _e(n){if(n instanceof N)return new N(n.h,n.c,n.l,n.opacity);if(n instanceof W||(n=re(n)),n.a===0&&n.b===0)return new N(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var e=Math.atan2(n.b,n.a)*Ve;return new N(e<0?e+360:e,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Yn(n,e,t,r){return arguments.length===1?_e(n):new N(n,e,t,r??1)}function N(n,e,t,r){this.h=+n,this.c=+e,this.l=+t,this.opacity=+r}function ue(n){if(isNaN(n.h))return new W(n.l,0,0,n.opacity);var e=n.h*Ze;return new W(n.l,Math.cos(e)*n.c,Math.sin(e)*n.c,n.opacity)}Jn(N,Yn,Bn(jn,{brighter(n){return new N(this.h,this.c,this.l+ln*(n??1),this.opacity)},darker(n){return new N(this.h,this.c,this.l-ln*(n??1),this.opacity)},rgb(){return ue(this).rgb()}}));function qe(n){return function(e,t){var r=n((e=Yn(e)).h,(t=Yn(t)).h),o=yn(e.c,t.c),a=yn(e.l,t.l),i=yn(e.opacity,t.opacity);return function(T){return e.h=r(T),e.c=o(T),e.l=a(T),e.opacity=i(T),e+""}}}const Mr=qe(xe);function Qe(n,e){n=n.slice();var t=0,r=n.length-1,o=n[t],a=n[r],i;return a<o&&(i=t,t=r,r=i,i=o,o=a,a=i),n[t]=e.floor(o),n[r]=e.ceil(a),n}const Dn=new Date,wn=new Date;function D(n,e,t,r){function o(a){return n(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(n(a=new Date(+a)),a),o.ceil=a=>(n(a=new Date(a-1)),e(a,1),n(a),a),o.round=a=>{const i=o(a),T=o.ceil(a);return a-i<T-a?i:T},o.offset=(a,i)=>(e(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,T)=>{const C=[];if(a=o.ceil(a),T=T==null?1:Math.floor(T),!(a<i)||!(T>0))return C;let m;do C.push(m=new Date(+a)),e(a,T),n(a);while(m<a&&a<i);return C},o.filter=a=>D(i=>{if(i>=i)for(;n(i),!a(i);)i.setTime(i-1)},(i,T)=>{if(i>=i)if(T<0)for(;++T<=0;)for(;e(i,-1),!a(i););else for(;--T>=0;)for(;e(i,1),!a(i););}),t&&(o.count=(a,i)=>(Dn.setTime(+a),wn.setTime(+i),n(Dn),n(wn),Math.floor(t(Dn,wn))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const fn=D(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);fn.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?D(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):fn);fn.range;const A=1e3,k=A*60,O=k*60,I=O*24,xn=I*7,On=I*30,vn=I*365,K=D(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*A)},(n,e)=>(e-n)/A,n=>n.getUTCSeconds());K.range;const kn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getMinutes());kn.range;const Xe=D(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getUTCMinutes());Xe.range;const Hn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A-n.getMinutes()*k)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getHours());Hn.range;const $e=D(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getUTCHours());$e.range;const on=D(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*k)/I,n=>n.getDate()-1);on.range;const dn=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>n.getUTCDate()-1);dn.range;const Je=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>Math.floor(n/I));Je.range;function J(n){return D(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*k)/xn)}const hn=J(0),gn=J(1),Be=J(2),je=J(3),en=J(4),Ee=J(5),Ge=J(6);hn.range;gn.range;Be.range;je.range;en.range;Ee.range;Ge.range;function B(n){return D(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/xn)}const ae=B(0),mn=B(1),Ke=B(2),nt=B(3),tn=B(4),et=B(5),tt=B(6);ae.range;mn.range;Ke.range;nt.range;tn.range;et.range;tt.range;const Wn=D(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Wn.range;const rt=D(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());rt.range;const z=D(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());z.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)});z.range;const $=D(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());$.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)});$.range;function ut(n,e,t,r,o,a){const i=[[K,1,A],[K,5,5*A],[K,15,15*A],[K,30,30*A],[a,1,k],[a,5,5*k],[a,15,15*k],[a,30,30*k],[o,1,O],[o,3,3*O],[o,6,6*O],[o,12,12*O],[r,1,I],[r,2,2*I],[t,1,xn],[e,1,On],[e,3,3*On],[n,1,vn]];function T(m,M,v){const f=M<m;f&&([m,M]=[M,m]);const l=v&&typeof v.range=="function"?v:C(m,M,v),H=l?l.range(m,+M+1):[];return f?H.reverse():H}function C(m,M,v){const f=Math.abs(M-m)/v,l=ke(([,,Z])=>Z).right(i,f);if(l===i.length)return n.every(Nn(m/vn,M/vn,v));if(l===0)return fn.every(Math.max(Nn(m,M,v),1));const[H,R]=i[f/i[l-1][2]<i[l][2]/f?l-1:l];return H.every(R)}return[T,C]}const[at,ot]=ut(z,Wn,hn,on,Hn,kn);function bn(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Sn(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function rn(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function it(n){var e=n.dateTime,t=n.date,r=n.time,o=n.periods,a=n.days,i=n.shortDays,T=n.months,C=n.shortMonths,m=un(o),M=an(o),v=un(a),f=an(a),l=un(i),H=an(i),R=un(T),Z=an(T),_=un(C),V=an(C),b={a:ye,A:Te,b:Me,B:Ce,c:null,d:Rn,e:Rn,f:Ht,g:Vt,G:Rt,H:Yt,I:xt,j:kt,L:oe,m:dt,M:Wt,p:Ue,q:pe,Q:Qn,s:Xn,S:Lt,u:Nt,U:At,V:Ot,w:It,W:zt,x:null,X:null,y:Zt,Y:Pt,Z:_t,"%":qn},S={a:De,A:we,b:ve,B:be,c:null,d:_n,e:_n,f:$t,g:rr,G:ar,H:qt,I:Qt,j:Xt,L:ce,m:Jt,M:Bt,p:Se,q:Fe,Q:Qn,s:Xn,S:jt,u:Et,U:Gt,V:Kt,w:nr,W:er,x:null,X:null,y:tr,Y:ur,Z:or,"%":qn},L={a:q,A:Q,b:d,B:E,c:ge,d:Vn,e:Vn,f:vt,g:Zn,G:zn,H:Pn,I:Pn,j:Ut,L:wt,m:Ct,M:pt,p:j,q:Mt,Q:St,s:Ft,S:Dt,u:gt,U:mt,V:ht,w:ft,W:yt,x:me,X:he,y:Zn,Y:zn,Z:Tt,"%":bt};b.x=s(t,b),b.X=s(r,b),b.c=s(e,b),S.x=s(t,S),S.X=s(r,S),S.c=s(e,S);function s(c,g){return function(h){var u=[],F=-1,U=0,Y=c.length,x,X,Ln;for(h instanceof Date||(h=new Date(+h));++F<Y;)c.charCodeAt(F)===37&&(u.push(c.slice(U,F)),(X=In[x=c.charAt(++F)])!=null?x=c.charAt(++F):X=x==="e"?" ":"0",(Ln=g[x])&&(x=Ln(h,X)),u.push(x),U=F+1);return u.push(c.slice(U,F)),u.join("")}}function p(c,g){return function(h){var u=rn(1900,void 0,1),F=P(u,c,h+="",0),U,Y;if(F!=h.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(u.s*1e3+("L"in u?u.L:0));if(g&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+u.p*12),u.m===void 0&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(U=Sn(rn(u.y,0,1)),Y=U.getUTCDay(),U=Y>4||Y===0?mn.ceil(U):mn(U),U=dn.offset(U,(u.V-1)*7),u.y=U.getUTCFullYear(),u.m=U.getUTCMonth(),u.d=U.getUTCDate()+(u.w+6)%7):(U=bn(rn(u.y,0,1)),Y=U.getDay(),U=Y>4||Y===0?gn.ceil(U):gn(U),U=on.offset(U,(u.V-1)*7),u.y=U.getFullYear(),u.m=U.getMonth(),u.d=U.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Y="Z"in u?Sn(rn(u.y,0,1)).getUTCDay():bn(rn(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Y+5)%7:u.w+u.U*7-(Y+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Sn(u)):bn(u)}}function P(c,g,h,u){for(var F=0,U=g.length,Y=h.length,x,X;F<U;){if(u>=Y)return-1;if(x=g.charCodeAt(F++),x===37){if(x=g.charAt(F++),X=L[x in In?g.charAt(F++):x],!X||(u=X(c,h,u))<0)return-1}else if(x!=h.charCodeAt(u++))return-1}return u}function j(c,g,h){var u=m.exec(g.slice(h));return u?(c.p=M.get(u[0].toLowerCase()),h+u[0].length):-1}function q(c,g,h){var u=l.exec(g.slice(h));return u?(c.w=H.get(u[0].toLowerCase()),h+u[0].length):-1}function Q(c,g,h){var u=v.exec(g.slice(h));return u?(c.w=f.get(u[0].toLowerCase()),h+u[0].length):-1}function d(c,g,h){var u=_.exec(g.slice(h));return u?(c.m=V.get(u[0].toLowerCase()),h+u[0].length):-1}function E(c,g,h){var u=R.exec(g.slice(h));return u?(c.m=Z.get(u[0].toLowerCase()),h+u[0].length):-1}function ge(c,g,h){return P(c,e,g,h)}function me(c,g,h){return P(c,t,g,h)}function he(c,g,h){return P(c,r,g,h)}function ye(c){return i[c.getDay()]}function Te(c){return a[c.getDay()]}function Me(c){return C[c.getMonth()]}function Ce(c){return T[c.getMonth()]}function Ue(c){return o[+(c.getHours()>=12)]}function pe(c){return 1+~~(c.getMonth()/3)}function De(c){return i[c.getUTCDay()]}function we(c){return a[c.getUTCDay()]}function ve(c){return C[c.getUTCMonth()]}function be(c){return T[c.getUTCMonth()]}function Se(c){return o[+(c.getUTCHours()>=12)]}function Fe(c){return 1+~~(c.getUTCMonth()/3)}return{format:function(c){var g=s(c+="",b);return g.toString=function(){return c},g},parse:function(c){var g=p(c+="",!1);return g.toString=function(){return c},g},utcFormat:function(c){var g=s(c+="",S);return g.toString=function(){return c},g},utcParse:function(c){var g=p(c+="",!0);return g.toString=function(){return c},g}}}var In={"-":"",_:" ",0:"0"},w=/^\s*\d+/,ct=/^%/,st=/[\\^$*+?|[\]().{}]/g;function y(n,e,t){var r=n<0?"-":"",o=(r?-n:n)+"",a=o.length;return r+(a<t?new Array(t-a+1).join(e)+o:o)}function lt(n){return n.replace(st,"\\$&")}function un(n){return new RegExp("^(?:"+n.map(lt).join("|")+")","i")}function an(n){return new Map(n.map((e,t)=>[e.toLowerCase(),t]))}function ft(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.w=+r[0],t+r[0].length):-1}function gt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.u=+r[0],t+r[0].length):-1}function mt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.U=+r[0],t+r[0].length):-1}function ht(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.V=+r[0],t+r[0].length):-1}function yt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.W=+r[0],t+r[0].length):-1}function zn(n,e,t){var r=w.exec(e.slice(t,t+4));return r?(n.y=+r[0],t+r[0].length):-1}function Zn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),t+r[0].length):-1}function Tt(n,e,t){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),t+r[0].length):-1}function Mt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.q=r[0]*3-3,t+r[0].length):-1}function Ct(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.m=r[0]-1,t+r[0].length):-1}function Vn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.d=+r[0],t+r[0].length):-1}function Ut(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.m=0,n.d=+r[0],t+r[0].length):-1}function Pn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.H=+r[0],t+r[0].length):-1}function pt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.M=+r[0],t+r[0].length):-1}function Dt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.S=+r[0],t+r[0].length):-1}function wt(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.L=+r[0],t+r[0].length):-1}function vt(n,e,t){var r=w.exec(e.slice(t,t+6));return r?(n.L=Math.floor(r[0]/1e3),t+r[0].length):-1}function bt(n,e,t){var r=ct.exec(e.slice(t,t+1));return r?t+r[0].length:-1}function St(n,e,t){var r=w.exec(e.slice(t));return r?(n.Q=+r[0],t+r[0].length):-1}function Ft(n,e,t){var r=w.exec(e.slice(t));return r?(n.s=+r[0],t+r[0].length):-1}function Rn(n,e){return y(n.getDate(),e,2)}function Yt(n,e){return y(n.getHours(),e,2)}function xt(n,e){return y(n.getHours()%12||12,e,2)}function kt(n,e){return y(1+on.count(z(n),n),e,3)}function oe(n,e){return y(n.getMilliseconds(),e,3)}function Ht(n,e){return oe(n,e)+"000"}function dt(n,e){return y(n.getMonth()+1,e,2)}function Wt(n,e){return y(n.getMinutes(),e,2)}function Lt(n,e){return y(n.getSeconds(),e,2)}function Nt(n){var e=n.getDay();return e===0?7:e}function At(n,e){return y(hn.count(z(n)-1,n),e,2)}function ie(n){var e=n.getDay();return e>=4||e===0?en(n):en.ceil(n)}function Ot(n,e){return n=ie(n),y(en.count(z(n),n)+(z(n).getDay()===4),e,2)}function It(n){return n.getDay()}function zt(n,e){return y(gn.count(z(n)-1,n),e,2)}function Zt(n,e){return y(n.getFullYear()%100,e,2)}function Vt(n,e){return n=ie(n),y(n.getFullYear()%100,e,2)}function Pt(n,e){return y(n.getFullYear()%1e4,e,4)}function Rt(n,e){var t=n.getDay();return n=t>=4||t===0?en(n):en.ceil(n),y(n.getFullYear()%1e4,e,4)}function _t(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+y(e/60|0,"0",2)+y(e%60,"0",2)}function _n(n,e){return y(n.getUTCDate(),e,2)}function qt(n,e){return y(n.getUTCHours(),e,2)}function Qt(n,e){return y(n.getUTCHours()%12||12,e,2)}function Xt(n,e){return y(1+dn.count($(n),n),e,3)}function ce(n,e){return y(n.getUTCMilliseconds(),e,3)}function $t(n,e){return ce(n,e)+"000"}function Jt(n,e){return y(n.getUTCMonth()+1,e,2)}function Bt(n,e){return y(n.getUTCMinutes(),e,2)}function jt(n,e){return y(n.getUTCSeconds(),e,2)}function Et(n){var e=n.getUTCDay();return e===0?7:e}function Gt(n,e){return y(ae.count($(n)-1,n),e,2)}function se(n){var e=n.getUTCDay();return e>=4||e===0?tn(n):tn.ceil(n)}function Kt(n,e){return n=se(n),y(tn.count($(n),n)+($(n).getUTCDay()===4),e,2)}function nr(n){return n.getUTCDay()}function er(n,e){return y(mn.count($(n)-1,n),e,2)}function tr(n,e){return y(n.getUTCFullYear()%100,e,2)}function rr(n,e){return n=se(n),y(n.getUTCFullYear()%100,e,2)}function ur(n,e){return y(n.getUTCFullYear()%1e4,e,4)}function ar(n,e){var t=n.getUTCDay();return n=t>=4||t===0?tn(n):tn.ceil(n),y(n.getUTCFullYear()%1e4,e,4)}function or(){return"+0000"}function qn(){return"%"}function Qn(n){return+n}function Xn(n){return Math.floor(+n/1e3)}var G,le;ir({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ir(n){return G=it(n),le=G.format,G.parse,G.utcFormat,G.utcParse,G}function cr(n){return new Date(n)}function sr(n){return n instanceof Date?+n:+new Date(+n)}function fe(n,e,t,r,o,a,i,T,C,m){var M=He(),v=M.invert,f=M.domain,l=m(".%L"),H=m(":%S"),R=m("%I:%M"),Z=m("%I %p"),_=m("%a %d"),V=m("%b %d"),b=m("%B"),S=m("%Y");function L(s){return(C(s)<s?l:T(s)<s?H:i(s)<s?R:a(s)<s?Z:r(s)<s?o(s)<s?_:V:t(s)<s?b:S)(s)}return M.invert=function(s){return new Date(v(s))},M.domain=function(s){return arguments.length?f(Array.from(s,sr)):f().map(cr)},M.ticks=function(s){var p=f();return n(p[0],p[p.length-1],s??10)},M.tickFormat=function(s,p){return p==null?L:m(p)},M.nice=function(s){var p=f();return(!s||typeof s.range!="function")&&(s=e(p[0],p[p.length-1],s??10)),s?f(Qe(p,s)):M},M.copy=function(){return de(M,fe(n,e,t,r,o,a,i,T,C,m))},M}function Cr(){return We.apply(fe(at,ot,z,Wn,hn,on,Hn,kn,K,le).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Tr as a,yr as b,fn as c,hr as d,on as e,le as f,Ee as g,Hn as h,Mr as i,kn as j,gn as k,Wn as l,mr as m,Ge as n,hn as o,en as p,Be as q,je as r,K as s,Cr as t};
|
|
1
|
+
import{R as $n,b$ as Ye,ay as Jn,aD as Bn,a as jn,bL as yn,b2 as xe}from"./WIFxQL3B.js";import{b as ke,t as Nn,c as He,a as de}from"./DOIfYJL0.js";import{i as We}from"./Gi6I4Gst.js";function mr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t<o||t===void 0&&o>=o)&&(t=o)}return t}function hr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t>o||t===void 0&&o>=o)&&(t=o)}return t}function Le(n){return n}var sn=1,Tn=2,Fn=3,cn=4,An=1e-6;function Ne(n){return"translate("+n+",0)"}function Ae(n){return"translate(0,"+n+")"}function Oe(n){return e=>+n(e)}function Ie(n,e){return e=Math.max(0,n.bandwidth()-e*2)/2,n.round()&&(e=Math.round(e)),t=>+n(t)+e}function ze(){return!this.__axis}function En(n,e){var t=[],r=null,o=null,a=6,i=6,T=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=n===sn||n===cn?-1:1,M=n===cn||n===Tn?"x":"y",v=n===sn||n===Fn?Ne:Ae;function f(l){var H=r??(e.ticks?e.ticks.apply(e,t):e.domain()),R=o??(e.tickFormat?e.tickFormat.apply(e,t):Le),Z=Math.max(a,0)+T,_=e.range(),V=+_[0]+C,b=+_[_.length-1]+C,S=(e.bandwidth?Ie:Oe)(e.copy(),C),L=l.selection?l.selection():l,s=L.selectAll(".domain").data([null]),p=L.selectAll(".tick").data(H,e).order(),P=p.exit(),j=p.enter().append("g").attr("class","tick"),q=p.select("line"),Q=p.select("text");s=s.merge(s.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(j),q=q.merge(j.append("line").attr("stroke","currentColor").attr(M+"2",m*a)),Q=Q.merge(j.append("text").attr("fill","currentColor").attr(M,m*Z).attr("dy",n===sn?"0em":n===Fn?"0.71em":"0.32em")),l!==L&&(s=s.transition(l),p=p.transition(l),q=q.transition(l),Q=Q.transition(l),P=P.transition(l).attr("opacity",An).attr("transform",function(d){return isFinite(d=S(d))?v(d+C):this.getAttribute("transform")}),j.attr("opacity",An).attr("transform",function(d){var E=this.parentNode.__axis;return v((E&&isFinite(E=E(d))?E:S(d))+C)})),P.remove(),s.attr("d",n===cn||n===Tn?i?"M"+m*i+","+V+"H"+C+"V"+b+"H"+m*i:"M"+C+","+V+"V"+b:i?"M"+V+","+m*i+"V"+C+"H"+b+"V"+m*i:"M"+V+","+C+"H"+b),p.attr("opacity",1).attr("transform",function(d){return v(S(d)+C)}),q.attr(M+"2",m*a),Q.attr(M,m*Z).text(R),L.filter(ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===Tn?"start":n===cn?"end":"middle"),L.each(function(){this.__axis=S})}return f.scale=function(l){return arguments.length?(e=l,f):e},f.ticks=function(){return t=Array.from(arguments),f},f.tickArguments=function(l){return arguments.length?(t=l==null?[]:Array.from(l),f):t.slice()},f.tickValues=function(l){return arguments.length?(r=l==null?null:Array.from(l),f):r&&r.slice()},f.tickFormat=function(l){return arguments.length?(o=l,f):o},f.tickSize=function(l){return arguments.length?(a=i=+l,f):a},f.tickSizeInner=function(l){return arguments.length?(a=+l,f):a},f.tickSizeOuter=function(l){return arguments.length?(i=+l,f):i},f.tickPadding=function(l){return arguments.length?(T=+l,f):T},f.offset=function(l){return arguments.length?(C=+l,f):C},f}function yr(n){return En(sn,n)}function Tr(n){return En(Fn,n)}const Ze=Math.PI/180,Ve=180/Math.PI,ln=18,Gn=.96422,Kn=1,ne=.82521,ee=4/29,nn=6/29,te=3*nn*nn,Pe=nn*nn*nn;function re(n){if(n instanceof W)return new W(n.l,n.a,n.b,n.opacity);if(n instanceof N)return ue(n);n instanceof $n||(n=Ye(n));var e=pn(n.r),t=pn(n.g),r=pn(n.b),o=Mn((.2225045*e+.7168786*t+.0606169*r)/Kn),a,i;return e===t&&t===r?a=i=o:(a=Mn((.4360747*e+.3850649*t+.1430804*r)/Gn),i=Mn((.0139322*e+.0971045*t+.7141733*r)/ne)),new W(116*o-16,500*(a-o),200*(o-i),n.opacity)}function Re(n,e,t,r){return arguments.length===1?re(n):new W(n,e,t,r??1)}function W(n,e,t,r){this.l=+n,this.a=+e,this.b=+t,this.opacity=+r}Jn(W,Re,Bn(jn,{brighter(n){return new W(this.l+ln*(n??1),this.a,this.b,this.opacity)},darker(n){return new W(this.l-ln*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=Gn*Cn(e),n=Kn*Cn(n),t=ne*Cn(t),new $n(Un(3.1338561*e-1.6168667*n-.4906146*t),Un(-.9787684*e+1.9161415*n+.033454*t),Un(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function Mn(n){return n>Pe?Math.pow(n,1/3):n/te+ee}function Cn(n){return n>nn?n*n*n:te*(n-ee)}function Un(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function pn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _e(n){if(n instanceof N)return new N(n.h,n.c,n.l,n.opacity);if(n instanceof W||(n=re(n)),n.a===0&&n.b===0)return new N(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var e=Math.atan2(n.b,n.a)*Ve;return new N(e<0?e+360:e,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Yn(n,e,t,r){return arguments.length===1?_e(n):new N(n,e,t,r??1)}function N(n,e,t,r){this.h=+n,this.c=+e,this.l=+t,this.opacity=+r}function ue(n){if(isNaN(n.h))return new W(n.l,0,0,n.opacity);var e=n.h*Ze;return new W(n.l,Math.cos(e)*n.c,Math.sin(e)*n.c,n.opacity)}Jn(N,Yn,Bn(jn,{brighter(n){return new N(this.h,this.c,this.l+ln*(n??1),this.opacity)},darker(n){return new N(this.h,this.c,this.l-ln*(n??1),this.opacity)},rgb(){return ue(this).rgb()}}));function qe(n){return function(e,t){var r=n((e=Yn(e)).h,(t=Yn(t)).h),o=yn(e.c,t.c),a=yn(e.l,t.l),i=yn(e.opacity,t.opacity);return function(T){return e.h=r(T),e.c=o(T),e.l=a(T),e.opacity=i(T),e+""}}}const Mr=qe(xe);function Qe(n,e){n=n.slice();var t=0,r=n.length-1,o=n[t],a=n[r],i;return a<o&&(i=t,t=r,r=i,i=o,o=a,a=i),n[t]=e.floor(o),n[r]=e.ceil(a),n}const Dn=new Date,wn=new Date;function D(n,e,t,r){function o(a){return n(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(n(a=new Date(+a)),a),o.ceil=a=>(n(a=new Date(a-1)),e(a,1),n(a),a),o.round=a=>{const i=o(a),T=o.ceil(a);return a-i<T-a?i:T},o.offset=(a,i)=>(e(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,T)=>{const C=[];if(a=o.ceil(a),T=T==null?1:Math.floor(T),!(a<i)||!(T>0))return C;let m;do C.push(m=new Date(+a)),e(a,T),n(a);while(m<a&&a<i);return C},o.filter=a=>D(i=>{if(i>=i)for(;n(i),!a(i);)i.setTime(i-1)},(i,T)=>{if(i>=i)if(T<0)for(;++T<=0;)for(;e(i,-1),!a(i););else for(;--T>=0;)for(;e(i,1),!a(i););}),t&&(o.count=(a,i)=>(Dn.setTime(+a),wn.setTime(+i),n(Dn),n(wn),Math.floor(t(Dn,wn))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const fn=D(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);fn.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?D(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):fn);fn.range;const A=1e3,k=A*60,O=k*60,I=O*24,xn=I*7,On=I*30,vn=I*365,K=D(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*A)},(n,e)=>(e-n)/A,n=>n.getUTCSeconds());K.range;const kn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getMinutes());kn.range;const Xe=D(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getUTCMinutes());Xe.range;const Hn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A-n.getMinutes()*k)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getHours());Hn.range;const $e=D(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getUTCHours());$e.range;const on=D(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*k)/I,n=>n.getDate()-1);on.range;const dn=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>n.getUTCDate()-1);dn.range;const Je=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>Math.floor(n/I));Je.range;function J(n){return D(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*k)/xn)}const hn=J(0),gn=J(1),Be=J(2),je=J(3),en=J(4),Ee=J(5),Ge=J(6);hn.range;gn.range;Be.range;je.range;en.range;Ee.range;Ge.range;function B(n){return D(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/xn)}const ae=B(0),mn=B(1),Ke=B(2),nt=B(3),tn=B(4),et=B(5),tt=B(6);ae.range;mn.range;Ke.range;nt.range;tn.range;et.range;tt.range;const Wn=D(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Wn.range;const rt=D(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());rt.range;const z=D(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());z.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)});z.range;const $=D(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());$.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)});$.range;function ut(n,e,t,r,o,a){const i=[[K,1,A],[K,5,5*A],[K,15,15*A],[K,30,30*A],[a,1,k],[a,5,5*k],[a,15,15*k],[a,30,30*k],[o,1,O],[o,3,3*O],[o,6,6*O],[o,12,12*O],[r,1,I],[r,2,2*I],[t,1,xn],[e,1,On],[e,3,3*On],[n,1,vn]];function T(m,M,v){const f=M<m;f&&([m,M]=[M,m]);const l=v&&typeof v.range=="function"?v:C(m,M,v),H=l?l.range(m,+M+1):[];return f?H.reverse():H}function C(m,M,v){const f=Math.abs(M-m)/v,l=ke(([,,Z])=>Z).right(i,f);if(l===i.length)return n.every(Nn(m/vn,M/vn,v));if(l===0)return fn.every(Math.max(Nn(m,M,v),1));const[H,R]=i[f/i[l-1][2]<i[l][2]/f?l-1:l];return H.every(R)}return[T,C]}const[at,ot]=ut(z,Wn,hn,on,Hn,kn);function bn(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Sn(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function rn(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function it(n){var e=n.dateTime,t=n.date,r=n.time,o=n.periods,a=n.days,i=n.shortDays,T=n.months,C=n.shortMonths,m=un(o),M=an(o),v=un(a),f=an(a),l=un(i),H=an(i),R=un(T),Z=an(T),_=un(C),V=an(C),b={a:ye,A:Te,b:Me,B:Ce,c:null,d:Rn,e:Rn,f:Ht,g:Vt,G:Rt,H:Yt,I:xt,j:kt,L:oe,m:dt,M:Wt,p:Ue,q:pe,Q:Qn,s:Xn,S:Lt,u:Nt,U:At,V:Ot,w:It,W:zt,x:null,X:null,y:Zt,Y:Pt,Z:_t,"%":qn},S={a:De,A:we,b:ve,B:be,c:null,d:_n,e:_n,f:$t,g:rr,G:ar,H:qt,I:Qt,j:Xt,L:ce,m:Jt,M:Bt,p:Se,q:Fe,Q:Qn,s:Xn,S:jt,u:Et,U:Gt,V:Kt,w:nr,W:er,x:null,X:null,y:tr,Y:ur,Z:or,"%":qn},L={a:q,A:Q,b:d,B:E,c:ge,d:Vn,e:Vn,f:vt,g:Zn,G:zn,H:Pn,I:Pn,j:Ut,L:wt,m:Ct,M:pt,p:j,q:Mt,Q:St,s:Ft,S:Dt,u:gt,U:mt,V:ht,w:ft,W:yt,x:me,X:he,y:Zn,Y:zn,Z:Tt,"%":bt};b.x=s(t,b),b.X=s(r,b),b.c=s(e,b),S.x=s(t,S),S.X=s(r,S),S.c=s(e,S);function s(c,g){return function(h){var u=[],F=-1,U=0,Y=c.length,x,X,Ln;for(h instanceof Date||(h=new Date(+h));++F<Y;)c.charCodeAt(F)===37&&(u.push(c.slice(U,F)),(X=In[x=c.charAt(++F)])!=null?x=c.charAt(++F):X=x==="e"?" ":"0",(Ln=g[x])&&(x=Ln(h,X)),u.push(x),U=F+1);return u.push(c.slice(U,F)),u.join("")}}function p(c,g){return function(h){var u=rn(1900,void 0,1),F=P(u,c,h+="",0),U,Y;if(F!=h.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(u.s*1e3+("L"in u?u.L:0));if(g&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+u.p*12),u.m===void 0&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(U=Sn(rn(u.y,0,1)),Y=U.getUTCDay(),U=Y>4||Y===0?mn.ceil(U):mn(U),U=dn.offset(U,(u.V-1)*7),u.y=U.getUTCFullYear(),u.m=U.getUTCMonth(),u.d=U.getUTCDate()+(u.w+6)%7):(U=bn(rn(u.y,0,1)),Y=U.getDay(),U=Y>4||Y===0?gn.ceil(U):gn(U),U=on.offset(U,(u.V-1)*7),u.y=U.getFullYear(),u.m=U.getMonth(),u.d=U.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Y="Z"in u?Sn(rn(u.y,0,1)).getUTCDay():bn(rn(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Y+5)%7:u.w+u.U*7-(Y+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Sn(u)):bn(u)}}function P(c,g,h,u){for(var F=0,U=g.length,Y=h.length,x,X;F<U;){if(u>=Y)return-1;if(x=g.charCodeAt(F++),x===37){if(x=g.charAt(F++),X=L[x in In?g.charAt(F++):x],!X||(u=X(c,h,u))<0)return-1}else if(x!=h.charCodeAt(u++))return-1}return u}function j(c,g,h){var u=m.exec(g.slice(h));return u?(c.p=M.get(u[0].toLowerCase()),h+u[0].length):-1}function q(c,g,h){var u=l.exec(g.slice(h));return u?(c.w=H.get(u[0].toLowerCase()),h+u[0].length):-1}function Q(c,g,h){var u=v.exec(g.slice(h));return u?(c.w=f.get(u[0].toLowerCase()),h+u[0].length):-1}function d(c,g,h){var u=_.exec(g.slice(h));return u?(c.m=V.get(u[0].toLowerCase()),h+u[0].length):-1}function E(c,g,h){var u=R.exec(g.slice(h));return u?(c.m=Z.get(u[0].toLowerCase()),h+u[0].length):-1}function ge(c,g,h){return P(c,e,g,h)}function me(c,g,h){return P(c,t,g,h)}function he(c,g,h){return P(c,r,g,h)}function ye(c){return i[c.getDay()]}function Te(c){return a[c.getDay()]}function Me(c){return C[c.getMonth()]}function Ce(c){return T[c.getMonth()]}function Ue(c){return o[+(c.getHours()>=12)]}function pe(c){return 1+~~(c.getMonth()/3)}function De(c){return i[c.getUTCDay()]}function we(c){return a[c.getUTCDay()]}function ve(c){return C[c.getUTCMonth()]}function be(c){return T[c.getUTCMonth()]}function Se(c){return o[+(c.getUTCHours()>=12)]}function Fe(c){return 1+~~(c.getUTCMonth()/3)}return{format:function(c){var g=s(c+="",b);return g.toString=function(){return c},g},parse:function(c){var g=p(c+="",!1);return g.toString=function(){return c},g},utcFormat:function(c){var g=s(c+="",S);return g.toString=function(){return c},g},utcParse:function(c){var g=p(c+="",!0);return g.toString=function(){return c},g}}}var In={"-":"",_:" ",0:"0"},w=/^\s*\d+/,ct=/^%/,st=/[\\^$*+?|[\]().{}]/g;function y(n,e,t){var r=n<0?"-":"",o=(r?-n:n)+"",a=o.length;return r+(a<t?new Array(t-a+1).join(e)+o:o)}function lt(n){return n.replace(st,"\\$&")}function un(n){return new RegExp("^(?:"+n.map(lt).join("|")+")","i")}function an(n){return new Map(n.map((e,t)=>[e.toLowerCase(),t]))}function ft(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.w=+r[0],t+r[0].length):-1}function gt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.u=+r[0],t+r[0].length):-1}function mt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.U=+r[0],t+r[0].length):-1}function ht(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.V=+r[0],t+r[0].length):-1}function yt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.W=+r[0],t+r[0].length):-1}function zn(n,e,t){var r=w.exec(e.slice(t,t+4));return r?(n.y=+r[0],t+r[0].length):-1}function Zn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),t+r[0].length):-1}function Tt(n,e,t){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),t+r[0].length):-1}function Mt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.q=r[0]*3-3,t+r[0].length):-1}function Ct(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.m=r[0]-1,t+r[0].length):-1}function Vn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.d=+r[0],t+r[0].length):-1}function Ut(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.m=0,n.d=+r[0],t+r[0].length):-1}function Pn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.H=+r[0],t+r[0].length):-1}function pt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.M=+r[0],t+r[0].length):-1}function Dt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.S=+r[0],t+r[0].length):-1}function wt(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.L=+r[0],t+r[0].length):-1}function vt(n,e,t){var r=w.exec(e.slice(t,t+6));return r?(n.L=Math.floor(r[0]/1e3),t+r[0].length):-1}function bt(n,e,t){var r=ct.exec(e.slice(t,t+1));return r?t+r[0].length:-1}function St(n,e,t){var r=w.exec(e.slice(t));return r?(n.Q=+r[0],t+r[0].length):-1}function Ft(n,e,t){var r=w.exec(e.slice(t));return r?(n.s=+r[0],t+r[0].length):-1}function Rn(n,e){return y(n.getDate(),e,2)}function Yt(n,e){return y(n.getHours(),e,2)}function xt(n,e){return y(n.getHours()%12||12,e,2)}function kt(n,e){return y(1+on.count(z(n),n),e,3)}function oe(n,e){return y(n.getMilliseconds(),e,3)}function Ht(n,e){return oe(n,e)+"000"}function dt(n,e){return y(n.getMonth()+1,e,2)}function Wt(n,e){return y(n.getMinutes(),e,2)}function Lt(n,e){return y(n.getSeconds(),e,2)}function Nt(n){var e=n.getDay();return e===0?7:e}function At(n,e){return y(hn.count(z(n)-1,n),e,2)}function ie(n){var e=n.getDay();return e>=4||e===0?en(n):en.ceil(n)}function Ot(n,e){return n=ie(n),y(en.count(z(n),n)+(z(n).getDay()===4),e,2)}function It(n){return n.getDay()}function zt(n,e){return y(gn.count(z(n)-1,n),e,2)}function Zt(n,e){return y(n.getFullYear()%100,e,2)}function Vt(n,e){return n=ie(n),y(n.getFullYear()%100,e,2)}function Pt(n,e){return y(n.getFullYear()%1e4,e,4)}function Rt(n,e){var t=n.getDay();return n=t>=4||t===0?en(n):en.ceil(n),y(n.getFullYear()%1e4,e,4)}function _t(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+y(e/60|0,"0",2)+y(e%60,"0",2)}function _n(n,e){return y(n.getUTCDate(),e,2)}function qt(n,e){return y(n.getUTCHours(),e,2)}function Qt(n,e){return y(n.getUTCHours()%12||12,e,2)}function Xt(n,e){return y(1+dn.count($(n),n),e,3)}function ce(n,e){return y(n.getUTCMilliseconds(),e,3)}function $t(n,e){return ce(n,e)+"000"}function Jt(n,e){return y(n.getUTCMonth()+1,e,2)}function Bt(n,e){return y(n.getUTCMinutes(),e,2)}function jt(n,e){return y(n.getUTCSeconds(),e,2)}function Et(n){var e=n.getUTCDay();return e===0?7:e}function Gt(n,e){return y(ae.count($(n)-1,n),e,2)}function se(n){var e=n.getUTCDay();return e>=4||e===0?tn(n):tn.ceil(n)}function Kt(n,e){return n=se(n),y(tn.count($(n),n)+($(n).getUTCDay()===4),e,2)}function nr(n){return n.getUTCDay()}function er(n,e){return y(mn.count($(n)-1,n),e,2)}function tr(n,e){return y(n.getUTCFullYear()%100,e,2)}function rr(n,e){return n=se(n),y(n.getUTCFullYear()%100,e,2)}function ur(n,e){return y(n.getUTCFullYear()%1e4,e,4)}function ar(n,e){var t=n.getUTCDay();return n=t>=4||t===0?tn(n):tn.ceil(n),y(n.getUTCFullYear()%1e4,e,4)}function or(){return"+0000"}function qn(){return"%"}function Qn(n){return+n}function Xn(n){return Math.floor(+n/1e3)}var G,le;ir({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ir(n){return G=it(n),le=G.format,G.parse,G.utcFormat,G.utcParse,G}function cr(n){return new Date(n)}function sr(n){return n instanceof Date?+n:+new Date(+n)}function fe(n,e,t,r,o,a,i,T,C,m){var M=He(),v=M.invert,f=M.domain,l=m(".%L"),H=m(":%S"),R=m("%I:%M"),Z=m("%I %p"),_=m("%a %d"),V=m("%b %d"),b=m("%B"),S=m("%Y");function L(s){return(C(s)<s?l:T(s)<s?H:i(s)<s?R:a(s)<s?Z:r(s)<s?o(s)<s?_:V:t(s)<s?b:S)(s)}return M.invert=function(s){return new Date(v(s))},M.domain=function(s){return arguments.length?f(Array.from(s,sr)):f().map(cr)},M.ticks=function(s){var p=f();return n(p[0],p[p.length-1],s??10)},M.tickFormat=function(s,p){return p==null?L:m(p)},M.nice=function(s){var p=f();return(!s||typeof s.range!="function")&&(s=e(p[0],p[p.length-1],s??10)),s?f(Qe(p,s)):M},M.copy=function(){return de(M,fe(n,e,t,r,o,a,i,T,C,m))},M}function Cr(){return We.apply(fe(at,ot,z,Wn,hn,on,Hn,kn,K,le).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Tr as a,yr as b,fn as c,hr as d,on as e,le as f,Ee as g,Hn as h,Mr as i,kn as j,gn as k,Wn as l,mr as m,Ge as n,hn as o,en as p,Be as q,je as r,K as s,Cr as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as o,aN as pt,bk as Ct,by as Rt,as as Wt,aO as gt,bC as E,c4 as Pt,bQ as Bt,cd as ft,c3 as X,e as Vt,a3 as Ft,a0 as Ot}from"./
|
|
1
|
+
import{f as o,aN as pt,bk as Ct,by as Rt,as as Wt,aO as gt,bC as E,c4 as Pt,bQ as Bt,cd as ft,c3 as X,e as Vt,a3 as Ft,a0 as Ot}from"./WIFxQL3B.js";import{d as ot}from"./CDBtKfA5.js";var tt=(function(){var e=o(function(k,s,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],c=[1,16],a=[1,19],f=[1,20],g={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(s,d,l,p,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:p.addTask(u[v],0,""),this.$=u[v];break;case 19:p.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:c,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:c,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),parse:o(function(s){var d=this,l=[0],p=[],x=[null],u=[],S=this.table,v="",I=0,C=0,W=2,z=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(s,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var U=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=p.pop()||w.lex()||z,typeof A!="number"&&(A instanceof Array&&(p=A,A=p.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,R={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>W&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==z?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],R.$=x[x.length-B],R._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},U&&(R._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(R,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(R.$),u.push(R._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gt as s,hx as a,l2 as S,mB as O,lf as m}from"./Ba4gy30X.js";import{x as f}from"./
|
|
1
|
+
import{Gt as s,hx as a,l2 as S,mB as O,lf as m}from"./Ba4gy30X.js";import{x as f}from"./Dn1B9mMU.js";import{ds as d,aT as k,dA as b}from"./DIZ4FVb2.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),x=s.createSelector((t,e)=>W.select(t,e).filter(r=>f((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),C=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),A=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),z=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),B=s.createSelector((t,e)=>i(t,e).initialized),D=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?O(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),T=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>{const c=u.select(t,e,r);return!!c&&!f(c.runtime?.status)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending}),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{T as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,x as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,A as selectScriptOutput,z as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,E as selectScriptRetainedOutput,C as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,D as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,B as selectWorkspaceScriptsInitialized};
|