@intent-hq/web 2.369.1 → 2.370.1
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/bin/intent-web.mjs +113 -2
- package/package.json +1 -1
- package/web/app/immutable/chunks/{jRFO7UbE.js → 1BRHaRmm.js} +5 -5
- package/web/app/immutable/chunks/{CV10cSI4.js → 1q0xL14K.js} +1 -1
- package/web/app/immutable/chunks/{N5wpZAwp.js → 2CvTs4Gl.js} +1 -1
- package/web/app/immutable/chunks/{Wv5_ui4s.js → 2IbSEmAW.js} +1 -1
- package/web/app/immutable/chunks/{nIQsF0QH.js → 2kcdsiKR.js} +1 -1
- package/web/app/immutable/chunks/{A9EcmNK3.js → 3bNhkT-J.js} +1 -1
- package/web/app/immutable/chunks/{CQw_RyF_.js → 5kePy1TE.js} +1 -1
- package/web/app/immutable/chunks/{s1m3ujOc.js → 711s5WU0.js} +1 -1
- package/web/app/immutable/chunks/{C5X1QcI7.js → 7aKXh--T.js} +4 -4
- package/web/app/immutable/chunks/{B6jI9-V_.js → 7i9XTDuo.js} +1 -1
- package/web/app/immutable/chunks/{CLZkKjaI.js → AsFm-iq9.js} +1 -1
- package/web/app/immutable/chunks/{DtnAdLQg.js → B1tKRs9e.js} +1 -1
- package/web/app/immutable/chunks/{PxI10rWs.js → B2_coen2.js} +1 -1
- package/web/app/immutable/chunks/{BHfEypjS.js → B3hSlB6y.js} +1 -1
- package/web/app/immutable/chunks/{CxF8L5mw.js → B3s08q4i.js} +1 -1
- package/web/app/immutable/chunks/{CZ_Dk1nz.js → B4rTQlY3.js} +1 -1
- package/web/app/immutable/chunks/{CRwqTV0i.js → B5LyNSS1.js} +7 -7
- package/web/app/immutable/chunks/{DyBkeTEM.js → B7CIdOn0.js} +1 -1
- package/web/app/immutable/chunks/{DMl4Z5o_.js → BBWuirRW.js} +1 -1
- package/web/app/immutable/chunks/{BNp3_sz0.js → BBvc0xcX.js} +1 -1
- package/web/app/immutable/chunks/{DvdPJ4VE.js → BE3ifD-D.js} +1 -1
- package/web/app/immutable/chunks/{oOuL5l8A.js → BHCTYYXY.js} +1 -1
- package/web/app/immutable/chunks/{DdKIjYo_.js → BHe6JG_C.js} +2 -2
- package/web/app/immutable/chunks/{ZYL8cEBi.js → BIDxyGuw.js} +1 -1
- package/web/app/immutable/chunks/{CtxaFpQJ.js → BIH1E0JD.js} +1 -1
- package/web/app/immutable/chunks/{C1McR-sz.js → BIY9btQv.js} +1 -1
- package/web/app/immutable/chunks/{CGOlqeU_.js → BIv0yV05.js} +1 -1
- package/web/app/immutable/chunks/{A2MGRlHV.js → BJDeJSt-.js} +2 -2
- package/web/app/immutable/chunks/{OcJyMtNk.js → BKq-hmnE.js} +1 -1
- package/web/app/immutable/chunks/{B2FXFK8l.js → BKzqt9uo.js} +1 -1
- package/web/app/immutable/chunks/{CWybLnJv.js → BL5h9RCy.js} +1 -1
- package/web/app/immutable/chunks/{JKboQXkL.js → BLb6jd9K.js} +1 -1
- package/web/app/immutable/chunks/{CJb9CQqu.js → BNv5miK-.js} +1 -1
- package/web/app/immutable/chunks/{BUtBz-tz.js → BOHkf2gI.js} +1 -1
- package/web/app/immutable/chunks/{eln8hjjQ.js → BOROIf_S.js} +1 -1
- package/web/app/immutable/chunks/{D1cY0pVs.js → BR75pcGU.js} +1 -1
- package/web/app/immutable/chunks/{DmhHEMPi.js → BROVvkEL.js} +1 -1
- package/web/app/immutable/chunks/{Dd_WBgru.js → BR_GHabc.js} +1 -1
- package/web/app/immutable/chunks/{ByDB1X4D.js → BSwUOmEO.js} +1 -1
- package/web/app/immutable/chunks/{eLOMf9Vt.js → BTBYrxZV.js} +1 -1
- package/web/app/immutable/chunks/{Dxjy2MWO.js → BU9a7SkD.js} +1 -1
- package/web/app/immutable/chunks/{C6T3ggVX.js → BVDDJIsV.js} +1 -1
- package/web/app/immutable/chunks/{BsjFeGOg.js → BWn2FCdq.js} +1 -1
- package/web/app/immutable/chunks/{DWjKA8Pm.js → BZWU4mlm.js} +2 -2
- package/web/app/immutable/chunks/Ba5gf06c.js +1 -0
- package/web/app/immutable/chunks/{BgDYQZ_0.js → BaGw_bDr.js} +1 -1
- package/web/app/immutable/chunks/{DR7bEdZk.js → Baepgj8b.js} +1 -1
- package/web/app/immutable/chunks/{Da2tbXc-.js → BalxhI2Q.js} +1 -1
- package/web/app/immutable/chunks/{Danvn_nL.js → Bb3w2fM6.js} +1 -1
- package/web/app/immutable/chunks/{s3nd6_cp.js → BeVAskuR.js} +1 -1
- package/web/app/immutable/chunks/{BKuhcLZN.js → Beg3arHH.js} +1 -1
- package/web/app/immutable/chunks/{C8APJtmo.js → BgnxwWhQ.js} +1 -1
- package/web/app/immutable/chunks/{3kQ-PiCp.js → BhA_kLCx.js} +1 -1
- package/web/app/immutable/chunks/{KykWEhyB.js → Bj-9TYLg.js} +1 -1
- package/web/app/immutable/chunks/{BE2y8JEQ.js → BlQvrYPa.js} +1 -1
- package/web/app/immutable/chunks/{BsKhFZ0Q.js → BldeOF88.js} +1 -1
- package/web/app/immutable/chunks/{Cdw_CIdg.js → BnA9v3pc.js} +1 -1
- package/web/app/immutable/chunks/{CUH5IR0E.js → Bo89tkt2.js} +1 -1
- package/web/app/immutable/chunks/{LKW_Bid7.js → BoQ8Q7zJ.js} +1 -1
- package/web/app/immutable/chunks/{BR9s3igW.js → BpyEBWKW.js} +1 -1
- package/web/app/immutable/chunks/{C6MAELkY.js → BqOLTDDX.js} +1 -1
- package/web/app/immutable/chunks/Bqd7fdCF.js +1 -0
- package/web/app/immutable/chunks/{C1VlgusM.js → BtrJwCgg.js} +1 -1
- package/web/app/immutable/chunks/{TaTYmBM5.js → Bu13V5mO.js} +1 -1
- package/web/app/immutable/chunks/{sG8VksRm.js → Bvf6gH6c.js} +1 -1
- package/web/app/immutable/chunks/{C9r0mVfa.js → BxQi83db.js} +1 -1
- package/web/app/immutable/chunks/{Dz5OBP4z.js → C-5vE6yh.js} +9 -9
- package/web/app/immutable/chunks/{DcvxsgOZ.js → C0jW3ncX.js} +1 -1
- package/web/app/immutable/chunks/{C5rcw_c7.js → C1YR8Gnj.js} +1 -1
- package/web/app/immutable/chunks/{6i_wfV3v.js → C289w7fG.js} +1 -1
- package/web/app/immutable/chunks/{RifCGV3x.js → C29Jqwzt.js} +1 -1
- package/web/app/immutable/chunks/{CqesqBNM.js → C2UYU20O.js} +1 -1
- package/web/app/immutable/chunks/{XJqoy2ap.js → C2wWLl1x.js} +1 -1
- package/web/app/immutable/chunks/{3_UV1UgL.js → C6P_twJN.js} +1 -1
- package/web/app/immutable/chunks/{B9XvejAu.js → C6ROKFdp.js} +1 -1
- package/web/app/immutable/chunks/{TrRXD94r.js → C96BAoIR.js} +1 -1
- package/web/app/immutable/chunks/{ByCxDC-R.js → C9AWL-_E.js} +1 -1
- package/web/app/immutable/chunks/{Bs9TCQJX.js → CAV1CzzW.js} +1 -1
- package/web/app/immutable/chunks/{C7kFrL62.js → CC-xReBN.js} +1 -1
- package/web/app/immutable/chunks/{xqJuIupR.js → CC4-q0Fm.js} +1 -1
- package/web/app/immutable/chunks/{BsE4jMhr.js → CDsbSWM0.js} +1 -1
- package/web/app/immutable/chunks/{fK0I75t-.js → CENbvXsw.js} +1 -1
- package/web/app/immutable/chunks/{BlIreYOW.js → CFcZXBVA.js} +6 -6
- package/web/app/immutable/chunks/{DKyvRWc2.js → CFq9q-gu.js} +1 -1
- package/web/app/immutable/chunks/{D_MzuSit.js → CGLbiObk.js} +1 -1
- package/web/app/immutable/chunks/{Zldsekdv.js → CI4_aI7e.js} +5 -5
- package/web/app/immutable/chunks/{ByN-IDvR.js → CIvyT4T_.js} +1 -1
- package/web/app/immutable/chunks/{CMqhKAKf.js → CKf0K7iH.js} +1 -1
- package/web/app/immutable/chunks/{CNn7flY0.js → CKfVT02n.js} +2 -2
- package/web/app/immutable/chunks/{DCOxMTSf.js → CL3a4Hm1.js} +1 -1
- package/web/app/immutable/chunks/{CBZ4KqrB.js → CNkmihEX.js} +2 -2
- package/web/app/immutable/chunks/{DllP5msd.js → CO9mOa2z.js} +1 -1
- package/web/app/immutable/chunks/CQIdhUGs.js +1 -0
- package/web/app/immutable/chunks/{7mowE2Gg.js → CQWMr-uu.js} +2 -2
- package/web/app/immutable/chunks/{C1ZHQc4S.js → CT012uiB.js} +1 -1
- package/web/app/immutable/chunks/{BigChyTJ.js → CTKKTfh5.js} +2 -2
- package/web/app/immutable/chunks/{Z73Hn0_g.js → CVXKL6ab.js} +1 -1
- package/web/app/immutable/chunks/{Ct_Zx4ru.js → CVpnQG0j.js} +1 -1
- package/web/app/immutable/chunks/{msw9XRLE.js → C_V6o9Il.js} +1 -1
- package/web/app/immutable/chunks/{BZ5fAc9N.js → Ca6eVlSm.js} +2 -2
- package/web/app/immutable/chunks/{FavPgSsK.js → CdYt8dgZ.js} +1 -1
- package/web/app/immutable/chunks/{DEMmGTfr.js → Ce83awb2.js} +2 -2
- package/web/app/immutable/chunks/{DdH7Q5ij.js → CkoG9STP.js} +1 -1
- package/web/app/immutable/chunks/{Bo900RGs.js → CkrbZXJF.js} +1 -1
- package/web/app/immutable/chunks/{D7slXRL_.js → CllirvEK.js} +1 -1
- package/web/app/immutable/chunks/{D1E6y9eQ.js → Cmj0JylI.js} +2 -2
- package/web/app/immutable/chunks/{DWsHBNeU.js → CnS7dtdu.js} +1 -1
- package/web/app/immutable/chunks/{V6SVTu37.js → Cnfa9ycD.js} +1 -1
- package/web/app/immutable/chunks/{Csxq8_TN.js → CoDlIYWp.js} +1 -1
- package/web/app/immutable/chunks/{93RUSyHg.js → CplGG62F.js} +1 -1
- package/web/app/immutable/chunks/{8bw9vP4h.js → Cum1dYpM.js} +1 -1
- package/web/app/immutable/chunks/{BUHAwVs7.js → CvqKGiPA.js} +1 -1
- package/web/app/immutable/chunks/{DCJDf3gb.js → CxJ0MhK_.js} +3 -3
- package/web/app/immutable/chunks/{SX1khnGy.js → Cz-HgbT1.js} +1 -1
- package/web/app/immutable/chunks/{x-XvE_CJ.js → CzMPk75T.js} +1 -1
- package/web/app/immutable/chunks/{iTSQ9YOi.js → Czc9XxQH.js} +1 -1
- package/web/app/immutable/chunks/{D321NUNJ.js → Czz4CkiM.js} +1 -1
- package/web/app/immutable/chunks/{fRGswTf6.js → D1_IbOsX.js} +1 -1
- package/web/app/immutable/chunks/{0NGflniG.js → D2CiBsJQ.js} +1 -1
- package/web/app/immutable/chunks/{Cdhrdfve.js → D2jpdqLS.js} +1 -1
- package/web/app/immutable/chunks/{XPs8BW44.js → D3VYu5tL.js} +1 -1
- package/web/app/immutable/chunks/{Bd_VEON_.js → D4hsFsw4.js} +1 -1
- package/web/app/immutable/chunks/{BuLzqNKd.js → D5CXAAzn.js} +1 -1
- package/web/app/immutable/chunks/{6GNWsakm.js → D5xUDbUx.js} +1 -1
- package/web/app/immutable/chunks/{ge7HDe-3.js → D6vwIrtC.js} +1 -1
- package/web/app/immutable/chunks/{DuPd2TLf.js → D8Nxo4aC.js} +1 -1
- package/web/app/immutable/chunks/{CFvGekuw.js → DAfOI1BG.js} +1 -1
- package/web/app/immutable/chunks/{BnRltR11.js → DExi1WR7.js} +1 -1
- package/web/app/immutable/chunks/{WHfdsTrE.js → DFrynV0u.js} +1 -1
- package/web/app/immutable/chunks/{CxXkuVq5.js → DG-AKB01.js} +1 -1
- package/web/app/immutable/chunks/{aHO4L7kg.js → DGQoqGp4.js} +1 -1
- package/web/app/immutable/chunks/{BLlLxRVW.js → DIhsiUIT.js} +1 -1
- package/web/app/immutable/chunks/{C7Ed4dxf.js → DM71GnMx.js} +3 -3
- package/web/app/immutable/chunks/{dP7u_sPF.js → DMH0w6el.js} +1 -1
- package/web/app/immutable/chunks/{Boh_rcCH.js → DMzReQ-5.js} +1 -1
- package/web/app/immutable/chunks/{BUrTAEns.js → DOIzLCtE.js} +1 -1
- package/web/app/immutable/chunks/{D-2bQKif.js → DONrLvvt.js} +1 -1
- package/web/app/immutable/chunks/{CtFSFfLz.js → DOwDDYVN.js} +1 -1
- package/web/app/immutable/chunks/{ClSUFCtq.js → DPvT-ATr.js} +1 -1
- package/web/app/immutable/chunks/{DUItrdZb.js → DQLMO9xD.js} +2 -2
- package/web/app/immutable/chunks/{DVy6H5Ng.js → DQZlstPH.js} +1 -1
- package/web/app/immutable/chunks/DRRKH4VP.js +1 -0
- package/web/app/immutable/chunks/{CoNmDxYv.js → DRWqzfiQ.js} +1 -1
- package/web/app/immutable/chunks/{DxejgjNm.js → DSCqJfZ-.js} +1 -1
- package/web/app/immutable/chunks/{DvYo8gAP.js → DSjbk-ao.js} +1 -1
- package/web/app/immutable/chunks/{DsI0RDZ2.js → DUO0KBjx.js} +1 -1
- package/web/app/immutable/chunks/{4GHsM2YX.js → DUfE7lx2.js} +1 -1
- package/web/app/immutable/chunks/{BCSEMQfF.js → DUl-h1p3.js} +1 -1
- package/web/app/immutable/chunks/{BQGSaBlM.js → DVu7tZ67.js} +1 -1
- package/web/app/immutable/chunks/{BDbtK9be.js → DWC3_76J.js} +1 -1
- package/web/app/immutable/chunks/{Bp0nVWtT.js → DWDPOFkL.js} +1 -1
- package/web/app/immutable/chunks/{BLzqYDED.js → DXtdMDwl.js} +1 -1
- package/web/app/immutable/chunks/{B-F2f_Hq.js → DYzJKeX7.js} +1 -1
- package/web/app/immutable/chunks/{Cc2FSrQK.js → D_pS9hme.js} +1 -1
- package/web/app/immutable/chunks/{Cs_DX3BC.js → DaqXt9wp.js} +1 -1
- package/web/app/immutable/chunks/{u8OBGcNi.js → Dax7ITFa.js} +2 -2
- package/web/app/immutable/chunks/{DpFiDNG-.js → DbIuIgjV.js} +1 -1
- package/web/app/immutable/chunks/{CJHs_ufb.js → DbN2kVX-.js} +1 -1
- package/web/app/immutable/chunks/{DK2Pie4F.js → Dbrv6RE-.js} +2 -2
- package/web/app/immutable/chunks/{D0Z6csIX.js → DcsxLfDg.js} +1 -1
- package/web/app/immutable/chunks/{Dz2wxoQy.js → DfJwQVW8.js} +1 -1
- package/web/app/immutable/chunks/{DSqj6mlv.js → DfT1buZq.js} +2 -2
- package/web/app/immutable/chunks/{wJewnowK.js → Dg9ZuAkk.js} +6 -6
- package/web/app/immutable/chunks/{ie53yFct.js → DhWcN4bx.js} +2 -2
- package/web/app/immutable/chunks/{Cu91VTQn.js → DiD2Cn17.js} +1 -1
- package/web/app/immutable/chunks/{DvPSMnYw.js → Dk-rIzdO.js} +1 -1
- package/web/app/immutable/chunks/{Cu3YXFZW.js → DkL69EQl.js} +1 -1
- package/web/app/immutable/chunks/{CgXGPBF5.js → DkkmguuG.js} +1 -1
- package/web/app/immutable/chunks/{DgFinDjM.js → DmC2lRsL.js} +2 -2
- package/web/app/immutable/chunks/{CzmcyLb_.js → DnsVLkb8.js} +2 -2
- package/web/app/immutable/chunks/{DQUvqa9o.js → Dnz4szur.js} +1 -1
- package/web/app/immutable/chunks/{DqgCp5ae.js → Do5lDWBq.js} +1 -1
- package/web/app/immutable/chunks/{C_A_Ikb5.js → Dp08eKy3.js} +1 -1
- package/web/app/immutable/chunks/{BuveYyQe.js → Dq9sK6wY.js} +1 -1
- package/web/app/immutable/chunks/{D9NDL9ta.js → DqMtaSxK.js} +1 -1
- package/web/app/immutable/chunks/{CKkGJ_p-.js → DqZnld6x.js} +3 -3
- package/web/app/immutable/chunks/{CXaVTV1g.js → DqaHaAl1.js} +4 -4
- package/web/app/immutable/chunks/{BPCO02B5.js → Dr6C4F1X.js} +1 -1
- package/web/app/immutable/chunks/{BgLPrJ77.js → DrMbcJpA.js} +1 -1
- package/web/app/immutable/chunks/{Bl3mtXZn.js → Ds4DhRwW.js} +7 -7
- package/web/app/immutable/chunks/{dSvJdwG_.js → DsGwNgOu.js} +3 -3
- package/web/app/immutable/chunks/{BEqf00Je.js → DteD0Nal.js} +3 -3
- package/web/app/immutable/chunks/DwEChUMY.js +1 -0
- package/web/app/immutable/chunks/{CB0sfbT7.js → ENlRNbf0.js} +1 -1
- package/web/app/immutable/chunks/{BUNNt_Jr.js → FhXVX7Hi.js} +1 -1
- package/web/app/immutable/chunks/{BxbMMWzz.js → JMqHRN1q.js} +1 -1
- package/web/app/immutable/chunks/{6CAGpBb_.js → JZ27Qh_j.js} +1 -1
- package/web/app/immutable/chunks/{BR5vKj6f.js → JvjGgKob.js} +1 -1
- package/web/app/immutable/chunks/{9wk-Hes5.js → Jx0QEit0.js} +1 -1
- package/web/app/immutable/chunks/{Cnwc7RZW.js → K2mnFSgK.js} +1 -1
- package/web/app/immutable/chunks/{nRmTo2Eh.js → KEjNxHSN.js} +1 -1
- package/web/app/immutable/chunks/{ocWSyOIA.js → KSJAkSbC.js} +2 -2
- package/web/app/immutable/chunks/KvL2D8eF.js +1 -0
- package/web/app/immutable/chunks/L-jTlD15.js +4 -0
- package/web/app/immutable/chunks/{C2jA6pM8.js → NgjMs0r6.js} +1 -1
- package/web/app/immutable/chunks/{B_QtiZYt.js → OK80LzXp.js} +1 -1
- package/web/app/immutable/chunks/{CPatK7EU.js → OltbXq5G.js} +1 -1
- package/web/app/immutable/chunks/{DAjaV_xN.js → PtFvwTVZ.js} +3 -3
- package/web/app/immutable/chunks/Q1s61YDh.js +410 -0
- package/web/app/immutable/chunks/{BEjEPSxp.js → QFEvVzf2.js} +1 -1
- package/web/app/immutable/chunks/{BXkyhXuK.js → SLPWQR3F.js} +1 -1
- package/web/app/immutable/chunks/{zhSFUcJz.js → SxNO1NUM.js} +1 -1
- package/web/app/immutable/chunks/{sJt4gu2x.js → Tygff_sj.js} +1 -1
- package/web/app/immutable/chunks/UO171Id4.js +1 -0
- package/web/app/immutable/chunks/{s97D1nrA.js → VcOG8L0Z.js} +1 -1
- package/web/app/immutable/chunks/{Bo-8pH0P.js → W2c1MO7q.js} +1 -1
- package/web/app/immutable/chunks/{BbQfjn7f.js → XagMlRFc.js} +2 -2
- package/web/app/immutable/chunks/{BpwdP8dq.js → Z-hUD4Ap.js} +1 -1
- package/web/app/immutable/chunks/{BOCp5eAe.js → aitTA173.js} +4 -4
- package/web/app/immutable/chunks/{B1sp_kEH.js → bLKIt_n4.js} +1 -1
- package/web/app/immutable/chunks/{QpGjdleN.js → eNRNxfO0.js} +3 -3
- package/web/app/immutable/chunks/{5NOp7PNZ.js → eRIG79tn.js} +1 -1
- package/web/app/immutable/chunks/{Ck5xuk0H.js → e_K38tqB.js} +1 -1
- package/web/app/immutable/chunks/{B9I2hDG-.js → gTjyNX6h.js} +1 -1
- package/web/app/immutable/chunks/{hHeBjODU.js → hSiYrZoo.js} +1 -1
- package/web/app/immutable/chunks/{DumeSIrz.js → hqZSbKVs.js} +1 -1
- package/web/app/immutable/chunks/{BDP3Y6aK.js → nrAGmqbi.js} +2 -2
- package/web/app/immutable/chunks/{DfSzfqox.js → nxYQz1Bp.js} +1 -1
- package/web/app/immutable/chunks/{D547g0l5.js → pehcYFWW.js} +2 -2
- package/web/app/immutable/chunks/{CF1Tu_8c.js → rIUowGAi.js} +3 -3
- package/web/app/immutable/chunks/{M18r7swD.js → rei1qYSi.js} +1 -1
- package/web/app/immutable/chunks/{iBqqkWL_.js → wEnqV1Ol.js} +1 -1
- package/web/app/immutable/chunks/{BrAu7eNn.js → wK4T9_HO.js} +1 -1
- package/web/app/immutable/chunks/weHhj1in.js +1 -0
- package/web/app/immutable/chunks/{Cl71oYkB.js → xCaPmms8.js} +1 -1
- package/web/app/immutable/chunks/{CASKMy_V.js → yGw_3prC.js} +1 -1
- package/web/app/immutable/chunks/{fXS7JPx0.js → yScsjjST.js} +1 -1
- package/web/app/immutable/entry/{app.OFNFrEIR.js → app.De5C2NS7.js} +2 -2
- package/web/app/immutable/entry/start.BbOZiO5_.js +1 -0
- package/web/app/immutable/nodes/{0.BPB4y4Pk.js → 0.D8lcICdy.js} +1 -1
- package/web/app/immutable/nodes/{1.CBbBqNOx.js → 1.Bcr9Ac6T.js} +1 -1
- package/web/app/immutable/nodes/{10.B-rk3kEM.js → 10.CdYxZNRv.js} +17 -17
- package/web/app/immutable/nodes/{11.P0HocOtE.js → 11.DTALKQkg.js} +4 -4
- package/web/app/immutable/nodes/{13.DYH2a5Wx.js → 13.DTamgdFN.js} +1 -1
- package/web/app/immutable/nodes/{14.B6MrEg8x.js → 14.CzznX4mY.js} +1 -1
- package/web/app/immutable/nodes/{15.DhLBijej.js → 15.BuZ5Ykpn.js} +1 -1
- package/web/app/immutable/nodes/{16.CKbY5VRM.js → 16.D1WCmH9D.js} +1 -1
- package/web/app/immutable/nodes/{17.DPSU7Eqq.js → 17.DXnAkOJb.js} +1 -1
- package/web/app/immutable/nodes/{18.BlD6ustd.js → 18.BBYG39nr.js} +1 -1
- package/web/app/immutable/nodes/{19.bgAqepNt.js → 19.Bwna1DuW.js} +2 -2
- package/web/app/immutable/nodes/{2.DU7oYEtS.js → 2.BCkphmFm.js} +11 -11
- package/web/app/immutable/nodes/{20.Cj4TGw20.js → 20.DyC7cckU.js} +1 -1
- package/web/app/immutable/nodes/{3.B4hrIG7P.js → 3.CJlWKIE-.js} +1 -1
- package/web/app/immutable/nodes/{4.J3HSWI_f.js → 4.CDSfo4Q5.js} +1 -1
- package/web/app/immutable/nodes/{5.CS5w-vHI.js → 5.B6hsM1cw.js} +1 -1
- package/web/app/immutable/nodes/{6.Bf53uJQ1.js → 6.DCm27sfe.js} +2 -2
- package/web/app/immutable/nodes/{7.q-WiNda-.js → 7.Dd2x1_y1.js} +1 -1
- package/web/app/immutable/nodes/{8.eHanxjw-.js → 8.C0jzmTGW.js} +1 -1
- package/web/app/immutable/nodes/{9.BMShc48l.js → 9.Bj88iDsv.js} +11 -11
- package/web/app/version.json +1 -1
- package/web/index.html +15 -15
- package/web/app/immutable/chunks/B9EhZrTN.js +0 -1
- package/web/app/immutable/chunks/BBMzDN3i.js +0 -1
- package/web/app/immutable/chunks/BxTyo7yU.js +0 -1
- package/web/app/immutable/chunks/ClHV2gp3.js +0 -1
- package/web/app/immutable/chunks/CqJQ3ikU.js +0 -1
- package/web/app/immutable/chunks/DH6z3AzB.js +0 -4
- package/web/app/immutable/chunks/DW3gkA_F.js +0 -1
- package/web/app/immutable/chunks/DodshHwq.js +0 -1
- package/web/app/immutable/chunks/Dxs2medA.js +0 -1
- package/web/app/immutable/chunks/fd1DS8nx.js +0 -410
- package/web/app/immutable/entry/start.CHpPu02l.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var Rp=Object.defineProperty;var Rl=n=>{throw TypeError(n)};var Lp=(n,e,t)=>e in n?Rp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ut=(n,e,t)=>Lp(n,typeof e!="symbol"?e+"":e,t),Pp=(n,e,t)=>e.has(n)||Rl("Cannot "+t);var jn=(n,e,t)=>(Pp(n,e,"read from private field"),t?t.call(n):e.get(n)),_i=(n,e,t)=>e.has(n)?Rl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t);import{t as Wt,bo as L,bw as jt,b as Kt,bp as _p,bm as re,bq as zp,bs as $p,_ as zi}from"./51_h0jm2.js";import{bs as Ut,b_ as ne,W as K,bn as qt,aA as P,aC as zu,br as Zo,bb as Zr,c3 as Mn,aG as Bp,bk as $u,a7 as Er,ay as Dt,c0 as Bu,a5 as he,aD as m,bA as ae,bS as ie,aw as Hp,bH as fe,c9 as B,bV as Ue,aB as ee,ai as Zs,ca as kt,aj as Jn,bl as xe,bO as de,bo as _a,bj as Hu,be as Fu,b$ as Vu,bf as Fp,c5 as Kn}from"./CJxGDkBm.js";import{c as Eo}from"./DGmOjLYi.js";import{s as wt,f as bn,c as ea,b as Vp,g as pi,e as Wp}from"./CpPNoOk-.js";import{b as Or}from"./NtFyWdpR.js";import{i as jp}from"./BgDYQZ_0.js";import{d1 as Kp,aF as Up,aT as Ll}from"./D9NDL9ta.js";import{a as qp}from"./CC7to1B5.js";import{aT as Jp,aB as Gp,ao as Xp,aw as Yp,ab as Qp,f as sn,ae as Wu,a1 as Zp}from"./Cdw_CIdg.js";import{i as ve}from"./PXCFrn2V.js";import{F as rn,bb as em,bv as za,bh as ju,v as tm,bE as nm,d3 as rm,aI as Pl,bg as Cr,bn as Tr,cZ as Ku,cW as im,cn as Uu,cK as qu,ak as sm,av as Ju,ay as _l,ap as om,aj as am,as as lm,cX as cm,aZ as um,aN as To,co as dm,bx as fm,cb as hm,cy as zl,Y as pm,cH as mm,at as gm,bU as ym,aq as bm,c7 as vm,bN as km,c_ as xm,al as wm,bl as Sm,bF as Cm,a$ as Mm,d2 as Em,am as Tm,bS as Am,aT as Nm,b0 as Om,c1 as Dm,bd as Im,cx as Rm,cD as Lm,bR as Pm,bo as _m,bi as $l}from"./DSQT151l.js";import{s as zm}from"./DxvSggY5.js";import{e as $m}from"./Dukt1CUc.js";import{b as Bm,V as Bl,c as Hm,p as Fm,m as Vm,s as Wm}from"./C6T3ggVX.js";import"./CF1Tu_8c.js";import{g as Mr,i as jm}from"./Bjy4ygfJ.js";import{L as Km,S as Um,T as Gu}from"./nRmTo2Eh.js";import{n as qm,l as us}from"./DqFWZ_g1.js";import{h as Jm}from"./D547g0l5.js";import{bl as Gm}from"./Zldsekdv.js";import{g as Xm}from"./D0Z6csIX.js";import{c as Xu,l as ue}from"./ChTqQfQN.js";import{n as Hl,l as Ym,c as Qm}from"./BxwkoIbZ.js";import{$ as Yu,a0 as Zm,p as ta,aN as eg,am as tg,a1 as ng,e5 as rg,a9 as ig}from"./XJqoy2ap.js";import{i as fn,M as sg,D as og,s as Ao,a as ag,p as hr}from"./DdKIjYo_.js";import{A as lg,b as cg}from"./D1cY0pVs.js";import{P as ug}from"./DUctnn_k.js";import{a as Qu}from"./DmhHEMPi.js";import{g as Fl}from"./BE2y8JEQ.js";import{G as dg}from"./CqJQ3ikU.js";import{q as fg}from"./M18r7swD.js";import{b as hg,P as pg}from"./CQw_RyF_.js";var mg=zu('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg>');function Zu(n,e){if(new.target)return Wt({component:Zu,...n});Ut(e,!0);let t=L(e,"size",7,16),r=L(e,"class",7,"");var i={get size(){return t()},set size(o=16){t(o),P()},get class(){return r()},set class(o=""){r(o),P()},$set:jt,$on:(o,a)=>Kt(e,o,a)},s=mg();return ne(()=>{wt(s,"width",t()),wt(s,"height",t()),bn(s,0,ea(r()))}),K(n,s),qt(i)}var Vl=Object.defineProperty,gg=(n,e)=>{let t={};for(var r in n)Vl(t,r,{get:n[r],enumerable:!0});return Vl(t,Symbol.toStringTag,{value:"Module"}),t};function mt(n){this.content=n}mt.prototype={constructor:mt,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new mt(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new mt(t)},addToStart:function(n,e){return new mt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new mt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new mt(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=mt.from(n),n.size?new mt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=mt.from(n),n.size?new mt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=mt.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};mt.from=function(n){if(n instanceof mt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new mt(e)};function ed(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,a=s.text,l=0;for(;o[l]==a[l];l++)t++;return l&&l<o.length&&l<a.length&&rd(o.charCodeAt(l-1))&&nd(o.charCodeAt(l))&&t--,t}if(i.content.size||s.content.size){let o=ed(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function td(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let c=o.text,u=a.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&rd(c.charCodeAt(d-1))&&nd(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||a.content.size){let c=td(o.content,a.content,t-1,r-1);if(c)return c}t-=l,r-=l}}function nd(n){return n>=56320&&n<57344}function rd(n){return n>=55296&&n<56320}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],c=a+l.nodeSize;if(c>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new M(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new M(r,i)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new M(i,s)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return ed(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return td(this,e,t,r)}findIndex(e){if(e==0)return $i(0,e);if(e==this.size)return $i(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?$i(t+1,s):$i(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return M.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new M(t||e,r)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const No={index:0,offset:0};function $i(n,e){return No.index=n,No.offset=e,No}function ds(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!ds(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!ds(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let _e=class na{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ds(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return na.none;if(e instanceof na)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};_e.none=[];class mi extends Error{}class H{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=sd(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,t){return new H(id(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return H.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(M.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new H(e,r,i)}}H.empty=new H(M.empty,0,0);function id(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(id(s.content,e-i-1,t-i-1)))}function sd(n,e,t,r,i,s){let{index:o,offset:a}=n.findIndex(e),l=n.maybeChild(o);if(a==e||l.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=sd(l.content,e-a-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,l);return c&&n.replaceChild(o,l.copy(c))}function yg(n,e,t){if(t.openStart>n.depth)throw new mi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new mi("Inconsistent open depths");return od(n,e,t,0)}function od(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=od(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return tr(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=bg(t,n);return tr(s,ld(n,o,a,e,r))}else return tr(s,fs(n,e,r))}function ad(n,e){if(!e.type.compatibleContent(n.type))throw new mi("Cannot join "+e.type.name+" onto "+n.type.name)}function ra(n,e,t){let r=n.node(t);return ad(r,e.node(t)),r}function er(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function ei(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(er(n.nodeAfter,r),s++));for(let a=s;a<o;a++)er(i.child(a),r);e&&e.depth==t&&e.textOffset&&er(e.nodeBefore,r)}function tr(n,e){if(!n.type.validContent(e))throw new mi("Invalid content for node "+n.type.name);return n.copy(e)}function ld(n,e,t,r,i){let s=n.depth>i&&ra(n,e,i+1),o=r.depth>i&&ra(t,r,i+1),a=[];return ei(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(ad(s,o),er(tr(s,ld(n,e,t,r,i+1)),a)):(s&&er(tr(s,fs(n,e,i+1)),a),ei(e,t,i,a),o&&er(tr(o,fs(t,r,i+1)),a)),ei(r,null,i,a),new M(a)}function fs(n,e,t){let r=[];if(ei(null,n,t,r),n.depth>t){let i=ra(n,e,t+1);er(tr(i,fs(n,e,t+1)),r)}return ei(e,null,t,r),new M(r)}function bg(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class gi{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return _e.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new hs(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),c=s-l;if(r.push(o,a,i+l),!c||(o=o.child(a),o.isText))break;s=c-1,i+=l+1}return new gi(t,r,s)}static resolveCached(e,t){let r=Wl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else Wl.set(e,r=new vg);let i=r.elts[r.i]=gi.resolve(e,t);return r.i=(r.i+1)%kg,i}}class vg{constructor(){this.elts=[],this.i=0}}const kg=12,Wl=new WeakMap;class hs{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xg=Object.create(null);let Rn=class ia{constructor(e,t,r,i=_e.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&ds(this.attrs,t||e.defaultAttrs||xg)&&_e.sameSet(this.marks,r||_e.none)}copy(e=null){return e==this.content?this:new ia(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ia(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return H.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),c=i.node(o).content.cut(i.pos-a,s.pos-a);return new H(c,i.depth-o,s.depth-o)}replace(e,t,r){return yg(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return gi.resolveCached(this,e)}resolveNoCache(e){return gi.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),cd(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),jl(this.type.attrs,this.attrs,"node",this.type.name);let e=_e.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];jl(r.type.attrs,r.attrs,"mark",r.type.name),e=r.addToSet(e)}if(!_e.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=M.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};Rn.prototype.text=void 0;class ps extends Rn{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):cd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ps(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ps(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function cd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function jl(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class ir{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new wg(e,t);if(r.next==null)return ir.empty;let i=ud(r);r.next&&r.err("Unexpected trailing text");let s=Ng(Ag(i));return Og(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return M.from(a.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CQWMr-uu.js","/app/immutable/chunks/51_h0jm2.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/Cz-HgbT1.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/PXCFrn2V.js","/app/immutable/chunks/CpPNoOk-.js","/app/immutable/chunks/DxvSggY5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BnA9v3pc.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Bjy4ygfJ.js","/app/immutable/chunks/rIUowGAi.js","/app/immutable/chunks/BQDGTBxC.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DGmOjLYi.js","/app/immutable/chunks/C9UsZ4re.js","/app/immutable/chunks/DqFWZ_g1.js","/app/immutable/chunks/BLb6jd9K.js","/app/immutable/chunks/CI4_aI7e.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BEklUrxK.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DSQT151l.js","/app/immutable/chunks/BxwkoIbZ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/C2wWLl1x.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BoQ8Q7zJ.js","/app/immutable/chunks/Dq9sK6wY.js","/app/immutable/chunks/BHCTYYXY.js","/app/immutable/chunks/DUfE7lx2.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Dg9ZuAkk.js","/app/immutable/chunks/BR_GHabc.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/XagMlRFc.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/JZ27Qh_j.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Rp=Object.defineProperty;var Rl=n=>{throw TypeError(n)};var Lp=(n,e,t)=>e in n?Rp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ut=(n,e,t)=>Lp(n,typeof e!="symbol"?e+"":e,t),Pp=(n,e,t)=>e.has(n)||Rl("Cannot "+t);var jn=(n,e,t)=>(Pp(n,e,"read from private field"),t?t.call(n):e.get(n)),_i=(n,e,t)=>e.has(n)?Rl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t);import{t as Wt,bo as L,bw as jt,b as Kt,bp as _p,bm as re,bq as zp,bs as $p,_ as zi}from"./51_h0jm2.js";import{bs as Ut,b_ as ne,W as K,bn as qt,aA as P,aC as zu,br as Zo,bb as Zr,c3 as Mn,aG as Bp,bk as $u,a7 as Er,ay as Dt,c0 as Bu,a5 as he,aD as m,bA as ae,bS as ie,aw as Hp,bH as fe,c9 as B,bV as Ue,aB as ee,ai as Zs,ca as kt,aj as Jn,bl as xe,bO as de,bo as _a,bj as Hu,be as Fu,b$ as Vu,bf as Fp,c5 as Kn}from"./CJxGDkBm.js";import{c as Eo}from"./DGmOjLYi.js";import{s as wt,f as bn,c as ea,b as Vp,g as pi,e as Wp}from"./CpPNoOk-.js";import{b as Or}from"./NtFyWdpR.js";import{i as jp}from"./BaGw_bDr.js";import{d1 as Kp,aF as Up,aT as Ll}from"./DqMtaSxK.js";import{a as qp}from"./CC7to1B5.js";import{aT as Jp,aB as Gp,ao as Xp,aw as Yp,ab as Qp,f as sn,ae as Wu,a1 as Zp}from"./BnA9v3pc.js";import{i as ve}from"./PXCFrn2V.js";import{F as rn,bb as em,bv as za,bh as ju,v as tm,bE as nm,d3 as rm,aI as Pl,bg as Cr,bn as Tr,cZ as Ku,cW as im,cn as Uu,cK as qu,ak as sm,av as Ju,ay as _l,ap as om,aj as am,as as lm,cX as cm,aZ as um,aN as To,co as dm,bx as fm,cb as hm,cy as zl,Y as pm,cH as mm,at as gm,bU as ym,aq as bm,c7 as vm,bN as km,c_ as xm,al as wm,bl as Sm,bF as Cm,a$ as Mm,d2 as Em,am as Tm,bS as Am,aT as Nm,b0 as Om,c1 as Dm,bd as Im,cx as Rm,cD as Lm,bR as Pm,bo as _m,bi as $l}from"./DSQT151l.js";import{s as zm}from"./DxvSggY5.js";import{e as $m}from"./Dukt1CUc.js";import{b as Bm,V as Bl,c as Hm,p as Fm,m as Vm,s as Wm}from"./BVDDJIsV.js";import"./rIUowGAi.js";import{g as Mr,i as jm}from"./Bjy4ygfJ.js";import{L as Km,S as Um,T as Gu}from"./KEjNxHSN.js";import{n as qm,l as us}from"./DqFWZ_g1.js";import{h as Jm}from"./pehcYFWW.js";import{bl as Gm}from"./CI4_aI7e.js";import{g as Xm}from"./DcsxLfDg.js";import{c as Xu,l as ue}from"./ChTqQfQN.js";import{n as Hl,l as Ym,c as Qm}from"./BxwkoIbZ.js";import{$ as Yu,a0 as Zm,p as ta,aN as eg,am as tg,a1 as ng,e5 as rg,a9 as ig}from"./C2wWLl1x.js";import{i as fn,M as sg,D as og,s as Ao,a as ag,p as hr}from"./BHe6JG_C.js";import{A as lg,b as cg}from"./BR75pcGU.js";import{P as ug}from"./DUctnn_k.js";import{a as Qu}from"./BROVvkEL.js";import{g as Fl}from"./BlQvrYPa.js";import{H as dg}from"./Bqd7fdCF.js";import{q as fg}from"./rei1qYSi.js";import{b as hg,P as pg}from"./5kePy1TE.js";var mg=zu('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg>');function Zu(n,e){if(new.target)return Wt({component:Zu,...n});Ut(e,!0);let t=L(e,"size",7,16),r=L(e,"class",7,"");var i={get size(){return t()},set size(o=16){t(o),P()},get class(){return r()},set class(o=""){r(o),P()},$set:jt,$on:(o,a)=>Kt(e,o,a)},s=mg();return ne(()=>{wt(s,"width",t()),wt(s,"height",t()),bn(s,0,ea(r()))}),K(n,s),qt(i)}var Vl=Object.defineProperty,gg=(n,e)=>{let t={};for(var r in n)Vl(t,r,{get:n[r],enumerable:!0});return Vl(t,Symbol.toStringTag,{value:"Module"}),t};function mt(n){this.content=n}mt.prototype={constructor:mt,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new mt(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new mt(t)},addToStart:function(n,e){return new mt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new mt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new mt(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=mt.from(n),n.size?new mt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=mt.from(n),n.size?new mt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=mt.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};mt.from=function(n){if(n instanceof mt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new mt(e)};function ed(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,a=s.text,l=0;for(;o[l]==a[l];l++)t++;return l&&l<o.length&&l<a.length&&rd(o.charCodeAt(l-1))&&nd(o.charCodeAt(l))&&t--,t}if(i.content.size||s.content.size){let o=ed(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function td(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let c=o.text,u=a.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&rd(c.charCodeAt(d-1))&&nd(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||a.content.size){let c=td(o.content,a.content,t-1,r-1);if(c)return c}t-=l,r-=l}}function nd(n){return n>=56320&&n<57344}function rd(n){return n>=55296&&n<56320}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],c=a+l.nodeSize;if(c>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new M(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new M(r,i)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new M(i,s)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return ed(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return td(this,e,t,r)}findIndex(e){if(e==0)return $i(0,e);if(e==this.size)return $i(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?$i(t+1,s):$i(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return M.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new M(t||e,r)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const No={index:0,offset:0};function $i(n,e){return No.index=n,No.offset=e,No}function ds(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!ds(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!ds(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let _e=class na{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ds(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return na.none;if(e instanceof na)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};_e.none=[];class mi extends Error{}class H{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=sd(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,t){return new H(id(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return H.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(M.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new H(e,r,i)}}H.empty=new H(M.empty,0,0);function id(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(id(s.content,e-i-1,t-i-1)))}function sd(n,e,t,r,i,s){let{index:o,offset:a}=n.findIndex(e),l=n.maybeChild(o);if(a==e||l.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=sd(l.content,e-a-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,l);return c&&n.replaceChild(o,l.copy(c))}function yg(n,e,t){if(t.openStart>n.depth)throw new mi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new mi("Inconsistent open depths");return od(n,e,t,0)}function od(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=od(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return tr(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=bg(t,n);return tr(s,ld(n,o,a,e,r))}else return tr(s,fs(n,e,r))}function ad(n,e){if(!e.type.compatibleContent(n.type))throw new mi("Cannot join "+e.type.name+" onto "+n.type.name)}function ra(n,e,t){let r=n.node(t);return ad(r,e.node(t)),r}function er(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function ei(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(er(n.nodeAfter,r),s++));for(let a=s;a<o;a++)er(i.child(a),r);e&&e.depth==t&&e.textOffset&&er(e.nodeBefore,r)}function tr(n,e){if(!n.type.validContent(e))throw new mi("Invalid content for node "+n.type.name);return n.copy(e)}function ld(n,e,t,r,i){let s=n.depth>i&&ra(n,e,i+1),o=r.depth>i&&ra(t,r,i+1),a=[];return ei(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(ad(s,o),er(tr(s,ld(n,e,t,r,i+1)),a)):(s&&er(tr(s,fs(n,e,i+1)),a),ei(e,t,i,a),o&&er(tr(o,fs(t,r,i+1)),a)),ei(r,null,i,a),new M(a)}function fs(n,e,t){let r=[];if(ei(null,n,t,r),n.depth>t){let i=ra(n,e,t+1);er(tr(i,fs(n,e,t+1)),r)}return ei(e,null,t,r),new M(r)}function bg(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class gi{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return _e.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new hs(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),c=s-l;if(r.push(o,a,i+l),!c||(o=o.child(a),o.isText))break;s=c-1,i+=l+1}return new gi(t,r,s)}static resolveCached(e,t){let r=Wl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else Wl.set(e,r=new vg);let i=r.elts[r.i]=gi.resolve(e,t);return r.i=(r.i+1)%kg,i}}class vg{constructor(){this.elts=[],this.i=0}}const kg=12,Wl=new WeakMap;class hs{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xg=Object.create(null);let Rn=class ia{constructor(e,t,r,i=_e.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&ds(this.attrs,t||e.defaultAttrs||xg)&&_e.sameSet(this.marks,r||_e.none)}copy(e=null){return e==this.content?this:new ia(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ia(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return H.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),c=i.node(o).content.cut(i.pos-a,s.pos-a);return new H(c,i.depth-o,s.depth-o)}replace(e,t,r){return yg(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return gi.resolveCached(this,e)}resolveNoCache(e){return gi.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),cd(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),jl(this.type.attrs,this.attrs,"node",this.type.name);let e=_e.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];jl(r.type.attrs,r.attrs,"mark",r.type.name),e=r.addToSet(e)}if(!_e.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=M.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};Rn.prototype.text=void 0;class ps extends Rn{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):cd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ps(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ps(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function cd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function jl(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class ir{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new wg(e,t);if(r.next==null)return ir.empty;let i=ud(r);r.next&&r.err("Unexpected trailing text");let s=Ng(Ag(i));return Og(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return M.from(a.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
3
3
|
`)}}ir.empty=new ir(!0);class wg{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function ud(n){let e=[];do e.push(Sg(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Sg(n){let e=[];do e.push(Cg(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Cg(n){let e=Tg(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Mg(n,e);else break;return e}function Kl(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Mg(n,e){let t=Kl(n),r=t;return n.eat(",")&&(n.next!="}"?r=Kl(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Eg(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function Tg(n){if(n.eat("(")){let e=ud(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Eg(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Ag(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,a,l){let c={term:l,to:a};return e[o].push(c),c}function i(o,a){o.forEach(l=>l.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((l,c)=>l.concat(s(c,a)),[]);if(o.type=="seq")for(let l=0;;l++){let c=s(o.exprs[l],a);if(l==o.exprs.length-1)return c;i(c,a=t())}else if(o.type=="star"){let l=t();return r(a,l),i(s(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=t();return i(s(o.expr,a),l),i(s(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(a)].concat(s(o.expr,a));if(o.type=="range"){let l=a;for(let c=0;c<o.min;c++){let u=t();i(s(o.expr,l),u),l=u}if(o.max==-1)i(s(o.expr,l),l);else for(let c=o.min;c<o.max;c++){let u=t();r(l,u),i(s(o.expr,l),u),l=u}return[r(l)]}else{if(o.type=="name")return[r(a,void 0,o.value)];throw new Error("Unknown expr type")}}}}function dd(n,e){return e-n}function Ul(n,e){let t=[];return r(e),t.sort(dd);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:a,to:l}=s[o];!a&&t.indexOf(l)==-1&&r(l)}}}function Ng(n){let e=Object.create(null);return t(Ul(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);Ul(n,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new ir(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let a=i[o][1].sort(dd);s.next.push({type:i[o][0],next:e[a.join(",")]||t(a)})}return s}}function Og(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];o.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function fd(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function hd(n,e){let t=Object.create(null);for(let r in n){let i=n[r],s=e&&e[r];if(s===void 0)if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r);else i.validate&&i.validate(s);t[r]=s}return t}function pd(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new Ig(n,r,e[r]);return t}let ql=class md{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=pd(e,r.attrs),this.defaultAttrs=fd(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ir.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hd(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Rn(this,this.computeAttrs(e),M.from(t),_e.setFrom(r))}createChecked(e=null,t,r){return t=M.from(t),this.checkContent(t),new Rn(this,this.computeAttrs(e),t,_e.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=M.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(M.empty,!0);return s?new Rn(this,e,t.append(s),_e.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:_e.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new md(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Dg(n,e,t){let r=t.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class Ig{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Dg(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class eo{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=pd(e,i.attrs),this.excluded=null;let s=fd(this.attrs);this.instance=s?new _e(this,s):null}create(e=null){return!e&&this.instance?this.instance:new _e(this,hd(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new eo(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class ns{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=mt.from(e.nodes),t.marks=mt.from(e.marks||{}),this.nodes=ql.compile(this.spec.nodes,this),this.marks=eo.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=ir.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?Jl(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:Jl(this,o.split(" "))}this.nodeFromJSON=i=>Rn.fromJSON(this,i),this.markFromJSON=i=>_e.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof ql){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new ps(r,r.defaultAttrs,e,_e.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Jl(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let a in n.marks){let l=n.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Rg(n){return n.tag!=null}function Lg(n){return n.style!=null}let ti=class sa{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(Rg(i))this.tags.push(i);else if(Lg(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new Xl(this,t,!1);return r.addAll(e,_e.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Xl(this,t,!0);return r.addAll(e,_e.none,t.from,t.to),H.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(zg(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],a=o.style;if(!(a.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(o.getAttrs){let l=o.getAttrs(t);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let a=t[o];if((a.priority==null?50:a.priority)<s)break}t.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Yl(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Yl(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new sa(e,sa.schemaRules(e)))}};const gd={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Pg={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},yd={ol:!0,ul:!0},yi=1,oa=2,ni=4;function Gl(n,e,t){return e!=null?(e?yi:0)|(e==="full"?oa:0):n&&n.whitespace=="pre"?yi|oa:t&~ni}class Bi{constructor(e,t,r,i,s,o){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=_e.none,this.match=s||(o&ni?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&yi)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!gd.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Xl{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,s,o=Gl(null,t.preserveWhitespace,0)|(r?ni:0);i?s=new Bi(i.type,i.attrs,_e.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Bi(null,null,_e.none,!0,null,o):s=new Bi(e.schema.topNodeType,null,_e.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,i=this.top,s=i.options&oa?"full":this.localPreserveWS||(i.options&yi)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
|
|
4
4
|
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let a=r.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),t,!0),a[l]&&this.insertNode(o.text(a[l]),t,!/\S/.test(a[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=i.content[i.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),a;yd.hasOwnProperty(o)&&this.parser.normalizeLists&&_g(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:Pg.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(gd.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let d=l&&l.skip?t:this.readStyles(e,t);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
5
5
|
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let a=void 0;;){let l=this.parser.matchStyle(s,o,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?t=t.filter(c=>!l.clearMark(c)):t=t.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return t}addElementByRule(e,t,r,i){let s,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(o,t.attrs||null,r,t.preserveWhitespace);l&&(s=!0,r=l)}else{let l=this.parser.schema.marks[t.mark];r=r.concat(l.create(t.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}s&&this.sync(a)&&this.open--}addAll(e,t,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];o!=a;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,t);this.findAtPoint(e,s)}findPlace(e,t,r){let i,s;for(let o=this.open,a=0;o>=0;o--){let l=this.nodes[o],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+a)&&(i=c,s=l,!c.length))break;if(l.solid){if(r)break;a+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)t=this.enterInner(i[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(t=this.enterInner(s,null,t))}let i=this.findPlace(e,t,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=_e.none;for(let a of i.concat(e.marks))(s.type?s.type.allowsMarkType(a.type):Ql(a.type,e.type))&&(o=a.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,t,r,i){let s=this.findPlace(e.create(t),r,!1);return s&&(s=this.enterInner(e,t,r,!0,i)),s}enterInner(e,t,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=Gl(e,s,o.options);o.options&ni&&o.content.length==0&&(a|=ni);let l=_e.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):Ql(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Bi(e,t,l,i,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=yi)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(a,l)=>{for(;a>=0;a--){let c=t[a];if(c==""){if(a==t.length-1||a==0)continue;for(;l>=s;l--)if(o(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=s?r.node(l-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function _g(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&yd.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function zg(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Yl(n){let e={};for(let t in n)e[t]=n[t];return e}function Ql(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=a=>{s.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||s.indexOf(u)<0&&o(u))return!0}};if(o(i.contentMatch))return!0}}class ur{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Hi(t).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let a=0,l=0;for(;a<s.length&&l<o.marks.length;){let c=o.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(s[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<s.length;)i=s.pop()[1];for(;l<o.marks.length;){let c=o.marks[l++],u=this.serializeMark(c,o.isInline,t);u&&(s.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){if(e.isText)return Hi(t).createTextNode(e.text);let{dom:r,contentDOM:i}=rs(Hi(t),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&rs(Hi(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:rs(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ur(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Zl(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Zl(e.marks)}}function Zl(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Hi(n){return n.document||window.document}const ec=new WeakMap;function $g(n){let e=ec.get(n);return e===void 0&&ec.set(n,e=Bg(n)),e}function Bg(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)t(r[i]);else for(let i in r)t(r[i])}return t(n),e}function rs(n,e,t,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=$g(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let a,l=t?n.createElementNS(t,i):n.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof f=="string")l.appendChild(n.createTextNode(f));else{let{dom:h,contentDOM:p}=rs(n,f,t,r);if(l.appendChild(h),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const bd=65535,vd=Math.pow(2,16);function Hg(n,e){return n+e*vd}function tc(n){return n&bd}function Fg(n){return(n-(n&bd))/vd}const kd=1,xd=2,is=4,wd=8;class aa{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&wd)>0}get deletedBefore(){return(this.delInfo&(kd|is))>0}get deletedAfter(){return(this.delInfo&(xd|is))>0}get deletedAcross(){return(this.delInfo&is)>0}}class Lt{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Lt.empty)return Lt.empty}recover(e){let t=0,r=tc(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+Fg(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[a+s],u=this.ranges[a+o],d=l+c;if(e<=d){let f=c?e==l?-1:e==d?1:t:t,h=l+i+(f<0?0:u);if(r)return h;let p=e==(t<0?l:d)?null:Hg(a/3,e-l),g=0;return c&&(g|=e==l?xd:e==d?kd:is,(t<0?e!=l:e!=d)&&(g|=wd)),new aa(h,g,p)}i+=u-c}return r?e+i:new aa(e+i,0,null)}touches(e,t){let r=0,i=tc(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+s],u=l+c;if(e<=u&&a==i*3)return!0;r+=this.ranges[a+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],a=o-(this.inverted?s:0),l=o+(this.inverted?0:s),c=this.ranges[i+t],u=this.ranges[i+r];e(a,a+c,l,l+u),s+=u-c}}invert(){return new Lt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Lt.empty:new Lt(e<0?[0,-e,0]:[0,0,e])}}Lt.empty=new Lt([]);class bi{constructor(e,t,r=0,i=e?e.length:0){this.mirror=t,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new bi(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let i=e.getMirror(t);this.appendMap(e._maps[t],i!=null&&i<t?r+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new bi;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],a=o.mapResult(e,t);if(a.recover!=null){let l=this.getMirror(s);if(l!=null&&l>s&&l<this.to){s=l,e=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new aa(e,i,null)}}const Oo=Object.create(null);class Mt{getMap(){return Lt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Oo[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Oo)throw new RangeError("Duplicate use of step JSON ID "+e);return Oo[e]=t,t.prototype.jsonID=e,t}}class rt{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new rt(e,null)}static fail(e){return new rt(null,e)}static fromReplace(e,t,r,i){try{return rt.ok(e.replace(t,r,i))}catch(s){if(s instanceof mi)return rt.fail(s.message);throw s}}}function $a(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let s=n.child(i);s.content.size&&(s=s.copy($a(s.content,e,s))),s.isInline&&(s=e(s,t,i)),r.push(s)}return M.fromArray(r)}class Dn extends Mt{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new H($a(t.content,(o,a)=>!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return rt.fromReplace(e,this.from,this.to,s)}invert(){return new Gt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Dn(t.pos,r.pos,this.mark)}merge(e){return e instanceof Dn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Dn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Dn(t.from,t.to,e.markFromJSON(t.mark))}}Mt.jsonID("addMark",Dn);class Gt extends Mt{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new H($a(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return rt.fromReplace(e,this.from,this.to,r)}invert(){return new Dn(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Gt(t.pos,r.pos,this.mark)}merge(e){return e instanceof Gt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Gt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Gt(t.from,t.to,e.markFromJSON(t.mark))}}Mt.jsonID("removeMark",Gt);class In extends Mt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return rt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return rt.fromReplace(e,this.pos,this.pos+1,new H(M.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new In(this.pos,t.marks[i]);return new In(this.pos,this.mark)}}return new sr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new In(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new In(t.pos,e.markFromJSON(t.mark))}}Mt.jsonID("addNodeMark",In);class sr extends Mt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return rt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return rt.fromReplace(e,this.pos,this.pos+1,new H(M.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new In(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new sr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new sr(t.pos,e.markFromJSON(t.mark))}}Mt.jsonID("removeNodeMark",sr);class Qe extends Mt{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&la(e,this.from,this.to)?rt.fail("Structure replace would overwrite content"):rt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Lt([this.from,this.to-this.from,this.slice.size])}invert(e){return new Qe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&Qe.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new Qe(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Qe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?H.empty:new H(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Qe(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?H.empty:new H(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Qe(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Qe(t.from,t.to,H.fromJSON(e,t.slice),!!t.structure)}}Qe.MAP_BIAS=1;Mt.jsonID("replace",Qe);class ft extends Mt{constructor(e,t,r,i,s,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=a}apply(e){if(this.structure&&(la(e,this.from,this.gapFrom)||la(e,this.gapTo,this.to)))return rt.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return rt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?rt.fromReplace(e,this.from,this.to,r):rt.fail("Content does not fit in gap")}getMap(){return new Lt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new ft(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||s>r.pos?null:new ft(t.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ft(t.from,t.to,t.gapFrom,t.gapTo,H.fromJSON(e,t.slice),t.insert,!!t.structure)}}Mt.jsonID("replaceAround",ft);function la(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Vg(n,e,t,r){let i=[],s=[],o,a;n.doc.nodesBetween(e,t,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+l.nodeSize,t),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:i.push(o=new Gt(f,h,d[g])));a&&a.to==f?a.to=h:s.push(a=new Dn(f,h,r))}}),i.forEach(l=>n.step(l)),s.forEach(l=>n.step(l))}function Wg(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline)return;s++;let l=null;if(r instanceof eo){let c=o.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let c=Math.min(a+o.nodeSize,t);for(let u=0;u<l.length;u++){let d=l[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==s-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=s):i.push({style:d,from:Math.max(a,e),to:c,step:s})}}}),i.forEach(o=>n.step(new Gt(o.from,o.to,o.style)))}function Ba(n,e,t,r=t.contentMatch,i=!0){let s=n.doc.nodeAt(e),o=[],a=e+1;for(let l=0;l<s.childCount;l++){let c=s.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new Qe(a,u,H.empty));else{r=d;for(let f=0;f<c.marks.length;f++)t.allowsMarkType(c.marks[f].type)||n.step(new Gt(a,u,c.marks[f]));if(i&&c.isText&&t.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new H(M.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new Qe(a+f.index,a+f.index+f[0].length,p))}}a=u}if(!r.validEnd){let l=r.fillBefore(M.empty,!0);n.replace(a,a,new H(l,0,0))}for(let l=o.length-1;l>=0;l--)n.step(o[l])}function jg(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function $r(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,i=0,s=0;;--r){let o=n.$from.node(r),a=n.$from.index(r)+i,l=n.$to.indexAfter(r)-s;if(r<n.depth&&o.canReplace(a,l,t))return r;if(r==0||o.type.spec.isolating||!jg(o,a,l))break;a&&(i=1),l<o.childCount&&(s=1)}return null}function Kg(n,e,t){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),a=i.after(s+1),l=o,c=a,u=M.empty,d=0;for(let p=s,g=!1;p>t;p--)g||r.index(p)>0?(g=!0,u=M.from(r.node(p).copy(u)),d++):l--;let f=M.empty,h=0;for(let p=s,g=!1;p>t;p--)g||i.after(p+1)<i.end(p)?(g=!0,f=M.from(i.node(p).copy(f)),h++):c++;n.step(new ft(l,c,o,a,new H(u.append(f),d,h),u.size-d,!0))}function Ha(n,e,t=null,r=n){let i=Ug(n,e),s=i&&qg(r,e);return s?i.map(nc).concat({type:e,attrs:t}).concat(s.map(nc)):null}function nc(n){return{type:n,attrs:null}}function Ug(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return t.canReplaceWith(r,i,o)?s:null}function qg(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(t.child(c).type);return!l||!l.validEnd?null:o}function Jg(n,e,t){let r=M.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let a=t[o].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=M.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new ft(i,s,i,s,new H(r,0,0),t.length,!0))}function Gg(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,a)=>{let l=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,l)&&Xg(n.doc,n.mapping.slice(s).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Cd(n,o,a,s),Ba(n,n.mapping.slice(s).map(a,1),r,void 0,c===null);let u=n.mapping.slice(s),d=u.map(a,1),f=u.map(a+o.nodeSize,1);return n.step(new ft(d,f,d+1,f-1,new H(M.from(r.create(l,null,o.marks)),0,0),1,!0)),c===!0&&Sd(n,o,a,s),!1}})}function Sd(n,e,t,r){e.forEach((i,s)=>{if(i.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(i.text);){let l=n.mapping.slice(r).map(t+1+s+o.index);n.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Cd(n,e,t,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+s);n.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -170,4 +170,4 @@ ${t}
|
|
|
170
170
|
`,pasteChip:()=>" "}}function ze(b,E){return ol(b.state.doc,{from:0,to:E},{blockSeparator:`
|
|
171
171
|
|
|
172
172
|
`,textSerializers:Ge(b)}).replace(/\u00A0/g," ")}function ce(b){return ze(b,b.state.doc.content.size)}function Re(b){return ze(b,b.state.selection.from)}function pt(b,E){const R=ce(b),Z=iM(R,Re(b).length);(!Z||Z.from!==m(te)?.from)&&(fe(ke,null),fe($e,null)),fe(te,Z,!0),Z&&E?.dismissNewContext&&fe(ke,m(ot),!0)}function fr(){fe($e,m(te)?.from??null,!0)}function Ml(b){b.preventDefault()}function fp(b){if(!m(T)||!m(te))return;const E=ce(m(T)),R=Re(m(T)).length,Z={from:m(T).state.selection.from-m(te).query.length-1,to:m(T).state.selection.from+m(te).to-R},z=m(te).to===E.length||!/^\s/u.test(E.slice(m(te).to)),A=[{type:"skillCommand",attrs:{name:b.name}},...z?[{type:"text",text:" "}]:[]];m(T).chain().focus().insertContentAt(Z,A).setTextSelection(Z.from+2).run()}function Br(b){const E=VC(b,w().map(R=>R.name));return ye()?KS(E,ye()):E}function hp(b){if(!m(Ae)||!m(vt))return!1;const E=!b.shiftKey&&!b.metaKey&&!b.ctrlKey&&!b.altKey&&["ArrowUp","ArrowDown","Enter"].includes(b.key);return b.key!=="Escape"&&!E?!1:m(vt).onKeyDown({event:b})?!0:b.key==="Enter"?(b.preventDefault(),!0):!1}function pp(){m(T)&&m(T).view&&m(T).chain().focus().insertContent("@").run()}function mp(b){return m(T)&&m(T).view?(m(T).chain().focus().insertContent(b).run(),!0):!1}function gp(){if(f())return!1;if(m(T)&&m(T).view)try{if(m(T).view.hasFocus())return!0;const b=m(T),E=document.activeElement;return requestAnimationFrame(()=>{if(m(T)!==b||b.isDestroyed||f()||b.view.hasFocus())return;const R=document.activeElement;R!==E&&R instanceof HTMLElement&&qp(R)&&!b.view.dom.contains(R)||(b.view.focus(),b.commands.scrollIntoView())}),typeof m(T).view.hasFocus=="function"?m(T).view.hasFocus():!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focus:",b)}return!1}function yp(){if(f())return!1;if(m(T)&&m(T).view)try{return m(T).chain().focus("end").run(),!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focusEnd:",b)}return!1}function bp(){if(f())return!1;if(m(T)&&m(T).view)try{return m(T).chain().focus().selectAll().run(),!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focusAndSelectAll:",b)}return!1}function vp(){try{return m(T)?.getHTML?.()??""}catch(b){return i.error("[TipTapEditor] Error getting HTML:",b),m(T)?.getText?.()??""}}function kp(){m(T)&&(Zt=!0,m(T).commands.clearContent(!0),Zt=!1)}async function xp(b){if(!m(T))return;const E=Br(b||"");ws(E,m(T).schema).eq(m(T).state.doc)||m(T).chain().command(({tr:R})=>(R.setMeta("external-update",!0),!0)).setContent(E).run()}function wp(b,E){m(T)&&m(T).view&&m(T).chain().focus().setImage({src:b,alt:E||""}).createParagraphNear().focus().run()}function Sp(){if(!m(T))return i.warn("TipTapEditor: getInlineImages called but editor is not initialized"),[];const b=[];return m(T).state.doc.descendants(E=>{if(E.type.name==="image"){const R=E.attrs.src;R&&R.startsWith("data:")&&b.push({src:R,alt:E.attrs.alt||void 0})}return!0}),i.debug("TipTapEditor: Extracted inline images",{imageCount:b.length,imageSources:b.map(E=>({alt:E.alt,srcLength:E.src?.length||0}))}),b}function Cp(){return br(m(T))}function Mp(b){if(i.debug("TipTapEditor: insertContextMention called",{hasEditor:!!m(T),hasEditorView:!!m(T)?.view,attrs:{itemType:b.itemType,identifier:b.identifier,title:b.title}}),m(T)&&m(T).view){const E=m(T).chain().focus().insertContextMention(b).run();return i.debug("TipTapEditor: insertContextMention result",{result:E}),E}return i.warn("TipTapEditor: insertContextMention failed - no editor"),!1}function Ep(b){if(!m(T)||!m(T).view)return i.warn("TipTapEditor: insertMention called but editor is not initialized"),!1;try{return m(T).chain().focus().insertContent({type:"mention",attrs:{id:b.id,label:b.label,type:b.type,uri:b.uri,meta:b.meta||{}}}).insertContent(" ").run(),!0}catch(E){return i.error("TipTapEditor: insertMention failed",E),!1}}function Tp(){if(!m(T))return i.warn("TipTapEditor: getMentions called but editor is not initialized"),[];const b=[];return m(T).state.doc.descendants(E=>(E.type.name==="mention"&&b.push({id:E.attrs.id,label:E.attrs.label,type:E.attrs.type||"file",uri:E.attrs.uri||"",meta:E.attrs.meta||{}}),!0)),i.debug("TipTapEditor: Extracted mentions",{mentionCount:b.length,types:b.map(E=>E.type)}),b}function Ap(){if(!m(T))return i.warn("TipTapEditor: getContextMentions called but editor is not initialized"),[];const b=[];return m(T).state.doc.descendants(E=>{if(E.type.name==="contextMention"){const R=E.attrs;b.push({itemType:R.itemType,provider:R.provider,title:R.title,url:R.url,identifier:R.identifier,contextId:R.contextId,description:R.description,metadata:R.metadata})}return!0}),i.debug("TipTapEditor: Extracted context mentions",{mentionCount:b.length}),b}const Pi={char:"@",pluginKey:new Fe("mention"),items:async({query:b})=>{if(i.debug("Mention query:",b),_()?.(b),!g()&&y()){i.debug("No workspace but repoPath available, using async search:",y());const R={workspaceId:void 0,repoPath:y(),currentFile:void 0,currentNote:void 0,recentFiles:[]};try{const Z=await s.search(b,R);return i.debug("Mention search results from repoPath:",Z.length),Z}catch(Z){i.error("Failed to search mentions with repoPath:",Z);const z=s.searchSync(b,R);return i.debug("Fallback sync search results:",z.length),z}}if(!g())return i.debug("No workspace and no repoPath - returning empty results"),[];const E={workspaceId:g().id,currentFile:void 0,currentNote:void 0,recentFiles:[]};try{const R=await s.search(b,E);return i.debug("Mention search results:",R.length),R}catch(R){return i.error("Failed to search mentions:",R),[]}},render:()=>xC(Ie),command:({editor:b,range:E,props:R})=>{const Z={id:R.id,label:R.label,type:R.type,uri:R.uri,meta:R.meta||{}};b.view&&b.chain().focus().deleteRange(E).insertContent({type:"mention",attrs:Z}).run(),V()?.(R)}};$u(()=>{let b=!1;return(async()=>{const E=Br(o()||"");if(b)return;const R=m(Je);if(!R)return;fe(T,new k1({element:R,extensions:[...ye()?[WS.configure({references:()=>ye()??[]}),jS]:[],Kw.configure({heading:!1,codeBlock:!1,horizontalRule:!1,link:!1,bulletList:!1,orderedList:!1,listItem:!1,code:!1,bold:!1,italic:!1,strike:!1,blockquote:!1,dropcursor:!1}),up({openOnClick:!1,linkOnPaste:!0,shouldAutoLink:z=>/^https?:\/\//.test(z)||z.startsWith("intent://"),HTMLAttributes:{class:"text-primary-ink underline"}}),Uw.configure({placeholder:c()?({editor:z})=>On.getState(z.state)?.parts.length?"":l():l(),emptyEditorClass:"is-editor-empty text-subtle",showOnlyWhenEditable:!1}),hS.configure({inline:!1,allowBase64:!0,HTMLAttributes:{class:"chat-inline-image"}}),xS.configure({workspaceId:g()?.id}),r.configure({HTMLAttributes:{class:"mention-chip"},suggestion:Pi,renderHTML({node:z}){const A=Vm(z.attrs,g()?.id,Wm);return["span",{"data-mention":"true","data-type":z.attrs.type||"file","data-uri":z.attrs.uri||"","data-meta":JSON.stringify(z.attrs.meta||{}),"data-id":z.attrs.id,"data-label":z.attrs.label,class:"mention-chip",tabindex:"0"},A]},renderText:({node:z})=>{const A=z.attrs||{};try{return rg({type:A.type,id:A.id,label:A.label,meta:A.meta})}catch{return`@${A?.meta?.fullPath||A?.meta?.path||A?.label||A?.id||"item"}`}}}),$S.extend({renderText:({node:z})=>{const A=z.attrs||{},Ne=JSON.stringify({provider:A.provider||"browser",identifier:A.identifier||"",title:A.title||"",url:A.url||"",description:A.description||"",metadata:A.metadata||"",itemType:A.itemType||""});return`@context[${btoa(unescape(encodeURIComponent(Ne)))}]`}}),VS,XS,XC],content:E,editable:m(je),enableCoreExtensions:{delete:!1},onCreate:({editor:z})=>{pt(z),v()&&requestAnimationFrame(()=>{if(z.isDestroyed)return;z.view.dom?.focus({preventScroll:!0})})},onTransaction:({transaction:z})=>{z.docChanged&&Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)},onUpdate:({editor:z,transaction:A})=>{if(A.getMeta("external-update")||A.getMeta(Cl)||Zt)return;const Ne=O()?GS(A):null;Ne&&O()?.(Ne);const Ke=br(z);pt(z,{dismissNewContext:A.getMeta("uiEvent")==="paste"}),A.getMeta(ko)?x()?.(Ke,{programmatic:!0}):x()?.(Ke)},onSelectionUpdate:({editor:z,transaction:A})=>{pt(z,{dismissNewContext:A.getMeta("uiEvent")==="paste"});const{from:Ne,to:Ke,empty:q}=z.state.selection;if(q)F()?.(null);else{const Le=z.state.doc.textBetween(Ne,Ke," ");F()?.(Le.trim()||null)}},onFocus:({editor:z})=>{Kn(()=>{fe(an,!0),pt(z)})},onBlur:()=>{Kn(()=>{fe(an,!1)})},editorProps:{handleDOMEvents:{compositionstart:()=>(Kn(()=>{fe(st,!0)}),qe()?.(!0),!1),compositionend:()=>(queueMicrotask(()=>{queueMicrotask(()=>{!m(T)||m(T).isDestroyed||(Kn(()=>{fe(st,!1)}),qe()?.(!1),zt())})}),!1),beforeinput:()=>(nt()?.(),!1)},attributes:{class:`tiptap-editor ${p()}`,role:"textbox","aria-multiline":"true","aria-label":a(),autocomplete:"off",spellcheck:"false",autocorrect:"off",autocapitalize:"off"},handlePaste:(z,A)=>{if(QS(A))return!0;const Ne=A.clipboardData?.getData("text/plain");if(Ne){const Ke=Ne.split(`
|
|
173
|
-
`);if(Ke.length>=5){const{state:Le,dispatch:at}=z,Xe=Le.schema.nodes.pasteChip.create({content:Ne,lineCount:Ke.length}),$t=Le.tr.replaceSelectionWith(Xe).setMeta("uiEvent","paste");return at($t),!0}const q=A.clipboardData?.getData("text/html");if(q&&KC(q,Ne))return z.dispatch(z.state.tr.insertText(Ne).scrollIntoView().setMeta("uiEvent","paste")),!0;if(/\r|\n/.test(Ne)){const{state:Le,dispatch:at}=z,Xe=WC(Le.schema,Ne);if(Xe.length>0){const $t=new H(M.from(Xe),1,1);return at(Le.tr.replaceSelection($t).scrollIntoView().setMeta("uiEvent","paste")),!0}}}return!1},handleDrop:(z,A)=>YS(A),handleKeyDown:(z,A)=>{if(z.composing||A.isComposing||A.keyCode===229)return!1;if(hp(A))return!0;if(A.key==="Escape"&&$())return A.preventDefault(),$()(),!0;const Ne=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),Ke=q=>dg(A,Fl(q),Ne);if(Ke("chat.mention-context")&&Fl("chat.mention-context")!=="@")return A.preventDefault(),m(T)?.chain().focus().insertContent("@").run(),!0;if(Ne&&A.ctrlKey&&!A.metaKey){if(A.key==="a"){A.preventDefault();const{state:q,dispatch:Le}=z,Xe=q.selection.$head.start();return Le(q.tr.setSelection(W.create(q.doc,Xe))),!0}if(A.key==="e"){A.preventDefault();const{state:q,dispatch:Le}=z,Xe=q.selection.$head.end();return Le(q.tr.setSelection(W.create(q.doc,Xe))),!0}if(A.key==="k"){A.preventDefault();const{state:q,dispatch:Le}=z,at=q.selection.$head,Xe=at.pos,$t=at.end();return Xe<$t&&Le(q.tr.delete(Xe,$t)),!0}if(A.key==="p"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","backward","line"),!0}if(A.key==="n"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","forward","line"),!0}if(A.key==="f"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","forward","character"),!0}if(A.key==="b"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","backward","character"),!0}}if(A.metaKey&&!A.ctrlKey&&!A.altKey){if(A.key==="ArrowLeft"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify(A.shiftKey?"extend":"move","backward","lineboundary"),!0}if(A.key==="ArrowRight"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify(A.shiftKey?"extend":"move","forward","lineboundary"),!0}if(A.key==="ArrowUp"){A.preventDefault();const{state:q,dispatch:Le}=z,at=1;if(A.shiftKey){const{from:Xe}=q.selection;Le(q.tr.setSelection(W.create(q.doc,at,Xe)))}else Le(q.tr.setSelection(W.create(q.doc,at)));return!0}if(A.key==="ArrowDown"){A.preventDefault();const{state:q,dispatch:Le}=z,at=q.doc.content.size-1;if(A.shiftKey){const{to:Xe}=q.selection;Le(q.tr.setSelection(W.create(q.doc,Xe,at)))}else Le(q.tr.setSelection(W.create(q.doc,at)));return!0}}if(Ke("chat.force-send"))return A.preventDefault(),k()?.(),!0;if(Ke("chat.new-line"))return A.preventDefault(),m(T)?.chain().setHardBreak().scrollIntoView().run(),!0;if(A.key==="ArrowUp"&&I()&&!A.shiftKey&&!A.metaKey&&!A.ctrlKey){if(Pi.pluginKey.getState(z.state)?.active)return!1;const{state:Le}=z,{from:at}=Le.selection,Xe=at<=1,$t=Le.doc.textContent.length===0;if(Xe||$t){const Wn=I()();if(Wn!==null)return A.preventDefault(),m(T)?.chain().setContent(Br(Wn)).focus("end").run(),x()?.(Wn),!0}}if(A.key==="ArrowDown"&&C()&&!A.shiftKey&&!A.metaKey&&!A.ctrlKey){if(Pi.pluginKey.getState(z.state)?.active)return!1;const{state:Le}=z,{to:at}=Le.selection,Xe=Le.doc.content.size-1,$t=at>=Xe,Wn=Le.doc.textContent.length===0;if($t||Wn){const Hr=C()();if(Hr!==null)return A.preventDefault(),m(T)?.chain().setContent(Br(Hr)).focus("end").run(),x()?.(Hr),!0}}return Ke("chat.send")?Pi.pluginKey.getState(z.state)?.active?!1:S()?(A.preventDefault(),S()(),!0):!1:!1}}}),!0),R.addEventListener("mouseover",El),R.addEventListener("mouseout",Tl),R.addEventListener("click",Nl),m(T).view.dom.addEventListener("keydown",Ol)})(),()=>{b=!0}});function El(b){const E=b.target,R=Ll(E);if(R){const Z=E.getBoundingClientRect();if(!Te){Te=document.createElement("div"),(Ie?.target()??document.body).appendChild(Te);const z=R.type||"file",A=R.label||E.textContent||"",Ne={file:"📄",folder:"📁",note:"📝",rule:"⚙️",personality:"🎭",command:"⌘",terminal:"💻",member:"👤"};Se=Zr(op,{target:Te,props:{mention:{id:R.id,type:z,label:A,uri:R.uri,meta:R.meta,icon:Ne[z]||"📄"},position:{x:Z.left,y:Z.bottom+5},onClose:()=>{Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}}});const Ke=Te.firstElementChild;Ke instanceof HTMLElement&&(tt=Ie?.register(Ke,Qt)),Te.addEventListener("mouseout",Al)}}}function Tl(b){const E=b.target;b.relatedTarget?.closest(".mention-hover-preview")||E.hasAttribute("data-mention")&&Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}function Al(b){b.relatedTarget?.closest("[data-mention]")||Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}async function Nl(b){const E=Ll(b.target);if(E&&E.type!=="member"){if(E.intentUrl){b.preventDefault(),b.stopPropagation();const{handleIntentLink:R}=await zi(async()=>{const{handleIntentLink:Z}=await import("./7mowE2Gg.js");return{handleIntentLink:Z}},__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,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await R(E.intentUrl);return}if(E.type==="note"&&E.note){if(b.preventDefault(),b.stopPropagation(),E.note.workspaceId){const{handleIntentLink:R}=await zi(async()=>{const{handleIntentLink:Z}=await import("./7mowE2Gg.js");return{handleIntentLink:Z}},__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,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await R(ig(E.note.id,E.note.workspaceId))}else{const{navigateToNote:R}=await zi(async()=>{const{navigateToNote:Z}=await import("./4GHsM2YX.js").then(z=>z.h);return{navigateToNote:Z}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await R(E.note.id)}return}if(E.type==="file"&&E.filePath){b.preventDefault(),b.stopPropagation();const{navigateToFile:R}=await zi(async()=>{const{navigateToFile:Z}=await import("./4GHsM2YX.js").then(z=>z.h);return{navigateToFile:Z}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await R(E.filePath);return}}}function Ol(b){if(!b.metaKey||b.ctrlKey||b.altKey||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(b.key)||!m(T))return;const{state:E,dispatch:R}=m(T).view;if(b.key==="ArrowLeft"){b.preventDefault(),b.stopPropagation();const Z=window.getSelection();Z&&Z.rangeCount>0&&Z.modify(b.shiftKey?"extend":"move","backward","lineboundary")}else if(b.key==="ArrowRight"){b.preventDefault(),b.stopPropagation();const Z=window.getSelection();Z&&Z.rangeCount>0&&Z.modify(b.shiftKey?"extend":"move","forward","lineboundary")}else if(b.key==="ArrowUp"){b.preventDefault(),b.stopPropagation();const Z=1;if(b.shiftKey){const{from:z}=E.selection;R(E.tr.setSelection(W.create(E.doc,Z,z)).scrollIntoView())}else R(E.tr.setSelection(W.create(E.doc,Z)).scrollIntoView())}else if(b.key==="ArrowDown"){b.preventDefault(),b.stopPropagation();const Z=E.doc.content.size-1;if(b.shiftKey){const{to:z}=E.selection;R(E.tr.setSelection(W.create(E.doc,z,Z)).scrollIntoView())}else R(E.tr.setSelection(W.create(E.doc,Z)).scrollIntoView())}}Hu(()=>{m(T)&&(m(T).view.dom.removeEventListener("keydown",Ol),m(T).destroy()),m(Je)&&(m(Je).removeEventListener("mouseover",El),m(Je).removeEventListener("mouseout",Tl),m(Je).removeEventListener("click",Nl)),Te&&Te.removeEventListener("mouseout",Al),Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove())});let xo=0;kt(()=>{if(!m(T))return;const b=br(m(T));if(o()===b)return;if(m(T).view.hasFocus()){xo+=1;return}const E=m(T).view.hasFocus(),{from:R}=m(T).state.selection,Z=++xo;(async()=>{const z=Br(o()||"");!m(T)||Z!==xo||br(m(T))===b&&m(T).chain().command(({tr:A})=>(A.setMeta("external-update",!0),!0)).setContent(z).command(({tr:A,state:Ne})=>{if(E)try{const Ke=Ne.doc.content.size,q=Math.min(R,Ke);A.setSelection(W.create(Ne.doc,q,q))}catch{}return!0}).run()})()}),kt(()=>{m(T)&&m(T).setEditable(m(je),!1)}),kt(()=>{!m(T)||m(T).isDestroyed||m(T).view.dispatch(m(T).state.tr.setMeta(Qr,be()))}),kt(()=>{const b=m(T)?.view.dom;b&&(b.setAttribute("aria-haspopup","listbox"),m(Ae)&&m(Rt)?(b.setAttribute("aria-controls",Nt),b.setAttribute("aria-activedescendant",m(Rt))):(b.removeAttribute("aria-controls"),b.removeAttribute("aria-activedescendant")))});var Np={flushScreenEvidence:zt,insertAtSymbol:pp,insertText:mp,focus:gp,focusEnd:yp,focusAndSelectAll:bp,getHTML:vp,clear:kp,setContent:xp,insertImage:wp,getInlineImages:Sp,getTextContent:Cp,insertContextMention:Mp,insertMention:Ep,getMentions:Tp,getContextMentions:Ap,get value(){return o()},set value(b=""){o(b),P()},get ariaLabel(){return a()},set ariaLabel(b=re.chat_richInput_editor_ariaLabel()){a(b),P()},get placeholder(){return l()},set placeholder(b=re.chat_richInput_askAnything_placeholder()){l(b),P()},get reactivePlaceholder(){return c()},set reactivePlaceholder(b=!1){c(b),P()},get disabled(){return u()},set disabled(b=!1){u(b),P()},get editableWhileDisabled(){return d()},set editableWhileDisabled(b=!1){d(b),P()},get inputLocked(){return f()},set inputLocked(b=!1){f(b),P()},get class(){return h()},set class(b=""){h(b),P()},get editorClassName(){return p()},set editorClassName(b=""){p(b),P()},get workspace(){return g()},set workspace(b){g(b),P()},get repoPath(){return y()},set repoPath(b){y(b),P()},get autoFocus(){return v()},set autoFocus(b=!1){v(b),P()},get onUpdate(){return x()},set onUpdate(b){x(b),P()},get onSubmit(){return S()},set onSubmit(b){S(b),P()},get onForceSubmit(){return k()},set onForceSubmit(b){k(b),P()},get onEscape(){return $()},set onEscape(b){$(b),P()},get onHistoryPrev(){return I()},set onHistoryPrev(b){I(b),P()},get onHistoryNext(){return C()},set onHistoryNext(b){C(b),P()},get onMentionStart(){return _()},set onMentionStart(b){_(b),P()},get onMentionSelect(){return V()},set onMentionSelect(b){V(b),P()},get onSelectionChange(){return F()},set onSelectionChange(b){F(b),P()},get contextItems(){return me()},set contextItems(b=[]){me(b),P()},get trailingHint(){return be()},set trailingHint(b=null){be(b),P()},get skills(){return w()},set skills(b=[]){w(b),P()},get skillsLoading(){return N()},set skillsLoading(b=!1){N(b),P()},get skillsError(){return j()},set skillsError(b=null){j(b),P()},get onSkillsRetry(){return Q()},set onSkillsRetry(b){Q(b),P()},get slashEmptyLabel(){return Ee()},set slashEmptyLabel(b){Ee(b),P()},get slashNotice(){return le()},set slashNotice(b){le(b),P()},get unavailableSkillTitle(){return Oe()},set unavailableSkillTitle(b){Oe(b),P()},get screenReferences(){return ye()},set screenReferences(b){ye(b),P()},get screenInsertions(){return De()},set screenInsertions(b=[]){De(b),P()},get screenInterim(){return et()},set screenInterim(b=[]){et(b),P()},get screenSpeechActive(){return Ve()},set screenSpeechActive(b=!1){Ve(b),P()},get onScreenInsertionApplied(){return X()},set onScreenInsertionApplied(b){X(b),P()},get onCompositionChange(){return qe()},set onCompositionChange(b){qe(b),P()},get onUserTextInput(){return nt()},set onUserTextInput(b){nt(b),P()},get onScreenReferencesEdited(){return O()},set onScreenReferencesEdited(b){O(b),P()},get minHeight(){return U()},set minHeight(b=80){U(b),P()},get maxHeight(){return ge()},set maxHeight(b=300){ge(b),P()},$set:jt,$on:(b,E)=>Kt(e,b,E)},wo=aM(),Dl=he(wo),Op=()=>m(Ae),Dp=b=>!b&&fr();Eo(Dl,()=>pg,(b,E)=>{E(b,{get open(){return Op()},set open(R){Dp(R)},children:(R,Z)=>{var z=Er(),A=Dt(z);{let Ne=B(()=>Ie?.target());Eo(A,()=>Zp,(Ke,q)=>{q(Ke,{get to(){return m(Ne)},children:(Le,at)=>{var Xe=Er(),$t=Dt(Xe);{let Wn=B(()=>m(Je)??null);Eo($t,()=>hg,(Hr,Ip)=>{Ip(Hr,{get customAnchor(){return m(Wn)},side:"top",align:"start",sideOffset:4,trapFocus:!1,onOpenAutoFocus:Ml,onCloseAutoFocus:Ml,class:"z-(--layer-popover) w-72 max-w-full","data-testid":"slash-skill-menu",get ref(){return m(we)},set ref(Co){fe(we,Co,!0)},children:(Co,cM)=>{Or(dp(Co,{get listboxId(){return Nt},get items(){return m(Be)},get loading(){return N()},get error(){return j()},get emptyLabel(){return Ee()},get notice(){return le()},get onRetry(){return Q()},onSelect:fp,onDismiss:fr,onActiveOptionChange:Mo=>fe(Rt,Mo,!0)}),Mo=>fe(vt,Mo,!0),()=>m(vt))},$$slots:{default:!0}})})}K(Le,Xe)},$$slots:{default:!0}})})}K(R,z)},$$slots:{default:!0}})});var So=ie(Dl,2);let Il;return Or(So,b=>fe(Je,b),()=>m(Je)),ae(wo),ne(()=>{Il=bn(So,1,`tiptap-container ${h()??""}`,"svelte-bv9i3d",Il,{"placeholder-suppressed":m(Et)}),pi(So,`--tt-min-height:${U()}px;--tt-max-height:${ge()}px`)}),K(n,wo),qt(Np)}export{IC as A,lr as B,_1 as C,ur as D,k1 as E,M as F,tp as G,ol as H,Li as I,al as J,YS as K,jM as L,dr as M,Zh as N,Rf as O,Pe as P,Me as Q,hS as R,se as S,uw as T,uS as U,Kw as V,Uw as W,zr as X,B1 as a,$S as b,Pa as c,dt as d,pe as e,We as f,Zu as g,it as h,G as i,S1 as j,vo as k,xS as l,Fe as m,ly as n,H as o,Sl as p,dw as q,W as r,lM as s,Dd as t,Ce as u,xC as v,UM as w,WM as x,Sv as y,J as z};
|
|
173
|
+
`);if(Ke.length>=5){const{state:Le,dispatch:at}=z,Xe=Le.schema.nodes.pasteChip.create({content:Ne,lineCount:Ke.length}),$t=Le.tr.replaceSelectionWith(Xe).setMeta("uiEvent","paste");return at($t),!0}const q=A.clipboardData?.getData("text/html");if(q&&KC(q,Ne))return z.dispatch(z.state.tr.insertText(Ne).scrollIntoView().setMeta("uiEvent","paste")),!0;if(/\r|\n/.test(Ne)){const{state:Le,dispatch:at}=z,Xe=WC(Le.schema,Ne);if(Xe.length>0){const $t=new H(M.from(Xe),1,1);return at(Le.tr.replaceSelection($t).scrollIntoView().setMeta("uiEvent","paste")),!0}}}return!1},handleDrop:(z,A)=>YS(A),handleKeyDown:(z,A)=>{if(z.composing||A.isComposing||A.keyCode===229)return!1;if(hp(A))return!0;if(A.key==="Escape"&&$())return A.preventDefault(),$()(),!0;const Ne=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),Ke=q=>dg(A,Fl(q),Ne);if(Ke("chat.mention-context")&&Fl("chat.mention-context")!=="@")return A.preventDefault(),m(T)?.chain().focus().insertContent("@").run(),!0;if(Ne&&A.ctrlKey&&!A.metaKey){if(A.key==="a"){A.preventDefault();const{state:q,dispatch:Le}=z,Xe=q.selection.$head.start();return Le(q.tr.setSelection(W.create(q.doc,Xe))),!0}if(A.key==="e"){A.preventDefault();const{state:q,dispatch:Le}=z,Xe=q.selection.$head.end();return Le(q.tr.setSelection(W.create(q.doc,Xe))),!0}if(A.key==="k"){A.preventDefault();const{state:q,dispatch:Le}=z,at=q.selection.$head,Xe=at.pos,$t=at.end();return Xe<$t&&Le(q.tr.delete(Xe,$t)),!0}if(A.key==="p"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","backward","line"),!0}if(A.key==="n"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","forward","line"),!0}if(A.key==="f"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","forward","character"),!0}if(A.key==="b"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify("move","backward","character"),!0}}if(A.metaKey&&!A.ctrlKey&&!A.altKey){if(A.key==="ArrowLeft"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify(A.shiftKey?"extend":"move","backward","lineboundary"),!0}if(A.key==="ArrowRight"){A.preventDefault();const q=window.getSelection();return q&&q.rangeCount>0&&q.modify(A.shiftKey?"extend":"move","forward","lineboundary"),!0}if(A.key==="ArrowUp"){A.preventDefault();const{state:q,dispatch:Le}=z,at=1;if(A.shiftKey){const{from:Xe}=q.selection;Le(q.tr.setSelection(W.create(q.doc,at,Xe)))}else Le(q.tr.setSelection(W.create(q.doc,at)));return!0}if(A.key==="ArrowDown"){A.preventDefault();const{state:q,dispatch:Le}=z,at=q.doc.content.size-1;if(A.shiftKey){const{to:Xe}=q.selection;Le(q.tr.setSelection(W.create(q.doc,Xe,at)))}else Le(q.tr.setSelection(W.create(q.doc,at)));return!0}}if(Ke("chat.force-send"))return A.preventDefault(),k()?.(),!0;if(Ke("chat.new-line"))return A.preventDefault(),m(T)?.chain().setHardBreak().scrollIntoView().run(),!0;if(A.key==="ArrowUp"&&I()&&!A.shiftKey&&!A.metaKey&&!A.ctrlKey){if(Pi.pluginKey.getState(z.state)?.active)return!1;const{state:Le}=z,{from:at}=Le.selection,Xe=at<=1,$t=Le.doc.textContent.length===0;if(Xe||$t){const Wn=I()();if(Wn!==null)return A.preventDefault(),m(T)?.chain().setContent(Br(Wn)).focus("end").run(),x()?.(Wn),!0}}if(A.key==="ArrowDown"&&C()&&!A.shiftKey&&!A.metaKey&&!A.ctrlKey){if(Pi.pluginKey.getState(z.state)?.active)return!1;const{state:Le}=z,{to:at}=Le.selection,Xe=Le.doc.content.size-1,$t=at>=Xe,Wn=Le.doc.textContent.length===0;if($t||Wn){const Hr=C()();if(Hr!==null)return A.preventDefault(),m(T)?.chain().setContent(Br(Hr)).focus("end").run(),x()?.(Hr),!0}}return Ke("chat.send")?Pi.pluginKey.getState(z.state)?.active?!1:S()?(A.preventDefault(),S()(),!0):!1:!1}}}),!0),R.addEventListener("mouseover",El),R.addEventListener("mouseout",Tl),R.addEventListener("click",Nl),m(T).view.dom.addEventListener("keydown",Ol)})(),()=>{b=!0}});function El(b){const E=b.target,R=Ll(E);if(R){const Z=E.getBoundingClientRect();if(!Te){Te=document.createElement("div"),(Ie?.target()??document.body).appendChild(Te);const z=R.type||"file",A=R.label||E.textContent||"",Ne={file:"📄",folder:"📁",note:"📝",rule:"⚙️",personality:"🎭",command:"⌘",terminal:"💻",member:"👤"};Se=Zr(op,{target:Te,props:{mention:{id:R.id,type:z,label:A,uri:R.uri,meta:R.meta,icon:Ne[z]||"📄"},position:{x:Z.left,y:Z.bottom+5},onClose:()=>{Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}}});const Ke=Te.firstElementChild;Ke instanceof HTMLElement&&(tt=Ie?.register(Ke,Qt)),Te.addEventListener("mouseout",Al)}}}function Tl(b){const E=b.target;b.relatedTarget?.closest(".mention-hover-preview")||E.hasAttribute("data-mention")&&Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}function Al(b){b.relatedTarget?.closest("[data-mention]")||Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove(),Se=null,Te=null)}async function Nl(b){const E=Ll(b.target);if(E&&E.type!=="member"){if(E.intentUrl){b.preventDefault(),b.stopPropagation();const{handleIntentLink:R}=await zi(async()=>{const{handleIntentLink:Z}=await import("./CQWMr-uu.js");return{handleIntentLink:Z}},__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,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await R(E.intentUrl);return}if(E.type==="note"&&E.note){if(b.preventDefault(),b.stopPropagation(),E.note.workspaceId){const{handleIntentLink:R}=await zi(async()=>{const{handleIntentLink:Z}=await import("./CQWMr-uu.js");return{handleIntentLink:Z}},__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,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await R(ig(E.note.id,E.note.workspaceId))}else{const{navigateToNote:R}=await zi(async()=>{const{navigateToNote:Z}=await import("./DUfE7lx2.js").then(z=>z.h);return{navigateToNote:Z}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await R(E.note.id)}return}if(E.type==="file"&&E.filePath){b.preventDefault(),b.stopPropagation();const{navigateToFile:R}=await zi(async()=>{const{navigateToFile:Z}=await import("./DUfE7lx2.js").then(z=>z.h);return{navigateToFile:Z}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await R(E.filePath);return}}}function Ol(b){if(!b.metaKey||b.ctrlKey||b.altKey||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(b.key)||!m(T))return;const{state:E,dispatch:R}=m(T).view;if(b.key==="ArrowLeft"){b.preventDefault(),b.stopPropagation();const Z=window.getSelection();Z&&Z.rangeCount>0&&Z.modify(b.shiftKey?"extend":"move","backward","lineboundary")}else if(b.key==="ArrowRight"){b.preventDefault(),b.stopPropagation();const Z=window.getSelection();Z&&Z.rangeCount>0&&Z.modify(b.shiftKey?"extend":"move","forward","lineboundary")}else if(b.key==="ArrowUp"){b.preventDefault(),b.stopPropagation();const Z=1;if(b.shiftKey){const{from:z}=E.selection;R(E.tr.setSelection(W.create(E.doc,Z,z)).scrollIntoView())}else R(E.tr.setSelection(W.create(E.doc,Z)).scrollIntoView())}else if(b.key==="ArrowDown"){b.preventDefault(),b.stopPropagation();const Z=E.doc.content.size-1;if(b.shiftKey){const{to:z}=E.selection;R(E.tr.setSelection(W.create(E.doc,z,Z)).scrollIntoView())}else R(E.tr.setSelection(W.create(E.doc,Z)).scrollIntoView())}}Hu(()=>{m(T)&&(m(T).view.dom.removeEventListener("keydown",Ol),m(T).destroy()),m(Je)&&(m(Je).removeEventListener("mouseover",El),m(Je).removeEventListener("mouseout",Tl),m(Je).removeEventListener("click",Nl)),Te&&Te.removeEventListener("mouseout",Al),Se&&Te&&(Mn(Se),tt?.(),tt=void 0,Te.remove())});let xo=0;kt(()=>{if(!m(T))return;const b=br(m(T));if(o()===b)return;if(m(T).view.hasFocus()){xo+=1;return}const E=m(T).view.hasFocus(),{from:R}=m(T).state.selection,Z=++xo;(async()=>{const z=Br(o()||"");!m(T)||Z!==xo||br(m(T))===b&&m(T).chain().command(({tr:A})=>(A.setMeta("external-update",!0),!0)).setContent(z).command(({tr:A,state:Ne})=>{if(E)try{const Ke=Ne.doc.content.size,q=Math.min(R,Ke);A.setSelection(W.create(Ne.doc,q,q))}catch{}return!0}).run()})()}),kt(()=>{m(T)&&m(T).setEditable(m(je),!1)}),kt(()=>{!m(T)||m(T).isDestroyed||m(T).view.dispatch(m(T).state.tr.setMeta(Qr,be()))}),kt(()=>{const b=m(T)?.view.dom;b&&(b.setAttribute("aria-haspopup","listbox"),m(Ae)&&m(Rt)?(b.setAttribute("aria-controls",Nt),b.setAttribute("aria-activedescendant",m(Rt))):(b.removeAttribute("aria-controls"),b.removeAttribute("aria-activedescendant")))});var Np={flushScreenEvidence:zt,insertAtSymbol:pp,insertText:mp,focus:gp,focusEnd:yp,focusAndSelectAll:bp,getHTML:vp,clear:kp,setContent:xp,insertImage:wp,getInlineImages:Sp,getTextContent:Cp,insertContextMention:Mp,insertMention:Ep,getMentions:Tp,getContextMentions:Ap,get value(){return o()},set value(b=""){o(b),P()},get ariaLabel(){return a()},set ariaLabel(b=re.chat_richInput_editor_ariaLabel()){a(b),P()},get placeholder(){return l()},set placeholder(b=re.chat_richInput_askAnything_placeholder()){l(b),P()},get reactivePlaceholder(){return c()},set reactivePlaceholder(b=!1){c(b),P()},get disabled(){return u()},set disabled(b=!1){u(b),P()},get editableWhileDisabled(){return d()},set editableWhileDisabled(b=!1){d(b),P()},get inputLocked(){return f()},set inputLocked(b=!1){f(b),P()},get class(){return h()},set class(b=""){h(b),P()},get editorClassName(){return p()},set editorClassName(b=""){p(b),P()},get workspace(){return g()},set workspace(b){g(b),P()},get repoPath(){return y()},set repoPath(b){y(b),P()},get autoFocus(){return v()},set autoFocus(b=!1){v(b),P()},get onUpdate(){return x()},set onUpdate(b){x(b),P()},get onSubmit(){return S()},set onSubmit(b){S(b),P()},get onForceSubmit(){return k()},set onForceSubmit(b){k(b),P()},get onEscape(){return $()},set onEscape(b){$(b),P()},get onHistoryPrev(){return I()},set onHistoryPrev(b){I(b),P()},get onHistoryNext(){return C()},set onHistoryNext(b){C(b),P()},get onMentionStart(){return _()},set onMentionStart(b){_(b),P()},get onMentionSelect(){return V()},set onMentionSelect(b){V(b),P()},get onSelectionChange(){return F()},set onSelectionChange(b){F(b),P()},get contextItems(){return me()},set contextItems(b=[]){me(b),P()},get trailingHint(){return be()},set trailingHint(b=null){be(b),P()},get skills(){return w()},set skills(b=[]){w(b),P()},get skillsLoading(){return N()},set skillsLoading(b=!1){N(b),P()},get skillsError(){return j()},set skillsError(b=null){j(b),P()},get onSkillsRetry(){return Q()},set onSkillsRetry(b){Q(b),P()},get slashEmptyLabel(){return Ee()},set slashEmptyLabel(b){Ee(b),P()},get slashNotice(){return le()},set slashNotice(b){le(b),P()},get unavailableSkillTitle(){return Oe()},set unavailableSkillTitle(b){Oe(b),P()},get screenReferences(){return ye()},set screenReferences(b){ye(b),P()},get screenInsertions(){return De()},set screenInsertions(b=[]){De(b),P()},get screenInterim(){return et()},set screenInterim(b=[]){et(b),P()},get screenSpeechActive(){return Ve()},set screenSpeechActive(b=!1){Ve(b),P()},get onScreenInsertionApplied(){return X()},set onScreenInsertionApplied(b){X(b),P()},get onCompositionChange(){return qe()},set onCompositionChange(b){qe(b),P()},get onUserTextInput(){return nt()},set onUserTextInput(b){nt(b),P()},get onScreenReferencesEdited(){return O()},set onScreenReferencesEdited(b){O(b),P()},get minHeight(){return U()},set minHeight(b=80){U(b),P()},get maxHeight(){return ge()},set maxHeight(b=300){ge(b),P()},$set:jt,$on:(b,E)=>Kt(e,b,E)},wo=aM(),Dl=he(wo),Op=()=>m(Ae),Dp=b=>!b&&fr();Eo(Dl,()=>pg,(b,E)=>{E(b,{get open(){return Op()},set open(R){Dp(R)},children:(R,Z)=>{var z=Er(),A=Dt(z);{let Ne=B(()=>Ie?.target());Eo(A,()=>Zp,(Ke,q)=>{q(Ke,{get to(){return m(Ne)},children:(Le,at)=>{var Xe=Er(),$t=Dt(Xe);{let Wn=B(()=>m(Je)??null);Eo($t,()=>hg,(Hr,Ip)=>{Ip(Hr,{get customAnchor(){return m(Wn)},side:"top",align:"start",sideOffset:4,trapFocus:!1,onOpenAutoFocus:Ml,onCloseAutoFocus:Ml,class:"z-(--layer-popover) w-72 max-w-full","data-testid":"slash-skill-menu",get ref(){return m(we)},set ref(Co){fe(we,Co,!0)},children:(Co,cM)=>{Or(dp(Co,{get listboxId(){return Nt},get items(){return m(Be)},get loading(){return N()},get error(){return j()},get emptyLabel(){return Ee()},get notice(){return le()},get onRetry(){return Q()},onSelect:fp,onDismiss:fr,onActiveOptionChange:Mo=>fe(Rt,Mo,!0)}),Mo=>fe(vt,Mo,!0),()=>m(vt))},$$slots:{default:!0}})})}K(Le,Xe)},$$slots:{default:!0}})})}K(R,z)},$$slots:{default:!0}})});var So=ie(Dl,2);let Il;return Or(So,b=>fe(Je,b),()=>m(Je)),ae(wo),ne(()=>{Il=bn(So,1,`tiptap-container ${h()??""}`,"svelte-bv9i3d",Il,{"placeholder-suppressed":m(Et)}),pi(So,`--tt-min-height:${U()}px;--tt-max-height:${ge()}px`)}),K(n,wo),qt(Np)}export{IC as A,lr as B,_1 as C,ur as D,k1 as E,M as F,tp as G,ol as H,Li as I,al as J,YS as K,jM as L,dr as M,Zh as N,Rf as O,Pe as P,Me as Q,hS as R,se as S,uw as T,uS as U,Kw as V,Uw as W,zr as X,B1 as a,$S as b,Pa as c,dt as d,pe as e,We as f,Zu as g,it as h,G as i,S1 as j,vo as k,xS as l,Fe as m,ly as n,H as o,Sl as p,dw as q,W as r,lM as s,Dd as t,Ce as u,xC as v,UM as w,WM as x,Sv as y,J as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./CJxGDkBm.js";import{J5 as h,sO as K,bn as C}from"./CI4_aI7e.js";import{t as x,bo as u,bw as M,bs as f,bq as O,b as A}from"./51_h0jm2.js";import{i as D}from"./PXCFrn2V.js";import{t as E}from"./D2MmXC4A.js";import{m as J}from"./BOXv-Vsz.js";import{aK as j}from"./CAV1CzzW.js";import{c as B}from"./Cz-HgbT1.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===C.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function F(t,s){if(new.target)return x({component:F,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(_,"$slot$",o),[o,k]=O();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=J(),_=j(E(()=>c()));var b={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>A(s,e,y)},d=R(),g=q(d);{var v=e=>{B(e,{get slot(){return a()},get size(){return n()}})};D(g,e=>{r()&&a()!==null&&e(v)})}z(t,d);var w=I(b);return k(),w}export{F as W,V as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./Z-hUD4Ap.js";import{d as mt,g as lt,f as xt,e as kt}from"./B3hSlB6y.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./aitTA173.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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 d=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===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J5 as s}from"./CI4_aI7e.js";import{bm as r}from"./51_h0jm2.js";import{l as t,m as c}from"./DqFWZ_g1.js";const u=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function n(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function i(a){const e=a?.match(/^Starting agent on (.+?)(?:\.\.\.|…)$/);return e?e[1]:null}function _(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=n(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"agent":{const e=i(a.message);return e?r.workspace_compactInitializer_progressAgent_label({machine:e}):r.workspace_compactInitializer_progressAgentGeneric_label()}case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function g(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{_ as c,g as f,u as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as n}from"./
|
|
1
|
+
import{g as l,r as m,d as n}from"./DRWqzfiQ.js";import{p}from"./2CvTs4Gl.js";import{b as t,ay as o}from"./aitTA173.js";import{M as u,a as f}from"./C0gEyGJV.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as k}from"./PVXvIyE8.js";import{
|
|
1
|
+
import{d as l,v as h,t as k}from"./PVXvIyE8.js";import{J5 as s,vw as w}from"./CI4_aI7e.js";import{i as W,d as E,e as c,n as i,b as m}from"./XagMlRFc.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function j(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*q(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:j,navigateToAppRouteSaga:q,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,q as b,_ as c,$ as d,d as e,N as i,j as n,O as o,f as p,U as s,I as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ke,bo as r,bm as u,bw as Be,b as Me}from"./51_h0jm2.js";import{bs as We,ca as Ie,a5 as oe,bS as b,aD as s,bA as ce,b_ as ve,W as me,bn as Ne,c9 as d,aA as a,bl as Pe,bO as ze,aB as pe}from"./CJxGDkBm.js";import{i as Qe}from"./PXCFrn2V.js";import{c as E,e as y,s as Ae,f as K}from"./CpPNoOk-.js";import{F as D,cs as Oe,az as Ve,aw as qe,d3 as Ue}from"./DSQT151l.js";import{f as de}from"./
|
|
1
|
+
import{t as ke,bo as r,bm as u,bw as Be,b as Me}from"./51_h0jm2.js";import{bs as We,ca as Ie,a5 as oe,bS as b,aD as s,bA as ce,b_ as ve,W as me,bn as Ne,c9 as d,aA as a,bl as Pe,bO as ze,aB as pe}from"./CJxGDkBm.js";import{i as Qe}from"./PXCFrn2V.js";import{c as E,e as y,s as Ae,f as K}from"./CpPNoOk-.js";import{F as D,cs as Oe,az as Ve,aw as qe,d3 as Ue}from"./DSQT151l.js";import{f as de}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{I as Xe}from"./BaGw_bDr.js";import"./DKn1sQ32.js";var je=pe("<span> </span>"),Ge=pe('<div role="search"><div><!> <!> <!></div> <div><!> <!> <!></div></div>');function He(ge,t){if(new.target)return ke({component:He,...ge});We(t,!0);let i=r(t,"query",15,""),c=r(t,"inputRef",15,null),R=r(t,"placeholder",23,()=>u.ui_panelFindBar_find_placeholder()),g=r(t,"disabled",7,!1),x=r(t,"inputDisabled",7,!1),k=r(t,"navigationDisabled",7,!1),_=r(t,"closeDisabled",7,!1),B=r(t,"disableNavigationWhenNoMatches",7,!0),M=r(t,"autofocus",7,!1),W=r(t,"selectOnFocus",7,!0),I=r(t,"focusTrigger",7),N=r(t,"currentMatchIndex",7,0),o=r(t,"totalMatches",7),v=r(t,"resultText",7,void 0),P=r(t,"emptyResultText",23,()=>u.ui_panelFindBar_noMatches_label()),z=r(t,"showResultText",7,!0),Q=r(t,"showResultWhenQueryEmpty",7,!1),A=r(t,"resultFormat",7,"slash"),O=r(t,"resultVariant",7,void 0),m=r(t,"searchAriaLabel",23,()=>u.ui_panelFindBar_search_ariaLabel()),p=r(t,"previousLabel",23,()=>u.ui_panelFindBar_previous_label()),V=r(t,"previousShortcutLabel",7,"Shift+Enter"),q=r(t,"previousKeyShortcuts",7,"Shift+Enter"),U=r(t,"previousTitle",7,void 0),S=r(t,"nextLabel",23,()=>u.ui_panelFindBar_next_label()),X=r(t,"nextShortcutLabel",7,"Enter"),j=r(t,"nextKeyShortcuts",7,"Enter"),G=r(t,"nextTitle",7,void 0),L=r(t,"closeLabel",23,()=>u.ui_panelFindBar_close_label()),H=r(t,"closeShortcutLabel",7,"Esc"),J=r(t,"closeKeyShortcuts",7,"Escape"),Y=r(t,"closeTitle",7,void 0),Z=r(t,"layout",7,"floating"),$=r(t,"class",7),ee=r(t,"inputWrapperClass",7),te=r(t,"inputClass",7),re=r(t,"actionsClass",7),T=r(t,"onPrevious",7),F=r(t,"onNext",7),h=r(t,"onClose",7),ae=r(t,"onQueryChange",7),ne=r(t,"onInput",7),se=r(t,"onKeydown",7);const w=d(()=>i().trim().length>0),le=d(()=>g()||k()||!s(w)||B()&&typeof o()=="number"&&o()<=0),he=d(()=>{if(v()!==void 0)return v();if(!z()||!s(w)&&!Q()||typeof o()!="number")return null;if(o()<=0)return s(w)?P():null;const e=Math.min(Math.max(N()+1,1),o());return A()==="of"?u.ui_panelFindBar_matchOf_label({current:e,total:o()}):`${e} / ${o()}`}),Se=d(()=>O()??(typeof o()=="number"&&o()<=0&&s(w)?"destructive":"muted"));Ie(()=>{(M()||I()!==void 0)&&c()&&!g()&&!x()&&(c().focus(),W()&&c().select())});function Le(){c()?.focus()}function Te(){c()?.blur()}function Fe(){c()?.select()}function ue(e,n){return n?`${e} (${n})`:e}function we(e){i(e.currentTarget.value),ae()?.(i(),e),ne()?.(e)}function Ce(e){se()?.(e),!e.defaultPrevented&&(e.key==="Escape"&&h()&&!_()&&!g()?(e.preventDefault(),h()(e)):e.key==="Enter"&&!s(le)&&(e.preventDefault(),e.shiftKey?T()?.(i(),e):F()?.(i(),e)))}var Ee={focus:Le,blur:Te,select:Fe,get query(){return i()},set query(e=""){i(e),a()},get inputRef(){return c()},set inputRef(e=null){c(e),a()},get placeholder(){return R()},set placeholder(e=u.ui_panelFindBar_find_placeholder()){R(e),a()},get disabled(){return g()},set disabled(e=!1){g(e),a()},get inputDisabled(){return x()},set inputDisabled(e=!1){x(e),a()},get navigationDisabled(){return k()},set navigationDisabled(e=!1){k(e),a()},get closeDisabled(){return _()},set closeDisabled(e=!1){_(e),a()},get disableNavigationWhenNoMatches(){return B()},set disableNavigationWhenNoMatches(e=!0){B(e),a()},get autofocus(){return M()},set autofocus(e=!1){M(e),a()},get selectOnFocus(){return W()},set selectOnFocus(e=!0){W(e),a()},get focusTrigger(){return I()},set focusTrigger(e){I(e),a()},get currentMatchIndex(){return N()},set currentMatchIndex(e=0){N(e),a()},get totalMatches(){return o()},set totalMatches(e){o(e),a()},get resultText(){return v()},set resultText(e=void 0){v(e),a()},get emptyResultText(){return P()},set emptyResultText(e=u.ui_panelFindBar_noMatches_label()){P(e),a()},get showResultText(){return z()},set showResultText(e=!0){z(e),a()},get showResultWhenQueryEmpty(){return Q()},set showResultWhenQueryEmpty(e=!1){Q(e),a()},get resultFormat(){return A()},set resultFormat(e="slash"){A(e),a()},get resultVariant(){return O()},set resultVariant(e=void 0){O(e),a()},get searchAriaLabel(){return m()},set searchAriaLabel(e=u.ui_panelFindBar_search_ariaLabel()){m(e),a()},get previousLabel(){return p()},set previousLabel(e=u.ui_panelFindBar_previous_label()){p(e),a()},get previousShortcutLabel(){return V()},set previousShortcutLabel(e="Shift+Enter"){V(e),a()},get previousKeyShortcuts(){return q()},set previousKeyShortcuts(e="Shift+Enter"){q(e),a()},get previousTitle(){return U()},set previousTitle(e=void 0){U(e),a()},get nextLabel(){return S()},set nextLabel(e=u.ui_panelFindBar_next_label()){S(e),a()},get nextShortcutLabel(){return X()},set nextShortcutLabel(e="Enter"){X(e),a()},get nextKeyShortcuts(){return j()},set nextKeyShortcuts(e="Enter"){j(e),a()},get nextTitle(){return G()},set nextTitle(e=void 0){G(e),a()},get closeLabel(){return L()},set closeLabel(e=u.ui_panelFindBar_close_label()){L(e),a()},get closeShortcutLabel(){return H()},set closeShortcutLabel(e="Esc"){H(e),a()},get closeKeyShortcuts(){return J()},set closeKeyShortcuts(e="Escape"){J(e),a()},get closeTitle(){return Y()},set closeTitle(e=void 0){Y(e),a()},get layout(){return Z()},set layout(e="floating"){Z(e),a()},get class(){return $()},set class(e){$(e),a()},get inputWrapperClass(){return ee()},set inputWrapperClass(e){ee(e),a()},get inputClass(){return te()},set inputClass(e){te(e),a()},get actionsClass(){return re()},set actionsClass(e){re(e),a()},get onPrevious(){return T()},set onPrevious(e){T(e),a()},get onNext(){return F()},set onNext(e){F(e),a()},get onClose(){return h()},set onClose(e){h(e),a()},get onQueryChange(){return ae()},set onQueryChange(e){ae(e),a()},get onInput(){return ne()},set onInput(e){ne(e),a()},get onKeydown(){return se()},set onKeydown(e){se(e),a()},$set:Be,$on:(e,n)=>Me(t,e,n)},f=Ge(),C=oe(f),fe=oe(C);D(fe,{get icon(){return Oe},class:"size-3 shrink-0 text-muted-foreground"});var be=b(fe,2);{let e=d(()=>g()||x()),n=d(()=>y("h-6 w-36 border-0 bg-transparent px-0 py-0 text-sm shadow-none","placeholder:text-muted-foreground",te()));Xe(be,{type:"text",get placeholder(){return R()},get disabled(){return s(e)},noFocusStyle:!0,get class(){return s(n)},get"aria-label"(){return m()},oninput:we,onkeydown:Ce,get ref(){return c()},set ref(l){c(l)},get value(){return i()},set value(l){i(l)}})}var Ke=b(be,2);{var De=e=>{var n=je(),l=Pe(n,!0);ve(_e=>{K(n,1,_e),ze(l,s(he))},[()=>E(y("whitespace-nowrap text-xs tabular-nums",s(Se)==="destructive"?"text-danger":"text-muted-foreground"))]),me(e,n)};Qe(Ke,e=>{s(he)&&e(De)})}ce(C);var ie=b(C,2),ye=oe(ie);{let e=d(()=>U()??ue(p(),V()));de(ye,{type:"button",variant:"ghost-light",size:"icon-xs",class:"rounded-sm",onclick:n=>T()?.(i(),n),get disabled(){return s(le)},get"aria-label"(){return p()},get"aria-keyshortcuts"(){return q()},get title(){return s(e)},children:(n,l)=>{D(n,{get icon(){return Ve},class:"size-3"})},$$slots:{default:!0}})}var xe=b(ye,2);{let e=d(()=>G()??ue(S(),X()));de(xe,{type:"button",variant:"ghost-light",size:"icon-xs",class:"rounded-sm",onclick:n=>F()?.(i(),n),get disabled(){return s(le)},get"aria-label"(){return S()},get"aria-keyshortcuts"(){return j()},get title(){return s(e)},children:(n,l)=>{D(n,{get icon(){return qe},class:"size-3"})},$$slots:{default:!0}})}var Re=b(xe,2);{let e=d(()=>g()||_()),n=d(()=>Y()??ue(L(),H()));de(Re,{type:"button",variant:"ghost-light",size:"icon-xs",class:"rounded-sm",onclick:l=>h()?.(l),get disabled(){return s(e)},get"aria-label"(){return L()},get"aria-keyshortcuts"(){return J()},get title(){return s(n)},children:(l,_e)=>{D(l,{get icon(){return Ue},class:"size-3.5"})},$$slots:{default:!0}})}return ce(ie),ce(f),ve((e,n,l)=>{Ae(f,"aria-label",m()),K(f,1,e),K(C,1,n),K(ie,1,l)},[()=>E(y("inline-flex items-center gap-1 rounded-lg border border-border bg-background/95 px-2 py-1 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-background/90",Z()==="floating"&&"absolute top-2 right-4 z-50",g()&&"pointer-events-none opacity-60",$())),()=>E(y("flex h-7 min-w-0 items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2",ee())),()=>E(y("flex items-center gap-0.5",re()))]),me(ge,f),Ne(Ee)}export{He as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var U=Object.defineProperty;var S=r=>{throw TypeError(r)};var j=(r,t,a)=>t in r?U(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var v=(r,t,a)=>j(r,typeof t!="symbol"?t+"":t,a),q=(r,t,a)=>t.has(r)||S("Cannot "+a);var g=(r,t,a)=>(q(r,t,"read from private field"),a?a.call(r):t.get(r)),z=(r,t,a)=>t.has(r)?S("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a);import{t as E,bo as s,bw as F,b as G,bp as J}from"./51_h0jm2.js";import{c9 as W,aD as _,bH as K,bo as L,bs as M,a7 as P,ay as B,W as b,bn as N,aA as i,a5 as R,bf as V,bA as X,aB as Y}from"./CJxGDkBm.js";import{i as Z}from"./PXCFrn2V.js";import{s as C}from"./DxvSggY5.js";import{b as $}from"./CpPNoOk-.js";import{an as tt,as as et,ay as rt,az as T,av as p,aQ as at}from"./
|
|
1
|
+
var U=Object.defineProperty;var S=r=>{throw TypeError(r)};var j=(r,t,a)=>t in r?U(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var v=(r,t,a)=>j(r,typeof t!="symbol"?t+"":t,a),q=(r,t,a)=>t.has(r)||S("Cannot "+a);var g=(r,t,a)=>(q(r,t,"read from private field"),a?a.call(r):t.get(r)),z=(r,t,a)=>t.has(r)?S("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a);import{t as E,bo as s,bw as F,b as G,bp as J}from"./51_h0jm2.js";import{c9 as W,aD as _,bH as K,bo as L,bs as M,a7 as P,ay as B,W as b,bn as N,aA as i,a5 as R,bf as V,bA as X,aB as Y}from"./CJxGDkBm.js";import{i as Z}from"./PXCFrn2V.js";import{s as C}from"./DxvSggY5.js";import{b as $}from"./CpPNoOk-.js";import{an as tt,as as et,ay as rt,az as T,av as p,aQ as at}from"./BnA9v3pc.js";const ot=rt({component:"separator",parts:["root"]});var n;const w=class w{constructor(t){v(this,"opts");v(this,"attachment");z(this,n,W(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":et(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[ot.root]:"",...this.attachment})));this.opts=t,this.attachment=tt(t.ref)}static create(t){return new w(t)}get props(){return _(g(this,n))}set props(t){K(g(this,n),t)}};n=new WeakMap;let y=w;var st=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]),it=Y("<div><!></div>");function nt(r,t){const a=L();if(new.target)return E({component:nt,...r});M(t,!0);let l=s(t,"id",23,()=>T(a)),c=s(t,"ref",15,null),d=s(t,"child",7),h=s(t,"children",7),f=s(t,"decorative",7,!1),u=s(t,"orientation",7,"horizontal"),k=J(t,st);const D=y.create({ref:p(()=>c(),e=>c(e)),id:p(()=>l()),decorative:p(()=>f()),orientation:p(()=>u())}),x=W(()=>at(k,D.props));var H={get id(){return l()},set id(e=T(a)){l(e),i()},get ref(){return c()},set ref(e=null){c(e),i()},get child(){return d()},set child(e){d(e),i()},get children(){return h()},set children(e){h(e),i()},get decorative(){return f()},set decorative(e=!1){f(e),i()},get orientation(){return u()},set orientation(e="horizontal"){u(e),i()},$set:F,$on:(e,o)=>G(t,e,o)},A=P(),I=B(A);{var O=e=>{var o=P(),m=B(o);C(m,d,()=>({props:_(x)})),b(e,o)},Q=e=>{var o=it();$(o,()=>({..._(x)}));var m=R(o);C(m,()=>h()??V),X(o),b(e,o)};Z(I,e=>{d()?e(O):e(Q,-1)})}return b(r,A),N(H)}export{nt as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Fe}from"./BpwdP8dq.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./BOCp5eAe.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
1
|
+
import{g as Fe}from"./Z-hUD4Ap.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./aitTA173.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(v[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(v[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[v[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,v[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[v[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,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:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;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 E=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-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|