@bkm016/basalt 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -11
- package/{chunk-y648fzx0.js → chunk-0039s4jt.js} +3 -3
- package/{chunk-rmj5b73e.js → chunk-053vb71h.js} +1 -1
- package/{chunk-whvj83b7.js → chunk-063vbmtp.js} +2 -2
- package/{chunk-7tbya5b5.js → chunk-0javrjcm.js} +22 -22
- package/{chunk-y7nma9rk.js → chunk-10p3mb40.js} +2 -2
- package/{chunk-jk25nt60.js → chunk-39vwrg8n.js} +2 -2
- package/chunk-3k627vf2.js +3 -0
- package/{chunk-q7t30zz2.js → chunk-6kdgk70p.js} +5 -5
- package/{chunk-3x94302m.js → chunk-6ptv4g5e.js} +3 -3
- package/chunk-75434aay.js +2 -0
- package/{chunk-2zp1mv3q.js → chunk-7hr6zw2m.js} +1 -1
- package/{chunk-g2t6t8fk.js → chunk-7jezts2n.js} +2 -2
- package/{chunk-y58ygzn9.js → chunk-818nd6s1.js} +3 -3
- package/{chunk-k23t7vhs.js → chunk-8gw5bvh3.js} +5 -5
- package/{chunk-vv7fp27r.js → chunk-8mezk0cb.js} +2 -2
- package/{chunk-zggzfa7j.js → chunk-8saewt61.js} +2 -2
- package/{chunk-362g64pd.js → chunk-8wj32837.js} +1 -1
- package/{chunk-fjtvjrkg.js → chunk-8wv5t0w6.js} +5 -5
- package/{chunk-vk1gxk1t.js → chunk-8x21n7y9.js} +1 -1
- package/chunk-a0c989ky.js +2 -0
- package/{chunk-4w17tzp5.js → chunk-a5apjjcn.js} +12 -12
- package/chunk-a81p46j7.js +2 -0
- package/chunk-agsfy9w7.js +2 -0
- package/{chunk-fw2bpqmw.js → chunk-arcqjt91.js} +1 -1
- package/chunk-bdy4jksd.js +2 -0
- package/{chunk-qe0teyn1.js → chunk-benrzwea.js} +1 -1
- package/{chunk-0y7ne3d0.js → chunk-bwawt15q.js} +2 -2
- package/{chunk-pxsrqrd0.js → chunk-c4qr1f41.js} +2 -2
- package/{chunk-981f9dw8.js → chunk-c7rcw9fb.js} +6 -6
- package/{chunk-cjc90f84.js → chunk-ca982n62.js} +3 -3
- package/chunk-d20p02ny.js +2 -0
- package/{chunk-97rzj7f6.js → chunk-d6p2hgxh.js} +1 -1
- package/{chunk-k6w6y71k.js → chunk-dnx91jrd.js} +2 -2
- package/{chunk-8d46jtbj.js → chunk-dpz4hwqb.js} +2 -2
- package/{chunk-aky4tztg.js → chunk-ebpyvs1d.js} +2 -2
- package/{chunk-m40gxwq4.js → chunk-ecf896fz.js} +3 -3
- package/{chunk-pjyn2s97.js → chunk-ejsneb6f.js} +1 -1
- package/{chunk-pbcy6zdt.js → chunk-ey15ye2h.js} +1 -1
- package/{chunk-kp22kaez.js → chunk-f156y565.js} +2 -2
- package/{chunk-9rmqgc3c.js → chunk-f544p9rh.js} +15 -15
- package/chunk-fmq3zwzk.js +2 -0
- package/{chunk-em187cy3.js → chunk-fx7f4m3c.js} +2 -2
- package/{chunk-r7fpkb49.js → chunk-g0t9c3gv.js} +1 -1
- package/{chunk-mvfsxdx6.js → chunk-gv7wqkey.js} +10 -10
- package/chunk-hksqjts3.js +3884 -0
- package/{chunk-ztsjgssj.js → chunk-j7yvh0ae.js} +1 -1
- package/chunk-kns4kv7b.js +3 -0
- package/{chunk-nmca5h6m.js → chunk-n85qs7cs.js} +1 -1
- package/{chunk-8wc8qdx8.js → chunk-n981vx1t.js} +6 -6
- package/{chunk-3ct2tkr8.js → chunk-npez1492.js} +2 -2
- package/{chunk-t6zs4kw0.js → chunk-peja51xv.js} +2 -2
- package/{chunk-r0scgfwx.js → chunk-pg5nkf1y.js} +2 -2
- package/{chunk-7afmgncg.js → chunk-prgm07j4.js} +1 -1
- package/{chunk-jwdb0ccj.js → chunk-q9dd6fhj.js} +3 -3
- package/{chunk-ykens1hy.js → chunk-r8vvcp6c.js} +1 -1
- package/chunk-rfb85nj7.js +2 -0
- package/{chunk-ev6yvy5y.js → chunk-rfdt992v.js} +15 -15
- package/{chunk-xfvvh1s5.js → chunk-s6dejhfj.js} +1 -1
- package/{chunk-xh3vr5vz.js → chunk-s7skpgm2.js} +1 -1
- package/chunk-tgfbtehh.js +480 -0
- package/{chunk-m8vkwdgr.js → chunk-w67dvqtb.js} +4 -4
- package/{chunk-f3xadvab.js → chunk-whj87h4r.js} +2 -2
- package/{chunk-2hbfk5xd.js → chunk-wnzvnskb.js} +2 -2
- package/{chunk-vexrrw1b.js → chunk-xtq1xpq0.js} +2 -2
- package/{chunk-1vd0f74z.js → chunk-y8dkfpmj.js} +5 -5
- package/{chunk-shadcb9z.js → chunk-z02sj1je.js} +2 -2
- package/{chunk-akr0a8nc.js → chunk-zxkq9m8e.js} +1 -1
- package/compiled.js +12 -12
- package/package.json +1 -1
- package/ui-test-worker.js +32 -32
- package/web/{chunk-t4c8xavd.js → chunk-03dmzvaq.js} +7 -7
- package/web/{chunk-n8sky2q6.js → chunk-07agqp8h.js} +1 -1
- package/web/chunk-0fgaepwm.js +3 -0
- package/web/chunk-0gg00f86.js +292 -0
- package/web/chunk-0pecj6d7.js +1 -0
- package/web/{chunk-ts7zrf5b.js → chunk-0whceqes.js} +2 -2
- package/web/chunk-0wt1dgny.js +1 -0
- package/web/{chunk-sfg2wkhe.js → chunk-12xxh71x.js} +6 -6
- package/web/chunk-1ves7sq5.js +1 -0
- package/web/chunk-1yj79b48.js +1 -0
- package/web/chunk-296hgy6k.js +370 -0
- package/web/{chunk-f4tacm06.js → chunk-2bmq1whf.js} +1 -1
- package/web/chunk-2wqxhqr9.js +1 -0
- package/web/{chunk-2j4m0bh1.js → chunk-30b33r2w.js} +2 -2
- package/web/{chunk-sspfxp5e.js → chunk-30zfw7zg.js} +1 -1
- package/web/chunk-39ng8zwx.css +1 -0
- package/web/chunk-3de552rg.js +70 -0
- package/web/chunk-3nbzj48p.js +36 -0
- package/web/{chunk-0z0y25zf.js → chunk-3zebd9fq.js} +3 -3
- package/web/chunk-4r1n98zx.js +2 -0
- package/web/chunk-59678wmg.js +1 -0
- package/web/{chunk-ds7srg4p.js → chunk-5nda24gv.js} +1 -1
- package/web/chunk-5v44qv67.js +303 -0
- package/web/chunk-5wdk97mk.js +4 -0
- package/web/chunk-64rafq66.js +78 -0
- package/web/chunk-6bwgdvf6.js +1 -0
- package/web/chunk-6kkw9ptc.js +1 -0
- package/web/chunk-718mr5gc.js +2 -0
- package/web/chunk-7hs57qdr.js +1 -0
- package/web/chunk-7kp237t3.js +106 -0
- package/web/chunk-86p42kym.js +1 -0
- package/web/chunk-8n79cqyd.js +1 -0
- package/web/chunk-8r0s8tx7.js +1 -0
- package/web/chunk-96v2avmw.js +40 -0
- package/web/chunk-9an6wcnr.js +1 -0
- package/web/{chunk-5z4jcqct.js → chunk-9c1yt2ex.js} +20 -20
- package/web/chunk-9w5tf22s.js +1 -0
- package/web/{chunk-pws2seas.js → chunk-a7gtb4kg.js} +19 -19
- package/web/chunk-ahztazsg.js +1 -0
- package/web/chunk-b985y17w.js +2 -0
- package/web/chunk-bz2v64xe.js +1 -0
- package/web/{chunk-n1dmrz44.js → chunk-c01176kn.js} +2 -2
- package/web/chunk-c3nn0vvc.js +1 -0
- package/web/chunk-cb2rxtq9.js +2 -0
- package/web/{chunk-b1bgzz66.js → chunk-ck8rr0sr.js} +1 -1
- package/web/{chunk-aqfpnhmt.js → chunk-cktmyc13.js} +19 -19
- package/web/{chunk-rvrf0f3h.js → chunk-cm92fyr3.js} +2 -2
- package/web/chunk-cwtn2kdm.js +1 -0
- package/web/chunk-czq1yz51.js +99 -0
- package/web/chunk-d22wq71s.js +1 -0
- package/web/{chunk-pjkdrgm0.js → chunk-d4z2rgpx.js} +1 -1
- package/web/{chunk-hvw3gn2a.js → chunk-d6tbw8br.js} +20 -20
- package/web/{chunk-cg3jterp.js → chunk-d9wdsjkk.js} +2 -2
- package/web/{chunk-ttg6tbwx.js → chunk-da7m1kva.js} +2 -2
- package/web/chunk-dpkyygej.js +1 -0
- package/web/{chunk-0b47eyrf.js → chunk-dwajwrpk.js} +1 -1
- package/web/chunk-et5ess72.js +1 -0
- package/web/chunk-ez8b6neq.js +1 -0
- package/web/{chunk-bhsaj6qq.js → chunk-f5txt81n.js} +1 -1
- package/web/chunk-fd1kqwe3.js +1 -0
- package/web/chunk-fmthkpff.js +1 -0
- package/web/chunk-fp48zz2e.js +2 -0
- package/web/{chunk-n90cqdvg.js → chunk-fv6vm14n.js} +2 -2
- package/web/chunk-fx0n2g22.js +89 -0
- package/web/{chunk-9cx1be43.js → chunk-fxs4nb93.js} +16 -16
- package/web/chunk-g6k9z8zt.js +1 -0
- package/web/{chunk-42e3b9hv.js → chunk-g81h1e6n.js} +19 -19
- package/web/{chunk-pz9ps2jm.js → chunk-gsh80797.js} +12 -12
- package/web/{chunk-54thej0t.js → chunk-gyp6v7jd.js} +2 -2
- package/web/chunk-h0c42zy3.js +1 -0
- package/web/{chunk-6m69hczt.js → chunk-h6k1x096.js} +2 -2
- package/web/chunk-hs5x78fb.js +1 -0
- package/web/{chunk-zx8zec24.js → chunk-ht1dzftc.js} +56 -56
- package/web/{chunk-d11v5s7w.js → chunk-hy4m34qp.js} +6 -6
- package/web/chunk-hyd5hzpa.js +1 -0
- package/web/chunk-hyt1nkaw.js +1 -0
- package/web/{chunk-24mfx6w1.js → chunk-j1bw5v1g.js} +2 -2
- package/web/chunk-j6a4z530.js +1139 -0
- package/web/{chunk-0pbjgdgp.js → chunk-ja7w629n.js} +2 -2
- package/web/{chunk-zbj1trar.js → chunk-jam45rqg.js} +2 -2
- package/web/chunk-jfvxxp5c.js +1 -0
- package/web/{chunk-kmr7r9xj.js → chunk-jve1zc80.js} +2 -2
- package/web/chunk-kegv14sg.js +2 -0
- package/web/chunk-kw9emsqw.js +1 -0
- package/web/{chunk-df5zx17h.js → chunk-kyawkpv2.js} +1 -1
- package/web/chunk-m2prjwk3.js +4 -0
- package/web/chunk-m9bzz9m0.js +19 -0
- package/web/chunk-mqsyzzgt.js +30 -0
- package/web/chunk-mz9b5bsa.js +1 -0
- package/web/chunk-n1jpg57t.js +169 -0
- package/web/{chunk-ybrf9mhz.js → chunk-nyn9tghz.js} +4 -4
- package/web/{chunk-1eg9sbbt.js → chunk-nywdeb4m.js} +2 -2
- package/web/chunk-prvh9syp.js +324 -0
- package/web/chunk-pxkhm40r.js +2 -0
- package/web/{chunk-6cnek1xh.js → chunk-q9ekgjh6.js} +1 -1
- package/web/{chunk-xzp7jf7e.js → chunk-qcge7d6s.js} +2 -2
- package/web/chunk-r3mj50zs.js +1 -0
- package/web/{chunk-wnskxerq.js → chunk-rf9dt6bg.js} +5 -5
- package/web/{chunk-nvhmq4z5.js → chunk-s2920f21.js} +6 -6
- package/web/chunk-sc0ghp25.js +24 -0
- package/web/{chunk-ydtrc1ay.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-rykfak98.js → chunk-sf101c23.js} +2 -2
- package/web/{chunk-4gavbw65.js → chunk-sy7e4dmq.js} +1 -1
- package/web/chunk-t74r2n8h.js +1 -0
- package/web/{chunk-0h0vb6gt.js → chunk-t851gdjh.js} +4 -4
- package/web/{chunk-a408enpy.js → chunk-t9mvsgt9.js} +1 -1
- package/web/chunk-thbqwq6b.js +1 -0
- package/web/{chunk-v5cnt7c8.js → chunk-twdy2f67.js} +1 -1
- package/web/chunk-v4yqrx5y.js +140 -0
- package/web/{chunk-b53bfkys.js → chunk-vf4vkcf9.js} +1 -1
- package/web/chunk-vnt34mkb.js +1 -0
- package/web/chunk-vtxw9rmr.js +1 -0
- package/web/{chunk-92ssjk2y.js → chunk-vw1pbv1x.js} +40 -40
- package/web/chunk-x19v2sxv.js +1 -0
- package/web/{chunk-3re8y26v.js → chunk-x5s7zr5f.js} +7 -7
- package/web/chunk-xc2sq3t5.js +2 -0
- package/web/chunk-xce8n339.js +1 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/chunk-xvcfp1zh.js +2 -0
- package/web/chunk-y21zy3eh.js +1 -0
- package/web/chunk-ya3ghn3n.js +2 -0
- package/web/chunk-yd74yxzt.js +8 -0
- package/web/{chunk-74j07k8k.js → chunk-z1geewdf.js} +2 -2
- package/web/chunk-z4ha8181.js +1 -0
- package/web/chunk-z8rarqe6.js +1 -0
- package/web/{chunk-kwccs9f6.js → chunk-zp3qrrkb.js} +11 -11
- package/web/chunk-zsxw5fj7.js +39 -0
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-06hdzq5n.js +0 -2
- package/chunk-5dfbezv9.js +0 -2
- package/chunk-5x1sankd.js +0 -3753
- package/chunk-71h08f4g.js +0 -2
- package/chunk-7nzhdrv9.js +0 -2
- package/chunk-7q51n619.js +0 -2
- package/chunk-9mmz6wt3.js +0 -2
- package/chunk-fvn32nzj.js +0 -478
- package/chunk-n6e43rvk.js +0 -3
- package/chunk-ry0z4ev6.js +0 -2
- package/chunk-vkpvcxjr.js +0 -2
- package/web/chunk-0rmkpsgp.js +0 -1
- package/web/chunk-0s80zw00.js +0 -1
- package/web/chunk-0xkyryrq.js +0 -1
- package/web/chunk-1gbd61z0.js +0 -2
- package/web/chunk-2s0bmrkv.js +0 -39
- package/web/chunk-2z1rwr28.js +0 -2
- package/web/chunk-344bq59c.js +0 -89
- package/web/chunk-3t0211rw.js +0 -1
- package/web/chunk-44rmrmcn.js +0 -1
- package/web/chunk-4bzqrwr0.js +0 -1139
- package/web/chunk-4d3a7xs2.js +0 -1
- package/web/chunk-4jmazh6x.js +0 -370
- package/web/chunk-4re74xwm.js +0 -140
- package/web/chunk-4rm1vy7w.js +0 -1
- package/web/chunk-59kqahb3.js +0 -1
- package/web/chunk-5qtyq3ce.js +0 -292
- package/web/chunk-5z6x2n5h.js +0 -1
- package/web/chunk-6beqrmtq.js +0 -1
- package/web/chunk-6f5ke0x9.js +0 -1
- package/web/chunk-6xaqxcq8.js +0 -1
- package/web/chunk-7q6wvv2x.js +0 -1
- package/web/chunk-7qsa4p8h.js +0 -1
- package/web/chunk-8nja0ygy.js +0 -1
- package/web/chunk-8y64fkpz.js +0 -24
- package/web/chunk-9ad7v7bm.js +0 -8
- package/web/chunk-9dzxv335.js +0 -4
- package/web/chunk-9t5dnjaz.js +0 -19
- package/web/chunk-a497tykb.js +0 -70
- package/web/chunk-b6k9w215.js +0 -2
- package/web/chunk-cjfssg3m.js +0 -2
- package/web/chunk-cqp1d4p0.js +0 -1
- package/web/chunk-dy2gm1fs.js +0 -1
- package/web/chunk-e0zre35a.js +0 -1
- package/web/chunk-e9twvs9n.js +0 -3
- package/web/chunk-f2kgtyfp.js +0 -1
- package/web/chunk-f8bn5tzf.js +0 -1
- package/web/chunk-f91wzwtk.js +0 -1
- package/web/chunk-fdp9bsj7.js +0 -1
- package/web/chunk-fh2vj0wv.js +0 -2
- package/web/chunk-g1ev11wx.js +0 -1
- package/web/chunk-gmzqdm7v.js +0 -1
- package/web/chunk-hfaffkrh.js +0 -1
- package/web/chunk-j2vt8c8v.js +0 -1
- package/web/chunk-ka3q31t1.js +0 -1
- package/web/chunk-khxcn8tt.js +0 -106
- package/web/chunk-kqqmp1am.js +0 -1
- package/web/chunk-m2d1sp30.js +0 -1
- package/web/chunk-nbgqbxcy.js +0 -1
- package/web/chunk-ncpnpe9w.js +0 -99
- package/web/chunk-ne0v8mfb.js +0 -2
- package/web/chunk-ngx2cp8x.js +0 -2
- package/web/chunk-nxcgf7ec.js +0 -1
- package/web/chunk-p0kvmf28.js +0 -2
- package/web/chunk-p3k7m5nr.js +0 -1
- package/web/chunk-pggaffrh.js +0 -169
- package/web/chunk-pxe3vna4.js +0 -1
- package/web/chunk-qh15dxav.css +0 -1
- package/web/chunk-qpmbxhh6.js +0 -1
- package/web/chunk-r0rctnxz.js +0 -1
- package/web/chunk-rn3dnqm8.js +0 -1
- package/web/chunk-rtf2zzzv.js +0 -1
- package/web/chunk-srrfphes.js +0 -1
- package/web/chunk-tdr6x2xc.js +0 -1
- package/web/chunk-tncvg1nn.js +0 -1
- package/web/chunk-vyp0ns1f.js +0 -2
- package/web/chunk-wvdehm9y.js +0 -303
- package/web/chunk-x7ahcpj7.js +0 -1
- package/web/chunk-y38bf0wm.js +0 -1
- package/web/chunk-y56aaba5.js +0 -2
- package/web/chunk-ye58t45p.js +0 -4
- package/web/chunk-yqbnps3a.js +0 -1
- package/web/chunk-z1h20s8c.js +0 -78
- package/web/chunk-zj4q9jth.js +0 -36
- package/web/chunk-zj5k94dk.js +0 -40
- package/web/chunk-zqch0sc8.js +0 -30
- package/web/install.ps1 +0 -91
- package/web/install.sh +0 -177
package/web/chunk-khxcn8tt.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import{hn}from"./chunk-1eg9sbbt.js";import{W}from"./chunk-y56aaba5.js";import{e,r,D,b,y,C,S,E,T,A,I,L,s,wr,p,Ui,U,N}from"./chunk-wvdehm9y.js";import{X}from"./chunk-aqfpnhmt.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new hn(()=>{let t=J(),{mainBranchName:a,mainBranchOrder:o}=t;return{mainBranchName:a,commits:new Map,head:null,branchConfig:new Map([[a,{name:a,order:o}]]),branches:new Map([[a,null]]),currBranch:a,direction:"LR",seq:0,options:{}}});function ne(){return Ui({length:7})}e(ne,"getID");function pe(t,a){let o=Object.create(null);return t.reduce((i,d)=>{let l=a(d);if(!o[l])o[l]=!0,i.push(d);return i},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){r.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(a){r.error("error while parsing gitGraph options",a.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:a,id:o,type:i,tags:d}=t;r.info("commit",a,o,i,d),r.debug("Entering commit:",a,o,i,d);let l=J();o=y.sanitizeText(o,l),a=y.sanitizeText(a,l),d=d?.map((n)=>y.sanitizeText(n,l));let c={id:o?o:m.records.seq+"-"+ne(),message:a,seq:m.records.seq++,type:i??v.NORMAL,tags:d??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=c,r.info("main branch",l.mainBranchName),m.records.commits.has(c.id))r.warn(`Commit ID ${c.id} already exists`);m.records.commits.set(c.id,c),m.records.branches.set(m.records.currBranch,c.id),r.debug("in pushCommit "+c.id)},"commit"),Me=e(function(t){let{name:a,order:o}=t;if(a=y.sanitizeText(a,J()),m.records.branches.has(a))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${a}")`);m.records.branches.set(a,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(a,{name:a,order:o}),ye(a),r.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:a,id:o,type:i,tags:d}=t,l=J();if(a=y.sanitizeText(a,l),o)o=y.sanitizeText(o,l);let c=m.records.branches.get(m.records.currBranch),n=m.records.branches.get(a),g=c?m.records.commits.get(c):void 0,x=n?m.records.commits.get(n):void 0;if(g&&x&&g.branch===a)throw Error(`Cannot merge branch '${a}' into itself.`);if(m.records.currBranch===a){let h=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(g===void 0||!g){let h=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["commit"]},h}if(!m.records.branches.has(a)){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") does not exist");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:[`branch ${a}`]},h}if(x===void 0||!x){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") has no commits");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:['"commit"']},h}if(g===x){let h=Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(o&&m.records.commits.has(o)){let h=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw h.hash={text:`merge ${a} ${o} ${i} ${d?.join(" ")}`,token:`merge ${a} ${o} ${i} ${d?.join(" ")}`,expected:[`merge ${a} ${o}_UNIQUE ${i} ${d?.join(" ")}`]},h}let u=n?n:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${a} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:i,customId:o?!0:!1,tags:d??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),r.debug(m.records.branches),r.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:a,targetId:o,tags:i,parent:d}=t;r.debug("Entering cherryPick:",a,o,i);let l=J();if(a=y.sanitizeText(a,l),o=y.sanitizeText(o,l),i=i?.map((g)=>y.sanitizeText(g,l)),d=y.sanitizeText(d,l),!a||!m.records.commits.has(a)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},g}let c=m.records.commits.get(a);if(c===void 0||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(d&&!(Array.isArray(c.parents)&&c.parents.includes(d)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let n=c.branch;if(c.type===v.MERGE&&!d)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(n===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let x=m.records.commits.get(g);if(x===void 0||!x){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${c?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,c.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${c.id}${c.type===v.MERGE?`|parent:${d}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),r.debug(m.records.branches),r.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,J()),!m.records.branches.has(t)){let a=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw a.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},a}else{m.records.currBranch=t;let a=m.records.branches.get(m.records.currBranch);if(a===void 0||!a)m.records.head=null;else m.records.head=m.records.commits.get(a)??null}},"checkout");function he(t,a,o){let i=t.indexOf(a);if(i===-1)t.push(o);else t.splice(i,1,o)}e(he,"upsert");function me(t){let a=t.reduce((d,l)=>{if(d.seq>l.seq)return d;return l},t[0]),o="";t.forEach(function(d){if(d===a)o+="\t*";else o+="\t|"});let i=[o,a.id,a.seq];for(let d in m.records.branches)if(m.records.branches.get(d)===a.id)i.push(d);if(r.debug(i.join(" ")),a.parents&&a.parents.length==2&&a.parents[0]&&a.parents[1]){let d=m.records.commits.get(a.parents[0]);if(he(t,a,d),a.parents[1])t.push(m.records.commits.get(a.parents[1]))}else if(a.parents.length==0)return;else if(a.parents[0]){let d=m.records.commits.get(a.parents[0]);he(t,a,d)}t=pe(t,(d)=>d.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){r.debug(m.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){m.reset(),C()},"clear"),_e=e(function(){return[...m.records.branchConfig.values()].map((a,o)=>{if(a.order!==null&&a.order!==void 0)return a;return{...a,order:parseFloat(`0.${o}`)}}).sort((a,o)=>(a.order??0)-(o.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),Ge=e(function(){return m.records.branches},"getBranches"),De=e(function(){return m.records.commits},"getCommits"),xe=e(function(){let t=[...m.records.commits.values()];return t.forEach(function(a){r.debug(a.id)}),t.sort((a,o)=>a.seq-o.seq),t},"getCommitsArray"),We=e(function(){return m.records.currBranch},"getCurrentBranch"),qe=e(function(){return m.records.direction},"getDirection"),Ae=e(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L},He=e((t,a)=>{if(W(t,a),t.dir)a.setDirection(t.dir);for(let o of t.statements)Se(o,a)},"populate"),Se=e((t,a)=>{let i={Commit:e((d)=>a.commit(Ne(d)),"Commit"),Branch:e((d)=>a.branch(Fe(d)),"Branch"),Merge:e((d)=>a.merge(ze(d)),"Merge"),Checkout:e((d)=>a.checkout(Ye(d)),"Checkout"),CherryPicking:e((d)=>a.cherryPick(je(d)),"CherryPicking")}[t.$type];if(i)i(t);else r.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let a=await X("gitGraph",t);r.debug(a),He(a,ue)},"parse")},j=10,K=40,H=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=e((t,a,o=!1)=>{if(o&&t>0)return(t-1)%(a-1)+1;return t%a},"calcColorIndex"),_=new Map,G=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=e(()=>{_.clear(),G.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=e((t)=>{let a=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((i)=>{let d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),d.setAttribute("class","row"),d.textContent=i.trim(),a.appendChild(d)}),a},"drawText"),we=e((t)=>{let a,o,i;if(B==="BT")o=e((d,l)=>d<=l,"comparisonFunc"),i=1/0;else o=e((d,l)=>d>=l,"comparisonFunc"),i=0;return t.forEach((d)=>{let l=B==="TB"||B=="BT"?G.get(d)?.y:G.get(d)?.x;if(l!==void 0&&o(l,i))a=d,i=l}),a},"findClosestParent"),Ze=e((t)=>{let a="",o=1/0;return t.forEach((i)=>{let d=G.get(i).y;if(d<=o)a=i,o=d}),a||void 0},"findClosestParentBT"),Xe=e((t,a,o)=>{let i=o,d=o,l=[];t.forEach((c)=>{let n=a.get(c);if(!n)throw Error(`Commit not found for key ${c}`);if(n.parents.length)i=Qe(n),d=Math.max(i,d);else l.push(n);et(n,i)}),i=d,l.forEach((c)=>{tt(c,i,o)}),t.forEach((c)=>{let n=a.get(c);if(n?.parents.length){let g=Ze(n.parents);if(i=G.get(g).y-K,i<=d)d=i;let x=_.get(n.branch).pos,u=i-j;G.set(n.id,{x,y:u})}})},"setParallelBTPos"),Je=e((t)=>{let a=we(t.parents.filter((i)=>i!==null));if(!a)throw Error(`Closest parent not found for commit ${t.id}`);let o=G.get(a)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return o},"findClosestParentPos"),Qe=e((t)=>Je(t)+K,"calculateCommitPosition"),et=e((t,a)=>{let o=_.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let i=o.pos,d=a+j;return G.set(t.id,{x:i,y:d}),{x:i,y:d}},"setCommitPosition"),tt=e((t,a,o)=>{let i=_.get(t.branch);if(!i)throw Error(`Branch not found for commit ${t.id}`);let d=a+o,l=i.pos;G.set(t.id,{x:l,y:d})},"setRootPosition"),rt=e((t,a,o,i,d,l)=>{let{theme:c}=s(),n=ce.has(c??""),g=ge.has(c??""),x=Ue.has(c??"");if(l===v.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(n?3:0)).attr("y",o.y-10+(n?3:0)).attr("width",n?14:20).attr("height",n?14:20).attr("class",`commit ${a.id} commit-highlight${Z(d,V,g)} ${i}-outer`),t.append("rect").attr("x",o.x-6+(n?2:0)).attr("y",o.y-6+(n?2:0)).attr("width",n?8:12).attr("height",n?8:12).attr("class",`commit ${a.id} commit${Z(d,V,g)} ${i}-inner`);else if(l===v.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",n?7:10).attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`);else{let u=t.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",n?7:10),u.attr("class",`commit ${a.id} commit${Z(d,V,g)}`),l===v.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",n?5:6),f.attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}if(l===v.REVERSE){let f=t.append("path"),h=n?4:5;f.attr("d",`M ${o.x-h},${o.y-h}L${o.x+h},${o.y+h}M${o.x-h},${o.y+h}L${o.x+h},${o.y-h}`).attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}}},"drawCommitBullet"),at=e((t,a,o,i,d)=>{if(a.type!==v.CHERRY_PICK&&(a.customId&&a.type===v.MERGE||a.type!==v.MERGE)&&d.showCommitLabel){let l=t.append("g"),c=l.insert("rect").attr("class","commit-label-bkg"),n=l.append("text").attr("x",i).attr("y",o.y+25).attr("class","commit-label").text(a.id),g=n.node()?.getBBox();if(g){if(c.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")c.attr("x",o.x-(g.width+4*H+5)).attr("y",o.y-12),n.attr("x",o.x-(g.width+4*H)).attr("y",o.y+g.height-12);else n.attr("x",o.posWithOffset-g.width/2);if(d.rotateCommitLabel)if(B==="TB"||B==="BT")n.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),c.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let x=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;l.attr("transform","translate("+x+", "+u+") rotate(-45, "+i+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,a,o,i)=>{if(a.tags.length>0){let d=0,l=0,c=0,n=[];for(let g of a.tags.reverse()){let x=t.insert("polygon"),u=t.append("circle"),f=t.append("text").attr("y",o.y-16-d).attr("class","tag-label").text(g),h=f.node()?.getBBox();if(!h)throw Error("Tag bbox not found");l=Math.max(l,h.width),c=Math.max(c,h.height),f.attr("x",o.posWithOffset-h.width/2),n.push({tag:f,hole:u,rect:x,yOffset:d}),d+=20}for(let{tag:g,hole:x,rect:u,yOffset:f}of n){let h=c/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
-
${i-l/2-H/2},${k+z}
|
|
3
|
-
${i-l/2-H/2},${k-z}
|
|
4
|
-
${o.posWithOffset-l/2-H},${k-h-z}
|
|
5
|
-
${o.posWithOffset+l/2+H},${k-h-z}
|
|
6
|
-
${o.posWithOffset+l/2+H},${k+h+z}
|
|
7
|
-
${o.posWithOffset-l/2-H},${k+h+z}`),x.attr("cy",k).attr("cx",i-l/2+H/2).attr("r",1.5).attr("class","tag-hole"),B==="TB"||B==="BT"){let w=i+f;u.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
-
${o.x},${w+2}
|
|
9
|
-
${o.x},${w-2}
|
|
10
|
-
${o.x+j},${w-h-2}
|
|
11
|
-
${o.x+j+l+4},${w-h-2}
|
|
12
|
-
${o.x+j+l+4},${w+h+2}
|
|
13
|
-
${o.x+j},${w+h+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+i+")"),x.attr("cx",o.x+H/2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+o.x+","+i+")"),g.attr("x",o.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+i+")")}}}},"drawCommitTags"),st=e((t)=>{switch(t.customType??t.type){case v.NORMAL:return"commit-normal";case v.REVERSE:return"commit-reverse";case v.HIGHLIGHT:return"commit-highlight";case v.MERGE:return"commit-merge";case v.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=e((t,a,o,i)=>{let d={x:0,y:0};if(t.parents.length>0){let l=we(t.parents);if(l){let c=i.get(l)??d;if(a==="TB")return c.y+K;else if(a==="BT")return(i.get(t.id)??d).y-K;else return c.x+K}}else if(a==="TB")return oe;else if(a==="BT")return(i.get(t.id)??d).y-K;else return 0;return 0},"calculatePosition"),ct=e((t,a,o)=>{let i=B==="BT"&&o?a:a+j,d=_.get(t.branch)?.pos,l=B==="TB"||B==="BT"?_.get(t.branch)?.pos:i;if(l===void 0||d===void 0)throw Error(`Position were undefined for commit ${t.id}`);let c=ce.has(s().theme??""),n=B==="TB"||B==="BT"?i:d+(c?le/2+1:-2);return{x:l,y:n,posWithOffset:i}},"getCommitPosition"),$e=e((t,a,o,i)=>{let d=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c=B==="TB"||B==="BT"?oe:0,n=[...a.keys()],g=i.parallelCommits??!1,x=e((f,h)=>{let k=a.get(f)?.seq,w=a.get(h)?.seq;return k!==void 0&&w!==void 0?k-w:0},"sortKeys"),u=n.sort(x);if(B==="BT"){if(g)Xe(u,a,c);u=u.reverse()}u.forEach((f)=>{let h=a.get(f);if(!h)throw Error(`Commit not found for key ${f}`);if(g)c=nt(h,B,c,G);let k=ct(h,c,g);if(o){let w=st(h),M=h.customType??h.type,P=_.get(h.branch)?.index??0;rt(d,h,k,w,P,M),at(l,h,k,c,i),ot(l,h,k,c)}if(B==="TB"||B==="BT")G.set(h.id,{x:k.x,y:k.posWithOffset});else G.set(h.id,{x:k.posWithOffset,y:k.y});if(c=B==="BT"&&g?c+K:c+K+j,c>Y)Y=c})},"drawCommits"),it=e((t,a,o,i,d)=>{let c=(B==="TB"||B==="BT"?o.x<i.x:o.y<i.y)?a.branch:t.branch,n=e((x)=>x.branch===c,"isOnBranchToGetCurve"),g=e((x)=>x.seq>t.seq&&x.seq<a.seq,"isBetweenCommits");return[...d.values()].some((x)=>g(x)&&n(x))},"shouldRerouteArrow"),re=e((t,a,o=0)=>{let i=t+Math.abs(t-a)/2;if(o>5)return i;if(se.every((c)=>Math.abs(c-i)>=10))return se.push(i),i;let l=Math.abs(t-a);return re(t,a-l/5,o+1)},"findLane"),dt=e((t,a,o,i)=>{let{theme:d}=s(),l=ge.has(d??""),c=G.get(a.id),n=G.get(o.id);if(c===void 0||n===void 0)throw Error(`Commit positions not found for commits ${a.id} and ${o.id}`);let g=it(a,o,c,n,i),x="",u="",f=0,h=0,k=_.get(o.branch)?.index;if(o.type===v.MERGE&&a.id!==o.parents[0])k=_.get(a.branch)?.index;let w;if(g){x="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",f=10,h=10;let M=c.y<n.y?re(c.y,n.y):re(n.y,c.y),P=c.x<n.x?re(c.x,n.x):re(n.x,c.x);if(B==="TB")if(c.x<n.x)w=`M ${c.x} ${c.y} L ${P-f} ${c.y} ${u} ${P} ${c.y+h} L ${P} ${n.y-f} ${x} ${P+h} ${n.y} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${P+f} ${c.y} ${x} ${P} ${c.y+h} L ${P} ${n.y-f} ${u} ${P-h} ${n.y} L ${n.x} ${n.y}`;else if(B==="BT")if(c.x<n.x)w=`M ${c.x} ${c.y} L ${P-f} ${c.y} ${x} ${P} ${c.y-h} L ${P} ${n.y+f} ${u} ${P+h} ${n.y} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${P+f} ${c.y} ${u} ${P} ${c.y-h} L ${P} ${n.y+f} ${x} ${P-h} ${n.y} L ${n.x} ${n.y}`;else if(c.y<n.y)w=`M ${c.x} ${c.y} L ${c.x} ${M-f} ${x} ${c.x+h} ${M} L ${n.x-f} ${M} ${u} ${n.x} ${M+h} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${c.x} ${M+f} ${u} ${c.x+h} ${M} L ${n.x-f} ${M} ${x} ${n.x} ${M-h} L ${n.x} ${n.y}`}else if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,B==="TB"){if(c.x<n.x)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${x} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${u} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;if(c.x>n.x)if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${u} ${c.x-h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x+f} ${c.y} ${x} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;if(c.x===n.x)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}else if(B==="BT"){if(c.x<n.x)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${u} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${x} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;if(c.x>n.x)if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${x} ${c.x-h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x+f} ${c.y} ${u} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;if(c.x===n.x)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}else{if(c.y<n.y)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${u} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${x} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;if(c.y>n.y)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${x} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${u} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;if(c.y===n.y)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}if(w===void 0)throw Error("Line definition not found");t.append("path").attr("d",w).attr("class","arrow arrow"+Z(k,V,l))},"drawArrow"),ht=e((t,a)=>{let o=t.append("g").attr("class","commit-arrows");[...a.keys()].forEach((i)=>{let d=a.get(i);if(d.parents&&d.parents.length>0)d.parents.forEach((l)=>{dt(o,a.get(l),d,a)})})},"drawArrows"),lt=e((t,a,o,i)=>{let{look:d,theme:l,themeVariables:c}=s(),{dropShadow:n,THEME_COLOR_LIMIT:g}=c,x=ce.has(l??""),u=ge.has(l??""),f=t.append("g");a.forEach((h,k)=>{let w=Z(k,x?g:V,u),M=_.get(h.name)?.pos;if(M===void 0)throw Error(`Position not found for branch ${h.name}`);let P=B==="TB"||B==="BT"?M:x?M+le/2+1:M-2,R=f.append("line");if(R.attr("x1",0),R.attr("y1",P),R.attr("x2",Y),R.attr("y2",P),R.attr("class","branch branch"+w),B==="TB")R.attr("y1",oe),R.attr("x1",M),R.attr("y2",Y),R.attr("x2",M);else if(B==="BT")R.attr("y1",Y),R.attr("x1",M),R.attr("y2",oe),R.attr("x2",M);se.push(P);let ie=h.name,ee=be(ie),q=f.insert("rect"),F=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+w);F.node().appendChild(ee);let O=ee.getBBox(),fe=x?0:4,ae=x?16:0,Q=x?le:0;if(d==="neo")q.attr("data-look","neo");if(q.attr("class","branchLabelBkg label"+w).attr("style",d==="neo"?`filter:${x?`url(#${i}-drop-shadow)`:n}`:"").attr("rx",fe).attr("ry",fe).attr("x",-O.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-O.height/2+10).attr("width",O.width+18+ae).attr("height",O.height+4+Q),F.attr("transform","translate("+(-O.width-14-(o.rotateCommitLabel===!0?30:0)+ae/2)+", "+(P-O.height/2-2)+")"),B==="TB"){if(q.attr("x",M-O.width/2-10).attr("y",0),F.attr("transform","translate("+(M-O.width/2-5)+", 0)"),x)q.attr("transform",`translate(${-ae/2-3}, ${-Q-10})`),F.attr("transform","translate("+(M-O.width/2-5)+", "+(-Q*2+7)+")")}else if(B==="BT"){if(q.attr("x",M-O.width/2-10).attr("y",Y),F.attr("transform","translate("+(M-O.width/2-5)+", "+Y+")"),x)q.attr("transform",`translate(${-ae/2-3}, ${Q+10})`),F.attr("transform","translate("+(M-O.width/2-5)+", "+(Y+Q*2+4)+")")}else q.attr("transform","translate(-19, "+(P-12-Q/2)+")")})},"drawBranches"),mt=e(function(t,a,o,i,d){return _.set(t,{pos:a,index:o}),a+=50+(d?40:0)+(B==="TB"||B==="BT"?i.width/2:0),a},"setBranchPosition"),gt=e(function(t,a,o,i){Ve(),r.debug("in gitgraph renderer",t+`
|
|
14
|
-
`,"id:",a,o);let d=i.db;if(!d.getConfig){r.error("getConfig method is not available on db");return}let l=d.getConfig(),c=l.rotateCommitLabel??!1;te=d.getCommits();let n=d.getBranchesAsObjArray();B=d.getDirection();let g=p(`[id="${a}"]`),{look:x,theme:u,themeVariables:f}=s(),{useGradient:h,gradientStart:k,gradientStop:w,filterColor:M}=f;if(h){let R=g.append("defs").append("linearGradient").attr("id",a+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}if(x==="neo"&&ce.has(u??""))g.append("defs").append("filter").attr("id",a+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",M);let P=0;if(n.forEach((R,ie)=>{let ee=be(R.name),q=g.append("g"),de=q.insert("g").attr("class","branchLabel"),F=de.insert("g").attr("class","label branch-label");F.node()?.appendChild(ee);let O=ee.getBBox();P=mt(R.name,P,ie,O,c),F.remove(),de.remove(),q.remove()}),$e(g,te,!1,l),l.showBranches)lt(g,n,l,a);ht(g,te),$e(g,te,!0,l),N.insertTitle(g,"gitTitleText",l.titleTopMargin??0,d.getDiagramTitle()),wr(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=e((t)=>{let{svgId:a}=t,o="";if(t.useGradient&&a)for(let i=0;i<t.THEME_COLOR_LIMIT;i++)o+=`
|
|
15
|
-
.label${i} { fill: ${t.mainBkg}; stroke: url(${a}-gradient); stroke-width: ${t.strokeWidth};}
|
|
16
|
-
`;return o},"genGitGraphGradient"),bt=e((t)=>{let a=b(),{theme:o,themeVariables:i}=a,{borderColorArray:d}=i,l=ke.has(o);if(pt.has(o)){let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(n===0)c+=`
|
|
17
|
-
.branch-label${n} { fill: ${t.nodeBorder};}
|
|
18
|
-
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
19
|
-
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
20
|
-
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
21
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
22
|
-
.commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
|
|
23
|
-
${ut(t)}`;else{let g=n%Be;c+=`
|
|
24
|
-
.branch-label${n} { fill: ${t["gitBranchLabel"+g]}; }
|
|
25
|
-
.commit${n} { stroke: ${t["git"+g]}; fill: ${t["git"+g]}; }
|
|
26
|
-
.commit-highlight${n} { stroke: ${t["gitInv"+g]}; fill: ${t["gitInv"+g]}; }
|
|
27
|
-
.arrow${n} { stroke: ${t["git"+g]}; }
|
|
28
|
-
`}return c}else if(!$t.has(o)){let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)c+=`
|
|
29
|
-
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
30
|
-
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
31
|
-
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
32
|
-
.label${n} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${l?`font-weight:${t.noteFontWeight}`:""}}
|
|
33
|
-
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
34
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
35
|
-
.commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
|
|
36
|
-
`;return c}else{let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(n===0)c+=`
|
|
37
|
-
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
38
|
-
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
39
|
-
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
|
|
40
|
-
.label${n} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
41
|
-
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
42
|
-
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
43
|
-
`;else{let g=n%d.length;c+=`
|
|
44
|
-
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
45
|
-
.commit${n} { stroke: ${d[g]}; fill: ${d[g]}; }
|
|
46
|
-
.commit-highlight${n} { stroke: ${d[g]}; fill: ${d[g]}; }
|
|
47
|
-
.label${n} { fill: ${yt.has(o)?t.mainBkg:d[g]}; stroke: ${d[g]}; stroke-width: ${t.strokeWidth}; }
|
|
48
|
-
.arrow${n} { stroke: ${d[g]}; }
|
|
49
|
-
`}return c}},"genColor"),wt=e((t)=>`${Array.from({length:t.THEME_COLOR_LIMIT},(a,o)=>o).map((a)=>{let o=a%Be;return`
|
|
50
|
-
.branch-label${a} { fill: ${t["gitBranchLabel"+o]}; }
|
|
51
|
-
.commit${a} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }
|
|
52
|
-
.commit-highlight${a} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }
|
|
53
|
-
.label${a} { fill: ${t["git"+o]}; }
|
|
54
|
-
.arrow${a} { stroke: ${t["git"+o]}; }
|
|
55
|
-
`}).join(`
|
|
56
|
-
`)}`,"normalTheme"),Bt=e((t)=>{let a=b(),{theme:o}=a,i=xt.has(o);return`
|
|
57
|
-
.commit-id,
|
|
58
|
-
.commit-msg,
|
|
59
|
-
.branch-label {
|
|
60
|
-
fill: lightgrey;
|
|
61
|
-
color: lightgrey;
|
|
62
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
-
font-family: var(--mermaid-font-family);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
${i?bt(t):wt(t)}
|
|
67
|
-
|
|
68
|
-
.branch {
|
|
69
|
-
stroke-width: ${t.strokeWidth};
|
|
70
|
-
stroke: ${t.commitLineColor??t.lineColor};
|
|
71
|
-
stroke-dasharray: ${i?"4 2":"2"};
|
|
72
|
-
}
|
|
73
|
-
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${i?t.nodeBorder:t.commitLabelColor}; ${i?`font-weight:${t.noteFontWeight};`:""}}
|
|
74
|
-
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${i?"transparent":t.commitLabelBackground}; opacity: ${i?"":0.5}; }
|
|
75
|
-
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
76
|
-
.tag-label-bkg { fill: ${i?t.mainBkg:t.tagLabelBackground}; stroke: ${i?t.nodeBorder:t.tagLabelBorder}; ${i?`filter:${t.dropShadow}`:""} }
|
|
77
|
-
.tag-hole { fill: ${t.textColor}; }
|
|
78
|
-
|
|
79
|
-
.commit-merge {
|
|
80
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
81
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
82
|
-
}
|
|
83
|
-
.commit-reverse {
|
|
84
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
85
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
86
|
-
stroke-width: ${i?t.strokeWidth:3};
|
|
87
|
-
}
|
|
88
|
-
.commit-highlight-outer {
|
|
89
|
-
}
|
|
90
|
-
.commit-highlight-inner {
|
|
91
|
-
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
92
|
-
fill: ${i?t.mainBkg:t.primaryColor};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.arrow {
|
|
96
|
-
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
-
stroke-width: ${ke.has(o)?t.strokeWidth:8};
|
|
98
|
-
stroke-linecap: round;
|
|
99
|
-
fill: none
|
|
100
|
-
}
|
|
101
|
-
.gitTitleText {
|
|
102
|
-
text-anchor: middle;
|
|
103
|
-
font-size: 18px;
|
|
104
|
-
fill: ${t.textColor};
|
|
105
|
-
}
|
|
106
|
-
`},"getStyles"),kt=Bt,Ot={parser:Ke,db:ue,renderer:ft,styles:kt};export{Ot as diagram};
|
package/web/chunk-kqqmp1am.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{xi}from"./chunk-aqfpnhmt.js";export{xi as createGitGraphServices};
|
package/web/chunk-m2d1sp30.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ni}from"./chunk-0pbjgdgp.js";export{ni as default};
|
package/web/chunk-nbgqbxcy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ti}from"./chunk-aqfpnhmt.js";export{Ti as createEventModelingServices};
|
package/web/chunk-ncpnpe9w.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import{e,Zt,r,le,y,C,S,E,T,A,I,L,s,p,N,Fe,Xr,ce,ae,ie,ft,ge,ye}from"./chunk-wvdehm9y.js";import{Ot}from"./chunk-cjfssg3m.js";import{he}from"./chunk-bhsaj6qq.js";import{se}from"./chunk-p0kvmf28.js";var Ue=function(){var i=e(function(q,l,h,f){for(h=h||{},f=q.length;f--;h[q[f]]=l);return h},"o"),c=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],o=[1,7],u=[1,9],g=[1,10],R=[1,11],_=[1,12],v=[1,30],k=[1,23],m=[1,24],B=[1,25],W=[1,26],X=[1,27],D=[1,19],Y=[1,28],te=[1,29],G=[1,20],P=[1,18],z=[1,21],U=[1,22],Ke=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Re=[1,36],ve=[1,37],De=[1,38],Le=[1,39],we=[1,40],re=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ne=[1,57],oe=[43,51,53,54,55,74,75],ue=[1,70],de=[1,68],j=[1,65],be=[1,69],pe=[1,71],_e=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],me=[1,78],Ee=[1,77],Se=[1,76],Ze=[69,70,71,72,73],je=[1,91],qe=[6,9,45,50],J=[6,9,12,44,45,50,51,52],Te=[1,101],Ce=[1,100],Oe=[1,99],fe=[18,61],We=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(l,h,f,n,O,t,ke){var a=t.length-1;switch(O){case 1:break;case 2:this.$=[];break;case 3:this.$=t[a-1].concat(t[a]);break;case 4:this.$=t[a];break;case 5:case 6:this.$=[];break;case 7:n.addEntity(t[a-4]),n.addEntity(t[a-2]),n.addRelationship(t[a-4],t[a],t[a-2],t[a-3]),this.$=[t[a-4],t[a-2]];break;case 8:n.addEntity(t[a-8]),n.addEntity(t[a-4]),n.addRelationship(t[a-8],t[a],t[a-4],t[a-5]),n.setClass([t[a-8]],t[a-6]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-8],t[a-4]];break;case 9:n.addEntity(t[a-6]),n.addEntity(t[a-2]),n.addRelationship(t[a-6],t[a],t[a-2],t[a-3]),n.setClass([t[a-6]],t[a-4]),this.$=[t[a-6],t[a-2]];break;case 10:n.addEntity(t[a-6]),n.addEntity(t[a-4]),n.addRelationship(t[a-6],t[a],t[a-4],t[a-5]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-6],t[a-4]];break;case 11:n.addEntity(t[a-3]),n.addAttributes(t[a-3],t[a-1]),this.$=[t[a-3]];break;case 12:n.addEntity(t[a-5]),n.addAttributes(t[a-5],t[a-1]),n.setClass([t[a-5]],t[a-3]),this.$=[t[a-5]];break;case 13:n.addEntity(t[a-2]),this.$=[t[a-2]];break;case 14:n.addEntity(t[a-4]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-4]];break;case 15:n.addEntity(t[a]),this.$=[t[a]];break;case 16:n.addEntity(t[a-2]),n.setClass([t[a-2]],t[a]),this.$=[t[a-2]];break;case 17:n.addEntity(t[a-6],t[a-4]),n.addAttributes(t[a-6],t[a-1]),this.$=[t[a-6]];break;case 18:n.addEntity(t[a-8],t[a-6]),n.addAttributes(t[a-8],t[a-1]),n.setClass([t[a-8]],t[a-3]),this.$=[t[a-8]];break;case 19:n.addEntity(t[a-5],t[a-3]),this.$=[t[a-5]];break;case 20:n.addEntity(t[a-7],t[a-5]),n.setClass([t[a-7]],t[a-2]),this.$=[t[a-7]];break;case 21:n.addEntity(t[a-3],t[a-1]);break;case 22:n.addEntity(t[a-5],t[a-3]),n.setClass([t[a-5]],t[a]);break;case 23:case 24:this.$=t[a].trim(),n.setAccTitle(this.$);break;case 25:case 26:this.$=t[a].trim(),n.setAccDescription(this.$);break;case 27:if(!n.subgraphDepth)n.setDirection(t[a].value),this.$=[];else this.$=t[a];break;case 31:n.subgraphDepth=(n.subgraphDepth||1)-1,this.$=n.addSubGraph({text:t[a-2].id},t[a-1],{text:t[a-2].text});break;case 32:n.subgraphDepth=(n.subgraphDepth||0)+1,this.$={id:t[a-1],text:t[a-1]};break;case 33:n.subgraphDepth=(n.subgraphDepth||0)+1,this.$={id:t[a-4],text:t[a-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[a];break;case 35:this.$=t[a-1]+" "+t[a];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[a-3],n.addClass(t[a-2],t[a-1]);break;case 41:case 42:case 63:case 72:this.$=[t[a]];break;case 43:case 44:this.$=t[a-2].concat([t[a]]);break;case 45:this.$=t[a-2],n.setClass(t[a-1],t[a]);break;case 46:this.$=t[a-3],n.addCssStyles(t[a-2],t[a-1]);break;case 47:this.$=[t[a]];break;case 48:t[a-2].push(t[a]),this.$=t[a-2];break;case 50:this.$=t[a-1]+t[a];break;case 58:case 84:case 85:this.$=t[a].replace(/"/g,"");break;case 64:t[a].push(t[a-1]),this.$=t[a];break;case 65:this.$={type:t[a-1],name:t[a]};break;case 66:this.$={type:t[a-2],name:t[a-1],keys:t[a]};break;case 67:this.$={type:t[a-2],name:t[a-1],comment:t[a]};break;case 68:this.$={type:t[a-3],name:t[a-2],keys:t[a-1],comment:t[a]};break;case 69:case 71:case 74:this.$=t[a];break;case 70:this.$=t[a-1]+t[a];break;case 73:t[a-2].push(t[a]),this.$=t[a-2];break;case 75:this.$=t[a].replace(/"/g,"");break;case 76:this.$={cardA:t[a],relType:t[a-1],cardB:t[a-2]};break;case 77:this.$=n.Cardinality.ZERO_OR_ONE;break;case 78:this.$=n.Cardinality.ZERO_OR_MORE;break;case 79:this.$=n.Cardinality.ONE_OR_MORE;break;case 80:this.$=n.Cardinality.ONLY_ONE;break;case 81:this.$=n.Cardinality.MD_PARENT;break;case 82:this.$=n.Identification.NON_IDENTIFYING;break;case 83:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(c,b,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:u,23:g,25:R,27:_,28:13,29:14,30:15,31:16,32:17,34:v,37:k,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},i(c,Ke,{1:[2,1]}),i(d,[2,3]),i(d,[2,4]),i(d,[2,5]),i(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Re,70:ve,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},i(d,[2,26]),i(d,[2,27]),i(d,[2,28]),i(d,[2,29]),i(d,[2,30]),i(d,b,{5:44}),i(re,[2,58]),i(re,[2,59]),i(re,[2,60]),i(re,[2,61]),i(re,[2,62]),i(d,[2,36]),i(d,[2,37]),i(d,[2,38]),i(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:D,51:G,53:P,54:z,55:U},{10:51,43:D,51:G,53:P,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ne},{10:58,43:D,51:G,53:P,54:z,55:U},{68:59,74:[1,60],75:[1,61]},i(oe,[2,77]),i(oe,[2,78]),i(oe,[2,79]),i(oe,[2,80]),i(oe,[2,81]),i(d,[2,23]),i(d,[2,24]),i(d,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:u,23:g,25:R,27:_,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:v,37:k,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},{12:ue,42:64,44:de,45:j,48:66,49:67,51:be,52:pe},i(_e,[2,41]),i(_e,[2,42]),{15:72,43:K,44:Z,45:j},{12:ue,42:73,44:de,45:j,48:66,49:67,51:be,52:pe},{6:me,9:Ee,19:[1,75],35:74,50:Se},{12:[1,79],14:[1,80]},i(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Re,70:ve,71:De,72:Le,73:we}),{18:[1,83]},i(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ne},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Re,70:ve,71:De,72:Le,73:we},i(Ze,[2,82]),i(Ze,[2,83]),i(d,[2,31]),i(d,Ke),{6:me,9:Ee,35:90,45:je,50:Se},{43:[1,92],44:[1,93]},i(qe,[2,47],{49:94,12:ue,44:de,51:be,52:pe}),i(J,[2,49]),i(J,[2,54]),i(J,[2,55]),i(J,[2,56]),i(J,[2,57]),i(d,[2,45],{45:j}),{6:me,9:Ee,35:95,45:je,50:Se},i(d,[2,32]),{10:97,36:96,43:D,51:G,53:P,54:z,55:U},i(d,[2,51]),i(d,[2,52]),i(d,[2,53]),{13:98,43:Te,53:Ce,76:Oe},{15:102,43:K,44:Z},{10:103,43:D,51:G,53:P,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:ne},i(d,[2,11]),{18:[2,64]},i(fe,[2,65],{59:106,60:107,63:108,65:We,66:He}),i([18,61,65,66],[2,71]),{61:[2,70]},i(d,[2,21],{14:[1,112],16:[1,111]}),i([43,51,53,54,55],[2,76]),i(d,[2,40]),{12:ue,44:de,48:113,49:67,51:be,52:pe},i(_e,[2,43]),i(_e,[2,44]),i(J,[2,50]),i(d,[2,46]),{10:115,20:[1,114],43:D,51:G,53:P,54:z,55:U},i(Qe,[2,34]),i(d,[2,7]),i(d,[2,84]),i(d,[2,85]),i(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},i(d,[2,14]),i(fe,[2,66],{60:120,64:[1,121],66:He}),i(fe,[2,67]),i(Ve,[2,72]),i(fe,[2,75]),i(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ne},{15:124,43:K,44:Z},i(qe,[2,48],{49:94,12:ue,44:de,51:be,52:pe}),{6:me,9:Ee,35:125,50:Se},i(Qe,[2,35]),{13:126,43:Te,53:Ce,76:Oe},{15:127,43:K,44:Z},{13:128,43:Te,53:Ce,76:Oe},i(d,[2,12]),i(fe,[2,68]),{63:129,65:We},{18:[1,130]},i(d,[2,19]),i(d,[2,22],{16:[1,131],45:j}),i(d,[2,33]),i(d,[2,10]),{12:[1,132],45:j},i(d,[2,9]),i(Ve,[2,73]),i(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ne},{13:135,43:Te,53:Ce,76:Oe},{18:[1,136]},i(d,[2,20]),i(d,[2,8]),i(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(l,h){if(h.recoverable)this.trace(l);else{var f=Error(l);throw f.hash=h,f}},"parseError"),parse:e(function(l){var h=this,f=[0],n=[],O=[null],t=[],ke=this.table,a="",xe=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),x=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(x.setInput(l,H.yy),H.yy.lexer=x,H.yy.parser=this,typeof x.yylloc>"u")x.yylloc={};var Ge=x.yylloc;t.push(Ge);var ot=x.options&&x.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(M){f.length=f.length-2*M,O.length=O.length-M,t.length=t.length-M}e(lt,"popStack");function et(){var M=n.pop()||x.lex()||$e;if(typeof M!=="number"){if(M instanceof Array)n=M,M=n.pop();M=h.symbols_[M]||M}return M}e(et,"lex");var w,Ye,Q,V,kt,Pe,ee={},Ae,F,tt,Ie;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])V=this.defaultActions[Q];else{if(w===null||typeof w>"u")w=et();V=ke[Q]&&ke[Q][w]}if(typeof V>"u"||!V.length||!V[0]){var ze="";Ie=[];for(Ae in ke[Q])if(this.terminals_[Ae]&&Ae>at)Ie.push("'"+this.terminals_[Ae]+"'");if(x.showPosition)ze="Parse error on line "+(xe+1)+`:
|
|
2
|
-
`+x.showPosition()+`
|
|
3
|
-
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[w]||w)+"'";else ze="Parse error on line "+(xe+1)+": Unexpected "+(w==$e?"end of input":"'"+(this.terminals_[w]||w)+"'");this.parseError(ze,{text:x.match,token:this.terminals_[w]||w,line:x.yylineno,loc:Ge,expected:Ie})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+w);switch(V[0]){case 1:if(f.push(w),O.push(x.yytext),t.push(x.yylloc),f.push(V[1]),w=null,!Ye){if(Xe=x.yyleng,a=x.yytext,xe=x.yylineno,Ge=x.yylloc,Je>0)Je--}else w=Ye,Ye=null;break;case 2:if(F=this.productions_[V[1]][1],ee.$=O[O.length-F],ee._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ot)ee._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]];if(Pe=this.performAction.apply(ee,[a,Xe,xe,H.yy,V[1],O,t].concat(nt)),typeof Pe<"u")return Pe;if(F)f=f.slice(0,-1*F*2),O=O.slice(0,-1*F),t=t.slice(0,-1*F);f.push(this.productions_[V[1]][0]),O.push(ee.$),t.push(ee._$),tt=ke[f[f.length-2]][f[f.length-1]],f.push(tt);break;case 3:return!0}}return!0},"parse")},rt=function(){var q={EOF:1,parseError:e(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw Error(h)},"parseError"),setInput:e(function(l,h){if(this.yy=h||this.yy||{},this._input=l,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];return this.offset=0,this},"setInput"),input:e(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var h=l.match(/(?:\r\n?|\n).*/g);if(h)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),l},"input"),unput:e(function(l){var h=l.length,f=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var O=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===n.length?this.yylloc.first_column:0)+n[n.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges)this.yylloc.range=[O[0],O[0]+this.yyleng-h];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var l=this.match;if(l.length<20)l+=this._input.substr(0,20-l.length);return(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var l=this.pastInput(),h=Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
|
-
`+h+"^"},"showPosition"),test_match:e(function(l,h){var f,n,O;if(this.options.backtrack_lexer){if(O={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)O.yylloc.range=this.yylloc.range.slice(0)}if(n=l[0].match(/(?:\r\n?|\n).*/g),n)this.yylineno+=n.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var t in O)this[t]=O[t];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var l,h,f,n;if(!this._more)this.yytext="",this.match="";var O=this._currentRules();for(var t=0;t<O.length;t++)if(f=this._input.match(this.rules[O[t]]),f&&(!h||f[0].length>h[0].length)){if(h=f,n=t,this.options.backtrack_lexer)if(l=this.test_match(f,O[t]),l!==!1)return l;else if(this._backtrack){h=!1;continue}else return!1;else if(!this.options.flex)break}if(h){if(l=this.test_match(h,O[n]),l!==!1)return l;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:e(function(h){this.conditionStack.push(h)},"begin"),popState:e(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:e(function(h){this.begin(h)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(h,f,n,O){var t=O;switch(n){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return f.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return f.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,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,75,76,77,80,81,82],inclusive:!0}}};return q}();Me.lexer=rt;function Ne(){this.yy={}}return e(Ne,"Parser"),Ne.prototype=Me,Me.Parser=Ne,new Ne}();Ue.parser=Ue;var ct=Ue,ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=I,this.getDiagramTitle=L,this.getConfig=e(()=>s().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{e(this,"ErDB")}addEntity(i,c=""){if(!this.entities.has(i))this.entities.set(i,{id:`entity-${i}-${this.entities.size}`,label:i,attributes:[],alias:c,shape:"erBox",look:s().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),r.info("Added new entity :",i);else if(!this.entities.get(i)?.alias&&c)this.entities.get(i).alias=c,r.info(`Add alias '${c}' to entity '${i}'`);return this.entities.get(i)}getEntity(i){return this.entities.get(i)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(i,c){let b=this.addEntity(i),o;for(o=c.length-1;o>=0;o--){if(!c[o].keys)c[o].keys=[];if(!c[o].comment)c[o].comment="";b.attributes.push(c[o]),r.debug("Added attribute ",c[o].name)}}addRelationship(i,c,b,o){let u;if(this.subGraphLookup.has(i))u=i;else{let _=this.addEntity(i);if(!_)return;u=_.id}let g;if(this.subGraphLookup.has(b))g=b;else{let _=this.addEntity(b);if(!_)return;g=_.id}let R={entityA:u,roleA:c,entityB:g,relSpec:o};this.relationships.push(R),r.debug("Added new relationship :",R)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(i){this.direction=i}getCompiledStyles(i){let c=[];for(let b of i){let o=this.classes.get(b);if(o?.styles)c=[...c,...o.styles??[]].map((u)=>u.trim());if(o?.textStyles)c=[...c,...o.textStyles??[]].map((u)=>u.trim())}return c}addCssStyles(i,c){for(let b of i){let o=this.entities.get(b),u=this.subGraphLookup.get(b);if(!c)continue;if(o)for(let g of c)o.cssStyles.push(g);if(u){if(!u.cssStyles)u.cssStyles=[];for(let g of c)u.cssStyles.push(g)}}}addClass(i,c){i.forEach((b)=>{let o=this.classes.get(b);if(o===void 0)o={id:b,styles:[],textStyles:[]},this.classes.set(b,o);if(c)c.forEach(function(u){if(/color/.exec(u)){let g=u.replace("fill","bgFill");o.textStyles.push(g)}o.styles.push(u)})})}addSubGraph(i,c,b){let o=i.text.trim(),u=b.text,R=e((m)=>{let B=new Set,W;return{nodeList:m.filter((D)=>{if(D?.stmt){if(D.stmt==="dir")W=D.value;return!1}if(typeof D!=="string")return!1;let Y=D.trim();if(!Y)return!1;if(B.has(Y))return!1;return B.add(Y),!0}),dir:W}},"uniq")(c.flat()),{nodeList:_,dir:v}=R;o=o??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let k={id:o,nodes:_,title:u.trim(),classes:[],cssStyles:[],dir:v,labelType:this.sanitizeNodeLabelType(b?.type)};return r.info("Adding",k.id,k.nodes,k.dir),k.nodes=this.makeUniq(k,this.subGraphs).nodes,this.subGraphs.push(k),this.subGraphLookup.set(o,k),o}getSubGraphs(){return this.subGraphs}setClass(i,c){for(let b of i){let o=this.entities.get(b);if(o)for(let g of c)o.cssClasses+=" "+g;let u=this.subGraphLookup.get(b);if(u)for(let g of c)u.classes.push(g)}}subgraphNodeCache(i){let c=new Set;for(let b of i)for(let o of b.nodes)c.add(o);return c}makeUniq(i,c){let b=this.subgraphNodeCache(c),o=[];return i.nodes.forEach((u,g)=>{if(b.has(u))r.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`);else o.push(i.nodes[g])}),{nodes:o}}sanitizeText(i){return y.sanitizeText(i,s())}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,C()}getData(){let i=[],c=[],b=s(),o=this.getSubGraphs(),u=new Map,g=new Map;for(let k=o.length-1;k>=0;k--){let m=o[k];if(m.nodes.length>0)g.set(m.id,!0);for(let B of m.nodes)u.set(B,m.id)}for(let k=o.length-1;k>=0;k--){let m=o[k];i.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:u.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssStyles:m.cssStyles,cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:b.look})}let R=new Set(o.map((k)=>k.id)),_=0;for(let k of this.entities.keys()){if(R.has(k))continue;let m=this.entities.get(k);if(m)m.cssCompiledStyles=this.getCompiledStyles(m.cssClasses.split(" ")),m.colorIndex=_++,i.push({...m,parentId:u.get(k),isGroup:!1})}let v=0;for(let k of this.relationships){let m={id:Fe(k.entityA,k.entityB,{prefix:"id",counter:v++}),type:"normal",curve:"basis",start:k.entityA,end:k.entityB,label:k.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:k.relSpec.cardB.toLowerCase(),arrowTypeEnd:k.relSpec.cardA.toLowerCase(),pattern:k.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};c.push(m)}return{nodes:i,edges:c,other:{},config:b,direction:this.direction}}},it={};Zt(it,{draw:()=>ut});var ut=e(async function(i,c,b,o){r.info("REF0:"),r.info("Drawing er diagram (unified)",c);let{securityLevel:u,er:g,layout:R}=s(),_=o.db.getData(),v=he(c,u);_.type=o.type,_.layoutAlgorithm=ye(R),_.config.flowchart.nodeSpacing=g?.nodeSpacing||140,_.config.flowchart.rankSpacing=g?.rankSpacing||80,_.direction=o.db.getDirection();let{config:k}=_,{look:m}=k;if(m==="neo")_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else _.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];_.diagramId=c,await ge(_,v);let B=v.selectAll('[id*="-background"]');if(Array.from(B).length>0)B.each(function(){let X=p(this),Y=X.attr("id").replace("-background",""),te=v.select(`#${CSS.escape(Y)}`);if(!te.empty()){let G=te.attr("transform");X.attr("transform",G)}});let W=8;N.insertTitle(v,"erDiagramTitleText",g?.titleTopMargin??25,o.db.getDiagramTitle()),se(v,W,"erDiagram",g?.useMaxWidth??!0)},"draw"),st=e((i,c)=>{let b=Ot,o=b(i,"r"),u=b(i,"g"),g=b(i,"b");return le(o,u,g,c)},"fade"),dt=e((i)=>{let{theme:c,bkgColorArray:b,borderColorArray:o}=i;if(!ae(c,o))return"";let u=ie(i.look),g=ce(b),R="";for(let _=0;_<ft(o);_++){let v=o[_],k=g?`fill: ${b[_%b.length]};`:"";R+=`
|
|
7
|
-
|
|
8
|
-
[data-look="${u}"][data-color-id="color-${_}"].node path {
|
|
9
|
-
stroke: ${v};
|
|
10
|
-
${k}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[data-look="${u}"][data-color-id="color-${_}"].node rect {
|
|
14
|
-
stroke: ${v};
|
|
15
|
-
${k}
|
|
16
|
-
}
|
|
17
|
-
`}return R},"genColor"),bt=e((i)=>{let{look:c,theme:b,erEdgeLabelBackground:o,strokeWidth:u}=i;return`
|
|
18
|
-
${dt(i)}
|
|
19
|
-
.entityBox {
|
|
20
|
-
fill: ${i.mainBkg};
|
|
21
|
-
stroke: ${i.nodeBorder};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.relationshipLabelBox {
|
|
25
|
-
fill: ${i.tertiaryColor};
|
|
26
|
-
opacity: 0.7;
|
|
27
|
-
background-color: ${i.tertiaryColor};
|
|
28
|
-
rect {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.labelBkg {
|
|
34
|
-
background-color: ${Xr.has(b)&&o?o:st(i.tertiaryColor,0.5)};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.edgeLabel {
|
|
38
|
-
background-color: ${Xr.has(b)&&o?o:i.edgeLabelBackground};
|
|
39
|
-
}
|
|
40
|
-
.edgeLabel .label rect {
|
|
41
|
-
fill: ${Xr.has(b)&&o?o:i.edgeLabelBackground};
|
|
42
|
-
}
|
|
43
|
-
.edgeLabel .label text {
|
|
44
|
-
fill: ${i.textColor};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.edgeLabel .label {
|
|
48
|
-
fill: ${i.nodeBorder};
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.label {
|
|
53
|
-
font-family: ${i.fontFamily};
|
|
54
|
-
color: ${i.nodeTextColor||i.textColor};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.edge-pattern-dashed {
|
|
58
|
-
stroke-dasharray: 8,8;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.node rect,
|
|
62
|
-
.node circle,
|
|
63
|
-
.node ellipse,
|
|
64
|
-
.node polygon
|
|
65
|
-
{
|
|
66
|
-
fill: ${i.mainBkg};
|
|
67
|
-
stroke: ${i.nodeBorder};
|
|
68
|
-
stroke-width: ${c==="neo"?u:"1px"};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.relationshipLine {
|
|
72
|
-
stroke: ${i.lineColor};
|
|
73
|
-
stroke-width: ${c==="neo"?u:"1px"};
|
|
74
|
-
fill: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.marker {
|
|
78
|
-
fill: none !important;
|
|
79
|
-
stroke: ${i.lineColor} !important;
|
|
80
|
-
stroke-width: 1;
|
|
81
|
-
}
|
|
82
|
-
[data-look=neo].labelBkg {
|
|
83
|
-
background-color: ${st(i.tertiaryColor,0.5)};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.cluster rect {
|
|
87
|
-
fill: ${i.clusterBkg??i.mainBkg};
|
|
88
|
-
stroke: ${i.clusterBorder??i.nodeBorder};
|
|
89
|
-
stroke-width: 1px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.cluster text {
|
|
93
|
-
fill: ${i.titleColor??i.textColor};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.cluster-label text {
|
|
97
|
-
fill: ${i.titleColor??i.textColor};
|
|
98
|
-
}
|
|
99
|
-
`},"getStyles"),pt=bt,Mt={parser:ct,get db(){return new ht},renderer:it,styles:pt};export{Mt as diagram};
|
package/web/chunk-ne0v8mfb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e,r,b,s,N,M,Ct,St,go,ht,Qt,yo,Wn,Me,vo,Vi,Tt,Gi,Jt,Yn}from"./chunk-wvdehm9y.js";import{Q}from"./chunk-fh2vj0wv.js";import{x}from"./chunk-4bzqrwr0.js";function sa(t,{edgePathsClass:i="edges edgePaths"}={}){let n=t.insert("g").attr("class","root"),a=n.insert("g").attr("class","clusters"),o=n.insert("g").attr("class",i),c=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:a,edgePaths:o,edgeLabels:c,nodes:u,rootGroups:n}}e(sa,"createLayoutElementGroups");async function S(t,i,n){if(i.label){let{shapeSvg:a,bbox:o}=await M(t,n===void 0?i:{...i,width:n});i.labelBBox={width:o.width,height:o.height},a.remove()}else i.labelBBox={width:0,height:0}}e(S,"measureGroupLabel");async function la(t,i,n){let a=await St(t,i,n),o=a.node()?.getBBox()??{width:0,height:0};return i.width=o.width,i.height=o.height,a}e(la,"insertMeasuredNode");function k(t,i,n){let a=t,o=new Set;while(a){if(a.dir)return a.dir;if(!a.parentId||o.has(a.parentId))break;o.add(a.parentId),a=i.get(a.parentId)}return n}e(k,"resolveNodeDir");async function R(t,i,n={}){let a=new Q({multigraph:!0,compound:!0}),o=[...i.edges],c=s(),u=sa(t),{edgeLabels:d,nodes:l}=u,g=new Map,h=new Map(i.nodes.map((f)=>[f.id,f])),C=i.direction,w=t.node()!=null;await Promise.all(i.nodes.map(async(f)=>{if(f.isGroup){if(w){let p=n.unwrapGroupLabels&&f.labelType!=="markdown";await S(l,f,p?Number.POSITIVE_INFINITY:void 0)}a.setNode(f.id,{...f})}else{if(w){let p=await la(l,f,{config:c,dir:k(f,h,C)});g.set(f.id,p)}a.setNode(f.id,{...f})}}));for(let f of o){if(w&&Vi(f))await Tt(d,f);if(a.setEdge(f.start,f.end,{...f},f.id),!i.edges.some((E)=>E.id===f.id))i.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (x("pjkdrgm0"),import("./chunk-pjkdrgm0.js"));f(t,i)}return{graph:a,groups:u,nodeElements:g}}e(R,"createGraphWithElements");var G=new Map,m=new Map,T=new Map,Z=e(()=>{m.clear(),T.clear(),G.clear()},"clear"),v=e((t,i)=>{let n=m.get(i)||[];return r.trace("In isDescendant",i," ",t," = ",n.includes(t)),n.includes(t)},"isDescendant"),I=e((t,i)=>{let n=m.get(i)||[];if(r.info("Descendants of ",i," is ",n),r.info("Edge is ",t),t.v===i||t.w===i)return!1;if(!n)return r.debug("Tilt, ",i,",not in descendants"),!1;return n.includes(t.v)||v(t.v,i)||v(t.w,i)||n.includes(t.w)},"edgeInCluster"),P=e((t,i,n,a)=>{r.debug("Copying children of ",t,"root",a,"data",i.node(t),a);let o=i.children(t)||[];if(t!==a)o.push(t);r.debug("Copying (nodes) clusterId",t,"nodes",o),o.forEach((c)=>{if(i.children(c).length>0)P(c,i,n,a);else{let u=i.node(c);if(r.info("cp ",c," to ",a," with parent ",t),n.setNode(c,u),a!==i.parent(c))r.debug("Setting parent",c,i.parent(c)),n.setParent(c,i.parent(c));if(t!==a&&c!==t)r.debug("Setting parent",c,t),n.setParent(c,t);else r.info("In copy ",t,"root",a,"data",i.node(t),a),r.debug("Not Setting parent for node=",c,"cluster!==rootId",t!==a,"node!==clusterId",c!==t);let d=i.edges(c);r.debug("Copying Edges",d),d.forEach((l)=>{r.info("Edge",l);let g=i.edge(l.v,l.w,l.name);r.info("Edge data",g,a);try{if(I(l,a))r.info("Copying as ",l.v,l.w,g,l.name),n.setEdge(l.v,l.w,g,l.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else r.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",a," clusterId:",t)}catch(h){r.error(h)}})}r.debug("Removing node",c),i.removeNode(c)})},"copy"),B=e((t,i)=>{let n=i.children(t),a=[...n];for(let o of n)T.set(o,t),a=[...a,...B(o,i)];return a},"extractDescendants"),ee=e((t,i,n)=>{let a=t.edges().filter((l)=>l.v===i||l.w===i),o=t.edges().filter((l)=>l.v===n||l.w===n),c=a.map((l)=>({v:l.v===i?n:l.v,w:l.w===i?i:l.w})),u=o.map((l)=>({v:l.v,w:l.w}));return c.filter((l)=>u.some((g)=>l.v===g.v&&l.w===g.w))},"findCommonEdges"),$n=e((t,i,n)=>{let a=i.children(t);if(r.trace("Searching children of id ",t,a),a.length<1)return t;let o;for(let c of a){let u=$n(c,i,n),d=ee(i,n,u);if(u)if(d.length>0)o=u;else return u}return o},"findNonClusterChild"),D=e((t)=>{if(!G.has(t))return t;if(!G.get(t).externalConnections)return t;if(G.has(t))return G.get(t).id;return t},"getAnchorId"),eo=e((t,i)=>{if(!t||i>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");t.nodes().forEach(function(n){if(t.children(n).length>0)r.debug("Cluster identified",n," Replacement id in edges: ",$n(n,t,n)),m.set(n,B(n,t)),G.set(n,{id:$n(n,t,n),clusterData:t.node(n)})}),t.nodes().forEach(function(n){let a=t.children(n),o=t.edges();if(a.length>0)r.debug("Cluster identified",n,m),o.forEach((c)=>{let u=v(c.v,n),d=v(c.w,n);if(u^d)r.debug("Edge: ",c," leaves cluster ",n),r.debug("Descendants of XXX ",n,": ",m.get(n)),G.get(n).externalConnections=!0});else r.debug("Not a cluster ",n,m)});for(let n of G.keys()){let a=G.get(n).id,o=t.parent(a);if(o!==n&&G.has(o)&&!G.get(o).externalConnections)G.get(n).id=o;let c=t.edges().some((u)=>u.v===n);if(a&&G.get(n)?.externalConnections&&c&&_(t,a,n)){let u=te(t,n,t.parent(a));if(u)G.get(n).id=u}}t.edges().forEach(function(n){let a=t.edge(n);r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(t.edge(n)));let{v:o,w:c}=n;if(r.debug("Fix XXX",G,"ids:",n.v,n.w,"Translating: ",G.get(n.v)," --- ",G.get(n.w)),G.get(n.v)||G.get(n.w)){if(r.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),o=D(n.v),c=D(n.w),t.removeEdge(n.v,n.w,n.name),o!==n.v){let u=t.parent(o);G.get(u).externalConnections=!0,a.fromCluster=n.v}if(c!==n.w){let u=t.parent(c);G.get(u).externalConnections=!0,a.toCluster=n.w}r.debug("Fix Replacing with XXX",o,c,n.name),t.setEdge(o,c,a,n.name)}}),A(t,0),r.trace(G)},"adjustClustersAndEdges"),A=e((t,i)=>{if(i>10){r.error("Bailing out");return}let n=t.nodes(),a=!1;for(let o of n){let c=t.children(o);a=a||c.length>0}if(!a){r.debug("Done, no node has children",t.nodes());return}r.debug("Nodes = ",n,i);for(let o of n)if(r.debug("Extracting node",o,G,G.has(o)&&!G.get(o).externalConnections,!t.parent(o),t.node(o),t.children("D")," Depth ",i),!G.has(o))r.debug("Not a cluster",o,i);else if(!G.get(o).externalConnections&&t.children(o)&&t.children(o).length>0){r.debug("Cluster without external connections, without a parent and with children",o,i);let u=t.graph().rankdir==="TB"?"LR":"TB";if(G.get(o)?.clusterData?.dir)u=G.get(o).clusterData.dir,r.debug("Fixing dir",G.get(o).clusterData.dir,u);let d=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});P(o,t,d,o),t.setNode(o,{clusterNode:!0,id:o,clusterData:G.get(o).clusterData,label:G.get(o).label,graph:d})}else r.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!G.get(o).externalConnections," no parent: ",!t.parent(o)," children ",t.children(o)&&t.children(o).length>0,t.children("D"),i),r.debug(G);n=t.nodes(),r.debug("New list of nodes",n);for(let o of n){let c=t.node(o);if(r.debug(" Now next level",o,c),c?.clusterNode)A(c.graph,i+1)}},"extractor"),X=e((t,i)=>{if(i.length===0)return[];let n=Object.assign([],i);return i.forEach((a)=>{let o=t.children(a),c=X(t,o);n=[...n,...c]}),n},"sorter"),ca=e((t)=>X(t,t.children()),"sortNodesByHierarchy"),_=e((t,i,n)=>{let a=t.parent(i);while(a&&a!==n){let o=G.get(a);if(o&&!o.externalConnections)return!0;a=t.parent(a)}return!1},"isNodeInExtractableCluster"),te=e((t,i,n)=>{let a=t.children(i)??[];for(let o of a){if(o===n||v(o,n))continue;let c=$n(o,t,i);if(!c)continue;if(!_(t,c,i))return c}return null},"findSafeAnchorNode");function lr({prepareLayout:t,measureLayout:i,runLayoutCore:n,paintLayout:a,afterPaint:o,paintOptions:c}){let u=i??F;return e(async function(l,g,h,C){let w=g.select("g");(h?.insertMarkers??Yn)(w,l.markers,l.type,l.diagramId),O();let f={element:w,helpers:h,options:C};f.preparedLayout=await t?.(l,f);let p=await u(l,f),E=await n(l,f),y={...f,measure:p};if(a)await a(l,y,E);else await j(l,y,c);await o?.(l,y,E)},"render")}e(lr,"createCommonLayoutRenderer");function O(){go(),vo(),yo(),Z()}e(O,"clearLayoutRenderState");async function F(t,{element:i},n){return await R(i,t,n)}e(F,"defaultMeasureLayout");async function j(t,i,n={}){let{measure:a}=i,{groups:o}=a;for(let u of n.getNodes?.(t,i)??t.nodes){if(n.skipNode?.(u,i))continue;await H(o,u,i,n)}let c=J(t.nodes);for(let u of t.edges){if(W(u,n))continue;await V(o,u,c,t,n,i)}}e(j,"paintLayoutData");async function H(t,i,n,a){if(i.clusterNode)ht(i);else if(z(i,n,a))await Qt(t.clusters,i);else ht(i)}e(H,"paintLayoutNode");function z(t,i,n){return t.isGroup===!0&&(n.isCluster?.(t,i)??!0)}e(z,"shouldPaintAsCluster");function J(t){let i=new Map;for(let n of t)if(n?.id)i.set(n.id,n);return i}e(J,"buildNodeLookup");function W(t,i){return t.isLayoutOnly||Boolean(i.skipEdge?.(t))}e(W,"shouldSkipPaintEdge");async function V(t,i,n,a,o,c){let u=Jt(t.edgePaths,{...i},o.clusterDb??new Map,a.type,L(i.start,i,n,c,o),L(i.end,i,n,c,o),a.diagramId,Y(i,o),a.layoutAlgorithm);if(Vi(i)){if(!Wn.has(i.id))await Tt(t.edgeLabels,i);q(i,u)}}e(V,"paintLayoutEdge");function L(t,i,n,a,o){return o.getEdgeNode?.(t,i,a)??(t?n.get(t)??{}:{})}e(L,"getRenderedNode");function Y(t,i){return typeof i.skipIntersect==="function"?i.skipIntersect(t):i.skipIntersect??!1}e(Y,"shouldSkipIntersect");function q(t,i){let n=i?.updatedPath??i?.originalPath,a=b(),{subGraphTitleTotalMargin:o}=Ct({flowchart:a.flowchart??{}});if(t.label){let c=Wn.get(t.id),{x:u,y:d}=Gi(t,i);c.attr("transform",`translate(${u}, ${d+o/2})`)}for(let[c,u]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(u){let{x:d,y:l}=K(t,c,n);Me.get(t.id)[c].attr("transform",`translate(${d}, ${l})`)}}e(q,"positionRenderedEdgeLabel");var ne={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(t,i,n){let a=t.terminalLabelCenters?.[i];if(a)return{...a};if(!n)return{x:t.x,y:t.y};let o=i.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return N.calcTerminalLabelPosition(o?10:0,ne[i],n)}e(K,"terminalLabelTranslate");
|
|
2
|
-
export{sa,la,G,$n,eo,ca,lr};
|
package/web/chunk-ngx2cp8x.js
DELETED
package/web/chunk-nxcgf7ec.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wi}from"./chunk-aqfpnhmt.js";export{wi as createPacketServices};
|
package/web/chunk-p0kvmf28.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e,r,B}from"./chunk-wvdehm9y.js";var se=e((t,i,o,n)=>{t.attr("class",o);let{width:h,height:a,x:w,y:x}=u(t,i);B(t,a,h,n);let c=m(w,x,h,a,i);t.attr("viewBox",c),r.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,n,h)=>`${t-h} ${i-h} ${o} ${n}`,"createViewBox");
|
|
2
|
-
export{se};
|
package/web/chunk-p3k7m5nr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ir}from"./chunk-aqfpnhmt.js";export{ir as createRailroadAbnfServices};
|