@intent-hq/web 2.286.1 → 2.286.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/intent-web.mjs +11 -2
- package/package.json +1 -1
- package/web/app/immutable/assets/0.B2ssLqMh.css +1 -0
- package/web/app/immutable/chunks/{R0wDqNpY.js → 0azY1Euo.js} +1 -1
- package/web/app/immutable/chunks/{BdMP-rwq.js → 1Xl1_j69.js} +1 -1
- package/web/app/immutable/chunks/{CzK2fiHA.js → 1iwlWivR.js} +1 -1
- package/web/app/immutable/chunks/{DqkDKEMV.js → 2N--vaHR.js} +1 -1
- package/web/app/immutable/chunks/3kw_jVcY.js +3 -0
- package/web/app/immutable/chunks/{BUqUwu2G.js → 3oGwK09B.js} +1 -1
- package/web/app/immutable/chunks/{DuzQF9m7.js → 5JOOVIIo.js} +1 -1
- package/web/app/immutable/chunks/{2oaDc1nn.js → 6CBvudM-.js} +1 -1
- package/web/app/immutable/chunks/{Dh52so4o.js → 6gxnLEJP.js} +3 -3
- package/web/app/immutable/chunks/{DiBTM3GP.js → 976zYcoh.js} +1 -1
- package/web/app/immutable/chunks/{BB0aq9c_.js → B-GuaxD4.js} +1 -1
- package/web/app/immutable/chunks/{2FstYM1s.js → B2Ta8ZYX.js} +1 -1
- package/web/app/immutable/chunks/{HHGL3CBU.js → B2jOXbpl.js} +1 -1
- package/web/app/immutable/chunks/{B1kJVNhf.js → B3foPak9.js} +1 -1
- package/web/app/immutable/chunks/{CJKeXT5H.js → B5mo4ccL.js} +1 -1
- package/web/app/immutable/chunks/{Fy3QvGgT.js → B6n3m66K.js} +1 -1
- package/web/app/immutable/chunks/{C5E1PJb6.js → B781x4pz.js} +2 -2
- package/web/app/immutable/chunks/{Ct7iVnk5.js → B7JUZ-OL.js} +2 -2
- package/web/app/immutable/chunks/{D9qYrFLr.js → B8mLANMy.js} +1 -1
- package/web/app/immutable/chunks/{CQlclm_i.js → BCFbCagC.js} +1 -1
- package/web/app/immutable/chunks/{CdEtW7wp.js → BCPDBuLJ.js} +1 -1
- package/web/app/immutable/chunks/{xpCT4rnW.js → BHBAtBBB.js} +1 -1
- package/web/app/immutable/chunks/{Bxc57npw.js → BJwk8LqM.js} +1 -1
- package/web/app/immutable/chunks/{BnDVzHAF.js → BLFT0vk0.js} +1 -1
- package/web/app/immutable/chunks/{Cv6pFp-w.js → BME8wn-Y.js} +1 -1
- package/web/app/immutable/chunks/{Bn4hj7HG.js → BMoKffXR.js} +1 -1
- package/web/app/immutable/chunks/{CjOWZNUy.js → BOlugeJj.js} +1 -1
- package/web/app/immutable/chunks/{RNQdr-NN.js → BPDNj0Ug.js} +1 -1
- package/web/app/immutable/chunks/{CeHlFtmN.js → BSZTRNsD.js} +1 -1
- package/web/app/immutable/chunks/{CgOfeXf8.js → BUVJimmV.js} +1 -1
- package/web/app/immutable/chunks/{D7y4iPD0.js → BZBudGQG.js} +1 -1
- package/web/app/immutable/chunks/{3q61Z6zu.js → B_vj7xxI.js} +1 -1
- package/web/app/immutable/chunks/{p20Ma5Ub.js → Bb0plfAx.js} +1 -1
- package/web/app/immutable/chunks/{C4Zcz5ig.js → BbJXkiov.js} +1 -1
- package/web/app/immutable/chunks/{Cbe4LDCb.js → BbNzaCQR.js} +1 -1
- package/web/app/immutable/chunks/{DdZVLxLI.js → BctbI4aU.js} +1 -1
- package/web/app/immutable/chunks/{B2SAFlE_.js → BeQ1MqDU.js} +1 -1
- package/web/app/immutable/chunks/{aWlYJ1qq.js → BeddIW6i.js} +1 -1
- package/web/app/immutable/chunks/{O_LhoKyf.js → Bf4Ffzqn.js} +1 -1
- package/web/app/immutable/chunks/{B8N5zbP-.js → BfS0Q-nX.js} +1 -1
- package/web/app/immutable/chunks/{4LCvEsVS.js → BfnrA5Ab.js} +1 -1
- package/web/app/immutable/chunks/{Dj9OdxPP.js → Bmq5LtFr.js} +1 -1
- package/web/app/immutable/chunks/{C68FzyYL.js → BmufqNuq.js} +1 -1
- package/web/app/immutable/chunks/{fsCYHFC5.js → BnWH1iQz.js} +1 -1
- package/web/app/immutable/chunks/{qsyNpi2_.js → BnoRvwv3.js} +1 -1
- package/web/app/immutable/chunks/{BIGmpOjZ.js → Bp8wUB3U.js} +1 -1
- package/web/app/immutable/chunks/Bpruhzz0.js +4 -0
- package/web/app/immutable/chunks/{CqwbuddS.js → Bq3GTaKG.js} +1 -1
- package/web/app/immutable/chunks/{9JjZRepm.js → BqJHaeQw.js} +1 -1
- package/web/app/immutable/chunks/{YIljg4QC.js → BrEqoZ1p.js} +1 -1
- package/web/app/immutable/chunks/{CfHaLL96.js → BrHwmqrG.js} +1 -1
- package/web/app/immutable/chunks/{DZ2EweHv.js → BrhmFCB4.js} +1 -1
- package/web/app/immutable/chunks/{ALbX902-.js → BuEHStYX.js} +1 -1
- package/web/app/immutable/chunks/{DWvbS4mu.js → BvzONeHW.js} +1 -1
- package/web/app/immutable/chunks/{BsKoK3Rk.js → Bwxf2JuH.js} +1 -1
- package/web/app/immutable/chunks/{2LPpSBFe.js → ByIRYR8A.js} +1 -1
- package/web/app/immutable/chunks/{Du9ULB4g.js → BzoF1_ij.js} +1 -1
- package/web/app/immutable/chunks/{oTkHTTGI.js → C-OvZCj_.js} +1 -1
- package/web/app/immutable/chunks/{B5WfnJ_I.js → C24Rzfzk.js} +1 -1
- package/web/app/immutable/chunks/{BsNGkCax.js → C2pKnlEJ.js} +1 -1
- package/web/app/immutable/chunks/{CG-WEY6g.js → C3jNWf9W.js} +1 -1
- package/web/app/immutable/chunks/{B78OjmQ3.js → C5p3cAYv.js} +1 -1
- package/web/app/immutable/chunks/{BdvBYYZC.js → C5qP0fL9.js} +1 -1
- package/web/app/immutable/chunks/{QOLdaLP0.js → C6AX083-.js} +1 -1
- package/web/app/immutable/chunks/{DHLYr2dR.js → C6FMFHeq.js} +1 -1
- package/web/app/immutable/chunks/{BCiyShif.js → CAE5fLft.js} +1 -1
- package/web/app/immutable/chunks/{BxKmCVSh.js → CB76QYmX.js} +1 -1
- package/web/app/immutable/chunks/{DQprfQGN.js → CCYqEJG1.js} +1 -1
- package/web/app/immutable/chunks/{DcOGngFl.js → CGid_txv.js} +1 -1
- package/web/app/immutable/chunks/{Uvf94Vit.js → CGy8AR53.js} +1 -1
- package/web/app/immutable/chunks/{BgX6IJDk.js → CHq8gooQ.js} +1 -1
- package/web/app/immutable/chunks/{CEiokx4X.js → CHwcICZW.js} +1 -1
- package/web/app/immutable/chunks/{B_IE7AMR.js → CK1AF7GU.js} +1 -1
- package/web/app/immutable/chunks/{BhBL2il-.js → CL28-RkP.js} +1 -1
- package/web/app/immutable/chunks/{VwRqUxpW.js → CLBb9J0e.js} +1 -1
- package/web/app/immutable/chunks/{B5NXv3LV.js → CMAxIbm4.js} +6 -6
- package/web/app/immutable/chunks/{Ov_SEXEY.js → CMUt7G5B.js} +1 -1
- package/web/app/immutable/chunks/{kpgdVhmB.js → COgknoIp.js} +1 -1
- package/web/app/immutable/chunks/{BHwB2t2J.js → CQcnUt15.js} +6 -6
- package/web/app/immutable/chunks/{C5RdKv5y.js → CSEB8cDa.js} +1 -1
- package/web/app/immutable/chunks/{l9lbU6dU.js → CSKprktf.js} +1 -1
- package/web/app/immutable/chunks/{hTe-_Fjh.js → CXsEQ4Fe.js} +3 -3
- package/web/app/immutable/chunks/{ChOA9PWi.js → C_CE49CT.js} +1 -1
- package/web/app/immutable/chunks/{Cg71xtru.js → C_m_o9vM.js} +1 -1
- package/web/app/immutable/chunks/{CN6UuCI4.js → Cae3uxuh.js} +2 -2
- package/web/app/immutable/chunks/{vkDSSzeI.js → Caf4tDH7.js} +1 -1
- package/web/app/immutable/chunks/{B-jWalbO.js → CeWSuA2o.js} +1 -1
- package/web/app/immutable/chunks/{CJPP3n_b.js → ChBqCTy0.js} +1 -1
- package/web/app/immutable/chunks/{CnT2T-Bp.js → Cix_mnLj.js} +4 -4
- package/web/app/immutable/chunks/{CusMGTEg.js → CmWV3gyr.js} +1 -1
- package/web/app/immutable/chunks/{BAEKjYyz.js → CnLkqvzY.js} +1 -1
- package/web/app/immutable/chunks/{D61mreVc.js → Cniog18G.js} +1 -1
- package/web/app/immutable/chunks/{cKTNBTNE.js → Cnlrbhbh.js} +1 -1
- package/web/app/immutable/chunks/{B0jdpkVd.js → CpiOwqpL.js} +1 -1
- package/web/app/immutable/chunks/{DGWxO_aL.js → CqTutsn0.js} +1 -1
- package/web/app/immutable/chunks/{CNG6DDdt.js → CrsB8npl.js} +1 -1
- package/web/app/immutable/chunks/{B5VfU0KM.js → CuYFxjMF.js} +1 -1
- package/web/app/immutable/chunks/{3sa2ZSPC.js → Cui_1F-9.js} +1 -1
- package/web/app/immutable/chunks/{zln0bEou.js → Cx463bih.js} +1 -1
- package/web/app/immutable/chunks/{Ds-FLOE0.js → CxFDPuIk.js} +1 -1
- package/web/app/immutable/chunks/{DM4MRAyE.js → CyGw7JU5.js} +1 -1
- package/web/app/immutable/chunks/{DyjYgqtH.js → CyMVqmzv.js} +1 -1
- package/web/app/immutable/chunks/{HjNzRj_q.js → D0M9u_n-.js} +1 -1
- package/web/app/immutable/chunks/{CC-oK8xP.js → D2b1hcog.js} +2 -2
- package/web/app/immutable/chunks/{XgTDusK7.js → D5VLKYyC.js} +1 -1
- package/web/app/immutable/chunks/{Cic3Ymv4.js → D7KhJm9U.js} +2 -2
- package/web/app/immutable/chunks/{DAPK9slU.js → D9ScELxf.js} +1 -1
- package/web/app/immutable/chunks/{F7QETuhI.js → DC3ZkLye.js} +1 -1
- package/web/app/immutable/chunks/{BDFJ3z4C.js → DD0At2PN.js} +1 -1
- package/web/app/immutable/chunks/{B_Ngo80M.js → DD6Pkbic.js} +1 -1
- package/web/app/immutable/chunks/{laFenviK.js → DDFSWjQU.js} +3 -3
- package/web/app/immutable/chunks/{DeD2_APR.js → DGjH5-Hx.js} +1 -1
- package/web/app/immutable/chunks/{BmnDHgDT.js → DIFKHzYL.js} +1 -1
- package/web/app/immutable/chunks/{CM-RTisq.js → DIoX_b5x.js} +1 -1
- package/web/app/immutable/chunks/{PSWhBTN5.js → DK77esWJ.js} +1 -1
- package/web/app/immutable/chunks/{DKnyYiOE.js → DL9fM9Z6.js} +1 -1
- package/web/app/immutable/chunks/{B5OVBjIf.js → DNo8L_9b.js} +1 -1
- package/web/app/immutable/chunks/{BR5lR6Td.js → DOL39Ac3.js} +1 -1
- package/web/app/immutable/chunks/{BbANJKYX.js → DOpb_Wa_.js} +1 -1
- package/web/app/immutable/chunks/{DU5u4CoB.js → DPBL52wT.js} +7 -7
- package/web/app/immutable/chunks/{CMieQf0P.js → DQ04s54w.js} +1 -1
- package/web/app/immutable/chunks/{BGgB8Pc0.js → DQ070aDn.js} +2 -2
- package/web/app/immutable/chunks/{Cdv2uRTZ.js → DQayjjKQ.js} +1 -1
- package/web/app/immutable/chunks/{Dz40TuR7.js → DQkyZkjw.js} +1 -1
- package/web/app/immutable/chunks/{JktSJt1s.js → DQpQ_Eis.js} +1 -1
- package/web/app/immutable/chunks/{C9g8CU4z.js → DRbQFCiN.js} +1 -1
- package/web/app/immutable/chunks/{C9129WmZ.js → DSkl9mpQ.js} +1 -1
- package/web/app/immutable/chunks/DTosDNas.js +8 -0
- package/web/app/immutable/chunks/{D4uZwrDX.js → DXJ8guE-.js} +1 -1
- package/web/app/immutable/chunks/{BKAT2tIv.js → DYiKRSyK.js} +1 -1
- package/web/app/immutable/chunks/{Cc8gV_FE.js → DZzZGRg-.js} +1 -1
- package/web/app/immutable/chunks/{BY3DTY8F.js → DauuhR4o.js} +1 -1
- package/web/app/immutable/chunks/{F9nw4iUp.js → DbulPCWG.js} +1 -1
- package/web/app/immutable/chunks/{C6RQmr0V.js → DdMy5hhm.js} +1 -1
- package/web/app/immutable/chunks/{DeMWATch.js → DfYC2vFl.js} +1 -1
- package/web/app/immutable/chunks/{BIY56SBV.js → Dft5YBpv.js} +1 -1
- package/web/app/immutable/chunks/{Cf1Jz9Vb.js → DiD3o6_1.js} +1 -1
- package/web/app/immutable/chunks/{D6eVIgjz.js → Dj-i-4vt.js} +1 -1
- package/web/app/immutable/chunks/{-4iKCYSl.js → Djhs3H6B.js} +1 -1
- package/web/app/immutable/chunks/{pUHkzJ_d.js → Dm08LoPV.js} +1 -1
- package/web/app/immutable/chunks/{B-34RgWF.js → DojlGzur.js} +1 -1
- package/web/app/immutable/chunks/{CJlBFmXK.js → DpTBUsJF.js} +1 -1
- package/web/app/immutable/chunks/{C4lY6YLh.js → DssISSPU.js} +1 -1
- package/web/app/immutable/chunks/{DuXpwSkB.js → DvgbaoNK.js} +1 -1
- package/web/app/immutable/chunks/{BOFk1KrL.js → DvxEHPPT.js} +1 -1
- package/web/app/immutable/chunks/{Bz08MgGK.js → DyfUN8R7.js} +1 -1
- package/web/app/immutable/chunks/{CcDZ8sih.js → DzjRhthn.js} +4 -4
- package/web/app/immutable/chunks/{BCYRUItZ.js → FSpiE1wW.js} +4 -4
- package/web/app/immutable/chunks/{CcFGFqFC.js → FhGlrjm8.js} +1 -1
- package/web/app/immutable/chunks/{ChMhvUux.js → H3_j1RTy.js} +1 -1
- package/web/app/immutable/chunks/{DvDXb3dW.js → HOnA76CN.js} +1 -1
- package/web/app/immutable/chunks/{DoIwXvY5.js → HgUF9JxD.js} +1 -1
- package/web/app/immutable/chunks/{BwqCA_Tg.js → LcC8t7uh.js} +1 -1
- package/web/app/immutable/chunks/{CQ8xUw8b.js → NiM-1eU3.js} +1 -1
- package/web/app/immutable/chunks/{BwixslcF.js → OOZgSySO.js} +1 -1
- package/web/app/immutable/chunks/{BaWkgFPr.js → OduqxoGp.js} +1 -1
- package/web/app/immutable/chunks/{BkBZtLYF.js → PCjNYuXW.js} +1 -1
- package/web/app/immutable/chunks/Pd6GM4gY.js +1 -0
- package/web/app/immutable/chunks/{DrI7rzCm.js → QEDJCahU.js} +1 -1
- package/web/app/immutable/chunks/{CaJjlkv1.js → QLIsYm_0.js} +1 -1
- package/web/app/immutable/chunks/{TKnaMJht.js → QPnNKbqJ.js} +1 -1
- package/web/app/immutable/chunks/{De60mY1u.js → QjTgQQZx.js} +1 -1
- package/web/app/immutable/chunks/{pqiENG4w.js → RykOFORR.js} +1 -1
- package/web/app/immutable/chunks/{DES0UXLU.js → W48e0TcX.js} +1 -1
- package/web/app/immutable/chunks/{Bluyq349.js → Xsgb18SC.js} +1 -1
- package/web/app/immutable/chunks/{CjOA3fQ_.js → YlwMMeOs.js} +1 -1
- package/web/app/immutable/chunks/{DJeS0Z6Z.js → Z0VS8LLQ.js} +1 -1
- package/web/app/immutable/chunks/{Bg8XhRuy.js → dbgkJ9GM.js} +1 -1
- package/web/app/immutable/chunks/{CbQJkQ1_.js → eFMkdoaf.js} +1 -1
- package/web/app/immutable/chunks/{BTRxaITj.js → es3FqSjg.js} +1 -1
- package/web/app/immutable/chunks/{l6-BV5ui.js → j1f7tS2i.js} +1 -1
- package/web/app/immutable/chunks/{bb6KeZoT.js → jvKdDF7D.js} +1 -1
- package/web/app/immutable/chunks/{DLOFCVO4.js → pRcFjb-H.js} +1 -1
- package/web/app/immutable/chunks/{CN1yc9sw.js → rgwCePpO.js} +1 -1
- package/web/app/immutable/chunks/{b7qEBWdv.js → u-Y0Tv7i.js} +1 -1
- package/web/app/immutable/chunks/{Dxitz0gG.js → umDdblid.js} +1 -1
- package/web/app/immutable/chunks/{BhIrT2jr.js → vGBd4whl.js} +2 -2
- package/web/app/immutable/chunks/{gn8kmMF6.js → vKQIfgIp.js} +1 -1
- package/web/app/immutable/chunks/{qk0mFpjO.js → x1zid8su.js} +1 -1
- package/web/app/immutable/chunks/{nvAK9EyO.js → xHA823KN.js} +1 -1
- package/web/app/immutable/chunks/{lN-utS8K.js → xpSH95ot.js} +1 -1
- package/web/app/immutable/chunks/{CU9uaZDq.js → zcEXOR-1.js} +1 -1
- package/web/app/immutable/entry/{app.BvKW_t2N.js → app.DzBvG1_l.js} +2 -2
- package/web/app/immutable/entry/start.CErE1GCU.js +1 -0
- package/web/app/immutable/nodes/{0.BYMSP7Y-.js → 0.C2zst7i8.js} +1 -1
- package/web/app/immutable/nodes/{1.DIEji4Js.js → 1.BIkIikjL.js} +1 -1
- package/web/app/immutable/nodes/{10.DvTvrgji.js → 10.NQQ6RXJ5.js} +1 -1
- package/web/app/immutable/nodes/{14.CJs3OY3_.js → 14.DjgXWnV3.js} +1 -1
- package/web/app/immutable/nodes/{16.DsO7YO_c.js → 16.DIpAzx7I.js} +2 -2
- package/web/app/immutable/nodes/{2.Cht0dQl2.js → 2.D39xDr6a.js} +3 -3
- package/web/app/immutable/nodes/{3.BGeidrSE.js → 3.CXiy3cZ4.js} +1 -1
- package/web/app/immutable/nodes/{4.iguZO2rl.js → 4.Dc4411ZQ.js} +1 -1
- package/web/app/immutable/nodes/{5.BppWO1IB.js → 5.p_n2sq1_.js} +1 -1
- package/web/app/immutable/nodes/{6.ChXOvT3x.js → 6.D6xC5nhC.js} +1 -1
- package/web/app/immutable/nodes/{7.CgsIeK3J.js → 7.DXE6hDOy.js} +1 -1
- package/web/app/immutable/nodes/{8.Bq2NzD4c.js → 8.BU4_235n.js} +11 -11
- package/web/app/immutable/nodes/{9.CvEBRJEV.js → 9.CYdkB-g-.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +8 -8
- package/web/index.html +10 -10
- package/web/app/immutable/assets/0.Racpq4cy.css +0 -1
- package/web/app/immutable/chunks/172GvQgx.js +0 -4
- package/web/app/immutable/chunks/BZXl3la6.js +0 -1
- package/web/app/immutable/chunks/CDuyWy4D.js +0 -3
- package/web/app/immutable/chunks/DNOilvOO.js +0 -8
- package/web/app/immutable/entry/start.CQ7TZDH6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Jt,bq as V,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./COCO5InB.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as W,a7 as Se,aD as t,c9 as f,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./Crs9I2MT.js";import{c as Te}from"./oALOmsvi.js";import{f as z}from"./C5Xi5eLp.js";import"./B7mAnbbv.js";import{e as Fe,L as qt}from"./bjkNeafo.js";import"./BqRJyrRC.js";import"./BUVaYTVI.js";import{k as Ue,G as Ee,N as Oe}from"./172GvQgx.js";import{I as Kt}from"./CjVTzfqV.js";import"./Dck4Okga.js";import{G2 as K,f8 as Vt,v as Be,e0 as Wt,pg as He,sa as Me,FV as qe,n8 as Ke,h0 as Ve}from"./BjFoJgFv.js";import{g as Nt,h as Rt,i as We,s as Ne,b as jt,d as Re,e as je,m as Je}from"./BXGDMgsv.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=V(m,"open",15,!1),H=V(m,"static",7,!1),st=V(m,"title",7),_=V(m,"message",7),k=V(m,"buttons",7),b=V(m,"cancelIndex",7,0),Q=V(m,"onSelect",7);function N(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),W()},get static(){return H()},set static(r=!1){H(r),W()},get title(){return st()},set title(r){st(r),W()},get message(){return _()},set message(r){_(r),W()},get buttons(){return k()},set buttons(r){k(r),W()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),W()},get onSelect(){return Q()},set onSelect(r){Q(r),W()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,R)=>{{let Z=f(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Qe(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),R=B(Y,!0);s(()=>o(R,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),N=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=V(m,"compact",7,!1),w=V(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,R=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Rt(),ut=We(),_t=Ne(),te=jt(),ee=Re(),ae=je(),ne=Je();let bt=kt(Ge(Nt.select(K.state))),St=kt(!1),tt=kt(""),gt=kt(!1);const p=f(()=>Me(t(bt))),wt=f(()=>t(gt)||t(p)===H()&&st()===!1),Ct=f(()=>t(p)?Ke(t(p)):null),re=f(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&jt.select(e)&&K.dispatch(Vt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(Ve(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Wt()),q(gt,!0))}function oe(){q(gt,!1)}function le(){b()||K.dispatch(Wt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=f(()=>T()?"sm":"xl"),ft=f(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),W()},get onCancel(){return w()},set onCancel(c){w(c),W()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var g=x();s(G=>o(g,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,g)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=f(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var g=l(u,2),G=E(g);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=f(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(g),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var g=l(u,2),G=B(g,!0),S=l(g,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},ge=e=>{var a=sa(),u=yt(a),g=E(u);qt(g,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(g,2);{let d=f(()=>!_()),$=f(()=>!t(p)||void 0),y=f(()=>t(p)?Y:`${Y} ${R}`);Kt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=f(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=f(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(gt)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=f(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=f(()=>!_());z(L,{variant:"ghost",get size(){return t(ft)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(ge,-1)})}var Ut=l(Ft,2);{var fe=e=>{var a=oa(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),g=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Vt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(g,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(fe):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
|
|
1
|
+
import{t as Jt,bq as V,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./COCO5InB.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as W,a7 as Se,aD as t,c9 as f,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./Crs9I2MT.js";import{c as Te}from"./oALOmsvi.js";import{f as z}from"./C5Xi5eLp.js";import"./B7mAnbbv.js";import{e as Fe,L as qt}from"./bjkNeafo.js";import"./BqRJyrRC.js";import"./BUVaYTVI.js";import{k as Ue,G as Ee,N as Oe}from"./Bpruhzz0.js";import{I as Kt}from"./CjVTzfqV.js";import"./Dck4Okga.js";import{G2 as K,f8 as Vt,v as Be,e0 as Wt,pg as He,sa as Me,FV as qe,n8 as Ke,h0 as Ve}from"./BjFoJgFv.js";import{g as Nt,h as Rt,i as We,s as Ne,b as jt,d as Re,e as je,m as Je}from"./BXGDMgsv.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=V(m,"open",15,!1),H=V(m,"static",7,!1),st=V(m,"title",7),_=V(m,"message",7),k=V(m,"buttons",7),b=V(m,"cancelIndex",7,0),Q=V(m,"onSelect",7);function N(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),W()},get static(){return H()},set static(r=!1){H(r),W()},get title(){return st()},set title(r){st(r),W()},get message(){return _()},set message(r){_(r),W()},get buttons(){return k()},set buttons(r){k(r),W()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),W()},get onSelect(){return Q()},set onSelect(r){Q(r),W()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,R)=>{{let Z=f(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Qe(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),R=B(Y,!0);s(()=>o(R,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),N=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=V(m,"compact",7,!1),w=V(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,R=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Rt(),ut=We(),_t=Ne(),te=jt(),ee=Re(),ae=je(),ne=Je();let bt=kt(Ge(Nt.select(K.state))),St=kt(!1),tt=kt(""),gt=kt(!1);const p=f(()=>Me(t(bt))),wt=f(()=>t(gt)||t(p)===H()&&st()===!1),Ct=f(()=>t(p)?Ke(t(p)):null),re=f(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&jt.select(e)&&K.dispatch(Vt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(Ve(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Wt()),q(gt,!0))}function oe(){q(gt,!1)}function le(){b()||K.dispatch(Wt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=f(()=>T()?"sm":"xl"),ft=f(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),W()},get onCancel(){return w()},set onCancel(c){w(c),W()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var g=x();s(G=>o(g,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,g)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=f(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var g=l(u,2),G=E(g);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=f(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(g),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var g=l(u,2),G=B(g,!0),S=l(g,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},ge=e=>{var a=sa(),u=yt(a),g=E(u);qt(g,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(g,2);{let d=f(()=>!_()),$=f(()=>!t(p)||void 0),y=f(()=>t(p)?Y:`${Y} ${R}`);Kt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=f(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=f(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(gt)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=f(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=f(()=>!_());z(L,{variant:"ghost",get size(){return t(ft)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(ge,-1)})}var Ut=l(Ft,2);{var fe=e=>{var a=oa(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),g=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Vt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(g,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(fe):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as vt,bq as m,bo as g,a_ as W,by as ht,b as _t,bs as Un,bu as or,bt as dl,br as aa}from"./COCO5InB.js";import{bs as yt,a5 as D,bA as E,bS as R,bl as ie,ay as xe,aD as e,b_ as B,bO as J,W as f,c9 as s,bn as bt,bV as me,bH as z,aA as p,be as br,b$ as Vr,aB as T,bj as qn,c0 as In,c6 as cl,bo as xa,br as Xr,ca as Jt,bf as nr,a7 as Et,am as Mn,ax as Pn,bk as za,ai as sa,aj as jr,aw as Wa,bz as Vo,cb as Xa,c5 as Sa,aC as vr,cd as Ys,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as ne,a as un,j as Ja,l as oa,h as Dr,d as ft,f as Vt,i as Fn,I as fl,c as ia,p as gl,o as ml,C as pl}from"./Crs9I2MT.js";import{H as Kt,j as vl,s as Ko,p as $s,y as hl,u as _l,t as Mr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as yl}from"./Bqoyy9yx.js";import{b as fn}from"./D2g8BuR1.js";import{bH as Go,j as Ra,a2 as Ss,ah as Ua,E as bl,ap as Na,aG as wl,aJ as eo}from"./
|
|
1
|
+
var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as vt,bq as m,bo as g,a_ as W,by as ht,b as _t,bs as Un,bu as or,bt as dl,br as aa}from"./COCO5InB.js";import{bs as yt,a5 as D,bA as E,bS as R,bl as ie,ay as xe,aD as e,b_ as B,bO as J,W as f,c9 as s,bn as bt,bV as me,bH as z,aA as p,be as br,b$ as Vr,aB as T,bj as qn,c0 as In,c6 as cl,bo as xa,br as Xr,ca as Jt,bf as nr,a7 as Et,am as Mn,ax as Pn,bk as za,ai as sa,aj as jr,aw as Wa,bz as Vo,cb as Xa,c5 as Sa,aC as vr,cd as Ys,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as ne,a as un,j as Ja,l as oa,h as Dr,d as ft,f as Vt,i as Fn,I as fl,c as ia,p as gl,o as ml,C as pl}from"./Crs9I2MT.js";import{H as Kt,j as vl,s as Ko,p as $s,y as hl,u as _l,t as Mr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as yl}from"./Bqoyy9yx.js";import{b as fn}from"./D2g8BuR1.js";import{bH as Go,j as Ra,a2 as Ss,ah as Ua,E as bl,ap as Na,aG as wl,aJ as eo}from"./Dj-i-4vt.js";import{t as Gn,q as xl,P as kl}from"./1jz3AJ7K.js";import{F as Ht,cz as Ds,ar as Qo,aU as Zo,aG as Il,c0 as Sl,a3 as Al,a4 as ja,aJ as Tl,cB as Cl,cA as Ml,a2 as Ya,at as Bs,ag as Pl,bn as Rl,aO as Nl,aS as El,bC as Ll,al as Ol,cr as ql,az as to,bb as kn,aL as ro,bU as os,aE as Aa,cK as $l,c2 as Dl,bi as Bl,b as Fl,cf as zl,ad as Wl,b5 as is,ch as la,cu as Hl,cU as Fs,X as Xo,a as Ul}from"./BDq7EC2K.js";import{c0 as Ea,aA as ba,cL as Jo,cN as $n,bR as es,i as jl,cF as Yo,cK as ts,cJ as ei,cH as ti,f as Tn,a9 as Vl,aa as Kl,av as Gl,r as Ql,J as Zl,V as no,u as ri,dG as Xl,as as Jl,j as Yl,t as ls,m as ed,N as td,n as rd,p as ni,q as ai,a5 as nd,R as ad,Q as sd,$ as od,k as id,cO as ld,a3 as dd,C as cd,w as ud,U as ao}from"./DUT4V6mb.js";import{G2 as lt,nv as fd,rA as La,mm as so,tf as si,th as oi,q1 as gd,vW as Va,L as md,sA as ii,mh as li,b9 as Oa,vX as pd,oU as vd,re as hd,t8 as di,mf as _d,lp as yd,g as bd,wn as wd,wk as xd,wm as kd}from"./BjFoJgFv.js";import{f as pt,am as zs,bs as Id,bw as ds,bK as Sd}from"./C5Xi5eLp.js";import{a4 as Ad,x as cs,a1 as Td,O as us,V as Cd,$ as Md,j as Pd,o as da,M as ea,p as Rd,F as Nd,u as Ed,s as Ld,L as fs,J as Od,y as qd,K as $d,_ as ma,Q as Ta,N as oo,m as io,E as Dd,c as gs,B as lo,z as Bd,v as co,H as pa,P as Fd,G as zd,i as Wd,R as Hd,T as Ud,A as jd,g as Vd,b as Kd,D as Gd,f as Qd,e as Zd,a as Xd,C as Jd,h as Yd,U as ci,a5 as ec,t as tc,k as rc,d as uo}from"./CXsEQ4Fe.js";import{h as nc}from"./CaQ_vubD.js";import{b as ms}from"./C563feV7.js";import{M as ca,C as Ca}from"./DzjRhthn.js";import{C as fo}from"./BJwk8LqM.js";import"./Cui_1F-9.js";import{P as ac}from"./1Xl1_j69.js";import"./DROi8p_h.js";import{c as ui}from"./ChTqQfQN.js";import{s as Rn}from"./Dck4Okga.js";import{S as sc}from"./D9ScELxf.js";import{D as go,M as oc}from"./CQcnUt15.js";import{b as ic,s as Hn,c as Ka}from"./BME8wn-Y.js";import{O as qa,y as ps,E as vs,B as hs,N as lc,m as dc,l as cc,d as Ga,C as mo,f as uc,e as fc,g as gc}from"./DK77esWJ.js";import{j as fi,g as mc,s as po}from"./CjVTzfqV.js";import{f as pc}from"./BJzHxIyr.js";import{c as an}from"./Ck11Hn8r.js";import{A as vc,z as hc,c as _c}from"./bjkNeafo.js";import{o as _s,n as ys,t as vo,h as yc}from"./eFMkdoaf.js";import"./BqRJyrRC.js";import{ay as On,t as bc}from"./BUVaYTVI.js";import"./B7mAnbbv.js";import{R as As,C as rs,n as wc,e as xc,d as kc,f as ho,P as Ic}from"./CJvhopKt.js";import"./BlJs0v1V.js";import{aU as Ir,A as $a,af as gi,n as mi,e as Sc,I as Ac,R as Tc,an as Cc,b as Mc,X as Pc}from"./FSpiE1wW.js";import{a0 as _o,N as ha,s as pi,k as Rc}from"./Bpruhzz0.js";import{B as Nc}from"./BzoF1_ij.js";import{r as Ec,e as Lc,o as Oc}from"./BCPDBuLJ.js";import{o as vi}from"./B781x4pz.js";import{g as Ws}from"./-fWJi05-.js";import{a as qc,M as $c}from"./BY3Ptqbg.js";import{c as ua}from"./oALOmsvi.js";import{A as Dc}from"./DIoX_b5x.js";import{f as Bc,d as Fc}from"./DYiKRSyK.js";import{E as zc,t as Wc,z as Hc,r as yo,y as Uc,n as jc}from"./DTosDNas.js";import{b as Vc}from"./BONnxsQv.js";import{B as Kc}from"./Cdhgfy6h.js";import{S as Gc}from"./ulh-TYZ7.js";import{u as Qc,a as Zc,c as bo,S as Xc}from"./D2AmAQEr.js";import{T as Ts}from"./_cwefpRI.js";import{a as Jc}from"./3QmaYnff.js";import{b as wo}from"./C3hWtekV.js";import{a4 as Yc}from"./D62E6eA-.js";import{c as eu}from"./Cae3uxuh.js";function tu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=zc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||a,sendNow:(o||a)&&!hi(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function hi(r){return r.messageMetadata?.type==="script_monitor_wake"&&typeof r.messageMetadata.monitorId=="string"}function xo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!hi(r)}const kh="pl-3.5! pr-2!";var ru=T("<!> ",1),nu=T('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function _i(r,t){if(new.target)return vt({component:_i,...r});yt(t,!0);let n=m(t,"name",7),a=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=me(!1);function c(){navigator.clipboard.writeText(i()),z(d,!0),setTimeout(()=>{z(d,!1)},2e3)}function y(){o()?.({name:n(),description:a(),content:i()})}var _={get name(){return n()},set name(U){n(U),p()},get description(){return a()},set description(U){a(U),p()},get content(){return i()},set content(U){i(U),p()},get onUseScript(){return o()},set onUseScript(U){o(U),p()},$set:ht,$on:(U,oe)=>_t(t,U,oe)},b=nu(),S=D(b),w=D(S),G=D(w),x=D(G);Ht(x,{get icon(){return Ds},size:"sm"}),E(G);var L=R(G,2),K=ie(L,!0);E(w);var Q=R(w,2),N=D(Q);pt(N,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(U,oe)=>{var fe=ru(),Ie=xe(fe);{let Ee=s(()=>e(d)?Qo:Zo);Ht(Ie,{get icon(){return e(Ee)},class:"mr-1"})}var pe=R(Ie);B(Ee=>J(pe,` ${Ee??""}`),[()=>e(d)?g.chat_shared_copied_label():g.chat_shared_copy_label()]),f(U,fe)},$$slots:{default:!0}});var P=R(N,2);{var k=U=>{pt(U,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(oe,fe)=>{br();var Ie=Vr();B(pe=>J(Ie,pe),[()=>g.chat_setupScriptCard_useScript_label()]),f(oe,Ie)},$$slots:{default:!0}})};W(P,U=>{o()&&U(k)})}E(Q),E(S);var Y=R(S,2),A=ie(Y,!0),C=R(Y,2),Me=ie(C,!0);return E(b),B(()=>{J(K,n()),J(A,a()),J(Me,i())}),f(r,b),bt(_)}const pr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class au{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);i.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const o=t.indexOf("🤖"),d=t.substring(o+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
|
|
3
3
|
`){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return i}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const i=t.substring(0,t.indexOf(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as p}from"./D62E6eA-.js";import{Y as s,X as l}from"./
|
|
1
|
+
import{w as p}from"./D62E6eA-.js";import{Y as s,X as l}from"./6gxnLEJP.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./CqTutsn0.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as rr}from"./DKnyYiOE.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"./DU5u4CoB.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./4LCvEsVS.js";import{c3 as Kt,g as B,h as xr}from"./BHwB2t2J.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"./DL9fM9Z6.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"./DPBL52wT.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./BfnrA5Ab.js";import{c3 as Kt,g as B,h as xr}from"./CQcnUt15.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,4 +1,4 @@
|
|
|
1
|
-
import{e as Ie}from"./4LCvEsVS.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./DU5u4CoB.js";import{g as N,c3 as te}from"./BHwB2t2J.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{e as Ie}from"./BfnrA5Ab.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./DPBL52wT.js";import{g as N,c3 as te}from"./CQcnUt15.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+L.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error on line "+(vt+1)+": Unexpected "+(B==ue?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError($t,{text:L.match,token:this.terminals_[B]||B,line:L.yylineno,loc:Gt,expected:Yt})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+B);switch(F[0]){case 1:E.push(B),D.push(L.yytext),o.push(L.yylloc),E.push(F[1]),B=null,ce=L.yyleng,p=L.yytext,vt=L.yylineno,Gt=L.yylloc;break;case 2:if(z=this.productions_[F[1]][1],wt.$=D[D.length-z],wt._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Le&&(wt._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Zt=this.performAction.apply(wt,[p,ce,vt,Et.yy,F[1],D,o].concat(Ae)),typeof Zt<"u")return Zt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[F[1]][0]),D.push(wt.$),o.push(wt._$),de=Nt[E[E.length-2]][E[E.length-1]],E.push(de);break;case 3:return!0}}return!0},"parse"),"parse")},De=(function(){var bt={EOF:1,parseError:d(N(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,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:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G2 as s,ht as a,kY as S,mu as O,l9 as m}from"./BjFoJgFv.js";import{x as f}from"./
|
|
1
|
+
import{G2 as s,ht as a,kY as S,mu as O,l9 as m}from"./BjFoJgFv.js";import{x as f}from"./BqJHaeQw.js";import{dr as d,aS as k,dz as b}from"./DUT4V6mb.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>f((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),z=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?O(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),U=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),V=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),Y=s.createSelector((t,e,r)=>{const c=u.select(t,e,r);return!!c&&!f(c.runtime?.status)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending}),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{U as selectAllWorkspaceScriptEntries,Y as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,z as selectScriptOutput,A as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,V as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./
|
|
1
|
+
import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./Cae3uxuh.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./COCO5InB.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./Dck4Okga.js";import{c as L,f as w}from"./Crs9I2MT.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./bjkNeafo.js";import{G2 as ne,qY as oe,bb as ie}from"./BjFoJgFv.js";import{aU as de}from"./
|
|
1
|
+
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./COCO5InB.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./Dck4Okga.js";import{c as L,f as w}from"./Crs9I2MT.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./bjkNeafo.js";import{G2 as ne,qY as oe,bb as ie}from"./BjFoJgFv.js";import{aU as de}from"./FSpiE1wW.js";import{m as ce}from"./DY0zw3Os.js";import{bs as le}from"./BUVaYTVI.js";import{M as ue}from"./CJvhopKt.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=G('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=G("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=P(e,me);const m=ve(),k=H(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var Y={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);q(J,b),W(_),S(t,_)};O(K,t=>{b()&&t(j)})}var F=X(K,2);return q(F,()=>r()??B),W(h),U(h,t=>i(t),()=>i()),S(o,h),E(Y)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=G("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=P(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>w("type-body min-w-0",a()?"p-0":w(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??B),W(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ge(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=H(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return I({component:we,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=Q();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};O(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Ge as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./COCO5InB.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as $e,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./Crs9I2MT.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as jo,aB as bn}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./COCO5InB.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as $e,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./Crs9I2MT.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as jo,aB as bn}from"./DDFSWjQU.js";import{F as vi,c0 as $o,bd as qo,au as Ko,at as Xo}from"./BDq7EC2K.js";import{f as Di}from"./C5Xi5eLp.js";import{f as Yo}from"./CaQ_vubD.js";import{d as Qo}from"./BlJs0v1V.js";import{P as Jo}from"./FSpiE1wW.js";import{t as Sn}from"./Bqoyy9yx.js";class Zo extends Ao{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Ft,bq as G,bo as u,a_ as W,by as Ot,b as Gt}from"./COCO5InB.js";import{bs as Rt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as zt,aA as R,c9 as M,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Ue,ay as U,ai as rr,aj as ar,bf as sr}from"./B8o4lNgr.js";import{I as or,k as Fe,d as gt,h as Xe,s as nr}from"./Crs9I2MT.js";import{c as Ee}from"./oALOmsvi.js";import{H as Oe,C as Ze,h as $t}from"./Bqoyy9yx.js";import{b as xt}from"./D2g8BuR1.js";import{F as Te,cF as ir,ar as lr,cz as bt,cP as Pt,c4 as cr}from"./BDq7EC2K.js";import{f as we}from"./C5Xi5eLp.js";import{M as dr}from"./1jz3AJ7K.js";import{r as nt}from"./BCYRUItZ.js";import{e as pr,a2 as _e}from"./172GvQgx.js";import{e as Ct,f as Et,d as Tt,P as At}from"./CJvhopKt.js";import{C as ht}from"./DjZWf4AT.js";import{c as ur}from"./ChTqQfQN.js";import"./Dck4Okga.js";import{w as vr}from"./D62E6eA-.js";import{G2 as _r}from"./BjFoJgFv.js";import{dv as mr}from"./DUT4V6mb.js";import{S as et,k as fr,a as jt}from"./CnT2T-Bp.js";import{R as qe,c as it,m as gr,bH as tt}from"./Dh52so4o.js";import"./9JjZRepm.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ft({component:St,...He});Rt(P,!0);const at=ur("SetupScriptAgent");let Ae=G(P,"repoPath",7),Ge=G(P,"onScriptGenerated",7),Re=G(P,"onClose",7),ze=K(rt(crypto.randomUUID())),F=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(F,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(F,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(F,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1)}}function fe(s){Ge()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),R()},get onScriptGenerated(){return Ge()},set onScriptGenerated(s){Ge(s),R()},get onClose(){return Re()},set onClose(s){Re(s),R()},$set:Ot,$on:(s,v)=>Gt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),De=c(be);pr(De,{variant:"standard",get agentId(){return e(ze)}});var Le=n(De,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(F)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=M(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return Re()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var z=br(),Q=S(z,!0);g(()=>m(Q,e(ae))),o(B,z)},se=B=>{var z=hr(),Q=c(z);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),Me=S(Se,!0);l(z),g(ye=>m(Me,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,z)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(F))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),z=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),Me=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(z,e(ie).name),m(Me,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(F)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),zt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ut=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Ur=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Fr=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Gr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Rr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),zr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Dr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),Mr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ft({component:Kr,...He});Rt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=M(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=M(()=>e(st)===a().id),$=M(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Dt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=U($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Oe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var D=n(x,2),ue=c(D);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=M(()=>!F());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(D),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=U($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),D=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return F()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=U(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Ue(),L=U(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Ue(),pt=U(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=U(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=U(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&F()?y(I):y(O,-1)})}g(y=>{Fe(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(D,e(Me))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Fe(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Ge=t=>{var a=Fr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return F()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Oe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=M(()=>!F());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=U(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&F()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===qe),Z=M(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var D=n(x,2);{var ue=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===B),Z=M(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(z).name,e(z).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(D,d=>{e(z)&&d(ue)})}var ve=n(D,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=M(()=>e(s)===`template-${e(p).id}`),X=M(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Ur(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},Re=t=>{var a=Rr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Ue(),k=U(x);Ee(k,()=>At,(D,ue)=>{ue(D,{delayDuration:100,children:(ve,I)=>{var O=Ue(),y=U(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=U(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Gr(),ne=U(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},ze=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=zr(),_=U($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),Oe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Oe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Dr(),_=U($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Fe(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let F=G(P,"repoPath",7,""),ae=G(P,"repositoryKey",7),me=G(P,"githubUrl",7,null),ie=G(P,"projectType",7,void 0),le=G(P,"repoConfigScript",7,null),C=G(P,"value",15,""),fe=G(P,"expanded",15,!1),ge=G(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=G(P,"scriptNameSource",15,"named"),xe=G(P,"isCustomScript",15,!1),be=G(P,"compact",7,!1),De=G(P,"triggerClass",7,""),Le=G(P,"contentOnly",7,!1),je=G(P,"contentClass",7,""),he=G(P,"presentation",7,"editor"),de=G(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",z=M(()=>{const t=ae()??F(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=M(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(z)&&t.set(B,{content:e(z).content,label:e(z).name,source:e(z).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const Me=M(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=M(()=>e(v)||!e(s)?"custom":e(s)),Je=M(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(z)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=M(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Dt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??F();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(z);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&<(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var Mt={get repoPath(){return F()},set repoPath(t=""){F(t),R()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),R()},get githubUrl(){return me()},set githubUrl(t=null){me(t),R()},get projectType(){return ie()},set projectType(t=void 0){ie(t),R()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),R()},get value(){return C()},set value(t=""){C(t),R()},get expanded(){return fe()},set expanded(t=!1){fe(t),R()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),R()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),R()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),R()},get compact(){return be()},set compact(t=!1){be(t),R()},get triggerClass(){return De()},set triggerClass(t=""){De(t),R()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),R()},get contentClass(){return je()},set contentClass(t=""){je(t),R()},get presentation(){return he()},set presentation(t="editor"){he(t),R()},get onchange(){return de()},set onchange(t){de(t),R()},$set:Ot,$on:(t,a)=>Gt(P,t,a)},yt=Ue(),Wt=U(yt);{var qt=t=>{var a=Ue(),w=U(a);{var j=T=>{var h=Ue(),$=U(h);{var _=x=>{var k=Ke(),D=c(k);Ae(D),l(k),g(()=>Fe(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Fe(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Fe(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Oe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=U(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${De()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=U(x);Te(k,{get icon(){return bt},size:"xs"});var D=n(k,2),ue=S(D,!0),ve=n(D,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(Me))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=Mr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Fe(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),zt(Mt)}rr(["keydown"]);export{Kr as default};
|
|
1
|
+
import{t as Ft,bq as G,bo as u,a_ as W,by as Ot,b as Gt}from"./COCO5InB.js";import{bs as Rt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as zt,aA as R,c9 as M,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Ue,ay as U,ai as rr,aj as ar,bf as sr}from"./B8o4lNgr.js";import{I as or,k as Fe,d as gt,h as Xe,s as nr}from"./Crs9I2MT.js";import{c as Ee}from"./oALOmsvi.js";import{H as Oe,C as Ze,h as $t}from"./Bqoyy9yx.js";import{b as xt}from"./D2g8BuR1.js";import{F as Te,cF as ir,ar as lr,cz as bt,cP as Pt,c4 as cr}from"./BDq7EC2K.js";import{f as we}from"./C5Xi5eLp.js";import{M as dr}from"./1jz3AJ7K.js";import{r as nt}from"./FSpiE1wW.js";import{e as pr,a2 as _e}from"./Bpruhzz0.js";import{e as Ct,f as Et,d as Tt,P as At}from"./CJvhopKt.js";import{C as ht}from"./DjZWf4AT.js";import{c as ur}from"./ChTqQfQN.js";import"./Dck4Okga.js";import{w as vr}from"./D62E6eA-.js";import{G2 as _r}from"./BjFoJgFv.js";import{dv as mr}from"./DUT4V6mb.js";import{S as et,k as fr,a as jt}from"./Cix_mnLj.js";import{R as qe,c as it,m as gr,bH as tt}from"./6gxnLEJP.js";import"./BqJHaeQw.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ft({component:St,...He});Rt(P,!0);const at=ur("SetupScriptAgent");let Ae=G(P,"repoPath",7),Ge=G(P,"onScriptGenerated",7),Re=G(P,"onClose",7),ze=K(rt(crypto.randomUUID())),F=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(F,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(F,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(F,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1)}}function fe(s){Ge()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),R()},get onScriptGenerated(){return Ge()},set onScriptGenerated(s){Ge(s),R()},get onClose(){return Re()},set onClose(s){Re(s),R()},$set:Ot,$on:(s,v)=>Gt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),De=c(be);pr(De,{variant:"standard",get agentId(){return e(ze)}});var Le=n(De,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(F)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=M(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return Re()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var z=br(),Q=S(z,!0);g(()=>m(Q,e(ae))),o(B,z)},se=B=>{var z=hr(),Q=c(z);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),Me=S(Se,!0);l(z),g(ye=>m(Me,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,z)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(F))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),z=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),Me=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(z,e(ie).name),m(Me,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(F)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),zt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ut=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Ur=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Fr=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Gr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Rr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),zr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Dr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),Mr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ft({component:Kr,...He});Rt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=M(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=M(()=>e(st)===a().id),$=M(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Dt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=U($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Oe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var D=n(x,2),ue=c(D);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=M(()=>!F());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(D),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=U($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),D=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return F()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=U(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Ue(),L=U(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Ue(),pt=U(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=U(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=U(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&F()?y(I):y(O,-1)})}g(y=>{Fe(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(D,e(Me))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Fe(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Ge=t=>{var a=Fr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return F()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Oe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=M(()=>!F());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=U(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&F()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===qe),Z=M(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var D=n(x,2);{var ue=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===B),Z=M(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(z).name,e(z).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(D,d=>{e(z)&&d(ue)})}var ve=n(D,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=M(()=>e(s)===`template-${e(p).id}`),X=M(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Ur(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},Re=t=>{var a=Rr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Ue(),k=U(x);Ee(k,()=>At,(D,ue)=>{ue(D,{delayDuration:100,children:(ve,I)=>{var O=Ue(),y=U(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=U(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Gr(),ne=U(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},ze=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=zr(),_=U($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),Oe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Oe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Dr(),_=U($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Fe(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let F=G(P,"repoPath",7,""),ae=G(P,"repositoryKey",7),me=G(P,"githubUrl",7,null),ie=G(P,"projectType",7,void 0),le=G(P,"repoConfigScript",7,null),C=G(P,"value",15,""),fe=G(P,"expanded",15,!1),ge=G(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=G(P,"scriptNameSource",15,"named"),xe=G(P,"isCustomScript",15,!1),be=G(P,"compact",7,!1),De=G(P,"triggerClass",7,""),Le=G(P,"contentOnly",7,!1),je=G(P,"contentClass",7,""),he=G(P,"presentation",7,"editor"),de=G(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",z=M(()=>{const t=ae()??F(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=M(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(z)&&t.set(B,{content:e(z).content,label:e(z).name,source:e(z).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const Me=M(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=M(()=>e(v)||!e(s)?"custom":e(s)),Je=M(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(z)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=M(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Dt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??F();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(z);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&<(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var Mt={get repoPath(){return F()},set repoPath(t=""){F(t),R()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),R()},get githubUrl(){return me()},set githubUrl(t=null){me(t),R()},get projectType(){return ie()},set projectType(t=void 0){ie(t),R()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),R()},get value(){return C()},set value(t=""){C(t),R()},get expanded(){return fe()},set expanded(t=!1){fe(t),R()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),R()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),R()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),R()},get compact(){return be()},set compact(t=!1){be(t),R()},get triggerClass(){return De()},set triggerClass(t=""){De(t),R()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),R()},get contentClass(){return je()},set contentClass(t=""){je(t),R()},get presentation(){return he()},set presentation(t="editor"){he(t),R()},get onchange(){return de()},set onchange(t){de(t),R()},$set:Ot,$on:(t,a)=>Gt(P,t,a)},yt=Ue(),Wt=U(yt);{var qt=t=>{var a=Ue(),w=U(a);{var j=T=>{var h=Ue(),$=U(h);{var _=x=>{var k=Ke(),D=c(k);Ae(D),l(k),g(()=>Fe(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Fe(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Fe(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Oe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=U(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${De()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=U(x);Te(k,{get icon(){return bt},size:"xs"});var D=n(k,2),ue=S(D,!0),ve=n(D,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(Me))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=Mr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Fe(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),zt(Mt)}rr(["keydown"]);export{Kr as default};
|