@bkm016/basalt 0.1.4 → 0.1.5
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 +53 -5
- package/{chunk-y648fzx0.js → chunk-0039s4jt.js} +3 -3
- package/{chunk-m40gxwq4.js → chunk-00gwse5r.js} +3 -3
- package/{chunk-t6zs4kw0.js → chunk-0fwdxd45.js} +2 -2
- package/{chunk-nmca5h6m.js → chunk-0j0qggej.js} +1 -1
- package/chunk-0n99m9m4.js +2 -0
- package/{chunk-pjyn2s97.js → chunk-0stvywr8.js} +1 -1
- package/{chunk-ztsjgssj.js → chunk-1xa7d5mh.js} +1 -1
- package/chunk-2nb3d92s.js +2 -0
- package/chunk-2nkfxhef.js +3868 -0
- package/chunk-2pa1z37c.js +2 -0
- package/{chunk-fw2bpqmw.js → chunk-2qcpq99g.js} +1 -1
- package/{chunk-981f9dw8.js → chunk-36cqq0ga.js} +6 -6
- package/{chunk-whvj83b7.js → chunk-3c330qna.js} +2 -2
- package/chunk-3k627vf2.js +3 -0
- package/{chunk-r7fpkb49.js → chunk-3k7ejpkc.js} +1 -1
- package/chunk-4g5f43ea.js +3 -0
- package/{chunk-fjtvjrkg.js → chunk-539ekagy.js} +4 -4
- package/{chunk-97rzj7f6.js → chunk-5v4g21rw.js} +1 -1
- package/{chunk-r0scgfwx.js → chunk-6dsq0fns.js} +2 -2
- package/{chunk-pbcy6zdt.js → chunk-7as47pcw.js} +1 -1
- package/{chunk-g2t6t8fk.js → chunk-7jezts2n.js} +2 -2
- package/{chunk-8wc8qdx8.js → chunk-7qq99360.js} +6 -6
- package/{chunk-9rmqgc3c.js → chunk-7tgqhveh.js} +15 -15
- package/{chunk-mvfsxdx6.js → chunk-7w0mefgk.js} +10 -10
- package/{chunk-y58ygzn9.js → chunk-818nd6s1.js} +3 -3
- package/{chunk-vv7fp27r.js → chunk-8mezk0cb.js} +2 -2
- package/{chunk-q7t30zz2.js → chunk-8xb636vr.js} +5 -5
- package/{chunk-ev6yvy5y.js → chunk-980drajf.js} +15 -15
- package/{chunk-3x94302m.js → chunk-9z7sdh5e.js} +3 -3
- package/{chunk-zggzfa7j.js → chunk-a4b75ekk.js} +2 -2
- package/{chunk-2zp1mv3q.js → chunk-ar3dbfp9.js} +1 -1
- package/{chunk-vk1gxk1t.js → chunk-aw65h276.js} +1 -1
- package/{chunk-f3xadvab.js → chunk-b9fqretv.js} +2 -2
- package/{chunk-7tbya5b5.js → chunk-bgkegf0k.js} +22 -22
- package/{chunk-0y7ne3d0.js → chunk-bwawt15q.js} +2 -2
- package/{chunk-pxsrqrd0.js → chunk-c4qr1f41.js} +2 -2
- package/chunk-dddsrff6.js +478 -0
- package/{chunk-xfvvh1s5.js → chunk-e63c1186.js} +1 -1
- package/{chunk-em187cy3.js → chunk-ebzkckyw.js} +2 -2
- package/chunk-eegztdzb.js +2 -0
- package/{chunk-rmj5b73e.js → chunk-gw05p4g3.js} +1 -1
- package/{chunk-k23t7vhs.js → chunk-h1rypb99.js} +5 -5
- package/{chunk-akr0a8nc.js → chunk-hq5ke1yp.js} +1 -1
- package/{chunk-jwdb0ccj.js → chunk-jvwg4rn1.js} +3 -3
- package/{chunk-7afmgncg.js → chunk-jyrwk08p.js} +1 -1
- package/chunk-kns4kv7b.js +3 -0
- package/{chunk-8d46jtbj.js → chunk-mat08ab1.js} +2 -2
- package/{chunk-jk25nt60.js → chunk-mkp28k1x.js} +2 -2
- package/{chunk-3ct2tkr8.js → chunk-npez1492.js} +2 -2
- package/{chunk-shadcb9z.js → chunk-nx3jnbv8.js} +2 -2
- package/{chunk-ykens1hy.js → chunk-nxkmd29x.js} +1 -1
- package/{chunk-y7nma9rk.js → chunk-pjr91g6k.js} +2 -2
- package/{chunk-m8vkwdgr.js → chunk-r0jc8e7t.js} +4 -4
- package/chunk-rxj6tct8.js +2 -0
- package/{chunk-362g64pd.js → chunk-sqaam5ak.js} +1 -1
- package/{chunk-4w17tzp5.js → chunk-srjgvdvs.js} +12 -12
- package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
- package/{chunk-k6w6y71k.js → chunk-t7sc0wwc.js} +2 -2
- package/{chunk-kp22kaez.js → chunk-v4k3qmdm.js} +2 -2
- package/{chunk-1vd0f74z.js → chunk-vt1anydc.js} +4 -4
- package/chunk-wd3z74av.js +2 -0
- package/{chunk-xh3vr5vz.js → chunk-wfyrfvfn.js} +1 -1
- package/{chunk-2hbfk5xd.js → chunk-wnzvnskb.js} +2 -2
- package/{chunk-cjc90f84.js → chunk-x89em726.js} +3 -3
- package/{chunk-vexrrw1b.js → chunk-xtq1xpq0.js} +2 -2
- package/chunk-yna8bwqc.js +2 -0
- package/{chunk-aky4tztg.js → chunk-zn0g0859.js} +2 -2
- package/{chunk-qe0teyn1.js → chunk-zrkh5dw7.js} +1 -1
- package/chunk-zzwjt7fp.js +2 -0
- package/compiled.js +12 -12
- package/package.json +1 -1
- package/ui-test-worker.js +20 -20
- package/web/chunk-01hcjafh.js +2 -0
- package/web/{chunk-n8sky2q6.js → chunk-07agqp8h.js} +1 -1
- package/web/{chunk-hvw3gn2a.js → chunk-0k9aec1s.js} +20 -20
- package/web/{chunk-74j07k8k.js → chunk-0p1nmj5n.js} +2 -2
- package/web/chunk-0qr891eq.js +70 -0
- package/web/{chunk-ts7zrf5b.js → chunk-0whceqes.js} +2 -2
- package/web/chunk-0ytga215.js +1 -0
- package/web/{chunk-0z0y25zf.js → chunk-12z7d0hp.js} +3 -3
- package/web/chunk-14bad871.js +2 -0
- package/web/chunk-1amzv4ha.js +1 -0
- package/web/chunk-1cfh0e2e.js +324 -0
- package/web/chunk-1pasbxwh.js +89 -0
- package/web/{chunk-4d3a7xs2.js → chunk-1s2hp6h1.js} +1 -1
- package/web/chunk-26bwh1sb.js +169 -0
- package/web/{chunk-wnskxerq.js → chunk-2nht58dc.js} +5 -5
- package/web/chunk-2y0rc1fe.js +1 -0
- package/web/chunk-3hkgdw6f.js +36 -0
- package/web/chunk-4a4j030b.js +1 -0
- package/web/{chunk-nvhmq4z5.js → chunk-4m3zdd41.js} +6 -6
- package/web/chunk-4w298aqs.js +1 -0
- package/web/{chunk-t4c8xavd.js → chunk-56krfj3b.js} +7 -7
- package/web/{chunk-ds7srg4p.js → chunk-5nda24gv.js} +1 -1
- package/web/{chunk-42e3b9hv.js → chunk-5shygfgb.js} +19 -19
- package/web/chunk-65nwc4cf.js +1 -0
- package/web/chunk-6bwgdvf6.js +1 -0
- package/web/chunk-6enn8p66.js +1 -0
- package/web/chunk-6stt9d18.js +1 -0
- package/web/{chunk-4gavbw65.js → chunk-7a3c137d.js} +1 -1
- package/web/chunk-7e47b1sn.js +1 -0
- package/web/chunk-7pypx5h8.js +2 -0
- package/web/chunk-7znyd1mj.js +39 -0
- package/web/{chunk-3re8y26v.js → chunk-892nf39p.js} +7 -7
- package/web/chunk-8r0s8tx7.js +1 -0
- package/web/chunk-9dy7z3ej.js +2 -0
- package/web/chunk-9mq2cdtq.js +1 -0
- package/web/chunk-9w5tf22s.js +1 -0
- package/web/{chunk-bhsaj6qq.js → chunk-9xgspn75.js} +2 -2
- package/web/{chunk-zx8zec24.js → chunk-abhad4zj.js} +56 -56
- package/web/chunk-advfpyb9.js +140 -0
- package/web/chunk-affear07.js +3 -0
- package/web/chunk-ahztazsg.js +1 -0
- package/web/chunk-aqt7kc3s.js +106 -0
- package/web/chunk-b5hah4mf.js +1 -0
- package/web/chunk-b8tfetd8.js +1 -0
- package/web/{chunk-9cx1be43.js → chunk-bnb9xhgw.js} +15 -15
- package/web/{chunk-n1dmrz44.js → chunk-c01176kn.js} +2 -2
- package/web/chunk-c3nn0vvc.js +1 -0
- package/web/chunk-c53xmf48.js +30 -0
- package/web/chunk-ckgpy4r4.js +1 -0
- package/web/chunk-crzseqbx.js +24 -0
- package/web/chunk-d22wq71s.js +1 -0
- package/web/{chunk-pws2seas.js → chunk-d60dpf69.js} +19 -19
- package/web/{chunk-6cnek1xh.js → chunk-d6ddkh6e.js} +1 -1
- package/web/{chunk-cg3jterp.js → chunk-d9wdsjkk.js} +2 -2
- package/web/{chunk-ttg6tbwx.js → chunk-da7m1kva.js} +2 -2
- package/web/chunk-dbnrfxt1.js +8 -0
- package/web/chunk-ddxf8e84.js +1 -0
- package/web/chunk-dzg1pv80.js +200 -0
- package/web/{chunk-yqbnps3a.js → chunk-e8h45nyr.js} +1 -1
- package/web/chunk-ej9vb61c.js +1 -0
- package/web/chunk-f9k3xrwb.js +2 -0
- package/web/{chunk-fh2vj0wv.js → chunk-fjag6yg8.js} +2 -2
- package/web/chunk-fnnrrzqa.js +78 -0
- package/web/{chunk-n90cqdvg.js → chunk-fv6vm14n.js} +2 -2
- package/web/{chunk-b1bgzz66.js → chunk-g5jxwkdh.js} +1 -1
- package/web/{chunk-sspfxp5e.js → chunk-g8kkc6vz.js} +1 -1
- package/web/chunk-g9sqbafw.js +2 -0
- package/web/{chunk-0h0vb6gt.js → chunk-gcv91974.js} +4 -4
- package/web/{chunk-sfg2wkhe.js → chunk-gxqaa4sv.js} +7 -7
- package/web/chunk-gxsb5tx3.js +1 -0
- package/web/{chunk-54thej0t.js → chunk-gyp6v7jd.js} +2 -2
- package/web/chunk-h0c42zy3.js +1 -0
- package/web/chunk-h2ag4kvz.js +2 -0
- package/web/{chunk-kmr7r9xj.js → chunk-h6gh63xj.js} +2 -2
- package/web/{chunk-6m69hczt.js → chunk-h6k1x096.js} +2 -2
- package/web/{chunk-24mfx6w1.js → chunk-j1bw5v1g.js} +2 -2
- package/web/chunk-j34q5jn6.js +1 -0
- package/web/{chunk-0pbjgdgp.js → chunk-ja7w629n.js} +2 -2
- package/web/{chunk-zbj1trar.js → chunk-jam45rqg.js} +2 -2
- package/web/{chunk-f4tacm06.js → chunk-jcdw85mv.js} +1 -1
- package/web/chunk-jfvxxp5c.js +1 -0
- package/web/chunk-jg6fmz2d.js +1 -0
- package/web/{chunk-92ssjk2y.js → chunk-k67v6dyg.js} +40 -40
- package/web/chunk-ka7c5rhx.js +99 -0
- package/web/{chunk-df5zx17h.js → chunk-kza0t0gj.js} +1 -1
- package/web/{chunk-0b47eyrf.js → chunk-m8knte9z.js} +1 -1
- package/web/{chunk-v5cnt7c8.js → chunk-mnzramhc.js} +1 -1
- package/web/{chunk-a408enpy.js → chunk-mpfgr049.js} +1 -1
- package/web/chunk-mz1dabxh.js +1 -0
- package/web/chunk-mz9b5bsa.js +1 -0
- package/web/chunk-p53n0hwr.js +1 -0
- package/web/chunk-paywgcf7.js +40 -0
- package/web/chunk-pfcnr9tw.js +1 -0
- package/web/chunk-pyg1mr80.js +303 -0
- package/web/chunk-q7xkscc5.js +1 -0
- package/web/{chunk-xzp7jf7e.js → chunk-qcge7d6s.js} +2 -2
- package/web/chunk-qmbgb79a.js +1139 -0
- package/web/{chunk-pjkdrgm0.js → chunk-qq5gh5zr.js} +1 -1
- package/web/chunk-qrdh9j62.js +1 -0
- package/web/{chunk-9t5dnjaz.js → chunk-s24qs1bn.js} +9 -9
- package/web/chunk-sd22cnjy.js +1 -0
- package/web/{chunk-ydtrc1ay.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-rykfak98.js → chunk-sf101c23.js} +2 -2
- package/web/{chunk-1gbd61z0.js → chunk-sfq6cw45.js} +2 -2
- package/web/chunk-svqj4az8.js +1 -0
- package/web/chunk-t7jwyvvr.js +1 -0
- package/web/{chunk-rvrf0f3h.js → chunk-tcp77cp2.js} +2 -2
- package/web/chunk-tf18d2dk.css +1 -0
- package/web/chunk-thbqwq6b.js +1 -0
- package/web/chunk-v0g4cqc1.js +4 -0
- package/web/chunk-vhzys0rr.js +292 -0
- package/web/chunk-vnt34mkb.js +1 -0
- package/web/chunk-vqfz99ff.js +1 -0
- package/web/chunk-vttgyb5v.js +2 -0
- package/web/chunk-x7sb3bwf.js +370 -0
- package/web/chunk-xce8n339.js +1 -0
- package/web/{chunk-kwccs9f6.js → chunk-xk1t58c4.js} +12 -12
- package/web/chunk-xsrvw7dt.js +4 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-2j4m0bh1.js → chunk-y7jq61nv.js} +2 -2
- package/web/{chunk-1eg9sbbt.js → chunk-ybw6vgf6.js} +2 -2
- package/web/{chunk-ybrf9mhz.js → chunk-yvgs6bm3.js} +4 -4
- package/web/{chunk-b53bfkys.js → chunk-z4aj066q.js} +1 -1
- package/web/chunk-zazs8p6c.js +1 -0
- package/web/{chunk-aqfpnhmt.js → chunk-zc1mk10n.js} +19 -19
- package/web/{chunk-d11v5s7w.js → chunk-zqht0jzx.js} +6 -6
- package/web/{chunk-pz9ps2jm.js → chunk-zz397b0v.js} +12 -12
- 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-bpw6q7g0.js +0 -3
- 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-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-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-5z4jcqct.js +0 -200
- 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-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-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-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-a497tykb.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import{e,y,B,C,S,E,T,A,I,L,s,V,Ge,m}from"./chunk-wvdehm9y.js";var dt=function(){var t=e(function(H,i,a,n){for(a=a||{},n=H.length;n--;a[H[n]]=i);return a},"o"),f=[1,4],l=[1,14],o=[1,12],h=[1,13],p=[6,7,8],k=[1,20],d=[1,18],x=[1,19],u=[6,7,11],_=[1,6,13,14],b=[1,23],M=[1,24],P=[1,6,7,11,13,14],Z={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(i,a,n,c,g,r,N){var v=r.length-1;switch(g){case 6:case 7:return c;case 15:c.addNode(r[v-1].length,r[v].trim());break;case 16:c.addNode(0,r[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:l,7:[1,10],9:9,12:11,13:o,14:h},t(p,[2,3]),{1:[2,2]},t(p,[2,4]),t(p,[2,5]),{1:[2,6],6:l,12:15,13:o,14:h},{6:l,9:16,12:11,13:o,14:h},{6:k,7:d,10:17,11:x},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:k,7:d,10:22,11:x},{1:[2,7],6:l,12:15,13:o,14:h},t(_,[2,14],{7:b,11:M}),t(P,[2,8]),t(P,[2,9]),t(P,[2,10]),t(u,[2,15]),t(_,[2,13],{7:b,11:M}),t(P,[2,11]),t(P,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(i,a){if(a.recoverable)this.trace(i);else{var n=Error(i);throw n.hash=a,n}},"parseError"),parse:e(function(i){var a=this,n=[0],c=[],g=[null],r=[],N=this.table,v="",F=0,D=0,W=0,j=2,Y=1,rt=r.slice.call(arguments,1),w=Object.create(this.lexer),O={yy:{}};for(var q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,q))O.yy[q]=this.yy[q];if(w.setInput(i,O.yy),O.yy.lexer=w,O.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var Q=w.yylloc;r.push(Q);var lt=w.options&&w.options.ranges;if(typeof O.yy.parseError==="function")this.parseError=O.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(U){n.length=n.length-2*U,g.length=g.length-U,r.length=r.length-U}e(xt,"popStack");function yt(){var U=c.pop()||w.lex()||Y;if(typeof U!=="number"){if(U instanceof Array)c=U,U=c.pop();U=a.symbols_[U]||U}return U}e(yt,"lex");var z,ot,J,G,Vt,ht,tt={},st,K,ft,nt;while(!0){if(J=n[n.length-1],this.defaultActions[J])G=this.defaultActions[J];else{if(z===null||typeof z>"u")z=yt();G=N[J]&&N[J][z]}if(typeof G>"u"||!G.length||!G[0]){var ct="";nt=[];for(st in N[J])if(this.terminals_[st]&&st>j)nt.push("'"+this.terminals_[st]+"'");if(w.showPosition)ct="Parse error on line "+(F+1)+`:
|
|
2
|
-
`+w.showPosition()+`
|
|
3
|
-
Expecting `+nt.join(", ")+", got '"+(this.terminals_[z]||z)+"'";else ct="Parse error on line "+(F+1)+": Unexpected "+(z==Y?"end of input":"'"+(this.terminals_[z]||z)+"'");this.parseError(ct,{text:w.match,token:this.terminals_[z]||z,line:w.yylineno,loc:Q,expected:nt})}if(G[0]instanceof Array&&G.length>1)throw Error("Parse Error: multiple actions possible at state: "+J+", token: "+z);switch(G[0]){case 1:if(n.push(z),g.push(w.yytext),r.push(w.yylloc),n.push(G[1]),z=null,!ot){if(D=w.yyleng,v=w.yytext,F=w.yylineno,Q=w.yylloc,W>0)W--}else z=ot,ot=null;break;case 2:if(K=this.productions_[G[1]][1],tt.$=g[g.length-K],tt._$={first_line:r[r.length-(K||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(K||1)].first_column,last_column:r[r.length-1].last_column},lt)tt._$.range=[r[r.length-(K||1)].range[0],r[r.length-1].range[1]];if(ht=this.performAction.apply(tt,[v,D,F,O.yy,G[1],g,r].concat(rt)),typeof ht<"u")return ht;if(K)n=n.slice(0,-1*K*2),g=g.slice(0,-1*K),r=r.slice(0,-1*K);n.push(this.productions_[G[1]][0]),g.push(tt.$),r.push(tt._$),ft=N[n[n.length-2]][n[n.length-1]],n.push(ft);break;case 3:return!0}}return!0},"parse")},X=function(){var H={EOF:1,parseError:e(function(a,n){if(this.yy.parser)this.yy.parser.parseError(a,n);else throw Error(a)},"parseError"),setInput:e(function(i,a){if(this.yy=a||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);if(a)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),i},"input"),unput:e(function(i){var a=i.length,n=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var c=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),n.length-1)this.yylineno-=n.length-1;var g=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:n?(n.length===c.length?this.yylloc.first_column:0)+c[c.length-n.length].length-n[0].length:this.yylloc.first_column-a},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-a];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(i){this.unput(this.match.slice(i))},"less"),pastInput:e(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var i=this.pastInput(),a=Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+a+"^"},"showPosition"),test_match:e(function(i,a){var n,c,g;if(this.options.backtrack_lexer){if(g={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)g.yylloc.range=this.yylloc.range.slice(0)}if(c=i[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],n=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(n)return n;else if(this._backtrack){for(var r in g)this[r]=g[r];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,a,n,c;if(!this._more)this.yytext="",this.match="";var g=this._currentRules();for(var r=0;r<g.length;r++)if(n=this._input.match(this.rules[g[r]]),n&&(!a||n[0].length>a[0].length)){if(a=n,c=r,this.options.backtrack_lexer)if(i=this.test_match(n,g[r]),i!==!1)return i;else if(this._backtrack){a=!1;continue}else return!1;else if(!this.options.flex)break}if(a){if(i=this.test_match(a,g[c]),i!==!1)return i;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 a=this.next();if(a)return a;else return this.lex()},"lex"),begin:e(function(a){this.conditionStack.push(a)},"begin"),popState:e(function(){var a=this.conditionStack.length-1;if(a>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(a){if(a=this.conditionStack.length-1-Math.abs(a||0),a>=0)return this.conditionStack[a];else return"INITIAL"},"topState"),pushState:e(function(a){this.begin(a)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(a,n,c,g){var r=g;switch(c){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return H}();Z.lexer=X;function R(){this.yy={}}return e(R,"Parser"),R.prototype=Z,Z.Parser=R,new R}();dt.parser=dt;var vt=dt,St=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{e(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,C()}getRoot(){return this.root}addNode(t,f){let l=y.sanitizeText(f,s());if(!this.root){this.root={text:l,children:[]},this.stack=[{level:0,node:this.root}],I(l);return}this.baseLevel??=t;let o=t-this.baseLevel+1;if(o<=0)o=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=o)this.stack.pop();let h=this.stack[this.stack.length-1].node,p={text:l,children:[]};h.children.push(p),this.stack.push({level:o,node:p})}getAccTitle(){return E()}setAccTitle(t){S(t)}getAccDescription(){return A()}setAccDescription(t){T(t)}getDiagramTitle(){return L()}setDiagramTitle(t){I(t)}},Et=14,et=250,$t=30,At=60,It=5,bt=82*Math.PI/180,pt=Math.cos(bt),gt=Math.sin(bt),kt=e((t,f,l)=>{let o=t.node().getBBox(),h=o.width+f*2,p=o.height+f*2;B(t,p,h,l),t.attr("viewBox",`${o.x-f} ${o.y-f} ${h} ${p}`)},"applyPaddedViewBox"),Lt=e((t,f,l,o)=>{let p=o.db.getRoot();if(!p)return;let k=s(),{look:d,handDrawnSeed:x,themeVariables:u}=k,_=Ge(k.fontSize)[0]??Et,b=d==="handDrawn",M=p.children??[],P=k.ishikawa?.diagramPadding??20,Z=k.ishikawa?.useMaxWidth??!1,X=V(f),R=X.append("g").attr("class","ishikawa"),H=b?m.svg(X.node()):void 0,i=H?{roughSvg:H,seed:x??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,a=`ishikawa-arrow-${f}`;if(!b)R.append("defs").append("marker").attr("id",a).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let n=0,c=et,g=b?void 0:it(R,n,c,n,c,"ishikawa-spine");if(Tt(R,n,c,p.text,_,i),!M.length){if(b)it(R,n,c,n,c,"ishikawa-spine",i);kt(X,P,Z);return}n-=20;let r=M.filter((w,O)=>O%2===0),N=M.filter((w,O)=>O%2===1),v=mt(r),F=mt(N),D=v.total+F.total,W=et,j=et;if(D>0){let w=et*2,O=et*0.3;W=Math.max(O,w*(v.total/D)),j=Math.max(O,w*(F.total/D))}let Y=_*2;if(W=Math.max(W,v.max*Y),j=Math.max(j,F.max*Y),c=Math.max(W,et),g)g.attr("y1",c).attr("y2",c);R.select(".ishikawa-head-group").attr("transform",`translate(0,${c})`);let rt=Math.ceil(M.length/2);for(let w=0;w<rt;w++){let O=R.append("g").attr("class","ishikawa-pair");for(let[q,Q,lt]of[[M[w*2],-1,W],[M[w*2+1],1,j]])if(q)Bt(O,q,n,c,Q,lt,_,i);n=O.selectAll("text").nodes().reduce((q,Q)=>Math.min(q,Q.getBBox().x),1/0)}if(b)it(R,n,c,0,c,"ishikawa-spine",i);else{g.attr("x1",n);let w=`url(#${a})`;R.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",w)}kt(X,P,Z)},"draw"),mt=e((t)=>{let f=e((l)=>l.children.reduce((o,h)=>o+1+f(h),0),"countDescendants");return t.reduce((l,o)=>{let h=f(o);return l.total+=h,l.max=Math.max(l.max,h),l},{total:0,max:0})},"sideStats"),Tt=e((t,f,l,o,h,p)=>{let k=Math.max(6,Math.floor(110/(h*0.6))),d=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${f},${l})`),x=at(d,_t(o,k),0,0,"ishikawa-head-label","start",h),u=x.node().getBBox(),_=Math.max(60,u.width+6),b=Math.max(40,u.height*2+40),M=`M 0 ${-b/2} L 0 ${b/2} Q ${_*2.4} 0 0 ${-b/2} Z`;if(p){let P=p.roughSvg.path(M,{roughness:1.5,seed:p.seed,fill:p.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:p.lineColor,strokeWidth:2});d.insert(()=>P,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",M);x.attr("transform",`translate(${(_-u.width)/2-u.x+3},${-u.y-u.height/2})`)},"drawHead"),Mt=e((t,f)=>{let l=[],o=[],h=e((p,k,d)=>{let x=f===-1?[...p].reverse():p;for(let u of x){let _=l.length,b=u.children??[];if(l.push({depth:d,text:_t(u.text,15),parentIndex:k,childCount:b.length}),d%2===0){if(o.push(_),b.length)h(b,_,d+1)}else{if(b.length)h(b,_,d+1);o.push(_)}}},"walk");return h(t,-1,2),{entries:l,yOrder:o}},"flattenTree"),Pt=e((t,f,l,o,h,p,k)=>{let d=t.append("g").attr("class","ishikawa-label-group"),u=at(d,f,l,o+11*h,"ishikawa-label cause","middle",p).node().getBBox();if(k){let _=k.roughSvg.rectangle(u.x-20,u.y-2,u.width+40,u.height+4,{roughness:1.5,seed:k.seed,fill:k.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:k.lineColor,strokeWidth:2});d.insert(()=>_,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",u.x-20).attr("y",u.y-2).attr("width",u.width+40).attr("height",u.height+4)},"drawCauseLabel"),ut=e((t,f,l,o,h,p)=>{let k=Math.sqrt(o*o+h*h);if(k===0)return;let d=o/k,x=h/k,u=6,_=-x*u,b=d*u,M=f,P=l,Z=`M ${M} ${P} L ${M-d*u*2+_} ${P-x*u*2+b} L ${M-d*u*2-_} ${P-x*u*2-b} Z`,X=p.roughSvg.path(Z,{roughness:1,seed:p.seed,fill:p.lineColor,fillStyle:"solid",stroke:p.lineColor,strokeWidth:1});t.append(()=>X)},"drawArrowMarker"),Bt=e((t,f,l,o,h,p,k,d)=>{let x=f.children??[],u=p*(x.length?1:0.2),_=-pt*u,b=gt*u*h,M=l+_,P=o+b;if(it(t,l,o,M,P,"ishikawa-branch",d),d)ut(t,l,o,l-M,o-P,d);if(Pt(t,f.text,M,P,h,k,d),!x.length)return;let{entries:Z,yOrder:X}=Mt(x,h),R=Z.length,H=Array(R);for(let[g,r]of X.entries())H[r]=o+b*((g+1)/(R+1));let i=new Map;i.set(-1,{x0:l,y0:o,x1:M,y1:P,childCount:x.length,childrenDrawn:0});let a=-pt,n=gt*h,c=h<0?"ishikawa-label up":"ishikawa-label down";for(let[g,r]of Z.entries()){let N=H[g],v=i.get(r.parentIndex),F=t.append("g").attr("class","ishikawa-sub-group"),D=0,W=0,j=0;if(r.depth%2===0){let Y=v.y1-v.y0;if(D=wt(v.x0,v.x1,Y?(N-v.y0)/Y:0.5),W=N,j=D-(r.childCount>0?At+r.childCount*It:$t),it(F,D,N,j,N,"ishikawa-sub-branch",d),d)ut(F,D,N,1,0,d);at(F,r.text,j,N,"ishikawa-label align","end",k)}else{let Y=v.childrenDrawn++;if(D=wt(v.x0,v.x1,(v.childCount-Y)/(v.childCount+1)),W=v.y0,j=D+a*((N-W)/n),it(F,D,W,j,N,"ishikawa-sub-branch",d),d)ut(F,D,W,D-j,W-N,d);at(F,r.text,j,N,c,"end",k)}if(r.childCount>0)i.set(g,{x0:D,y0:W,x1:j,y1:N,childCount:r.childCount,childrenDrawn:0})}},"drawBranch"),Nt=e((t)=>t.split(/<br\s*\/?>|\n/),"splitLines"),_t=e((t,f)=>{if(t.length<=f)return t;let l=[];for(let o of t.split(/\s+/)){let h=l.length-1;if(h>=0&&l[h].length+1+o.length<=f)l[h]+=" "+o;else l.push(o)}return l.join(`
|
|
7
|
-
`)},"wrapText"),at=e((t,f,l,o,h,p,k)=>{let d=Nt(f),x=k*1.05,u=t.append("text").attr("class",h).attr("text-anchor",p).attr("x",l).attr("y",o-(d.length-1)*x/2);for(let[_,b]of d.entries())u.append("tspan").attr("x",l).attr("dy",_===0?0:x).text(b);return u},"drawMultilineText"),wt=e((t,f,l)=>t+(f-t)*l,"lerp"),it=e((t,f,l,o,h,p,k)=>{if(k){let d=k.roughSvg.line(f,l,o,h,{roughness:1.5,seed:k.seed,stroke:k.lineColor,strokeWidth:2});t.append(()=>d).attr("class",p);return}return t.append("line").attr("class",p).attr("x1",f).attr("y1",l).attr("x2",o).attr("y2",h)},"drawLine"),Dt={draw:Lt},Ot=e((t)=>`
|
|
8
|
-
.ishikawa .ishikawa-spine,
|
|
9
|
-
.ishikawa .ishikawa-branch,
|
|
10
|
-
.ishikawa .ishikawa-sub-branch {
|
|
11
|
-
stroke: ${t.lineColor};
|
|
12
|
-
stroke-width: 2;
|
|
13
|
-
fill: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ishikawa .ishikawa-sub-branch {
|
|
17
|
-
stroke-width: 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ishikawa .ishikawa-arrow {
|
|
21
|
-
fill: ${t.lineColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ishikawa .ishikawa-head {
|
|
25
|
-
fill: ${t.mainBkg};
|
|
26
|
-
stroke: ${t.lineColor};
|
|
27
|
-
stroke-width: 2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ishikawa .ishikawa-label-box {
|
|
31
|
-
fill: ${t.mainBkg};
|
|
32
|
-
stroke: ${t.lineColor};
|
|
33
|
-
stroke-width: 2;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ishikawa text {
|
|
37
|
-
font-family: ${t.fontFamily};
|
|
38
|
-
font-size: ${t.fontSize};
|
|
39
|
-
fill: ${t.textColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ishikawa .ishikawa-head-label {
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
text-anchor: middle;
|
|
45
|
-
dominant-baseline: middle;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ishikawa .ishikawa-label {
|
|
50
|
-
text-anchor: end;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ishikawa .ishikawa-label.cause {
|
|
54
|
-
text-anchor: middle;
|
|
55
|
-
dominant-baseline: middle;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ishikawa .ishikawa-label.align {
|
|
59
|
-
text-anchor: end;
|
|
60
|
-
dominant-baseline: middle;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ishikawa .ishikawa-label.up {
|
|
64
|
-
dominant-baseline: baseline;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ishikawa .ishikawa-label.down {
|
|
68
|
-
dominant-baseline: hanging;
|
|
69
|
-
}
|
|
70
|
-
`,"getStyles"),Ct=Ot,Gt={parser:vt,get db(){return new St},renderer:Dt,styles:Ct};export{Gt as diagram};
|
package/web/chunk-b6k9w215.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{J,Oi,Ve,Ln,co,La,Ft,zn,Be,Tr,Vr,Un,uo,$i,jn}from"./chunk-wvdehm9y.js";function k(l){return l.innerRadius}function b(l){return l.outerRadius}function _(l){return l.startAngle}function nn(l){return l.endAngle}function en(l){return l&&l.padAngle}function rn(l,d,q,P,x,h,S,r){var D=q-l,a=P-d,n=S-x,y=r-h,u=y*D-n*a;if(u*u<Be)return;return u=(n*(d-h)-y*(l-x))/u,[l+u*D,d+u*a]}function M(l,d,q,P,x,h,S){var r=l-q,D=d-P,a=(S?h:-h)/zn(r*r+D*D),n=a*D,y=-a*r,u=l+n,s=d+y,t=q+n,f=P+y,j=(u+t)/2,o=(s+f)/2,g=t-u,c=f-s,v=g*g+c*c,A=x-h,R=u*f-t*s,E=(c<0?-1:1)*zn(co(0,A*A*v-R*R)),I=(R*c-g*E)/v,O=(-R*g-c*E)/v,T=(R*c+g*E)/v,m=(-R*g+c*E)/v,p=I-j,e=O-o,i=T-j,z=m-o;if(p*p+e*e>i*i+z*z)I=T,O=m;return{cx:I,cy:O,x01:-n,y01:-y,x11:I*(x/A-1),y11:O*(x/A-1)}}function bt(){var l=k,d=b,q=J(0),P=null,x=_,h=nn,S=en,r=null,D=jn(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-Vr,f=h.apply(this,arguments)-Vr,j=Oi(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>Be))r.moveTo(0,0);else if(j>Un-Be){if(r.moveTo(s*Ln(t),s*Ft(t)),r.arc(0,0,s,t,f,!o),u>Be)r.moveTo(u*Ln(f),u*Ft(f)),r.arc(0,0,u,f,t,o)}else{var g=t,c=f,v=t,A=f,R=j,E=j,I=S.apply(this,arguments)/2,O=I>Be&&(P?+P.apply(this,arguments):zn(u*u+s*s)),T=La(Oi(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>Be){var z=$i(O/u*Ft(I)),F=$i(O/s*Ft(I));if((R-=z*2)>Be)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>Be)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*Ln(g),C=s*Ft(g),G=u*Ln(A),H=u*Ft(A);if(T>Be){var K=s*Ln(c),L=s*Ft(c),N=u*Ln(v),Q=u*Ft(v),w;if(j<Tr)if(w=rn(B,C,N,Q,K,L,G,H)){var U=B-w[0],V=C-w[1],W=K-w[0],X=L-w[1],Y=1/Ft(uo((U*W+V*X)/(zn(U*U+V*V)*zn(W*W+X*X)))/2),Z=zn(w[0]*w[0]+w[1]*w[1]);m=La(T,(u-Z)/(Y-1)),p=La(T,(s-Z)/(Y+1))}else m=p=0}if(!(E>Be))r.moveTo(B,C);else if(p>Be)if(e=M(N,Q,B,C,s,p,o),i=M(K,L,G,H,s,p,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),p<T)r.arc(e.cx,e.cy,p,Ve(e.y01,e.x01),Ve(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,Ve(e.y01,e.x01),Ve(e.y11,e.x11),!o),r.arc(0,0,s,Ve(e.cy+e.y11,e.cx+e.x11),Ve(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,Ve(i.y11,i.x11),Ve(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>Be)||!(R>Be))r.lineTo(G,H);else if(m>Be)if(e=M(G,H,K,L,u,-m,o),i=M(B,C,N,Q,u,-m,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),m<T)r.arc(e.cx,e.cy,m,Ve(e.y01,e.x01),Ve(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,Ve(e.y01,e.x01),Ve(e.y11,e.x11),!o),r.arc(0,0,u,Ve(e.cy+e.y11,e.cx+e.x11),Ve(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,Ve(i.y11,i.x11),Ve(i.y01,i.x01),!o);else r.arc(0,0,u,A,v,o)}if(r.closePath(),n)return r=null,n+""||null}return a.centroid=function(){var n=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +h.apply(this,arguments))/2-Tr/2;return[Ln(y)*n,Ft(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:J(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:J(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:J(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:J(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:J(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:J(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:J(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
|
|
2
|
-
export{bt};
|
package/web/chunk-cjfssg3m.js
DELETED
package/web/chunk-cqp1d4p0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function Mt(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{Mt};
|
package/web/chunk-dy2gm1fs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ri}from"./chunk-n1dmrz44.js";export{ri as default};
|
package/web/chunk-e0zre35a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ar}from"./chunk-aqfpnhmt.js";export{ar as createRailroadEbnfServices};
|
package/web/chunk-e9twvs9n.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{W}from"./chunk-y56aaba5.js";import{e,r,D,b,O,C,S,E,T,A,I,L,s,wr,p,Dn,Zr,U}from"./chunk-wvdehm9y.js";import{$r,X}from"./chunk-aqfpnhmt.js";var G="position frame",V="frame positioned",F="position relation",j="relation positioned",pe=e(function(t){r.debug("options str",t)},"setOptions"),ve=e(function(){return{}},"getOptions"),be=e(function(){Y(),C()},"clear");function Y(){M={}}e(Y,"reset");var we=D.eventmodeling,ye=e(()=>U({...we,...b().eventmodeling}),"getConfig"),M={};function z(){let t=Pe,{ast:i}=M,n=N();if(!i)throw Error("No data for EventModel");return i.frames.forEach((a,o)=>{let d=te(a,i.dataEntities,n);t=P(t,{$kind:G,index:o,frame:a,textProps:d});let c=void 0;if(se(a))r.debug("source frame",a.sourceFrames),c=i.frames.filter((m)=>a.sourceFrames.some((u)=>u.$refText===m.name)),c.forEach((m)=>{t=P(t,{$kind:F,index:o,frame:a,sourceFrame:m})});else t=P(t,{$kind:F,index:o,frame:a})}),t={...t,sortedSwimlanesArray:H(t.swimlanes)},t}e(z,"getState");function K(t){M.ast=void 0;let i=new Set;for(let n of t.frames){if(i.has(n.name)){let a=n.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}i.add(n.name)}M.ast=t}e(K,"setAst");var l={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function N(){return l}e(N,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function q(t){let i=t.split(".");if(i.length===2)return i[0];return}e(q,"extractNamespace");function J(t){let i=t.split(".");if(i.length===2)return i[1];return t}e(J,"extractName");function Q(t,i){if(!i||i.length===0)return;return Object.values(t).find((n)=>n.namespace===i)}e(Q,"findSwimlaneByNamespace");function y(t,i,n){return Math.max(i,...Object.keys(t).filter((a)=>{let o=Number.parseInt(a);return o>i&&o<n}).map((a)=>Number.parseInt(a)))+1}e(y,"findNextAvailableIndex");function Z(t,i){let n=q(t.entityIdentifier),a=Q(i,n);switch(t.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||l.labelUiAutomation};else if(n)return{index:y(i,0,100),label:l.labelUiAutomationPrefix+n};return{index:0,label:l.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||l.labelCommandReadModel};else if(n)return{index:y(i,100,200),label:l.labelCommandReadModelPrefix+n};return{index:100,label:l.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||l.labelEvents};else if(n)return{index:y(i,200,300),label:l.labelEventsPrefix+n};return{index:200,label:l.labelEvents}}}e(Z,"calculateSwimlaneProps");function ee(t){let{themeVariables:i}=b();switch(t.modelEntityType){case"ui":return{fill:i.emUiFill??"white",stroke:i.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:i.emProcessorFill??"#edb3f6",stroke:i.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:i.emReadModelFill??"#d3f1a2",stroke:i.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:i.emCommandFill??"#bcd6fe",stroke:i.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:i.emEventFill??"#ffb778",stroke:i.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}e(ee,"calculateEntityVisualProps");function te(t,i,n){let a=b(),o=O(J(t.entityIdentifier)??"",a),d,c={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${Dn(o,n.textMaxWidth,c)}</b>`;if(t.dataInlineValue)d=t.dataInlineValue,d=d.substring(d.indexOf("{")+1),d=d.substring(0,d.lastIndexOf("}")-1),d=O(d,a),d=Dn(d,n.textMaxWidth,c),d=d.replaceAll(" "," ");if(t.dataReference){let w=i.find((k)=>k.name===t.dataReference?.$refText);if(w)d=w.dataBlockValue,d=d.substring(d.indexOf(`{
|
|
2
|
-
`)+2),d=d.substring(0,d.lastIndexOf("}")-1),d=O(d,a),d=Dn(d,n.textMaxWidth,c),d=d.replaceAll(" "," "),d+="<br/>"}let x=d!==void 0;if(x)u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${d}</code>`;let g={fontSize:c.fontSize,fontWeight:c.fontWeight,fontFamily:c.fontFamily},f=Zr(u,g),v=x?f.width/3:f.width,h={content:u,width:v,height:f.height};return r.debug(`[${t.name}] ${t.entityIdentifier} text`,h),h}e(te,"calculateTextProps");function ne(t,i){let n=i,a=ee(n.frame),o={width:n.textProps.width+2*l.boxTextPadding,height:n.textProps.height+2*l.boxTextPadding};return[{$kind:V,frame:n.frame,index:n.index,visual:a,dimension:o,textProps:n.textProps}]}e(ne,"decidePositionFrame");function ie(t,i,n){if(i===void 0)return l.contentStartX;if(i.index===t.index&&t.r)return t.r+l.boxPadding;if(n===void 0)return l.contentStartX;return n.r-l.boxOverlap+l.boxPadding}e(ie,"calculateX");function re(t,i){let n=[...t.map((a)=>a.r),i];return Math.max(...n)}e(re,"calculateMaxRight");function H(t){return Object.values(t).sort((i,n)=>i.index-n.index)}e(H,"sortedSwimlanesArray");function ae(t,i){let n=i,a=Z(n.frame,t.swimlanes),o;if(a.index in t.swimlanes)o=t.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*l.swimlaneMinHeight+l.swimlaneGap,height:l.swimlaneMinHeight,maxHeight:l.swimlaneMinHeight};let d=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,c=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,m={width:Math.max(l.boxMinWidth,Math.min(l.boxMaxWidth,n.dimension.width))+2*l.boxPadding,height:Math.max(l.boxMinHeight,Math.min(l.boxMaxHeight,n.dimension.height))+2*l.boxPadding},u=ie(o,c,d),x=u+m.width+l.boxPadding,g=re(Object.values(t.swimlanes),x);o.r=u+m.width,o.maxHeight=Math.max(o.maxHeight,m.height),o.height=Math.max(l.swimlaneMinHeight,o.maxHeight)+2*l.swimlanePadding;let f={x:u,y:l.swimlanePadding+o.y,r:x,dimension:m,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...t,boxes:[...t.boxes,f],swimlanes:{...t.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:n.frame,maxR:g},h=H(v.swimlanes);if(h.length>0)h[0].y=0;for(let w=1;w<h.length;w++){let k=h[w],_=h[w-1];k.y=_.y+_.height+l.swimlaneGap}return v}e(ae,"evolveFramePositioned");function oe(t,i){if(t===0&&i.sourceFrames.length===0)return!0;return!1}e(oe,"isFirstFrame");function se(t){return t.sourceFrames!==void 0&&t.sourceFrames!==null&&t.sourceFrames.length>0}e(se,"hasSourceFrame");function B(t,i){if(i===void 0||i===null)return;return t.find((n)=>n.frame.name===i.name)}e(B,"findBoxByFrame");function de(t,i,n){if(n<0)return;for(let a=n;a>=0;a--){let o=t[a];if(o.swimlane.index!==i)return o}return}e(de,"findBoxByLineIndex");function le(t,i){let n=i;if(oe(n.index,n.frame))return[];let a=B(t.boxes,n.frame);if(a===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=B(t.boxes,n.sourceFrame);else{if($r(n.frame))return[];o=de(t.boxes,a.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:j,frame:n.frame,index:n.index,sourceBox:o,targetBox:a}]}e(le,"decidePositionRelation");function ce(t,i){let n=i,a={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...t,relations:[...t.relations,a]}}e(ce,"evolveRelationPositioned");var Se={[G]:ne,[F]:le},Me={[V]:ae,[j]:ce};function me(t,i){let n=Se[i.$kind];if(n===void 0||n===null)return[];let a=n(t,i);return r.debug("decided events",a),a}e(me,"decide");function ue(t,i){let n=i.reduce((a,o)=>{let d=Me[o.$kind];if(d===void 0||d===null)return a;return d(a,o)},t);return r.debug("evolve events",{state:t,newState:n,events:i}),n}e(ue,"evolve");function P(t,i){let n=me(t,i);return ue(t,n)}e(P,"dispatch");var R={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L,setAst:K,getDiagramProps:N,getState:z},ke={parse:e(async(t)=>{let i=await X("eventmodeling",t);r.debug(i),R.setAst(i),W(i,R)},"parse")},Fe=s(),Be=Fe?.eventmodeling;function xe(t,i){return(n)=>{let a=n.swimlane.y+i.swimlanePadding,o=t.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",a).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+i.boxPadding).attr("y",a+10).attr("width",n.dimension.width-2*i.boxPadding).attr("height",n.dimension.height-2*i.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}e(xe,"renderD3Box");function fe(t,i){return t>i}e(fe,"dirUpwards");function ge(t,i,n,a){return(o)=>{let d=o.sourceBox.swimlane.y+i.swimlanePadding,c=o.targetBox.swimlane.y+i.swimlanePadding,m=fe(d,c),u=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,g,f;if(r.debug(`rendering relation up=${m} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),m)g=d,f=c+o.targetBox.dimension.height;else g=d+o.sourceBox.dimension.height,f=c;let v=a.emRelationStroke??o.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${u} ${g} L${x} ${f}`)}}e(ge,"renderD3Relation");function he(t,i,n,a){return(o)=>{let d=t.append("g").attr("class","em-swimlane"),c=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",m=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";d.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",i+n.swimlanePadding).attr("height",o.height).attr("fill",c).attr("stroke",m),d.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}e(he,"renderD3Swimlane");var Ee=e(function(t,i,n,a){if(r.debug("in eventmodeling renderer",t+`
|
|
3
|
-
`,"id:",i,n),!Be)throw Error("EventModeling config not found");let o=a.db,{themeVariables:d,eventmodeling:c}=s(),m=p(`[id="${i}"]`),u=o.getDiagramProps(),x=o.getState(),g=`em-arrowhead-${i}`,f=d.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(m,x.maxR,u,d)),x.boxes.forEach(xe(m,u)),x.relations.forEach(ge(m,u,g,d)),m.append("defs").append("marker").attr("id",g).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),wr(void 0,m,c?.padding??30,c?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=e((t)=>"","getStyles"),Re=$e,Ue={parser:ke,db:R,renderer:Ae,styles:Re};export{Ue as diagram};
|
package/web/chunk-f2kgtyfp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wo}from"./chunk-4bzqrwr0.js";export{wo as QuestionDock};
|
package/web/chunk-f8bn5tzf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ki,Co,Qi,So,To,Ji}from"./chunk-9dzxv335.js";import"./chunk-ne0v8mfb.js";import"./chunk-fh2vj0wv.js";import"./chunk-wvdehm9y.js";export{Co as applyDagreLayoutResult,Ki as getEdgesToRender,So as measureDagreLayout,Qi as prepareLayoutForDagre,Ji as render,To as runDagreLayoutCore};
|
package/web/chunk-f91wzwtk.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fi}from"./chunk-xzp7jf7e.js";export{fi as default};
|
package/web/chunk-fdp9bsj7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-wvdehm9y.js";import"./chunk-fh2vj0wv.js";import"./chunk-ne0v8mfb.js";import{Ji}from"./chunk-9dzxv335.js";export{Ji as render};
|
package/web/chunk-g1ev11wx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ta}from"./chunk-cg3jterp.js";export{ta as default};
|
package/web/chunk-gmzqdm7v.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,r}from"./chunk-wvdehm9y.js";import{K,It,Rt}from"./chunk-344bq59c.js";import{W}from"./chunk-y56aaba5.js";import{rr,_t}from"./chunk-aqfpnhmt.js";var o=rr().Railroad.parser.LangiumParser,n=e((a)=>{switch(a.$type){case"RailroadTerminalExpr":return{type:"terminal",value:a.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:a.name};case"RailroadSpecialExpr":return{type:"special",text:a.text};case"RailroadSequenceExpr":{let t=a.elements.map(n);return t.length===1?t[0]:{type:"sequence",elements:t}}case"RailroadChoiceExpr":{let t=a.alternatives.map(n);return t.length===1?t[0]:{type:"choice",alternatives:t}}case"RailroadOptionalExpr":return{type:"optional",element:n(a.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:n(a.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:n(a.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${a.$type}`)}},"transformExpression"),l=e((a)=>({name:a.name,definition:n(a.definition)}),"transformRule"),s=e((a)=>{if(W(a,K),a.title)K.setTitle(a.title);a.rules.map((t)=>K.addRule(l(t)))},"populateDb"),m={parse:e((a)=>{K.clear(),r.debug("[Railroad Parser] Starting Langium parse");let t=o.parse(a);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new _t(t);let i=t.value;r.debug("[Railroad Parser] Parsed rules:",i.rules.length),s(i),r.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:K}},R={parser:m,db:K,renderer:Rt,styles:It};export{R as diagram};
|
package/web/chunk-hfaffkrh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pi}from"./chunk-n90cqdvg.js";export{pi as default};
|
package/web/chunk-j2vt8c8v.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Et}from"./chunk-ts7zrf5b.js";export{Et as default};
|
package/web/chunk-ka3q31t1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn}from"./chunk-ydtrc1ay.js";export{cn as default};
|
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};
|