@intent-hq/web 2.283.1 → 2.284.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Bq6ix99x.js → --3ZEJ9J.js} +1 -1
- package/web/app/immutable/chunks/{DNTeyAGR.js → 03ESLWB1.js} +1 -1
- package/web/app/immutable/chunks/{86I704nb.js → 0XyrKsuA.js} +1 -1
- package/web/app/immutable/chunks/{CqnYcuvr.js → 1rwbAxiY.js} +1 -1
- package/web/app/immutable/chunks/{DcIvDrh5.js → 1wcS2GHA.js} +1 -1
- package/web/app/immutable/chunks/{CvLXNZbW.js → 32YnGblO.js} +1 -1
- package/web/app/immutable/chunks/{CqB0SlYo.js → 4kHCfKWR.js} +1 -1
- package/web/app/immutable/chunks/{BIZ0uXaU.js → 580ALcE7.js} +1 -1
- package/web/app/immutable/chunks/{D5Yn3bZC.js → 5BmKVYc1.js} +4 -4
- package/web/app/immutable/chunks/{D6aq9EL_.js → 5ZpW5rVB.js} +1 -1
- package/web/app/immutable/chunks/{JKrLJ2R_.js → 7IZupueL.js} +44 -44
- package/web/app/immutable/chunks/{DkfRsyNq.js → 8n4ougjP.js} +1 -1
- package/web/app/immutable/chunks/{D0ubTGV_.js → 8puonPwK.js} +1 -1
- package/web/app/immutable/chunks/{DVch_AcI.js → B-kQ0Vz5.js} +1 -1
- package/web/app/immutable/chunks/{BlxovLoL.js → B0w4Cxo_.js} +1 -1
- package/web/app/immutable/chunks/{Be5Pyj-G.js → B1EuyQvk.js} +1 -1
- package/web/app/immutable/chunks/{ClALIxbi.js → B1P0TORE.js} +1 -1
- package/web/app/immutable/chunks/{Bm_v6qLq.js → B1s7HAuZ.js} +1 -1
- package/web/app/immutable/chunks/{Dvf5hKr0.js → B3G2wO_D.js} +1 -1
- package/web/app/immutable/chunks/{DGTcJSfI.js → B4VDa7RO.js} +1 -1
- package/web/app/immutable/chunks/{cOgdKI6o.js → B5HPrVzu.js} +1 -1
- package/web/app/immutable/chunks/{_WbplBv2.js → B5KLQb3J.js} +1 -1
- package/web/app/immutable/chunks/{CSVS8cGP.js → B7R5ywXv.js} +1 -1
- package/web/app/immutable/chunks/{-eynjkyq.js → B8LfMxTf.js} +1 -1
- package/web/app/immutable/chunks/{CSoIbBhB.js → B8xgoeqo.js} +1 -1
- package/web/app/immutable/chunks/{BpLK-vah.js → B96HYSUr.js} +1 -1
- package/web/app/immutable/chunks/{BQkOKtmR.js → B9YdV5Lr.js} +1 -1
- package/web/app/immutable/chunks/{QEFaNqbo.js → BAuomW3Q.js} +1 -1
- package/web/app/immutable/chunks/{2sWuLeQM.js → BAyTpaq3.js} +1 -1
- package/web/app/immutable/chunks/{dfIdHF6z.js → BCHni7By.js} +1 -1
- package/web/app/immutable/chunks/{CZH06yTf.js → BCkgwkHF.js} +1 -1
- package/web/app/immutable/chunks/{DoI-lOCr.js → BE5jLkkZ.js} +1 -1
- package/web/app/immutable/chunks/{BIIzJP0L.js → BE6av5p4.js} +1 -1
- package/web/app/immutable/chunks/{CcXmTQrG.js → BEQXbC7q.js} +1 -1
- package/web/app/immutable/chunks/{BNLICSI-.js → BFDD1pyQ.js} +1 -1
- package/web/app/immutable/chunks/{yZjABy7c.js → BHdVwar2.js} +1 -1
- package/web/app/immutable/chunks/{BMt7MpM8.js → BIkNHTNp.js} +1 -1
- package/web/app/immutable/chunks/{DSad0YxQ.js → BJ5sH6i3.js} +1 -1
- package/web/app/immutable/chunks/{BIUeJ7Ke.js → BJwGOB8K.js} +1 -1
- package/web/app/immutable/chunks/{BDq1sVyx.js → BKAQdyqG.js} +1 -1
- package/web/app/immutable/chunks/{DOWY58Gk.js → BKYBbIMC.js} +1 -1
- package/web/app/immutable/chunks/{DyG--B3U.js → BLEfessf.js} +1 -1
- package/web/app/immutable/chunks/{DYpEID-4.js → BLjf4WQt.js} +1 -1
- package/web/app/immutable/chunks/{BtTwGRLV.js → BLjxHwvZ.js} +1 -1
- package/web/app/immutable/chunks/{C1_JJ0WX.js → BMBobKUo.js} +2 -2
- package/web/app/immutable/chunks/{DyzC-8bY.js → BNfbL3_i.js} +1 -1
- package/web/app/immutable/chunks/{CI86PNUZ.js → BOIoayZB.js} +1 -1
- package/web/app/immutable/chunks/{LNCq34-O.js → BOV2-YtX.js} +1 -1
- package/web/app/immutable/chunks/{DWsGxz2C.js → BPQohPc9.js} +1 -1
- package/web/app/immutable/chunks/{MivJSmtA.js → BQ-Vdhjp.js} +1 -1
- package/web/app/immutable/chunks/{DPbm6slt.js → BQqtq_EY.js} +4 -4
- package/web/app/immutable/chunks/BQu3cSOx.js +1 -0
- package/web/app/immutable/chunks/{67V3Eqst.js → BRk6sSrF.js} +1 -1
- package/web/app/immutable/chunks/{DEghD5AV.js → BS6Z2wWv.js} +1 -1
- package/web/app/immutable/chunks/{DV0nUf5d.js → BSIOWZWq.js} +1 -1
- package/web/app/immutable/chunks/{CGclmlzx.js → BSLrzoVf.js} +1 -1
- package/web/app/immutable/chunks/{CRcZFIyJ.js → BUtQhKox.js} +1 -1
- package/web/app/immutable/chunks/{CJqvN_qS.js → BXwgWEmz.js} +1 -1
- package/web/app/immutable/chunks/{DZwtNfnB.js → BYB7SynS.js} +2 -2
- package/web/app/immutable/chunks/{BM-sVLs9.js → BYhzE2Id.js} +1 -1
- package/web/app/immutable/chunks/{oRTpyK_P.js → BYvXj8cv.js} +1 -1
- package/web/app/immutable/chunks/{ByWgRTUb.js → BZjntufp.js} +1 -1
- package/web/app/immutable/chunks/{B241tUXW.js → B_BtFokc.js} +1 -1
- package/web/app/immutable/chunks/{BSa29cCP.js → BcemBG1g.js} +4 -4
- package/web/app/immutable/chunks/{Cul55jvw.js → BfCf1CX7.js} +3 -3
- package/web/app/immutable/chunks/{DSakTSDY.js → BghJZEqX.js} +1 -1
- package/web/app/immutable/chunks/{BYaK8uq0.js → Bhov0MTz.js} +1 -1
- package/web/app/immutable/chunks/{BweEgIMi.js → Bir-_mB8.js} +1 -1
- package/web/app/immutable/chunks/{JoMw8Mnh.js → Bj2uvmt-.js} +1 -1
- package/web/app/immutable/chunks/{BzUhrKys.js → Bj6-QOR3.js} +1 -1
- package/web/app/immutable/chunks/{oEdBdTuH.js → BjO6mATN.js} +1 -1
- package/web/app/immutable/chunks/{D75qE5QF.js → BlhXsK8K.js} +1 -1
- package/web/app/immutable/chunks/{BxuY-d7z.js → Blhl4Kzo.js} +1 -1
- package/web/app/immutable/chunks/{uEiZ2aa0.js → BlobiUVj.js} +1 -1
- package/web/app/immutable/chunks/{C-D97gL1.js → BmY5L1Op.js} +1 -1
- package/web/app/immutable/chunks/{BTxaodpe.js → BmeKmSN1.js} +1 -1
- package/web/app/immutable/chunks/{-EQ6B0ad.js → Bmnp4Cni.js} +6 -6
- package/web/app/immutable/chunks/{CmLvFRqe.js → BnZq-I73.js} +2 -2
- package/web/app/immutable/chunks/{FGzP6Npj.js → BoffG-0C.js} +1 -1
- package/web/app/immutable/chunks/{BLfSGdog.js → BoyajzxN.js} +1 -1
- package/web/app/immutable/chunks/{BSERRzdN.js → BqSjWCdR.js} +1 -1
- package/web/app/immutable/chunks/{jN_7w48e.js → BrXpFLv_.js} +1 -1
- package/web/app/immutable/chunks/{B9hh5ps3.js → BrvhC6GL.js} +1 -1
- package/web/app/immutable/chunks/{DwwmXlwG.js → BuSZooEw.js} +1 -1
- package/web/app/immutable/chunks/{CHb28ISq.js → BvuznwRa.js} +1 -1
- package/web/app/immutable/chunks/{Bi0iCGDl.js → BxFP5cPu.js} +1 -1
- package/web/app/immutable/chunks/{BzgtWDxy.js → BxUDfZfX.js} +1 -1
- package/web/app/immutable/chunks/{CRzjInFH.js → Byp8PswU.js} +1 -1
- package/web/app/immutable/chunks/{CiFw-8Aw.js → C-AxUu93.js} +1 -1
- package/web/app/immutable/chunks/{xHGNzBhq.js → C-tRLOED.js} +1 -1
- package/web/app/immutable/chunks/C1FIrZNw.js +184 -0
- package/web/app/immutable/chunks/{DNeMGvC1.js → C1GRqLCq.js} +1 -1
- package/web/app/immutable/chunks/{P0y5VMqy.js → C2kpUgbe.js} +1 -1
- package/web/app/immutable/chunks/{X8KOCQId.js → C51KzdSG.js} +1 -1
- package/web/app/immutable/chunks/{BqgmbqM-.js → C6LRlrtG.js} +1 -1
- package/web/app/immutable/chunks/{mYHRHufZ.js → C6Lk-C_n.js} +1 -1
- package/web/app/immutable/chunks/{Bkt7VHdr.js → C6NP7Wkf.js} +1 -1
- package/web/app/immutable/chunks/{DpWrzKZ5.js → C83cffhG.js} +1 -1
- package/web/app/immutable/chunks/{BycWLeDe.js → C8yAGnZY.js} +1 -1
- package/web/app/immutable/chunks/{DFDb4afa.js → CAS7It7T.js} +1 -1
- package/web/app/immutable/chunks/{D_o99_fG.js → CBF5TBJQ.js} +1 -1
- package/web/app/immutable/chunks/{Sqmoz5pv.js → CCU5YAgB.js} +1 -1
- package/web/app/immutable/chunks/{1kQYhwzI.js → CCzzpn5X.js} +1 -1
- package/web/app/immutable/chunks/{Dr6CAh-x.js → CEZnJlwn.js} +1 -1
- package/web/app/immutable/chunks/{I-6kOw9r.js → CEd0rr6P.js} +1 -1
- package/web/app/immutable/chunks/{DHon_8tj.js → CEkEURUB.js} +1 -1
- package/web/app/immutable/chunks/{BxuhDHqB.js → CG5J-qd_.js} +1 -1
- package/web/app/immutable/chunks/{CMiRnadp.js → CHK5bSfe.js} +1 -1
- package/web/app/immutable/chunks/{ebuf-RO9.js → CHSBtC7Q.js} +1 -1
- package/web/app/immutable/chunks/{D39KsI93.js → CJaPqUNh.js} +1 -1
- package/web/app/immutable/chunks/{T3Bh0XrL.js → CJuSN2hh.js} +1 -1
- package/web/app/immutable/chunks/{Bw1SBWCL.js → CLCaT9pi.js} +3 -3
- package/web/app/immutable/chunks/{BaWdIDeU.js → CLDGr3DL.js} +1 -1
- package/web/app/immutable/chunks/{DHN03i25.js → CMqMo1Af.js} +1 -1
- package/web/app/immutable/chunks/{D9GJ60AX.js → CNzOZ9MW.js} +1 -1
- package/web/app/immutable/chunks/{CE7hy_eJ.js → CQMmROUx.js} +2 -2
- package/web/app/immutable/chunks/{BNe0FUML.js → CQTIadOp.js} +1 -1
- package/web/app/immutable/chunks/{D0QGnN9N.js → CRQOCmwo.js} +7 -7
- package/web/app/immutable/chunks/{QBqsOIpN.js → CRqiQDbX.js} +1 -1
- package/web/app/immutable/chunks/{B9un2a8L.js → CS1d84Cn.js} +1 -1
- package/web/app/immutable/chunks/{DfDa-Hf6.js → CTthB0JK.js} +1 -1
- package/web/app/immutable/chunks/{BTxRR5tz.js → CVBBsS8i.js} +1 -1
- package/web/app/immutable/chunks/{DRHN1_Cd.js → CW2_8Qo8.js} +1 -1
- package/web/app/immutable/chunks/{BPp3W2jV.js → CWMWrTe0.js} +1 -1
- package/web/app/immutable/chunks/{C04G6COq.js → CX6Z33tv.js} +1 -1
- package/web/app/immutable/chunks/{BxU3DCFg.js → CX89Aogf.js} +1 -1
- package/web/app/immutable/chunks/{0K6BfmBv.js → CXruy7R4.js} +1 -1
- package/web/app/immutable/chunks/{D4i52eN2.js → CXu6aWOL.js} +1 -1
- package/web/app/immutable/chunks/{DpvwyG67.js → CYvdhBss.js} +1 -1
- package/web/app/immutable/chunks/{BMBkpFaV.js → CZ1Jg-sG.js} +1 -1
- package/web/app/immutable/chunks/{BVcYqOip.js → CZFoI5QY.js} +2 -2
- package/web/app/immutable/chunks/{BplvCBzc.js → C_fEvnNK.js} +1 -1
- package/web/app/immutable/chunks/{CVXsWkbg.js → CajYOO74.js} +1 -1
- package/web/app/immutable/chunks/{Cbp3zliH.js → CbNazQqj.js} +1 -1
- package/web/app/immutable/chunks/{DXPPFxlV.js → Cci8BWX_.js} +1 -1
- package/web/app/immutable/chunks/{CeH1-IFA.js → Ccj-b14I.js} +1 -1
- package/web/app/immutable/chunks/{kbx4HHUe.js → CclADFoZ.js} +2 -2
- package/web/app/immutable/chunks/{C8PgiJ6Y.js → CeMTgCB3.js} +1 -1
- package/web/app/immutable/chunks/{D_PPEYyI.js → CfgPxwA4.js} +1 -1
- package/web/app/immutable/chunks/{CcEiTh-4.js → ChYWsi4Z.js} +1 -1
- package/web/app/immutable/chunks/{DWjmi9tH.js → CiB1yTSc.js} +3 -3
- package/web/app/immutable/chunks/{CptC_Uum.js → CnuSxcLR.js} +1 -1
- package/web/app/immutable/chunks/{kkexgKXz.js → CoEKpjkL.js} +1 -1
- package/web/app/immutable/chunks/{5JlRwIXk.js → CoQLGQdj.js} +1 -1
- package/web/app/immutable/chunks/{AdAUM0KU.js → Cp9AnykR.js} +1 -1
- package/web/app/immutable/chunks/{DWbuBB3d.js → CqyYuyXE.js} +1 -1
- package/web/app/immutable/chunks/{BJhIFFGs.js → CrPyrftw.js} +3 -3
- package/web/app/immutable/chunks/{BUcRm8Vm.js → CsP-2ecL.js} +1 -1
- package/web/app/immutable/chunks/{CNFZNMrf.js → CtwCGSFA.js} +1 -1
- package/web/app/immutable/chunks/{CR7ldtgw.js → CwYn_cZy.js} +1 -1
- package/web/app/immutable/chunks/{Cr8elldh.js → CxDLMfRf.js} +1 -1
- package/web/app/immutable/chunks/{CNPgXL7O.js → CyBNkEuV.js} +1 -1
- package/web/app/immutable/chunks/{DNdUAl79.js → CyO8AnLs.js} +1 -1
- package/web/app/immutable/chunks/{SIlEqZy6.js → CzTIJ9gY.js} +1 -1
- package/web/app/immutable/chunks/{D7NIlQGn.js → CzfXsXYz.js} +1 -1
- package/web/app/immutable/chunks/{DpHc5A-z.js → D-aPtTCv.js} +1 -1
- package/web/app/immutable/chunks/{CbcE07N6.js → D0GCGQZA.js} +1 -1
- package/web/app/immutable/chunks/{Bh14bdXE.js → D0pR1-a6.js} +1 -1
- package/web/app/immutable/chunks/{Cobn53T5.js → D2hiI0dA.js} +1 -1
- package/web/app/immutable/chunks/D4Lumjru.js +1 -0
- package/web/app/immutable/chunks/D4MoKNoK.js +1 -0
- package/web/app/immutable/chunks/{B3t7QTl4.js → D5bYJMaB.js} +1 -1
- package/web/app/immutable/chunks/{3HhYuBQ5.js → D5jqrM_N.js} +1 -1
- package/web/app/immutable/chunks/{BMOHjFjD.js → D6CS23-9.js} +1 -1
- package/web/app/immutable/chunks/{D3s69DNC.js → D6K58w6v.js} +3 -3
- package/web/app/immutable/chunks/{C1Yon3Fs.js → D7ht9fTY.js} +1 -1
- package/web/app/immutable/chunks/{FxlRoZ6N.js → D805RV1I.js} +1 -1
- package/web/app/immutable/chunks/{CuOjrr_z.js → D8GxmJaV.js} +1 -1
- package/web/app/immutable/chunks/{CGtte9IE.js → D8_OuTD3.js} +1 -1
- package/web/app/immutable/chunks/{DECP5P_I.js → D8a6fWF_.js} +1 -1
- package/web/app/immutable/chunks/{CuViOyzR.js → D9ZfYqMq.js} +1 -1
- package/web/app/immutable/chunks/{DIgbsss0.js → DAY2MDvD.js} +1 -1
- package/web/app/immutable/chunks/{kc3pShLm.js → DBmzovBA.js} +1 -1
- package/web/app/immutable/chunks/DC38WcVm.js +1 -0
- package/web/app/immutable/chunks/{BKUFkB2Z.js → DDhakcOb.js} +1 -1
- package/web/app/immutable/chunks/{D7gI_V1F.js → DDi4fKeR.js} +1 -1
- package/web/app/immutable/chunks/{_Ha8_PaU.js → DG8rkBW-.js} +1 -1
- package/web/app/immutable/chunks/{6Rnnu0Za.js → DHBpY1EK.js} +1 -1
- package/web/app/immutable/chunks/{Bcdu3rtl.js → DI5O_gLl.js} +1 -1
- package/web/app/immutable/chunks/{DiLRxk1W.js → DI7pTzx5.js} +1 -1
- package/web/app/immutable/chunks/{C4ABvngM.js → DIvWSFnj.js} +1 -1
- package/web/app/immutable/chunks/{BM9f6Xn6.js → DKwy0FDy.js} +1 -1
- package/web/app/immutable/chunks/{DJly-gFW.js → DL5rLLvU.js} +1 -1
- package/web/app/immutable/chunks/{lzVZjIHK.js → DO0tFr72.js} +1 -1
- package/web/app/immutable/chunks/{CiV78Mds.js → DOE_TCNp.js} +1 -1
- package/web/app/immutable/chunks/{BYX2DQge.js → DOdMtNpo.js} +1 -1
- package/web/app/immutable/chunks/{BKkrgjsa.js → DPd_IJJ7.js} +1 -1
- package/web/app/immutable/chunks/{CfgmsyOw.js → DPfdnkfB.js} +1 -1
- package/web/app/immutable/chunks/{BpPk83wC.js → DPvthnru.js} +1 -1
- package/web/app/immutable/chunks/{DflDaBxQ.js → DQOyHGtr.js} +1 -1
- package/web/app/immutable/chunks/{Bk1uVK5j.js → DQ_zmHT9.js} +1 -1
- package/web/app/immutable/chunks/{BdMtzsOL.js → DR1QbPSk.js} +1 -1
- package/web/app/immutable/chunks/{BM2v-1zr.js → DR4RT4VO.js} +1 -1
- package/web/app/immutable/chunks/{B_IHHwFT.js → DRYCjR4c.js} +1 -1
- package/web/app/immutable/chunks/{BW9EmetF.js → DSJT83nX.js} +1 -1
- package/web/app/immutable/chunks/{CNLVfjPb.js → DVwKfMN5.js} +1 -1
- package/web/app/immutable/chunks/{B856U1Jr.js → DWW4w6Jk.js} +1 -1
- package/web/app/immutable/chunks/{us_QodLQ.js → DZ-8K7hK.js} +1 -1
- package/web/app/immutable/chunks/{CQRR0AOa.js → DZpe54cf.js} +1 -1
- package/web/app/immutable/chunks/{DPyjdIy2.js → D_mcoMIN.js} +1 -1
- package/web/app/immutable/chunks/{-FJQK9pf.js → DbdgMxO8.js} +1 -1
- package/web/app/immutable/chunks/{DCpb2VL6.js → DcoQTetB.js} +1 -1
- package/web/app/immutable/chunks/{DqlqvyKI.js → Dd_avILP.js} +1 -1
- package/web/app/immutable/chunks/{BrUeG1RC.js → DditQ6Dc.js} +1 -1
- package/web/app/immutable/chunks/{CiJsLr2J.js → De4WWpS0.js} +1 -1
- package/web/app/immutable/chunks/{-cKrxpnw.js → DeJ360tt.js} +1 -1
- package/web/app/immutable/chunks/{CBY4R5Io.js → DgFojmqv.js} +3 -3
- package/web/app/immutable/chunks/{N_3EVFPG.js → Di6XfBOT.js} +1 -1
- package/web/app/immutable/chunks/{DSpny-f5.js → DjVrYm-R.js} +1 -1
- package/web/app/immutable/chunks/{YsJRyh1t.js → Djthn66V.js} +2 -2
- package/web/app/immutable/chunks/{uDFKivEo.js → Dk3JYfn4.js} +1 -1
- package/web/app/immutable/chunks/{D8AXxi58.js → DkJafW99.js} +1 -1
- package/web/app/immutable/chunks/{CoIHYLew.js → Dkj8SIBR.js} +1 -1
- package/web/app/immutable/chunks/{D-SL5jmx.js → DmVYXUKU.js} +1 -1
- package/web/app/immutable/chunks/{Dekj0CRz.js → Dmip1qZq.js} +1 -1
- package/web/app/immutable/chunks/{CeGnK4JQ.js → DoBcYmem.js} +50 -50
- package/web/app/immutable/chunks/{dp7e7xW2.js → DpiQDkOO.js} +1 -1
- package/web/app/immutable/chunks/{BLKmUQ7j.js → DpyM727L.js} +1 -1
- package/web/app/immutable/chunks/{D7-ADqnT.js → DqUTyEPN.js} +1 -1
- package/web/app/immutable/chunks/{BGWyYsdo.js → Dq_FaIX5.js} +1 -1
- package/web/app/immutable/chunks/{Bda__gQr.js → Ds-TYeKV.js} +2 -2
- package/web/app/immutable/chunks/{DaBUZyWc.js → Ds7can9q.js} +1 -1
- package/web/app/immutable/chunks/DsYKN9zh.js +1 -0
- package/web/app/immutable/chunks/{CQS12qgy.js → DwbzbVQ3.js} +1 -1
- package/web/app/immutable/chunks/{Mt7x2IZs.js → Dwola7mR.js} +1 -1
- package/web/app/immutable/chunks/{Clzmvd7M.js → DwwMc3td.js} +1 -1
- package/web/app/immutable/chunks/{k-AP8VlM.js → DxyRwm0L.js} +1 -1
- package/web/app/immutable/chunks/{BrzmNBOR.js → DyQA18KQ.js} +1 -1
- package/web/app/immutable/chunks/{Dtvcl9ZM.js → DyaiTi8A.js} +1 -1
- package/web/app/immutable/chunks/{DvIWu0bM.js → DzMB8eQW.js} +1 -1
- package/web/app/immutable/chunks/{CX0jnzIf.js → Dzk1FZ-5.js} +1 -1
- package/web/app/immutable/chunks/{ytSsfHOi.js → EPni7PhH.js} +1 -1
- package/web/app/immutable/chunks/{BXmUGAB5.js → FcnPtqUv.js} +1 -1
- package/web/app/immutable/chunks/{DfTHDtr3.js → GJVVHDkb.js} +1 -1
- package/web/app/immutable/chunks/{bG4sEGuX.js → H_dyzYix.js} +1 -1
- package/web/app/immutable/chunks/{OtBI4VRo.js → HfuFYz2u.js} +1 -1
- package/web/app/immutable/chunks/{BNm8i956.js → IrWlayTZ.js} +1 -1
- package/web/app/immutable/chunks/{C17u3SPp.js → J2ZKQ-lu.js} +1 -1
- package/web/app/immutable/chunks/{BXWTCqoP.js → JqZ92YB_.js} +1 -1
- package/web/app/immutable/chunks/{CBj-skM7.js → Jyr4akMd.js} +1 -1
- package/web/app/immutable/chunks/{xcwRs97P.js → LFOlphb5.js} +1 -1
- package/web/app/immutable/chunks/{DO3zoQaK.js → LOxI5KoQ.js} +1 -1
- package/web/app/immutable/chunks/{DqG8xjZW.js → LoyMyTg_.js} +1 -1
- package/web/app/immutable/chunks/{CA6N8yqk.js → NfelpfPi.js} +1 -1
- package/web/app/immutable/chunks/{BdXZBn8p.js → OX_6myWb.js} +3 -3
- package/web/app/immutable/chunks/{ylZv2UEj.js → RAzXpC6i.js} +1 -1
- package/web/app/immutable/chunks/{Cnz8RKk9.js → Ri_Gwy-5.js} +1 -1
- package/web/app/immutable/chunks/{B45Lzffx.js → S9ot6IO_.js} +1 -1
- package/web/app/immutable/chunks/Sk9pLJI5.js +6 -0
- package/web/app/immutable/chunks/{Bdp7u5fL.js → Tpzyol5T.js} +2 -2
- package/web/app/immutable/chunks/{IUhIao0l.js → U9YbfUz9.js} +1 -1
- package/web/app/immutable/chunks/{KLMKvNSD.js → WVYGrHqE.js} +1 -1
- package/web/app/immutable/chunks/{BAR22MDD.js → WZHg24tN.js} +1 -1
- package/web/app/immutable/chunks/{mxfq8-qS.js → Y4N0iJyK.js} +1 -1
- package/web/app/immutable/chunks/{Dq6jwHZ6.js → ZYYtufHC.js} +1 -1
- package/web/app/immutable/chunks/{C07lgk2D.js → _cj4xlwz.js} +1 -1
- package/web/app/immutable/chunks/{BLqK1w-V.js → aVNMqNTp.js} +1 -1
- package/web/app/immutable/chunks/{BC7qvj8J.js → bin8Us0N.js} +1 -1
- package/web/app/immutable/chunks/{B6f4X6Cq.js → bjlKIwQF.js} +1 -1
- package/web/app/immutable/chunks/{D8G2wLaP.js → cesw6DqW.js} +1 -1
- package/web/app/immutable/chunks/{Btf9QGuY.js → cfTDb37Y.js} +1 -1
- package/web/app/immutable/chunks/{uzVhgdYt.js → dimBDqRX.js} +1 -1
- package/web/app/immutable/chunks/{De5CT8ah.js → fJdmRaXe.js} +1 -1
- package/web/app/immutable/chunks/{Dm5XlejL.js → fxR7QMV8.js} +1 -1
- package/web/app/immutable/chunks/{itr72ypM.js → gNzz3jGE.js} +1 -1
- package/web/app/immutable/chunks/{Zu_hB4jz.js → goXBWNik.js} +1 -1
- package/web/app/immutable/chunks/{CFa2g-IY.js → i_sqIi_B.js} +1 -1
- package/web/app/immutable/chunks/{BB4kjTGV.js → k5qVf45I.js} +1 -1
- package/web/app/immutable/chunks/{2zaEEAE2.js → kjKGIJZ6.js} +1 -1
- package/web/app/immutable/chunks/{Ct5pe7Ek.js → lKWYFdqV.js} +1 -1
- package/web/app/immutable/chunks/{ED1Md46o.js → lLF0vfI3.js} +1 -1
- package/web/app/immutable/chunks/{BMW1RYmJ.js → lflImyZ6.js} +2 -2
- package/web/app/immutable/chunks/{CVC7R5g8.js → mf6N49ed.js} +1 -1
- package/web/app/immutable/chunks/{DPWpLmap.js → oCNF8vh8.js} +1 -1
- package/web/app/immutable/chunks/{B0dFfRzP.js → oPjZ8e3L.js} +1 -1
- package/web/app/immutable/chunks/{DhJybiGT.js → oU2ii1bq.js} +1 -1
- package/web/app/immutable/chunks/{C1itrH63.js → pIvHob4a.js} +1 -1
- package/web/app/immutable/chunks/{CARkdujD.js → pl6-mRrC.js} +1 -1
- package/web/app/immutable/chunks/{AL4WvJsG.js → qb0bPcr5.js} +1 -1
- package/web/app/immutable/chunks/{B4nXFAp1.js → rL78ODLZ.js} +3 -3
- package/web/app/immutable/chunks/{DX7KyYLV.js → syg_Gxp6.js} +1 -1
- package/web/app/immutable/chunks/v3KbAU5c.js +3 -0
- package/web/app/immutable/chunks/{KT-2Ekxp.js → vICHfDZm.js} +1 -1
- package/web/app/immutable/chunks/{Ctw6lIEV.js → wXtCM_sb.js} +1 -1
- package/web/app/immutable/entry/{app.B7NDG9Ke.js → app.Cn1_ubOc.js} +3 -3
- package/web/app/immutable/entry/start.7mFy7hlx.js +1 -0
- package/web/app/immutable/nodes/{0.Bun1I2n8.js → 0.wKUTDWdz.js} +1 -1
- package/web/app/immutable/nodes/{1.CaXWyT2I.js → 1.DxJUaPzW.js} +1 -1
- package/web/app/immutable/nodes/{10.QcBz8vIO.js → 10.eeMW9oGM.js} +1 -1
- package/web/app/immutable/nodes/{11.CIL0R940.js → 11.DzMcYtgT.js} +1 -1
- package/web/app/immutable/nodes/{12.VioYEcq0.js → 12.BS7aI1vv.js} +1 -1
- package/web/app/immutable/nodes/{13.DXKlob-e.js → 13.Dj6DavrI.js} +3 -3
- package/web/app/immutable/nodes/{14.Del2TMMg.js → 14.DMbmYykJ.js} +2 -2
- package/web/app/immutable/nodes/{15.Djr5my7L.js → 15.BWo3i95L.js} +1 -1
- package/web/app/immutable/nodes/{16.D5MyJ40_.js → 16.D7z1ouJw.js} +2 -2
- package/web/app/immutable/nodes/{2.DGym_vbk.js → 2.BHOa4yl6.js} +4 -4
- package/web/app/immutable/nodes/{3.s5E8H3KB.js → 3.DLeJMfu1.js} +1 -1
- package/web/app/immutable/nodes/{4.D5-aRMMy.js → 4.BEPpJpXB.js} +1 -1
- package/web/app/immutable/nodes/{5.B3_zYP1m.js → 5.Cb4CR-KH.js} +1 -1
- package/web/app/immutable/nodes/{6.DutaO_wJ.js → 6.Bko4vkVy.js} +1 -1
- package/web/app/immutable/nodes/{7.BTpm8RYp.js → 7.z66lh95v.js} +1 -1
- package/web/app/immutable/nodes/{8.CZztH_7a.js → 8.Cykwxl0x.js} +4 -4
- package/web/app/immutable/nodes/{9.B2qxwSvF.js → 9.Bm3FCmVg.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B_KqSc_J.js +0 -3
- package/web/app/immutable/chunks/Blk8v-pB.js +0 -1
- package/web/app/immutable/chunks/BoDxQZ1k.js +0 -1
- package/web/app/immutable/chunks/COH5cIoS.js +0 -184
- package/web/app/immutable/chunks/DEI12D8u.js +0 -1
- package/web/app/immutable/chunks/DJISFfnZ.js +0 -6
- package/web/app/immutable/chunks/YDzESqGE.js +0 -1
- package/web/app/immutable/chunks/neQDnDfO.js +0 -1
- package/web/app/immutable/entry/start.BNunxuiZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./
|
|
1
|
+
import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./D4MoKNoK.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./HfuFYz2u.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./C51KzdSG.js";import{aU as Gt}from"./5BmKVYc1.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as Kt}from"./dimBDqRX.js";import{ai as Mt}from"./CLCaT9pi.js";import{C as jt}from"./JqZ92YB_.js";import{V as Vt}from"./BqSjWCdR.js";import{bC as zt,bA as Jt,aX as Qt}from"./DQ_zmHT9.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),K=()=>d(J,"$lineWrapping",n),M=()=>d(X,"$diffSideBySide",n),j=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Mt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=Kt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>j()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(jt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./DEI12D8u.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./OtBI4VRo.js";import{s as tt,l as bt,k as ar,h as xt}from"./KLMKvNSD.js";import{c as Ft}from"./DWsGxz2C.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./X8KOCQId.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DSpny-f5.js";import{bx as fa,bK as va,dj as pa}from"./uzVhgdYt.js";import{w as dr,d as ga}from"./CHb28ISq.js";import{f as ma}from"./N_3EVFPG.js";import{n as qt}from"./oEdBdTuH.js";import{f as Se,ax as _a}from"./CBY4R5Io.js";import"./BAR22MDD.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./BxuhDHqB.js";import{g as Ia,i as Ca,w as cr}from"./MivJSmtA.js";import{c as Fa}from"./ChTqQfQN.js";import"./CiJsLr2J.js";import{M as Sa}from"./CeGnK4JQ.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./BrUeG1RC.js";import{M as Ta}from"./DPbm6slt.js";import{t as Kt,u as br}from"./BycWLeDe.js";import"./B6f4X6Cq.js";import"./DaBUZyWc.js";import{M as St}from"./CGtte9IE.js";import{V as Ua}from"./BSERRzdN.js";import{bC as Ra,aW as za}from"./Bk1uVK5j.js";import{ag as La}from"./D5Yn3bZC.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
|
|
1
|
+
import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./D4MoKNoK.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./HfuFYz2u.js";import{s as tt,l as bt,k as ar,h as xt}from"./WVYGrHqE.js";import{c as Ft}from"./BPQohPc9.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./C51KzdSG.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DjVrYm-R.js";import{bx as fa,bK as va,dj as pa}from"./dimBDqRX.js";import{w as dr,d as ga}from"./BvuznwRa.js";import{f as ma}from"./Di6XfBOT.js";import{n as qt}from"./BjO6mATN.js";import{f as Se,ax as _a}from"./DgFojmqv.js";import"./WZHg24tN.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./CG5J-qd_.js";import{g as Ia,i as Ca,w as cr}from"./BQ-Vdhjp.js";import{c as Fa}from"./ChTqQfQN.js";import"./De4WWpS0.js";import{M as Sa}from"./DoBcYmem.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./DditQ6Dc.js";import{M as Ta}from"./BQqtq_EY.js";import{t as Kt,u as br}from"./C8yAGnZY.js";import"./bjlKIwQF.js";import"./Ds7can9q.js";import{M as St}from"./D8_OuTD3.js";import{V as Ua}from"./BqSjWCdR.js";import{bC as Ra,aW as za}from"./DQ_zmHT9.js";import{ag as La}from"./5BmKVYc1.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
|
|
2
2
|
`).map(f=>f.split(",").map(m=>m.trim()));var Ye={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return $()},set fileContent(t=""){$(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Ie()},set language(t){Ie(t),te()},get isBinary(){return De()},set isBinary(t){De(t),te()},get allowDownload(){return be()},set allowDownload(t=!0){be(t),te()},get onDownload(){return me()},set onDownload(t){me(t),te()},get downloading(){return J()},set downloading(t=!1){J(t),te()},$set:Tt,$on:(t,a)=>Ut(x,t,a)},pe=oo();et("blur",pr,_);var ye=M(pe);{var Ge=t=>{var a=Ga(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let Q=i(()=>c.editor_fileViewer_rotate_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(Q)},children:(ge,Me)=>{Ze(ge,{get icon(){return ha},size:"sm"})},$$slots:{default:!0}})}var k=p(h,4);{let Q=i(()=>c.editor_fileViewer_copyImage_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:at,get title(){return e(Q)},children:(ge,Me)=>{var Ce=Le(),Vt=de(Ce);{var ut=Fe=>{Ze(Fe,{get icon(){return wa},size:"sm",class:"text-green-500"})},kt=Fe=>{Ze(Fe,{get icon(){return ba},size:"sm"})};ce(Vt,Fe=>{e(Be)?Fe(ut):Fe(kt,-1)})}s(ge,Ce)},$$slots:{default:!0}})}var O=p(k,2);{let Q=i(()=>!be()||J()),ge=i(()=>c.editor_fileViewer_download_tooltip());Se(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(Q)},get title(){return e(ge)},children:(Me,Ce)=>{Ze(Me,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var j=p(O,2),L=S(j,!0);P(f);var V=p(f,2),se=S(V);P(a),D(Q=>{g(L,e(N)),ar(V,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(V,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(se,"src",Q),tt(se,"alt",e(N)),bt(se,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100}) rotate(${e(R)??""}deg); transition: transform 0.2s;`)},[()=>K()]),ct("pointerdown",V,w),ct("pointermove",V,Ee),ct("pointerup",V,l),et("pointercancel",V,l),et("lostpointercapture",V,l),s(t,a)},Pe=t=>{var a=Ka(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let V=i(()=>!be()||J()),se=i(()=>c.editor_fileViewer_download_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(V)},get title(){return e(se)},children:(Q,ge)=>{Ze(Q,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var k=p(h,2),O=S(k,!0);P(f);var j=p(f,2),L=S(j);P(a),D(V=>{g(O,e(N)),ar(j,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(j,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(L,"src",V),tt(L,"alt",e(N)),bt(L,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100});`)},[()=>_e()]),ct("pointerdown",j,w),ct("pointermove",j,Ee),ct("pointerup",j,l),et("pointercancel",j,l),et("lostpointercapture",j,l),s(t,a)},ue=t=>{const a=i(ie);var f=Le(),m=de(f);gr(m,()=>re()+e(a),h=>{yr(h,{get sourceUrl(){return e(a)},get fileName(){return e(N)},get allowDownload(){return be()},get downloading(){return J()},onDownload:Z})}),s(t,f)},it=t=>{var a=Xa(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=M(h),O=p(k);P(h),P(a),D((j,L)=>{g(m,e(N)),tt(k,"src",j),g(O,` ${L??""}`)},[()=>K(),()=>c.editor_fileViewer_audioUnsupported_label()]),s(t,a)},yt=t=>{var a=Ja(),f=p(M(a),2),m=S(f,!0),h=p(f,2);{let k=i(()=>!be()||J());Se(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(k)},children:(O,j)=>{var L=Ya(),V=de(L);Ze(V,{get icon(){return Dt},size:"sm",class:"mr-2"});var se=p(V);D(Q=>g(se,` ${Q??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),s(O,L)},$$slots:{default:!0}})}P(a),D(k=>g(m,k),[()=>c.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},lt=t=>{{let a=i(()=>ot($().toString()));Xt(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Pt=t=>{const a=i(()=>qe($().toString()));var f=to(),m=M(f),h=M(m),k=M(h);xt(k,23,()=>e(a)[0]||[],(j,L)=>`header-${L}-${j}`,(j,L)=>{var V=Za(),se=S(V,!0);D(()=>g(se,e(L))),s(j,V)}),P(k),P(h);var O=p(h);xt(O,23,()=>e(a).slice(1),(j,L)=>`row-${L}`,(j,L,V)=>{var se=eo();xt(se,23,()=>e(L),(Q,ge)=>`cell-${e(V)}-${ge}`,(Q,ge)=>{var Me=Qa(),Ce=S(Me,!0);D(()=>g(Ce,e(ge))),s(Q,Me)}),P(se),s(j,se)}),P(O),P(m),P(f),s(t,f)},Lt=t=>{var a=ro(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_archive_label()]),s(t,a)},$t=t=>{var a=ao(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_binary_label()]),s(t,a)},Je=t=>{{let a=i(()=>$().toString());Xt(t,{get value(){return e(a)},get language(){return Ie()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};ce(ye,t=>{e(W)==="image"?t(Ge):e(W)==="svg"?t(Pe,1):e(W)==="video"?t(ue,2):e(W)==="audio"?t(it,3):e(W)==="pdf"?t(yt,4):e(W)==="json"?t(lt,5):e(W)==="csv"?t(Pt,6):e(W)==="archive"?t(Lt,7):e(W)==="binary"?t($t,8):t(Je,-1)})}return P(pe),s(we,pe),zt(Ye)}Ar(["pointerdown","pointermove","pointerup"]);var io=C("<!> <!>",1),no=C("<!> <!> <!>",1),so=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),ur=C('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),lo=C('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),fr=C('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),co=C('<div class="flex items-center gap-3"><!> <!></div>'),uo=C('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),fo=C("<li><!></li>"),vo=C('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),po=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger"> </p> <p class="text-xs"> </p> <p class="text-xs font-mono"> </p> <!></div>'),go=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),mo=C('<div class="h-full overflow-auto p-4"><!></div>');function _o(we,x){if(new.target)return Mt({component:_o,...we});Rt(x,!0);const ke=()=>he(Pe,"$workspace",R),rt=()=>he(K,"$fileContentStore",R),re=()=>he(ie,"$fileLoadingStore",R),$=()=>he(_e,"$fileSavingStore",R),ae=()=>he(U,"$fileErrorStore",R),Ie=()=>he(ne,"$fileNotFoundCandidatesStore",R),De=()=>he(X,"$isFileBinaryStore",R),be=()=>he(Z,"$isFileDirtyStore",R),me=()=>he(at,"$fileLastUpdatedStore",R),J=()=>he(ot,"$ftChanges$",R),He=()=>he(Ge,"$gutterRead$",R),W=()=>he(je,"$lineWrapping",R),N=()=>he(Ne,"$diffIndicators",R),oe=()=>he(pe,"$rootMediaPreview",R),[R,Ve]=Jt(),Be=r=>{var n=io(),I=de(n);{var F=ve=>{var Ae=Le(),Oe=de(Ae);Ft(Oe,()=>St,(dt,pt)=>{pt(dt,{get icon(){return Pa},get label(){return e(f)},disabled:!0})}),s(ve,Ae)};ce(I,ve=>{!e(se)&&!e(l)&&!e(Je)&&ve(F)})}var fe=p(I,2);{var Te=ve=>{{let Ae=i(()=>!e(It)||!e(L)),Oe=i(()=>!e(l)&&(!e(It)||!e(L)));Ua(ve,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(It)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ae)},get wrapEnabled(){return W()},onToggleWrap:()=>A.dispatch(Jr()),get showDiff(){return e(Oe)},get diffEnabled(){return N()},onToggleDiff:()=>A.dispatch(Yr())})}};ce(fe,ve=>{o().filePath&&!e(se)&&!e(Je)&&ve(Te)})}s(r,n)},xe=r=>{var n=Le(),I=de(n);{var F=fe=>{var Te=no(),ve=de(Te);{var Ae=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_goToChanges_tooltip());Ft(nt,()=>St,(mt,_t)=>{_t(mt,{get icon(){return ka},get label(){return e(gt)},onclick:Dr})})}s(We,Ke)};ce(ve,We=>{e($r)&&We(Ae)})}var Oe=p(ve,2);{var dt=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_downloadFile_label()),mt=i(()=>!e(ft)||e(Fe));Ft(nt,()=>St,(_t,At)=>{At(_t,{get icon(){return Dt},get label(){return e(gt)},onclick:Ct,get disabled(){return e(mt)}})})}s(We,Ke)};ce(Oe,We=>{e(Ce)&&We(dt)})}var pt=p(Oe,2);{let We=i(()=>c.layout_fileTab_deleteFile_tooltip());Ft(pt,()=>St,(Ke,nt)=>{nt(Ke,{get icon(){return $a},get label(){return e(We)},onclick:jr,destructive:!0})})}s(fe,Te)};ce(I,fe=>{o().filePath&&!e(se)&&!e(l)&&fe(F)})}s(r,n)},je=Ra(),Ne=za();let o=ee(x,"tab",7),d=ee(x,"workspaceId",7),T=ee(x,"isActive",7),_=ee(x,"isPanelFocused",7);$e(()=>{const r=d();if(!(!T()||!r||e(w)))return A.dispatch(qr(r,"files")),()=>A.dispatch(Gr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Ee=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?ma(o().filePath,e(w)):o().filePath),z=Wr(e(y));$e(()=>{z.set(e(y))});const K=ia(d(),z),ie=na(d(),z),_e=sa(d(),z),U=la(d(),z),ne=da(d(),z),X=ca(d(),z),Z=lr(d(),z),at=ua(d(),z),ot=fa(d()),qe=oa(),Ye=crypto.randomUUID(),pe=xr(Ye),ye=`file-gutter:${crypto.randomUUID()}`,Ge=va(d(),ye),Pe=pa(d()),ue=i(()=>ke()?.worktreePath||ke()?.repositoryPath||ke()?.path||null),it=i(rt),yt=i(re),lt=i($),Pt=i(ae),Lt=5,$t=i(()=>(Ie()??[]).slice(0,Lt)),Je=i(De),t=i(be),a=i(me),f=i(()=>e(lt)?c.ui_saveIndicator_saving_tooltip():e(t)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let m=H(null),h=H(Br([])),k=H(null),O=H(void 0),j=H(void 0),L=H(!0);$e(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(j)||(u(j,n,!0),u(O,{line:r},!0),u(L,!1))});const V=i(()=>e(w)?dr(o().filePath,e(Ee)):null),se=i(()=>e(w)?!e(V):!!(o().filePath&&(Da(o().filePath)||e(ue)&&ja(o().filePath,e(ue))))),Q=i(()=>o().filePath&&e(ue)?Gt(o().filePath)?o().filePath:`${e(ue)}/${o().filePath}`:null),ge=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Me=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Ce=i(()=>d()&&/^[A-Za-z0-9._-]+$/.test(d())?dr(o().filePath,e(ue)):null),Vt=i(()=>!e(w)&&e(Ce)?e(Ce).split("/").slice(0,-1).join("/"):void 0),ut=i(()=>e(ge)||e(Me)?e(Ce):null),kt=i(()=>e(w)&&e(Me)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);$e(()=>{if(!T()||!e(w)||!e(V)||!e(kt))return;const r=crypto.randomUUID();return A.dispatch(hr(Ye,r,d(),e(V),{gitRootId:e(w),mimeType:e(kt)})),()=>A.dispatch(wr(Ye,r))});let Fe=H(!1);const ft=i(()=>!!e(Ce)&&!e(yt)&&(!e(Me)||e(k)===e(Ce))),Zt=i(()=>e(k)&&d()?`workspace-file://${d()}/${e(k).split("/").map(encodeURIComponent).join("/")}`:null),Et=i(()=>o().filePath?ea(o().filePath):"plaintext"),It=i(()=>e(Et)==="markdown");$e(()=>{if(!T()||e(ge)||e(w))return;const r=e(ut),n=o().filePath,I=d(),F=o().id;if(u(k,null),!r||!n||!I)return;let fe=!1;const Te=()=>!fe&&d()===I&&o().id===F&&o().filePath===n;return(async()=>{let ve=!1;try{ve=(await _a("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Te())return;if(ve){u(k,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(k,r,!0);return}const{candidates:Ae,truncated:Oe}=await Sa(I,r);if(Te()){if(!Oe&&Ae.length===1){A.dispatch(or(I,n,Ae[0],F));return}u(k,r,!0)}})(),()=>{fe=!0}});function Pr(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const vt=i(()=>e(l)||!o().filePath?null:J().find(r=>Pr(r,o().filePath))??null),$r=i(()=>!!e(vt));$e(()=>{if(e(l))return;const r=d(),n=o().filePath,I=e(ue);return()=>{if(!r||!n)return;const F=Ht.select(A.state,r,n);if(F?.kind!=="editable-text")return;const fe=Ot(F.localContent),Te=lr.select(A.state,r,n),ve=Gt(n)?n:I?`${I}/${n}`:null;Te&&ve&&A.dispatch(ir(r,n,ve,fe))}}),$e(()=>{const r=o().filePath,n=e(Q),I=d();if(!T())return;const F=!e(w)&&!!r&&Gt(r)&&!e(ue);r&&I&&!e(se)&&!e(Me)&&!e(ge)&&!F&&(e(w)&&e(V)&&e(y)?A.dispatch(nr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(V)}})):A.dispatch(nr(I,r,n??r)))});function kr(){return e(it)??""}function Ir(r){e(l)||e(Je)||!o().filePath||!d()||!e(Q)||A.dispatch(aa(d(),o().filePath,Ot(r)))}function Cr(){if(e(l)||e(Je)||!o().filePath||!e(Q)||e(it)===null||e(lt))return;const r=Ht.select(A.state,d(),o().filePath);r?.kind==="editable-text"&&A.dispatch(ir(d(),o().filePath,e(Q),Ot(r.localContent)))}function Fr(r){const n=o().filePath;!n||!d()||(A.dispatch(ra(d(),n)),A.dispatch(or(d(),n,r,o().id)))}$e(()=>{const r=o().filePath,n=e(vt);if(!r||!n){u(h,[],!0);return}if(!T())return;const I=d(),F=crypto.randomUUID();return A.dispatch(Kr(I,ye,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Xr(I,ye,F))}}),$e(()=>{const r=He(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(h,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(fe=>(fe.type===sr.Addition?"+":fe.type===sr.Deletion?"-":" ")+fe.content)}))):[],!0)});function Sr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Te=>Nr(r,La(Te),n);if(I("editor.save")){r.preventDefault(),e(t)&&!e(lt)&&Cr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(m)?.runShortcut(F)&&r.preventDefault()}function Dr(r){if(!o().filePath||!e(vt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ta(d(),e(vt),{filePath:o().filePath,changeId:e(vt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ct(){const r=e(Ce);if(!(e(l)||!r||!d()||!e(ft)||e(Fe))){u(Fe,!0);try{const n=await ga(d(),r,e(ue));!n?.success&&!n?.canceled&&qt.error(n?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{qt.error(c.layout_fileTab_downloadFailed_error())}finally{u(Fe,!1)}}}function jr(){const r=e(Q);if(e(l)||!o().filePath||!d()||!r)return;const n=Zr(Ht.select(A.state,d(),o().filePath));if(!n){qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(Qr(d(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}$e(()=>{if(!qe||!T())return;const r={isDirty:!e(l)&&e(t),isSaving:!e(l)&&e(lt)};vr(()=>{qe.registerActions({display:Be,actions:xe}),qe.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return d()},set workspaceId(r){d(r),te()},get isActive(){return T()},set isActive(r){T(r),te()},get isPanelFocused(){return _()},set isPanelFocused(r){_(r),te()},$set:Tt,$on:(r,n)=>Ut(x,r,n)},Qt=Le();et("keydown",pr,r=>T()&&Sr(r));var Tr=de(Qt);{var Ur=r=>{var n=Le(),I=de(n);gr(I,()=>o().filePath,F=>{var fe=Le(),Te=de(fe);{var ve=b=>{var v=so(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0);P(v),D(Y=>{g(q,Y),g(Ue,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ae=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(V)},get gitRootId(){return e(w)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},Oe=b=>{var v=Le(),E=de(v);{var q=Y=>{var G=ur(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_errorLoading_label()]),s(Y,G)},B=Y=>{jt(Y,{get filePath(){return o().filePath},get sourceUrl(){return oe().url},allowDownload:!1})},Ue=Y=>{var G=lo(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_preparing_label()]),s(Y,G)};ce(E,Y=>{oe()?.error?Y(q):oe()?.url?Y(B,1):Y(Ue,-1)})}s(b,v)},dt=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(ut)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},pt=b=>{var v=ur(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.file_pdf_load_error()]),s(b,v)},We=b=>{{let v=i(()=>e(k)??o().filePath),E=i(()=>!e(l)&&e(ft));jt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Zt)},onDownload:Ct,get allowDownload(){return e(E)},get downloading(){return e(Fe)}})}},Ke=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)},nt=b=>{var v=uo(),E=M(v);xt(E,20,()=>[...Array(20).keys()],q=>q,(q,B)=>{var Ue=co(),Y=M(Ue);cr(Y,{class:"h-3 w-8 shrink-0"});var G=p(Y,2);cr(G,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Ue),s(q,Ue)}),P(E),P(v),s(b,v)},gt=b=>{var v=po(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2),G=S(Y,!0),le=p(Y,2);{var Re=ze=>{var st=vo(),ht=de(st),Wt=S(ht,!0),er=p(ht,2);xt(er,20,()=>e($t),wt=>wt,(wt,tr)=>{var Bt=fo(),zr=M(Bt);Se(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Fr(tr),children:(Lr,ho)=>{Xe();var rr=Qe();D(()=>g(rr,tr)),s(Lr,rr)},$$slots:{default:!0}}),P(Bt),s(wt,Bt)}),P(er),D(wt=>g(Wt,wt),[()=>c.layout_fileTab_didYouMean_label()]),s(ze,st)};ce(le,ze=>{e($t).length>0&&ze(Re)})}P(v),D(ze=>{g(q,ze),g(Ue,e(Pt)),g(G,o().filePath)},[()=>c.layout_fileTab_errorLoading_label()]),s(b,v)},mt=b=>{var v=go(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2);{var G=le=>{{let Re=i(()=>!e(ft)||e(Fe));Se(le,{variant:"secondary",size:"sm",onclick:Ct,get disabled(){return e(Re)},children:(ze,st)=>{Xe();var ht=Qe();D(Wt=>g(ht,Wt),[()=>c.layout_fileTab_downloadFile_label()]),s(ze,ht)},$$slots:{default:!0}})}};ce(Y,le=>{!e(l)&&e(Ce)&&le(G)})}P(v),D(le=>{g(q,le),g(Ue,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),s(b,v)},_t=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var E=Le(),q=de(E);{var B=G=>{{let le=i(()=>o().filePath||""),Re=i(()=>!e(l)&&e(ft));jt(G,{get filePath(){return e(le)},get fileContent(){return e(it)},get language(){return e(Et)},get isBinary(){return e(Je)},onDownload:Ct,get allowDownload(){return e(Re)},get downloading(){return e(Fe)}})}},Ue=G=>{var le=mo(),Re=M(le);Ta(Re,{get content(){return e(it)},get workspaceId(){return d()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(le),s(G,le)},Y=G=>{var le=kr,Re=Ir;{let ze=i(()=>N()?e(h):[]);mr(Xt(G,{get value(){return le()},set value(st){Re(st)},get language(){return e(Et)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return d()},get filePath(){return o().filePath},get lineWrapping(){return W()},get lineChanges(){return e(ze)},get jumpTo(){return e(O)},get externalContentVersion(){return e(a)},get isPanelFocused(){return _()}}),st=>u(m,st,!0),()=>e(m))}};ce(q,G=>{e(v)?G(B):e(It)&&e(L)?G(Ue,1):G(Y,-1)})}s(b,E)},At=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)};ce(Te,b=>{e(se)?b(ve):e(w)&&e(ge)&&e(V)?b(Ae,1):e(w)&&e(Me)?b(Oe,2):e(ge)&&e(ut)?b(dt,3):e(ge)?b(pt,4):e(Zt)?b(We,5):e(Me)?b(Ke,6):e(yt)?b(nt,7):e(Pt)?b(gt,8):e(Je)?b(mt,9):e(it)!==null?b(_t,10):b(At,-1)})}s(F,fe)}),s(r,n)};ce(Tr,r=>{o().filePath&&r(Ur)})}s(we,Qt);var Rr=zt(Mr);return Ve(),Rr}export{_o as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k,W as Qt,aH as zt,ad as ee,N as me,R as Jt,ax as Zt,aV as nt,aG as $t,aF as e1,aI as t1,L as s1,K as i1,O as r1,p as a1,ac as n1,J as u1,a7 as o1,P as rt,as as l1,k as c1,x as h1,aC as d1,i as p1}from"./
|
|
1
|
+
import{a as k,W as Qt,aH as zt,ad as ee,N as me,R as Jt,ax as Zt,aV as nt,aG as $t,aF as e1,aI as t1,L as s1,K as i1,O as r1,p as a1,ac as n1,J as u1,a7 as o1,P as rt,as as l1,k as c1,x as h1,aC as d1,i as p1}from"./CRQOCmwo.js";import{g as f1}from"./DWW4w6Jk.js";import{g as g1}from"./8n4ougjP.js";import{s as b1}from"./D2hiI0dA.js";import{c as A1}from"./DyQA18KQ.js";import{g as j,c3 as at}from"./Bmnp4Cni.js";var k1="flowchart-",Te,m1=(Te=class{constructor(){this.vertexCounter=0,this.config=me(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=$t,this.setAccDescription=e1,this.setDiagramTitle=t1,this.getAccTitle=s1,this.getAccDescription=i1,this.getDiagramTitle=r1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return a1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
|
|
2
2
|
`)?u=m+`
|
|
3
3
|
`:u=`{
|
|
4
4
|
`+m+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G2 as r,mu as p,mv as i,la as s,z as S}from"./
|
|
1
|
+
import{G2 as r,mu as p,mv as i,la as s,z as S}from"./C51KzdSG.js";import{bo as o}from"./D4MoKNoK.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),b=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),A=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),W=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:W,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:b,selectWorkspaceTerminalState:A},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,E as d,_ as e,N as f,b as g,A as h,M as i,T as l,y as s,d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./Bkt7VHdr.js";import{s as Kt}from"./-FJQK9pf.js";import{f,c7 as Zt,aL as jt,c6 as qt,aK as Wt,c9 as Ht,aP as Qt,aO as tt,bC as F,a4 as Xt,a0 as Jt,aQ as $t,c0 as te,e as ee,aS as se,bZ as ie,c3 as re,cx as ae}from"./-EQ6B0ad.js";import{c as ne}from"./Blk8v-pB.js";var Ot=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],O=[1,19],x=[1,28],A=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},s(a,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:N,53:D,54:L,55:w},{10:51,43:O,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:O,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:O,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,St,U={},ht,I,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./C6NP7Wkf.js";import{s as Kt}from"./DbdgMxO8.js";import{f,c7 as Zt,aL as jt,c6 as qt,aK as Wt,c9 as Ht,aP as Qt,aO as tt,bC as F,a4 as Xt,a0 as Jt,aQ as $t,c0 as te,e as ee,aS as se,bZ as ie,c3 as re,cx as ae}from"./Bmnp4Cni.js";import{c as ne}from"./DsYKN9zh.js";var Ot=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],O=[1,19],x=[1,28],A=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},s(a,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:N,53:D,54:L,55:w},{10:51,43:O,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:O,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:O,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,St,U={},ht,I,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Tt="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Tt,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Et,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,Et=m.yylloc;break;case 2:if(I=this.productions_[T[1]][1],U.$=_[_.length-I],U._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),St=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof St<"u")return St;I&&(d=d.slice(0,-1*I*2),_=_.slice(0,-1*I),t=t.slice(0,-1*I)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,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:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ee}from"./
|
|
1
|
+
import{g as ee}from"./C6NP7Wkf.js";import{s as se}from"./DbdgMxO8.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./Bmnp4Cni.js";import{c as fe}from"./CoQLGQdj.js";import{aI as pe}from"./DQ_zmHT9.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(Y+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(N[0]){case 1:a.push(x),_.push(k.yytext),i.push(k.yylloc),a.push(N[1]),x=null,X=k.yyleng,l=k.yytext,Y=k.yylineno,_t=k.yylloc;break;case 2:if(G=this.productions_[N[1]][1],J.$=_[_.length-G],J._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(J._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(J,[l,X,Y,U.yy,N[1],_,i].concat(Tt)),typeof mt<"u")return mt;G&&(a=a.slice(0,-1*G*2),_=_.slice(0,-1*G),i=i.slice(0,-1*G)),a.push(this.productions_[N[1]][0]),_.push(J.$),i.push(J._$),wt=B[a[a.length-2]][a[a.length-1]],a.push(wt);break;case 3:return!0}}return!0},"parse")},Zt=(function(){var V={EOF:1,parseError:p(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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),a.length-1&&(this.yylineno-=a.length-1);var _=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:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./BxUDfZfX.js";import{f as l}from"./Bmnp4Cni.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as rr}from"./Cnz8RKk9.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./D0QGnN9N.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./BrzmNBOR.js";import{c3 as Kt,g as B,h as xr}from"./-EQ6B0ad.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[2,78],Nt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],De=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Xt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ve=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Jt=[5,52],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
|
|
1
|
+
import{I as rr}from"./Ri_Gwy-5.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./CRQOCmwo.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./DyQA18KQ.js";import{c3 as Kt,g as B,h as xr}from"./Bmnp4Cni.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[2,78],Nt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],De=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Xt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ve=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Jt=[5,52],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
|
|
2
2
|
`+Z.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[at]||at)+"'":ee="Parse error on line "+(Bt+1)+": Unexpected "+(at==Me?"end of input":"'"+(this.terminals_[at]||at)+"'"),this.parseError(ee,{text:Z.match,token:this.terminals_[at]||at,line:Z.yylineno,loc:$t,expected:Yt})}if(lt[0]instanceof Array&<.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+at);switch(lt[0]){case 1:P.push(at),U.push(Z.yytext),o.push(Z.yylloc),P.push(lt[1]),at=null,Ce=Z.yyleng,d=Z.yytext,Bt=Z.yylineno,$t=Z.yylloc;break;case 2:if(pt=this.productions_[lt[1]][1],mt.$=U[U.length-pt],mt._$={first_line:o[o.length-(pt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(pt||1)].first_column,last_column:o[o.length-1].last_column},er&&(mt._$.range=[o[o.length-(pt||1)].range[0],o[o.length-1].range[1]]),te=this.performAction.apply(mt,[d,Ce,Bt,xt.yy,lt[1],U,o].concat(tr)),typeof te<"u")return te;pt&&(P=P.slice(0,-1*pt*2),U=U.slice(0,-1*pt),o=o.slice(0,-1*pt)),P.push(this.productions_[lt[1]][0]),U.push(mt.$),o.push(mt._$),Ve=kt[P[P.length-2]][P[P.length-1]],P.push(Ve);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var ft={EOF:1,parseError:x(B(function(v,P){if(this.yy.parser)this.yy.parser.parseError(v,P);else throw new Error(v)},"parseError"),"parseError"),setInput:x(function(A,v){return this.yy=v||this.yy||{},this._input=A,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:x(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var v=A.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:x(function(A){var v=A.length,P=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;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),P.length-1&&(this.yylineno-=P.length-1);var U=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:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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:x(function(A){this.unput(this.match.slice(A))},"less"),pastInput:x(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var A=this.pastInput(),v=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as oe}from"./
|
|
1
|
+
import{p as oe}from"./BoffG-0C.js";import{p as se,i as de}from"./i_sqIi_B.js";import{O as le,aI as ce,aF as me,K as ue,L as xe,aG as fe,a as o,ad as h,N as ne,aL as ge,k as he,j as pe,M as A,y as ve,aD as B,aX as M,f as be}from"./CRQOCmwo.js";import{c3 as we,g as d}from"./Bmnp4Cni.js";var ae="position frame",ie="frame positioned",k="position relation",re="relation positioned",ye=o(function(e){h.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Se=o(function(){R(),he()},"clear");function R(){D={}}d(R,"reset");o(R,"reset");var Fe=ve.eventmodeling,Be=o(()=>pe({...Fe,...A().eventmodeling}),"getConfig"),D={};function N(){let e=Me;const{ast:n}=D,t=P();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((a,i)=>{const r=H(a,n.dataEntities,t);e=w(e,{$kind:ae,index:i,frame:a,textProps:r});let l;X(a)?(h.debug("source frame",a.sourceFrames),l=n.frames.filter(c=>a.sourceFrames.some(m=>m.$refText===c.name)),l.forEach(c=>{e=w(e,{$kind:k,index:i,frame:a,sourceFrame:c})})):e=w(e,{$kind:k,index:i,frame:a})}),e={...e,sortedSwimlanesArray:S(e.swimlanes)},e}d(N,"getState");o(N,"getState");function T(e){D.ast=e}d(T,"setAst");o(T,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function P(){return s}d(P,"getDiagramProps");o(P,"getDiagramProps");var Me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}d($,"extractNamespace");o($,"extractNamespace");function C(e){const n=e.split(".");return n.length===2?n[1]:e}d(C,"extractName");o(C,"extractName");function I(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}d(I,"findSwimlaneByNamespace");o(I,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(a=>{const i=Number.parseInt(a);return i>n&&i<t}).map(a=>Number.parseInt(a)))+1}d(b,"findNextAvailableIndex");o(b,"findNextAvailableIndex");function O(e,n){const t=$(e.entityIdentifier),a=I(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return a?{index:a.index,label:a.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return a?{index:a.index,label:a.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return a?{index:a.index,label:a.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}d(O,"calculateSwimlaneProps");o(O,"calculateSwimlaneProps");function W(e){const{themeVariables:n}=A();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}d(W,"calculateEntityVisualProps");o(W,"calculateEntityVisualProps");function H(e,n,t){const a=A(),i=B(C(e.entityIdentifier)??"",a);let r;const l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${M(i,t.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" "," ")),e.dataReference){const v=n.find(F=>F.name===e.dataReference?.$refText);v&&(r=v.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" "," "),r+="<br/>")}const u=r!==void 0;u&&(m+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},x=be(m,f),p=u?x.width/3:x.width,g={content:m,width:p,height:x.height};return h.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}d(H,"calculateTextProps");o(H,"calculateTextProps");function U(e,n){const t=n,a=W(t.frame),i={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:ie,frame:t.frame,index:t.index,visual:a,dimension:i,textProps:t.textProps}]}d(U,"decidePositionFrame");o(U,"decidePositionFrame");function L(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}d(L,"calculateX");o(L,"calculateX");function _(e,n){const t=[...e.map(a=>a.r),n];return Math.max(...t)}d(_,"calculateMaxRight");o(_,"calculateMaxRight");function S(e){return Object.values(e).sort((n,t)=>n.index-t.index)}d(S,"sortedSwimlanesArray");o(S,"sortedSwimlanesArray");function G(e,n){const t=n,a=O(t.frame,e.swimlanes);let i;a.index in e.swimlanes?i=e.swimlanes[a.index]:i={index:a.index,label:a.label,r:0,y:a.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,l=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=L(i,l,r),u=m+c.width+s.boxPadding,f=_(Object.values(e.swimlanes),u);i.r=m+c.width,i.maxHeight=Math.max(i.maxHeight,c.height),i.height=Math.max(s.swimlaneMinHeight,i.maxHeight)+2*s.swimlanePadding;const x={x:m,y:s.swimlanePadding+i.y,r:u,dimension:c,leftSibling:!1,swimlane:i,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},p={...e,boxes:[...e.boxes,x],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:a.index,previousFrame:t.frame,maxR:f},g=S(p.swimlanes);g.length>0&&(g[0].y=0);for(let v=1;v<g.length;v++){const F=g[v],te=g[v-1];F.y=te.y+te.height+s.swimlaneGap}return p}d(G,"evolveFramePositioned");o(G,"evolveFramePositioned");function V(e,n){return e===0&&n.sourceFrames.length===0}d(V,"isFirstFrame");o(V,"isFirstFrame");function X(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}d(X,"hasSourceFrame");o(X,"hasSourceFrame");function y(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}d(y,"findBoxByFrame");o(y,"findBoxByFrame");function j(e,n,t){if(!(t<0))for(let a=t;a>=0;a--){const i=e[a];if(i.swimlane.index!==n)return i}}d(j,"findBoxByLineIndex");o(j,"findBoxByLineIndex");function Y(e,n){const t=n;if(de(t.frame)||V(t.index,t.frame))return[];const a=y(e.boxes,t.frame);if(a===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let i;return t.sourceFrame?i=y(e.boxes,t.sourceFrame):i=j(e.boxes,a.swimlane.index,t.index-1),i===void 0?[]:[{$kind:re,frame:t.frame,index:t.index,sourceBox:i,targetBox:a}]}d(Y,"decidePositionRelation");o(Y,"decidePositionRelation");function K(e,n){const t=n,a={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,a]}}d(K,"evolveRelationPositioned");o(K,"evolveRelationPositioned");var ke={[ae]:U,[k]:Y},Ee={[ie]:G,[re]:K};function z(e,n){const t=ke[n.$kind];if(t==null)return[];const a=t(e,n);return h.debug("decided events",a),a}d(z,"decide");o(z,"decide");function q(e,n){const t=n.reduce((a,i)=>{const r=Ee[i.$kind];return r==null?a:r(a,i)},e);return h.debug("evolve events",{state:e,newState:t,events:n}),t}d(q,"evolve");o(q,"evolve");function w(e,n){const t=z(e,n);return q(e,t)}d(w,"dispatch");o(w,"dispatch");var E={getConfig:Be,setOptions:ye,getOptions:Pe,clear:Se,setAccTitle:fe,getAccTitle:xe,getAccDescription:ue,setAccDescription:me,setDiagramTitle:ce,getDiagramTitle:le,setAst:T,getDiagramProps:P,getState:N},Ae={parse:o(async e=>{const n=await se("eventmodeling",e);h.debug(n),E.setAst(n),oe(n,E)},"parse")},Re=ne(),De=Re?.eventmodeling;function J(e,n){return t=>{const a=t.swimlane.y+n.swimlanePadding,i=e.append("g").attr("class","em-box");i.append("rect").attr("x",t.x).attr("y",a).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),i.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",a+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}d(J,"renderD3Box");o(J,"renderD3Box");function Q(e,n){return e>n}d(Q,"dirUpwards");o(Q,"dirUpwards");function Z(e,n,t,a){return i=>{const r=i.sourceBox.swimlane.y+n.swimlanePadding,l=i.targetBox.swimlane.y+n.swimlanePadding,c=Q(r,l),m=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let f,x;h.debug(`rendering relation up=${c} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),c?(f=r,x=l+i.targetBox.dimension.height):(f=r+i.sourceBox.dimension.height,x=l);const p=a.emRelationStroke??i.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",p).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${f} L${u} ${x}`)}}d(Z,"renderD3Relation");o(Z,"renderD3Relation");function ee(e,n,t,a){return i=>{const r=e.append("g").attr("class","em-swimlane"),l=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",i.height).attr("fill",l).attr("stroke",c),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}d(ee,"renderD3Swimlane");o(ee,"renderD3Swimlane");var Ne=o(function(e,n,t,a){if(h.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!De)throw new Error("EventModeling config not found");const i=a.db,{themeVariables:r,eventmodeling:l}=ne(),c=we(`[id="${n}"]`),m=i.getDiagramProps(),u=i.getState(),f=`em-arrowhead-${n}`,x=r.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(ee(c,u.maxR,m,r)),u.boxes.forEach(J(c,m)),u.relations.forEach(Z(c,m,f,r)),c.append("defs").append("marker").attr("id",f).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",x),ge(void 0,c,l?.padding??30,l?.useMaxWidth)},"draw"),Te={draw:Ne},$e=o(e=>"","getStyles"),Ce=$e,Ue={parser:Ae,db:E,renderer:Te,styles:Ce};export{Ue as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./
|
|
1
|
+
import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./CRQOCmwo.js";import{g as Y}from"./Bmnp4Cni.js";var M="",A="",O="",D=[],b=new Map,v=p(e=>K(e,J()),"sanitizeText"),$=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map($)};case"choice":return{...e,alternatives:e.alternatives.map($)};case"optional":return{...e,element:$(e.element)};case"repetition":return{...e,element:$(e.element),separator:e.separator?$(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),Q=p(()=>{M="",A="",O="",D.length=0,b.clear(),G(),C.debug("[Railroad] Database cleared")},"clear"),P=p(e=>{M=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),L=p(()=>M,"getTitle"),Z=p(e=>{const i={...e,name:v(e.name),definition:$(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),V=p(()=>D,"getRules"),ee=p(e=>b.get(e),"getRule"),te=p(e=>{A=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),re=p(()=>A,"getAccTitle"),ie=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ae=p(()=>O,"getAccDescription"),ne=P,oe=L,le={clear:Q,setTitle:P,getTitle:L,addRule:Z,getRules:V,getRule:ee,setAccTitle:te,getAccTitle:re,setAccDescription:ie,getAccDescription:ae,setDiagramTitle:ne,getDiagramTitle:oe},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},se=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,de=/^[\w "',.-]+$/,ce=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=p(e=>e?Object.keys(e).every(i=>i==="railroad"||ce.has(i)):!1,"isRailroadStyleOptions"),me=p(e=>e?"railroad"in e&&e.railroad?e.railroad:I(e)?e:{}:{},"extractRailroadOverrides"),he=p(e=>{if(!e||I(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return de.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),pe=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ue=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=pe(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=W(),n={...U(),...i.themeVariables??{},...he(e)},a=ue(n),t={...i.railroad??{},...me(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),we=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|